@notificationapi/react 0.0.15 → 0.0.17
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/assets/Inbox.js +255 -246
- package/dist/assets/Notification.js +20 -21
- package/dist/components/Notifications/Inbox.d.ts +3 -1
- package/dist/components/Notifications/InboxHeader.d.ts +4 -2
- package/dist/components/Notifications/InboxHeader.js +46 -43
- package/dist/components/Notifications/Notification.d.ts +0 -1
- package/dist/components/Notifications/NotificationFeed.d.ts +3 -1
- package/dist/components/Notifications/NotificationFeed.js +32 -30
- package/dist/components/Notifications/NotificationLauncher.js +30 -31
- package/dist/components/Notifications/NotificationPopup.d.ts +5 -2
- package/dist/components/Notifications/NotificationPopup.js +1 -1
- package/package.json +1 -1
package/dist/assets/Inbox.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as nt, jsxs as mi } from "react/jsx-runtime";
|
|
2
2
|
import { InboxHeader as Un } from "../components/Notifications/InboxHeader.js";
|
|
3
|
-
import { K as et, c as Se, v as Ht, w as re, L as bt, _ as ze, d as ce, al as $t, A as bn, am as yn, ac as Ft, x as gi, p as vi, M as ue, O as st, an as pi, q as mt, t as hi, ao as Si, ap as bi, aq as yi, ar as Ci, z as $i, as as qn, h as dn, T as an, g as Wt, m as Nt, a as xt, r as Qt, at as Cn, u as J, Q as br, j as zn, D as xi, b as $n, n as
|
|
3
|
+
import { K as et, c as Se, v as Ht, w as re, L as bt, _ as ze, d as ce, al as $t, A as bn, am as yn, ac as Ft, x as gi, p as vi, M as ue, O as st, an as pi, q as mt, t as hi, ao as Si, ap as bi, aq as yi, ar as Ci, z as $i, as as qn, h as dn, T as an, g as Wt, m as Nt, a as xt, r as Qt, at as Cn, u as J, Q as br, j as zn, D as xi, b as $n, n as wi, N as Yn, o as Ei, au as Ii } from "./colors.js";
|
|
4
4
|
import { n as yr, K as ne, D as fn, E as Oi, G as Ni, u as en, o as _n, x as xn, m as Cr, f as Ri, I as nn, s as Mi, R as Pi, e as Di, h as zi, H as _i, p as Ti, F as Li, j as Tn, J as Bi, q as ji, d as Hi, L as Vi, M as Ai, O as Fi, Q as Wi, S as Ki, U as Xi, V as Gi } from "./index3.js";
|
|
5
5
|
import * as o from "react";
|
|
6
|
-
import G, { useState as jt, useMemo as
|
|
6
|
+
import G, { useState as jt, useMemo as wn, useCallback as Jn, useRef as De, useEffect as sn, useContext as Yt, createContext as Ui, Children as Qn } from "react";
|
|
7
7
|
import { u as qi, r as Jt, a as $r, N as Zn } from "./Notification.js";
|
|
8
8
|
import { NotificationAPIContext as xr } from "../components/Provider/index.js";
|
|
9
9
|
import { p as tn, a as kn, R as Yi } from "./BellOutlined.js";
|
|
@@ -135,7 +135,7 @@ const to = new et("antMoveDownIn", {
|
|
|
135
135
|
animationTimingFunction: e.motionEaseInOutCirc
|
|
136
136
|
}
|
|
137
137
|
}];
|
|
138
|
-
},
|
|
138
|
+
}, wr = new et("antSlideUpIn", {
|
|
139
139
|
"0%": {
|
|
140
140
|
transform: "scaleY(0.8)",
|
|
141
141
|
transformOrigin: "0% 0%",
|
|
@@ -146,7 +146,7 @@ const to = new et("antMoveDownIn", {
|
|
|
146
146
|
transformOrigin: "0% 0%",
|
|
147
147
|
opacity: 1
|
|
148
148
|
}
|
|
149
|
-
}),
|
|
149
|
+
}), Er = new et("antSlideUpOut", {
|
|
150
150
|
"0%": {
|
|
151
151
|
transform: "scaleY(1)",
|
|
152
152
|
transformOrigin: "0% 0%",
|
|
@@ -225,8 +225,8 @@ const to = new et("antMoveDownIn", {
|
|
|
225
225
|
}
|
|
226
226
|
}), vo = {
|
|
227
227
|
"slide-up": {
|
|
228
|
-
inKeyframes:
|
|
229
|
-
outKeyframes:
|
|
228
|
+
inKeyframes: wr,
|
|
229
|
+
outKeyframes: Er
|
|
230
230
|
},
|
|
231
231
|
"slide-down": {
|
|
232
232
|
inKeyframes: Ir,
|
|
@@ -400,7 +400,7 @@ function $o(e, t) {
|
|
|
400
400
|
$(null);
|
|
401
401
|
};
|
|
402
402
|
}, []);
|
|
403
|
-
var
|
|
403
|
+
var w = a && i !== Gt ? a(i) : b, P;
|
|
404
404
|
r || (P = {
|
|
405
405
|
opacity: S ? 0 : 1,
|
|
406
406
|
height: S ? 0 : Gt,
|
|
@@ -416,7 +416,7 @@ function $o(e, t) {
|
|
|
416
416
|
style: ce(ce({}, P), d)
|
|
417
417
|
}, C, h, {
|
|
418
418
|
ref: t
|
|
419
|
-
}),
|
|
419
|
+
}), w);
|
|
420
420
|
return l && (x = /* @__PURE__ */ o.createElement(fn, {
|
|
421
421
|
onResize: function(O) {
|
|
422
422
|
var I = O.offsetWidth;
|
|
@@ -437,7 +437,7 @@ function xo(e) {
|
|
|
437
437
|
}, t.port2.postMessage(void 0);
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function wo() {
|
|
441
441
|
var e = o.useRef(null), t = function(r) {
|
|
442
442
|
e.current || (e.current = [], xo(function() {
|
|
443
443
|
yn.unstable_batchedUpdates(function() {
|
|
@@ -457,10 +457,10 @@ function Zt(e, t) {
|
|
|
457
457
|
});
|
|
458
458
|
return [i, l];
|
|
459
459
|
}
|
|
460
|
-
var cn = /* @__PURE__ */ G.createContext(null),
|
|
460
|
+
var cn = /* @__PURE__ */ G.createContext(null), Eo = ["component"], Io = ["className"], Oo = ["className"], No = function(t, n) {
|
|
461
461
|
var r = o.useContext(cn);
|
|
462
462
|
if (!r) {
|
|
463
|
-
var i = t.component, a = i === void 0 ? "div" : i, l = bt(t,
|
|
463
|
+
var i = t.component, a = i === void 0 ? "div" : i, l = bt(t, Eo);
|
|
464
464
|
return /* @__PURE__ */ o.createElement(a, ze({}, l, {
|
|
465
465
|
ref: n
|
|
466
466
|
}));
|
|
@@ -479,14 +479,14 @@ function Mo(e) {
|
|
|
479
479
|
return "+ ".concat(e.length, " ...");
|
|
480
480
|
}
|
|
481
481
|
function Po(e, t) {
|
|
482
|
-
var n = e.prefixCls, r = n === void 0 ? "rc-overflow" : n, i = e.data, a = i === void 0 ? [] : i, l = e.renderItem, s = e.renderRawItem, u = e.itemKey, v = e.itemWidth, f = v === void 0 ? 10 : v, d = e.ssr, b = e.style, c = e.className, m = e.maxCount, g = e.renderRest, p = e.renderRawRest, h = e.suffix, S = e.component, $ = S === void 0 ? "div" : S,
|
|
482
|
+
var n = e.prefixCls, r = n === void 0 ? "rc-overflow" : n, i = e.data, a = i === void 0 ? [] : i, l = e.renderItem, s = e.renderRawItem, u = e.itemKey, v = e.itemWidth, f = v === void 0 ? 10 : v, d = e.ssr, b = e.style, c = e.className, m = e.maxCount, g = e.renderRest, p = e.renderRawRest, h = e.suffix, S = e.component, $ = S === void 0 ? "div" : S, w = e.itemComponent, P = e.onVisibleChange, C = bt(e, Ro), x = d === "full", D = wo(), O = Zt(D, null), I = re(O, 2), H = I[0], j = I[1], T = H || 0, M = Zt(D, /* @__PURE__ */ new Map()), _ = re(M, 2), Y = _[0], V = _[1], R = Zt(D, 0), L = re(R, 2), k = L[0], W = L[1], Ie = Zt(D, 0), de = re(Ie, 2), fe = de[0], me = de[1], Ae = Zt(D, 0), ie = re(Ae, 2), ye = ie[0], _e = ie[1], N = jt(null), y = re(N, 2), F = y[0], Q = y[1], B = jt(null), E = re(B, 2), ee = E[0], xe = E[1], ae = o.useMemo(function() {
|
|
483
483
|
return ee === null && x ? Number.MAX_SAFE_INTEGER : ee || 0;
|
|
484
|
-
}, [ee, H]), ve = jt(!1), Oe = re(ve, 2), le = Oe[0], $e = Oe[1], Ce = "".concat(r, "-item"), be = Math.max(k, fe), Ge = m === Pr,
|
|
484
|
+
}, [ee, H]), ve = jt(!1), Oe = re(ve, 2), le = Oe[0], $e = Oe[1], Ce = "".concat(r, "-item"), be = Math.max(k, fe), Ge = m === Pr, we = a.length && Ge, Te = m === Dr, Pe = we || typeof m == "number" && a.length > m, Le = wn(function() {
|
|
485
485
|
var oe = a;
|
|
486
|
-
return
|
|
487
|
-
}, [a, f, H, m,
|
|
488
|
-
return
|
|
489
|
-
}, [a, Le,
|
|
486
|
+
return we ? H === null && x ? oe = a : oe = a.slice(0, Math.min(a.length, T / f)) : typeof m == "number" && (oe = a.slice(0, m)), oe;
|
|
487
|
+
}, [a, f, H, m, we]), Be = wn(function() {
|
|
488
|
+
return we ? a.slice(ae + 1) : a.slice(Le.length);
|
|
489
|
+
}, [a, Le, we, ae]), Qe = Jn(function(oe, U) {
|
|
490
490
|
var Re;
|
|
491
491
|
return typeof u == "function" ? u(oe) : (Re = u && (oe == null ? void 0 : oe[u])) !== null && Re !== void 0 ? Re : U;
|
|
492
492
|
}, [u]), Ze = Jn(l || function(oe) {
|
|
@@ -540,15 +540,15 @@ function Po(e, t) {
|
|
|
540
540
|
}
|
|
541
541
|
}, [T, Y, fe, ye, Qe, Le]);
|
|
542
542
|
var yt = le && !!Be.length, ct = {};
|
|
543
|
-
F !== null &&
|
|
543
|
+
F !== null && we && (ct = {
|
|
544
544
|
position: "absolute",
|
|
545
545
|
left: F,
|
|
546
546
|
top: 0
|
|
547
547
|
});
|
|
548
548
|
var qe = {
|
|
549
549
|
prefixCls: Ce,
|
|
550
|
-
responsive:
|
|
551
|
-
component:
|
|
550
|
+
responsive: we,
|
|
551
|
+
component: w,
|
|
552
552
|
invalidate: Te
|
|
553
553
|
}, Mt = s ? function(oe, U) {
|
|
554
554
|
var Re = Qe(oe, U);
|
|
@@ -593,7 +593,7 @@ function Po(e, t) {
|
|
|
593
593
|
ref: t
|
|
594
594
|
}, C), Le.map(Mt), Pe ? gt : null, h && /* @__PURE__ */ o.createElement(kt, ze({}, qe, {
|
|
595
595
|
responsive: Ge,
|
|
596
|
-
responsiveDisabled: !
|
|
596
|
+
responsiveDisabled: !we,
|
|
597
597
|
order: ae,
|
|
598
598
|
className: "".concat(Ce, "-suffix"),
|
|
599
599
|
registerSize: Fe,
|
|
@@ -602,7 +602,7 @@ function Po(e, t) {
|
|
|
602
602
|
}), h));
|
|
603
603
|
return Ge && (ut = /* @__PURE__ */ o.createElement(fn, {
|
|
604
604
|
onResize: Xe,
|
|
605
|
-
disabled: !
|
|
605
|
+
disabled: !we
|
|
606
606
|
}, ut)), ut;
|
|
607
607
|
}
|
|
608
608
|
var rn = /* @__PURE__ */ o.forwardRef(Po);
|
|
@@ -611,7 +611,7 @@ rn.Item = Mr;
|
|
|
611
611
|
rn.RESPONSIVE = Pr;
|
|
612
612
|
rn.INVALIDATE = Dr;
|
|
613
613
|
var Do = function(t, n) {
|
|
614
|
-
var r, i = t.prefixCls, a = t.id, l = t.inputElement, s = t.disabled, u = t.tabIndex, v = t.autoFocus, f = t.autoComplete, d = t.editable, b = t.activeDescendantId, c = t.value, m = t.maxLength, g = t.onKeyDown, p = t.onMouseDown, h = t.onChange, S = t.onPaste, $ = t.onCompositionStart,
|
|
614
|
+
var r, i = t.prefixCls, a = t.id, l = t.inputElement, s = t.disabled, u = t.tabIndex, v = t.autoFocus, f = t.autoComplete, d = t.editable, b = t.activeDescendantId, c = t.value, m = t.maxLength, g = t.onKeyDown, p = t.onMouseDown, h = t.onChange, S = t.onPaste, $ = t.onCompositionStart, w = t.onCompositionEnd, P = t.open, C = t.attrs, x = l || /* @__PURE__ */ o.createElement("input", null), D = x, O = D.ref, I = D.props, H = I.onKeyDown, j = I.onChange, T = I.onMouseDown, M = I.onCompositionStart, _ = I.onCompositionEnd, Y = I.style;
|
|
615
615
|
return gi(!("maxLength" in x.props), "Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."), x = /* @__PURE__ */ o.cloneElement(x, ce(ce(ce({
|
|
616
616
|
type: "search"
|
|
617
617
|
}, I), {}, {
|
|
@@ -651,7 +651,7 @@ var Do = function(t, n) {
|
|
|
651
651
|
$(R), M && M(R);
|
|
652
652
|
},
|
|
653
653
|
onCompositionEnd: function(R) {
|
|
654
|
-
|
|
654
|
+
w(R), _ && _(R);
|
|
655
655
|
},
|
|
656
656
|
onPaste: S
|
|
657
657
|
})), x;
|
|
@@ -684,32 +684,32 @@ function jo(e) {
|
|
|
684
684
|
var rr = function(t) {
|
|
685
685
|
t.preventDefault(), t.stopPropagation();
|
|
686
686
|
}, Ho = function(t) {
|
|
687
|
-
var n = t.id, r = t.prefixCls, i = t.values, a = t.open, l = t.searchValue, s = t.autoClearSearchValue, u = t.inputRef, v = t.placeholder, f = t.disabled, d = t.mode, b = t.showSearch, c = t.autoFocus, m = t.autoComplete, g = t.activeDescendantId, p = t.tabIndex, h = t.removeIcon, S = t.maxTagCount, $ = t.maxTagTextLength,
|
|
687
|
+
var n = t.id, r = t.prefixCls, i = t.values, a = t.open, l = t.searchValue, s = t.autoClearSearchValue, u = t.inputRef, v = t.placeholder, f = t.disabled, d = t.mode, b = t.showSearch, c = t.autoFocus, m = t.autoComplete, g = t.activeDescendantId, p = t.tabIndex, h = t.removeIcon, S = t.maxTagCount, $ = t.maxTagTextLength, w = t.maxTagPlaceholder, P = w === void 0 ? function(Q) {
|
|
688
688
|
return "+ ".concat(Q.length, " ...");
|
|
689
|
-
} :
|
|
689
|
+
} : w, C = t.tagRender, x = t.onToggleOpen, D = t.onRemove, O = t.onInputChange, I = t.onInputPaste, H = t.onInputKeyDown, j = t.onInputMouseDown, T = t.onInputCompositionStart, M = t.onInputCompositionEnd, _ = o.useRef(null), Y = jt(0), V = re(Y, 2), R = V[0], L = V[1], k = jt(!1), W = re(k, 2), Ie = W[0], de = W[1], fe = "".concat(r, "-selection"), me = a || d === "multiple" && s === !1 || d === "tags" ? l : "", Ae = d === "tags" || d === "multiple" && s === !1 || b && (a || Ie);
|
|
690
690
|
Bo(function() {
|
|
691
691
|
L(_.current.scrollWidth);
|
|
692
692
|
}, [me]);
|
|
693
|
-
var ie = function(B,
|
|
693
|
+
var ie = function(B, E, ee, xe, ae) {
|
|
694
694
|
return /* @__PURE__ */ o.createElement("span", {
|
|
695
695
|
title: zr(B),
|
|
696
696
|
className: Se("".concat(fe, "-item"), ue({}, "".concat(fe, "-item-disabled"), ee))
|
|
697
697
|
}, /* @__PURE__ */ o.createElement("span", {
|
|
698
698
|
className: "".concat(fe, "-item-content")
|
|
699
|
-
},
|
|
699
|
+
}, E), xe && /* @__PURE__ */ o.createElement(mn, {
|
|
700
700
|
className: "".concat(fe, "-item-remove"),
|
|
701
701
|
onMouseDown: rr,
|
|
702
702
|
onClick: ae,
|
|
703
703
|
customizeIcon: h
|
|
704
704
|
}, "×"));
|
|
705
|
-
}, ye = function(B,
|
|
705
|
+
}, ye = function(B, E, ee, xe, ae, ve) {
|
|
706
706
|
var Oe = function($e) {
|
|
707
707
|
rr($e), x(!a);
|
|
708
708
|
};
|
|
709
709
|
return /* @__PURE__ */ o.createElement("span", {
|
|
710
710
|
onMouseDown: Oe
|
|
711
711
|
}, C({
|
|
712
|
-
label:
|
|
712
|
+
label: E,
|
|
713
713
|
value: B,
|
|
714
714
|
disabled: ee,
|
|
715
715
|
closable: xe,
|
|
@@ -717,7 +717,7 @@ var rr = function(t) {
|
|
|
717
717
|
isMaxTag: !!ve
|
|
718
718
|
}));
|
|
719
719
|
}, _e = function(B) {
|
|
720
|
-
var
|
|
720
|
+
var E = B.disabled, ee = B.label, xe = B.value, ae = !f && !E, ve = ee;
|
|
721
721
|
if (typeof $ == "number" && (typeof ee == "string" || typeof ee == "number")) {
|
|
722
722
|
var Oe = String(ve);
|
|
723
723
|
Oe.length > $ && (ve = "".concat(Oe.slice(0, $), "..."));
|
|
@@ -725,12 +725,12 @@ var rr = function(t) {
|
|
|
725
725
|
var le = function(Ce) {
|
|
726
726
|
Ce && Ce.stopPropagation(), D(B);
|
|
727
727
|
};
|
|
728
|
-
return typeof C == "function" ? ye(xe, ve,
|
|
728
|
+
return typeof C == "function" ? ye(xe, ve, E, ae, le) : ie(B, ve, E, ae, le);
|
|
729
729
|
}, N = function(B) {
|
|
730
|
-
var
|
|
731
|
-
return typeof C == "function" ? ye(void 0,
|
|
732
|
-
title:
|
|
733
|
-
},
|
|
730
|
+
var E = typeof P == "function" ? P(B) : P;
|
|
731
|
+
return typeof C == "function" ? ye(void 0, E, !1, !1, void 0, !0) : ie({
|
|
732
|
+
title: E
|
|
733
|
+
}, E, !1);
|
|
734
734
|
}, y = /* @__PURE__ */ o.createElement("div", {
|
|
735
735
|
className: "".concat(fe, "-search"),
|
|
736
736
|
style: {
|
|
@@ -779,7 +779,7 @@ var rr = function(t) {
|
|
|
779
779
|
className: "".concat(fe, "-placeholder")
|
|
780
780
|
}, v));
|
|
781
781
|
}, Vo = function(t) {
|
|
782
|
-
var n = t.inputElement, r = t.prefixCls, i = t.id, a = t.inputRef, l = t.disabled, s = t.autoFocus, u = t.autoComplete, v = t.activeDescendantId, f = t.mode, d = t.open, b = t.values, c = t.placeholder, m = t.tabIndex, g = t.showSearch, p = t.searchValue, h = t.activeValue, S = t.maxLength, $ = t.onInputKeyDown,
|
|
782
|
+
var n = t.inputElement, r = t.prefixCls, i = t.id, a = t.inputRef, l = t.disabled, s = t.autoFocus, u = t.autoComplete, v = t.activeDescendantId, f = t.mode, d = t.open, b = t.values, c = t.placeholder, m = t.tabIndex, g = t.showSearch, p = t.searchValue, h = t.activeValue, S = t.maxLength, $ = t.onInputKeyDown, w = t.onInputMouseDown, P = t.onInputChange, C = t.onInputPaste, x = t.onInputCompositionStart, D = t.onInputCompositionEnd, O = t.title, I = o.useState(!1), H = re(I, 2), j = H[0], T = H[1], M = f === "combobox", _ = M || g, Y = b[0], V = p || "";
|
|
783
783
|
M && h && !j && (V = h), o.useEffect(function() {
|
|
784
784
|
M && T(!1);
|
|
785
785
|
}, [M, h]);
|
|
@@ -806,7 +806,7 @@ var rr = function(t) {
|
|
|
806
806
|
activeDescendantId: v,
|
|
807
807
|
value: V,
|
|
808
808
|
onKeyDown: $,
|
|
809
|
-
onMouseDown:
|
|
809
|
+
onMouseDown: w,
|
|
810
810
|
onChange: function(Ie) {
|
|
811
811
|
T(!0), P(Ie);
|
|
812
812
|
},
|
|
@@ -835,11 +835,11 @@ var rr = function(t) {
|
|
|
835
835
|
}
|
|
836
836
|
};
|
|
837
837
|
});
|
|
838
|
-
var h = Rr(0), S = re(h, 2), $ = S[0],
|
|
838
|
+
var h = Rr(0), S = re(h, 2), $ = S[0], w = S[1], P = function(R) {
|
|
839
839
|
var L = R.which;
|
|
840
840
|
(L === ne.UP || L === ne.DOWN) && R.preventDefault(), g && g(R), L === ne.ENTER && s === "tags" && !i.current && !l && (c == null || c(R.target.value)), yo(L) && m(!0);
|
|
841
841
|
}, C = function() {
|
|
842
|
-
|
|
842
|
+
w(!0);
|
|
843
843
|
}, x = De(null), D = function(R) {
|
|
844
844
|
b(R, !0, i.current) !== !1 && m(!0);
|
|
845
845
|
}, O = function() {
|
|
@@ -927,7 +927,7 @@ var Fo = ["prefixCls", "disabled", "visible", "children", "popupElement", "anima
|
|
|
927
927
|
}, Ko = function(t, n) {
|
|
928
928
|
var r = t.prefixCls;
|
|
929
929
|
t.disabled;
|
|
930
|
-
var i = t.visible, a = t.children, l = t.popupElement, s = t.animation, u = t.transitionName, v = t.dropdownStyle, f = t.dropdownClassName, d = t.direction, b = d === void 0 ? "ltr" : d, c = t.placement, m = t.builtinPlacements, g = t.dropdownMatchSelectWidth, p = t.dropdownRender, h = t.dropdownAlign, S = t.getPopupContainer, $ = t.empty,
|
|
930
|
+
var i = t.visible, a = t.children, l = t.popupElement, s = t.animation, u = t.transitionName, v = t.dropdownStyle, f = t.dropdownClassName, d = t.direction, b = d === void 0 ? "ltr" : d, c = t.placement, m = t.builtinPlacements, g = t.dropdownMatchSelectWidth, p = t.dropdownRender, h = t.dropdownAlign, S = t.getPopupContainer, $ = t.empty, w = t.getTriggerDOMNode, P = t.onPopupVisibleChange, C = t.onPopupMouseEnter, x = bt(t, Fo), D = "".concat(r, "-dropdown"), O = l;
|
|
931
931
|
p && (O = p(l));
|
|
932
932
|
var I = o.useMemo(function() {
|
|
933
933
|
return m || Wo(g);
|
|
@@ -962,7 +962,7 @@ var Fo = ["prefixCls", "disabled", "visible", "children", "popupElement", "anima
|
|
|
962
962
|
getPopupContainer: S,
|
|
963
963
|
popupClassName: Se(f, ue({}, "".concat(D, "-empty"), $)),
|
|
964
964
|
popupStyle: M,
|
|
965
|
-
getTriggerDOMNode:
|
|
965
|
+
getTriggerDOMNode: w,
|
|
966
966
|
onPopupVisibleChange: P
|
|
967
967
|
}), a);
|
|
968
968
|
}, Tr = /* @__PURE__ */ o.forwardRef(Ko);
|
|
@@ -971,7 +971,7 @@ function ir(e, t) {
|
|
|
971
971
|
var n = e.key, r;
|
|
972
972
|
return "value" in e && (r = e.value), n ?? (r !== void 0 ? r : "rc-index-key-".concat(t));
|
|
973
973
|
}
|
|
974
|
-
function
|
|
974
|
+
function En(e) {
|
|
975
975
|
return typeof e < "u" && !Number.isNaN(e);
|
|
976
976
|
}
|
|
977
977
|
function Lr(e, t) {
|
|
@@ -1053,7 +1053,7 @@ function Uo(e) {
|
|
|
1053
1053
|
var qo = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction", "omitDomProps", "displayValues", "onDisplayValuesChange", "emptyOptions", "notFoundContent", "onClear", "mode", "disabled", "loading", "getInputElement", "getRawInputElement", "open", "defaultOpen", "onDropdownVisibleChange", "activeValue", "onActiveValueChange", "activeDescendantId", "searchValue", "autoClearSearchValue", "onSearch", "onSearchSplit", "tokenSeparators", "allowClear", "suffixIcon", "clearIcon", "OptionList", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "placement", "builtinPlacements", "getPopupContainer", "showAction", "onFocus", "onBlur", "onKeyUp", "onKeyDown", "onMouseDown"], Yo = ["value", "onChange", "removeIcon", "placeholder", "autoFocus", "maxTagCount", "maxTagTextLength", "maxTagPlaceholder", "choiceTransitionName", "onInputKeyDown", "onPopupScroll", "tabIndex"], un = function(t) {
|
|
1054
1054
|
return t === "tags" || t === "multiple";
|
|
1055
1055
|
}, Br = /* @__PURE__ */ o.forwardRef(function(e, t) {
|
|
1056
|
-
var n, r = e.id, i = e.prefixCls, a = e.className, l = e.showSearch, s = e.tagRender, u = e.direction, v = e.omitDomProps, f = e.displayValues, d = e.onDisplayValuesChange, b = e.emptyOptions, c = e.notFoundContent, m = c === void 0 ? "Not Found" : c, g = e.onClear, p = e.mode, h = e.disabled, S = e.loading, $ = e.getInputElement,
|
|
1056
|
+
var n, r = e.id, i = e.prefixCls, a = e.className, l = e.showSearch, s = e.tagRender, u = e.direction, v = e.omitDomProps, f = e.displayValues, d = e.onDisplayValuesChange, b = e.emptyOptions, c = e.notFoundContent, m = c === void 0 ? "Not Found" : c, g = e.onClear, p = e.mode, h = e.disabled, S = e.loading, $ = e.getInputElement, w = e.getRawInputElement, P = e.open, C = e.defaultOpen, x = e.onDropdownVisibleChange, D = e.activeValue, O = e.onActiveValueChange, I = e.activeDescendantId, H = e.searchValue, j = e.autoClearSearchValue, T = e.onSearch, M = e.onSearchSplit, _ = e.tokenSeparators, Y = e.allowClear, V = e.suffixIcon, R = e.clearIcon, L = e.OptionList, k = e.animation, W = e.transitionName, Ie = e.dropdownStyle, de = e.dropdownClassName, fe = e.dropdownMatchSelectWidth, me = e.dropdownRender, Ae = e.dropdownAlign, ie = e.placement, ye = e.builtinPlacements, _e = e.getPopupContainer, N = e.showAction, y = N === void 0 ? [] : N, F = e.onFocus, Q = e.onBlur, B = e.onKeyUp, E = e.onKeyDown, ee = e.onMouseDown, xe = bt(e, qo), ae = un(p), ve = (l !== void 0 ? l : ae) || p === "combobox", Oe = ce({}, xe);
|
|
1057
1057
|
Yo.forEach(function(Ne) {
|
|
1058
1058
|
delete Oe[Ne];
|
|
1059
1059
|
}), v == null || v.forEach(function(Ne) {
|
|
@@ -1063,7 +1063,7 @@ var qo = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
|
|
|
1063
1063
|
o.useEffect(function() {
|
|
1064
1064
|
be(Ni());
|
|
1065
1065
|
}, []);
|
|
1066
|
-
var Ge = o.useRef(null),
|
|
1066
|
+
var Ge = o.useRef(null), we = o.useRef(null), Te = o.useRef(null), Pe = o.useRef(null), Le = o.useRef(null), Be = o.useRef(!1), Qe = So(), Ze = re(Qe, 3), pe = Ze[0], Xe = Ze[1], it = Ze[2];
|
|
1067
1067
|
o.useImperativeHandle(t, function() {
|
|
1068
1068
|
var Ne, ge;
|
|
1069
1069
|
return {
|
|
@@ -1073,7 +1073,7 @@ var qo = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
|
|
|
1073
1073
|
var Je;
|
|
1074
1074
|
return (Je = Le.current) === null || Je === void 0 ? void 0 : Je.scrollTo(ft);
|
|
1075
1075
|
},
|
|
1076
|
-
nativeElement: Ge.current ||
|
|
1076
|
+
nativeElement: Ge.current || we.current
|
|
1077
1077
|
};
|
|
1078
1078
|
});
|
|
1079
1079
|
var Ue = o.useMemo(function() {
|
|
@@ -1082,7 +1082,7 @@ var qo = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
|
|
|
1082
1082
|
return H;
|
|
1083
1083
|
var ge = (Ne = f[0]) === null || Ne === void 0 ? void 0 : Ne.value;
|
|
1084
1084
|
return typeof ge == "string" || typeof ge == "number" ? String(ge) : "";
|
|
1085
|
-
}, [H, p, f]), Fe = p === "combobox" && typeof $ == "function" && $() || null, je = typeof
|
|
1085
|
+
}, [H, p, f]), Fe = p === "combobox" && typeof $ == "function" && $() || null, je = typeof w == "function" && w(), yt = hi(we, je == null || (n = je.props) === null || n === void 0 ? void 0 : n.ref), ct = o.useState(!1), qe = re(ct, 2), Mt = qe[0], gt = qe[1];
|
|
1086
1086
|
Ft(function() {
|
|
1087
1087
|
gt(!0);
|
|
1088
1088
|
}, []);
|
|
@@ -1101,10 +1101,10 @@ var qo = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
|
|
|
1101
1101
|
`].includes(Ne);
|
|
1102
1102
|
});
|
|
1103
1103
|
}, [_]), z = o.useContext(jn) || {}, q = z.maxCount, he = z.rawValues, Me = function(ge, dt, ft) {
|
|
1104
|
-
if (!(ae &&
|
|
1104
|
+
if (!(ae && En(q) && (he == null ? void 0 : he.size) >= q)) {
|
|
1105
1105
|
var Je = !0, lt = ge;
|
|
1106
1106
|
O == null || O(null);
|
|
1107
|
-
var Ot = Go(ge, _,
|
|
1107
|
+
var Ot = Go(ge, _, En(q) ? q - he.size : void 0), Tt = ft ? null : Ot;
|
|
1108
1108
|
return p !== "combobox" && Tt && (lt = "", M == null || M(Tt), A(!1), Je = !1), T && Ue !== lt && T(lt, {
|
|
1109
1109
|
source: dt ? "typing" : "effect"
|
|
1110
1110
|
}), Je;
|
|
@@ -1140,7 +1140,7 @@ var qo = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
|
|
|
1140
1140
|
var on;
|
|
1141
1141
|
(on = Le.current) === null || on === void 0 || on.onKeyDown.apply(on, [ge].concat(Xt));
|
|
1142
1142
|
}
|
|
1143
|
-
|
|
1143
|
+
E == null || E.apply(void 0, [ge].concat(Xt));
|
|
1144
1144
|
}, Vt = function(ge) {
|
|
1145
1145
|
for (var dt = arguments.length, ft = new Array(dt > 1 ? dt - 1 : 0), Je = 1; Je < dt; Je++)
|
|
1146
1146
|
ft[Je - 1] = arguments[Je];
|
|
@@ -1149,7 +1149,7 @@ var qo = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
|
|
|
1149
1149
|
(lt = Le.current) === null || lt === void 0 || lt.onKeyUp.apply(lt, [ge].concat(ft));
|
|
1150
1150
|
}
|
|
1151
1151
|
B == null || B.apply(void 0, [ge].concat(ft));
|
|
1152
|
-
},
|
|
1152
|
+
}, wt = function(ge) {
|
|
1153
1153
|
var dt = f.filter(function(ft) {
|
|
1154
1154
|
return ft !== ge;
|
|
1155
1155
|
});
|
|
@@ -1194,8 +1194,8 @@ var qo = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
|
|
|
1194
1194
|
function Dt() {
|
|
1195
1195
|
Ct({});
|
|
1196
1196
|
}
|
|
1197
|
-
var
|
|
1198
|
-
je && (
|
|
1197
|
+
var Et;
|
|
1198
|
+
je && (Et = function(ge) {
|
|
1199
1199
|
A(ge);
|
|
1200
1200
|
}), bo(function() {
|
|
1201
1201
|
var Ne;
|
|
@@ -1223,13 +1223,13 @@ var qo = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
|
|
|
1223
1223
|
showSearch: ve
|
|
1224
1224
|
}
|
|
1225
1225
|
}));
|
|
1226
|
-
var
|
|
1226
|
+
var Ee = function() {
|
|
1227
1227
|
var ge;
|
|
1228
1228
|
g == null || g(), (ge = Pe.current) === null || ge === void 0 || ge.focus(), d([], {
|
|
1229
1229
|
type: "clear",
|
|
1230
1230
|
values: f
|
|
1231
1231
|
}), Me("", !1, !1);
|
|
1232
|
-
}, Ke = po(i,
|
|
1232
|
+
}, Ke = po(i, Ee, f, Y, R, h, Ue, p), It = Ke.allowClear, Kt = Ke.clearIcon, di = /* @__PURE__ */ o.createElement(L, {
|
|
1233
1233
|
ref: Le
|
|
1234
1234
|
}), fi = Se(i, a, ue(ue(ue(ue(ue(ue(ue(ue(ue(ue({}, "".concat(i, "-focused"), pe), "".concat(i, "-multiple"), ae), "".concat(i, "-single"), !ae), "".concat(i, "-allow-clear"), Y), "".concat(i, "-show-arrow"), _t), "".concat(i, "-disabled"), h), "".concat(i, "-loading"), S), "".concat(i, "-open"), U), "".concat(i, "-customize-input"), Fe), "".concat(i, "-show-search"), ve)), Gn = /* @__PURE__ */ o.createElement(Tr, {
|
|
1235
1235
|
ref: Te,
|
|
@@ -1254,15 +1254,15 @@ var qo = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
|
|
|
1254
1254
|
// TODO: This is workaround and should be removed in `rc-select`
|
|
1255
1255
|
// And use new standard `nativeElement` for ref.
|
|
1256
1256
|
// But we should update `rc-resize-observer` first.
|
|
1257
|
-
|
|
1257
|
+
we.current || ge
|
|
1258
1258
|
);
|
|
1259
1259
|
},
|
|
1260
|
-
onPopupVisibleChange:
|
|
1260
|
+
onPopupVisibleChange: Et,
|
|
1261
1261
|
onPopupMouseEnter: Dt
|
|
1262
1262
|
}, je ? /* @__PURE__ */ o.cloneElement(je, {
|
|
1263
1263
|
ref: yt
|
|
1264
1264
|
}) : /* @__PURE__ */ o.createElement(_r, ze({}, e, {
|
|
1265
|
-
domRef:
|
|
1265
|
+
domRef: we,
|
|
1266
1266
|
prefixCls: i,
|
|
1267
1267
|
inputElement: Fe,
|
|
1268
1268
|
ref: Pe,
|
|
@@ -1279,7 +1279,7 @@ var qo = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
|
|
|
1279
1279
|
searchValue: Ue,
|
|
1280
1280
|
onSearch: Me,
|
|
1281
1281
|
onSearchSubmit: ot,
|
|
1282
|
-
onRemove:
|
|
1282
|
+
onRemove: wt,
|
|
1283
1283
|
tokenWithEnter: te
|
|
1284
1284
|
}))), gn;
|
|
1285
1285
|
return je ? gn = Gn : gn = /* @__PURE__ */ o.createElement("div", ze({
|
|
@@ -1415,8 +1415,8 @@ function ea(e, t, n, r, i, a, l) {
|
|
|
1415
1415
|
var s = De(0), u = De(null), v = De(null), f = De(!1), d = Hr(t, n, r, i);
|
|
1416
1416
|
function b(S, $) {
|
|
1417
1417
|
$t.cancel(u.current), s.current += $, v.current = $, !d(!1, $) && (or || S.preventDefault(), u.current = $t(function() {
|
|
1418
|
-
var
|
|
1419
|
-
l(s.current *
|
|
1418
|
+
var w = f.current ? 10 : 1;
|
|
1419
|
+
l(s.current * w), s.current = 0;
|
|
1420
1420
|
}));
|
|
1421
1421
|
}
|
|
1422
1422
|
function c(S, $) {
|
|
@@ -1428,8 +1428,8 @@ function ea(e, t, n, r, i, a, l) {
|
|
|
1428
1428
|
$t.cancel(g.current), g.current = $t(function() {
|
|
1429
1429
|
m.current = null;
|
|
1430
1430
|
}, 2);
|
|
1431
|
-
var $ = S.deltaX,
|
|
1432
|
-
(m.current === "sx" || !m.current && P &&
|
|
1431
|
+
var $ = S.deltaX, w = S.deltaY, P = S.shiftKey, C = $, x = w;
|
|
1432
|
+
(m.current === "sx" || !m.current && P && w && !$) && (C = w, x = 0, m.current = "sx");
|
|
1433
1433
|
var D = Math.abs(C), O = Math.abs(x);
|
|
1434
1434
|
m.current === null && (m.current = a && D > O ? "x" : "y"), m.current === "y" ? b(S, x) : c(S, C);
|
|
1435
1435
|
}
|
|
@@ -1540,7 +1540,7 @@ function oa(e, t, n, r, i, a, l, s) {
|
|
|
1540
1540
|
return;
|
|
1541
1541
|
}
|
|
1542
1542
|
a();
|
|
1543
|
-
var c = d.targetAlign, m = d.originAlign, g = d.index, p = d.offset, h = e.current.clientHeight, S = !1, $ = c,
|
|
1543
|
+
var c = d.targetAlign, m = d.originAlign, g = d.index, p = d.offset, h = e.current.clientHeight, S = !1, $ = c, w = null;
|
|
1544
1544
|
if (h) {
|
|
1545
1545
|
for (var P = c || m, C = 0, x = 0, D = 0, O = Math.min(t.length - 1, g), I = 0; I <= O; I += 1) {
|
|
1546
1546
|
var H = i(t[I]);
|
|
@@ -1559,22 +1559,22 @@ function oa(e, t, n, r, i, a, l, s) {
|
|
|
1559
1559
|
}
|
|
1560
1560
|
switch (P) {
|
|
1561
1561
|
case "top":
|
|
1562
|
-
|
|
1562
|
+
w = x - p;
|
|
1563
1563
|
break;
|
|
1564
1564
|
case "bottom":
|
|
1565
|
-
|
|
1565
|
+
w = D - h + p;
|
|
1566
1566
|
break;
|
|
1567
1567
|
default: {
|
|
1568
1568
|
var V = e.current.scrollTop, R = V + h;
|
|
1569
1569
|
x < V ? $ = "top" : D > R && ($ = "bottom");
|
|
1570
1570
|
}
|
|
1571
1571
|
}
|
|
1572
|
-
|
|
1572
|
+
w !== null && l(w), w !== d.lastTop && (S = !0);
|
|
1573
1573
|
}
|
|
1574
1574
|
S && b(ce(ce({}, d), {}, {
|
|
1575
1575
|
times: d.times + 1,
|
|
1576
1576
|
targetAlign: $,
|
|
1577
|
-
lastTop:
|
|
1577
|
+
lastTop: w
|
|
1578
1578
|
}));
|
|
1579
1579
|
} else
|
|
1580
1580
|
process.env.NODE_ENV !== "production" && (d == null ? void 0 : d.times) === lr && st(!1, "Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.");
|
|
@@ -1605,7 +1605,7 @@ function sr(e, t) {
|
|
|
1605
1605
|
return n[t ? "pageX" : "pageY"];
|
|
1606
1606
|
}
|
|
1607
1607
|
var On = /* @__PURE__ */ o.forwardRef(function(e, t) {
|
|
1608
|
-
var n = e.prefixCls, r = e.rtl, i = e.scrollOffset, a = e.scrollRange, l = e.onStartMove, s = e.onStopMove, u = e.onScroll, v = e.horizontal, f = e.spinSize, d = e.containerSize, b = e.style, c = e.thumbStyle, m = o.useState(!1), g = re(m, 2), p = g[0], h = g[1], S = o.useState(null), $ = re(S, 2),
|
|
1608
|
+
var n = e.prefixCls, r = e.rtl, i = e.scrollOffset, a = e.scrollRange, l = e.onStartMove, s = e.onStopMove, u = e.onScroll, v = e.horizontal, f = e.spinSize, d = e.containerSize, b = e.style, c = e.thumbStyle, m = o.useState(!1), g = re(m, 2), p = g[0], h = g[1], S = o.useState(null), $ = re(S, 2), w = $[0], P = $[1], C = o.useState(null), x = re(C, 2), D = x[0], O = x[1], I = !r, H = o.useRef(), j = o.useRef(), T = o.useState(!1), M = re(T, 2), _ = M[0], Y = M[1], V = o.useRef(), R = function() {
|
|
1609
1609
|
clearTimeout(V.current), Y(!0), V.current = setTimeout(function() {
|
|
1610
1610
|
Y(!1);
|
|
1611
1611
|
}, 3e3);
|
|
@@ -1619,13 +1619,13 @@ var On = /* @__PURE__ */ o.forwardRef(function(e, t) {
|
|
|
1619
1619
|
}, de = o.useRef({
|
|
1620
1620
|
top: W,
|
|
1621
1621
|
dragging: p,
|
|
1622
|
-
pageY:
|
|
1622
|
+
pageY: w,
|
|
1623
1623
|
startTop: D
|
|
1624
1624
|
});
|
|
1625
1625
|
de.current = {
|
|
1626
1626
|
top: W,
|
|
1627
1627
|
dragging: p,
|
|
1628
|
-
pageY:
|
|
1628
|
+
pageY: w,
|
|
1629
1629
|
startTop: D
|
|
1630
1630
|
};
|
|
1631
1631
|
var fe = function(y) {
|
|
@@ -1645,7 +1645,7 @@ var On = /* @__PURE__ */ o.forwardRef(function(e, t) {
|
|
|
1645
1645
|
Ae.current = k, o.useEffect(function() {
|
|
1646
1646
|
if (p) {
|
|
1647
1647
|
var N, y = function(B) {
|
|
1648
|
-
var
|
|
1648
|
+
var E = de.current, ee = E.dragging, xe = E.pageY, ae = E.startTop;
|
|
1649
1649
|
if ($t.cancel(N), ee) {
|
|
1650
1650
|
var ve = sr(B, v) - xe, Oe = ae;
|
|
1651
1651
|
!I && v ? Oe -= ve : Oe += ve;
|
|
@@ -1702,13 +1702,13 @@ var la = ["prefixCls", "className", "height", "itemHeight", "fullHeight", "style
|
|
|
1702
1702
|
overflowAnchor: "none"
|
|
1703
1703
|
};
|
|
1704
1704
|
function ua(e, t) {
|
|
1705
|
-
var n = e.prefixCls, r = n === void 0 ? "rc-virtual-list" : n, i = e.className, a = e.height, l = e.itemHeight, s = e.fullHeight, u = s === void 0 ? !0 : s, v = e.style, f = e.data, d = e.children, b = e.itemKey, c = e.virtual, m = e.direction, g = e.scrollWidth, p = e.component, h = p === void 0 ? "div" : p, S = e.onScroll, $ = e.onVirtualScroll,
|
|
1705
|
+
var n = e.prefixCls, r = n === void 0 ? "rc-virtual-list" : n, i = e.className, a = e.height, l = e.itemHeight, s = e.fullHeight, u = s === void 0 ? !0 : s, v = e.style, f = e.data, d = e.children, b = e.itemKey, c = e.virtual, m = e.direction, g = e.scrollWidth, p = e.component, h = p === void 0 ? "div" : p, S = e.onScroll, $ = e.onVirtualScroll, w = e.onVisibleChange, P = e.innerProps, C = e.extraRender, x = e.styles, D = bt(e, la), O = o.useCallback(function(X) {
|
|
1706
1706
|
return typeof b == "function" ? b(X) : X == null ? void 0 : X[b];
|
|
1707
1707
|
}, [b]), I = ra(O), H = re(I, 4), j = H[0], T = H[1], M = H[2], _ = H[3], Y = !!(c !== !1 && a && l), V = o.useMemo(function() {
|
|
1708
1708
|
return Object.values(M.maps).reduce(function(X, K) {
|
|
1709
1709
|
return X + K;
|
|
1710
1710
|
}, 0);
|
|
1711
|
-
}, [M.id, M.maps]), R = Y && f && (Math.max(l * f.length, V) > a || !!g), L = m === "rtl", k = Se(r, ue({}, "".concat(r, "-rtl"), L), i), W = f || sa, Ie = De(), de = De(), fe = De(), me = jt(0), Ae = re(me, 2), ie = Ae[0], ye = Ae[1], _e = jt(0), N = re(_e, 2), y = N[0], F = N[1], Q = jt(!1), B = re(Q, 2),
|
|
1711
|
+
}, [M.id, M.maps]), R = Y && f && (Math.max(l * f.length, V) > a || !!g), L = m === "rtl", k = Se(r, ue({}, "".concat(r, "-rtl"), L), i), W = f || sa, Ie = De(), de = De(), fe = De(), me = jt(0), Ae = re(me, 2), ie = Ae[0], ye = Ae[1], _e = jt(0), N = re(_e, 2), y = N[0], F = N[1], Q = jt(!1), B = re(Q, 2), E = B[0], ee = B[1], xe = function() {
|
|
1712
1712
|
ee(!0);
|
|
1713
1713
|
}, ae = function() {
|
|
1714
1714
|
ee(!1);
|
|
@@ -1728,7 +1728,7 @@ function ua(e, t) {
|
|
|
1728
1728
|
end: W.length
|
|
1729
1729
|
}), $e = De(), Ce = ko(W, O), be = re(Ce, 1), Ge = be[0];
|
|
1730
1730
|
$e.current = Ge;
|
|
1731
|
-
var
|
|
1731
|
+
var we = o.useMemo(function() {
|
|
1732
1732
|
if (!Y)
|
|
1733
1733
|
return {
|
|
1734
1734
|
scrollHeight: void 0,
|
|
@@ -1746,7 +1746,7 @@ function ua(e, t) {
|
|
|
1746
1746
|
};
|
|
1747
1747
|
}
|
|
1748
1748
|
for (var K = 0, se, Ve, pt, Pt = W.length, Ct = 0; Ct < Pt; Ct += 1) {
|
|
1749
|
-
var Dt = W[Ct],
|
|
1749
|
+
var Dt = W[Ct], Et = O(Dt), zt = M.get(Et), _t = K + (zt === void 0 ? l : zt);
|
|
1750
1750
|
_t >= ie && se === void 0 && (se = Ct, Ve = K), _t > ie + a && pt === void 0 && (pt = Ct), K = _t;
|
|
1751
1751
|
}
|
|
1752
1752
|
return se === void 0 && (se = 0, Ve = 0, pt = Math.ceil(a / l)), pt === void 0 && (pt = W.length - 1), pt = Math.min(pt + 1, W.length - 1), {
|
|
@@ -1755,7 +1755,7 @@ function ua(e, t) {
|
|
|
1755
1755
|
end: pt,
|
|
1756
1756
|
offset: Ve
|
|
1757
1757
|
};
|
|
1758
|
-
}, [R, Y, ie, W, _, a]), Te =
|
|
1758
|
+
}, [R, Y, ie, W, _, a]), Te = we.scrollHeight, Pe = we.start, Le = we.end, Be = we.offset;
|
|
1759
1759
|
le.current.start = Pe, le.current.end = Le;
|
|
1760
1760
|
var Qe = o.useState({
|
|
1761
1761
|
width: 0,
|
|
@@ -1851,9 +1851,9 @@ function ua(e, t) {
|
|
|
1851
1851
|
}
|
|
1852
1852
|
};
|
|
1853
1853
|
}), Ft(function() {
|
|
1854
|
-
if (
|
|
1854
|
+
if (w) {
|
|
1855
1855
|
var X = W.slice(Pe, Le + 1);
|
|
1856
|
-
|
|
1856
|
+
w(X, W);
|
|
1857
1857
|
}
|
|
1858
1858
|
}, [Pe, Le, W]);
|
|
1859
1859
|
var Ye = ta(W, O, M, l), at = C == null ? void 0 : C({
|
|
@@ -1864,8 +1864,8 @@ function ua(e, t) {
|
|
|
1864
1864
|
offsetY: Be,
|
|
1865
1865
|
rtl: L,
|
|
1866
1866
|
getSize: Ye
|
|
1867
|
-
}), Vt = Qo(W, Pe, Le, g, y, j, d, ve),
|
|
1868
|
-
a && (
|
|
1867
|
+
}), Vt = Qo(W, Pe, Le, g, y, j, d, ve), wt = null;
|
|
1868
|
+
a && (wt = ce(ue({}, u ? "height" : "maxHeight", a), ca), Y && (wt.overflowY = "hidden", g && (wt.overflowX = "hidden"), E && (wt.pointerEvents = "none")));
|
|
1869
1869
|
var vt = {};
|
|
1870
1870
|
return L && (vt.dir = "rtl"), /* @__PURE__ */ o.createElement("div", ze({
|
|
1871
1871
|
ref: fe,
|
|
@@ -1877,7 +1877,7 @@ function ua(e, t) {
|
|
|
1877
1877
|
onResize: it
|
|
1878
1878
|
}, /* @__PURE__ */ o.createElement(h, {
|
|
1879
1879
|
className: "".concat(r, "-holder"),
|
|
1880
|
-
style:
|
|
1880
|
+
style: wt,
|
|
1881
1881
|
ref: Ie,
|
|
1882
1882
|
onScroll: te,
|
|
1883
1883
|
onMouseEnter: tt
|
|
@@ -1931,13 +1931,13 @@ function ur(e) {
|
|
|
1931
1931
|
return typeof e == "string" || typeof e == "number";
|
|
1932
1932
|
}
|
|
1933
1933
|
var ma = function(t, n) {
|
|
1934
|
-
var r = ho(), i = r.prefixCls, a = r.id, l = r.open, s = r.multiple, u = r.mode, v = r.searchValue, f = r.toggleOpen, d = r.notFoundContent, b = r.onPopupScroll, c = o.useContext(jn), m = c.maxCount, g = c.flattenOptions, p = c.onActiveValue, h = c.defaultActiveFirstOption, S = c.onSelect, $ = c.menuItemSelectedIcon,
|
|
1934
|
+
var r = ho(), i = r.prefixCls, a = r.id, l = r.open, s = r.multiple, u = r.mode, v = r.searchValue, f = r.toggleOpen, d = r.notFoundContent, b = r.onPopupScroll, c = o.useContext(jn), m = c.maxCount, g = c.flattenOptions, p = c.onActiveValue, h = c.defaultActiveFirstOption, S = c.onSelect, $ = c.menuItemSelectedIcon, w = c.rawValues, P = c.fieldNames, C = c.virtual, x = c.direction, D = c.listHeight, O = c.listItemHeight, I = c.optionRender, H = "".concat(i, "-item"), j = Ci(function() {
|
|
1935
1935
|
return g;
|
|
1936
1936
|
}, [l, g], function(N, y) {
|
|
1937
1937
|
return y[0] && N[1] !== y[1];
|
|
1938
1938
|
}), T = o.useRef(null), M = o.useMemo(function() {
|
|
1939
|
-
return s &&
|
|
1940
|
-
}, [s, m,
|
|
1939
|
+
return s && En(m) && (w == null ? void 0 : w.size) >= m;
|
|
1940
|
+
}, [s, m, w == null ? void 0 : w.size]), _ = function(y) {
|
|
1941
1941
|
y.preventDefault();
|
|
1942
1942
|
}, Y = function(y) {
|
|
1943
1943
|
var F;
|
|
@@ -1946,9 +1946,9 @@ var ma = function(t, n) {
|
|
|
1946
1946
|
} : y);
|
|
1947
1947
|
}, V = function(y) {
|
|
1948
1948
|
for (var F = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1, Q = j.length, B = 0; B < Q; B += 1) {
|
|
1949
|
-
var
|
|
1949
|
+
var E = (y + B * F + Q) % Q, ee = j[E] || {}, xe = ee.group, ae = ee.data;
|
|
1950
1950
|
if (!xe && !(ae != null && ae.disabled) && !M)
|
|
1951
|
-
return
|
|
1951
|
+
return E;
|
|
1952
1952
|
}
|
|
1953
1953
|
return -1;
|
|
1954
1954
|
}, R = o.useState(function() {
|
|
@@ -1969,14 +1969,14 @@ var ma = function(t, n) {
|
|
|
1969
1969
|
Ie(h !== !1 ? V(0) : -1);
|
|
1970
1970
|
}, [j.length, v]);
|
|
1971
1971
|
var de = o.useCallback(function(N) {
|
|
1972
|
-
return
|
|
1973
|
-
}, [u, mt(
|
|
1972
|
+
return w.has(N) && u !== "combobox";
|
|
1973
|
+
}, [u, mt(w).toString(), w.size]);
|
|
1974
1974
|
sn(function() {
|
|
1975
1975
|
var N = setTimeout(function() {
|
|
1976
|
-
if (!s && l &&
|
|
1977
|
-
var F = Array.from(
|
|
1978
|
-
var
|
|
1979
|
-
return
|
|
1976
|
+
if (!s && l && w.size === 1) {
|
|
1977
|
+
var F = Array.from(w)[0], Q = j.findIndex(function(B) {
|
|
1978
|
+
var E = B.data;
|
|
1979
|
+
return E.value === F;
|
|
1980
1980
|
});
|
|
1981
1981
|
Q !== -1 && (Ie(Q), Y(Q));
|
|
1982
1982
|
}
|
|
@@ -1991,7 +1991,7 @@ var ma = function(t, n) {
|
|
|
1991
1991
|
}, [l, v]);
|
|
1992
1992
|
var fe = function(y) {
|
|
1993
1993
|
y !== void 0 && S(y, {
|
|
1994
|
-
selected: !
|
|
1994
|
+
selected: !w.has(y)
|
|
1995
1995
|
}), s || f(!1);
|
|
1996
1996
|
};
|
|
1997
1997
|
if (o.useImperativeHandle(n, function() {
|
|
@@ -2005,8 +2005,8 @@ var ma = function(t, n) {
|
|
|
2005
2005
|
case ne.DOWN: {
|
|
2006
2006
|
var B = 0;
|
|
2007
2007
|
if (F === ne.UP ? B = -1 : F === ne.DOWN ? B = 1 : da() && Q && (F === ne.N ? B = 1 : F === ne.P && (B = -1)), B !== 0) {
|
|
2008
|
-
var
|
|
2009
|
-
Y(
|
|
2008
|
+
var E = V(k + B, B);
|
|
2009
|
+
Y(E), Ie(E, !0);
|
|
2010
2010
|
}
|
|
2011
2011
|
break;
|
|
2012
2012
|
}
|
|
@@ -2048,9 +2048,9 @@ var ma = function(t, n) {
|
|
|
2048
2048
|
var F = j[y];
|
|
2049
2049
|
if (!F)
|
|
2050
2050
|
return null;
|
|
2051
|
-
var Q = F.data || {}, B = Q.value,
|
|
2051
|
+
var Q = F.data || {}, B = Q.value, E = F.group, ee = tn(Q, !0), xe = Ae(F);
|
|
2052
2052
|
return F ? /* @__PURE__ */ o.createElement("div", ze({
|
|
2053
|
-
"aria-label": typeof xe == "string" && !
|
|
2053
|
+
"aria-label": typeof xe == "string" && !E ? xe : null
|
|
2054
2054
|
}, ee, {
|
|
2055
2055
|
key: y
|
|
2056
2056
|
}, ie(F, y), {
|
|
@@ -2079,19 +2079,19 @@ var ma = function(t, n) {
|
|
|
2079
2079
|
direction: x,
|
|
2080
2080
|
innerProps: C ? null : _e
|
|
2081
2081
|
}, function(N, y) {
|
|
2082
|
-
var F = N.group, Q = N.groupOption, B = N.data,
|
|
2082
|
+
var F = N.group, Q = N.groupOption, B = N.data, E = N.label, ee = N.value, xe = B.key;
|
|
2083
2083
|
if (F) {
|
|
2084
|
-
var ae, ve = (ae = B.title) !== null && ae !== void 0 ? ae : ur(
|
|
2084
|
+
var ae, ve = (ae = B.title) !== null && ae !== void 0 ? ae : ur(E) ? E.toString() : void 0;
|
|
2085
2085
|
return /* @__PURE__ */ o.createElement("div", {
|
|
2086
2086
|
className: Se(H, "".concat(H, "-group"), B.className),
|
|
2087
2087
|
title: ve
|
|
2088
|
-
},
|
|
2088
|
+
}, E !== void 0 ? E : xe);
|
|
2089
2089
|
}
|
|
2090
2090
|
var Oe = B.disabled, le = B.title;
|
|
2091
2091
|
B.children;
|
|
2092
|
-
var $e = B.style, Ce = B.className, be = bt(B, fa), Ge = _n(be, me),
|
|
2092
|
+
var $e = B.style, Ce = B.className, be = bt(B, fa), Ge = _n(be, me), we = de(ee), Te = Oe || !we && M, Pe = "".concat(H, "-option"), Le = Se(H, Pe, Ce, ue(ue(ue(ue({}, "".concat(Pe, "-grouped"), Q), "".concat(Pe, "-active"), k === y && !Te), "".concat(Pe, "-disabled"), Te), "".concat(Pe, "-selected"), we)), Be = Ae(N), Qe = !$ || typeof $ == "function" || we, Ze = typeof Be == "number" ? Be : Be || ee, pe = ur(Ze) ? Ze.toString() : void 0;
|
|
2093
2093
|
return le !== void 0 && (pe = le), /* @__PURE__ */ o.createElement("div", ze({}, tn(Ge), C ? {} : ie(N, y), {
|
|
2094
|
-
"aria-selected":
|
|
2094
|
+
"aria-selected": we,
|
|
2095
2095
|
className: Le,
|
|
2096
2096
|
title: pe,
|
|
2097
2097
|
onMouseMove: function() {
|
|
@@ -2105,15 +2105,15 @@ var ma = function(t, n) {
|
|
|
2105
2105
|
className: "".concat(Pe, "-content")
|
|
2106
2106
|
}, typeof I == "function" ? I(N, {
|
|
2107
2107
|
index: y
|
|
2108
|
-
}) : Ze), /* @__PURE__ */ o.isValidElement($) ||
|
|
2108
|
+
}) : Ze), /* @__PURE__ */ o.isValidElement($) || we, Qe && /* @__PURE__ */ o.createElement(mn, {
|
|
2109
2109
|
className: "".concat(H, "-option-state"),
|
|
2110
2110
|
customizeIcon: $,
|
|
2111
2111
|
customizeIconProps: {
|
|
2112
2112
|
value: ee,
|
|
2113
2113
|
disabled: Te,
|
|
2114
|
-
isSelected:
|
|
2114
|
+
isSelected: we
|
|
2115
2115
|
}
|
|
2116
|
-
},
|
|
2116
|
+
}, we ? "✓" : null));
|
|
2117
2117
|
}));
|
|
2118
2118
|
}, Vr = /* @__PURE__ */ o.forwardRef(ma);
|
|
2119
2119
|
process.env.NODE_ENV !== "production" && (Vr.displayName = "OptionList");
|
|
@@ -2246,8 +2246,8 @@ function xa(e) {
|
|
|
2246
2246
|
st(!$, "`value` of Option should not use number type when `mode` is `tags` or `combobox`.");
|
|
2247
2247
|
}
|
|
2248
2248
|
if (st(t !== "combobox" || !g, "`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."), st(t === "combobox" || !i, "`backfill` only works with `combobox` mode."), st(t === "combobox" || !s, "`getInputElement` only work with `combobox` mode."), qn(t !== "combobox" || !s || !a || !l, "Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."), v && !h && t !== "combobox" && t !== "tags" && st(!1, "`onSearch` should work with `showSearch` instead of use alone."), qn(!f || d, "`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."), c != null) {
|
|
2249
|
-
var
|
|
2250
|
-
st(!b ||
|
|
2249
|
+
var w = Bn(c);
|
|
2250
|
+
st(!b || w.every(function(C) {
|
|
2251
2251
|
return Ht(C) === "object" && ("key" in C || "value" in C);
|
|
2252
2252
|
}), "`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"), st(!p || Array.isArray(c), "`value` should be array when `mode` is `multiple` or `tags`");
|
|
2253
2253
|
}
|
|
@@ -2269,7 +2269,7 @@ function xa(e) {
|
|
|
2269
2269
|
}), P && st(!1, "`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(P.displayName || P.name || P, "`.")), st(m === void 0, "`inputValue` is deprecated, please use `searchValue` instead.");
|
|
2270
2270
|
}
|
|
2271
2271
|
}
|
|
2272
|
-
function
|
|
2272
|
+
function wa(e, t) {
|
|
2273
2273
|
if (e) {
|
|
2274
2274
|
var n = function r(i) {
|
|
2275
2275
|
for (var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, l = 0; l < i.length; l++) {
|
|
@@ -2283,12 +2283,12 @@ function Ea(e, t) {
|
|
|
2283
2283
|
n(e);
|
|
2284
2284
|
}
|
|
2285
2285
|
}
|
|
2286
|
-
var
|
|
2286
|
+
var Ea = ["id", "mode", "prefixCls", "backfill", "fieldNames", "inputValue", "searchValue", "onSearch", "autoClearSearchValue", "onSelect", "onDeselect", "dropdownMatchSelectWidth", "filterOption", "filterSort", "optionFilterProp", "optionLabelProp", "options", "optionRender", "children", "defaultActiveFirstOption", "menuItemSelectedIcon", "virtual", "direction", "listHeight", "listItemHeight", "labelRender", "value", "defaultValue", "labelInValue", "onChange", "maxCount"], Ia = ["inputValue"];
|
|
2287
2287
|
function Oa(e) {
|
|
2288
2288
|
return !e || Ht(e) !== "object";
|
|
2289
2289
|
}
|
|
2290
2290
|
var Ar = /* @__PURE__ */ o.forwardRef(function(e, t) {
|
|
2291
|
-
var n = e.id, r = e.mode, i = e.prefixCls, a = i === void 0 ? "rc-select" : i, l = e.backfill, s = e.fieldNames, u = e.inputValue, v = e.searchValue, f = e.onSearch, d = e.autoClearSearchValue, b = d === void 0 ? !0 : d, c = e.onSelect, m = e.onDeselect, g = e.dropdownMatchSelectWidth, p = g === void 0 ? !0 : g, h = e.filterOption, S = e.filterSort, $ = e.optionFilterProp,
|
|
2291
|
+
var n = e.id, r = e.mode, i = e.prefixCls, a = i === void 0 ? "rc-select" : i, l = e.backfill, s = e.fieldNames, u = e.inputValue, v = e.searchValue, f = e.onSearch, d = e.autoClearSearchValue, b = d === void 0 ? !0 : d, c = e.onSelect, m = e.onDeselect, g = e.dropdownMatchSelectWidth, p = g === void 0 ? !0 : g, h = e.filterOption, S = e.filterSort, $ = e.optionFilterProp, w = e.optionLabelProp, P = e.options, C = e.optionRender, x = e.children, D = e.defaultActiveFirstOption, O = e.menuItemSelectedIcon, I = e.virtual, H = e.direction, j = e.listHeight, T = j === void 0 ? 200 : j, M = e.listItemHeight, _ = M === void 0 ? 20 : M, Y = e.labelRender, V = e.value, R = e.defaultValue, L = e.labelInValue, k = e.onChange, W = e.maxCount, Ie = bt(e, Ea), de = Sa(n), fe = un(r), me = !!(!P && x), Ae = o.useMemo(function() {
|
|
2292
2292
|
return h === void 0 && r === "combobox" ? !1 : h;
|
|
2293
2293
|
}, [h, r]), ie = o.useMemo(
|
|
2294
2294
|
function() {
|
|
@@ -2306,7 +2306,7 @@ var Ar = /* @__PURE__ */ o.forwardRef(function(e, t) {
|
|
|
2306
2306
|
postState: function(te) {
|
|
2307
2307
|
return te || "";
|
|
2308
2308
|
}
|
|
2309
|
-
}), _e = re(ye, 2), N = _e[0], y = _e[1], F = $a(P, x, ie, $,
|
|
2309
|
+
}), _e = re(ye, 2), N = _e[0], y = _e[1], F = $a(P, x, ie, $, w), Q = F.valueOptions, B = F.labelOptions, E = F.options, ee = o.useCallback(function(A) {
|
|
2310
2310
|
var te = Bn(A);
|
|
2311
2311
|
return te.map(function(z) {
|
|
2312
2312
|
var q, he, Me, ot, ke;
|
|
@@ -2319,7 +2319,7 @@ var Ar = /* @__PURE__ */ o.forwardRef(function(e, t) {
|
|
|
2319
2319
|
var He = Q.get(q);
|
|
2320
2320
|
if (He) {
|
|
2321
2321
|
var Ye;
|
|
2322
|
-
if (he === void 0 && (he = He == null ? void 0 : He[
|
|
2322
|
+
if (he === void 0 && (he = He == null ? void 0 : He[w || ie.label]), Me === void 0 && (Me = (Ye = He == null ? void 0 : He.key) !== null && Ye !== void 0 ? Ye : q), ot = He == null ? void 0 : He.disabled, ke = He == null ? void 0 : He.title, process.env.NODE_ENV !== "production" && !w) {
|
|
2323
2323
|
var at = He == null ? void 0 : He[ie.label];
|
|
2324
2324
|
at !== void 0 && !/* @__PURE__ */ o.isValidElement(at) && !/* @__PURE__ */ o.isValidElement(he) && at !== he && st(!1, "`label` of `value` is not same as `label` in Select options.");
|
|
2325
2325
|
}
|
|
@@ -2332,12 +2332,12 @@ var Ar = /* @__PURE__ */ o.forwardRef(function(e, t) {
|
|
|
2332
2332
|
title: ke
|
|
2333
2333
|
};
|
|
2334
2334
|
});
|
|
2335
|
-
}, [ie,
|
|
2335
|
+
}, [ie, w, Q]), xe = en(R, {
|
|
2336
2336
|
value: V
|
|
2337
2337
|
}), ae = re(xe, 2), ve = ae[0], Oe = ae[1], le = o.useMemo(function() {
|
|
2338
2338
|
var A, te = fe && ve === null ? [] : ve, z = ee(te);
|
|
2339
2339
|
return r === "combobox" && Lo((A = z[0]) === null || A === void 0 ? void 0 : A.value) ? [] : z;
|
|
2340
|
-
}, [ve, ee, r, fe]), $e = ga(le, Q), Ce = re($e, 2), be = Ce[0], Ge = Ce[1],
|
|
2340
|
+
}, [ve, ee, r, fe]), $e = ga(le, Q), Ce = re($e, 2), be = Ce[0], Ge = Ce[1], we = o.useMemo(function() {
|
|
2341
2341
|
if (!r && be.length === 1) {
|
|
2342
2342
|
var A = be[0];
|
|
2343
2343
|
if (A.value === null && (A.label === null || A.label === void 0))
|
|
@@ -2365,8 +2365,8 @@ var Ar = /* @__PURE__ */ o.forwardRef(function(e, t) {
|
|
|
2365
2365
|
return ue(ue({}, ie.value, A), ie.label, z);
|
|
2366
2366
|
}), Le = o.useMemo(function() {
|
|
2367
2367
|
if (r !== "tags")
|
|
2368
|
-
return
|
|
2369
|
-
var A = mt(
|
|
2368
|
+
return E;
|
|
2369
|
+
var A = mt(E), te = function(q) {
|
|
2370
2370
|
return Q.has(q);
|
|
2371
2371
|
};
|
|
2372
2372
|
return mt(be).sort(function(z, q) {
|
|
@@ -2375,7 +2375,7 @@ var Ar = /* @__PURE__ */ o.forwardRef(function(e, t) {
|
|
|
2375
2375
|
var q = z.value;
|
|
2376
2376
|
te(q) || A.push(Pe(q, z.label));
|
|
2377
2377
|
}), A;
|
|
2378
|
-
}, [Pe,
|
|
2378
|
+
}, [Pe, E, Q, be, r]), Be = va(Le, ie, N, Ae, $), Qe = o.useMemo(function() {
|
|
2379
2379
|
return r !== "tags" || !N || Be.some(function(A) {
|
|
2380
2380
|
return A[$ || "value"] === N;
|
|
2381
2381
|
}) || Be.some(function(A) {
|
|
@@ -2480,7 +2480,7 @@ var Ar = /* @__PURE__ */ o.forwardRef(function(e, t) {
|
|
|
2480
2480
|
optionRender: C
|
|
2481
2481
|
});
|
|
2482
2482
|
}, [W, F, pe, ht, gt, ut, O, Te, ie, I, p, H, T, _, me, C]);
|
|
2483
|
-
return process.env.NODE_ENV !== "production" && (xa(e),
|
|
2483
|
+
return process.env.NODE_ENV !== "production" && (xa(e), wa(E, ie)), /* @__PURE__ */ o.createElement(jn.Provider, {
|
|
2484
2484
|
value: We
|
|
2485
2485
|
}, /* @__PURE__ */ o.createElement(Br, ze({}, Ie, {
|
|
2486
2486
|
// >>> MISC
|
|
@@ -2489,7 +2489,7 @@ var Ar = /* @__PURE__ */ o.forwardRef(function(e, t) {
|
|
|
2489
2489
|
ref: t,
|
|
2490
2490
|
omitDomProps: Ia,
|
|
2491
2491
|
mode: r,
|
|
2492
|
-
displayValues:
|
|
2492
|
+
displayValues: we,
|
|
2493
2493
|
onDisplayValuesChange: oe,
|
|
2494
2494
|
direction: H,
|
|
2495
2495
|
searchValue: N,
|
|
@@ -2568,7 +2568,7 @@ const Wr = () => {
|
|
|
2568
2568
|
borderColor: a,
|
|
2569
2569
|
shadowColor: l,
|
|
2570
2570
|
contentColor: s
|
|
2571
|
-
} =
|
|
2571
|
+
} = wn(() => ({
|
|
2572
2572
|
borderColor: new an(t).onBackground(i).toHexShortString(),
|
|
2573
2573
|
shadowColor: new an(n).onBackground(i).toHexShortString(),
|
|
2574
2574
|
contentColor: new an(r).onBackground(i).toHexShortString()
|
|
@@ -2692,11 +2692,11 @@ const Kr = /* @__PURE__ */ o.createElement(Fr, null), Xr = /* @__PURE__ */ o.cre
|
|
|
2692
2692
|
direction: d,
|
|
2693
2693
|
empty: b
|
|
2694
2694
|
} = o.useContext(xt), c = f("empty", r), [m, g, p] = Ra(c), [h] = Cr("Empty"), S = typeof a < "u" ? a : h == null ? void 0 : h.description, $ = typeof S == "string" ? S : "empty";
|
|
2695
|
-
let
|
|
2696
|
-
return typeof i == "string" ?
|
|
2695
|
+
let w = null;
|
|
2696
|
+
return typeof i == "string" ? w = /* @__PURE__ */ o.createElement("img", {
|
|
2697
2697
|
alt: $,
|
|
2698
2698
|
src: i
|
|
2699
|
-
}) :
|
|
2699
|
+
}) : w = i, m(/* @__PURE__ */ o.createElement("div", Object.assign({
|
|
2700
2700
|
className: Se(g, p, c, b == null ? void 0 : b.className, {
|
|
2701
2701
|
[`${c}-normal`]: i === Xr,
|
|
2702
2702
|
[`${c}-rtl`]: d === "rtl"
|
|
@@ -2705,7 +2705,7 @@ const Kr = /* @__PURE__ */ o.createElement(Fr, null), Xr = /* @__PURE__ */ o.cre
|
|
|
2705
2705
|
}, v), /* @__PURE__ */ o.createElement("div", {
|
|
2706
2706
|
className: `${c}-image`,
|
|
2707
2707
|
style: s
|
|
2708
|
-
},
|
|
2708
|
+
}, w), S && /* @__PURE__ */ o.createElement("div", {
|
|
2709
2709
|
className: `${c}-description`
|
|
2710
2710
|
}, S), l && /* @__PURE__ */ o.createElement("div", {
|
|
2711
2711
|
className: `${c}-footer`
|
|
@@ -2815,7 +2815,7 @@ const mr = (e) => {
|
|
|
2815
2815
|
${i}${s}bottomLeft,
|
|
2816
2816
|
${a}${s}bottomLeft
|
|
2817
2817
|
`]: {
|
|
2818
|
-
animationName:
|
|
2818
|
+
animationName: wr
|
|
2819
2819
|
},
|
|
2820
2820
|
[`
|
|
2821
2821
|
${i}${s}topLeft,
|
|
@@ -2826,7 +2826,7 @@ const mr = (e) => {
|
|
|
2826
2826
|
animationName: Ir
|
|
2827
2827
|
},
|
|
2828
2828
|
[`${l}${s}bottomLeft`]: {
|
|
2829
|
-
animationName:
|
|
2829
|
+
animationName: Er
|
|
2830
2830
|
},
|
|
2831
2831
|
[`
|
|
2832
2832
|
${l}${s}topLeft,
|
|
@@ -3308,7 +3308,7 @@ const Va = (e) => {
|
|
|
3308
3308
|
colorFillSecondary: g,
|
|
3309
3309
|
colorBgContainerDisabled: p,
|
|
3310
3310
|
colorTextDisabled: h
|
|
3311
|
-
} = e, S = s * 2, $ = r * 2,
|
|
3311
|
+
} = e, S = s * 2, $ = r * 2, w = Math.min(i - S, i - $), P = Math.min(a - S, a - $), C = Math.min(l - S, l - $);
|
|
3312
3312
|
return {
|
|
3313
3313
|
INTERNAL_FIXED_ITEM_MARGIN: Math.floor(s / 2),
|
|
3314
3314
|
zIndexPopup: v + 50,
|
|
@@ -3325,7 +3325,7 @@ const Va = (e) => {
|
|
|
3325
3325
|
singleItemHeightLG: l,
|
|
3326
3326
|
multipleItemBg: g,
|
|
3327
3327
|
multipleItemBorderColor: "transparent",
|
|
3328
|
-
multipleItemHeight:
|
|
3328
|
+
multipleItemHeight: w,
|
|
3329
3329
|
multipleItemHeightSM: P,
|
|
3330
3330
|
multipleItemHeightLG: C,
|
|
3331
3331
|
multipleSelectorBgDisabled: p,
|
|
@@ -3715,10 +3715,10 @@ function el(e) {
|
|
|
3715
3715
|
const S = `${u}-suffix`;
|
|
3716
3716
|
g = ($) => {
|
|
3717
3717
|
let {
|
|
3718
|
-
open:
|
|
3718
|
+
open: w,
|
|
3719
3719
|
showSearch: P
|
|
3720
3720
|
} = $;
|
|
3721
|
-
return m(
|
|
3721
|
+
return m(w && P ? /* @__PURE__ */ o.createElement(Jr, {
|
|
3722
3722
|
className: S
|
|
3723
3723
|
}) : /* @__PURE__ */ o.createElement(Yr, {
|
|
3724
3724
|
className: S
|
|
@@ -3767,7 +3767,7 @@ const Qr = "SECRET_COMBOBOX_MODE_DO_NOT_USE", Zr = (e, t) => {
|
|
|
3767
3767
|
builtinPlacements: h,
|
|
3768
3768
|
dropdownMatchSelectWidth: S,
|
|
3769
3769
|
popupMatchSelectWidth: $,
|
|
3770
|
-
direction:
|
|
3770
|
+
direction: w,
|
|
3771
3771
|
style: P,
|
|
3772
3772
|
allowClear: C,
|
|
3773
3773
|
variant: x,
|
|
@@ -3784,7 +3784,7 @@ const Qr = "SECRET_COMBOBOX_MODE_DO_NOT_USE", Zr = (e, t) => {
|
|
|
3784
3784
|
popupMatchSelectWidth: R,
|
|
3785
3785
|
popupOverflow: L,
|
|
3786
3786
|
select: k
|
|
3787
|
-
} = o.useContext(xt), [, W] = dn(), Ie = b ?? (W == null ? void 0 : W.controlHeight), de = M("select", r), fe = M(), me =
|
|
3787
|
+
} = o.useContext(xt), [, W] = dn(), Ie = b ?? (W == null ? void 0 : W.controlHeight), de = M("select", r), fe = M(), me = w ?? Y, {
|
|
3788
3788
|
compactSize: Ae,
|
|
3789
3789
|
compactItemClassnames: ie
|
|
3790
3790
|
} = zi(de, me), [ye, _e] = _i(x, i), N = Ti(de), [y, F, Q] = Ya(de, N), B = o.useMemo(() => {
|
|
@@ -3793,7 +3793,7 @@ const Qr = "SECRET_COMBOBOX_MODE_DO_NOT_USE", Zr = (e, t) => {
|
|
|
3793
3793
|
} = e;
|
|
3794
3794
|
if (Fe !== "combobox")
|
|
3795
3795
|
return Fe === Qr ? "combobox" : Fe;
|
|
3796
|
-
}, [e.mode]),
|
|
3796
|
+
}, [e.mode]), E = B === "multiple" || B === "tags", ee = tl(e.suffixIcon, e.showArrow), xe = (n = $ ?? S) !== null && n !== void 0 ? n : R, {
|
|
3797
3797
|
status: ae,
|
|
3798
3798
|
hasFeedback: ve,
|
|
3799
3799
|
isFormItemInput: Oe,
|
|
@@ -3806,10 +3806,10 @@ const Qr = "SECRET_COMBOBOX_MODE_DO_NOT_USE", Zr = (e, t) => {
|
|
|
3806
3806
|
const {
|
|
3807
3807
|
suffixIcon: be,
|
|
3808
3808
|
itemIcon: Ge,
|
|
3809
|
-
removeIcon:
|
|
3809
|
+
removeIcon: we,
|
|
3810
3810
|
clearIcon: Te
|
|
3811
3811
|
} = el(Object.assign(Object.assign({}, j), {
|
|
3812
|
-
multiple:
|
|
3812
|
+
multiple: E,
|
|
3813
3813
|
hasFeedback: ve,
|
|
3814
3814
|
feedbackIcon: le,
|
|
3815
3815
|
showSuffixIcon: ee,
|
|
@@ -3831,7 +3831,7 @@ const Qr = "SECRET_COMBOBOX_MODE_DO_NOT_USE", Zr = (e, t) => {
|
|
|
3831
3831
|
}, Bi(de, $e, ve), ie, k == null ? void 0 : k.className, a, l, Q, N, F), it = o.useMemo(() => d !== void 0 ? d : me === "rtl" ? "bottomRight" : "bottomLeft", [d, me]);
|
|
3832
3832
|
if (process.env.NODE_ENV !== "production") {
|
|
3833
3833
|
const Fe = zn("Select");
|
|
3834
|
-
Fe.deprecated(!v, "dropdownClassName", "popupClassName"), Fe.deprecated(S === void 0, "dropdownMatchSelectWidth", "popupMatchSelectWidth"), process.env.NODE_ENV !== "production" && Fe(!("showArrow" in e), "deprecated", "`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."), Fe.deprecated(!("bordered" in e), "bordered", "variant"), process.env.NODE_ENV !== "production" && Fe(!(typeof H < "u" && !
|
|
3834
|
+
Fe.deprecated(!v, "dropdownClassName", "popupClassName"), Fe.deprecated(S === void 0, "dropdownMatchSelectWidth", "popupMatchSelectWidth"), process.env.NODE_ENV !== "production" && Fe(!("showArrow" in e), "deprecated", "`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."), Fe.deprecated(!("bordered" in e), "bordered", "variant"), process.env.NODE_ENV !== "production" && Fe(!(typeof H < "u" && !E), "usage", "`maxCount` only works with mode `multiple` or `tags`");
|
|
3835
3835
|
}
|
|
3836
3836
|
const [Ue] = ji("SelectLike", D == null ? void 0 : D.zIndex);
|
|
3837
3837
|
return y(/* @__PURE__ */ o.createElement(Wn, Object.assign({
|
|
@@ -3851,7 +3851,7 @@ const Qr = "SECRET_COMBOBOX_MODE_DO_NOT_USE", Zr = (e, t) => {
|
|
|
3851
3851
|
direction: me,
|
|
3852
3852
|
suffixIcon: be,
|
|
3853
3853
|
menuItemSelectedIcon: Ge,
|
|
3854
|
-
removeIcon:
|
|
3854
|
+
removeIcon: we,
|
|
3855
3855
|
allowClear: Pe,
|
|
3856
3856
|
notFoundContent: Ce,
|
|
3857
3857
|
className: Xe,
|
|
@@ -3861,8 +3861,8 @@ const Qr = "SECRET_COMBOBOX_MODE_DO_NOT_USE", Zr = (e, t) => {
|
|
|
3861
3861
|
dropdownStyle: Object.assign(Object.assign({}, D), {
|
|
3862
3862
|
zIndex: Ue
|
|
3863
3863
|
}),
|
|
3864
|
-
maxCount:
|
|
3865
|
-
tagRender:
|
|
3864
|
+
maxCount: E ? H : void 0,
|
|
3865
|
+
tagRender: E ? I : void 0
|
|
3866
3866
|
})));
|
|
3867
3867
|
};
|
|
3868
3868
|
process.env.NODE_ENV !== "production" && (Zr.displayName = "Select");
|
|
@@ -3891,7 +3891,7 @@ function al(e, t, n) {
|
|
|
3891
3891
|
function g() {
|
|
3892
3892
|
for (var p = arguments.length, h = new Array(p), S = 0; S < p; S++)
|
|
3893
3893
|
h[S] = arguments[S];
|
|
3894
|
-
var $ = this,
|
|
3894
|
+
var $ = this, w = Date.now() - b;
|
|
3895
3895
|
if (d)
|
|
3896
3896
|
return;
|
|
3897
3897
|
function P() {
|
|
@@ -3900,7 +3900,7 @@ function al(e, t, n) {
|
|
|
3900
3900
|
function C() {
|
|
3901
3901
|
f = void 0;
|
|
3902
3902
|
}
|
|
3903
|
-
!s && v && !f && P(), c(), v === void 0 &&
|
|
3903
|
+
!s && v && !f && P(), c(), v === void 0 && w > e ? s ? (b = Date.now(), a || (f = setTimeout(v ? C : P, e))) : P() : a !== !0 && (f = setTimeout(v ? C : P, v === void 0 ? e - w : e));
|
|
3904
3904
|
}
|
|
3905
3905
|
return g.cancel = m, g;
|
|
3906
3906
|
}
|
|
@@ -4065,7 +4065,7 @@ const hl = ["xs", "sm", "md", "lg", "xl", "xxl"], ei = /* @__PURE__ */ o.forward
|
|
|
4065
4065
|
children: c,
|
|
4066
4066
|
flex: m,
|
|
4067
4067
|
style: g
|
|
4068
|
-
} = e, p = pl(e, ["prefixCls", "span", "order", "offset", "push", "pull", "className", "children", "flex", "style"]), h = n("col", l), [S, $,
|
|
4068
|
+
} = e, p = pl(e, ["prefixCls", "span", "order", "offset", "push", "pull", "className", "children", "flex", "style"]), h = n("col", l), [S, $, w] = vl(h), P = {};
|
|
4069
4069
|
let C = {};
|
|
4070
4070
|
hl.forEach((O) => {
|
|
4071
4071
|
let I = {};
|
|
@@ -4085,7 +4085,7 @@ const hl = ["xs", "sm", "md", "lg", "xl", "xxl"], ei = /* @__PURE__ */ o.forward
|
|
|
4085
4085
|
[`${h}-offset-${v}`]: v,
|
|
4086
4086
|
[`${h}-push-${f}`]: f,
|
|
4087
4087
|
[`${h}-pull-${d}`]: d
|
|
4088
|
-
}, b, C, $,
|
|
4088
|
+
}, b, C, $, w), D = {};
|
|
4089
4089
|
if (i && i[0] > 0) {
|
|
4090
4090
|
const O = i[0] / 2;
|
|
4091
4091
|
D.paddingLeft = O, D.paddingRight = O;
|
|
@@ -4151,14 +4151,14 @@ const ti = /* @__PURE__ */ o.forwardRef((e, t) => {
|
|
|
4151
4151
|
lg: !1,
|
|
4152
4152
|
xl: !1,
|
|
4153
4153
|
xxl: !1
|
|
4154
|
-
}), h = hr(i, g), S = hr(r, g), $ = o.useRef(u),
|
|
4154
|
+
}), h = hr(i, g), S = hr(r, g), $ = o.useRef(u), w = qi();
|
|
4155
4155
|
o.useEffect(() => {
|
|
4156
|
-
const V =
|
|
4156
|
+
const V = w.subscribe((R) => {
|
|
4157
4157
|
p(R);
|
|
4158
4158
|
const L = $.current || 0;
|
|
4159
4159
|
(!Array.isArray(L) && typeof L == "object" || Array.isArray(L) && (typeof L[0] == "object" || typeof L[1] == "object")) && m(R);
|
|
4160
4160
|
});
|
|
4161
|
-
return () =>
|
|
4161
|
+
return () => w.unsubscribe(V);
|
|
4162
4162
|
}, []);
|
|
4163
4163
|
const P = () => {
|
|
4164
4164
|
const V = [void 0, void 0];
|
|
@@ -4428,7 +4428,7 @@ const bl = new et("antSpinMove", {
|
|
|
4428
4428
|
});
|
|
4429
4429
|
return [Cl(t)];
|
|
4430
4430
|
}, $l);
|
|
4431
|
-
var
|
|
4431
|
+
var wl = function(e, t) {
|
|
4432
4432
|
var n = {};
|
|
4433
4433
|
for (var r in e)
|
|
4434
4434
|
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
@@ -4438,7 +4438,7 @@ var El = function(e, t) {
|
|
|
4438
4438
|
return n;
|
|
4439
4439
|
};
|
|
4440
4440
|
let ln = null;
|
|
4441
|
-
function
|
|
4441
|
+
function El(e, t) {
|
|
4442
4442
|
const {
|
|
4443
4443
|
indicator: n
|
|
4444
4444
|
} = t, r = `${e}-dot`;
|
|
@@ -4478,7 +4478,7 @@ const Kn = (e) => {
|
|
|
4478
4478
|
style: v,
|
|
4479
4479
|
children: f,
|
|
4480
4480
|
fullscreen: d = !1
|
|
4481
|
-
} = e, b =
|
|
4481
|
+
} = e, b = wl(e, ["prefixCls", "spinning", "delay", "className", "rootClassName", "size", "tip", "wrapperClassName", "style", "children", "fullscreen"]), {
|
|
4482
4482
|
getPrefixCls: c
|
|
4483
4483
|
} = o.useContext(xt), m = c("spin", t), [g, p, h] = xl(m), [S, $] = o.useState(() => n && !Il(n, r));
|
|
4484
4484
|
o.useEffect(() => {
|
|
@@ -4493,10 +4493,10 @@ const Kn = (e) => {
|
|
|
4493
4493
|
}
|
|
4494
4494
|
$(!1);
|
|
4495
4495
|
}, [r, n]);
|
|
4496
|
-
const
|
|
4496
|
+
const w = o.useMemo(() => typeof f < "u" && !d, [f, d]);
|
|
4497
4497
|
if (process.env.NODE_ENV !== "production") {
|
|
4498
4498
|
const j = zn("Spin");
|
|
4499
|
-
process.env.NODE_ENV !== "production" && j(!s ||
|
|
4499
|
+
process.env.NODE_ENV !== "production" && j(!s || w || d, "usage", "`tip` only work in nest or fullscreen pattern.");
|
|
4500
4500
|
}
|
|
4501
4501
|
const {
|
|
4502
4502
|
direction: P,
|
|
@@ -4516,10 +4516,10 @@ const Kn = (e) => {
|
|
|
4516
4516
|
className: x,
|
|
4517
4517
|
"aria-live": "polite",
|
|
4518
4518
|
"aria-busy": S
|
|
4519
|
-
}),
|
|
4519
|
+
}), El(m, e), s && (w || d) ? /* @__PURE__ */ o.createElement("div", {
|
|
4520
4520
|
className: `${m}-text`
|
|
4521
4521
|
}, s) : null);
|
|
4522
|
-
return g(
|
|
4522
|
+
return g(w ? /* @__PURE__ */ o.createElement("div", Object.assign({}, O, {
|
|
4523
4523
|
className: Se(`${m}-nested-loading`, u, p, h)
|
|
4524
4524
|
}), S && /* @__PURE__ */ o.createElement("div", {
|
|
4525
4525
|
key: "loading"
|
|
@@ -4576,7 +4576,7 @@ var Dl = {
|
|
|
4576
4576
|
return !p || Number.isNaN(p) ? void 0 : Number(p);
|
|
4577
4577
|
}, $ = typeof c == "function" ? c : function(M) {
|
|
4578
4578
|
return "".concat(M, " ").concat(i.items_per_page);
|
|
4579
|
-
},
|
|
4579
|
+
}, w = function(_) {
|
|
4580
4580
|
a == null || a(Number(_));
|
|
4581
4581
|
}, P = function(_) {
|
|
4582
4582
|
h(_.target.value);
|
|
@@ -4610,7 +4610,7 @@ var Dl = {
|
|
|
4610
4610
|
optionLabelProp: "children",
|
|
4611
4611
|
popupMatchSelectWidth: !1,
|
|
4612
4612
|
value: (l || r[0]).toString(),
|
|
4613
|
-
onChange:
|
|
4613
|
+
onChange: w,
|
|
4614
4614
|
getPopupContainer: function(_) {
|
|
4615
4615
|
return _.parentNode;
|
|
4616
4616
|
},
|
|
@@ -4673,75 +4673,75 @@ function At(e, t, n) {
|
|
|
4673
4673
|
return Math.floor((n - 1) / r) + 1;
|
|
4674
4674
|
}
|
|
4675
4675
|
var ri = function(t) {
|
|
4676
|
-
var n, r = t.prefixCls, i = r === void 0 ? "rc-pagination" : r, a = t.selectPrefixCls, l = a === void 0 ? "rc-select" : a, s = t.className, u = t.selectComponentClass, v = t.current, f = t.defaultCurrent, d = f === void 0 ? 1 : f, b = t.total, c = b === void 0 ? 0 : b, m = t.pageSize, g = t.defaultPageSize, p = g === void 0 ? 10 : g, h = t.onChange, S = h === void 0 ? Sn : h, $ = t.hideOnSinglePage,
|
|
4676
|
+
var n, r = t.prefixCls, i = r === void 0 ? "rc-pagination" : r, a = t.selectPrefixCls, l = a === void 0 ? "rc-select" : a, s = t.className, u = t.selectComponentClass, v = t.current, f = t.defaultCurrent, d = f === void 0 ? 1 : f, b = t.total, c = b === void 0 ? 0 : b, m = t.pageSize, g = t.defaultPageSize, p = g === void 0 ? 10 : g, h = t.onChange, S = h === void 0 ? Sn : h, $ = t.hideOnSinglePage, w = t.showPrevNextJumpers, P = w === void 0 ? !0 : w, C = t.showQuickJumper, x = t.showLessItems, D = t.showTitle, O = D === void 0 ? !0 : D, I = t.onShowSizeChange, H = I === void 0 ? Sn : I, j = t.locale, T = j === void 0 ? Dl : j, M = t.style, _ = t.totalBoundaryShowSizeChanger, Y = _ === void 0 ? 50 : _, V = t.disabled, R = t.simple, L = t.showTotal, k = t.showSizeChanger, W = t.pageSizeOptions, Ie = t.itemRender, de = Ie === void 0 ? _l : Ie, fe = t.jumpPrevIcon, me = t.jumpNextIcon, Ae = t.prevIcon, ie = t.nextIcon, ye = G.useRef(null), _e = en(10, {
|
|
4677
4677
|
value: m,
|
|
4678
4678
|
defaultValue: p
|
|
4679
4679
|
}), N = re(_e, 2), y = N[0], F = N[1], Q = en(1, {
|
|
4680
4680
|
value: v,
|
|
4681
4681
|
defaultValue: d,
|
|
4682
|
-
postState: function(
|
|
4683
|
-
return Math.max(1, Math.min(
|
|
4682
|
+
postState: function(Ee) {
|
|
4683
|
+
return Math.max(1, Math.min(Ee, At(void 0, y, c)));
|
|
4684
4684
|
}
|
|
4685
|
-
}), B = re(Q, 2),
|
|
4685
|
+
}), B = re(Q, 2), E = B[0], ee = B[1], xe = G.useState(E), ae = re(xe, 2), ve = ae[0], Oe = ae[1];
|
|
4686
4686
|
sn(function() {
|
|
4687
|
-
Oe(
|
|
4688
|
-
}, [
|
|
4687
|
+
Oe(E);
|
|
4688
|
+
}, [E]);
|
|
4689
4689
|
var le = S !== Sn, $e = "current" in t;
|
|
4690
4690
|
process.env.NODE_ENV !== "production" && st($e ? le : !0, "You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");
|
|
4691
|
-
var Ce = Math.max(1,
|
|
4692
|
-
function Ge(Z,
|
|
4691
|
+
var Ce = Math.max(1, E - (x ? 3 : 5)), be = Math.min(At(void 0, y, c), E + (x ? 3 : 5));
|
|
4692
|
+
function Ge(Z, Ee) {
|
|
4693
4693
|
var Ke = Z || /* @__PURE__ */ G.createElement("button", {
|
|
4694
4694
|
type: "button",
|
|
4695
|
-
"aria-label":
|
|
4695
|
+
"aria-label": Ee,
|
|
4696
4696
|
className: "".concat(i, "-item-link")
|
|
4697
4697
|
});
|
|
4698
4698
|
return typeof Z == "function" && (Ke = /* @__PURE__ */ G.createElement(Z, ce({}, t))), Ke;
|
|
4699
4699
|
}
|
|
4700
|
-
function
|
|
4701
|
-
var
|
|
4702
|
-
return
|
|
4700
|
+
function we(Z) {
|
|
4701
|
+
var Ee = Z.target.value, Ke = At(void 0, y, c), It;
|
|
4702
|
+
return Ee === "" ? It = Ee : Number.isNaN(Number(Ee)) ? It = ve : Ee >= Ke ? It = Ke : It = Number(Ee), It;
|
|
4703
4703
|
}
|
|
4704
4704
|
function Te(Z) {
|
|
4705
|
-
return Sr(Z) && Z !==
|
|
4705
|
+
return Sr(Z) && Z !== E && Sr(c) && c > 0;
|
|
4706
4706
|
}
|
|
4707
4707
|
var Pe = c > y ? C : !1;
|
|
4708
4708
|
function Le(Z) {
|
|
4709
4709
|
(Z.keyCode === ne.UP || Z.keyCode === ne.DOWN) && Z.preventDefault();
|
|
4710
4710
|
}
|
|
4711
4711
|
function Be(Z) {
|
|
4712
|
-
var
|
|
4713
|
-
switch (
|
|
4712
|
+
var Ee = we(Z);
|
|
4713
|
+
switch (Ee !== ve && Oe(Ee), Z.keyCode) {
|
|
4714
4714
|
case ne.ENTER:
|
|
4715
|
-
pe(
|
|
4715
|
+
pe(Ee);
|
|
4716
4716
|
break;
|
|
4717
4717
|
case ne.UP:
|
|
4718
|
-
pe(
|
|
4718
|
+
pe(Ee - 1);
|
|
4719
4719
|
break;
|
|
4720
4720
|
case ne.DOWN:
|
|
4721
|
-
pe(
|
|
4721
|
+
pe(Ee + 1);
|
|
4722
4722
|
break;
|
|
4723
4723
|
}
|
|
4724
4724
|
}
|
|
4725
4725
|
function Qe(Z) {
|
|
4726
|
-
pe(
|
|
4726
|
+
pe(we(Z));
|
|
4727
4727
|
}
|
|
4728
4728
|
function Ze(Z) {
|
|
4729
|
-
var
|
|
4730
|
-
F(Z), Oe(Ke), H == null || H(
|
|
4729
|
+
var Ee = At(Z, y, c), Ke = E > Ee && Ee !== 0 ? Ee : E;
|
|
4730
|
+
F(Z), Oe(Ke), H == null || H(E, Z), ee(Ke), S == null || S(Ke, Z);
|
|
4731
4731
|
}
|
|
4732
4732
|
function pe(Z) {
|
|
4733
4733
|
if (Te(Z) && !V) {
|
|
4734
|
-
var
|
|
4735
|
-
return Z >
|
|
4734
|
+
var Ee = At(void 0, y, c), Ke = Z;
|
|
4735
|
+
return Z > Ee ? Ke = Ee : Z < 1 && (Ke = 1), Ke !== ve && Oe(Ke), ee(Ke), S == null || S(Ke, y), Ke;
|
|
4736
4736
|
}
|
|
4737
|
-
return
|
|
4737
|
+
return E;
|
|
4738
4738
|
}
|
|
4739
|
-
var Xe =
|
|
4739
|
+
var Xe = E > 1, it = E < At(void 0, y, c), Ue = k ?? c > Y;
|
|
4740
4740
|
function Fe() {
|
|
4741
|
-
Xe && pe(
|
|
4741
|
+
Xe && pe(E - 1);
|
|
4742
4742
|
}
|
|
4743
4743
|
function je() {
|
|
4744
|
-
it && pe(
|
|
4744
|
+
it && pe(E + 1);
|
|
4745
4745
|
}
|
|
4746
4746
|
function yt() {
|
|
4747
4747
|
pe(Ce);
|
|
@@ -4749,11 +4749,11 @@ var ri = function(t) {
|
|
|
4749
4749
|
function ct() {
|
|
4750
4750
|
pe(be);
|
|
4751
4751
|
}
|
|
4752
|
-
function qe(Z,
|
|
4752
|
+
function qe(Z, Ee) {
|
|
4753
4753
|
if (Z.key === "Enter" || Z.charCode === ne.ENTER || Z.keyCode === ne.ENTER) {
|
|
4754
4754
|
for (var Ke = arguments.length, It = new Array(Ke > 2 ? Ke - 2 : 0), Kt = 2; Kt < Ke; Kt++)
|
|
4755
4755
|
It[Kt - 2] = arguments[Kt];
|
|
4756
|
-
|
|
4756
|
+
Ee.apply(void 0, It);
|
|
4757
4757
|
}
|
|
4758
4758
|
}
|
|
4759
4759
|
function Mt(Z) {
|
|
@@ -4769,16 +4769,16 @@ var ri = function(t) {
|
|
|
4769
4769
|
qe(Z, ct);
|
|
4770
4770
|
}
|
|
4771
4771
|
function ut(Z) {
|
|
4772
|
-
var
|
|
4773
|
-
return /* @__PURE__ */ G.isValidElement(
|
|
4772
|
+
var Ee = de(Z, "prev", Ge(Ae, "prev page"));
|
|
4773
|
+
return /* @__PURE__ */ G.isValidElement(Ee) ? /* @__PURE__ */ G.cloneElement(Ee, {
|
|
4774
4774
|
disabled: !Xe
|
|
4775
|
-
}) :
|
|
4775
|
+
}) : Ee;
|
|
4776
4776
|
}
|
|
4777
4777
|
function oe(Z) {
|
|
4778
|
-
var
|
|
4779
|
-
return /* @__PURE__ */ G.isValidElement(
|
|
4778
|
+
var Ee = de(Z, "next", Ge(ie, "next page"));
|
|
4779
|
+
return /* @__PURE__ */ G.isValidElement(Ee) ? /* @__PURE__ */ G.cloneElement(Ee, {
|
|
4780
4780
|
disabled: !it
|
|
4781
|
-
}) :
|
|
4781
|
+
}) : Ee;
|
|
4782
4782
|
}
|
|
4783
4783
|
function U(Z) {
|
|
4784
4784
|
(Z.type === "click" || Z.keyCode === ne.ENTER) && pe(ve);
|
|
@@ -4788,7 +4788,7 @@ var ri = function(t) {
|
|
|
4788
4788
|
data: !0
|
|
4789
4789
|
}), A = L && /* @__PURE__ */ G.createElement("li", {
|
|
4790
4790
|
className: "".concat(i, "-total-text")
|
|
4791
|
-
}, L(c, [c === 0 ? 0 : (
|
|
4791
|
+
}, L(c, [c === 0 ? 0 : (E - 1) * y + 1, E * y > c ? c : E * y])), te = null, z = At(void 0, y, c);
|
|
4792
4792
|
if ($ && c <= y)
|
|
4793
4793
|
return null;
|
|
4794
4794
|
var q = [], he = {
|
|
@@ -4798,7 +4798,7 @@ var ri = function(t) {
|
|
|
4798
4798
|
showTitle: O,
|
|
4799
4799
|
itemRender: de,
|
|
4800
4800
|
page: -1
|
|
4801
|
-
}, Me =
|
|
4801
|
+
}, Me = E - 1 > 0 ? E - 1 : 0, ot = E + 1 < z ? E + 1 : z, ke = C && C.goButton, tt = ke, He = null;
|
|
4802
4802
|
R && (ke && (typeof ke == "boolean" ? tt = /* @__PURE__ */ G.createElement("button", {
|
|
4803
4803
|
type: "button",
|
|
4804
4804
|
onClick: U,
|
|
@@ -4807,10 +4807,10 @@ var ri = function(t) {
|
|
|
4807
4807
|
onClick: U,
|
|
4808
4808
|
onKeyUp: U
|
|
4809
4809
|
}, ke), tt = /* @__PURE__ */ G.createElement("li", {
|
|
4810
|
-
title: O ? "".concat(T.jump_to).concat(
|
|
4810
|
+
title: O ? "".concat(T.jump_to).concat(E, "/").concat(z) : null,
|
|
4811
4811
|
className: "".concat(i, "-simple-pager")
|
|
4812
4812
|
}, tt)), He = /* @__PURE__ */ G.createElement("li", {
|
|
4813
|
-
title: O ? "".concat(
|
|
4813
|
+
title: O ? "".concat(E, "/").concat(z) : null,
|
|
4814
4814
|
className: "".concat(i, "-simple-pager")
|
|
4815
4815
|
}, /* @__PURE__ */ G.createElement("input", {
|
|
4816
4816
|
type: "text",
|
|
@@ -4835,10 +4835,10 @@ var ri = function(t) {
|
|
|
4835
4835
|
q.push(/* @__PURE__ */ G.createElement(Ut, ze({}, he, {
|
|
4836
4836
|
key: at,
|
|
4837
4837
|
page: at,
|
|
4838
|
-
active:
|
|
4838
|
+
active: E === at
|
|
4839
4839
|
})));
|
|
4840
4840
|
} else {
|
|
4841
|
-
var Vt = x ? T.prev_3 : T.prev_5,
|
|
4841
|
+
var Vt = x ? T.prev_3 : T.prev_5, wt = x ? T.next_3 : T.next_5, vt = de(Ce, "jump-prev", Ge(fe, "prev page")), X = de(be, "jump-next", Ge(me, "next page"));
|
|
4842
4842
|
P && (Re = vt ? /* @__PURE__ */ G.createElement("li", {
|
|
4843
4843
|
title: O ? Vt : null,
|
|
4844
4844
|
key: "prev",
|
|
@@ -4847,24 +4847,24 @@ var ri = function(t) {
|
|
|
4847
4847
|
onKeyDown: ht,
|
|
4848
4848
|
className: Se("".concat(i, "-jump-prev"), ue({}, "".concat(i, "-jump-prev-custom-icon"), !!fe))
|
|
4849
4849
|
}, vt) : null, te = X ? /* @__PURE__ */ G.createElement("li", {
|
|
4850
|
-
title: O ?
|
|
4850
|
+
title: O ? wt : null,
|
|
4851
4851
|
key: "next",
|
|
4852
4852
|
onClick: ct,
|
|
4853
4853
|
tabIndex: 0,
|
|
4854
4854
|
onKeyDown: rt,
|
|
4855
4855
|
className: Se("".concat(i, "-jump-next"), ue({}, "".concat(i, "-jump-next-custom-icon"), !!me))
|
|
4856
4856
|
}, X) : null);
|
|
4857
|
-
var K = Math.max(1,
|
|
4858
|
-
|
|
4857
|
+
var K = Math.max(1, E - Ye), se = Math.min(E + Ye, z);
|
|
4858
|
+
E - 1 <= Ye && (se = 1 + Ye * 2), z - E <= Ye && (K = z - Ye * 2);
|
|
4859
4859
|
for (var Ve = K; Ve <= se; Ve += 1)
|
|
4860
4860
|
q.push(/* @__PURE__ */ G.createElement(Ut, ze({}, he, {
|
|
4861
4861
|
key: Ve,
|
|
4862
4862
|
page: Ve,
|
|
4863
|
-
active:
|
|
4863
|
+
active: E === Ve
|
|
4864
4864
|
})));
|
|
4865
|
-
if (
|
|
4865
|
+
if (E - 1 >= Ye * 2 && E !== 3 && (q[0] = /* @__PURE__ */ G.cloneElement(q[0], {
|
|
4866
4866
|
className: Se("".concat(i, "-item-after-jump-prev"), q[0].props.className)
|
|
4867
|
-
}), q.unshift(Re)), z -
|
|
4867
|
+
}), q.unshift(Re)), z - E >= Ye * 2 && E !== z - 2) {
|
|
4868
4868
|
var pt = q[q.length - 1];
|
|
4869
4869
|
q[q.length - 1] = /* @__PURE__ */ G.cloneElement(pt, {
|
|
4870
4870
|
className: Se("".concat(i, "-item-before-jump-next"), pt.props.className)
|
|
@@ -4892,14 +4892,14 @@ var ri = function(t) {
|
|
|
4892
4892
|
}
|
|
4893
4893
|
var Dt = oe(ot);
|
|
4894
4894
|
if (Dt) {
|
|
4895
|
-
var
|
|
4896
|
-
R ? (
|
|
4895
|
+
var Et, zt;
|
|
4896
|
+
R ? (Et = !it, zt = Xe ? 0 : null) : (Et = !it || !z, zt = Et ? null : 0), Dt = /* @__PURE__ */ G.createElement("li", {
|
|
4897
4897
|
title: O ? T.next_page : null,
|
|
4898
4898
|
onClick: je,
|
|
4899
4899
|
tabIndex: zt,
|
|
4900
4900
|
onKeyDown: gt,
|
|
4901
|
-
className: Se("".concat(i, "-next"), ue({}, "".concat(i, "-disabled"),
|
|
4902
|
-
"aria-disabled":
|
|
4901
|
+
className: Se("".concat(i, "-next"), ue({}, "".concat(i, "-disabled"), Et)),
|
|
4902
|
+
"aria-disabled": Et
|
|
4903
4903
|
}, Dt);
|
|
4904
4904
|
}
|
|
4905
4905
|
var _t = Se(i, s, (n = {}, ue(n, "".concat(i, "-simple"), R), ue(n, "".concat(i, "-disabled"), V), n));
|
|
@@ -5393,7 +5393,7 @@ const Tl = (e) => {
|
|
|
5393
5393
|
} = e;
|
|
5394
5394
|
return {
|
|
5395
5395
|
[`${t}:not(${t}-disabled)`]: {
|
|
5396
|
-
[`${t}-item`]: Object.assign({},
|
|
5396
|
+
[`${t}-item`]: Object.assign({}, wi(e)),
|
|
5397
5397
|
[`${t}-jump-prev, ${t}-jump-next`]: {
|
|
5398
5398
|
"&:focus-visible": Object.assign({
|
|
5399
5399
|
[`${t}-item-link-icon`]: {
|
|
@@ -5512,7 +5512,7 @@ const Tl = (e) => {
|
|
|
5512
5512
|
}
|
|
5513
5513
|
}
|
|
5514
5514
|
};
|
|
5515
|
-
}, Kl =
|
|
5515
|
+
}, Kl = Ei(["Pagination", "bordered"], (e) => {
|
|
5516
5516
|
const t = li(e);
|
|
5517
5517
|
return [Wl(t)];
|
|
5518
5518
|
}, ai);
|
|
@@ -5543,7 +5543,7 @@ const si = (e) => {
|
|
|
5543
5543
|
getPrefixCls: m,
|
|
5544
5544
|
direction: g,
|
|
5545
5545
|
pagination: p = {}
|
|
5546
|
-
} = o.useContext(xt), h = m("pagination", t), [S, $,
|
|
5546
|
+
} = o.useContext(xt), h = m("pagination", t), [S, $, w] = Fl(h), P = f ?? p.showSizeChanger, C = o.useMemo(() => {
|
|
5547
5547
|
const M = /* @__PURE__ */ o.createElement("span", {
|
|
5548
5548
|
className: `${h}-item-ellipsis`
|
|
5549
5549
|
}, "•••"), _ = /* @__PURE__ */ o.createElement("button", {
|
|
@@ -5581,7 +5581,7 @@ const si = (e) => {
|
|
|
5581
5581
|
[`${h}-mini`]: I,
|
|
5582
5582
|
[`${h}-rtl`]: g === "rtl",
|
|
5583
5583
|
[`${h}-bordered`]: c.wireframe
|
|
5584
|
-
}, p == null ? void 0 : p.className, r, i, $,
|
|
5584
|
+
}, p == null ? void 0 : p.className, r, i, $, w), T = Object.assign(Object.assign({}, p == null ? void 0 : p.style), a);
|
|
5585
5585
|
return S(/* @__PURE__ */ o.createElement(o.Fragment, null, c.wireframe && /* @__PURE__ */ o.createElement(Kl, {
|
|
5586
5586
|
prefixCls: h
|
|
5587
5587
|
}), /* @__PURE__ */ o.createElement(ri, Object.assign({}, C, d, {
|
|
@@ -5780,7 +5780,7 @@ const ql = (e) => {
|
|
|
5780
5780
|
lineWidth: h,
|
|
5781
5781
|
headerBg: S,
|
|
5782
5782
|
footerBg: $,
|
|
5783
|
-
emptyTextPadding:
|
|
5783
|
+
emptyTextPadding: w,
|
|
5784
5784
|
metaMarginBottom: P,
|
|
5785
5785
|
avatarMarginRight: C,
|
|
5786
5786
|
titleMarginBottom: x,
|
|
@@ -5896,7 +5896,7 @@ const ql = (e) => {
|
|
|
5896
5896
|
textAlign: "center"
|
|
5897
5897
|
},
|
|
5898
5898
|
[`${t}-empty-text`]: {
|
|
5899
|
-
padding:
|
|
5899
|
+
padding: w,
|
|
5900
5900
|
color: e.colorTextDisabled,
|
|
5901
5901
|
fontSize: e.fontSize,
|
|
5902
5902
|
textAlign: "center"
|
|
@@ -6024,7 +6024,7 @@ function qt(e) {
|
|
|
6024
6024
|
loading: h = !1,
|
|
6025
6025
|
rowKey: S,
|
|
6026
6026
|
renderItem: $,
|
|
6027
|
-
locale:
|
|
6027
|
+
locale: w
|
|
6028
6028
|
} = e, P = kl(e, ["pagination", "prefixCls", "bordered", "split", "className", "rootClassName", "style", "children", "itemLayout", "loadMore", "grid", "dataSource", "size", "header", "footer", "loading", "rowKey", "renderItem", "locale"]);
|
|
6029
6029
|
const C = n && typeof n == "object" ? n : {}, [x, D] = o.useState(C.defaultCurrent || 1), [O, I] = o.useState(C.defaultPageSize || 10), {
|
|
6030
6030
|
getPrefixCls: H,
|
|
@@ -6082,13 +6082,13 @@ function qt(e) {
|
|
|
6082
6082
|
}))) : null;
|
|
6083
6083
|
let Q = mt(c);
|
|
6084
6084
|
n && c.length > (N.current - 1) * N.pageSize && (Q = mt(c).splice((N.current - 1) * N.pageSize, N.pageSize));
|
|
6085
|
-
const B = Object.keys(b || {}).some((le) => ["xs", "sm", "md", "lg", "xl", "xxl"].includes(le)),
|
|
6085
|
+
const B = Object.keys(b || {}).some((le) => ["xs", "sm", "md", "lg", "xl", "xxl"].includes(le)), E = $r(B), ee = o.useMemo(() => {
|
|
6086
6086
|
for (let le = 0; le < Jt.length; le += 1) {
|
|
6087
6087
|
const $e = Jt[le];
|
|
6088
|
-
if (
|
|
6088
|
+
if (E[$e])
|
|
6089
6089
|
return $e;
|
|
6090
6090
|
}
|
|
6091
|
-
}, [
|
|
6091
|
+
}, [E]), xe = o.useMemo(() => {
|
|
6092
6092
|
if (!b)
|
|
6093
6093
|
return;
|
|
6094
6094
|
const le = ee && b[ee] ? b[ee] : b.column;
|
|
@@ -6116,7 +6116,7 @@ function qt(e) {
|
|
|
6116
6116
|
} else
|
|
6117
6117
|
!v && !Ae && (ae = /* @__PURE__ */ o.createElement("div", {
|
|
6118
6118
|
className: `${W}-empty-text`
|
|
6119
|
-
},
|
|
6119
|
+
}, w && w.emptyText || (j == null ? void 0 : j("List")) || /* @__PURE__ */ o.createElement(Gr, {
|
|
6120
6120
|
componentName: "List"
|
|
6121
6121
|
})));
|
|
6122
6122
|
const ve = N.position || "bottom", Oe = o.useMemo(() => ({
|
|
@@ -6143,6 +6143,14 @@ const gs = (e) => {
|
|
|
6143
6143
|
if (!t)
|
|
6144
6144
|
return null;
|
|
6145
6145
|
const n = {
|
|
6146
|
+
buttonIcon: e.buttonIcon || /* @__PURE__ */ nt(
|
|
6147
|
+
Yi,
|
|
6148
|
+
{
|
|
6149
|
+
style: {
|
|
6150
|
+
fontSize: e.buttonIconSize || (e.buttonWidth ? e.buttonWidth / 2 : 20)
|
|
6151
|
+
}
|
|
6152
|
+
}
|
|
6153
|
+
),
|
|
6146
6154
|
buttonWidth: e.buttonWidth || 40,
|
|
6147
6155
|
buttonHeight: e.buttonHeight || 40,
|
|
6148
6156
|
popupWidth: e.popupWidth || 400,
|
|
@@ -6152,13 +6160,15 @@ const gs = (e) => {
|
|
|
6152
6160
|
pagination: e.pagination || "INFINITE_SCROLL",
|
|
6153
6161
|
pageSize: e.pageSize || 10,
|
|
6154
6162
|
pagePosition: e.pagePosition || "top",
|
|
6155
|
-
|
|
6163
|
+
popupZIndex: e.popupZIndex || 1030,
|
|
6156
6164
|
unreadBadgeProps: e.unreadBadgeProps ?? {},
|
|
6157
6165
|
count: e.count || "COUNT_UNOPENED_NOTIFICATIONS",
|
|
6158
6166
|
filter: e.filter || "ALL",
|
|
6167
|
+
header: {
|
|
6168
|
+
title: (r = e.header) == null ? void 0 : r.title
|
|
6169
|
+
},
|
|
6159
6170
|
renderers: {
|
|
6160
|
-
notification: (
|
|
6161
|
-
notificationExtra: (i = e.renderers) == null ? void 0 : i.notificationExtra
|
|
6171
|
+
notification: (i = e.renderers) == null ? void 0 : i.notification
|
|
6162
6172
|
}
|
|
6163
6173
|
};
|
|
6164
6174
|
return /* @__PURE__ */ nt(
|
|
@@ -6176,7 +6186,7 @@ const gs = (e) => {
|
|
|
6176
6186
|
pageSize: n.pageSize,
|
|
6177
6187
|
pagePosition: n.pagePosition,
|
|
6178
6188
|
notificationRenderer: n.renderers.notification,
|
|
6179
|
-
|
|
6189
|
+
header: n.header
|
|
6180
6190
|
}
|
|
6181
6191
|
),
|
|
6182
6192
|
onOpenChange: (a) => {
|
|
@@ -6187,6 +6197,7 @@ const gs = (e) => {
|
|
|
6187
6197
|
padding: "0 16px",
|
|
6188
6198
|
minWidth: n.popupWidth
|
|
6189
6199
|
},
|
|
6200
|
+
zIndex: e.popupZIndex,
|
|
6190
6201
|
children: /* @__PURE__ */ nt(
|
|
6191
6202
|
"div",
|
|
6192
6203
|
{
|
|
@@ -6206,14 +6217,7 @@ const gs = (e) => {
|
|
|
6206
6217
|
children: /* @__PURE__ */ nt(
|
|
6207
6218
|
eo,
|
|
6208
6219
|
{
|
|
6209
|
-
icon:
|
|
6210
|
-
Yi,
|
|
6211
|
-
{
|
|
6212
|
-
style: {
|
|
6213
|
-
fontSize: n.buttonIconSize
|
|
6214
|
-
}
|
|
6215
|
-
}
|
|
6216
|
-
),
|
|
6220
|
+
icon: n.buttonIcon,
|
|
6217
6221
|
style: {
|
|
6218
6222
|
width: n.buttonWidth,
|
|
6219
6223
|
height: n.buttonHeight
|
|
@@ -6231,14 +6235,21 @@ const gs = (e) => {
|
|
|
6231
6235
|
};
|
|
6232
6236
|
var es = /* @__PURE__ */ ((e) => (e.INFINITE_SCROLL = "infinite_scroll", e.PAGINATED = "paginated", e))(es || {});
|
|
6233
6237
|
const ts = (e) => {
|
|
6238
|
+
var r;
|
|
6234
6239
|
const t = Yt(xr);
|
|
6235
6240
|
if (!t)
|
|
6236
6241
|
return null;
|
|
6237
|
-
const n = (
|
|
6242
|
+
const n = (i) => e.filter === Dn.ALL || !e.filter ? i : e.filter === Dn.UNARCHIVED ? i.filter((a) => !a.archived) : i.filter(e.filter);
|
|
6238
6243
|
return t.notifications === void 0 ? null : /* @__PURE__ */ nt("div", { children: e.pagination === "INFINITE_SCROLL" ? /* @__PURE__ */ mi(
|
|
6239
6244
|
qt,
|
|
6240
6245
|
{
|
|
6241
|
-
header: /* @__PURE__ */ nt(
|
|
6246
|
+
header: /* @__PURE__ */ nt(
|
|
6247
|
+
Un,
|
|
6248
|
+
{
|
|
6249
|
+
title: (r = e.header) == null ? void 0 : r.title,
|
|
6250
|
+
markAsArchived: t.markAsArchived
|
|
6251
|
+
}
|
|
6252
|
+
),
|
|
6242
6253
|
dataSource: n(t.notifications),
|
|
6243
6254
|
children: [
|
|
6244
6255
|
n(t.notifications).length === 0 && /* @__PURE__ */ nt(
|
|
@@ -6255,22 +6266,21 @@ const ts = (e) => {
|
|
|
6255
6266
|
height: e.maxHeight,
|
|
6256
6267
|
itemHeight: 47,
|
|
6257
6268
|
itemKey: "id",
|
|
6258
|
-
onScroll: (
|
|
6269
|
+
onScroll: (i) => {
|
|
6259
6270
|
Math.abs(
|
|
6260
|
-
|
|
6271
|
+
i.currentTarget.scrollHeight - i.currentTarget.scrollTop - e.maxHeight
|
|
6261
6272
|
) <= 1 && t.loadNotifications();
|
|
6262
6273
|
},
|
|
6263
|
-
children: (
|
|
6274
|
+
children: (i) => /* @__PURE__ */ nt(qt.Item, { style: { padding: 0 }, children: /* @__PURE__ */ nt(
|
|
6264
6275
|
Zn,
|
|
6265
6276
|
{
|
|
6266
6277
|
imageShape: e.imageShape,
|
|
6267
6278
|
markAsArchived: t.markAsArchived,
|
|
6268
|
-
notification:
|
|
6279
|
+
notification: i,
|
|
6269
6280
|
markAsClicked: t.markAsClicked,
|
|
6270
|
-
renderer: e.notificationRenderer
|
|
6271
|
-
extraRenderer: e.notificationExtraRenderer
|
|
6281
|
+
renderer: e.notificationRenderer
|
|
6272
6282
|
}
|
|
6273
|
-
) },
|
|
6283
|
+
) }, i.id)
|
|
6274
6284
|
}
|
|
6275
6285
|
)
|
|
6276
6286
|
]
|
|
@@ -6280,25 +6290,24 @@ const ts = (e) => {
|
|
|
6280
6290
|
{
|
|
6281
6291
|
header: /* @__PURE__ */ nt(Un, { markAsArchived: t.markAsArchived }),
|
|
6282
6292
|
dataSource: n(t.notifications),
|
|
6283
|
-
renderItem: (
|
|
6293
|
+
renderItem: (i) => /* @__PURE__ */ nt(qt.Item, { style: { padding: 0 }, children: /* @__PURE__ */ nt(
|
|
6284
6294
|
Zn,
|
|
6285
6295
|
{
|
|
6286
6296
|
imageShape: e.imageShape,
|
|
6287
6297
|
markAsArchived: t.markAsArchived,
|
|
6288
|
-
notification:
|
|
6298
|
+
notification: i,
|
|
6289
6299
|
markAsClicked: t.markAsClicked,
|
|
6290
|
-
renderer: e.notificationRenderer
|
|
6291
|
-
extraRenderer: e.notificationExtraRenderer
|
|
6300
|
+
renderer: e.notificationRenderer
|
|
6292
6301
|
}
|
|
6293
|
-
) },
|
|
6302
|
+
) }, i.id),
|
|
6294
6303
|
pagination: {
|
|
6295
6304
|
pageSize: e.pageSize,
|
|
6296
6305
|
align: "center",
|
|
6297
6306
|
position: e.pagePosition,
|
|
6298
6307
|
showSizeChanger: !1,
|
|
6299
6308
|
simple: !0,
|
|
6300
|
-
onChange(
|
|
6301
|
-
|
|
6309
|
+
onChange(i, a) {
|
|
6310
|
+
i >= Math.floor(t.notifications.length / a) && t.loadNotifications();
|
|
6302
6311
|
}
|
|
6303
6312
|
},
|
|
6304
6313
|
children: n(t.notifications).length === 0 && /* @__PURE__ */ nt(
|