@ys-knife-crud/antd 0.0.11 → 0.0.12
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/antd/src/table/table.d.ts.map +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +136 -136
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -370,19 +370,19 @@ const $l = Ve(function(t, n) {
|
|
|
370
370
|
ie(() => {
|
|
371
371
|
J !== void 0 && Re(J);
|
|
372
372
|
}, [J]);
|
|
373
|
-
const
|
|
373
|
+
const ut = we, dt = t.showCheckbox, [_n, ye] = I(dt ?? !1);
|
|
374
374
|
ie(() => {
|
|
375
|
-
|
|
376
|
-
}, [
|
|
377
|
-
const et =
|
|
375
|
+
dt !== void 0 && ye(dt);
|
|
376
|
+
}, [dt]);
|
|
377
|
+
const et = _n, ft = t.columnResizable, [Et, St] = I(ft ?? !0);
|
|
378
378
|
ie(() => {
|
|
379
|
-
|
|
380
|
-
}, [
|
|
381
|
-
const bt =
|
|
379
|
+
ft !== void 0 && St(ft);
|
|
380
|
+
}, [ft]);
|
|
381
|
+
const bt = Et, W = t.stickyHeader, [_e, ee] = I(W ?? !1);
|
|
382
382
|
ie(() => {
|
|
383
|
-
|
|
384
|
-
}, [
|
|
385
|
-
const Se =
|
|
383
|
+
W !== void 0 && ee(W);
|
|
384
|
+
}, [W]);
|
|
385
|
+
const Se = _e, {
|
|
386
386
|
exportOptions: xt,
|
|
387
387
|
exportDialogVisible: Mt,
|
|
388
388
|
exporting: tt,
|
|
@@ -439,9 +439,9 @@ const $l = Ve(function(t, n) {
|
|
|
439
439
|
const O = ++Sr.current, T = (_ == null ? void 0 : _.limit) ?? Di.current ?? wr.current, Me = (_ == null ? void 0 : _.page) ?? Dt.current;
|
|
440
440
|
A(!0);
|
|
441
441
|
try {
|
|
442
|
-
const
|
|
442
|
+
const st = await Mi.current({ limit: T, offset: (Me - 1) * T }, _ == null ? void 0 : _.signal);
|
|
443
443
|
if (O !== Sr.current) return;
|
|
444
|
-
K(
|
|
444
|
+
K(st), (De = En.current) == null || De.call(En, st);
|
|
445
445
|
} finally {
|
|
446
446
|
O === Sr.current && A(!1);
|
|
447
447
|
}
|
|
@@ -487,14 +487,14 @@ const $l = Ve(function(t, n) {
|
|
|
487
487
|
const [Fn, Ri] = I(null);
|
|
488
488
|
function $a(_, O, T) {
|
|
489
489
|
_.preventDefault(), _.stopPropagation();
|
|
490
|
-
const Me = _.clientX, De = (gn) => Math.max(40, Math.round(T + gn - Me)),
|
|
490
|
+
const Me = _.clientX, De = (gn) => Math.max(40, Math.round(T + gn - Me)), st = (gn) => {
|
|
491
491
|
Ri({ propertyPath: O, width: De(gn.clientX) });
|
|
492
492
|
}, Qi = (gn) => {
|
|
493
|
-
window.removeEventListener("mousemove",
|
|
493
|
+
window.removeEventListener("mousemove", st), window.removeEventListener("mouseup", Qi), document.body.style.userSelect = "";
|
|
494
494
|
const Xa = De(gn.clientX);
|
|
495
495
|
Ri(null), ce(O, Xa);
|
|
496
496
|
};
|
|
497
|
-
document.body.style.userSelect = "none", window.addEventListener("mousemove",
|
|
497
|
+
document.body.style.userSelect = "none", window.addEventListener("mousemove", st), window.addEventListener("mouseup", Qi);
|
|
498
498
|
}
|
|
499
499
|
const [Kt, Mr] = I(null), Ua = Kt ? Hr(X, Kt.row) : [];
|
|
500
500
|
function Ti(_, O) {
|
|
@@ -544,18 +544,18 @@ const $l = Ve(function(t, n) {
|
|
|
544
544
|
An((T) => {
|
|
545
545
|
const Me = _ + O;
|
|
546
546
|
if (Me < 0 || Me >= T.length) return T;
|
|
547
|
-
const De = [...T], [
|
|
548
|
-
return
|
|
547
|
+
const De = [...T], [st] = De.splice(_, 1);
|
|
548
|
+
return st ? (De.splice(Me, 0, st), De) : T;
|
|
549
549
|
});
|
|
550
550
|
}
|
|
551
551
|
async function qa() {
|
|
552
552
|
var T, Me;
|
|
553
553
|
const _ = {};
|
|
554
|
-
Ei.forEach((De,
|
|
554
|
+
Ei.forEach((De, st) => {
|
|
555
555
|
_[De.propertyPath] = {
|
|
556
556
|
propertyPath: De.propertyPath,
|
|
557
557
|
visible: De.visible,
|
|
558
|
-
order:
|
|
558
|
+
order: st,
|
|
559
559
|
width: De.width
|
|
560
560
|
};
|
|
561
561
|
});
|
|
@@ -568,8 +568,8 @@ const $l = Ve(function(t, n) {
|
|
|
568
568
|
Ai.current = c;
|
|
569
569
|
const Li = D(u);
|
|
570
570
|
Li.current = u;
|
|
571
|
-
const Wi = D(
|
|
572
|
-
Wi.current =
|
|
571
|
+
const Wi = D(ut);
|
|
572
|
+
Wi.current = ut;
|
|
573
573
|
const Hi = D(et);
|
|
574
574
|
Hi.current = et;
|
|
575
575
|
const Vi = D(bt);
|
|
@@ -674,7 +674,7 @@ const $l = Ve(function(t, n) {
|
|
|
674
674
|
return /* @__PURE__ */ y("div", { className: "yk-table", children: [
|
|
675
675
|
t.selectionBar ? /* @__PURE__ */ a("div", { className: "yk-table__selection-bar-slot", children: t.selectionBar(Ka) }) : null,
|
|
676
676
|
/* @__PURE__ */ y("div", { className: "yk-table__view-area", children: [
|
|
677
|
-
|
|
677
|
+
ut === "table" ? /* @__PURE__ */ a(
|
|
678
678
|
"div",
|
|
679
679
|
{
|
|
680
680
|
className: `yk-table__table-wrap${Se ? " yk-table__table-wrap--sticky-header" : ""}`,
|
|
@@ -691,7 +691,7 @@ const $l = Ve(function(t, n) {
|
|
|
691
691
|
}
|
|
692
692
|
)
|
|
693
693
|
}
|
|
694
|
-
) :
|
|
694
|
+
) : ut === "card" ? /* @__PURE__ */ a(
|
|
695
695
|
Yl,
|
|
696
696
|
{
|
|
697
697
|
rows: h,
|
|
@@ -1218,10 +1218,10 @@ function mo(e, t = un.Asc) {
|
|
|
1218
1218
|
}
|
|
1219
1219
|
var Is = {};
|
|
1220
1220
|
Object.defineProperty(Is, "__esModule", { value: !0 });
|
|
1221
|
-
var Ut = {},
|
|
1222
|
-
Object.defineProperty(
|
|
1223
|
-
|
|
1224
|
-
|
|
1221
|
+
var Ut = {}, lt = {};
|
|
1222
|
+
Object.defineProperty(lt, "__esModule", { value: !0 });
|
|
1223
|
+
lt.SelectInfoOf = lt.SelectInfo = lt.SelectItem = void 0;
|
|
1224
|
+
lt.select = yo;
|
|
1225
1225
|
class $r {
|
|
1226
1226
|
constructor(t, n = !1) {
|
|
1227
1227
|
this.name = t, this.exclude = n;
|
|
@@ -1230,7 +1230,7 @@ class $r {
|
|
|
1230
1230
|
return this.exclude ? `-${this.name}` : this.name;
|
|
1231
1231
|
}
|
|
1232
1232
|
}
|
|
1233
|
-
|
|
1233
|
+
lt.SelectItem = $r;
|
|
1234
1234
|
class Es {
|
|
1235
1235
|
constructor(...t) {
|
|
1236
1236
|
this.items = [], this.items.push(...t.filter((n) => n !== null));
|
|
@@ -1242,7 +1242,7 @@ class Es {
|
|
|
1242
1242
|
return this.items ? this.items = this.items.concat(t) : this.items = t, this;
|
|
1243
1243
|
}
|
|
1244
1244
|
}
|
|
1245
|
-
|
|
1245
|
+
lt.SelectInfo = Es;
|
|
1246
1246
|
class Fs extends Es {
|
|
1247
1247
|
include(...t) {
|
|
1248
1248
|
return this.appendItems(...t.map((n) => new $r(n.toString()))), this;
|
|
@@ -1251,14 +1251,14 @@ class Fs extends Es {
|
|
|
1251
1251
|
return this.appendItems(...t.map((n) => new $r(n.toString(), !0))), this;
|
|
1252
1252
|
}
|
|
1253
1253
|
}
|
|
1254
|
-
|
|
1254
|
+
lt.SelectInfoOf = Fs;
|
|
1255
1255
|
function yo(...e) {
|
|
1256
1256
|
return new Fs().include(...e);
|
|
1257
1257
|
}
|
|
1258
1258
|
Object.defineProperty(Ut, "__esModule", { value: !0 });
|
|
1259
1259
|
Ut.QueryBuilderOf = Ut.QueryBuilder = void 0;
|
|
1260
1260
|
Ut.query = go;
|
|
1261
|
-
const Pr = Le, Yr = Pe, Ot = Qe, Jt =
|
|
1261
|
+
const Pr = Le, Yr = Pe, Ot = Qe, Jt = lt, At = It, _o = dn;
|
|
1262
1262
|
class As {
|
|
1263
1263
|
constructor() {
|
|
1264
1264
|
this._limit = _o.queryConfig.defaultLimit, this._offset = 0;
|
|
@@ -1332,7 +1332,7 @@ function go() {
|
|
|
1332
1332
|
}), n = tn && tn.__exportStar || function(r, i) {
|
|
1333
1333
|
for (var s in r) s !== "default" && !Object.prototype.hasOwnProperty.call(i, s) && t(i, r, s);
|
|
1334
1334
|
};
|
|
1335
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), n(Le, e), n(Ye, e), n(Tt, e), n(dn, e), n(Bt, e), n(Pe, e), n(ar, e), n(Qe, e), n(Is, e), n(Ut, e), n(
|
|
1335
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), n(Le, e), n(Ye, e), n(Tt, e), n(dn, e), n(Bt, e), n(Pe, e), n(ar, e), n(Qe, e), n(Is, e), n(Ut, e), n(lt, e), n(It, e), n(Dn, e);
|
|
1336
1336
|
})(ze);
|
|
1337
1337
|
const vo = el(null);
|
|
1338
1338
|
//! moment.js
|
|
@@ -1380,12 +1380,12 @@ function Hs(e, t) {
|
|
|
1380
1380
|
n.push(t(e[r], r));
|
|
1381
1381
|
return n;
|
|
1382
1382
|
}
|
|
1383
|
-
function
|
|
1383
|
+
function at(e, t) {
|
|
1384
1384
|
for (var n in t)
|
|
1385
1385
|
V(t, n) && (e[n] = t[n]);
|
|
1386
1386
|
return V(t, "toString") && (e.toString = t.toString), V(t, "valueOf") && (e.valueOf = t.valueOf), e;
|
|
1387
1387
|
}
|
|
1388
|
-
function
|
|
1388
|
+
function ot(e, t, n, r) {
|
|
1389
1389
|
return da(e, t, n, r, !0).utc();
|
|
1390
1390
|
}
|
|
1391
1391
|
function ko() {
|
|
@@ -1431,8 +1431,8 @@ function ni(e) {
|
|
|
1431
1431
|
return e._isValid;
|
|
1432
1432
|
}
|
|
1433
1433
|
function Nn(e) {
|
|
1434
|
-
var t =
|
|
1435
|
-
return e != null ?
|
|
1434
|
+
var t = ot(NaN);
|
|
1435
|
+
return e != null ? at(E(t), e) : E(t).userInvalidated = !0, t;
|
|
1436
1436
|
}
|
|
1437
1437
|
var rs = v.momentProperties = [], Rr = !1;
|
|
1438
1438
|
function ri(e, t) {
|
|
@@ -1453,7 +1453,7 @@ function Vs(e) {
|
|
|
1453
1453
|
}
|
|
1454
1454
|
function Je(e, t) {
|
|
1455
1455
|
var n = !0;
|
|
1456
|
-
return
|
|
1456
|
+
return at(function() {
|
|
1457
1457
|
if (v.deprecationHandler != null && v.deprecationHandler(null, e), n) {
|
|
1458
1458
|
var r = [], i, s, l, o = arguments.length;
|
|
1459
1459
|
for (s = 0; s < o; s++) {
|
|
@@ -1483,7 +1483,7 @@ function $s(e, t) {
|
|
|
1483
1483
|
}
|
|
1484
1484
|
v.suppressDeprecationWarnings = !1;
|
|
1485
1485
|
v.deprecationHandler = null;
|
|
1486
|
-
function
|
|
1486
|
+
function ct(e) {
|
|
1487
1487
|
return typeof Function < "u" && e instanceof Function || Object.prototype.toString.call(e) === "[object Function]";
|
|
1488
1488
|
}
|
|
1489
1489
|
var ss = {
|
|
@@ -1599,7 +1599,7 @@ function xo(e) {
|
|
|
1599
1599
|
return function(i) {
|
|
1600
1600
|
var s = "", l;
|
|
1601
1601
|
for (l = 0; l < r; l++)
|
|
1602
|
-
s +=
|
|
1602
|
+
s += ct(t[l]) ? t[l].call(i, e) : t[l];
|
|
1603
1603
|
return s;
|
|
1604
1604
|
};
|
|
1605
1605
|
}
|
|
@@ -1625,7 +1625,7 @@ function Us(e, t) {
|
|
|
1625
1625
|
var zs = /\d/, Ue = /\d\d/, Bs = /\d{3}/, ai = /\d{4}/, lr = /[+-]?\d{6}/, le = /\d\d?/, js = /\d\d\d\d?/, li = /\d\d\d\d\d\d?/, or = /\d{1,3}/, oi = /\d{1,4}/, cr = /[+-]?\d{1,6}/, fn = /\d+/, ur = /[+-]?\d+/, Mo = /Z|[+-]\d\d:?\d\d/gi, dr = /Z|[+-]\d\d(?::?\d\d)?/gi, Do = /[+-]?\d+(\.\d{1,3})?/, Yn = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, hn = /^[1-9]\d?/, ci = /^([1-9]\d|\d)/, Jn;
|
|
1626
1626
|
Jn = {};
|
|
1627
1627
|
function x(e, t, n) {
|
|
1628
|
-
Jn[e] =
|
|
1628
|
+
Jn[e] = ct(t) ? t : function(r, i) {
|
|
1629
1629
|
return r && n ? n : t;
|
|
1630
1630
|
};
|
|
1631
1631
|
}
|
|
@@ -1648,7 +1648,7 @@ function gt(e) {
|
|
|
1648
1648
|
function je(e) {
|
|
1649
1649
|
return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
|
|
1650
1650
|
}
|
|
1651
|
-
function
|
|
1651
|
+
function L(e) {
|
|
1652
1652
|
var t = +e, n = 0;
|
|
1653
1653
|
return t !== 0 && isFinite(t) && (n = je(t)), n;
|
|
1654
1654
|
}
|
|
@@ -1656,7 +1656,7 @@ var zr = {};
|
|
|
1656
1656
|
function ne(e, t) {
|
|
1657
1657
|
var n, r = t, i;
|
|
1658
1658
|
for (typeof e == "string" && (e = [e]), pt(t) && (r = function(s, l) {
|
|
1659
|
-
l[t] =
|
|
1659
|
+
l[t] = L(s);
|
|
1660
1660
|
}), i = e.length, n = 0; n < i; n++)
|
|
1661
1661
|
zr[e[n]] = r;
|
|
1662
1662
|
}
|
|
@@ -1689,7 +1689,7 @@ x("YYYYY", cr, lr);
|
|
|
1689
1689
|
x("YYYYYY", cr, lr);
|
|
1690
1690
|
ne(["YYYYY", "YYYYYY"], ke);
|
|
1691
1691
|
ne("YYYY", function(e, t) {
|
|
1692
|
-
t[ke] = e.length === 2 ? v.parseTwoDigitYear(e) :
|
|
1692
|
+
t[ke] = e.length === 2 ? v.parseTwoDigitYear(e) : L(e);
|
|
1693
1693
|
});
|
|
1694
1694
|
ne("YY", function(e, t) {
|
|
1695
1695
|
t[ke] = v.parseTwoDigitYear(e);
|
|
@@ -1701,7 +1701,7 @@ function wn(e) {
|
|
|
1701
1701
|
return fr(e) ? 366 : 365;
|
|
1702
1702
|
}
|
|
1703
1703
|
v.parseTwoDigitYear = function(e) {
|
|
1704
|
-
return
|
|
1704
|
+
return L(e) + (L(e) > 68 ? 1900 : 2e3);
|
|
1705
1705
|
};
|
|
1706
1706
|
var Gs = yn("FullYear", !0);
|
|
1707
1707
|
function Ro() {
|
|
@@ -1760,7 +1760,7 @@ function Qs(e, t, n) {
|
|
|
1760
1760
|
}
|
|
1761
1761
|
}
|
|
1762
1762
|
function To(e) {
|
|
1763
|
-
return e = Xe(e),
|
|
1763
|
+
return e = Xe(e), ct(this[e]) ? this[e]() : this;
|
|
1764
1764
|
}
|
|
1765
1765
|
function Io(e, t) {
|
|
1766
1766
|
if (typeof e == "object") {
|
|
@@ -1768,7 +1768,7 @@ function Io(e, t) {
|
|
|
1768
1768
|
var n = So(e), r, i = n.length;
|
|
1769
1769
|
for (r = 0; r < i; r++)
|
|
1770
1770
|
this[n[r].unit](e[n[r].unit]);
|
|
1771
|
-
} else if (e = Xe(e),
|
|
1771
|
+
} else if (e = Xe(e), ct(this[e]))
|
|
1772
1772
|
return this[e](t);
|
|
1773
1773
|
return this;
|
|
1774
1774
|
}
|
|
@@ -1807,7 +1807,7 @@ x("MMMM", function(e, t) {
|
|
|
1807
1807
|
return t.monthsRegex(e);
|
|
1808
1808
|
});
|
|
1809
1809
|
ne(["M", "MM"], function(e, t) {
|
|
1810
|
-
t[We] =
|
|
1810
|
+
t[We] = L(e) - 1;
|
|
1811
1811
|
});
|
|
1812
1812
|
ne(["MMM", "MMMM"], function(e, t, n, r) {
|
|
1813
1813
|
var i = n._locale.monthsParse(e, r, n._strict);
|
|
@@ -1839,7 +1839,7 @@ function $o(e, t, n) {
|
|
|
1839
1839
|
var r, i, s, l = e.toLocaleLowerCase();
|
|
1840
1840
|
if (!this._monthsParse)
|
|
1841
1841
|
for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], r = 0; r < 12; ++r)
|
|
1842
|
-
s =
|
|
1842
|
+
s = ot([2e3, r]), this._shortMonthsParse[r] = this.monthsShort(
|
|
1843
1843
|
s,
|
|
1844
1844
|
""
|
|
1845
1845
|
).toLocaleLowerCase(), this._longMonthsParse[r] = this.months(s, "").toLocaleLowerCase();
|
|
@@ -1850,7 +1850,7 @@ function Uo(e, t, n) {
|
|
|
1850
1850
|
if (this._monthsParseExact)
|
|
1851
1851
|
return $o.call(this, e, t, n);
|
|
1852
1852
|
for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), r = 0; r < 12; r++) {
|
|
1853
|
-
if (i =
|
|
1853
|
+
if (i = ot([2e3, r]), n && !this._longMonthsParse[r] && (this._longMonthsParse[r] = new RegExp(
|
|
1854
1854
|
"^" + this.months(i, "").replace(".", "") + "$",
|
|
1855
1855
|
"i"
|
|
1856
1856
|
), this._shortMonthsParse[r] = new RegExp(
|
|
@@ -1869,7 +1869,7 @@ function Ks(e, t) {
|
|
|
1869
1869
|
return e;
|
|
1870
1870
|
if (typeof t == "string") {
|
|
1871
1871
|
if (/^\d+$/.test(t))
|
|
1872
|
-
t =
|
|
1872
|
+
t = L(t);
|
|
1873
1873
|
else if (t = e.localeData().monthsParse(t), !pt(t))
|
|
1874
1874
|
return e;
|
|
1875
1875
|
}
|
|
@@ -1894,7 +1894,7 @@ function Xs() {
|
|
|
1894
1894
|
}
|
|
1895
1895
|
var t = [], n = [], r = [], i, s, l, o;
|
|
1896
1896
|
for (i = 0; i < 12; i++)
|
|
1897
|
-
s =
|
|
1897
|
+
s = ot([2e3, i]), l = gt(this.monthsShort(s, "")), o = gt(this.months(s, "")), t.push(l), n.push(o), r.push(o), r.push(l);
|
|
1898
1898
|
t.sort(e), n.sort(e), r.sort(e), this._monthsRegex = new RegExp("^(" + r.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp(
|
|
1899
1899
|
"^(" + n.join("|") + ")",
|
|
1900
1900
|
"i"
|
|
@@ -1936,11 +1936,11 @@ mn(["dd", "ddd", "dddd"], function(e, t, n, r) {
|
|
|
1936
1936
|
i != null ? t.d = i : E(n).invalidWeekday = e;
|
|
1937
1937
|
});
|
|
1938
1938
|
mn(["d", "e", "E"], function(e, t, n, r) {
|
|
1939
|
-
t[r] =
|
|
1939
|
+
t[r] = L(e);
|
|
1940
1940
|
});
|
|
1941
1941
|
mn("eHHmm", function(e, t, n) {
|
|
1942
1942
|
var r = e.length - 4;
|
|
1943
|
-
t.e =
|
|
1943
|
+
t.e = L(e.substr(0, r)), n._a[be] = L(e.substr(r, 2)), n._a[qe] = L(e.substr(r + 2));
|
|
1944
1944
|
});
|
|
1945
1945
|
function Go(e, t) {
|
|
1946
1946
|
return typeof e != "string" ? e : isNaN(e) ? (e = t.weekdaysParse(e), typeof e == "number" ? e : null) : parseInt(e, 10);
|
|
@@ -1982,7 +1982,7 @@ function ic(e, t, n) {
|
|
|
1982
1982
|
var r, i, s, l = e.toLocaleLowerCase();
|
|
1983
1983
|
if (!this._weekdaysParse)
|
|
1984
1984
|
for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], r = 0; r < 7; ++r)
|
|
1985
|
-
s =
|
|
1985
|
+
s = ot([2e3, 1]).day(r), this._minWeekdaysParse[r] = this.weekdaysMin(
|
|
1986
1986
|
s,
|
|
1987
1987
|
""
|
|
1988
1988
|
).toLocaleLowerCase(), this._shortWeekdaysParse[r] = this.weekdaysShort(
|
|
@@ -1996,7 +1996,7 @@ function sc(e, t, n) {
|
|
|
1996
1996
|
if (this._weekdaysParseExact)
|
|
1997
1997
|
return ic.call(this, e, t, n);
|
|
1998
1998
|
for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), r = 0; r < 7; r++) {
|
|
1999
|
-
if (i =
|
|
1999
|
+
if (i = ot([2e3, 1]).day(r), n && !this._fullWeekdaysParse[r] && (this._fullWeekdaysParse[r] = new RegExp(
|
|
2000
2000
|
"^" + this.weekdays(i, "").replace(".", "\\.?") + "$",
|
|
2001
2001
|
"i"
|
|
2002
2002
|
), this._shortWeekdaysParse[r] = new RegExp(
|
|
@@ -2051,7 +2051,7 @@ function fi() {
|
|
|
2051
2051
|
}
|
|
2052
2052
|
var t = [], n = [], r = [], i = [], s, l, o, c, u;
|
|
2053
2053
|
for (s = 0; s < 7; s++)
|
|
2054
|
-
l =
|
|
2054
|
+
l = ot([2e3, 1]).day(s), o = gt(this.weekdaysMin(l, "")), c = gt(this.weekdaysShort(l, "")), u = gt(this.weekdays(l, "")), t.push(o), n.push(c), r.push(u), i.push(o), i.push(c), i.push(u);
|
|
2055
2055
|
t.sort(e), n.sort(e), r.sort(e), i.sort(e), this._weekdaysRegex = new RegExp("^(" + i.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp(
|
|
2056
2056
|
"^(" + r.join("|") + ")",
|
|
2057
2057
|
"i"
|
|
@@ -2067,17 +2067,17 @@ function fc(e) {
|
|
|
2067
2067
|
var t, n;
|
|
2068
2068
|
Wo(this, e), ec(this, e);
|
|
2069
2069
|
for (n in e)
|
|
2070
|
-
V(e, n) && (t = e[n],
|
|
2070
|
+
V(e, n) && (t = e[n], ct(t) ? this[n] = t : this["_" + n] = t);
|
|
2071
2071
|
this._config = e, this._dayOfMonthOrdinalParseLenient = new RegExp(
|
|
2072
2072
|
(this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
|
|
2073
2073
|
);
|
|
2074
2074
|
}
|
|
2075
2075
|
function Br(e, t) {
|
|
2076
|
-
var n =
|
|
2076
|
+
var n = at({}, e), r;
|
|
2077
2077
|
for (r in t)
|
|
2078
|
-
V(t, r) && (Vt(e[r]) && Vt(t[r]) ? (n[r] = {},
|
|
2078
|
+
V(t, r) && (Vt(e[r]) && Vt(t[r]) ? (n[r] = {}, at(n[r], e[r]), at(n[r], t[r])) : t[r] != null ? n[r] = t[r] : delete n[r]);
|
|
2079
2079
|
for (r in e)
|
|
2080
|
-
V(e, r) && !V(t, r) && Vt(e[r]) && (n[r] =
|
|
2080
|
+
V(e, r) && !V(t, r) && Vt(e[r]) && (n[r] = at({}, n[r]));
|
|
2081
2081
|
return n;
|
|
2082
2082
|
}
|
|
2083
2083
|
function hi(e) {
|
|
@@ -2100,7 +2100,7 @@ var hc = {
|
|
|
2100
2100
|
};
|
|
2101
2101
|
function mc(e, t, n) {
|
|
2102
2102
|
var r = this._calendar[e] || this._calendar.sameElse;
|
|
2103
|
-
return
|
|
2103
|
+
return ct(r) ? r.call(t, n) : r;
|
|
2104
2104
|
}
|
|
2105
2105
|
var yc = {
|
|
2106
2106
|
LTS: "h:mm:ss A",
|
|
@@ -2147,7 +2147,7 @@ var Sc = {
|
|
|
2147
2147
|
};
|
|
2148
2148
|
function ta(e, t, n, r) {
|
|
2149
2149
|
var i = this._relativeTime[n];
|
|
2150
|
-
return
|
|
2150
|
+
return ct(i) ? i(e, t, n, r) : i.replace(/%d/i, e);
|
|
2151
2151
|
}
|
|
2152
2152
|
function bc(e, t, n, r) {
|
|
2153
2153
|
return this.postformat(
|
|
@@ -2162,7 +2162,7 @@ function bc(e, t, n, r) {
|
|
|
2162
2162
|
}
|
|
2163
2163
|
function na(e, t) {
|
|
2164
2164
|
var n = this._relativeTime[e > 0 ? "future" : "past"];
|
|
2165
|
-
return
|
|
2165
|
+
return ct(n) ? n(t) : n.replace(/%s/i, t);
|
|
2166
2166
|
}
|
|
2167
2167
|
function xc(e, t) {
|
|
2168
2168
|
return this.postformat(
|
|
@@ -2217,7 +2217,7 @@ x("WW", le, Ue);
|
|
|
2217
2217
|
mn(
|
|
2218
2218
|
["w", "ww", "W", "WW"],
|
|
2219
2219
|
function(e, t, n, r) {
|
|
2220
|
-
t[r.substr(0, 1)] =
|
|
2220
|
+
t[r.substr(0, 1)] = L(e);
|
|
2221
2221
|
}
|
|
2222
2222
|
);
|
|
2223
2223
|
function Dc(e) {
|
|
@@ -2292,30 +2292,30 @@ x("Hmm", js);
|
|
|
2292
2292
|
x("Hmmss", li);
|
|
2293
2293
|
ne(["H", "HH"], be);
|
|
2294
2294
|
ne(["k", "kk"], function(e, t, n) {
|
|
2295
|
-
var r =
|
|
2295
|
+
var r = L(e);
|
|
2296
2296
|
t[be] = r === 24 ? 0 : r;
|
|
2297
2297
|
});
|
|
2298
2298
|
ne(["a", "A"], function(e, t, n) {
|
|
2299
2299
|
n._isPm = n._locale.isPM(e), n._meridiem = e;
|
|
2300
2300
|
});
|
|
2301
2301
|
ne(["h", "hh"], function(e, t, n) {
|
|
2302
|
-
t[be] =
|
|
2302
|
+
t[be] = L(e), E(n).bigHour = !0;
|
|
2303
2303
|
});
|
|
2304
2304
|
ne("hmm", function(e, t, n) {
|
|
2305
2305
|
var r = e.length - 2;
|
|
2306
|
-
t[be] =
|
|
2306
|
+
t[be] = L(e.substr(0, r)), t[qe] = L(e.substr(r)), E(n).bigHour = !0;
|
|
2307
2307
|
});
|
|
2308
2308
|
ne("hmmss", function(e, t, n) {
|
|
2309
2309
|
var r = e.length - 4, i = e.length - 2;
|
|
2310
|
-
t[be] =
|
|
2310
|
+
t[be] = L(e.substr(0, r)), t[qe] = L(e.substr(r, 2)), t[yt] = L(e.substr(i)), E(n).bigHour = !0;
|
|
2311
2311
|
});
|
|
2312
2312
|
ne("Hmm", function(e, t, n) {
|
|
2313
2313
|
var r = e.length - 2;
|
|
2314
|
-
t[be] =
|
|
2314
|
+
t[be] = L(e.substr(0, r)), t[qe] = L(e.substr(r));
|
|
2315
2315
|
});
|
|
2316
2316
|
ne("Hmmss", function(e, t, n) {
|
|
2317
2317
|
var r = e.length - 4, i = e.length - 2;
|
|
2318
|
-
t[be] =
|
|
2318
|
+
t[be] = L(e.substr(0, r)), t[qe] = L(e.substr(r, 2)), t[yt] = L(e.substr(i));
|
|
2319
2319
|
});
|
|
2320
2320
|
function Tc(e) {
|
|
2321
2321
|
return (e + "").toLowerCase().charAt(0) === "p";
|
|
@@ -2679,7 +2679,7 @@ function iu(e) {
|
|
|
2679
2679
|
}
|
|
2680
2680
|
for (i = 0; i < u; i++)
|
|
2681
2681
|
s = 0, l = !1, t = ri({}, e), e._useUTC != null && (t._useUTC = e._useUTC), t._defaultDatePartsNow = c, t._f = e._f[i], pi(t), ni(t) && (l = !0), s += E(t).charsLeftOver, s += E(t).unusedTokens.length * 10, E(t).score = s, o ? s < r && (r = s, n = t) : (r == null || s < r || l) && (r = s, n = t, l && (o = !0));
|
|
2682
|
-
|
|
2682
|
+
at(e, n || t);
|
|
2683
2683
|
}
|
|
2684
2684
|
function su(e) {
|
|
2685
2685
|
if (!e._d) {
|
|
@@ -2771,7 +2771,7 @@ function hu(e) {
|
|
|
2771
2771
|
if (e[kn[r]]) {
|
|
2772
2772
|
if (n)
|
|
2773
2773
|
return !1;
|
|
2774
|
-
parseFloat(e[kn[r]]) !==
|
|
2774
|
+
parseFloat(e[kn[r]]) !== L(e[kn[r]]) && (n = !0);
|
|
2775
2775
|
}
|
|
2776
2776
|
return !0;
|
|
2777
2777
|
}
|
|
@@ -2796,7 +2796,7 @@ function Qr(e) {
|
|
|
2796
2796
|
function _u(e, t, n) {
|
|
2797
2797
|
var r = Math.min(e.length, t.length), i = Math.abs(e.length - t.length), s = 0, l;
|
|
2798
2798
|
for (l = 0; l < r; l++)
|
|
2799
|
-
|
|
2799
|
+
L(e[l]) !== L(t[l]) && s++;
|
|
2800
2800
|
return s + i;
|
|
2801
2801
|
}
|
|
2802
2802
|
function ha(e, t) {
|
|
@@ -2816,7 +2816,7 @@ ne(["Z", "ZZ"], function(e, t, n) {
|
|
|
2816
2816
|
var gu = /([\+\-]|\d\d)/gi;
|
|
2817
2817
|
function ki(e, t) {
|
|
2818
2818
|
var n = (t || "").match(e), r, i, s;
|
|
2819
|
-
return n === null || (r = n[n.length - 1] || [], i = (r + "").match(gu) || ["-", 0, 0], s = +(i[1] * 60) +
|
|
2819
|
+
return n === null || (r = n[n.length - 1] || [], i = (r + "").match(gu) || ["-", 0, 0], s = +(i[1] * 60) + L(i[2]), L(i[2]) > 59 || (i[0] === "+" ? s > 14 * 60 : s > 12 * 60)) ? null : s === 0 ? 0 : i[0] === "+" ? s : -s;
|
|
2820
2820
|
}
|
|
2821
2821
|
function wi(e, t) {
|
|
2822
2822
|
var n, r;
|
|
@@ -2873,7 +2873,7 @@ function Mu() {
|
|
|
2873
2873
|
if (!Ie(this._isDSTShifted))
|
|
2874
2874
|
return this._isDSTShifted;
|
|
2875
2875
|
var e = {}, t;
|
|
2876
|
-
return ri(e, this), e = ua(e), e._a ? (t = e._isUTC ?
|
|
2876
|
+
return ri(e, this), e = ua(e), e._a ? (t = e._isUTC ? ot(e._a) : de(e._a), this._isDSTShifted = this.isValid() && _u(e._a, t.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
|
|
2877
2877
|
}
|
|
2878
2878
|
function Du() {
|
|
2879
2879
|
return this.isValid() ? !this._isUTC : !1;
|
|
@@ -2893,11 +2893,11 @@ function it(e, t) {
|
|
|
2893
2893
|
M: e._months
|
|
2894
2894
|
} : pt(e) || !isNaN(+e) ? (n = {}, t ? n[t] = +e : n.milliseconds = +e) : (r = Ou.exec(e)) ? (i = r[1] === "-" ? -1 : 1, n = {
|
|
2895
2895
|
y: 0,
|
|
2896
|
-
d:
|
|
2897
|
-
h:
|
|
2898
|
-
m:
|
|
2899
|
-
s:
|
|
2900
|
-
ms:
|
|
2896
|
+
d: L(r[Fe]) * i,
|
|
2897
|
+
h: L(r[be]) * i,
|
|
2898
|
+
m: L(r[qe]) * i,
|
|
2899
|
+
s: L(r[yt]) * i,
|
|
2900
|
+
ms: L(Qr(r[Ht] * 1e3)) * i
|
|
2901
2901
|
// the millisecond decimal point is included in the match
|
|
2902
2902
|
}) : (r = Nu.exec(e)) ? (i = r[1] === "-" ? -1 : 1, n = {
|
|
2903
2903
|
y: Lt(r[2], i),
|
|
@@ -3002,7 +3002,7 @@ function Au(e, t) {
|
|
|
3002
3002
|
}
|
|
3003
3003
|
function Lu(e, t) {
|
|
3004
3004
|
arguments.length === 1 && (arguments[0] ? Tu(arguments[0]) ? (e = arguments[0], t = void 0) : Fu(arguments[0]) && (t = arguments[0], e = void 0) : (e = void 0, t = void 0));
|
|
3005
|
-
var n = e || de(), r = wi(n, this).startOf("day"), i = v.calendarFormat(this, r) || "sameElse", s = t && (
|
|
3005
|
+
var n = e || de(), r = wi(n, this).startOf("day"), i = v.calendarFormat(this, r) || "sameElse", s = t && (ct(t[i]) ? t[i].call(this, n) : t[i]);
|
|
3006
3006
|
return this.format(
|
|
3007
3007
|
s || this.localeData().calendar(i, this, de(n))
|
|
3008
3008
|
);
|
|
@@ -3086,7 +3086,7 @@ function Qu(e) {
|
|
|
3086
3086
|
return n.year() < 0 || n.year() > 9999 ? Bn(
|
|
3087
3087
|
n,
|
|
3088
3088
|
t ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"
|
|
3089
|
-
) :
|
|
3089
|
+
) : ct(Date.prototype.toISOString) ? t ? this.toDate().toISOString() : new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", Bn(n, "Z")) : Bn(
|
|
3090
3090
|
n,
|
|
3091
3091
|
t ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ"
|
|
3092
3092
|
);
|
|
@@ -3279,7 +3279,7 @@ function cd() {
|
|
|
3279
3279
|
return ni(this);
|
|
3280
3280
|
}
|
|
3281
3281
|
function ud() {
|
|
3282
|
-
return
|
|
3282
|
+
return at({}, E(this));
|
|
3283
3283
|
}
|
|
3284
3284
|
function dd() {
|
|
3285
3285
|
return E(this).overflow;
|
|
@@ -3452,7 +3452,7 @@ x("ggggg", cr, lr);
|
|
|
3452
3452
|
mn(
|
|
3453
3453
|
["gggg", "ggggg", "GGGG", "GGGGG"],
|
|
3454
3454
|
function(e, t, n, r) {
|
|
3455
|
-
t[r.substr(0, 2)] =
|
|
3455
|
+
t[r.substr(0, 2)] = L(e);
|
|
3456
3456
|
}
|
|
3457
3457
|
);
|
|
3458
3458
|
mn(["gg", "GG"], function(e, t, n, r) {
|
|
@@ -3503,7 +3503,7 @@ function Rd(e, t, n, r, i) {
|
|
|
3503
3503
|
N("Q", 0, "Qo", "quarter");
|
|
3504
3504
|
x("Q", zs);
|
|
3505
3505
|
ne("Q", function(e, t) {
|
|
3506
|
-
t[We] = (
|
|
3506
|
+
t[We] = (L(e) - 1) * 3;
|
|
3507
3507
|
});
|
|
3508
3508
|
function Td(e) {
|
|
3509
3509
|
return e == null ? Math.ceil((this.month() + 1) / 3) : this.month((e - 1) * 3 + this.month() % 3);
|
|
@@ -3516,14 +3516,14 @@ x("Do", function(e, t) {
|
|
|
3516
3516
|
});
|
|
3517
3517
|
ne(["D", "DD"], Fe);
|
|
3518
3518
|
ne("Do", function(e, t) {
|
|
3519
|
-
t[Fe] =
|
|
3519
|
+
t[Fe] = L(e.match(le)[0]);
|
|
3520
3520
|
});
|
|
3521
3521
|
var Ma = yn("Date", !0);
|
|
3522
3522
|
N("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
|
|
3523
3523
|
x("DDD", or);
|
|
3524
3524
|
x("DDDD", Bs);
|
|
3525
3525
|
ne(["DDD", "DDDD"], function(e, t, n) {
|
|
3526
|
-
n._dayOfYear =
|
|
3526
|
+
n._dayOfYear = L(e);
|
|
3527
3527
|
});
|
|
3528
3528
|
function Id(e) {
|
|
3529
3529
|
var t = Math.round(
|
|
@@ -3573,7 +3573,7 @@ var Yt, Da;
|
|
|
3573
3573
|
for (Yt = "SSSS"; Yt.length <= 9; Yt += "S")
|
|
3574
3574
|
x(Yt, fn);
|
|
3575
3575
|
function Ad(e, t) {
|
|
3576
|
-
t[Ht] =
|
|
3576
|
+
t[Ht] = L(("0." + e) * 1e3);
|
|
3577
3577
|
}
|
|
3578
3578
|
for (Yt = "S"; Yt.length <= 9; Yt += "S")
|
|
3579
3579
|
ne(Yt, Ad);
|
|
@@ -3729,7 +3729,7 @@ Z.weekdaysMinRegex = dc;
|
|
|
3729
3729
|
Z.isPM = Tc;
|
|
3730
3730
|
Z.meridiem = Fc;
|
|
3731
3731
|
function nr(e, t, n, r) {
|
|
3732
|
-
var i = kt(), s =
|
|
3732
|
+
var i = kt(), s = ot().set(r, t);
|
|
3733
3733
|
return i[n](s, e);
|
|
3734
3734
|
}
|
|
3735
3735
|
function Oa(e, t, n) {
|
|
@@ -3785,7 +3785,7 @@ Rt("en", {
|
|
|
3785
3785
|
],
|
|
3786
3786
|
dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
|
|
3787
3787
|
ordinal: function(e) {
|
|
3788
|
-
var t = e % 10, n =
|
|
3788
|
+
var t = e % 10, n = L(e % 100 / 10) === 1 ? "th" : t === 1 ? "st" : t === 2 ? "nd" : t === 3 ? "rd" : "th";
|
|
3789
3789
|
return e + n;
|
|
3790
3790
|
}
|
|
3791
3791
|
});
|
|
@@ -3916,7 +3916,7 @@ function Sf(e, t) {
|
|
|
3916
3916
|
if (!this.isValid())
|
|
3917
3917
|
return this.localeData().invalidDate();
|
|
3918
3918
|
var n = !1, r = nn, i, s;
|
|
3919
|
-
return typeof e == "object" && (t = e, e = !1), typeof e == "boolean" && (n = e), typeof t == "object" && (r =
|
|
3919
|
+
return typeof e == "object" && (t = e, e = !1), typeof e == "boolean" && (n = e), typeof t == "object" && (r = at(at({}, nn), t || {}), t.s != null && t.ss == null && (r.ss = t.s - 1)), i = this.localeData(), s = pf(this, !n, r, i), n && (s = na.call(i, +this, s)), i.postformat(s);
|
|
3920
3920
|
}
|
|
3921
3921
|
var Er = Math.abs;
|
|
3922
3922
|
function Xt(e) {
|
|
@@ -3974,7 +3974,7 @@ ne("X", function(e, t, n) {
|
|
|
3974
3974
|
n._d = new Date(parseFloat(e) * 1e3);
|
|
3975
3975
|
});
|
|
3976
3976
|
ne("x", function(e, t, n) {
|
|
3977
|
-
n._d = new Date(
|
|
3977
|
+
n._d = new Date(L(e));
|
|
3978
3978
|
});
|
|
3979
3979
|
//! moment.js
|
|
3980
3980
|
v.version = "2.31.0";
|
|
@@ -3983,7 +3983,7 @@ v.fn = f;
|
|
|
3983
3983
|
v.min = uu;
|
|
3984
3984
|
v.max = du;
|
|
3985
3985
|
v.now = fu;
|
|
3986
|
-
v.utc =
|
|
3986
|
+
v.utc = ot;
|
|
3987
3987
|
v.unix = Hd;
|
|
3988
3988
|
v.months = $d;
|
|
3989
3989
|
v.isDate = On;
|
|
@@ -5243,16 +5243,16 @@ const Bf = Ve(
|
|
|
5243
5243
|
R.current = U;
|
|
5244
5244
|
const ce = D(!1);
|
|
5245
5245
|
ie(() => {
|
|
5246
|
-
var
|
|
5246
|
+
var W, _e;
|
|
5247
5247
|
if (!ce.current) {
|
|
5248
5248
|
ce.current = !0;
|
|
5249
5249
|
return;
|
|
5250
5250
|
}
|
|
5251
|
-
(_e = (
|
|
5251
|
+
(_e = (W = H.current).onSelectionChange) == null || _e.call(W, [...U.selectedRows]);
|
|
5252
5252
|
}, [U.selectedRows]);
|
|
5253
|
-
const se = Ne(async (
|
|
5253
|
+
const se = Ne(async (W) => {
|
|
5254
5254
|
var _e, ee, Se, xt;
|
|
5255
|
-
if (
|
|
5255
|
+
if (W) {
|
|
5256
5256
|
if (he.current || X.current || !ae.current) return;
|
|
5257
5257
|
he.current = !0, A(!0);
|
|
5258
5258
|
} else {
|
|
@@ -5260,43 +5260,43 @@ const Bf = Ve(
|
|
|
5260
5260
|
X.current = !0, Y(!0), q(null);
|
|
5261
5261
|
}
|
|
5262
5262
|
try {
|
|
5263
|
-
const Mt =
|
|
5263
|
+
const Mt = W ? oe.current.length : 0, tt = await j.current({
|
|
5264
5264
|
limit: P.current,
|
|
5265
5265
|
offset: Mt
|
|
5266
|
-
}), Gt = tt.items, Qt =
|
|
5266
|
+
}), Gt = tt.items, Qt = W ? [...oe.current, ...Gt] : Gt;
|
|
5267
5267
|
oe.current = Qt, C(Qt);
|
|
5268
5268
|
const qt = tt.hasNext ?? !1;
|
|
5269
|
-
ae.current = qt, S(qt), tt.totalCount != null && Oe(tt.totalCount), (ee = (_e = H.current).onDataLoaded) == null || ee.call(_e, tt,
|
|
5269
|
+
ae.current = qt, S(qt), tt.totalCount != null && Oe(tt.totalCount), (ee = (_e = H.current).onDataLoaded) == null || ee.call(_e, tt, W);
|
|
5270
5270
|
} catch (Mt) {
|
|
5271
5271
|
q(Mt), (xt = (Se = H.current).onError) == null || xt.call(Se, Mt);
|
|
5272
5272
|
} finally {
|
|
5273
|
-
|
|
5273
|
+
W ? (he.current = !1, A(!1)) : (X.current = !1, Y(!1));
|
|
5274
5274
|
}
|
|
5275
5275
|
}, []), me = Ne(() => {
|
|
5276
5276
|
se(!0);
|
|
5277
5277
|
}, [se]), m = Ne(() => {
|
|
5278
5278
|
ae.current = !0, S(!0), se(!1);
|
|
5279
5279
|
}, [se]), k = Ne(async () => {
|
|
5280
|
-
const
|
|
5281
|
-
if (!
|
|
5280
|
+
const W = d.current;
|
|
5281
|
+
if (!W) {
|
|
5282
5282
|
ge(null);
|
|
5283
5283
|
return;
|
|
5284
5284
|
}
|
|
5285
5285
|
try {
|
|
5286
|
-
ge(await
|
|
5286
|
+
ge(await W());
|
|
5287
5287
|
} catch {
|
|
5288
5288
|
ge(null);
|
|
5289
5289
|
}
|
|
5290
5290
|
}, []), J = D(null), we = D(null);
|
|
5291
5291
|
ie(() => {
|
|
5292
|
-
const
|
|
5293
|
-
if (!
|
|
5292
|
+
const W = J.current, _e = we.current;
|
|
5293
|
+
if (!W || !_e || typeof IntersectionObserver > "u") return;
|
|
5294
5294
|
const ee = new IntersectionObserver(
|
|
5295
5295
|
(Se) => {
|
|
5296
5296
|
Se.some((xt) => xt.isIntersecting) && ae.current && !X.current && !he.current && me();
|
|
5297
5297
|
},
|
|
5298
5298
|
{
|
|
5299
|
-
root:
|
|
5299
|
+
root: W,
|
|
5300
5300
|
rootMargin: `0px 0px ${s}px 0px`,
|
|
5301
5301
|
threshold: 0
|
|
5302
5302
|
}
|
|
@@ -5309,24 +5309,24 @@ const Bf = Ve(
|
|
|
5309
5309
|
ie(() => {
|
|
5310
5310
|
Re.current !== t.dataFun && (Re.current = t.dataFun, m());
|
|
5311
5311
|
}, [t.dataFun, m]);
|
|
5312
|
-
const
|
|
5312
|
+
const ut = D(t.metaFun);
|
|
5313
5313
|
ie(() => {
|
|
5314
|
-
|
|
5314
|
+
ut.current !== t.metaFun && (ut.current = t.metaFun, k());
|
|
5315
5315
|
}, [t.metaFun, k]);
|
|
5316
|
-
const
|
|
5316
|
+
const dt = Ge(() => {
|
|
5317
5317
|
if (re)
|
|
5318
5318
|
return re.columns.map((ee, Se) => ({ column: ee, index: Se })).filter(({ column: ee }) => ee.showForDisplay !== !1).sort(
|
|
5319
5319
|
(ee, Se) => (ee.column.displayOrder ?? ee.index) - (Se.column.displayOrder ?? Se.index)
|
|
5320
5320
|
).map(({ column: ee }) => ee);
|
|
5321
|
-
const
|
|
5321
|
+
const W = /* @__PURE__ */ new Set(), _e = [];
|
|
5322
5322
|
for (const ee of w)
|
|
5323
5323
|
for (const Se of Object.keys(ee))
|
|
5324
|
-
|
|
5324
|
+
W.has(Se) || (W.add(Se), _e.push({ propertyPath: Se }));
|
|
5325
5325
|
return _e;
|
|
5326
5326
|
}, [re, w]), _n = (re == null ? void 0 : re.displayName) ?? "数据", ye = ws({
|
|
5327
5327
|
props: { dataFun: r, exportSelected: u, exportorFunc: p },
|
|
5328
5328
|
tableName: _n,
|
|
5329
|
-
columns:
|
|
5329
|
+
columns: dt,
|
|
5330
5330
|
currentRows: w,
|
|
5331
5331
|
selectedRows: U.selectedRows,
|
|
5332
5332
|
total: fe,
|
|
@@ -5335,7 +5335,7 @@ const Bf = Ve(
|
|
|
5335
5335
|
pageScopeLabel: "导出当前已加载"
|
|
5336
5336
|
}), et = D(ye);
|
|
5337
5337
|
et.current = ye;
|
|
5338
|
-
const
|
|
5338
|
+
const ft = Ne(() => {
|
|
5339
5339
|
et.current.onExportClick();
|
|
5340
5340
|
}, []);
|
|
5341
5341
|
Ke(
|
|
@@ -5365,41 +5365,41 @@ const Bf = Ve(
|
|
|
5365
5365
|
reload: m,
|
|
5366
5366
|
refresh: m,
|
|
5367
5367
|
loadNextPage: me,
|
|
5368
|
-
isRowSelected: (
|
|
5369
|
-
toggleRowSelection: (
|
|
5368
|
+
isRowSelected: (W) => R.current.isRowSelected(W),
|
|
5369
|
+
toggleRowSelection: (W, _e) => R.current.toggleRowSelection(W, _e),
|
|
5370
5370
|
clearSelection: () => R.current.clearSelection(),
|
|
5371
5371
|
selectAllOnPage: () => R.current.selectAllOnPage(),
|
|
5372
5372
|
invertSelectionOnPage: () => R.current.invertSelectionOnPage(),
|
|
5373
|
-
openExportDialog:
|
|
5373
|
+
openExportDialog: ft
|
|
5374
5374
|
}),
|
|
5375
|
-
[me,
|
|
5375
|
+
[me, ft, m]
|
|
5376
5376
|
);
|
|
5377
|
-
function Et(
|
|
5377
|
+
function Et(W, _e) {
|
|
5378
5378
|
const ee = t.children;
|
|
5379
5379
|
return typeof ee == "function" ? ee(
|
|
5380
|
-
|
|
5380
|
+
W,
|
|
5381
5381
|
_e
|
|
5382
|
-
) : ee ?? /* @__PURE__ */ a("pre", { className: "yk-infinite-list__item-json", children: JSON.stringify(
|
|
5382
|
+
) : ee ?? /* @__PURE__ */ a("pre", { className: "yk-infinite-list__item-json", children: JSON.stringify(W, null, 2) });
|
|
5383
5383
|
}
|
|
5384
5384
|
const St = t.error, bt = typeof St == "function" ? St({ error: B }) : St;
|
|
5385
5385
|
return /* @__PURE__ */ y("div", { ref: J, className: "yk-infinite-list", style: { height: o }, children: [
|
|
5386
|
-
w.map((
|
|
5386
|
+
w.map((W, _e) => /* @__PURE__ */ y(
|
|
5387
5387
|
"div",
|
|
5388
5388
|
{
|
|
5389
|
-
className: `yk-infinite-list__item${u && U.isRowSelected(
|
|
5389
|
+
className: `yk-infinite-list__item${u && U.isRowSelected(W) ? " is-selected" : ""}`,
|
|
5390
5390
|
children: [
|
|
5391
5391
|
u ? /* @__PURE__ */ a(
|
|
5392
5392
|
rr,
|
|
5393
5393
|
{
|
|
5394
5394
|
className: "yk-infinite-list__item-checkbox",
|
|
5395
|
-
checked: U.isRowSelected(
|
|
5396
|
-
onChange: (ee) => U.toggleRowSelection(
|
|
5395
|
+
checked: U.isRowSelected(W),
|
|
5396
|
+
onChange: (ee) => U.toggleRowSelection(W, ee.target.checked)
|
|
5397
5397
|
}
|
|
5398
5398
|
) : null,
|
|
5399
|
-
/* @__PURE__ */ a("div", { className: "yk-infinite-list__item-body", children: Et(
|
|
5399
|
+
/* @__PURE__ */ a("div", { className: "yk-infinite-list__item-body", children: Et(W, _e) })
|
|
5400
5400
|
]
|
|
5401
5401
|
},
|
|
5402
|
-
String(
|
|
5402
|
+
String(W[l])
|
|
5403
5403
|
)),
|
|
5404
5404
|
B ? /* @__PURE__ */ a("div", { className: "yk-infinite-list__status", children: bt ?? /* @__PURE__ */ a(ln, { description: `加载失败:${String(B)}`, children: /* @__PURE__ */ a(F, { type: "primary", onClick: m, children: "重试" }) }) }) : !$ && w.length === 0 ? (
|
|
5405
5405
|
/* 空状态:非加载中、无数据、无错误时显示 */
|
|
@@ -5424,7 +5424,7 @@ const Bf = Ve(
|
|
|
5424
5424
|
etaSeconds: ye.exportEtaSeconds,
|
|
5425
5425
|
cancelledVisible: ye.exportCancelledVisible,
|
|
5426
5426
|
cancelledRows: ye.exportCancelledRows,
|
|
5427
|
-
onExport: (
|
|
5427
|
+
onExport: (W) => void ye.doExport(W),
|
|
5428
5428
|
onCancelExport: ye.cancelExport,
|
|
5429
5429
|
onKeepPartial: () => void ye.keepPartialExport(),
|
|
5430
5430
|
onDiscardPartial: () => void ye.discardPartialExport(),
|
|
@@ -5953,16 +5953,16 @@ const mh = Ve(
|
|
|
5953
5953
|
const b = (ve = (G = g.dataTransfer) == null ? void 0 : G.files) == null ? void 0 : ve[0];
|
|
5954
5954
|
b && ce(b);
|
|
5955
5955
|
}
|
|
5956
|
-
const Re = D(0), [
|
|
5956
|
+
const Re = D(0), [ut, dt] = I(0);
|
|
5957
5957
|
ie(() => {
|
|
5958
5958
|
if (!C) return;
|
|
5959
|
-
Re.current = Date.now(),
|
|
5960
|
-
const g = setInterval(() =>
|
|
5959
|
+
Re.current = Date.now(), dt(Date.now());
|
|
5960
|
+
const g = setInterval(() => dt(Date.now()), 500);
|
|
5961
5961
|
return () => clearInterval(g);
|
|
5962
5962
|
}, [C]);
|
|
5963
5963
|
const _n = Y <= 0 ? 0 : Math.min(100, K / Y * 100), ye = !C || K === 0 ? "预计剩余 计算中…" : `预计剩余 ${qf(
|
|
5964
|
-
(
|
|
5965
|
-
)}`, [et,
|
|
5964
|
+
(ut - Re.current) / K * (Y - K)
|
|
5965
|
+
)}`, [et, ft] = I(360);
|
|
5966
5966
|
ie(() => {
|
|
5967
5967
|
const g = j.current;
|
|
5968
5968
|
if (!g) return;
|
|
@@ -5970,7 +5970,7 @@ const mh = Ve(
|
|
|
5970
5970
|
var Zt;
|
|
5971
5971
|
const ve = ((Zt = g.querySelector(".ant-table-thead")) == null ? void 0 : Zt.getBoundingClientRect().height) ?? 39;
|
|
5972
5972
|
let Ft = Math.max(120, Math.floor(g.clientHeight - ve - 1));
|
|
5973
|
-
typeof u == "number" && (Ft = Math.min(Ft, u)),
|
|
5973
|
+
typeof u == "number" && (Ft = Math.min(Ft, u)), ft(Ft);
|
|
5974
5974
|
};
|
|
5975
5975
|
b();
|
|
5976
5976
|
const G = new ResizeObserver(b);
|
|
@@ -5991,7 +5991,7 @@ const mh = Ve(
|
|
|
5991
5991
|
function bt(g) {
|
|
5992
5992
|
return g.status !== "invalid";
|
|
5993
5993
|
}
|
|
5994
|
-
function
|
|
5994
|
+
function W(g) {
|
|
5995
5995
|
var G;
|
|
5996
5996
|
const b = h.filter((ve) => g.includes(ve.rowNumber));
|
|
5997
5997
|
re(b), (G = t.onSelectionChange) == null || G.call(t, b);
|
|
@@ -6121,7 +6121,7 @@ const mh = Ve(
|
|
|
6121
6121
|
selectedRowKeys: St,
|
|
6122
6122
|
columnWidth: 44,
|
|
6123
6123
|
getCheckboxProps: (g) => ({ disabled: !bt(g) }),
|
|
6124
|
-
onChange:
|
|
6124
|
+
onChange: W
|
|
6125
6125
|
};
|
|
6126
6126
|
return /* @__PURE__ */ y(
|
|
6127
6127
|
"div",
|