@univerjs/design 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -2
- package/lib/cjs/index.js +7 -7
- package/lib/es/index.js +354 -338
- package/lib/index.css +1 -1
- package/lib/types/components/dialog/Dialog.d.ts +12 -0
- package/lib/types/components/dialog/Dialog.stories.d.ts +3 -0
- package/lib/umd/index.js +7 -7
- package/package.json +3 -3
package/lib/es/index.js
CHANGED
|
@@ -2,7 +2,7 @@ var ju = Object.defineProperty;
|
|
|
2
2
|
var Ku = (e, t, n) => t in e ? ju(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var Nr = (e, t, n) => (Ku(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
import * as s from "react";
|
|
5
|
-
import S, { forwardRef as Rt, useRef as ce, createElement as tn, useMemo as Rn, useState as
|
|
5
|
+
import S, { forwardRef as Rt, useRef as ce, createElement as tn, useMemo as Rn, useState as ht, useEffect as wt, createContext as Gu, useLayoutEffect as qu, useContext as Jn, cloneElement as Ar, useImperativeHandle as Xa, useCallback as vn, Children as Xu, isValidElement as ho } from "react";
|
|
6
6
|
import jt from "clsx";
|
|
7
7
|
import Tn, { createPortal as Yu, unstable_batchedUpdates as Zu, flushSync as wa } from "react-dom";
|
|
8
8
|
const Qu = "univer-avatar", Ju = "univer-avatar-square", ec = "univer-avatar-circle", tc = "univer-avatar-middle", nc = "univer-avatar-small", rc = "univer-avatar-image", ar = {
|
|
@@ -1381,7 +1381,7 @@ var vf = (
|
|
|
1381
1381
|
}(vf), gf = "rc-color-picker", Fn = function(t) {
|
|
1382
1382
|
return t instanceof Pi ? t : new Pi(t);
|
|
1383
1383
|
}, bf = Fn("#1677ff"), es = function(t) {
|
|
1384
|
-
var n = t.offset, r = t.targetRef, o = t.containerRef, a = t.color, i = t.type, l = o.current.getBoundingClientRect(), u = l.width, c = l.height, d = r.current.getBoundingClientRect(), f = d.width, m = d.height, v = f / 2, h = m / 2, y = (n.x + v) / u,
|
|
1384
|
+
var n = t.offset, r = t.targetRef, o = t.containerRef, a = t.color, i = t.type, l = o.current.getBoundingClientRect(), u = l.width, c = l.height, d = r.current.getBoundingClientRect(), f = d.width, m = d.height, v = f / 2, h = m / 2, y = (n.x + v) / u, E = 1 - (n.y + h) / c, w = a.toHsb(), g = y, b = (n.x + v) / u * 360;
|
|
1385
1385
|
if (i)
|
|
1386
1386
|
switch (i) {
|
|
1387
1387
|
case "hue":
|
|
@@ -1396,7 +1396,7 @@ var vf = (
|
|
|
1396
1396
|
return Fn({
|
|
1397
1397
|
h: w.h,
|
|
1398
1398
|
s: y <= 0 ? 0 : y,
|
|
1399
|
-
b:
|
|
1399
|
+
b: E >= 1 ? 1 : E,
|
|
1400
1400
|
a: w.a
|
|
1401
1401
|
});
|
|
1402
1402
|
}, ts = function(t, n, r, o) {
|
|
@@ -1483,14 +1483,14 @@ function Sf(e) {
|
|
|
1483
1483
|
};
|
|
1484
1484
|
}
|
|
1485
1485
|
function as(e) {
|
|
1486
|
-
var t = e.offset, n = e.targetRef, r = e.containerRef, o = e.direction, a = e.onDragChange, i = e.onDragChangeComplete, l = e.calculate, u = e.color, c = e.disabledDrag, d =
|
|
1486
|
+
var t = e.offset, n = e.targetRef, r = e.containerRef, o = e.direction, a = e.onDragChange, i = e.onDragChangeComplete, l = e.calculate, u = e.color, c = e.disabledDrag, d = ht(t || {
|
|
1487
1487
|
x: 0,
|
|
1488
1488
|
y: 0
|
|
1489
|
-
}), f = V(d, 2), m = f[0], v = f[1], h = ce(null), y = ce(null),
|
|
1489
|
+
}), f = V(d, 2), m = f[0], v = f[1], h = ce(null), y = ce(null), E = ce({
|
|
1490
1490
|
flag: !1
|
|
1491
1491
|
});
|
|
1492
1492
|
wt(function() {
|
|
1493
|
-
if (
|
|
1493
|
+
if (E.current.flag === !1) {
|
|
1494
1494
|
var x = l == null ? void 0 : l(r);
|
|
1495
1495
|
x && v(x);
|
|
1496
1496
|
}
|
|
@@ -1499,20 +1499,20 @@ function as(e) {
|
|
|
1499
1499
|
document.removeEventListener("mousemove", h.current), document.removeEventListener("mouseup", y.current), document.removeEventListener("touchmove", h.current), document.removeEventListener("touchend", y.current), h.current = null, y.current = null;
|
|
1500
1500
|
};
|
|
1501
1501
|
}, []);
|
|
1502
|
-
var w = function(
|
|
1503
|
-
var R = Sf(
|
|
1502
|
+
var w = function(C) {
|
|
1503
|
+
var R = Sf(C), _ = R.pageX, O = R.pageY, L = r.current.getBoundingClientRect(), $ = L.x, W = L.y, T = L.width, k = L.height, z = n.current.getBoundingClientRect(), B = z.width, A = z.height, D = B / 2, M = A / 2, N = Math.max(0, Math.min(_ - $, T)) - D, I = Math.max(0, Math.min(O - W, k)) - M, F = {
|
|
1504
1504
|
x: N,
|
|
1505
1505
|
y: o === "x" ? m.y : I
|
|
1506
1506
|
};
|
|
1507
1507
|
if (B === 0 && A === 0 || B !== A)
|
|
1508
1508
|
return !1;
|
|
1509
1509
|
v(F), a == null || a(F);
|
|
1510
|
-
}, g = function(
|
|
1511
|
-
|
|
1512
|
-
}, b = function(
|
|
1513
|
-
|
|
1514
|
-
}, p = function(
|
|
1515
|
-
document.removeEventListener("mousemove", h.current), document.removeEventListener("mouseup", y.current), !c && (w(
|
|
1510
|
+
}, g = function(C) {
|
|
1511
|
+
C.preventDefault(), w(C);
|
|
1512
|
+
}, b = function(C) {
|
|
1513
|
+
C.preventDefault(), E.current.flag = !1, document.removeEventListener("mousemove", h.current), document.removeEventListener("mouseup", y.current), document.removeEventListener("touchmove", h.current), document.removeEventListener("touchend", y.current), h.current = null, y.current = null, i == null || i();
|
|
1514
|
+
}, p = function(C) {
|
|
1515
|
+
document.removeEventListener("mousemove", h.current), document.removeEventListener("mouseup", y.current), !c && (w(C), E.current.flag = !0, document.addEventListener("mousemove", g), document.addEventListener("mouseup", b), document.addEventListener("touchmove", g), document.addEventListener("touchend", b), h.current = g, y.current = b);
|
|
1516
1516
|
};
|
|
1517
1517
|
return [m, p];
|
|
1518
1518
|
}
|
|
@@ -1552,13 +1552,13 @@ var is = function(t) {
|
|
|
1552
1552
|
return ts(y, u, n);
|
|
1553
1553
|
},
|
|
1554
1554
|
onDragChange: function(y) {
|
|
1555
|
-
var
|
|
1555
|
+
var E = es({
|
|
1556
1556
|
offset: y,
|
|
1557
1557
|
targetRef: u,
|
|
1558
1558
|
containerRef: l,
|
|
1559
1559
|
color: n
|
|
1560
1560
|
});
|
|
1561
|
-
c.current =
|
|
1561
|
+
c.current = E, r(E);
|
|
1562
1562
|
},
|
|
1563
1563
|
onDragChangeComplete: function() {
|
|
1564
1564
|
return a == null ? void 0 : a(c.current);
|
|
@@ -1623,7 +1623,7 @@ var is = function(t) {
|
|
|
1623
1623
|
},
|
|
1624
1624
|
direction: "x",
|
|
1625
1625
|
disabledDrag: d
|
|
1626
|
-
}),
|
|
1626
|
+
}), E = V(y, 2), w = E[0], g = E[1];
|
|
1627
1627
|
return /* @__PURE__ */ S.createElement("div", {
|
|
1628
1628
|
ref: m,
|
|
1629
1629
|
className: Se("".concat(f, "-slider"), "".concat(f, "-slider-").concat(a)),
|
|
@@ -1649,7 +1649,7 @@ function ki(e) {
|
|
|
1649
1649
|
return e !== void 0;
|
|
1650
1650
|
}
|
|
1651
1651
|
var wf = function(t, n) {
|
|
1652
|
-
var r = n.defaultValue, o = n.value, a =
|
|
1652
|
+
var r = n.defaultValue, o = n.value, a = ht(function() {
|
|
1653
1653
|
var c;
|
|
1654
1654
|
return ki(o) ? c = o : ki(r) ? c = r : c = t, Fn(c);
|
|
1655
1655
|
}), i = V(a, 2), l = i[0], u = i[1];
|
|
@@ -1661,18 +1661,18 @@ const Rf = /* @__PURE__ */ Rt(function(e, t) {
|
|
|
1661
1661
|
var n = e.value, r = e.defaultValue, o = e.prefixCls, a = o === void 0 ? gf : o, i = e.onChange, l = e.onChangeComplete, u = e.className, c = e.style, d = e.panelRender, f = e.disabledAlpha, m = f === void 0 ? !1 : f, v = e.disabled, h = v === void 0 ? !1 : v, y = wf(bf, {
|
|
1662
1662
|
value: n,
|
|
1663
1663
|
defaultValue: r
|
|
1664
|
-
}),
|
|
1664
|
+
}), E = V(y, 2), w = E[0], g = E[1], b = Rn(function() {
|
|
1665
1665
|
var _ = Fn(w.toRgbString());
|
|
1666
1666
|
return _.setAlpha(1), _.toRgbString();
|
|
1667
1667
|
}, [w]), p = Se("".concat(a, "-panel"), u, q({}, "".concat(a, "-panel-disabled"), h)), x = {
|
|
1668
1668
|
prefixCls: a,
|
|
1669
1669
|
onChangeComplete: l,
|
|
1670
1670
|
disabled: h
|
|
1671
|
-
},
|
|
1671
|
+
}, C = function(O, L) {
|
|
1672
1672
|
n || g(O), i == null || i(O, L);
|
|
1673
1673
|
}, R = /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement(Cf, Ee({
|
|
1674
1674
|
color: w,
|
|
1675
|
-
onChange:
|
|
1675
|
+
onChange: C
|
|
1676
1676
|
}, x)), /* @__PURE__ */ S.createElement("div", {
|
|
1677
1677
|
className: "".concat(a, "-slider-container")
|
|
1678
1678
|
}, /* @__PURE__ */ S.createElement("div", {
|
|
@@ -1682,7 +1682,7 @@ const Rf = /* @__PURE__ */ Rt(function(e, t) {
|
|
|
1682
1682
|
color: w,
|
|
1683
1683
|
value: "hsl(".concat(w.toHsb().h, ",100%, 50%)"),
|
|
1684
1684
|
onChange: function(O) {
|
|
1685
|
-
return
|
|
1685
|
+
return C(O, "hue");
|
|
1686
1686
|
}
|
|
1687
1687
|
}, x)), !m && /* @__PURE__ */ S.createElement(Oi, Ee({
|
|
1688
1688
|
type: "alpha",
|
|
@@ -1690,7 +1690,7 @@ const Rf = /* @__PURE__ */ Rt(function(e, t) {
|
|
|
1690
1690
|
color: w,
|
|
1691
1691
|
value: w.toRgbString(),
|
|
1692
1692
|
onChange: function(O) {
|
|
1693
|
-
return
|
|
1693
|
+
return C(O, "alpha");
|
|
1694
1694
|
}
|
|
1695
1695
|
}, x))), /* @__PURE__ */ S.createElement(os, {
|
|
1696
1696
|
color: w.toRgbString(),
|
|
@@ -2035,7 +2035,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2035
2035
|
function mt(e) {
|
|
2036
2036
|
return Qf(e) || ms(e) || Za(e) || Jf();
|
|
2037
2037
|
}
|
|
2038
|
-
var Li = yn() ? s.useLayoutEffect : s.useEffect,
|
|
2038
|
+
var Li = yn() ? s.useLayoutEffect : s.useEffect, yt = function(t, n) {
|
|
2039
2039
|
var r = s.useRef(!0);
|
|
2040
2040
|
Li(function() {
|
|
2041
2041
|
return t(r.current);
|
|
@@ -2045,7 +2045,7 @@ var Li = yn() ? s.useLayoutEffect : s.useEffect, bt = function(t, n) {
|
|
|
2045
2045
|
};
|
|
2046
2046
|
}, []);
|
|
2047
2047
|
}, $r = function(t, n) {
|
|
2048
|
-
|
|
2048
|
+
yt(function(r) {
|
|
2049
2049
|
if (!r)
|
|
2050
2050
|
return t();
|
|
2051
2051
|
}, n);
|
|
@@ -2058,8 +2058,8 @@ function ed(e, t) {
|
|
|
2058
2058
|
return h;
|
|
2059
2059
|
}), r = V(n, 1), o = r[0], a = s.useRef(!1), i = s.useContext(vs), l = s.useState(Ti), u = V(l, 2), c = u[0], d = u[1], f = i || (a.current ? void 0 : function(h) {
|
|
2060
2060
|
d(function(y) {
|
|
2061
|
-
var
|
|
2062
|
-
return
|
|
2061
|
+
var E = [h].concat(mt(y));
|
|
2062
|
+
return E;
|
|
2063
2063
|
});
|
|
2064
2064
|
});
|
|
2065
2065
|
function m() {
|
|
@@ -2069,9 +2069,9 @@ function ed(e, t) {
|
|
|
2069
2069
|
var h;
|
|
2070
2070
|
(h = o.parentElement) === null || h === void 0 || h.removeChild(o), a.current = !1;
|
|
2071
2071
|
}
|
|
2072
|
-
return
|
|
2072
|
+
return yt(function() {
|
|
2073
2073
|
return e ? i ? i(m) : m() : v(), v;
|
|
2074
|
-
}, [e]),
|
|
2074
|
+
}, [e]), yt(function() {
|
|
2075
2075
|
c.length && (c.forEach(function(h) {
|
|
2076
2076
|
return h();
|
|
2077
2077
|
}), d(Ti));
|
|
@@ -2208,7 +2208,7 @@ function ud(e) {
|
|
|
2208
2208
|
var t = !!e, n = s.useState(function() {
|
|
2209
2209
|
return Vi += 1, "".concat(sd, "_").concat(Vi);
|
|
2210
2210
|
}), r = V(n, 1), o = r[0];
|
|
2211
|
-
|
|
2211
|
+
yt(function() {
|
|
2212
2212
|
if (t) {
|
|
2213
2213
|
var a = id(document.body).width, i = ld();
|
|
2214
2214
|
od(`
|
|
@@ -2238,19 +2238,19 @@ var Ui = function(t) {
|
|
|
2238
2238
|
}, [n, i]);
|
|
2239
2239
|
var v = s.useState(function() {
|
|
2240
2240
|
return Ui(o);
|
|
2241
|
-
}), h = V(v, 2), y = h[0],
|
|
2241
|
+
}), h = V(v, 2), y = h[0], E = h[1];
|
|
2242
2242
|
s.useEffect(function() {
|
|
2243
2243
|
var $ = Ui(o);
|
|
2244
|
-
|
|
2244
|
+
E($ != null ? $ : null);
|
|
2245
2245
|
});
|
|
2246
2246
|
var w = ed(m && !y), g = V(w, 2), b = g[0], p = g[1], x = y != null ? y : b;
|
|
2247
2247
|
ud(r && n && yn() && (x === b || x === document.body));
|
|
2248
|
-
var
|
|
2248
|
+
var C = null;
|
|
2249
2249
|
if (l && Er(l) && t) {
|
|
2250
2250
|
var R = l;
|
|
2251
|
-
|
|
2251
|
+
C = R.ref;
|
|
2252
2252
|
}
|
|
2253
|
-
var _ = Cr(
|
|
2253
|
+
var _ = Cr(C, t);
|
|
2254
2254
|
if (!m || !yn() || y === void 0)
|
|
2255
2255
|
return null;
|
|
2256
2256
|
var O = x === !1 || cd(), L = l;
|
|
@@ -3012,9 +3012,9 @@ const Id = function(e, t, n) {
|
|
|
3012
3012
|
return Ns(function() {
|
|
3013
3013
|
if (a !== qi && a !== oi) {
|
|
3014
3014
|
var v = m.indexOf(a), h = m[v + 1], y = n(a);
|
|
3015
|
-
y === _s ? i(h, !0) : h && c(function(
|
|
3015
|
+
y === _s ? i(h, !0) : h && c(function(E) {
|
|
3016
3016
|
function w() {
|
|
3017
|
-
|
|
3017
|
+
E.isCanceled() || i(h, !0);
|
|
3018
3018
|
}
|
|
3019
3019
|
y === !0 ? w() : Promise.resolve(y).then(w);
|
|
3020
3020
|
});
|
|
@@ -3026,7 +3026,7 @@ const Id = function(e, t, n) {
|
|
|
3026
3026
|
}, []), [f, a];
|
|
3027
3027
|
};
|
|
3028
3028
|
function Dd(e, t, n, r) {
|
|
3029
|
-
var o = r.motionEnter, a = o === void 0 ? !0 : o, i = r.motionAppear, l = i === void 0 ? !0 : i, u = r.motionLeave, c = u === void 0 ? !0 : u, d = r.motionDeadline, f = r.motionLeaveImmediately, m = r.onAppearPrepare, v = r.onEnterPrepare, h = r.onLeavePrepare, y = r.onAppearStart,
|
|
3029
|
+
var o = r.motionEnter, a = o === void 0 ? !0 : o, i = r.motionAppear, l = i === void 0 ? !0 : i, u = r.motionLeave, c = u === void 0 ? !0 : u, d = r.motionDeadline, f = r.motionLeaveImmediately, m = r.onAppearPrepare, v = r.onEnterPrepare, h = r.onLeavePrepare, y = r.onAppearStart, E = r.onEnterStart, w = r.onLeaveStart, g = r.onAppearActive, b = r.onEnterActive, p = r.onLeaveActive, x = r.onAppearEnd, C = r.onEnterEnd, R = r.onLeaveEnd, _ = r.onVisibleChanged, O = yr(), L = V(O, 2), $ = L[0], W = L[1], T = yr(jn), k = V(T, 2), z = k[0], B = k[1], A = yr(null), D = V(A, 2), M = D[0], N = D[1], I = ce(!1), F = ce(null);
|
|
3030
3030
|
function K() {
|
|
3031
3031
|
return n();
|
|
3032
3032
|
}
|
|
@@ -3038,7 +3038,7 @@ function Dd(e, t, n, r) {
|
|
|
3038
3038
|
var Q = K();
|
|
3039
3039
|
if (!(G && !G.deadline && G.target !== Q)) {
|
|
3040
3040
|
var ae = H.current, _e;
|
|
3041
|
-
z === oo && ae ? _e = x == null ? void 0 : x(Q, G) : z === ao && ae ? _e =
|
|
3041
|
+
z === oo && ae ? _e = x == null ? void 0 : x(Q, G) : z === ao && ae ? _e = C == null ? void 0 : C(Q, G) : z === io && ae && (_e = R == null ? void 0 : R(Q, G)), z !== jn && ae && _e !== !1 && Y();
|
|
3042
3042
|
}
|
|
3043
3043
|
}
|
|
3044
3044
|
var se = wd(ee), J = V(se, 1), Z = J[0], j = function(Q) {
|
|
@@ -3047,7 +3047,7 @@ function Dd(e, t, n, r) {
|
|
|
3047
3047
|
case oo:
|
|
3048
3048
|
return ae = {}, q(ae, dn, m), q(ae, pr, y), q(ae, gr, g), ae;
|
|
3049
3049
|
case ao:
|
|
3050
|
-
return _e = {}, q(_e, dn, v), q(_e, pr,
|
|
3050
|
+
return _e = {}, q(_e, dn, v), q(_e, pr, E), q(_e, gr, b), _e;
|
|
3051
3051
|
case io:
|
|
3052
3052
|
return be = {}, q(be, dn, h), q(be, pr, w), q(be, gr, p), be;
|
|
3053
3053
|
default:
|
|
@@ -3104,7 +3104,7 @@ function _d(e) {
|
|
|
3104
3104
|
return !!(o.motionName && t && a !== !1);
|
|
3105
3105
|
}
|
|
3106
3106
|
var r = /* @__PURE__ */ s.forwardRef(function(o, a) {
|
|
3107
|
-
var i = o.visible, l = i === void 0 ? !0 : i, u = o.removeOnLeave, c = u === void 0 ? !0 : u, d = o.forceRender, f = o.children, m = o.motionName, v = o.leavedClassName, h = o.eventProps, y = s.useContext(bd),
|
|
3107
|
+
var i = o.visible, l = i === void 0 ? !0 : i, u = o.removeOnLeave, c = u === void 0 ? !0 : u, d = o.forceRender, f = o.children, m = o.motionName, v = o.leavedClassName, h = o.eventProps, y = s.useContext(bd), E = y.motion, w = n(o, E), g = ce(), b = ce();
|
|
3108
3108
|
function p() {
|
|
3109
3109
|
try {
|
|
3110
3110
|
return g.current instanceof HTMLElement ? g.current : Fr(b.current);
|
|
@@ -3112,7 +3112,7 @@ function _d(e) {
|
|
|
3112
3112
|
return null;
|
|
3113
3113
|
}
|
|
3114
3114
|
}
|
|
3115
|
-
var x = Dd(w, l, p, o),
|
|
3115
|
+
var x = Dd(w, l, p, o), C = V(x, 4), R = C[0], _ = C[1], O = C[2], L = C[3], $ = s.useRef(L);
|
|
3116
3116
|
L && ($.current = !0);
|
|
3117
3117
|
var W = s.useCallback(function(N) {
|
|
3118
3118
|
g.current = N, ti(a, N);
|
|
@@ -3234,12 +3234,12 @@ function Ad(e) {
|
|
|
3234
3234
|
return Bn(a, [{
|
|
3235
3235
|
key: "render",
|
|
3236
3236
|
value: function() {
|
|
3237
|
-
var l = this, u = this.state.keyEntities, c = this.props, d = c.component, f = c.children, m = c.onVisibleChanged, v = c.onAllRemoved, h = Ge(c, kd), y = d || s.Fragment,
|
|
3237
|
+
var l = this, u = this.state.keyEntities, c = this.props, d = c.component, f = c.children, m = c.onVisibleChanged, v = c.onAllRemoved, h = Ge(c, kd), y = d || s.Fragment, E = {};
|
|
3238
3238
|
return Td.forEach(function(w) {
|
|
3239
|
-
|
|
3239
|
+
E[w] = h[w], delete h[w];
|
|
3240
3240
|
}), delete h.keys, /* @__PURE__ */ s.createElement(y, h, u.map(function(w, g) {
|
|
3241
3241
|
var b = w.status, p = Ge(w, Ld), x = b === Da || b === _a;
|
|
3242
|
-
return /* @__PURE__ */ s.createElement(t, Ee({},
|
|
3242
|
+
return /* @__PURE__ */ s.createElement(t, Ee({}, E, {
|
|
3243
3243
|
key: p.key,
|
|
3244
3244
|
visible: x,
|
|
3245
3245
|
eventProps: p,
|
|
@@ -3251,8 +3251,8 @@ function Ad(e) {
|
|
|
3251
3251
|
_ === 0 && v && v();
|
|
3252
3252
|
}
|
|
3253
3253
|
}
|
|
3254
|
-
}), function(
|
|
3255
|
-
return f(P(P({},
|
|
3254
|
+
}), function(C, R) {
|
|
3255
|
+
return f(P(P({}, C), {}, {
|
|
3256
3256
|
index: g
|
|
3257
3257
|
}), R);
|
|
3258
3258
|
});
|
|
@@ -3265,8 +3265,8 @@ function Ad(e) {
|
|
|
3265
3265
|
return {
|
|
3266
3266
|
keyEntities: m.filter(function(v) {
|
|
3267
3267
|
var h = d.find(function(y) {
|
|
3268
|
-
var
|
|
3269
|
-
return v.key ===
|
|
3268
|
+
var E = y.key;
|
|
3269
|
+
return v.key === E;
|
|
3270
3270
|
});
|
|
3271
3271
|
return !(h && h.status === ha && v.status === Pa);
|
|
3272
3272
|
})
|
|
@@ -3292,7 +3292,7 @@ var el = {
|
|
|
3292
3292
|
overflow: "hidden",
|
|
3293
3293
|
outline: "none"
|
|
3294
3294
|
}, Fd = /* @__PURE__ */ S.forwardRef(function(e, t) {
|
|
3295
|
-
var n = e.prefixCls, r = e.className, o = e.style, a = e.title, i = e.ariaId, l = e.footer, u = e.closable, c = e.closeIcon, d = e.onClose, f = e.children, m = e.bodyStyle, v = e.bodyProps, h = e.modalRender, y = e.onMouseDown,
|
|
3295
|
+
var n = e.prefixCls, r = e.className, o = e.style, a = e.title, i = e.ariaId, l = e.footer, u = e.closable, c = e.closeIcon, d = e.onClose, f = e.children, m = e.bodyStyle, v = e.bodyProps, h = e.modalRender, y = e.onMouseDown, E = e.onMouseUp, w = e.holderRef, g = e.visible, b = e.forceRender, p = e.width, x = e.height, C = e.classNames, R = e.styles, _ = S.useContext(bs), O = _.panel, L = Cr(w, O), $ = ce(), W = ce();
|
|
3296
3296
|
S.useImperativeHandle(t, function() {
|
|
3297
3297
|
return {
|
|
3298
3298
|
focus: function() {
|
|
@@ -3309,12 +3309,12 @@ var el = {
|
|
|
3309
3309
|
p !== void 0 && (T.width = p), x !== void 0 && (T.height = x);
|
|
3310
3310
|
var k;
|
|
3311
3311
|
l && (k = /* @__PURE__ */ S.createElement("div", {
|
|
3312
|
-
className: Se("".concat(n, "-footer"),
|
|
3312
|
+
className: Se("".concat(n, "-footer"), C == null ? void 0 : C.footer),
|
|
3313
3313
|
style: P({}, R == null ? void 0 : R.footer)
|
|
3314
3314
|
}, l));
|
|
3315
3315
|
var z;
|
|
3316
3316
|
a && (z = /* @__PURE__ */ S.createElement("div", {
|
|
3317
|
-
className: Se("".concat(n, "-header"),
|
|
3317
|
+
className: Se("".concat(n, "-header"), C == null ? void 0 : C.header),
|
|
3318
3318
|
style: P({}, R == null ? void 0 : R.header)
|
|
3319
3319
|
}, /* @__PURE__ */ S.createElement("div", {
|
|
3320
3320
|
className: "".concat(n, "-title"),
|
|
@@ -3330,10 +3330,10 @@ var el = {
|
|
|
3330
3330
|
className: "".concat(n, "-close-x")
|
|
3331
3331
|
})));
|
|
3332
3332
|
var A = /* @__PURE__ */ S.createElement("div", {
|
|
3333
|
-
className: Se("".concat(n, "-content"),
|
|
3333
|
+
className: Se("".concat(n, "-content"), C == null ? void 0 : C.content),
|
|
3334
3334
|
style: R == null ? void 0 : R.content
|
|
3335
3335
|
}, B, z, /* @__PURE__ */ S.createElement("div", Ee({
|
|
3336
|
-
className: Se("".concat(n, "-body"),
|
|
3336
|
+
className: Se("".concat(n, "-body"), C == null ? void 0 : C.body),
|
|
3337
3337
|
style: P(P({}, m), R == null ? void 0 : R.body)
|
|
3338
3338
|
}, v), f), k);
|
|
3339
3339
|
return /* @__PURE__ */ S.createElement("div", {
|
|
@@ -3345,7 +3345,7 @@ var el = {
|
|
|
3345
3345
|
style: P(P({}, o), T),
|
|
3346
3346
|
className: Se(n, r),
|
|
3347
3347
|
onMouseDown: y,
|
|
3348
|
-
onMouseUp:
|
|
3348
|
+
onMouseUp: E
|
|
3349
3349
|
}, /* @__PURE__ */ S.createElement("div", {
|
|
3350
3350
|
tabIndex: 0,
|
|
3351
3351
|
ref: $,
|
|
@@ -3360,8 +3360,8 @@ var el = {
|
|
|
3360
3360
|
"aria-hidden": "true"
|
|
3361
3361
|
}));
|
|
3362
3362
|
}), Os = /* @__PURE__ */ s.forwardRef(function(e, t) {
|
|
3363
|
-
var n = e.prefixCls, r = e.title, o = e.style, a = e.className, i = e.visible, l = e.forceRender, u = e.destroyOnClose, c = e.motionName, d = e.ariaId, f = e.onVisibleChanged, m = e.mousePosition, v = ce(), h = s.useState(), y = V(h, 2),
|
|
3364
|
-
|
|
3363
|
+
var n = e.prefixCls, r = e.title, o = e.style, a = e.className, i = e.visible, l = e.forceRender, u = e.destroyOnClose, c = e.motionName, d = e.ariaId, f = e.onVisibleChanged, m = e.mousePosition, v = ce(), h = s.useState(), y = V(h, 2), E = y[0], w = y[1], g = {};
|
|
3364
|
+
E && (g.transformOrigin = E);
|
|
3365
3365
|
function b() {
|
|
3366
3366
|
var p = gd(v.current);
|
|
3367
3367
|
w(m ? "".concat(m.x - p.left, "px ").concat(m.y - p.top, "px") : "");
|
|
@@ -3376,7 +3376,7 @@ var el = {
|
|
|
3376
3376
|
removeOnLeave: u,
|
|
3377
3377
|
ref: v
|
|
3378
3378
|
}, function(p, x) {
|
|
3379
|
-
var
|
|
3379
|
+
var C = p.className, R = p.style;
|
|
3380
3380
|
return /* @__PURE__ */ s.createElement(Fd, Ee({}, e, {
|
|
3381
3381
|
ref: t,
|
|
3382
3382
|
title: r,
|
|
@@ -3384,7 +3384,7 @@ var el = {
|
|
|
3384
3384
|
prefixCls: n,
|
|
3385
3385
|
holderRef: x,
|
|
3386
3386
|
style: P(P(P({}, R), o), g),
|
|
3387
|
-
className: Se(a,
|
|
3387
|
+
className: Se(a, C)
|
|
3388
3388
|
}));
|
|
3389
3389
|
});
|
|
3390
3390
|
});
|
|
@@ -3406,7 +3406,7 @@ function Hd(e) {
|
|
|
3406
3406
|
});
|
|
3407
3407
|
}
|
|
3408
3408
|
function Vd(e) {
|
|
3409
|
-
var t = e.prefixCls, n = t === void 0 ? "rc-dialog" : t, r = e.zIndex, o = e.visible, a = o === void 0 ? !1 : o, i = e.keyboard, l = i === void 0 ? !0 : i, u = e.focusTriggerAfterClose, c = u === void 0 ? !0 : u, d = e.wrapStyle, f = e.wrapClassName, m = e.wrapProps, v = e.onClose, h = e.afterOpenChange, y = e.afterClose,
|
|
3409
|
+
var t = e.prefixCls, n = t === void 0 ? "rc-dialog" : t, r = e.zIndex, o = e.visible, a = o === void 0 ? !1 : o, i = e.keyboard, l = i === void 0 ? !0 : i, u = e.focusTriggerAfterClose, c = u === void 0 ? !0 : u, d = e.wrapStyle, f = e.wrapClassName, m = e.wrapProps, v = e.onClose, h = e.afterOpenChange, y = e.afterClose, E = e.transitionName, w = e.animation, g = e.closable, b = g === void 0 ? !0 : g, p = e.mask, x = p === void 0 ? !0 : p, C = e.maskTransitionName, R = e.maskAnimation, _ = e.maskClosable, O = _ === void 0 ? !0 : _, L = e.maskStyle, $ = e.maskProps, W = e.rootClassName, T = e.classNames, k = e.styles, z = ce(), B = ce(), A = ce(), D = s.useState(a), M = V(D, 2), N = M[0], I = M[1], F = ys();
|
|
3410
3410
|
function K() {
|
|
3411
3411
|
Ma(B.current, document.activeElement) || (z.current = document.activeElement);
|
|
3412
3412
|
}
|
|
@@ -3466,7 +3466,7 @@ function Vd(e) {
|
|
|
3466
3466
|
})), /* @__PURE__ */ s.createElement(Hd, {
|
|
3467
3467
|
prefixCls: n,
|
|
3468
3468
|
visible: x && a,
|
|
3469
|
-
motionName: Ki(n,
|
|
3469
|
+
motionName: Ki(n, C, R),
|
|
3470
3470
|
style: P(P({
|
|
3471
3471
|
zIndex: r
|
|
3472
3472
|
}, L), k == null ? void 0 : k.mask),
|
|
@@ -3493,7 +3493,7 @@ function Vd(e) {
|
|
|
3493
3493
|
visible: a && N,
|
|
3494
3494
|
onClose: ee,
|
|
3495
3495
|
onVisibleChanged: Y,
|
|
3496
|
-
motionName: Ki(n,
|
|
3496
|
+
motionName: Ki(n, E, w)
|
|
3497
3497
|
}))));
|
|
3498
3498
|
}
|
|
3499
3499
|
var ks = function(t) {
|
|
@@ -4239,10 +4239,10 @@ Vt(Go, "defaultProps", {
|
|
|
4239
4239
|
var p = f(b);
|
|
4240
4240
|
if (p && p.has(g))
|
|
4241
4241
|
return p.get(g);
|
|
4242
|
-
var x = {},
|
|
4242
|
+
var x = {}, C = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
4243
4243
|
for (var R in g)
|
|
4244
4244
|
if (R !== "default" && Object.prototype.hasOwnProperty.call(g, R)) {
|
|
4245
|
-
var _ =
|
|
4245
|
+
var _ = C ? Object.getOwnPropertyDescriptor(g, R) : null;
|
|
4246
4246
|
_ && (_.get || _.set) ? Object.defineProperty(x, R, _) : x[R] = g[R];
|
|
4247
4247
|
}
|
|
4248
4248
|
return x.default = g, p && p.set(g, x), x;
|
|
@@ -4261,10 +4261,10 @@ Vt(Go, "defaultProps", {
|
|
|
4261
4261
|
return b = y(b), b in g ? Object.defineProperty(g, b, { value: p, enumerable: !0, configurable: !0, writable: !0 }) : g[b] = p, g;
|
|
4262
4262
|
}
|
|
4263
4263
|
function y(g) {
|
|
4264
|
-
var b =
|
|
4264
|
+
var b = E(g, "string");
|
|
4265
4265
|
return typeof b == "symbol" ? b : String(b);
|
|
4266
4266
|
}
|
|
4267
|
-
function
|
|
4267
|
+
function E(g, b) {
|
|
4268
4268
|
if (typeof g != "object" || g === null)
|
|
4269
4269
|
return g;
|
|
4270
4270
|
var p = g[Symbol.toPrimitive];
|
|
@@ -4283,11 +4283,11 @@ Vt(Go, "defaultProps", {
|
|
|
4283
4283
|
let {
|
|
4284
4284
|
position: x
|
|
4285
4285
|
} = b, {
|
|
4286
|
-
prevPropsPosition:
|
|
4286
|
+
prevPropsPosition: C
|
|
4287
4287
|
} = p;
|
|
4288
|
-
return x && (!
|
|
4288
|
+
return x && (!C || x.x !== C.x || x.y !== C.y) ? ((0, c.default)("Draggable: getDerivedStateFromProps %j", {
|
|
4289
4289
|
position: x,
|
|
4290
|
-
prevPropsPosition:
|
|
4290
|
+
prevPropsPosition: C
|
|
4291
4291
|
}), {
|
|
4292
4292
|
x: x.x,
|
|
4293
4293
|
y: x.y,
|
|
@@ -4308,9 +4308,9 @@ Vt(Go, "defaultProps", {
|
|
|
4308
4308
|
if (!this.state.dragging)
|
|
4309
4309
|
return !1;
|
|
4310
4310
|
(0, c.default)("Draggable: onDrag: %j", x);
|
|
4311
|
-
const
|
|
4312
|
-
x:
|
|
4313
|
-
y:
|
|
4311
|
+
const C = (0, i.createDraggableData)(this, x), R = {
|
|
4312
|
+
x: C.x,
|
|
4313
|
+
y: C.y,
|
|
4314
4314
|
slackX: 0,
|
|
4315
4315
|
slackY: 0
|
|
4316
4316
|
};
|
|
@@ -4321,9 +4321,9 @@ Vt(Go, "defaultProps", {
|
|
|
4321
4321
|
} = R;
|
|
4322
4322
|
R.x += this.state.slackX, R.y += this.state.slackY;
|
|
4323
4323
|
const [$, W] = (0, i.getBoundPosition)(this, R.x, R.y);
|
|
4324
|
-
R.x = $, R.y = W, R.slackX = this.state.slackX + (O - R.x), R.slackY = this.state.slackY + (L - R.y),
|
|
4324
|
+
R.x = $, R.y = W, R.slackX = this.state.slackX + (O - R.x), R.slackY = this.state.slackY + (L - R.y), C.x = R.x, C.y = R.y, C.deltaX = R.x - this.state.x, C.deltaY = R.y - this.state.y;
|
|
4325
4325
|
}
|
|
4326
|
-
if (this.props.onDrag(p,
|
|
4326
|
+
if (this.props.onDrag(p, C) === !1)
|
|
4327
4327
|
return !1;
|
|
4328
4328
|
this.setState(R);
|
|
4329
4329
|
}), h(this, "onDragStop", (p, x) => {
|
|
@@ -4382,7 +4382,7 @@ Vt(Go, "defaultProps", {
|
|
|
4382
4382
|
axis: b,
|
|
4383
4383
|
bounds: p,
|
|
4384
4384
|
children: x,
|
|
4385
|
-
defaultPosition:
|
|
4385
|
+
defaultPosition: C,
|
|
4386
4386
|
defaultClassName: R,
|
|
4387
4387
|
defaultClassNameDragging: _,
|
|
4388
4388
|
defaultClassNameDragged: O,
|
|
@@ -4392,7 +4392,7 @@ Vt(Go, "defaultProps", {
|
|
|
4392
4392
|
...T
|
|
4393
4393
|
} = this.props;
|
|
4394
4394
|
let k = {}, z = null;
|
|
4395
|
-
const A = !!!L || this.state.dragging, D = L ||
|
|
4395
|
+
const A = !!!L || this.state.dragging, D = L || C, M = {
|
|
4396
4396
|
// Set left if horizontal drag is enabled
|
|
4397
4397
|
x: (0, i.canDragX)(this) && A ? this.state.x : D.x,
|
|
4398
4398
|
// Set top if vertical drag is enabled
|
|
@@ -4584,10 +4584,12 @@ function nm(e) {
|
|
|
4584
4584
|
width: a,
|
|
4585
4585
|
draggable: i = !1,
|
|
4586
4586
|
closeIcon: l = /* @__PURE__ */ S.createElement(Hl, null),
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4587
|
+
defaultPosition: u,
|
|
4588
|
+
destroyOnClose: c = !1,
|
|
4589
|
+
preservePositionOnDestroy: d = !1,
|
|
4590
|
+
footer: f,
|
|
4591
|
+
onClose: m
|
|
4592
|
+
} = e, [v, h] = ht(!1), [y, E] = ht(null), { mountContainer: w } = Jn(Un), g = i ? /* @__PURE__ */ S.createElement(
|
|
4591
4593
|
"div",
|
|
4592
4594
|
{
|
|
4593
4595
|
style: {
|
|
@@ -4595,10 +4597,10 @@ function nm(e) {
|
|
|
4595
4597
|
cursor: "pointer"
|
|
4596
4598
|
},
|
|
4597
4599
|
onMouseOver: () => {
|
|
4598
|
-
|
|
4600
|
+
v && h(!1);
|
|
4599
4601
|
},
|
|
4600
4602
|
onMouseOut: () => {
|
|
4601
|
-
|
|
4603
|
+
h(!0);
|
|
4602
4604
|
},
|
|
4603
4605
|
onFocus: () => {
|
|
4604
4606
|
},
|
|
@@ -4606,23 +4608,37 @@ function nm(e) {
|
|
|
4606
4608
|
}
|
|
4607
4609
|
},
|
|
4608
4610
|
o
|
|
4609
|
-
) : o,
|
|
4611
|
+
) : o, b = (p) => {
|
|
4612
|
+
function x(R, _) {
|
|
4613
|
+
d && E({ x: _.x, y: _.y });
|
|
4614
|
+
}
|
|
4615
|
+
const C = y || u || { x: 0, y: 0 };
|
|
4616
|
+
return i ? /* @__PURE__ */ S.createElement(
|
|
4617
|
+
Iv,
|
|
4618
|
+
{
|
|
4619
|
+
disabled: v,
|
|
4620
|
+
defaultPosition: C,
|
|
4621
|
+
onStop: x
|
|
4622
|
+
},
|
|
4623
|
+
p
|
|
4624
|
+
) : p;
|
|
4625
|
+
};
|
|
4610
4626
|
return /* @__PURE__ */ S.createElement(
|
|
4611
4627
|
ks,
|
|
4612
4628
|
{
|
|
4613
4629
|
width: a,
|
|
4614
4630
|
prefixCls: ya.dialog,
|
|
4615
4631
|
rootClassName: i ? ya.dialogRootDraggable : ya.dialogRoot,
|
|
4616
|
-
getContainer: () =>
|
|
4632
|
+
getContainer: () => w,
|
|
4617
4633
|
visible: r,
|
|
4618
|
-
title:
|
|
4619
|
-
modalRender:
|
|
4634
|
+
title: g,
|
|
4635
|
+
modalRender: b,
|
|
4620
4636
|
closeIcon: l,
|
|
4621
|
-
destroyOnClose:
|
|
4622
|
-
footer:
|
|
4637
|
+
destroyOnClose: c,
|
|
4638
|
+
footer: f,
|
|
4623
4639
|
mask: !i,
|
|
4624
4640
|
style: n,
|
|
4625
|
-
onClose:
|
|
4641
|
+
onClose: m
|
|
4626
4642
|
},
|
|
4627
4643
|
t
|
|
4628
4644
|
);
|
|
@@ -4995,8 +5011,8 @@ function Im(e, t) {
|
|
|
4995
5011
|
});
|
|
4996
5012
|
var h = s.useRef(e);
|
|
4997
5013
|
h.current = e;
|
|
4998
|
-
var y = s.useCallback(function(
|
|
4999
|
-
var w = h.current, g = w.onResize, b = w.data, p =
|
|
5014
|
+
var y = s.useCallback(function(E) {
|
|
5015
|
+
var w = h.current, g = w.onResize, b = w.data, p = E.getBoundingClientRect(), x = p.width, C = p.height, R = E.offsetWidth, _ = E.offsetHeight, O = Math.floor(x), L = Math.floor(C);
|
|
5000
5016
|
if (c.current.width !== O || c.current.height !== L || c.current.offsetWidth !== R || c.current.offsetHeight !== _) {
|
|
5001
5017
|
var $ = {
|
|
5002
5018
|
width: O,
|
|
@@ -5005,19 +5021,19 @@ function Im(e, t) {
|
|
|
5005
5021
|
offsetHeight: _
|
|
5006
5022
|
};
|
|
5007
5023
|
c.current = $;
|
|
5008
|
-
var W = R === Math.round(x) ? x : R, T = _ === Math.round(
|
|
5024
|
+
var W = R === Math.round(x) ? x : R, T = _ === Math.round(C) ? C : _, k = P(P({}, $), {}, {
|
|
5009
5025
|
offsetWidth: W,
|
|
5010
5026
|
offsetHeight: T
|
|
5011
5027
|
});
|
|
5012
|
-
i == null || i(k,
|
|
5013
|
-
g(k,
|
|
5028
|
+
i == null || i(k, E, b), g && Promise.resolve().then(function() {
|
|
5029
|
+
g(k, E);
|
|
5014
5030
|
});
|
|
5015
5031
|
}
|
|
5016
5032
|
}, []);
|
|
5017
5033
|
return s.useEffect(function() {
|
|
5018
|
-
var
|
|
5019
|
-
return
|
|
5020
|
-
return Nm(
|
|
5034
|
+
var E = v();
|
|
5035
|
+
return E && !r && Rm(E, y), function() {
|
|
5036
|
+
return Nm(E, y);
|
|
5021
5037
|
};
|
|
5022
5038
|
}, [o.current, r]), /* @__PURE__ */ s.createElement(Mm, {
|
|
5023
5039
|
ref: a
|
|
@@ -5072,8 +5088,8 @@ function km(e) {
|
|
|
5072
5088
|
position: "absolute"
|
|
5073
5089
|
};
|
|
5074
5090
|
if (n.autoArrow !== !1) {
|
|
5075
|
-
var h = n.points[0], y = n.points[1],
|
|
5076
|
-
|
|
5091
|
+
var h = n.points[0], y = n.points[1], E = h[0], w = h[1], g = y[0], b = y[1];
|
|
5092
|
+
E === g || !["t", "b"].includes(E) ? v.top = f : E === "t" ? v.top = 0 : v.bottom = 0, w === b || !["l", "r"].includes(w) ? v.left = c : w === "l" ? v.left = 0 : v.right = 0;
|
|
5077
5093
|
}
|
|
5078
5094
|
return /* @__PURE__ */ s.createElement("div", {
|
|
5079
5095
|
ref: m,
|
|
@@ -5103,8 +5119,8 @@ var Tm = /* @__PURE__ */ s.memo(function(e) {
|
|
|
5103
5119
|
}, function(e, t) {
|
|
5104
5120
|
return t.cache;
|
|
5105
5121
|
}), Am = /* @__PURE__ */ s.forwardRef(function(e, t) {
|
|
5106
|
-
var n = e.popup, r = e.className, o = e.prefixCls, a = e.style, i = e.target, l = e.onVisibleChanged, u = e.open, c = e.keepDom, d = e.fresh, f = e.onClick, m = e.mask, v = e.arrow, h = e.arrowPos, y = e.align,
|
|
5107
|
-
if (
|
|
5122
|
+
var n = e.popup, r = e.className, o = e.prefixCls, a = e.style, i = e.target, l = e.onVisibleChanged, u = e.open, c = e.keepDom, d = e.fresh, f = e.onClick, m = e.mask, v = e.arrow, h = e.arrowPos, y = e.align, E = e.motion, w = e.maskMotion, g = e.forceRender, b = e.getPopupContainer, p = e.autoDestroy, x = e.portal, C = e.zIndex, R = e.onMouseEnter, _ = e.onMouseLeave, O = e.onPointerEnter, L = e.ready, $ = e.offsetX, W = e.offsetY, T = e.offsetR, k = e.offsetB, z = e.onAlign, B = e.onPrepare, A = e.stretch, D = e.targetWidth, M = e.targetHeight, N = typeof n == "function" ? n() : n, I = u || c, F = (b == null ? void 0 : b.length) > 0, K = s.useState(!b || !F), H = V(K, 2), Y = H[0], ee = H[1];
|
|
5123
|
+
if (yt(function() {
|
|
5108
5124
|
!Y && F && i && ee(!0);
|
|
5109
5125
|
}, [Y, F, i]), !Y)
|
|
5110
5126
|
return null;
|
|
@@ -5128,7 +5144,7 @@ var Tm = /* @__PURE__ */ s.memo(function(e) {
|
|
|
5128
5144
|
}, /* @__PURE__ */ s.createElement(Lm, {
|
|
5129
5145
|
prefixCls: o,
|
|
5130
5146
|
open: u,
|
|
5131
|
-
zIndex:
|
|
5147
|
+
zIndex: C,
|
|
5132
5148
|
mask: m,
|
|
5133
5149
|
motion: w
|
|
5134
5150
|
}), /* @__PURE__ */ s.createElement(nr, {
|
|
@@ -5142,13 +5158,13 @@ var Tm = /* @__PURE__ */ s.memo(function(e) {
|
|
|
5142
5158
|
removeOnLeave: !1,
|
|
5143
5159
|
forceRender: g,
|
|
5144
5160
|
leavedClassName: "".concat(o, "-hidden")
|
|
5145
|
-
},
|
|
5161
|
+
}, E, {
|
|
5146
5162
|
onAppearPrepare: B,
|
|
5147
5163
|
onEnterPrepare: B,
|
|
5148
5164
|
visible: u,
|
|
5149
5165
|
onVisibleChanged: function(ge) {
|
|
5150
5166
|
var xe;
|
|
5151
|
-
|
|
5167
|
+
E == null || (xe = E.onVisibleChanged) === null || xe === void 0 || xe.call(E, ge), l(ge);
|
|
5152
5168
|
}
|
|
5153
5169
|
}), function(we, ge) {
|
|
5154
5170
|
var xe = we.className, G = we.style, Q = Se(o, xe, r);
|
|
@@ -5160,7 +5176,7 @@ var Tm = /* @__PURE__ */ s.memo(function(e) {
|
|
|
5160
5176
|
"--arrow-y": "".concat(h.y || 0, "px")
|
|
5161
5177
|
}, J), ne), G), {}, {
|
|
5162
5178
|
boxSizing: "border-box",
|
|
5163
|
-
zIndex:
|
|
5179
|
+
zIndex: C
|
|
5164
5180
|
}, a),
|
|
5165
5181
|
onMouseEnter: R,
|
|
5166
5182
|
onMouseLeave: _,
|
|
@@ -5254,12 +5270,12 @@ function il(e, t) {
|
|
|
5254
5270
|
var n = P({}, e);
|
|
5255
5271
|
return (t || []).forEach(function(r) {
|
|
5256
5272
|
if (!(r instanceof HTMLBodyElement || r instanceof HTMLHtmlElement)) {
|
|
5257
|
-
var o = Kr(r).getComputedStyle(r), a = o.overflow, i = o.overflowClipMargin, l = o.borderTopWidth, u = o.borderBottomWidth, c = o.borderLeftWidth, d = o.borderRightWidth, f = r.getBoundingClientRect(), m = r.offsetHeight, v = r.clientHeight, h = r.offsetWidth, y = r.clientWidth,
|
|
5273
|
+
var o = Kr(r).getComputedStyle(r), a = o.overflow, i = o.overflowClipMargin, l = o.borderTopWidth, u = o.borderBottomWidth, c = o.borderLeftWidth, d = o.borderRightWidth, f = r.getBoundingClientRect(), m = r.offsetHeight, v = r.clientHeight, h = r.offsetWidth, y = r.clientWidth, E = Dr(l), w = Dr(u), g = Dr(c), b = Dr(d), p = Ur(Math.round(f.width / h * 1e3) / 1e3), x = Ur(Math.round(f.height / m * 1e3) / 1e3), C = (h - y - g - b) * p, R = (m - v - E - w) * x, _ = E * x, O = w * x, L = g * p, $ = b * p, W = 0, T = 0;
|
|
5258
5274
|
if (a === "clip") {
|
|
5259
5275
|
var k = Dr(i);
|
|
5260
5276
|
W = k * p, T = k * x;
|
|
5261
5277
|
}
|
|
5262
|
-
var z = f.x + L - W, B = f.y + _ - T, A = z + f.width + 2 * W - L - $ -
|
|
5278
|
+
var z = f.x + L - W, B = f.y + _ - T, A = z + f.width + 2 * W - L - $ - C, D = B + f.height + 2 * T - _ - O - R;
|
|
5263
5279
|
n.left = Math.max(n.left, z), n.top = Math.max(n.top, B), n.right = Math.min(n.right, A), n.bottom = Math.min(n.bottom, D);
|
|
5264
5280
|
}
|
|
5265
5281
|
}), n;
|
|
@@ -5320,7 +5336,7 @@ function Bm(e, t, n, r, o, a, i) {
|
|
|
5320
5336
|
}, Qr = function() {
|
|
5321
5337
|
Ct = N.y + ue, Qe = Ct + J, ot = N.x + re, Ot = ot + Z;
|
|
5322
5338
|
};
|
|
5323
|
-
var g, b, p = t, x = p.ownerDocument,
|
|
5339
|
+
var g, b, p = t, x = p.ownerDocument, C = Kr(p), R = C.getComputedStyle(p), _ = R.width, O = R.height, L = R.position, $ = p.style.left, W = p.style.top, T = p.style.right, k = p.style.bottom, z = p.style.overflow, B = P(P({}, o[r]), a), A = x.createElement("div");
|
|
5324
5340
|
(g = p.parentElement) === null || g === void 0 || g.appendChild(A), A.style.left = "".concat(p.offsetLeft, "px"), A.style.top = "".concat(p.offsetTop, "px"), A.style.position = L, A.style.height = "".concat(p.offsetHeight, "px"), A.style.width = "".concat(p.offsetWidth, "px"), p.style.left = "0", p.style.top = "0", p.style.right = "auto", p.style.bottom = "auto", p.style.overflow = "hidden";
|
|
5325
5341
|
var D;
|
|
5326
5342
|
if (Array.isArray(n))
|
|
@@ -5360,7 +5376,7 @@ function Bm(e, t, n, r, o, a, i) {
|
|
|
5360
5376
|
return;
|
|
5361
5377
|
var Ze = B.offset, Pe = B.targetOffset, He = sl(N, Ze), Je = V(He, 2), ke = Je[0], $e = Je[1], Ie = sl(D, Pe), lt = V(Ie, 2), We = lt[0], st = lt[1];
|
|
5362
5378
|
D.x -= We, D.y -= st;
|
|
5363
|
-
var ze = B.points || [], je = V(ze, 2), Xe = je[0], ft = je[1], Ye = ul(ft), nt = ul(Xe), ct = ir(D, Ye),
|
|
5379
|
+
var ze = B.points || [], je = V(ze, 2), Xe = je[0], ft = je[1], Ye = ul(ft), nt = ul(Xe), ct = ir(D, Ye), pt = ir(N, nt), he = P({}, B), re = ct.x - pt.x + ke, ue = ct.y - pt.y + $e, de = _t(re, ue), fe = _t(re, ue, G), De = ir(D, ["t", "l"]), Me = ir(N, ["t", "l"]), ve = ir(D, ["b", "r"]), pe = ir(N, ["b", "r"]), le = B.overflow || {}, Oe = le.adjustX, Fe = le.adjustY, Ve = le.shiftX, ut = le.shiftY, rt = function(zn) {
|
|
5364
5380
|
return typeof zn == "boolean" ? zn : zn >= 0;
|
|
5365
5381
|
}, Ct, Qe, ot, Ot;
|
|
5366
5382
|
Qr();
|
|
@@ -5419,7 +5435,7 @@ function Bm(e, t, n, r, o, a, i) {
|
|
|
5419
5435
|
align: he
|
|
5420
5436
|
});
|
|
5421
5437
|
}
|
|
5422
|
-
}),
|
|
5438
|
+
}), E = function() {
|
|
5423
5439
|
f.current += 1;
|
|
5424
5440
|
var b = f.current;
|
|
5425
5441
|
Promise.resolve().then(function() {
|
|
@@ -5432,12 +5448,12 @@ function Bm(e, t, n, r, o, a, i) {
|
|
|
5432
5448
|
});
|
|
5433
5449
|
});
|
|
5434
5450
|
};
|
|
5435
|
-
return
|
|
5451
|
+
return yt(w, [r]), yt(function() {
|
|
5436
5452
|
e || w();
|
|
5437
|
-
}, [e]), [c.ready, c.offsetX, c.offsetY, c.offsetR, c.offsetB, c.arrowX, c.arrowY, c.scaleX, c.scaleY, c.align,
|
|
5453
|
+
}, [e]), [c.ready, c.offsetX, c.offsetY, c.offsetR, c.offsetB, c.arrowX, c.arrowY, c.scaleX, c.scaleY, c.align, E];
|
|
5438
5454
|
}
|
|
5439
5455
|
function Um(e, t, n, r, o) {
|
|
5440
|
-
|
|
5456
|
+
yt(function() {
|
|
5441
5457
|
if (e && t && n) {
|
|
5442
5458
|
let f = function() {
|
|
5443
5459
|
r(), o();
|
|
@@ -5469,15 +5485,15 @@ function Wm(e, t, n, r, o, a, i, l) {
|
|
|
5469
5485
|
}, [e]), s.useEffect(function() {
|
|
5470
5486
|
if (t && r && (!o || a)) {
|
|
5471
5487
|
var d = function() {
|
|
5472
|
-
var
|
|
5488
|
+
var C = !1, R = function(L) {
|
|
5473
5489
|
var $ = L.target;
|
|
5474
|
-
|
|
5490
|
+
C = i($);
|
|
5475
5491
|
}, _ = function(L) {
|
|
5476
5492
|
var $ = L.target;
|
|
5477
|
-
!c.current && u.current && !
|
|
5493
|
+
!c.current && u.current && !C && !i($) && l(!1);
|
|
5478
5494
|
};
|
|
5479
5495
|
return [R, _];
|
|
5480
|
-
}, f = d(), m = V(f, 2), v = m[0], h = m[1], y = d(),
|
|
5496
|
+
}, f = d(), m = V(f, 2), v = m[0], h = m[1], y = d(), E = V(y, 2), w = E[0], g = E[1], b = Kr(r);
|
|
5481
5497
|
b.addEventListener("mousedown", v, !0), b.addEventListener("click", h, !0), b.addEventListener("contextmenu", h, !0);
|
|
5482
5498
|
var p = Ta(n);
|
|
5483
5499
|
return p && (p.addEventListener("mousedown", w, !0), p.addEventListener("click", g, !0), p.addEventListener("contextmenu", g, !0)), function() {
|
|
@@ -5489,14 +5505,14 @@ function Wm(e, t, n, r, o, a, i, l) {
|
|
|
5489
5505
|
var zm = ["prefixCls", "children", "action", "showAction", "hideAction", "popupVisible", "defaultPopupVisible", "onPopupVisibleChange", "afterPopupVisibleChange", "mouseEnterDelay", "mouseLeaveDelay", "focusDelay", "blurDelay", "mask", "maskClosable", "getPopupContainer", "forceRender", "autoDestroy", "destroyPopupOnHide", "popup", "popupClassName", "popupStyle", "popupPlacement", "builtinPlacements", "popupAlign", "zIndex", "stretch", "getPopupClassNameFromAlign", "fresh", "alignPoint", "onPopupClick", "onPopupAlign", "arrow", "popupMotion", "maskMotion", "popupTransitionName", "popupAnimation", "maskTransitionName", "maskAnimation", "className", "getTriggerDOMNode"];
|
|
5490
5506
|
function jm() {
|
|
5491
5507
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ri, t = /* @__PURE__ */ s.forwardRef(function(n, r) {
|
|
5492
|
-
var o = n.prefixCls, a = o === void 0 ? "rc-trigger-popup" : o, i = n.children, l = n.action, u = l === void 0 ? "hover" : l, c = n.showAction, d = n.hideAction, f = n.popupVisible, m = n.defaultPopupVisible, v = n.onPopupVisibleChange, h = n.afterPopupVisibleChange, y = n.mouseEnterDelay,
|
|
5493
|
-
|
|
5508
|
+
var o = n.prefixCls, a = o === void 0 ? "rc-trigger-popup" : o, i = n.children, l = n.action, u = l === void 0 ? "hover" : l, c = n.showAction, d = n.hideAction, f = n.popupVisible, m = n.defaultPopupVisible, v = n.onPopupVisibleChange, h = n.afterPopupVisibleChange, y = n.mouseEnterDelay, E = n.mouseLeaveDelay, w = E === void 0 ? 0.1 : E, g = n.focusDelay, b = n.blurDelay, p = n.mask, x = n.maskClosable, C = x === void 0 ? !0 : x, R = n.getPopupContainer, _ = n.forceRender, O = n.autoDestroy, L = n.destroyPopupOnHide, $ = n.popup, W = n.popupClassName, T = n.popupStyle, k = n.popupPlacement, z = n.builtinPlacements, B = z === void 0 ? {} : z, A = n.popupAlign, D = n.zIndex, M = n.stretch, N = n.getPopupClassNameFromAlign, I = n.fresh, F = n.alignPoint, K = n.onPopupClick, H = n.onPopupAlign, Y = n.arrow, ee = n.popupMotion, se = n.maskMotion, J = n.popupTransitionName, Z = n.popupAnimation, j = n.maskTransitionName, U = n.maskAnimation, te = n.className, oe = n.getTriggerDOMNode, ne = Ge(n, zm), ie = O || L || !1, we = s.useState(!1), ge = V(we, 2), xe = ge[0], G = ge[1];
|
|
5509
|
+
yt(function() {
|
|
5494
5510
|
G(ui());
|
|
5495
5511
|
}, []);
|
|
5496
5512
|
var Q = s.useRef({}), ae = s.useContext(rl), _e = s.useMemo(function() {
|
|
5497
5513
|
return {
|
|
5498
|
-
registerSubPopup: function(Te,
|
|
5499
|
-
Q.current[Te] =
|
|
5514
|
+
registerSubPopup: function(Te, gt) {
|
|
5515
|
+
Q.current[Te] = gt, ae == null || ae.registerSubPopup(Te, gt);
|
|
5500
5516
|
}
|
|
5501
5517
|
};
|
|
5502
5518
|
}, [ae]), be = ys(), Ae = s.useState(null), Ze = V(Ae, 2), Pe = Ze[0], He = Ze[1], Je = en(function(ye) {
|
|
@@ -5504,14 +5520,14 @@ function jm() {
|
|
|
5504
5520
|
}), ke = s.useState(null), $e = V(ke, 2), Ie = $e[0], lt = $e[1], We = s.useRef(null), st = en(function(ye) {
|
|
5505
5521
|
xo(ye) && Ie !== ye && (lt(ye), We.current = ye);
|
|
5506
5522
|
}), ze = s.Children.only(i), je = (ze == null ? void 0 : ze.props) || {}, Xe = {}, ft = en(function(ye) {
|
|
5507
|
-
var Te,
|
|
5508
|
-
return (xt == null ? void 0 : xt.contains(ye)) || ((Te = Ta(xt)) === null || Te === void 0 ? void 0 : Te.host) === ye || ye === xt || (Pe == null ? void 0 : Pe.contains(ye)) || ((
|
|
5509
|
-
return (
|
|
5523
|
+
var Te, gt, xt = Ie;
|
|
5524
|
+
return (xt == null ? void 0 : xt.contains(ye)) || ((Te = Ta(xt)) === null || Te === void 0 ? void 0 : Te.host) === ye || ye === xt || (Pe == null ? void 0 : Pe.contains(ye)) || ((gt = Ta(Pe)) === null || gt === void 0 ? void 0 : gt.host) === ye || ye === Pe || Object.values(Q.current).some(function(bt) {
|
|
5525
|
+
return (bt == null ? void 0 : bt.contains(ye)) || ye === bt;
|
|
5510
5526
|
});
|
|
5511
|
-
}), Ye = al(a, ee, Z, J), nt = al(a, se, U, j), ct = s.useState(m || !1),
|
|
5527
|
+
}), Ye = al(a, ee, Z, J), nt = al(a, se, U, j), ct = s.useState(m || !1), pt = V(ct, 2), he = pt[0], re = pt[1], ue = f != null ? f : he, de = en(function(ye) {
|
|
5512
5528
|
f === void 0 && re(ye);
|
|
5513
5529
|
});
|
|
5514
|
-
|
|
5530
|
+
yt(function() {
|
|
5515
5531
|
re(f || !1);
|
|
5516
5532
|
}, [f]);
|
|
5517
5533
|
var fe = s.useRef(ue);
|
|
@@ -5524,16 +5540,16 @@ function jm() {
|
|
|
5524
5540
|
}), ve = s.useRef(), pe = function() {
|
|
5525
5541
|
clearTimeout(ve.current);
|
|
5526
5542
|
}, le = function(Te) {
|
|
5527
|
-
var
|
|
5528
|
-
pe(),
|
|
5543
|
+
var gt = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
5544
|
+
pe(), gt === 0 ? Me(Te) : ve.current = setTimeout(function() {
|
|
5529
5545
|
Me(Te);
|
|
5530
|
-
},
|
|
5546
|
+
}, gt * 1e3);
|
|
5531
5547
|
};
|
|
5532
5548
|
s.useEffect(function() {
|
|
5533
5549
|
return pe;
|
|
5534
5550
|
}, []);
|
|
5535
5551
|
var Oe = s.useState(!1), Fe = V(Oe, 2), Ve = Fe[0], ut = Fe[1];
|
|
5536
|
-
|
|
5552
|
+
yt(function(ye) {
|
|
5537
5553
|
(!ye || ue) && ut(!0);
|
|
5538
5554
|
}, [ue]);
|
|
5539
5555
|
var rt = s.useState(null), Ct = V(rt, 2), Qe = Ct[0], ot = Ct[1], Ot = s.useState([0, 0]), Re = V(Ot, 2), Ne = Re[0], Le = Re[1], Be = function(Te) {
|
|
@@ -5543,9 +5559,9 @@ function jm() {
|
|
|
5543
5559
|
}), Ue = function() {
|
|
5544
5560
|
fe.current && F && sn && le(!1);
|
|
5545
5561
|
};
|
|
5546
|
-
Um(ue, Ie, Pe, qe, Ue),
|
|
5562
|
+
Um(ue, Ie, Pe, qe, Ue), yt(function() {
|
|
5547
5563
|
qe();
|
|
5548
|
-
}, [Ne, k]),
|
|
5564
|
+
}, [Ne, k]), yt(function() {
|
|
5549
5565
|
ue && !(B != null && B[k]) && qe();
|
|
5550
5566
|
}, [JSON.stringify(A)]);
|
|
5551
5567
|
var me = s.useMemo(function() {
|
|
@@ -5574,25 +5590,25 @@ function jm() {
|
|
|
5574
5590
|
});
|
|
5575
5591
|
});
|
|
5576
5592
|
};
|
|
5577
|
-
|
|
5593
|
+
yt(function() {
|
|
5578
5594
|
Qe && (Bt(), Qe(), ot(null));
|
|
5579
5595
|
}, [Qe]);
|
|
5580
|
-
function En(ye, Te,
|
|
5581
|
-
Xe[ye] = function(
|
|
5596
|
+
function En(ye, Te, gt, xt) {
|
|
5597
|
+
Xe[ye] = function(bt) {
|
|
5582
5598
|
var eo;
|
|
5583
|
-
xt == null || xt(
|
|
5599
|
+
xt == null || xt(bt), le(Te, gt);
|
|
5584
5600
|
for (var sa = arguments.length, xi = new Array(sa > 1 ? sa - 1 : 0), to = 1; to < sa; to++)
|
|
5585
5601
|
xi[to - 1] = arguments[to];
|
|
5586
|
-
(eo = je[ye]) === null || eo === void 0 || eo.call.apply(eo, [je,
|
|
5602
|
+
(eo = je[ye]) === null || eo === void 0 || eo.call.apply(eo, [je, bt].concat(xi));
|
|
5587
5603
|
};
|
|
5588
5604
|
}
|
|
5589
5605
|
(_n || sn) && (Xe.onClick = function(ye) {
|
|
5590
5606
|
var Te;
|
|
5591
5607
|
fe.current && sn ? le(!1) : !fe.current && _n && (Be(ye), le(!0));
|
|
5592
|
-
for (var
|
|
5593
|
-
xt[
|
|
5608
|
+
for (var gt = arguments.length, xt = new Array(gt > 1 ? gt - 1 : 0), bt = 1; bt < gt; bt++)
|
|
5609
|
+
xt[bt - 1] = arguments[bt];
|
|
5594
5610
|
(Te = je.onClick) === null || Te === void 0 || Te.call.apply(Te, [je, ye].concat(xt));
|
|
5595
|
-
}), Wm(ue, sn, Ie, Pe, p,
|
|
5611
|
+
}), Wm(ue, sn, Ie, Pe, p, C, ft, le);
|
|
5596
5612
|
var zn = pn.has("hover"), rr = Kt.has("hover"), or, xr;
|
|
5597
5613
|
zn && (En("onMouseEnter", !0, y, function(ye) {
|
|
5598
5614
|
Be(ye);
|
|
@@ -5608,15 +5624,15 @@ function jm() {
|
|
|
5608
5624
|
}), pn.has("focus") && En("onFocus", !0, g), Kt.has("focus") && En("onBlur", !1, b), pn.has("contextMenu") && (Xe.onContextMenu = function(ye) {
|
|
5609
5625
|
var Te;
|
|
5610
5626
|
fe.current && Kt.has("contextMenu") ? le(!1) : (Be(ye), le(!0)), ye.preventDefault();
|
|
5611
|
-
for (var
|
|
5612
|
-
xt[
|
|
5627
|
+
for (var gt = arguments.length, xt = new Array(gt > 1 ? gt - 1 : 0), bt = 1; bt < gt; bt++)
|
|
5628
|
+
xt[bt - 1] = arguments[bt];
|
|
5613
5629
|
(Te = je.onContextMenu) === null || Te === void 0 || Te.call.apply(Te, [je, ye].concat(xt));
|
|
5614
5630
|
}), te && (Xe.className = Se(je.className, te));
|
|
5615
5631
|
var Rr = P(P({}, je), Xe), Jr = {}, oa = ["onContextMenu", "onClick", "onMouseDown", "onTouchStart", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur"];
|
|
5616
5632
|
oa.forEach(function(ye) {
|
|
5617
5633
|
ne[ye] && (Jr[ye] = function() {
|
|
5618
|
-
for (var Te,
|
|
5619
|
-
xt[
|
|
5634
|
+
for (var Te, gt = arguments.length, xt = new Array(gt), bt = 0; bt < gt; bt++)
|
|
5635
|
+
xt[bt] = arguments[bt];
|
|
5620
5636
|
(Te = Rr[ye]) === null || Te === void 0 || Te.call.apply(Te, [Rr].concat(xt)), ne[ye].apply(ne, xt);
|
|
5621
5637
|
});
|
|
5622
5638
|
});
|
|
@@ -5755,7 +5771,7 @@ var Xm = /* @__PURE__ */ Rt(function(e, t) {
|
|
|
5755
5771
|
}
|
|
5756
5772
|
}, Zm = ["arrow", "prefixCls", "transitionName", "animation", "align", "placement", "placements", "getPopupContainer", "showAction", "hideAction", "overlayClassName", "overlayStyle", "visible", "trigger", "autoFocus", "overlay", "children", "onVisibleChange"];
|
|
5757
5773
|
function Qm(e, t) {
|
|
5758
|
-
var n, r = e.arrow, o = r === void 0 ? !1 : r, a = e.prefixCls, i = a === void 0 ? "rc-dropdown" : a, l = e.transitionName, u = e.animation, c = e.align, d = e.placement, f = d === void 0 ? "bottomLeft" : d, m = e.placements, v = m === void 0 ? Ym : m, h = e.getPopupContainer, y = e.showAction,
|
|
5774
|
+
var n, r = e.arrow, o = r === void 0 ? !1 : r, a = e.prefixCls, i = a === void 0 ? "rc-dropdown" : a, l = e.transitionName, u = e.animation, c = e.align, d = e.placement, f = d === void 0 ? "bottomLeft" : d, m = e.placements, v = m === void 0 ? Ym : m, h = e.getPopupContainer, y = e.showAction, E = e.hideAction, w = e.overlayClassName, g = e.overlayStyle, b = e.visible, p = e.trigger, x = p === void 0 ? ["hover"] : p, C = e.autoFocus, R = e.overlay, _ = e.children, O = e.onVisibleChange, L = Ge(e, Zm), $ = S.useState(), W = V($, 2), T = W[0], k = W[1], z = "visible" in e ? b : T, B = S.useRef(null), A = S.useRef(null), D = S.useRef(null);
|
|
5759
5775
|
S.useImperativeHandle(t, function() {
|
|
5760
5776
|
return B.current;
|
|
5761
5777
|
});
|
|
@@ -5766,7 +5782,7 @@ function Qm(e, t) {
|
|
|
5766
5782
|
visible: z,
|
|
5767
5783
|
triggerRef: D,
|
|
5768
5784
|
onVisibleChange: M,
|
|
5769
|
-
autoFocus:
|
|
5785
|
+
autoFocus: C,
|
|
5770
5786
|
overlayRef: A
|
|
5771
5787
|
});
|
|
5772
5788
|
var N = function(J) {
|
|
@@ -5790,7 +5806,7 @@ function Qm(e, t) {
|
|
|
5790
5806
|
}, Y = /* @__PURE__ */ S.cloneElement(_, {
|
|
5791
5807
|
className: Se((n = _.props) === null || n === void 0 ? void 0 : n.className, z && H()),
|
|
5792
5808
|
ref: Er(_) ? er(D, _.ref) : void 0
|
|
5793
|
-
}), ee =
|
|
5809
|
+
}), ee = E;
|
|
5794
5810
|
return !ee && x.indexOf("contextMenu") !== -1 && (ee = ["click"]), /* @__PURE__ */ S.createElement(Xo, Ee({
|
|
5795
5811
|
builtinPlacements: v
|
|
5796
5812
|
}, L, {
|
|
@@ -5927,12 +5943,12 @@ function tu(e, t) {
|
|
|
5927
5943
|
}
|
|
5928
5944
|
}
|
|
5929
5945
|
var nu = function(t) {
|
|
5930
|
-
var n, r, o = t.inputElement, a = t.children, i = t.prefixCls, l = t.prefix, u = t.suffix, c = t.addonBefore, d = t.addonAfter, f = t.className, m = t.style, v = t.disabled, h = t.readOnly, y = t.focused,
|
|
5946
|
+
var n, r, o = t.inputElement, a = t.children, i = t.prefixCls, l = t.prefix, u = t.suffix, c = t.addonBefore, d = t.addonAfter, f = t.className, m = t.style, v = t.disabled, h = t.readOnly, y = t.focused, E = t.triggerFocus, w = t.allowClear, g = t.value, b = t.handleReset, p = t.hidden, x = t.classes, C = t.classNames, R = t.dataAttrs, _ = t.styles, O = t.components, L = a != null ? a : o, $ = (O == null ? void 0 : O.affixWrapper) || "span", W = (O == null ? void 0 : O.groupWrapper) || "span", T = (O == null ? void 0 : O.wrapper) || "span", k = (O == null ? void 0 : O.groupAddon) || "span", z = ce(null), B = function(ne) {
|
|
5931
5947
|
var ie;
|
|
5932
|
-
(ie = z.current) !== null && ie !== void 0 && ie.contains(ne.target) && (
|
|
5948
|
+
(ie = z.current) !== null && ie !== void 0 && ie.contains(ne.target) && (E == null || E());
|
|
5933
5949
|
}, A = Rh(t), D = /* @__PURE__ */ Ar(L, {
|
|
5934
5950
|
value: g,
|
|
5935
|
-
className: Se(L.props.className, !A && (
|
|
5951
|
+
className: Se(L.props.className, !A && (C == null ? void 0 : C.variant)) || null
|
|
5936
5952
|
});
|
|
5937
5953
|
if (A) {
|
|
5938
5954
|
var M, N = null;
|
|
@@ -5948,8 +5964,8 @@ var nu = function(t) {
|
|
|
5948
5964
|
tabIndex: -1
|
|
5949
5965
|
}, H);
|
|
5950
5966
|
}
|
|
5951
|
-
var Y = "".concat(i, "-affix-wrapper"), ee = Se(Y, (M = {}, q(M, "".concat(i, "-disabled"), v), q(M, "".concat(Y, "-disabled"), v), q(M, "".concat(Y, "-focused"), y), q(M, "".concat(Y, "-readonly"), h), q(M, "".concat(Y, "-input-with-clear-btn"), u && w && g), M), x == null ? void 0 : x.affixWrapper,
|
|
5952
|
-
className: Se("".concat(i, "-suffix"),
|
|
5967
|
+
var Y = "".concat(i, "-affix-wrapper"), ee = Se(Y, (M = {}, q(M, "".concat(i, "-disabled"), v), q(M, "".concat(Y, "-disabled"), v), q(M, "".concat(Y, "-focused"), y), q(M, "".concat(Y, "-readonly"), h), q(M, "".concat(Y, "-input-with-clear-btn"), u && w && g), M), x == null ? void 0 : x.affixWrapper, C == null ? void 0 : C.affixWrapper, C == null ? void 0 : C.variant), se = (u || w) && /* @__PURE__ */ S.createElement("span", {
|
|
5968
|
+
className: Se("".concat(i, "-suffix"), C == null ? void 0 : C.suffix),
|
|
5953
5969
|
style: _ == null ? void 0 : _.suffix
|
|
5954
5970
|
}, N, u);
|
|
5955
5971
|
D = /* @__PURE__ */ S.createElement($, Ee({
|
|
@@ -5959,12 +5975,12 @@ var nu = function(t) {
|
|
|
5959
5975
|
}, R == null ? void 0 : R.affixWrapper, {
|
|
5960
5976
|
ref: z
|
|
5961
5977
|
}), l && /* @__PURE__ */ S.createElement("span", {
|
|
5962
|
-
className: Se("".concat(i, "-prefix"),
|
|
5978
|
+
className: Se("".concat(i, "-prefix"), C == null ? void 0 : C.prefix),
|
|
5963
5979
|
style: _ == null ? void 0 : _.prefix
|
|
5964
5980
|
}, l), D, se);
|
|
5965
5981
|
}
|
|
5966
5982
|
if (xh(t)) {
|
|
5967
|
-
var J = "".concat(i, "-group"), Z = "".concat(J, "-addon"), j = "".concat(J, "-wrapper"), U = Se("".concat(i, "-wrapper"), J, x == null ? void 0 : x.wrapper,
|
|
5983
|
+
var J = "".concat(i, "-group"), Z = "".concat(J, "-addon"), j = "".concat(J, "-wrapper"), U = Se("".concat(i, "-wrapper"), J, x == null ? void 0 : x.wrapper, C == null ? void 0 : C.wrapper), te = Se(j, q({}, "".concat(j, "-disabled"), v), x == null ? void 0 : x.group, C == null ? void 0 : C.groupWrapper);
|
|
5968
5984
|
D = /* @__PURE__ */ S.createElement(W, {
|
|
5969
5985
|
className: te
|
|
5970
5986
|
}, /* @__PURE__ */ S.createElement(T, {
|
|
@@ -5987,11 +6003,11 @@ function Sa(e) {
|
|
|
5987
6003
|
function Hn(e, t) {
|
|
5988
6004
|
var n = t || {}, r = n.defaultValue, o = n.value, a = n.onChange, i = n.postState, l = yr(function() {
|
|
5989
6005
|
return Sa(o) ? o : Sa(r) ? typeof r == "function" ? r() : r : typeof e == "function" ? e() : e;
|
|
5990
|
-
}), u = V(l, 2), c = u[0], d = u[1], f = o !== void 0 ? o : c, m = i ? i(f) : f, v = en(a), h = yr([f]), y = V(h, 2),
|
|
6006
|
+
}), u = V(l, 2), c = u[0], d = u[1], f = o !== void 0 ? o : c, m = i ? i(f) : f, v = en(a), h = yr([f]), y = V(h, 2), E = y[0], w = y[1];
|
|
5991
6007
|
$r(function() {
|
|
5992
|
-
var b =
|
|
6008
|
+
var b = E[0];
|
|
5993
6009
|
c !== b && v(c, b);
|
|
5994
|
-
}, [
|
|
6010
|
+
}, [E]), $r(function() {
|
|
5995
6011
|
Sa(o) || d(o);
|
|
5996
6012
|
}, [o]);
|
|
5997
6013
|
var g = en(function(b, p) {
|
|
@@ -6021,11 +6037,11 @@ function Mh(e, t) {
|
|
|
6021
6037
|
}, [e, t]);
|
|
6022
6038
|
}
|
|
6023
6039
|
var Ih = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKeyDown", "prefixCls", "disabled", "htmlSize", "className", "maxLength", "suffix", "showCount", "count", "type", "classes", "classNames", "styles", "onCompositionStart", "onCompositionEnd"], Dh = /* @__PURE__ */ Rt(function(e, t) {
|
|
6024
|
-
var n = e.autoComplete, r = e.onChange, o = e.onFocus, a = e.onBlur, i = e.onPressEnter, l = e.onKeyDown, u = e.prefixCls, c = u === void 0 ? "rc-input" : u, d = e.disabled, f = e.htmlSize, m = e.className, v = e.maxLength, h = e.suffix, y = e.showCount,
|
|
6040
|
+
var n = e.autoComplete, r = e.onChange, o = e.onFocus, a = e.onBlur, i = e.onPressEnter, l = e.onKeyDown, u = e.prefixCls, c = u === void 0 ? "rc-input" : u, d = e.disabled, f = e.htmlSize, m = e.className, v = e.maxLength, h = e.suffix, y = e.showCount, E = e.count, w = e.type, g = w === void 0 ? "text" : w, b = e.classes, p = e.classNames, x = e.styles, C = e.onCompositionStart, R = e.onCompositionEnd, _ = Ge(e, Ih), O = ht(!1), L = V(O, 2), $ = L[0], W = L[1], T = ce(!1), k = ce(null), z = function(Q) {
|
|
6025
6041
|
k.current && tu(k.current, Q);
|
|
6026
6042
|
}, B = Hn(e.defaultValue, {
|
|
6027
6043
|
value: e.value
|
|
6028
|
-
}), A = V(B, 2), D = A[0], M = A[1], N = D == null ? "" : String(D), I =
|
|
6044
|
+
}), A = V(B, 2), D = A[0], M = A[1], N = D == null ? "" : String(D), I = ht(null), F = V(I, 2), K = F[0], H = F[1], Y = Mh(E, y), ee = Y.max || v, se = Y.strategy(N), J = !!ee && se > ee;
|
|
6029
6045
|
Xa(t, function() {
|
|
6030
6046
|
return {
|
|
6031
6047
|
focus: z,
|
|
@@ -6115,7 +6131,7 @@ var Ih = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
|
|
|
6115
6131
|
size: f,
|
|
6116
6132
|
type: g,
|
|
6117
6133
|
onCompositionStart: function(_e) {
|
|
6118
|
-
T.current = !0,
|
|
6134
|
+
T.current = !0, C == null || C(_e);
|
|
6119
6135
|
},
|
|
6120
6136
|
onCompositionEnd: U
|
|
6121
6137
|
}));
|
|
@@ -6542,8 +6558,8 @@ function jh(e, t) {
|
|
|
6542
6558
|
return [r, o];
|
|
6543
6559
|
}
|
|
6544
6560
|
var Kh = function() {
|
|
6545
|
-
var t =
|
|
6546
|
-
return
|
|
6561
|
+
var t = ht(!1), n = V(t, 2), r = n[0], o = n[1];
|
|
6562
|
+
return yt(function() {
|
|
6547
6563
|
o(ui());
|
|
6548
6564
|
}, []), r;
|
|
6549
6565
|
}, Gh = 200, qh = 600;
|
|
@@ -6569,13 +6585,13 @@ function Xh(e) {
|
|
|
6569
6585
|
var m = Kh();
|
|
6570
6586
|
if (m)
|
|
6571
6587
|
return null;
|
|
6572
|
-
var v = "".concat(t, "-handler"), h = Se(v, "".concat(v, "-up"), q({}, "".concat(v, "-up-disabled"), o)), y = Se(v, "".concat(v, "-down"), q({}, "".concat(v, "-down-disabled"), a)),
|
|
6588
|
+
var v = "".concat(t, "-handler"), h = Se(v, "".concat(v, "-up"), q({}, "".concat(v, "-up-disabled"), o)), y = Se(v, "".concat(v, "-down"), q({}, "".concat(v, "-down-disabled"), a)), E = function() {
|
|
6573
6589
|
return u.current.push(at(d));
|
|
6574
6590
|
}, w = {
|
|
6575
6591
|
unselectable: "on",
|
|
6576
6592
|
role: "button",
|
|
6577
|
-
onMouseUp:
|
|
6578
|
-
onMouseLeave:
|
|
6593
|
+
onMouseUp: E,
|
|
6594
|
+
onMouseLeave: E
|
|
6579
6595
|
};
|
|
6580
6596
|
return /* @__PURE__ */ s.createElement("div", {
|
|
6581
6597
|
className: "".concat(v, "-wrap")
|
|
@@ -6623,9 +6639,9 @@ var Zh = ["prefixCls", "className", "style", "min", "max", "step", "defaultValue
|
|
|
6623
6639
|
var n = fn(t);
|
|
6624
6640
|
return n.isInvalidate() ? null : n;
|
|
6625
6641
|
}, Jh = /* @__PURE__ */ s.forwardRef(function(e, t) {
|
|
6626
|
-
var n, r = e.prefixCls, o = r === void 0 ? "rc-input-number" : r, a = e.className, i = e.style, l = e.min, u = e.max, c = e.step, d = c === void 0 ? 1 : c, f = e.defaultValue, m = e.value, v = e.disabled, h = e.readOnly, y = e.upHandler,
|
|
6642
|
+
var n, r = e.prefixCls, o = r === void 0 ? "rc-input-number" : r, a = e.className, i = e.style, l = e.min, u = e.max, c = e.step, d = c === void 0 ? 1 : c, f = e.defaultValue, m = e.value, v = e.disabled, h = e.readOnly, y = e.upHandler, E = e.downHandler, w = e.keyboard, g = e.changeOnWheel, b = g === void 0 ? !1 : g, p = e.controls, x = p === void 0 ? !0 : p;
|
|
6627
6643
|
e.classNames;
|
|
6628
|
-
var
|
|
6644
|
+
var C = e.stringMode, R = e.parser, _ = e.formatter, O = e.precision, L = e.decimalSeparator, $ = e.onChange, W = e.onInput, T = e.onPressEnter, k = e.onStep, z = e.changeOnBlur, B = z === void 0 ? !0 : z, A = Ge(e, Zh), D = "".concat(o, "-input"), M = s.useRef(null), N = s.useState(!1), I = V(N, 2), F = I[0], K = I[1], H = s.useRef(!1), Y = s.useRef(!1), ee = s.useRef(!1), se = s.useState(function() {
|
|
6629
6645
|
return fn(m != null ? m : f);
|
|
6630
6646
|
}), J = V(se, 2), Z = J[0], j = J[1];
|
|
6631
6647
|
function U(he) {
|
|
@@ -6685,7 +6701,7 @@ var Zh = ["prefixCls", "className", "style", "min", "max", "step", "defaultValue
|
|
|
6685
6701
|
var de = re, fe = $e(de) || de.isEmpty();
|
|
6686
6702
|
if (!de.isEmpty() && !ue && (de = ke(de) || de, fe = !0), !h && !v && fe) {
|
|
6687
6703
|
var De = de.toString(), Me = te(De, ue);
|
|
6688
|
-
return Me >= 0 && (de = fn(go(De, ".", Me)), $e(de) || (de = fn(go(De, ".", Me, !0)))), de.equals(Z) || (U(de), $ == null || $(de.isEmpty() ? null : vl(
|
|
6704
|
+
return Me >= 0 && (de = fn(go(De, ".", Me)), $e(de) || (de = fn(go(De, ".", Me, !0)))), de.equals(Z) || (U(de), $ == null || $(de.isEmpty() ? null : vl(C, de)), m === void 0 && Q(de, ue)), de;
|
|
6689
6705
|
}
|
|
6690
6706
|
return Z;
|
|
6691
6707
|
}, lt = Yh(), We = function he(re) {
|
|
@@ -6710,7 +6726,7 @@ var Zh = ["prefixCls", "className", "style", "min", "max", "step", "defaultValue
|
|
|
6710
6726
|
var de = fn(ee.current ? dl(d) : d);
|
|
6711
6727
|
re || (de = de.negate());
|
|
6712
6728
|
var fe = (Z || fn(0)).add(de.toString()), De = Ie(fe, !1);
|
|
6713
|
-
k == null || k(vl(
|
|
6729
|
+
k == null || k(vl(C, De), {
|
|
6714
6730
|
offset: ee.current ? dl(d) : d,
|
|
6715
6731
|
type: re ? "up" : "down"
|
|
6716
6732
|
}), (ue = M.current) === null || ue === void 0 || ue.focus();
|
|
@@ -6739,7 +6755,7 @@ var Zh = ["prefixCls", "className", "style", "min", "max", "step", "defaultValue
|
|
|
6739
6755
|
};
|
|
6740
6756
|
}
|
|
6741
6757
|
});
|
|
6742
|
-
var
|
|
6758
|
+
var pt = function() {
|
|
6743
6759
|
B && ft(!1), K(!1), H.current = !1;
|
|
6744
6760
|
};
|
|
6745
6761
|
return $r(function() {
|
|
@@ -6757,7 +6773,7 @@ var Zh = ["prefixCls", "className", "style", "min", "max", "step", "defaultValue
|
|
|
6757
6773
|
onFocus: function() {
|
|
6758
6774
|
K(!0);
|
|
6759
6775
|
},
|
|
6760
|
-
onBlur:
|
|
6776
|
+
onBlur: pt,
|
|
6761
6777
|
onKeyDown: nt,
|
|
6762
6778
|
onKeyUp: ct,
|
|
6763
6779
|
onCompositionStart: st,
|
|
@@ -6766,7 +6782,7 @@ var Zh = ["prefixCls", "className", "style", "min", "max", "step", "defaultValue
|
|
|
6766
6782
|
}, x && /* @__PURE__ */ s.createElement(Xh, {
|
|
6767
6783
|
prefixCls: o,
|
|
6768
6784
|
upNode: y,
|
|
6769
|
-
downNode:
|
|
6785
|
+
downNode: E,
|
|
6770
6786
|
upDisabled: be,
|
|
6771
6787
|
downDisabled: Ae,
|
|
6772
6788
|
onStep: Xe
|
|
@@ -6788,8 +6804,8 @@ var Zh = ["prefixCls", "className", "style", "min", "max", "step", "defaultValue
|
|
|
6788
6804
|
readOnly: h
|
|
6789
6805
|
}))));
|
|
6790
6806
|
}), ou = /* @__PURE__ */ s.forwardRef(function(e, t) {
|
|
6791
|
-
var n = e.disabled, r = e.style, o = e.prefixCls, a = e.value, i = e.prefix, l = e.suffix, u = e.addonBefore, c = e.addonAfter, d = e.className, f = e.classNames, m = Ge(e, Qh), v = s.useRef(null), h = function(
|
|
6792
|
-
v.current && tu(v.current,
|
|
6807
|
+
var n = e.disabled, r = e.style, o = e.prefixCls, a = e.value, i = e.prefix, l = e.suffix, u = e.addonBefore, c = e.addonAfter, d = e.className, f = e.classNames, m = Ge(e, Qh), v = s.useRef(null), h = function(E) {
|
|
6808
|
+
v.current && tu(v.current, E);
|
|
6793
6809
|
};
|
|
6794
6810
|
return /* @__PURE__ */ s.createElement(nu, {
|
|
6795
6811
|
className: d,
|
|
@@ -6871,7 +6887,7 @@ function vN(e) {
|
|
|
6871
6887
|
}
|
|
6872
6888
|
var mp = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "responsiveDisabled", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"], ur = void 0;
|
|
6873
6889
|
function hp(e, t) {
|
|
6874
|
-
var n = e.prefixCls, r = e.invalidate, o = e.item, a = e.renderItem, i = e.responsive, l = e.responsiveDisabled, u = e.registerSize, c = e.itemKey, d = e.className, f = e.style, m = e.children, v = e.display, h = e.order, y = e.component,
|
|
6890
|
+
var n = e.prefixCls, r = e.invalidate, o = e.item, a = e.renderItem, i = e.responsive, l = e.responsiveDisabled, u = e.registerSize, c = e.itemKey, d = e.className, f = e.style, m = e.children, v = e.display, h = e.order, y = e.component, E = y === void 0 ? "div" : y, w = Ge(e, mp), g = i && !v;
|
|
6875
6891
|
function b(_) {
|
|
6876
6892
|
u(c, _);
|
|
6877
6893
|
}
|
|
@@ -6889,12 +6905,12 @@ function hp(e, t) {
|
|
|
6889
6905
|
pointerEvents: g ? "none" : ur,
|
|
6890
6906
|
position: g ? "absolute" : ur
|
|
6891
6907
|
});
|
|
6892
|
-
var
|
|
6893
|
-
g && (
|
|
6894
|
-
var R = /* @__PURE__ */ s.createElement(
|
|
6908
|
+
var C = {};
|
|
6909
|
+
g && (C["aria-hidden"] = !0);
|
|
6910
|
+
var R = /* @__PURE__ */ s.createElement(E, Ee({
|
|
6895
6911
|
className: Se(!r && n, d),
|
|
6896
6912
|
style: P(P({}, x), f)
|
|
6897
|
-
},
|
|
6913
|
+
}, C, w, {
|
|
6898
6914
|
ref: t
|
|
6899
6915
|
}), p);
|
|
6900
6916
|
return i && (R = /* @__PURE__ */ s.createElement(nr, {
|
|
@@ -6959,9 +6975,9 @@ function wp(e) {
|
|
|
6959
6975
|
return "+ ".concat(e.length, " ...");
|
|
6960
6976
|
}
|
|
6961
6977
|
function xp(e, t) {
|
|
6962
|
-
var n = e.prefixCls, r = n === void 0 ? "rc-overflow" : n, o = e.data, a = o === void 0 ? [] : o, i = e.renderItem, l = e.renderRawItem, u = e.itemKey, c = e.itemWidth, d = c === void 0 ? 10 : c, f = e.ssr, m = e.style, v = e.className, h = e.maxCount, y = e.renderRest,
|
|
6978
|
+
var n = e.prefixCls, r = n === void 0 ? "rc-overflow" : n, o = e.data, a = o === void 0 ? [] : o, i = e.renderItem, l = e.renderRawItem, u = e.itemKey, c = e.itemWidth, d = c === void 0 ? 10 : c, f = e.ssr, m = e.style, v = e.className, h = e.maxCount, y = e.renderRest, E = e.renderRawRest, w = e.suffix, g = e.component, b = g === void 0 ? "div" : g, p = e.itemComponent, x = e.onVisibleChange, C = Ge(e, Ep), R = f === "full", _ = gp(), O = _r(_, null), L = V(O, 2), $ = L[0], W = L[1], T = $ || 0, k = _r(_, /* @__PURE__ */ new Map()), z = V(k, 2), B = z[0], A = z[1], D = _r(_, 0), M = V(D, 2), N = M[0], I = M[1], F = _r(_, 0), K = V(F, 2), H = K[0], Y = K[1], ee = _r(_, 0), se = V(ee, 2), J = se[0], Z = se[1], j = ht(null), U = V(j, 2), te = U[0], oe = U[1], ne = ht(null), ie = V(ne, 2), we = ie[0], ge = ie[1], xe = s.useMemo(function() {
|
|
6963
6979
|
return we === null && R ? Number.MAX_SAFE_INTEGER : we || 0;
|
|
6964
|
-
}, [we, $]), G =
|
|
6980
|
+
}, [we, $]), G = ht(!1), Q = V(G, 2), ae = Q[0], _e = Q[1], be = "".concat(r, "-item"), Ae = Math.max(N, H), Ze = h === iu, Pe = a.length && Ze, He = h === lu, Je = Pe || typeof h == "number" && a.length > h, ke = Rn(function() {
|
|
6965
6981
|
var fe = a;
|
|
6966
6982
|
return Pe ? $ === null && R ? fe = a : fe = a.slice(0, Math.min(a.length, T / d)) : typeof h == "number" && (fe = a.slice(0, h)), fe;
|
|
6967
6983
|
}, [a, d, $, h, Pe]), $e = Rn(function() {
|
|
@@ -6993,7 +7009,7 @@ function xp(e, t) {
|
|
|
6993
7009
|
function ft(fe) {
|
|
6994
7010
|
return B.get(Ie(ke[fe], fe));
|
|
6995
7011
|
}
|
|
6996
|
-
|
|
7012
|
+
yt(function() {
|
|
6997
7013
|
if (T && typeof Ae == "number" && ke) {
|
|
6998
7014
|
var fe = J, De = ke.length, Me = De - 1;
|
|
6999
7015
|
if (!De) {
|
|
@@ -7030,7 +7046,7 @@ function xp(e, t) {
|
|
|
7030
7046
|
responsive: Pe,
|
|
7031
7047
|
component: p,
|
|
7032
7048
|
invalidate: He
|
|
7033
|
-
},
|
|
7049
|
+
}, pt = l ? function(fe, De) {
|
|
7034
7050
|
var Me = Ie(fe, De);
|
|
7035
7051
|
return /* @__PURE__ */ s.createElement(Mo.Provider, {
|
|
7036
7052
|
key: Me,
|
|
@@ -7059,10 +7075,10 @@ function xp(e, t) {
|
|
|
7059
7075
|
registerSize: je,
|
|
7060
7076
|
display: Ye
|
|
7061
7077
|
};
|
|
7062
|
-
if (
|
|
7063
|
-
|
|
7078
|
+
if (E)
|
|
7079
|
+
E && (he = /* @__PURE__ */ s.createElement(Mo.Provider, {
|
|
7064
7080
|
value: P(P({}, ct), re)
|
|
7065
|
-
},
|
|
7081
|
+
}, E($e)));
|
|
7066
7082
|
else {
|
|
7067
7083
|
var ue = y || wp;
|
|
7068
7084
|
he = /* @__PURE__ */ s.createElement(Hr, Ee({}, ct, re), typeof ue == "function" ? ue($e) : ue);
|
|
@@ -7071,7 +7087,7 @@ function xp(e, t) {
|
|
|
7071
7087
|
className: Se(!He && r, v),
|
|
7072
7088
|
style: m,
|
|
7073
7089
|
ref: t
|
|
7074
|
-
},
|
|
7090
|
+
}, C), ke.map(pt), Je ? he : null, w && /* @__PURE__ */ s.createElement(Hr, Ee({}, ct, {
|
|
7075
7091
|
responsive: Ze,
|
|
7076
7092
|
responsiveDisabled: !Pe,
|
|
7077
7093
|
order: xe,
|
|
@@ -7191,8 +7207,8 @@ function Dp(e, t, n, r) {
|
|
|
7191
7207
|
inlineSub: m,
|
|
7192
7208
|
horizontalSub: h,
|
|
7193
7209
|
verticalSub: h
|
|
7194
|
-
},
|
|
7195
|
-
switch (
|
|
7210
|
+
}, E = (l = y["".concat(e).concat(t ? "" : "Sub")]) === null || l === void 0 ? void 0 : l[r];
|
|
7211
|
+
switch (E) {
|
|
7196
7212
|
case u:
|
|
7197
7213
|
return {
|
|
7198
7214
|
offset: -1,
|
|
@@ -7272,7 +7288,7 @@ function Op(e, t, n, r, o, a, i, l, u, c) {
|
|
|
7272
7288
|
}, []), function(v) {
|
|
7273
7289
|
var h = v.which;
|
|
7274
7290
|
if ([].concat(pl, [yo, hu, Pr, Or]).includes(h)) {
|
|
7275
|
-
var y = a(),
|
|
7291
|
+
var y = a(), E = Ba(y, r), w = E, g = w.elements, b = w.key2element, p = w.element2key, x = b.get(t), C = Pp(x, g), R = p.get(C), _ = Dp(e, i(R, !0).length === 1, n, h);
|
|
7276
7292
|
if (!_ && h !== Pr && h !== Or)
|
|
7277
7293
|
return;
|
|
7278
7294
|
(pl.includes(h) || [Pr, Or].includes(h)) && v.preventDefault();
|
|
@@ -7286,17 +7302,17 @@ function Op(e, t, n, r, o, a, i, l, u, c) {
|
|
|
7286
7302
|
});
|
|
7287
7303
|
}
|
|
7288
7304
|
};
|
|
7289
|
-
if ([Pr, Or].includes(h) || _.sibling || !
|
|
7305
|
+
if ([Pr, Or].includes(h) || _.sibling || !C) {
|
|
7290
7306
|
var L;
|
|
7291
|
-
!
|
|
7307
|
+
!C || e === "inline" ? L = o.current : L = _p(C);
|
|
7292
7308
|
var $, W = vi(L, g);
|
|
7293
|
-
h === Pr ? $ = W[0] : h === Or ? $ = W[W.length - 1] : $ = gl(L, g,
|
|
7309
|
+
h === Pr ? $ = W[0] : h === Or ? $ = W[W.length - 1] : $ = gl(L, g, C, _.offset), O($);
|
|
7294
7310
|
} else if (_.inlineTrigger)
|
|
7295
7311
|
u(R);
|
|
7296
7312
|
else if (_.offset > 0)
|
|
7297
7313
|
u(R, !0), m(), d.current = at(function() {
|
|
7298
|
-
|
|
7299
|
-
var B =
|
|
7314
|
+
E = Ba(y, r);
|
|
7315
|
+
var B = C.getAttribute("aria-controls"), A = document.getElementById(B), D = gl(A, E.elements);
|
|
7300
7316
|
O(D);
|
|
7301
7317
|
}, 5);
|
|
7302
7318
|
else if (_.offset < 0) {
|
|
@@ -7321,9 +7337,9 @@ function Tp() {
|
|
|
7321
7337
|
}, m = vn(function(b, p) {
|
|
7322
7338
|
var x = bl(p);
|
|
7323
7339
|
o.current.set(x, b), r.current.set(b, x), c.current += 1;
|
|
7324
|
-
var
|
|
7340
|
+
var C = c.current;
|
|
7325
7341
|
kp(function() {
|
|
7326
|
-
|
|
7342
|
+
C === c.current && f();
|
|
7327
7343
|
});
|
|
7328
7344
|
}, []), v = vn(function(b, p) {
|
|
7329
7345
|
var x = bl(p);
|
|
@@ -7331,20 +7347,20 @@ function Tp() {
|
|
|
7331
7347
|
}, []), h = vn(function(b) {
|
|
7332
7348
|
u(b);
|
|
7333
7349
|
}, []), y = vn(function(b, p) {
|
|
7334
|
-
var x = r.current.get(b) || "",
|
|
7335
|
-
return p && l.includes(
|
|
7336
|
-
}, [l]),
|
|
7350
|
+
var x = r.current.get(b) || "", C = Lp(x);
|
|
7351
|
+
return p && l.includes(C[0]) && C.unshift(Ua), C;
|
|
7352
|
+
}, [l]), E = vn(function(b, p) {
|
|
7337
7353
|
return b.some(function(x) {
|
|
7338
|
-
var
|
|
7339
|
-
return
|
|
7354
|
+
var C = y(x, !0);
|
|
7355
|
+
return C.includes(p);
|
|
7340
7356
|
});
|
|
7341
7357
|
}, [y]), w = function() {
|
|
7342
7358
|
var p = mt(r.current.keys());
|
|
7343
7359
|
return l.length && p.push(Ua), p;
|
|
7344
7360
|
}, g = vn(function(b) {
|
|
7345
7361
|
var p = "".concat(r.current.get(b)).concat(mi), x = /* @__PURE__ */ new Set();
|
|
7346
|
-
return mt(o.current.keys()).forEach(function(
|
|
7347
|
-
|
|
7362
|
+
return mt(o.current.keys()).forEach(function(C) {
|
|
7363
|
+
C.startsWith(p) && x.add(o.current.get(C));
|
|
7348
7364
|
}), x;
|
|
7349
7365
|
}, []);
|
|
7350
7366
|
return s.useEffect(function() {
|
|
@@ -7357,7 +7373,7 @@ function Tp() {
|
|
|
7357
7373
|
unregisterPath: v,
|
|
7358
7374
|
refreshOverflowKeys: h,
|
|
7359
7375
|
// Util
|
|
7360
|
-
isSubPathKey:
|
|
7376
|
+
isSubPathKey: E,
|
|
7361
7377
|
getKeyPath: y,
|
|
7362
7378
|
getKeys: w,
|
|
7363
7379
|
getSubPathKeys: g
|
|
@@ -7444,7 +7460,7 @@ var Hp = ["title", "attribute", "elementRef"], Vp = ["style", "className", "even
|
|
|
7444
7460
|
}(s.Component), Wp = /* @__PURE__ */ s.forwardRef(function(e, t) {
|
|
7445
7461
|
var n, r = e.style, o = e.className, a = e.eventKey;
|
|
7446
7462
|
e.warnKey;
|
|
7447
|
-
var i = e.disabled, l = e.itemIcon, u = e.children, c = e.role, d = e.onMouseEnter, f = e.onMouseLeave, m = e.onClick, v = e.onKeyDown, h = e.onFocus, y = Ge(e, Vp),
|
|
7463
|
+
var i = e.disabled, l = e.itemIcon, u = e.children, c = e.role, d = e.onMouseEnter, f = e.onMouseLeave, m = e.onClick, v = e.onKeyDown, h = e.onFocus, y = Ge(e, Vp), E = fu(a), w = s.useContext(hn), g = w.prefixCls, b = w.onItemClick, p = w.disabled, x = w.overflowDisabled, C = w.itemIcon, R = w.selectedKeys, _ = w.onActive, O = s.useContext(di), L = O._internalRenderMenuItem, $ = "".concat(g, "-item"), W = s.useRef(), T = s.useRef(), k = p || i, z = Cr(t, T), B = Gr(a), A = function(j) {
|
|
7448
7464
|
return {
|
|
7449
7465
|
key: a,
|
|
7450
7466
|
// Note: For legacy code is reversed which not like other antd component
|
|
@@ -7452,7 +7468,7 @@ var Hp = ["title", "attribute", "elementRef"], Vp = ["style", "className", "even
|
|
|
7452
7468
|
item: W.current,
|
|
7453
7469
|
domEvent: j
|
|
7454
7470
|
};
|
|
7455
|
-
}, D = l ||
|
|
7471
|
+
}, D = l || C, M = pu(a, k, d, f), N = M.active, I = Ge(M, Bp), F = R.includes(a), K = gu(B.length), H = function(j) {
|
|
7456
7472
|
if (!k) {
|
|
7457
7473
|
var U = A(j);
|
|
7458
7474
|
m == null || m(Io(U)), b(U);
|
|
@@ -7471,7 +7487,7 @@ var Hp = ["title", "attribute", "elementRef"], Vp = ["style", "className", "even
|
|
|
7471
7487
|
elementRef: z,
|
|
7472
7488
|
role: c === null ? "none" : c || "menuitem",
|
|
7473
7489
|
tabIndex: i ? null : -1,
|
|
7474
|
-
"data-menu-id": x &&
|
|
7490
|
+
"data-menu-id": x && E ? null : E
|
|
7475
7491
|
}, y, I, se, {
|
|
7476
7492
|
component: "li",
|
|
7477
7493
|
"aria-disabled": i,
|
|
@@ -7610,7 +7626,7 @@ var Xp = {
|
|
|
7610
7626
|
"vertical-right": "leftTop"
|
|
7611
7627
|
};
|
|
7612
7628
|
function Yp(e) {
|
|
7613
|
-
var t = e.prefixCls, n = e.visible, r = e.children, o = e.popup, a = e.popupStyle, i = e.popupClassName, l = e.popupOffset, u = e.disabled, c = e.mode, d = e.onVisibleChange, f = s.useContext(hn), m = f.getPopupContainer, v = f.rtl, h = f.subMenuOpenDelay, y = f.subMenuCloseDelay,
|
|
7629
|
+
var t = e.prefixCls, n = e.visible, r = e.children, o = e.popup, a = e.popupStyle, i = e.popupClassName, l = e.popupOffset, u = e.disabled, c = e.mode, d = e.onVisibleChange, f = s.useContext(hn), m = f.getPopupContainer, v = f.rtl, h = f.subMenuOpenDelay, y = f.subMenuCloseDelay, E = f.builtinPlacements, w = f.triggerSubMenuAction, g = f.forceSubMenuRender, b = f.rootClassName, p = f.motion, x = f.defaultMotions, C = s.useState(!1), R = V(C, 2), _ = R[0], O = R[1], L = P(v ? P({}, qp) : P({}, Gp), E), $ = Xp[c], W = yu(c, p, x), T = s.useRef(W);
|
|
7614
7630
|
c !== "inline" && (T.current = W);
|
|
7615
7631
|
var k = P(P({}, T.current), {}, {
|
|
7616
7632
|
leavedClassName: "".concat(t, "-hidden"),
|
|
@@ -7648,15 +7664,15 @@ function Yp(e) {
|
|
|
7648
7664
|
function Zp(e) {
|
|
7649
7665
|
var t = e.id, n = e.open, r = e.keyPath, o = e.children, a = "inline", i = s.useContext(hn), l = i.prefixCls, u = i.forceSubMenuRender, c = i.motion, d = i.defaultMotions, f = i.mode, m = s.useRef(!1);
|
|
7650
7666
|
m.current = f === a;
|
|
7651
|
-
var v = s.useState(!m.current), h = V(v, 2), y = h[0],
|
|
7667
|
+
var v = s.useState(!m.current), h = V(v, 2), y = h[0], E = h[1], w = m.current ? n : !1;
|
|
7652
7668
|
s.useEffect(function() {
|
|
7653
|
-
m.current &&
|
|
7669
|
+
m.current && E(!1);
|
|
7654
7670
|
}, [f]);
|
|
7655
7671
|
var g = P({}, yu(a, c, d));
|
|
7656
7672
|
r.length > 1 && (g.motionAppear = !1);
|
|
7657
7673
|
var b = g.onVisibleChanged;
|
|
7658
7674
|
return g.onVisibleChanged = function(p) {
|
|
7659
|
-
return !m.current && !p &&
|
|
7675
|
+
return !m.current && !p && E(!0), b == null ? void 0 : b(p);
|
|
7660
7676
|
}, y ? null : /* @__PURE__ */ s.createElement(Wr, {
|
|
7661
7677
|
mode: a,
|
|
7662
7678
|
locked: !m.current
|
|
@@ -7667,21 +7683,21 @@ function Zp(e) {
|
|
|
7667
7683
|
removeOnLeave: !1,
|
|
7668
7684
|
leavedClassName: "".concat(l, "-hidden")
|
|
7669
7685
|
}), function(p) {
|
|
7670
|
-
var x = p.className,
|
|
7686
|
+
var x = p.className, C = p.style;
|
|
7671
7687
|
return /* @__PURE__ */ s.createElement(hi, {
|
|
7672
7688
|
id: t,
|
|
7673
7689
|
className: x,
|
|
7674
|
-
style:
|
|
7690
|
+
style: C
|
|
7675
7691
|
}, o);
|
|
7676
7692
|
}));
|
|
7677
7693
|
}
|
|
7678
7694
|
var Qp = ["style", "className", "title", "eventKey", "warnKey", "disabled", "internalPopupClose", "children", "itemIcon", "expandIcon", "popupClassName", "popupOffset", "popupStyle", "onClick", "onMouseEnter", "onMouseLeave", "onTitleClick", "onTitleMouseEnter", "onTitleMouseLeave"], Jp = ["active"], e0 = function(t) {
|
|
7679
7695
|
var n, r = t.style, o = t.className, a = t.title, i = t.eventKey;
|
|
7680
7696
|
t.warnKey;
|
|
7681
|
-
var l = t.disabled, u = t.internalPopupClose, c = t.children, d = t.itemIcon, f = t.expandIcon, m = t.popupClassName, v = t.popupOffset, h = t.popupStyle, y = t.onClick,
|
|
7697
|
+
var l = t.disabled, u = t.internalPopupClose, c = t.children, d = t.itemIcon, f = t.expandIcon, m = t.popupClassName, v = t.popupOffset, h = t.popupStyle, y = t.onClick, E = t.onMouseEnter, w = t.onMouseLeave, g = t.onTitleClick, b = t.onTitleMouseEnter, p = t.onTitleMouseLeave, x = Ge(t, Qp), C = fu(i), R = s.useContext(hn), _ = R.prefixCls, O = R.mode, L = R.openKeys, $ = R.disabled, W = R.overflowDisabled, T = R.activeKey, k = R.selectedKeys, z = R.itemIcon, B = R.expandIcon, A = R.onItemClick, D = R.onOpenChange, M = R.onActive, N = s.useContext(di), I = N._internalRenderSubMenuItem, F = s.useContext(mu), K = F.isSubPathKey, H = Gr(), Y = "".concat(_, "-submenu"), ee = $ || l, se = s.useRef(), J = s.useRef(), Z = d != null ? d : z, j = f != null ? f : B, U = L.includes(i), te = !W && U, oe = K(k, i), ne = pu(i, ee, b, p), ie = ne.active, we = Ge(ne, Jp), ge = s.useState(!1), xe = V(ge, 2), G = xe[0], Q = xe[1], ae = function(je) {
|
|
7682
7698
|
ee || Q(je);
|
|
7683
7699
|
}, _e = function(je) {
|
|
7684
|
-
ae(!0),
|
|
7700
|
+
ae(!0), E == null || E({
|
|
7685
7701
|
key: i,
|
|
7686
7702
|
domEvent: je
|
|
7687
7703
|
});
|
|
@@ -7703,14 +7719,14 @@ var Qp = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
|
|
|
7703
7719
|
O !== "inline" && D(i, je);
|
|
7704
7720
|
}, ke = function() {
|
|
7705
7721
|
M(i);
|
|
7706
|
-
}, $e =
|
|
7722
|
+
}, $e = C && "".concat(C, "-popup"), Ie = /* @__PURE__ */ s.createElement("div", Ee({
|
|
7707
7723
|
role: "menuitem",
|
|
7708
7724
|
style: Ze,
|
|
7709
7725
|
className: "".concat(Y, "-title"),
|
|
7710
7726
|
tabIndex: ee ? null : -1,
|
|
7711
7727
|
ref: se,
|
|
7712
7728
|
title: typeof a == "string" ? a : null,
|
|
7713
|
-
"data-menu-id": W &&
|
|
7729
|
+
"data-menu-id": W && C ? null : C,
|
|
7714
7730
|
"aria-expanded": te,
|
|
7715
7731
|
"aria-haspopup": !0,
|
|
7716
7732
|
"aria-controls": $e,
|
|
@@ -7849,7 +7865,7 @@ function a0(e, t, n) {
|
|
|
7849
7865
|
return t && (r = Wa(t)), pi(r, n);
|
|
7850
7866
|
}
|
|
7851
7867
|
var i0 = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items", "children", "direction", "id", "mode", "inlineCollapsed", "disabled", "disabledOverflow", "subMenuOpenDelay", "subMenuCloseDelay", "forceSubMenuRender", "defaultOpenKeys", "openKeys", "activeKey", "defaultActiveFirst", "selectable", "multiple", "defaultSelectedKeys", "selectedKeys", "onSelect", "onDeselect", "inlineIndent", "motion", "defaultMotions", "triggerSubMenuAction", "builtinPlacements", "itemIcon", "expandIcon", "overflowedIndicator", "overflowedIndicatorPopupClassName", "getPopupContainer", "onClick", "onOpenChange", "onKeyDown", "openAnimation", "openTransitionName", "_internalRenderMenuItem", "_internalRenderSubMenuItem"], cr = [], l0 = /* @__PURE__ */ s.forwardRef(function(e, t) {
|
|
7852
|
-
var n, r, o = e, a = o.prefixCls, i = a === void 0 ? "rc-menu" : a, l = o.rootClassName, u = o.style, c = o.className, d = o.tabIndex, f = d === void 0 ? 0 : d, m = o.items, v = o.children, h = o.direction, y = o.id,
|
|
7868
|
+
var n, r, o = e, a = o.prefixCls, i = a === void 0 ? "rc-menu" : a, l = o.rootClassName, u = o.style, c = o.className, d = o.tabIndex, f = d === void 0 ? 0 : d, m = o.items, v = o.children, h = o.direction, y = o.id, E = o.mode, w = E === void 0 ? "vertical" : E, g = o.inlineCollapsed, b = o.disabled, p = o.disabledOverflow, x = o.subMenuOpenDelay, C = x === void 0 ? 0.1 : x, R = o.subMenuCloseDelay, _ = R === void 0 ? 0.1 : R, O = o.forceSubMenuRender, L = o.defaultOpenKeys, $ = o.openKeys, W = o.activeKey, T = o.defaultActiveFirst, k = o.selectable, z = k === void 0 ? !0 : k, B = o.multiple, A = B === void 0 ? !1 : B, D = o.defaultSelectedKeys, M = o.selectedKeys, N = o.onSelect, I = o.onDeselect, F = o.inlineIndent, K = F === void 0 ? 24 : F, H = o.motion, Y = o.defaultMotions, ee = o.triggerSubMenuAction, se = ee === void 0 ? "hover" : ee, J = o.builtinPlacements, Z = o.itemIcon, j = o.expandIcon, U = o.overflowedIndicator, te = U === void 0 ? "..." : U, oe = o.overflowedIndicatorPopupClassName, ne = o.getPopupContainer, ie = o.onClick, we = o.onOpenChange, ge = o.onKeyDown;
|
|
7853
7869
|
o.openAnimation, o.openTransitionName;
|
|
7854
7870
|
var xe = o._internalRenderMenuItem, G = o._internalRenderSubMenuItem, Q = Ge(o, i0), ae = s.useMemo(function() {
|
|
7855
7871
|
return a0(v, m, cr);
|
|
@@ -7866,10 +7882,10 @@ var i0 = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
7866
7882
|
me ? wa(Ce) : Ce();
|
|
7867
7883
|
}, st = s.useState(Ie), ze = V(st, 2), je = ze[0], Xe = ze[1], ft = s.useRef(!1), Ye = s.useMemo(function() {
|
|
7868
7884
|
return (w === "inline" || w === "vertical") && g ? ["vertical", g] : [w, !1];
|
|
7869
|
-
}, [w, g]), nt = V(Ye, 2), ct = nt[0],
|
|
7885
|
+
}, [w, g]), nt = V(Ye, 2), ct = nt[0], pt = nt[1], he = ct === "inline", re = s.useState(ct), ue = V(re, 2), de = ue[0], fe = ue[1], De = s.useState(pt), Me = V(De, 2), ve = Me[0], pe = Me[1];
|
|
7870
7886
|
s.useEffect(function() {
|
|
7871
|
-
fe(ct), pe(
|
|
7872
|
-
}, [ct,
|
|
7887
|
+
fe(ct), pe(pt), ft.current && (he ? lt(je) : We(cr));
|
|
7888
|
+
}, [ct, pt]);
|
|
7873
7889
|
var le = s.useState(0), Oe = V(le, 2), Fe = Oe[0], Ve = Oe[1], ut = Fe >= ae.length - 1 || de !== "horizontal" || p;
|
|
7874
7890
|
s.useEffect(function() {
|
|
7875
7891
|
he && Xe(Ie);
|
|
@@ -8021,7 +8037,7 @@ var i0 = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
8021
8037
|
onInactive: At,
|
|
8022
8038
|
selectedKeys: $t,
|
|
8023
8039
|
inlineIndent: K,
|
|
8024
|
-
subMenuOpenDelay:
|
|
8040
|
+
subMenuOpenDelay: C,
|
|
8025
8041
|
subMenuCloseDelay: _,
|
|
8026
8042
|
forceSubMenuRender: O,
|
|
8027
8043
|
builtinPlacements: J,
|
|
@@ -8204,12 +8220,12 @@ var Q0 = wu.exports, xu = { exports: {} };
|
|
|
8204
8220
|
}
|
|
8205
8221
|
}
|
|
8206
8222
|
o.wrap = v;
|
|
8207
|
-
var y = "suspendedStart",
|
|
8223
|
+
var y = "suspendedStart", E = "suspendedYield", w = "executing", g = "completed", b = {};
|
|
8208
8224
|
function p() {
|
|
8209
8225
|
}
|
|
8210
8226
|
function x() {
|
|
8211
8227
|
}
|
|
8212
|
-
function
|
|
8228
|
+
function C() {
|
|
8213
8229
|
}
|
|
8214
8230
|
var R = {};
|
|
8215
8231
|
m(R, c, function() {
|
|
@@ -8217,7 +8233,7 @@ var Q0 = wu.exports, xu = { exports: {} };
|
|
|
8217
8233
|
});
|
|
8218
8234
|
var _ = Object.getPrototypeOf, O = _ && _(_(D([])));
|
|
8219
8235
|
O && O !== a && i.call(O, c) && (R = O);
|
|
8220
|
-
var L =
|
|
8236
|
+
var L = C.prototype = p.prototype = Object.create(R);
|
|
8221
8237
|
function $(M) {
|
|
8222
8238
|
["next", "throw", "return"].forEach(function(N) {
|
|
8223
8239
|
m(M, N, function(I) {
|
|
@@ -8288,7 +8304,7 @@ var Q0 = wu.exports, xu = { exports: {} };
|
|
|
8288
8304
|
F = w;
|
|
8289
8305
|
var se = h(M, N, I);
|
|
8290
8306
|
if (se.type === "normal") {
|
|
8291
|
-
if (F = I.done ? g :
|
|
8307
|
+
if (F = I.done ? g : E, se.arg === b)
|
|
8292
8308
|
continue;
|
|
8293
8309
|
return {
|
|
8294
8310
|
value: se.arg,
|
|
@@ -8343,17 +8359,17 @@ var Q0 = wu.exports, xu = { exports: {} };
|
|
|
8343
8359
|
}
|
|
8344
8360
|
throw new TypeError(t(M) + " is not iterable");
|
|
8345
8361
|
}
|
|
8346
|
-
return x.prototype =
|
|
8347
|
-
value:
|
|
8362
|
+
return x.prototype = C, l(L, "constructor", {
|
|
8363
|
+
value: C,
|
|
8348
8364
|
configurable: !0
|
|
8349
|
-
}), l(
|
|
8365
|
+
}), l(C, "constructor", {
|
|
8350
8366
|
value: x,
|
|
8351
8367
|
configurable: !0
|
|
8352
|
-
}), x.displayName = m(
|
|
8368
|
+
}), x.displayName = m(C, f, "GeneratorFunction"), o.isGeneratorFunction = function(M) {
|
|
8353
8369
|
var N = typeof M == "function" && M.constructor;
|
|
8354
8370
|
return !!N && (N === x || (N.displayName || N.name) === "GeneratorFunction");
|
|
8355
8371
|
}, o.mark = function(M) {
|
|
8356
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(M,
|
|
8372
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(M, C) : (M.__proto__ = C, m(M, f, "GeneratorFunction")), M.prototype = Object.create(L), M;
|
|
8357
8373
|
}, o.awrap = function(M) {
|
|
8358
8374
|
return {
|
|
8359
8375
|
__await: M
|
|
@@ -9117,7 +9133,7 @@ const Qg = "univer-popup", Jg = "univer-popup-enter", eb = "univer-popup-enter-a
|
|
|
9117
9133
|
popupExitActive: ob
|
|
9118
9134
|
};
|
|
9119
9135
|
function SN(e) {
|
|
9120
|
-
const { children: t, visible: n = !1, offset: r = [0, 0] } = e, o = ce(null), [a, i] =
|
|
9136
|
+
const { children: t, visible: n = !1, offset: r = [0, 0] } = e, o = ce(null), [a, i] = ht(r);
|
|
9121
9137
|
wt(() => {
|
|
9122
9138
|
if (!n) {
|
|
9123
9139
|
i([-9999, -9999]);
|
|
@@ -9218,7 +9234,7 @@ const db = "univer-scrollbar-container", vb = "univer-scrollbar-bar", mb = "univ
|
|
|
9218
9234
|
scrollbarContent: hb
|
|
9219
9235
|
};
|
|
9220
9236
|
function wN(e) {
|
|
9221
|
-
const { children: t } = e, [n, r] =
|
|
9237
|
+
const { children: t } = e, [n, r] = ht(!1), [o, a] = ht(0), [i, l] = ht(0), u = vn((g) => {
|
|
9222
9238
|
g.preventDefault(), g.stopPropagation(), r(!0), l(g.clientY), a(m.current.scrollTop);
|
|
9223
9239
|
}, []), c = vn(
|
|
9224
9240
|
(g) => {
|
|
@@ -9228,7 +9244,7 @@ function wN(e) {
|
|
|
9228
9244
|
), d = vn(
|
|
9229
9245
|
(g) => {
|
|
9230
9246
|
if (g.preventDefault(), g.stopPropagation(), n) {
|
|
9231
|
-
const { scrollHeight: b, offsetHeight: p } = m.current, x = p * (p / b),
|
|
9247
|
+
const { scrollHeight: b, offsetHeight: p } = m.current, x = p * (p / b), C = (g.clientY - i) * (p / x), R = Math.min(o + C, b - p);
|
|
9232
9248
|
m.current.scrollTop = R;
|
|
9233
9249
|
}
|
|
9234
9250
|
},
|
|
@@ -9237,7 +9253,7 @@ function wN(e) {
|
|
|
9237
9253
|
wt(() => (document.addEventListener("mousemove", d), document.addEventListener("mouseup", c), document.addEventListener("mouseleave", c), () => {
|
|
9238
9254
|
document.removeEventListener("mousemove", d), document.removeEventListener("mouseup", c), document.removeEventListener("mouseleave", c);
|
|
9239
9255
|
}), [d, c]);
|
|
9240
|
-
const f = ce(null), m = ce(null), [v, h] =
|
|
9256
|
+
const f = ce(null), m = ce(null), [v, h] = ht(0), [y, E] = ht(0);
|
|
9241
9257
|
wt(() => {
|
|
9242
9258
|
const g = new ResizeObserver(() => {
|
|
9243
9259
|
let b = requestIdleCallback(() => {
|
|
@@ -9248,14 +9264,14 @@ function wN(e) {
|
|
|
9248
9264
|
});
|
|
9249
9265
|
});
|
|
9250
9266
|
return g.observe(document.body), m.current.addEventListener("scroll", (b) => {
|
|
9251
|
-
const { scrollTop: p, scrollHeight: x } = b.target,
|
|
9252
|
-
C
|
|
9267
|
+
const { scrollTop: p, scrollHeight: x } = b.target, C = p / x * 100;
|
|
9268
|
+
E(C);
|
|
9253
9269
|
}), () => {
|
|
9254
9270
|
g.unobserve(document.body);
|
|
9255
9271
|
};
|
|
9256
9272
|
}, []);
|
|
9257
9273
|
function w(g) {
|
|
9258
|
-
const { scrollHeight: b, offsetHeight: p } = m.current, x = p * (p / b),
|
|
9274
|
+
const { scrollHeight: b, offsetHeight: p } = m.current, x = p * (p / b), C = (g.clientY - i) * (p / x), R = Math.min(o + C, b - p);
|
|
9259
9275
|
m.current.scrollTo({
|
|
9260
9276
|
top: R,
|
|
9261
9277
|
behavior: "smooth"
|
|
@@ -9367,7 +9383,7 @@ function yb(e, t, n, r) {
|
|
|
9367
9383
|
}, []);
|
|
9368
9384
|
}
|
|
9369
9385
|
var Sb = function(t, n) {
|
|
9370
|
-
var r, o = t.prefixCls, a = t.id, i = t.inputElement, l = t.disabled, u = t.tabIndex, c = t.autoFocus, d = t.autoComplete, f = t.editable, m = t.activeDescendantId, v = t.value, h = t.maxLength, y = t.onKeyDown,
|
|
9386
|
+
var r, o = t.prefixCls, a = t.id, i = t.inputElement, l = t.disabled, u = t.tabIndex, c = t.autoFocus, d = t.autoComplete, f = t.editable, m = t.activeDescendantId, v = t.value, h = t.maxLength, y = t.onKeyDown, E = t.onMouseDown, w = t.onChange, g = t.onPaste, b = t.onCompositionStart, p = t.onCompositionEnd, x = t.open, C = t.attrs, R = i || /* @__PURE__ */ s.createElement("input", null), _ = R, O = _.ref, L = _.props, $ = L.onKeyDown, W = L.onChange, T = L.onMouseDown, k = L.onCompositionStart, z = L.onCompositionEnd, B = L.style;
|
|
9371
9387
|
return "maxLength" in R.props, R = /* @__PURE__ */ s.cloneElement(R, P(P(P({
|
|
9372
9388
|
type: "search"
|
|
9373
9389
|
}, L), {}, {
|
|
@@ -9386,7 +9402,7 @@ var Sb = function(t, n) {
|
|
|
9386
9402
|
"aria-autocomplete": "list",
|
|
9387
9403
|
"aria-controls": "".concat(a, "_list"),
|
|
9388
9404
|
"aria-activedescendant": x ? m : void 0
|
|
9389
|
-
},
|
|
9405
|
+
}, C), {}, {
|
|
9390
9406
|
value: f ? v : "",
|
|
9391
9407
|
maxLength: h,
|
|
9392
9408
|
readOnly: !f,
|
|
@@ -9398,7 +9414,7 @@ var Sb = function(t, n) {
|
|
|
9398
9414
|
y(D), $ && $(D);
|
|
9399
9415
|
},
|
|
9400
9416
|
onMouseDown: function(D) {
|
|
9401
|
-
|
|
9417
|
+
E(D), T && T(D);
|
|
9402
9418
|
},
|
|
9403
9419
|
onChange: function(D) {
|
|
9404
9420
|
w(D), W && W(D);
|
|
@@ -9439,9 +9455,9 @@ function Nb(e) {
|
|
|
9439
9455
|
var xl = function(t) {
|
|
9440
9456
|
t.preventDefault(), t.stopPropagation();
|
|
9441
9457
|
}, Mb = function(t) {
|
|
9442
|
-
var n = t.id, r = t.prefixCls, o = t.values, a = t.open, i = t.searchValue, l = t.autoClearSearchValue, u = t.inputRef, c = t.placeholder, d = t.disabled, f = t.mode, m = t.showSearch, v = t.autoFocus, h = t.autoComplete, y = t.activeDescendantId,
|
|
9458
|
+
var n = t.id, r = t.prefixCls, o = t.values, a = t.open, i = t.searchValue, l = t.autoClearSearchValue, u = t.inputRef, c = t.placeholder, d = t.disabled, f = t.mode, m = t.showSearch, v = t.autoFocus, h = t.autoComplete, y = t.activeDescendantId, E = t.tabIndex, w = t.removeIcon, g = t.maxTagCount, b = t.maxTagTextLength, p = t.maxTagPlaceholder, x = p === void 0 ? function(oe) {
|
|
9443
9459
|
return "+ ".concat(oe.length, " ...");
|
|
9444
|
-
} : p,
|
|
9460
|
+
} : p, C = t.tagRender, R = t.onToggleOpen, _ = t.onRemove, O = t.onInputChange, L = t.onInputPaste, $ = t.onInputKeyDown, W = t.onInputMouseDown, T = t.onInputCompositionStart, k = t.onInputCompositionEnd, z = s.useRef(null), B = ht(0), A = V(B, 2), D = A[0], M = A[1], N = ht(!1), I = V(N, 2), F = I[0], K = I[1], H = "".concat(r, "-selection"), Y = a || f === "multiple" && l === !1 || f === "tags" ? i : "", ee = f === "tags" || f === "multiple" && l === !1 || m && (a || F);
|
|
9445
9461
|
Rb(function() {
|
|
9446
9462
|
M(z.current.scrollWidth);
|
|
9447
9463
|
}, [Y]);
|
|
@@ -9463,7 +9479,7 @@ var xl = function(t) {
|
|
|
9463
9479
|
};
|
|
9464
9480
|
return /* @__PURE__ */ s.createElement("span", {
|
|
9465
9481
|
onMouseDown: G
|
|
9466
|
-
},
|
|
9482
|
+
}, C({
|
|
9467
9483
|
label: ie,
|
|
9468
9484
|
value: ne,
|
|
9469
9485
|
disabled: we,
|
|
@@ -9479,7 +9495,7 @@ var xl = function(t) {
|
|
|
9479
9495
|
var ae = function(be) {
|
|
9480
9496
|
be && be.stopPropagation(), _(ne);
|
|
9481
9497
|
};
|
|
9482
|
-
return typeof
|
|
9498
|
+
return typeof C == "function" ? J(ge, G, ie, xe, ae) : se(ne, G, ie, xe, ae);
|
|
9483
9499
|
}, j = function(ne) {
|
|
9484
9500
|
var ie = typeof x == "function" ? x(ne) : x;
|
|
9485
9501
|
return se({
|
|
@@ -9514,7 +9530,7 @@ var xl = function(t) {
|
|
|
9514
9530
|
onPaste: L,
|
|
9515
9531
|
onCompositionStart: T,
|
|
9516
9532
|
onCompositionEnd: k,
|
|
9517
|
-
tabIndex:
|
|
9533
|
+
tabIndex: E,
|
|
9518
9534
|
attrs: Vr(t, !0)
|
|
9519
9535
|
}), /* @__PURE__ */ s.createElement("span", {
|
|
9520
9536
|
ref: z,
|
|
@@ -9533,7 +9549,7 @@ var xl = function(t) {
|
|
|
9533
9549
|
className: "".concat(H, "-placeholder")
|
|
9534
9550
|
}, c));
|
|
9535
9551
|
}, Ib = function(t) {
|
|
9536
|
-
var n = t.inputElement, r = t.prefixCls, o = t.id, a = t.inputRef, i = t.disabled, l = t.autoFocus, u = t.autoComplete, c = t.activeDescendantId, d = t.mode, f = t.open, m = t.values, v = t.placeholder, h = t.tabIndex, y = t.showSearch,
|
|
9552
|
+
var n = t.inputElement, r = t.prefixCls, o = t.id, a = t.inputRef, i = t.disabled, l = t.autoFocus, u = t.autoComplete, c = t.activeDescendantId, d = t.mode, f = t.open, m = t.values, v = t.placeholder, h = t.tabIndex, y = t.showSearch, E = t.searchValue, w = t.activeValue, g = t.maxLength, b = t.onInputKeyDown, p = t.onInputMouseDown, x = t.onInputChange, C = t.onInputPaste, R = t.onInputCompositionStart, _ = t.onInputCompositionEnd, O = t.title, L = s.useState(!1), $ = V(L, 2), W = $[0], T = $[1], k = d === "combobox", z = k || y, B = m[0], A = E || "";
|
|
9537
9553
|
k && w && !W && (A = w), s.useEffect(function() {
|
|
9538
9554
|
k && T(!1);
|
|
9539
9555
|
}, [k, w]);
|
|
@@ -9564,7 +9580,7 @@ var xl = function(t) {
|
|
|
9564
9580
|
onChange: function(F) {
|
|
9565
9581
|
T(!0), x(F);
|
|
9566
9582
|
},
|
|
9567
|
-
onPaste:
|
|
9583
|
+
onPaste: C,
|
|
9568
9584
|
onCompositionStart: R,
|
|
9569
9585
|
onCompositionEnd: _,
|
|
9570
9586
|
tabIndex: h,
|
|
@@ -9621,12 +9637,12 @@ var _b = function(t, n) {
|
|
|
9621
9637
|
}
|
|
9622
9638
|
};
|
|
9623
9639
|
});
|
|
9624
|
-
var
|
|
9640
|
+
var E = Lu(0), w = V(E, 2), g = w[0], b = w[1], p = function(A) {
|
|
9625
9641
|
var D = A.which;
|
|
9626
9642
|
(D === X.UP || D === X.DOWN) && A.preventDefault(), h && h(A), D === X.ENTER && l === "tags" && !o.current && !i && (m == null || m(A.target.value)), Db(D) && v(!0);
|
|
9627
9643
|
}, x = function() {
|
|
9628
9644
|
b(!0);
|
|
9629
|
-
},
|
|
9645
|
+
}, C = ce(null), R = function(A) {
|
|
9630
9646
|
f(A, !0, o.current) !== !1 && v(!0);
|
|
9631
9647
|
}, _ = function() {
|
|
9632
9648
|
o.current = !0;
|
|
@@ -9634,14 +9650,14 @@ var _b = function(t, n) {
|
|
|
9634
9650
|
o.current = !1, l !== "combobox" && R(A.target.value);
|
|
9635
9651
|
}, L = function(A) {
|
|
9636
9652
|
var D = A.target.value;
|
|
9637
|
-
if (c &&
|
|
9638
|
-
var M =
|
|
9639
|
-
D = D.replace(M,
|
|
9653
|
+
if (c && C.current && /[\r\n]/.test(C.current)) {
|
|
9654
|
+
var M = C.current.replace(/[\r\n]+$/, "").replace(/\r\n/g, " ").replace(/[\r\n]/g, " ");
|
|
9655
|
+
D = D.replace(M, C.current);
|
|
9640
9656
|
}
|
|
9641
|
-
|
|
9657
|
+
C.current = null, R(D);
|
|
9642
9658
|
}, $ = function(A) {
|
|
9643
9659
|
var D = A.clipboardData, M = D == null ? void 0 : D.getData("text");
|
|
9644
|
-
|
|
9660
|
+
C.current = M || "";
|
|
9645
9661
|
}, W = function(A) {
|
|
9646
9662
|
var D = A.target;
|
|
9647
9663
|
if (D !== r.current) {
|
|
@@ -9711,8 +9727,8 @@ var _b = function(t, n) {
|
|
|
9711
9727
|
}, Lb = function(t, n) {
|
|
9712
9728
|
var r = t.prefixCls;
|
|
9713
9729
|
t.disabled;
|
|
9714
|
-
var o = t.visible, a = t.children, i = t.popupElement, l = t.animation, u = t.transitionName, c = t.dropdownStyle, d = t.dropdownClassName, f = t.direction, m = f === void 0 ? "ltr" : f, v = t.placement, h = t.builtinPlacements, y = t.dropdownMatchSelectWidth,
|
|
9715
|
-
|
|
9730
|
+
var o = t.visible, a = t.children, i = t.popupElement, l = t.animation, u = t.transitionName, c = t.dropdownStyle, d = t.dropdownClassName, f = t.direction, m = f === void 0 ? "ltr" : f, v = t.placement, h = t.builtinPlacements, y = t.dropdownMatchSelectWidth, E = t.dropdownRender, w = t.dropdownAlign, g = t.getPopupContainer, b = t.empty, p = t.getTriggerDOMNode, x = t.onPopupVisibleChange, C = t.onPopupMouseEnter, R = Ge(t, Ob), _ = "".concat(r, "-dropdown"), O = i;
|
|
9731
|
+
E && (O = E(i));
|
|
9716
9732
|
var L = s.useMemo(function() {
|
|
9717
9733
|
return h || kb(y);
|
|
9718
9734
|
}, [h, y]), $ = l ? "".concat(_, "-").concat(l) : u, W = typeof y == "number", T = s.useMemo(function() {
|
|
@@ -9737,7 +9753,7 @@ var _b = function(t, n) {
|
|
|
9737
9753
|
popupTransitionName: $,
|
|
9738
9754
|
popup: /* @__PURE__ */ s.createElement("div", {
|
|
9739
9755
|
ref: z,
|
|
9740
|
-
onMouseEnter:
|
|
9756
|
+
onMouseEnter: C
|
|
9741
9757
|
}, O),
|
|
9742
9758
|
stretch: T,
|
|
9743
9759
|
popupAlign: w,
|
|
@@ -9815,7 +9831,7 @@ var Fb = function(t, n, r) {
|
|
|
9815
9831
|
}, Ei = /* @__PURE__ */ s.createContext(null), Hb = ["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"], Vb = ["value", "onChange", "removeIcon", "placeholder", "autoFocus", "maxTagCount", "maxTagTextLength", "maxTagPlaceholder", "choiceTransitionName", "onInputKeyDown", "onPopupScroll", "tabIndex"], qa = function(t) {
|
|
9816
9832
|
return t === "tags" || t === "multiple";
|
|
9817
9833
|
}, Bb = /* @__PURE__ */ s.forwardRef(function(e, t) {
|
|
9818
|
-
var n, r, o = e.id, a = e.prefixCls, i = e.className, l = e.showSearch, u = e.tagRender, c = e.direction, d = e.omitDomProps, f = e.displayValues, m = e.onDisplayValuesChange, v = e.emptyOptions, h = e.notFoundContent, y = h === void 0 ? "Not Found" : h,
|
|
9834
|
+
var n, r, o = e.id, a = e.prefixCls, i = e.className, l = e.showSearch, u = e.tagRender, c = e.direction, d = e.omitDomProps, f = e.displayValues, m = e.onDisplayValuesChange, v = e.emptyOptions, h = e.notFoundContent, y = h === void 0 ? "Not Found" : h, E = e.onClear, w = e.mode, g = e.disabled, b = e.loading, p = e.getInputElement, x = e.getRawInputElement, C = e.open, R = e.defaultOpen, _ = e.onDropdownVisibleChange, O = e.activeValue, L = e.onActiveValueChange, $ = e.activeDescendantId, W = e.searchValue, T = e.autoClearSearchValue, k = e.onSearch, z = e.onSearchSplit, B = e.tokenSeparators, A = e.allowClear, D = e.suffixIcon, M = e.clearIcon, N = e.OptionList, I = e.animation, F = e.transitionName, K = e.dropdownStyle, H = e.dropdownClassName, Y = e.dropdownMatchSelectWidth, ee = e.dropdownRender, se = e.dropdownAlign, J = e.placement, Z = e.builtinPlacements, j = e.getPopupContainer, U = e.showAction, te = U === void 0 ? [] : U, oe = e.onFocus, ne = e.onBlur, ie = e.onKeyUp, we = e.onKeyDown, ge = e.onMouseDown, xe = Ge(e, Hb), G = qa(w), Q = (l !== void 0 ? l : G) || w === "combobox", ae = P({}, xe);
|
|
9819
9835
|
Vb.forEach(function(me) {
|
|
9820
9836
|
delete ae[me];
|
|
9821
9837
|
}), d == null || d.forEach(function(me) {
|
|
@@ -9843,13 +9859,13 @@ var Fb = function(t, n, r) {
|
|
|
9843
9859
|
return W;
|
|
9844
9860
|
var Ce = (me = f[0]) === null || me === void 0 ? void 0 : me.value;
|
|
9845
9861
|
return typeof Ce == "string" || typeof Ce == "number" ? String(Ce) : "";
|
|
9846
|
-
}, [W, w, f]), ft = w === "combobox" && typeof p == "function" && p() || null, Ye = typeof x == "function" && x(), nt = Cr(He, Ye == null || (n = Ye.props) === null || n === void 0 ? void 0 : n.ref), ct = s.useState(!1),
|
|
9847
|
-
|
|
9862
|
+
}, [W, w, f]), ft = w === "combobox" && typeof p == "function" && p() || null, Ye = typeof x == "function" && x(), nt = Cr(He, Ye == null || (n = Ye.props) === null || n === void 0 ? void 0 : n.ref), ct = s.useState(!1), pt = V(ct, 2), he = pt[0], re = pt[1];
|
|
9863
|
+
yt(function() {
|
|
9848
9864
|
re(!0);
|
|
9849
9865
|
}, []);
|
|
9850
9866
|
var ue = Hn(!1, {
|
|
9851
9867
|
defaultValue: R,
|
|
9852
|
-
value:
|
|
9868
|
+
value: C
|
|
9853
9869
|
}), de = V(ue, 2), fe = de[0], De = de[1], Me = he ? fe : !1, ve = !y && v;
|
|
9854
9870
|
(g || ve && Me && w === "combobox") && (Me = !1);
|
|
9855
9871
|
var pe = ve ? !1 : Me, le = s.useCallback(function(me) {
|
|
@@ -9986,7 +10002,7 @@ var Fb = function(t, n, r) {
|
|
|
9986
10002
|
}));
|
|
9987
10003
|
var Zt = function() {
|
|
9988
10004
|
var Ce;
|
|
9989
|
-
|
|
10005
|
+
E == null || E(), (Ce = ke.current) === null || Ce === void 0 || Ce.focus(), m([], {
|
|
9990
10006
|
type: "clear",
|
|
9991
10007
|
values: f
|
|
9992
10008
|
}), rt("", !1, !1);
|
|
@@ -10100,7 +10116,7 @@ function Nl(e, t) {
|
|
|
10100
10116
|
return n[t ? "pageX" : "pageY"];
|
|
10101
10117
|
}
|
|
10102
10118
|
var Ml = /* @__PURE__ */ s.forwardRef(function(e, t) {
|
|
10103
|
-
var n = e.prefixCls, r = e.rtl, o = e.scrollOffset, a = e.scrollRange, i = e.onStartMove, l = e.onStopMove, u = e.onScroll, c = e.horizontal, d = e.spinSize, f = e.containerSize, m = e.style, v = e.thumbStyle, h = s.useState(!1), y = V(h, 2),
|
|
10119
|
+
var n = e.prefixCls, r = e.rtl, o = e.scrollOffset, a = e.scrollRange, i = e.onStartMove, l = e.onStopMove, u = e.onScroll, c = e.horizontal, d = e.spinSize, f = e.containerSize, m = e.style, v = e.thumbStyle, h = s.useState(!1), y = V(h, 2), E = y[0], w = y[1], g = s.useState(null), b = V(g, 2), p = b[0], x = b[1], C = s.useState(null), R = V(C, 2), _ = R[0], O = R[1], L = !r, $ = s.useRef(), W = s.useRef(), T = s.useState(!1), k = V(T, 2), z = k[0], B = k[1], A = s.useRef(), D = function() {
|
|
10104
10120
|
clearTimeout(A.current), B(!0), A.current = setTimeout(function() {
|
|
10105
10121
|
B(!1);
|
|
10106
10122
|
}, 3e3);
|
|
@@ -10113,13 +10129,13 @@ var Ml = /* @__PURE__ */ s.forwardRef(function(e, t) {
|
|
|
10113
10129
|
U.stopPropagation(), U.preventDefault();
|
|
10114
10130
|
}, K = s.useRef({
|
|
10115
10131
|
top: I,
|
|
10116
|
-
dragging:
|
|
10132
|
+
dragging: E,
|
|
10117
10133
|
pageY: p,
|
|
10118
10134
|
startTop: _
|
|
10119
10135
|
});
|
|
10120
10136
|
K.current = {
|
|
10121
10137
|
top: I,
|
|
10122
|
-
dragging:
|
|
10138
|
+
dragging: E,
|
|
10123
10139
|
pageY: p,
|
|
10124
10140
|
startTop: _
|
|
10125
10141
|
};
|
|
@@ -10138,7 +10154,7 @@ var Ml = /* @__PURE__ */ s.forwardRef(function(e, t) {
|
|
|
10138
10154
|
Y.current = M;
|
|
10139
10155
|
var ee = s.useRef();
|
|
10140
10156
|
ee.current = N, s.useEffect(function() {
|
|
10141
|
-
if (
|
|
10157
|
+
if (E) {
|
|
10142
10158
|
var j, U = function(ne) {
|
|
10143
10159
|
var ie = K.current, we = ie.dragging, ge = ie.pageY, xe = ie.startTop;
|
|
10144
10160
|
if (at.cancel(j), we) {
|
|
@@ -10156,7 +10172,7 @@ var Ml = /* @__PURE__ */ s.forwardRef(function(e, t) {
|
|
|
10156
10172
|
window.removeEventListener("mousemove", U), window.removeEventListener("touchmove", U), window.removeEventListener("mouseup", te), window.removeEventListener("touchend", te), at.cancel(j);
|
|
10157
10173
|
};
|
|
10158
10174
|
}
|
|
10159
|
-
}, [
|
|
10175
|
+
}, [E]), s.useEffect(function() {
|
|
10160
10176
|
D();
|
|
10161
10177
|
}, [o]), s.useImperativeHandle(t, function() {
|
|
10162
10178
|
return {
|
|
@@ -10181,7 +10197,7 @@ var Ml = /* @__PURE__ */ s.forwardRef(function(e, t) {
|
|
|
10181
10197
|
onMouseMove: D
|
|
10182
10198
|
}, /* @__PURE__ */ s.createElement("div", {
|
|
10183
10199
|
ref: W,
|
|
10184
|
-
className: Se("".concat(se, "-thumb"), q({}, "".concat(se, "-thumb-moving"),
|
|
10200
|
+
className: Se("".concat(se, "-thumb"), q({}, "".concat(se, "-thumb-moving"), E)),
|
|
10185
10201
|
style: P(P({}, Z), v),
|
|
10186
10202
|
onMouseDown: H
|
|
10187
10203
|
}));
|
|
@@ -10235,20 +10251,20 @@ function jb(e, t, n) {
|
|
|
10235
10251
|
var v = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
10236
10252
|
d();
|
|
10237
10253
|
var h = function() {
|
|
10238
|
-
l.current.forEach(function(
|
|
10239
|
-
if (
|
|
10240
|
-
var g = Fr(
|
|
10254
|
+
l.current.forEach(function(E, w) {
|
|
10255
|
+
if (E && E.offsetParent) {
|
|
10256
|
+
var g = Fr(E), b = g.offsetHeight;
|
|
10241
10257
|
u.current.get(w) !== b && u.current.set(w, g.offsetHeight);
|
|
10242
10258
|
}
|
|
10243
|
-
}), i(function(
|
|
10244
|
-
return
|
|
10259
|
+
}), i(function(E) {
|
|
10260
|
+
return E + 1;
|
|
10245
10261
|
});
|
|
10246
10262
|
};
|
|
10247
10263
|
v ? h() : c.current = at(h);
|
|
10248
10264
|
}
|
|
10249
10265
|
function m(v, h) {
|
|
10250
|
-
var y = e(v),
|
|
10251
|
-
h ? (l.current.set(y, h), f()) : l.current.delete(y), !
|
|
10266
|
+
var y = e(v), E = l.current.get(y);
|
|
10267
|
+
h ? (l.current.set(y, h), f()) : l.current.delete(y), !E != !h && (h ? t == null || t(v) : n == null || n(v));
|
|
10252
10268
|
}
|
|
10253
10269
|
return wt(function() {
|
|
10254
10270
|
return d;
|
|
@@ -10257,7 +10273,7 @@ function jb(e, t, n) {
|
|
|
10257
10273
|
var Kb = 10;
|
|
10258
10274
|
function Gb(e, t, n, r, o, a, i, l) {
|
|
10259
10275
|
var u = s.useRef(), c = s.useState(null), d = V(c, 2), f = d[0], m = d[1];
|
|
10260
|
-
return
|
|
10276
|
+
return yt(function() {
|
|
10261
10277
|
if (f && f.times < Kb) {
|
|
10262
10278
|
if (!e.current) {
|
|
10263
10279
|
m(function(M) {
|
|
@@ -10266,15 +10282,15 @@ function Gb(e, t, n, r, o, a, i, l) {
|
|
|
10266
10282
|
return;
|
|
10267
10283
|
}
|
|
10268
10284
|
a();
|
|
10269
|
-
var v = f.targetAlign, h = f.originAlign, y = f.index,
|
|
10285
|
+
var v = f.targetAlign, h = f.originAlign, y = f.index, E = f.offset, w = e.current.clientHeight, g = !1, b = v, p = null;
|
|
10270
10286
|
if (w) {
|
|
10271
|
-
for (var x = v || h,
|
|
10287
|
+
for (var x = v || h, C = 0, R = 0, _ = 0, O = Math.min(t.length - 1, y), L = 0; L <= O; L += 1) {
|
|
10272
10288
|
var $ = o(t[L]);
|
|
10273
|
-
R =
|
|
10289
|
+
R = C;
|
|
10274
10290
|
var W = n.get($);
|
|
10275
|
-
_ = R + (W === void 0 ? r : W),
|
|
10291
|
+
_ = R + (W === void 0 ? r : W), C = _;
|
|
10276
10292
|
}
|
|
10277
|
-
for (var T = x === "top" ?
|
|
10293
|
+
for (var T = x === "top" ? E : w - E, k = O; k >= 0; k -= 1) {
|
|
10278
10294
|
var z = o(t[k]), B = n.get(z);
|
|
10279
10295
|
if (B === void 0) {
|
|
10280
10296
|
g = !0;
|
|
@@ -10285,10 +10301,10 @@ function Gb(e, t, n, r, o, a, i, l) {
|
|
|
10285
10301
|
}
|
|
10286
10302
|
switch (x) {
|
|
10287
10303
|
case "top":
|
|
10288
|
-
p = R -
|
|
10304
|
+
p = R - E;
|
|
10289
10305
|
break;
|
|
10290
10306
|
case "bottom":
|
|
10291
|
-
p = _ - w +
|
|
10307
|
+
p = _ - w + E;
|
|
10292
10308
|
break;
|
|
10293
10309
|
default: {
|
|
10294
10310
|
var A = e.current.scrollTop, D = A + w;
|
|
@@ -10315,7 +10331,7 @@ function Gb(e, t, n, r, o, a, i, l) {
|
|
|
10315
10331
|
"index" in v ? h = v.index : h = t.findIndex(function(g) {
|
|
10316
10332
|
return o(g) === v.key;
|
|
10317
10333
|
});
|
|
10318
|
-
var
|
|
10334
|
+
var E = v.offset, w = E === void 0 ? 0 : E;
|
|
10319
10335
|
m({
|
|
10320
10336
|
times: 0,
|
|
10321
10337
|
index: h,
|
|
@@ -10378,29 +10394,29 @@ const Uu = function(e, t) {
|
|
|
10378
10394
|
};
|
|
10379
10395
|
function Yb(e, t, n, r, o) {
|
|
10380
10396
|
var a = ce(0), i = ce(null), l = ce(null), u = ce(!1), c = Uu(t, n);
|
|
10381
|
-
function d(
|
|
10382
|
-
at.cancel(i.current), a.current += w, l.current = w, !c(w) && (Il ||
|
|
10397
|
+
function d(E, w) {
|
|
10398
|
+
at.cancel(i.current), a.current += w, l.current = w, !c(w) && (Il || E.preventDefault(), i.current = at(function() {
|
|
10383
10399
|
var g = u.current ? 10 : 1;
|
|
10384
10400
|
o(a.current * g), a.current = 0;
|
|
10385
10401
|
}));
|
|
10386
10402
|
}
|
|
10387
|
-
function f(
|
|
10388
|
-
o(w, !0), Il ||
|
|
10403
|
+
function f(E, w) {
|
|
10404
|
+
o(w, !0), Il || E.preventDefault();
|
|
10389
10405
|
}
|
|
10390
10406
|
var m = ce(null), v = ce(null);
|
|
10391
|
-
function h(
|
|
10407
|
+
function h(E) {
|
|
10392
10408
|
if (e) {
|
|
10393
10409
|
at.cancel(v.current), v.current = at(function() {
|
|
10394
10410
|
m.current = null;
|
|
10395
10411
|
}, 2);
|
|
10396
|
-
var w =
|
|
10412
|
+
var w = E.deltaX, g = E.deltaY, b = E.shiftKey, p = w, x = g;
|
|
10397
10413
|
(m.current === "sx" || !m.current && b && g && !w) && (p = g, x = 0, m.current = "sx");
|
|
10398
|
-
var
|
|
10399
|
-
m.current === null && (m.current = r &&
|
|
10414
|
+
var C = Math.abs(p), R = Math.abs(x);
|
|
10415
|
+
m.current === null && (m.current = r && C > R ? "x" : "y"), m.current === "y" ? d(E, x) : f(E, p);
|
|
10400
10416
|
}
|
|
10401
10417
|
}
|
|
10402
|
-
function y(
|
|
10403
|
-
e && (u.current =
|
|
10418
|
+
function y(E) {
|
|
10419
|
+
e && (u.current = E.detail === l.current);
|
|
10404
10420
|
}
|
|
10405
10421
|
return [h, y];
|
|
10406
10422
|
}
|
|
@@ -10420,7 +10436,7 @@ function Qb(e, t, n) {
|
|
|
10420
10436
|
};
|
|
10421
10437
|
l = function() {
|
|
10422
10438
|
a.current && (a.current.removeEventListener("touchmove", u), a.current.removeEventListener("touchend", c));
|
|
10423
|
-
},
|
|
10439
|
+
}, yt(function() {
|
|
10424
10440
|
return e && t.current.addEventListener("touchstart", d), function() {
|
|
10425
10441
|
var f;
|
|
10426
10442
|
(f = t.current) === null || f === void 0 || f.removeEventListener("touchstart", d), l(), clearInterval(i.current);
|
|
@@ -10439,9 +10455,9 @@ function ey(e, t, n, r) {
|
|
|
10439
10455
|
var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : d, m = i.get(d), v = i.get(f);
|
|
10440
10456
|
if (m === void 0 || v === void 0)
|
|
10441
10457
|
for (var h = e.length, y = l.length; y < h; y += 1) {
|
|
10442
|
-
var
|
|
10458
|
+
var E, w = e[y], g = t(w);
|
|
10443
10459
|
i.set(g, y);
|
|
10444
|
-
var b = (
|
|
10460
|
+
var b = (E = n.get(g)) !== null && E !== void 0 ? E : r;
|
|
10445
10461
|
if (l[y] = (l[y - 1] || 0) + b, g === d && (m = y), g === f && (v = y), m !== void 0 && v !== void 0)
|
|
10446
10462
|
break;
|
|
10447
10463
|
}
|
|
@@ -10457,7 +10473,7 @@ var ty = ["prefixCls", "className", "height", "itemHeight", "fullHeight", "style
|
|
|
10457
10473
|
overflowAnchor: "none"
|
|
10458
10474
|
};
|
|
10459
10475
|
function oy(e, t) {
|
|
10460
|
-
var n = e.prefixCls, r = n === void 0 ? "rc-virtual-list" : n, o = e.className, a = e.height, i = e.itemHeight, l = e.fullHeight, u = l === void 0 ? !0 : l, c = e.style, d = e.data, f = e.children, m = e.itemKey, v = e.virtual, h = e.direction, y = e.scrollWidth,
|
|
10476
|
+
var n = e.prefixCls, r = n === void 0 ? "rc-virtual-list" : n, o = e.className, a = e.height, i = e.itemHeight, l = e.fullHeight, u = l === void 0 ? !0 : l, c = e.style, d = e.data, f = e.children, m = e.itemKey, v = e.virtual, h = e.direction, y = e.scrollWidth, E = e.component, w = E === void 0 ? "div" : E, g = e.onScroll, b = e.onVirtualScroll, p = e.onVisibleChange, x = e.innerProps, C = e.extraRender, R = e.styles, _ = Ge(e, ty), O = !!(v !== !1 && a && i), L = O && d && (i * d.length > a || !!y), $ = h === "rtl", W = Se(r, q({}, "".concat(r, "-rtl"), $), o), T = d || ny, k = ce(), z = ce(), B = ht(0), A = V(B, 2), D = A[0], M = A[1], N = ht(0), I = V(N, 2), F = I[0], K = I[1], H = ht(!1), Y = V(H, 2), ee = Y[0], se = Y[1], J = function() {
|
|
10461
10477
|
se(!0);
|
|
10462
10478
|
}, Z = function() {
|
|
10463
10479
|
se(!1);
|
|
@@ -10526,7 +10542,7 @@ function oy(e, t) {
|
|
|
10526
10542
|
var Ne = Re;
|
|
10527
10543
|
return Number.isNaN(Ye.current) || (Ne = Math.min(Ne, Ye.current)), Ne = Math.max(Ne, 0), Ne;
|
|
10528
10544
|
}
|
|
10529
|
-
var ct = D <= 0,
|
|
10545
|
+
var ct = D <= 0, pt = D >= ft, he = Uu(ct, pt), re = function() {
|
|
10530
10546
|
return {
|
|
10531
10547
|
x: $ ? -F : F,
|
|
10532
10548
|
y: D
|
|
@@ -10560,14 +10576,14 @@ function oy(e, t) {
|
|
|
10560
10576
|
var Be = Le + Re;
|
|
10561
10577
|
return Be;
|
|
10562
10578
|
});
|
|
10563
|
-
}), pe = Yb(O, ct,
|
|
10579
|
+
}), pe = Yb(O, ct, pt, !!y, ve), le = V(pe, 2), Oe = le[0], Fe = le[1];
|
|
10564
10580
|
Qb(O, k, function(Re, Ne) {
|
|
10565
10581
|
return he(Re, Ne) ? !1 : (Oe({
|
|
10566
10582
|
preventDefault: function() {
|
|
10567
10583
|
},
|
|
10568
10584
|
deltaY: Re
|
|
10569
10585
|
}), !0);
|
|
10570
|
-
}),
|
|
10586
|
+
}), yt(function() {
|
|
10571
10587
|
function Re(Le) {
|
|
10572
10588
|
O && Le.preventDefault();
|
|
10573
10589
|
}
|
|
@@ -10575,7 +10591,7 @@ function oy(e, t) {
|
|
|
10575
10591
|
return Ne.addEventListener("wheel", Oe), Ne.addEventListener("DOMMouseScroll", Fe), Ne.addEventListener("MozMousePixelScroll", Re), function() {
|
|
10576
10592
|
Ne.removeEventListener("wheel", Oe), Ne.removeEventListener("DOMMouseScroll", Fe), Ne.removeEventListener("MozMousePixelScroll", Re);
|
|
10577
10593
|
};
|
|
10578
|
-
}, [O]),
|
|
10594
|
+
}, [O]), yt(function() {
|
|
10579
10595
|
y && K(function(Re) {
|
|
10580
10596
|
return Me(Re);
|
|
10581
10597
|
});
|
|
@@ -10596,13 +10612,13 @@ function oy(e, t) {
|
|
|
10596
10612
|
Le(Ne) ? (Ne.left !== void 0 && K(Me(Ne.left)), ut(Ne.top)) : ut(Ne);
|
|
10597
10613
|
}
|
|
10598
10614
|
};
|
|
10599
|
-
}),
|
|
10615
|
+
}), yt(function() {
|
|
10600
10616
|
if (p) {
|
|
10601
10617
|
var Re = T.slice(Pe, He + 1);
|
|
10602
10618
|
p(Re, T);
|
|
10603
10619
|
}
|
|
10604
10620
|
}, [Pe, He, T]);
|
|
10605
|
-
var rt = ey(T, j, _e, i), Ct =
|
|
10621
|
+
var rt = ey(T, j, _e, i), Ct = C == null ? void 0 : C({
|
|
10606
10622
|
start: Pe,
|
|
10607
10623
|
end: He,
|
|
10608
10624
|
virtual: L,
|
|
@@ -10676,7 +10692,7 @@ function _l(e) {
|
|
|
10676
10692
|
return typeof e == "string" || typeof e == "number";
|
|
10677
10693
|
}
|
|
10678
10694
|
var ly = function(t, n) {
|
|
10679
|
-
var r = gb(), o = r.prefixCls, a = r.id, i = r.open, l = r.multiple, u = r.mode, c = r.searchValue, d = r.toggleOpen, f = r.notFoundContent, m = r.onPopupScroll, v = s.useContext(Ei), h = v.maxCount, y = v.flattenOptions,
|
|
10695
|
+
var r = gb(), o = r.prefixCls, a = r.id, i = r.open, l = r.multiple, u = r.mode, c = r.searchValue, d = r.toggleOpen, f = r.notFoundContent, m = r.onPopupScroll, v = s.useContext(Ei), h = v.maxCount, y = v.flattenOptions, E = v.onActiveValue, w = v.defaultActiveFirstOption, g = v.onSelect, b = v.menuItemSelectedIcon, p = v.rawValues, x = v.fieldNames, C = v.virtual, R = v.direction, _ = v.listHeight, O = v.listItemHeight, L = v.optionRender, $ = "".concat(o, "-item"), W = ei(function() {
|
|
10680
10696
|
return y;
|
|
10681
10697
|
}, [i, y], function(j, U) {
|
|
10682
10698
|
return U[0] && j[1] !== U[1];
|
|
@@ -10705,10 +10721,10 @@ var ly = function(t, n) {
|
|
|
10705
10721
|
source: te ? "keyboard" : "mouse"
|
|
10706
10722
|
}, ne = W[U];
|
|
10707
10723
|
if (!ne) {
|
|
10708
|
-
|
|
10724
|
+
E(null, -1, oe);
|
|
10709
10725
|
return;
|
|
10710
10726
|
}
|
|
10711
|
-
|
|
10727
|
+
E(ne.value, U, oe);
|
|
10712
10728
|
};
|
|
10713
10729
|
wt(function() {
|
|
10714
10730
|
F(w !== !1 ? A(0) : -1);
|
|
@@ -10805,7 +10821,7 @@ var ly = function(t, n) {
|
|
|
10805
10821
|
role: "listbox",
|
|
10806
10822
|
id: "".concat(a, "_list")
|
|
10807
10823
|
};
|
|
10808
|
-
return /* @__PURE__ */ s.createElement(s.Fragment, null,
|
|
10824
|
+
return /* @__PURE__ */ s.createElement(s.Fragment, null, C && /* @__PURE__ */ s.createElement("div", Ee({}, Z, {
|
|
10809
10825
|
style: {
|
|
10810
10826
|
height: 0,
|
|
10811
10827
|
width: 0,
|
|
@@ -10820,9 +10836,9 @@ var ly = function(t, n) {
|
|
|
10820
10836
|
fullHeight: !1,
|
|
10821
10837
|
onMouseDown: z,
|
|
10822
10838
|
onScroll: m,
|
|
10823
|
-
virtual:
|
|
10839
|
+
virtual: C,
|
|
10824
10840
|
direction: R,
|
|
10825
|
-
innerProps:
|
|
10841
|
+
innerProps: C ? null : Z
|
|
10826
10842
|
}, function(j, U) {
|
|
10827
10843
|
var te, oe = j.group, ne = j.groupOption, ie = j.data, we = j.label, ge = j.value, xe = ie.key;
|
|
10828
10844
|
if (oe) {
|
|
@@ -10835,7 +10851,7 @@ var ly = function(t, n) {
|
|
|
10835
10851
|
var ae = ie.disabled, _e = ie.title;
|
|
10836
10852
|
ie.children;
|
|
10837
10853
|
var be = ie.style, Ae = ie.className, Ze = Ge(ie, iy), Pe = Yo(Ze, Y), He = K(ge), Je = ae || !He && k, ke = "".concat($, "-option"), $e = Se($, ke, Ae, (te = {}, q(te, "".concat(ke, "-grouped"), ne), q(te, "".concat(ke, "-active"), N === U && !Je), q(te, "".concat(ke, "-disabled"), Je), q(te, "".concat(ke, "-selected"), He), te)), Ie = ee(j), lt = !b || typeof b == "function" || He, We = typeof Ie == "number" ? Ie : Ie || ge, st = _l(We) ? We.toString() : void 0;
|
|
10838
|
-
return _e !== void 0 && (st = _e), /* @__PURE__ */ s.createElement("div", Ee({}, Vr(Pe),
|
|
10854
|
+
return _e !== void 0 && (st = _e), /* @__PURE__ */ s.createElement("div", Ee({}, Vr(Pe), C ? {} : se(j, U), {
|
|
10839
10855
|
"aria-selected": He,
|
|
10840
10856
|
className: $e,
|
|
10841
10857
|
title: st,
|
|
@@ -10903,8 +10919,8 @@ const cy = function(e, t, n, r, o) {
|
|
|
10903
10919
|
if (h)
|
|
10904
10920
|
u.push(v);
|
|
10905
10921
|
else {
|
|
10906
|
-
var y = v[a].filter(function(
|
|
10907
|
-
return f(n, m(
|
|
10922
|
+
var y = v[a].filter(function(E) {
|
|
10923
|
+
return f(n, m(E));
|
|
10908
10924
|
});
|
|
10909
10925
|
y.length && u.push(P(P({}, v), {}, q({}, a, y)));
|
|
10910
10926
|
}
|
|
@@ -10958,8 +10974,8 @@ var gy = function(t, n, r, o, a) {
|
|
|
10958
10974
|
y && typeof y == "string" && v.set(h[y], h);
|
|
10959
10975
|
}, f = function m(v) {
|
|
10960
10976
|
for (var h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, y = 0; y < v.length; y += 1) {
|
|
10961
|
-
var
|
|
10962
|
-
!
|
|
10977
|
+
var E = v[y];
|
|
10978
|
+
!E[r.options] || h ? (u.set(E[r.value], E), d(c, E, r.label), d(c, E, o), d(c, E, a)) : m(E[r.options], !0);
|
|
10963
10979
|
}
|
|
10964
10980
|
};
|
|
10965
10981
|
return f(i), {
|
|
@@ -10982,7 +10998,7 @@ function Sy(e) {
|
|
|
10982
10998
|
return !e || it(e) !== "object";
|
|
10983
10999
|
}
|
|
10984
11000
|
var Cy = /* @__PURE__ */ s.forwardRef(function(e, t) {
|
|
10985
|
-
var n = e.id, r = e.mode, o = e.prefixCls, a = o === void 0 ? "rc-select" : o, i = e.backfill, l = e.fieldNames, u = e.inputValue, c = e.searchValue, d = e.onSearch, f = e.autoClearSearchValue, m = f === void 0 ? !0 : f, v = e.onSelect, h = e.onDeselect, y = e.dropdownMatchSelectWidth,
|
|
11001
|
+
var n = e.id, r = e.mode, o = e.prefixCls, a = o === void 0 ? "rc-select" : o, i = e.backfill, l = e.fieldNames, u = e.inputValue, c = e.searchValue, d = e.onSearch, f = e.autoClearSearchValue, m = f === void 0 ? !0 : f, v = e.onSelect, h = e.onDeselect, y = e.dropdownMatchSelectWidth, E = y === void 0 ? !0 : y, w = e.filterOption, g = e.filterSort, b = e.optionFilterProp, p = e.optionLabelProp, x = e.options, C = e.optionRender, R = e.children, _ = e.defaultActiveFirstOption, O = e.menuItemSelectedIcon, L = e.virtual, $ = e.direction, W = e.listHeight, T = W === void 0 ? 200 : W, k = e.listItemHeight, z = k === void 0 ? 20 : k, B = e.value, A = e.defaultValue, D = e.labelInValue, M = e.onChange, N = e.maxCount, I = Ge(e, by), F = vy(n), K = qa(r), H = !!(!x && R), Y = s.useMemo(function() {
|
|
10986
11002
|
return w === void 0 && r === "combobox" ? !1 : w;
|
|
10987
11003
|
}, [w, r]), ee = s.useMemo(
|
|
10988
11004
|
function() {
|
|
@@ -11100,7 +11116,7 @@ var Cy = /* @__PURE__ */ s.forwardRef(function(e, t) {
|
|
|
11100
11116
|
K ? Fe : Fe[0]
|
|
11101
11117
|
);
|
|
11102
11118
|
}
|
|
11103
|
-
}, st = s.useState(null), ze = V(st, 2), je = ze[0], Xe = ze[1], ft = s.useState(0), Ye = V(ft, 2), nt = Ye[0], ct = Ye[1],
|
|
11119
|
+
}, st = s.useState(null), ze = V(st, 2), je = ze[0], Xe = ze[1], ft = s.useState(0), Ye = V(ft, 2), nt = Ye[0], ct = Ye[1], pt = _ !== void 0 ? _ : r !== "combobox", he = s.useCallback(function(ve, pe) {
|
|
11104
11120
|
var le = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, Oe = le.source, Fe = Oe === void 0 ? "keyboard" : Oe;
|
|
11105
11121
|
ct(pe), i && r === "combobox" && ve !== null && Fe === "keyboard" && Xe(String(ve));
|
|
11106
11122
|
}, [i, r]), re = function(pe, le, Oe) {
|
|
@@ -11153,11 +11169,11 @@ var Cy = /* @__PURE__ */ s.forwardRef(function(e, t) {
|
|
|
11153
11169
|
re(Fe, !0);
|
|
11154
11170
|
});
|
|
11155
11171
|
}, Me = s.useMemo(function() {
|
|
11156
|
-
var ve = L !== !1 &&
|
|
11172
|
+
var ve = L !== !1 && E !== !1;
|
|
11157
11173
|
return P(P({}, U), {}, {
|
|
11158
11174
|
flattenOptions: lt,
|
|
11159
11175
|
onActiveValue: he,
|
|
11160
|
-
defaultActiveFirstOption:
|
|
11176
|
+
defaultActiveFirstOption: pt,
|
|
11161
11177
|
onSelect: ue,
|
|
11162
11178
|
menuItemSelectedIcon: O,
|
|
11163
11179
|
rawValues: Pe,
|
|
@@ -11168,9 +11184,9 @@ var Cy = /* @__PURE__ */ s.forwardRef(function(e, t) {
|
|
|
11168
11184
|
listItemHeight: z,
|
|
11169
11185
|
childrenAsData: H,
|
|
11170
11186
|
maxCount: N,
|
|
11171
|
-
optionRender:
|
|
11187
|
+
optionRender: C
|
|
11172
11188
|
});
|
|
11173
|
-
}, [N, U, lt, he,
|
|
11189
|
+
}, [N, U, lt, he, pt, ue, O, Pe, ee, L, E, $, T, z, H, C]);
|
|
11174
11190
|
return /* @__PURE__ */ s.createElement(Ei.Provider, {
|
|
11175
11191
|
value: Me
|
|
11176
11192
|
}, /* @__PURE__ */ s.createElement(Bb, Ee({}, I, {
|
|
@@ -11187,7 +11203,7 @@ var Cy = /* @__PURE__ */ s.forwardRef(function(e, t) {
|
|
|
11187
11203
|
onSearch: fe,
|
|
11188
11204
|
autoClearSearchValue: m,
|
|
11189
11205
|
onSearchSplit: De,
|
|
11190
|
-
dropdownMatchSelectWidth:
|
|
11206
|
+
dropdownMatchSelectWidth: E,
|
|
11191
11207
|
OptionList: sy,
|
|
11192
11208
|
emptyOptions: !lt.length,
|
|
11193
11209
|
activeValue: je,
|
|
@@ -11379,7 +11395,7 @@ var vr = {
|
|
|
11379
11395
|
targetOffset: Qt
|
|
11380
11396
|
}
|
|
11381
11397
|
}, R1 = ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "motion", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle", "arrowContent", "overlay", "id", "showArrow"], N1 = function(t, n) {
|
|
11382
|
-
var r = t.overlayClassName, o = t.trigger, a = o === void 0 ? ["hover"] : o, i = t.mouseEnterDelay, l = i === void 0 ? 0 : i, u = t.mouseLeaveDelay, c = u === void 0 ? 0.1 : u, d = t.overlayStyle, f = t.prefixCls, m = f === void 0 ? "rc-tooltip" : f, v = t.children, h = t.onVisibleChange, y = t.afterVisibleChange,
|
|
11398
|
+
var r = t.overlayClassName, o = t.trigger, a = o === void 0 ? ["hover"] : o, i = t.mouseEnterDelay, l = i === void 0 ? 0 : i, u = t.mouseLeaveDelay, c = u === void 0 ? 0.1 : u, d = t.overlayStyle, f = t.prefixCls, m = f === void 0 ? "rc-tooltip" : f, v = t.children, h = t.onVisibleChange, y = t.afterVisibleChange, E = t.transitionName, w = t.animation, g = t.motion, b = t.placement, p = b === void 0 ? "right" : b, x = t.align, C = x === void 0 ? {} : x, R = t.destroyTooltipOnHide, _ = R === void 0 ? !1 : R, O = t.defaultVisible, L = t.getTooltipContainer, $ = t.overlayInnerStyle;
|
|
11383
11399
|
t.arrowContent;
|
|
11384
11400
|
var W = t.overlay, T = t.id, k = t.showArrow, z = k === void 0 ? !0 : k, B = Ge(t, R1), A = ce(null);
|
|
11385
11401
|
Xa(n, function() {
|
|
@@ -11403,11 +11419,11 @@ var vr = {
|
|
|
11403
11419
|
builtinPlacements: x1,
|
|
11404
11420
|
popupPlacement: p,
|
|
11405
11421
|
ref: A,
|
|
11406
|
-
popupAlign:
|
|
11422
|
+
popupAlign: C,
|
|
11407
11423
|
getPopupContainer: L,
|
|
11408
11424
|
onPopupVisibleChange: h,
|
|
11409
11425
|
afterPopupVisibleChange: y,
|
|
11410
|
-
popupTransitionName:
|
|
11426
|
+
popupTransitionName: E,
|
|
11411
11427
|
popupAnimation: w,
|
|
11412
11428
|
popupMotion: g,
|
|
11413
11429
|
defaultPopupVisible: O,
|
|
@@ -11516,18 +11532,18 @@ function NN(e) {
|
|
|
11516
11532
|
return;
|
|
11517
11533
|
h.preventDefault();
|
|
11518
11534
|
const y = u.current;
|
|
11519
|
-
let
|
|
11535
|
+
let E = !0;
|
|
11520
11536
|
function w(p) {
|
|
11521
|
-
if (
|
|
11522
|
-
let
|
|
11523
|
-
|
|
11524
|
-
const R =
|
|
11537
|
+
if (E) {
|
|
11538
|
+
let C = p.clientX - y.getBoundingClientRect().x;
|
|
11539
|
+
C <= 0 ? C = 0 : C >= +zt.sliderWidth && (C = +zt.sliderWidth);
|
|
11540
|
+
const R = C / +zt.sliderWidth;
|
|
11525
11541
|
let _ = 0;
|
|
11526
11542
|
R <= 0.5 ? _ = n + R * (a - n) * 2 : _ = a + (R - 0.5) * (r - a) * 2, l && l(Math.ceil(_));
|
|
11527
11543
|
}
|
|
11528
11544
|
}
|
|
11529
11545
|
function g() {
|
|
11530
|
-
|
|
11546
|
+
E = !1, document.removeEventListener("mousemove", w), window.removeEventListener("mouseup", g);
|
|
11531
11547
|
}
|
|
11532
11548
|
function b(p) {
|
|
11533
11549
|
p.relatedTarget === null && g();
|
|
@@ -11589,7 +11605,7 @@ const eS = "univer-tree", tS = "univer-tree-icon", nS = "univer-tree-icon-expand
|
|
|
11589
11605
|
};
|
|
11590
11606
|
var uS = /* @__PURE__ */ ((e) => (e[e.ONLY_LEAF_NODE = 0] = "ONLY_LEAF_NODE", e[e.ALL = 1] = "ALL", e))(uS || {});
|
|
11591
11607
|
function MN(e) {
|
|
11592
|
-
const { data: t = [], defaultExpandAll: n = !1, selectionMode: r = 1, value: o, onChange: a } = e, [i, l] =
|
|
11608
|
+
const { data: t = [], defaultExpandAll: n = !1, selectionMode: r = 1, value: o, onChange: a } = e, [i, l] = ht([]);
|
|
11593
11609
|
wt(() => {
|
|
11594
11610
|
function f(m) {
|
|
11595
11611
|
var v;
|
|
@@ -11614,7 +11630,7 @@ function MN(e) {
|
|
|
11614
11630
|
}), !(r === 0 && f.children) && (a == null || a(f.key));
|
|
11615
11631
|
}
|
|
11616
11632
|
function d(f) {
|
|
11617
|
-
const { title: m, key: v, children: h, _selected: y, _expand:
|
|
11633
|
+
const { title: m, key: v, children: h, _selected: y, _expand: E } = f;
|
|
11618
11634
|
return /* @__PURE__ */ S.createElement(
|
|
11619
11635
|
"li",
|
|
11620
11636
|
{
|
|
@@ -11635,7 +11651,7 @@ function MN(e) {
|
|
|
11635
11651
|
"span",
|
|
11636
11652
|
{
|
|
11637
11653
|
className: jt(gn.treeIcon, {
|
|
11638
|
-
[gn.treeIconExpand]:
|
|
11654
|
+
[gn.treeIconExpand]: E
|
|
11639
11655
|
})
|
|
11640
11656
|
},
|
|
11641
11657
|
/* @__PURE__ */ S.createElement(Sc, null)
|
|
@@ -11647,7 +11663,7 @@ function MN(e) {
|
|
|
11647
11663
|
"ul",
|
|
11648
11664
|
{
|
|
11649
11665
|
className: jt(gn.treeList, {
|
|
11650
|
-
[gn.treeListExpand]:
|
|
11666
|
+
[gn.treeListExpand]: E
|
|
11651
11667
|
})
|
|
11652
11668
|
},
|
|
11653
11669
|
h.map((w) => d(w))
|
|
@@ -11677,7 +11693,7 @@ function IN(e, t, n, r) {
|
|
|
11677
11693
|
u ? u(h) : (c = h, l.current = !0);
|
|
11678
11694
|
})), t && !l.current)
|
|
11679
11695
|
throw new Error("[useObservable]: expect shouldHaveSyncValue but not getting a sync value!");
|
|
11680
|
-
const f =
|
|
11696
|
+
const f = ht(c || n), m = f[0];
|
|
11681
11697
|
return u = f[1], wt(() => () => {
|
|
11682
11698
|
var h;
|
|
11683
11699
|
return (h = a.current) == null ? void 0 : h.unsubscribe();
|