loon-bulma-react 2026.0.20 → 2026.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/index.js +205 -224
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ type DropDownProps = {
|
|
|
13
13
|
usePortal?: boolean | undefined;
|
|
14
14
|
};
|
|
15
15
|
declare const Dropdown: {
|
|
16
|
-
({ onHover, id, children: childrenProp, trigger: triggerProp, disabled, alignment, dropUp, startOpen, className: classNameProp, keepOpenAfterClick, usePortal
|
|
16
|
+
({ onHover, id, children: childrenProp, trigger: triggerProp, disabled, alignment, dropUp, startOpen, className: classNameProp, keepOpenAfterClick, usePortal, }: DropDownProps): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
Trigger({ children }: {
|
|
18
18
|
children: React.ReactNode;
|
|
19
19
|
}): import("react/jsx-runtime").JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -4530,7 +4530,7 @@ function yx() {
|
|
|
4530
4530
|
}
|
|
4531
4531
|
}
|
|
4532
4532
|
}
|
|
4533
|
-
var C = s, N = o, x = t, A = l, T = n, M = d,
|
|
4533
|
+
var C = s, N = o, x = t, A = l, T = n, M = d, D = f, O = e, L = i, H = r, P = c, j = u, _ = !1, W = !1;
|
|
4534
4534
|
function B(F) {
|
|
4535
4535
|
return _ || (_ = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
4536
4536
|
}
|
|
@@ -4573,7 +4573,7 @@ function yx() {
|
|
|
4573
4573
|
function De(F) {
|
|
4574
4574
|
return w(F) === u;
|
|
4575
4575
|
}
|
|
4576
|
-
ze.ContextConsumer = C, ze.ContextProvider = N, ze.Element = x, ze.ForwardRef = A, ze.Fragment = T, ze.Lazy = M, ze.Memo =
|
|
4576
|
+
ze.ContextConsumer = C, ze.ContextProvider = N, ze.Element = x, ze.ForwardRef = A, ze.Fragment = T, ze.Lazy = M, ze.Memo = D, ze.Portal = O, ze.Profiler = L, ze.StrictMode = H, ze.Suspense = P, ze.SuspenseList = j, ze.isAsyncMode = B, ze.isConcurrentMode = $, ze.isContextConsumer = U, ze.isContextProvider = Y, ze.isElement = Z, ze.isForwardRef = X, ze.isFragment = q, ze.isLazy = ee, ze.isMemo = ne, ze.isPortal = te, ze.isProfiler = se, ze.isStrictMode = Ae, ze.isSuspense = ye, ze.isSuspenseList = De, ze.isValidElementType = S, ze.typeOf = w;
|
|
4577
4577
|
})()), ze;
|
|
4578
4578
|
}
|
|
4579
4579
|
var zm;
|
|
@@ -4847,8 +4847,8 @@ var Km = function(e) {
|
|
|
4847
4847
|
return Km(i);
|
|
4848
4848
|
}), m = $e(p, 2), y = m[0], v = m[1];
|
|
4849
4849
|
R.useEffect(function() {
|
|
4850
|
-
var
|
|
4851
|
-
v(
|
|
4850
|
+
var D = Km(i);
|
|
4851
|
+
v(D ?? null);
|
|
4852
4852
|
});
|
|
4853
4853
|
var k = Ax(h && !y, o), E = $e(k, 2), S = E[0], w = E[1], C = y ?? S;
|
|
4854
4854
|
Bx(r && n && tr() && (C === S || C === document.body));
|
|
@@ -5316,12 +5316,12 @@ function cA(t, e) {
|
|
|
5316
5316
|
offsetHeight: x
|
|
5317
5317
|
};
|
|
5318
5318
|
c.current = M;
|
|
5319
|
-
var
|
|
5320
|
-
offsetWidth:
|
|
5319
|
+
var D = N === Math.round(w) ? w : N, O = x === Math.round(C) ? C : x, L = ge(ge({}, M), {}, {
|
|
5320
|
+
offsetWidth: D,
|
|
5321
5321
|
offsetHeight: O
|
|
5322
5322
|
});
|
|
5323
|
-
s?.(
|
|
5324
|
-
k(
|
|
5323
|
+
s?.(L, y, E), k && Promise.resolve().then(function() {
|
|
5324
|
+
k(L, y);
|
|
5325
5325
|
});
|
|
5326
5326
|
}
|
|
5327
5327
|
}, []);
|
|
@@ -5575,7 +5575,7 @@ const xA = (function(t, e, n) {
|
|
|
5575
5575
|
}, []), [f, o];
|
|
5576
5576
|
});
|
|
5577
5577
|
function AA(t, e, n, r) {
|
|
5578
|
-
var i = r.motionEnter, o = i === void 0 ? !0 : i, s = r.motionAppear, a = s === void 0 ? !0 : s, l = r.motionLeave, c = l === void 0 ? !0 : l, u = r.motionDeadline, f = r.motionLeaveImmediately, d = r.onAppearPrepare, h = r.onEnterPrepare, p = r.onLeavePrepare, m = r.onAppearStart, y = r.onEnterStart, v = r.onLeaveStart, k = r.onAppearActive, E = r.onEnterActive, S = r.onLeaveActive, w = r.onAppearEnd, C = r.onEnterEnd, N = r.onLeaveEnd, x = r.onVisibleChanged, A = ed(), T = $e(A, 2), M = T[0],
|
|
5578
|
+
var i = r.motionEnter, o = i === void 0 ? !0 : i, s = r.motionAppear, a = s === void 0 ? !0 : s, l = r.motionLeave, c = l === void 0 ? !0 : l, u = r.motionDeadline, f = r.motionLeaveImmediately, d = r.onAppearPrepare, h = r.onEnterPrepare, p = r.onLeavePrepare, m = r.onAppearStart, y = r.onEnterStart, v = r.onLeaveStart, k = r.onAppearActive, E = r.onEnterActive, S = r.onLeaveActive, w = r.onAppearEnd, C = r.onEnterEnd, N = r.onLeaveEnd, x = r.onVisibleChanged, A = ed(), T = $e(A, 2), M = T[0], D = T[1], O = yA(Wr), L = $e(O, 2), H = L[0], P = L[1], j = ed(null), _ = $e(j, 2), W = _[0], B = _[1], $ = H(), U = Sr(!1), Y = Sr(null);
|
|
5579
5579
|
function Z() {
|
|
5580
5580
|
return n();
|
|
5581
5581
|
}
|
|
@@ -5624,7 +5624,7 @@ function AA(t, e, n, r) {
|
|
|
5624
5624
|
var Le = Sr(null);
|
|
5625
5625
|
Yv(function() {
|
|
5626
5626
|
if (!(U.current && Le.current === e)) {
|
|
5627
|
-
|
|
5627
|
+
D(e);
|
|
5628
5628
|
var oe = U.current;
|
|
5629
5629
|
U.current = !0;
|
|
5630
5630
|
var be;
|
|
@@ -5668,34 +5668,34 @@ function TA(t) {
|
|
|
5668
5668
|
}
|
|
5669
5669
|
var w = AA(v, a, S, i), C = $e(w, 4), N = C[0], x = C[1], A = C[2], T = C[3], M = R.useRef(T);
|
|
5670
5670
|
T && (M.current = !0);
|
|
5671
|
-
var
|
|
5671
|
+
var D = R.useCallback(function(_) {
|
|
5672
5672
|
k.current = _, bh(o, _);
|
|
5673
|
-
}, [o]), O,
|
|
5673
|
+
}, [o]), O, L = ge(ge({}, p), {}, {
|
|
5674
5674
|
visible: a
|
|
5675
5675
|
});
|
|
5676
5676
|
if (!f)
|
|
5677
5677
|
O = null;
|
|
5678
5678
|
else if (N === Wr)
|
|
5679
|
-
T ? O = f(ge({},
|
|
5679
|
+
T ? O = f(ge({}, L), D) : !c && M.current && h ? O = f(ge(ge({}, L), {}, {
|
|
5680
5680
|
className: h
|
|
5681
|
-
}),
|
|
5681
|
+
}), D) : u || !c && !h ? O = f(ge(ge({}, L), {}, {
|
|
5682
5682
|
style: {
|
|
5683
5683
|
display: "none"
|
|
5684
5684
|
}
|
|
5685
|
-
}),
|
|
5685
|
+
}), D) : O = null;
|
|
5686
5686
|
else {
|
|
5687
5687
|
var H;
|
|
5688
5688
|
x === $n ? H = "prepare" : eb(x) ? H = "active" : x === So && (H = "start");
|
|
5689
5689
|
var P = tg(d, "".concat(N, "-").concat(H));
|
|
5690
|
-
O = f(ge(ge({},
|
|
5690
|
+
O = f(ge(ge({}, L), {}, {
|
|
5691
5691
|
className: er(tg(d, N), Lt(Lt({}, P, P && H), d, typeof d == "string")),
|
|
5692
5692
|
style: A
|
|
5693
|
-
}),
|
|
5693
|
+
}), D);
|
|
5694
5694
|
}
|
|
5695
5695
|
if (/* @__PURE__ */ R.isValidElement(O) && Bc(O)) {
|
|
5696
5696
|
var j = Sh(O);
|
|
5697
5697
|
j || (O = /* @__PURE__ */ R.cloneElement(O, {
|
|
5698
|
-
ref:
|
|
5698
|
+
ref: D
|
|
5699
5699
|
}));
|
|
5700
5700
|
}
|
|
5701
5701
|
return /* @__PURE__ */ R.createElement(gA, {
|
|
@@ -5878,7 +5878,7 @@ var tb = /* @__PURE__ */ R.memo(function(t) {
|
|
|
5878
5878
|
});
|
|
5879
5879
|
process.env.NODE_ENV !== "production" && (tb.displayName = "PopupContent");
|
|
5880
5880
|
var nb = /* @__PURE__ */ R.forwardRef(function(t, e) {
|
|
5881
|
-
var n = t.popup, r = t.className, i = t.prefixCls, o = t.style, s = t.target, a = t.onVisibleChanged, l = t.open, c = t.keepDom, u = t.fresh, f = t.onClick, d = t.mask, h = t.arrow, p = t.arrowPos, m = t.align, y = t.motion, v = t.maskMotion, k = t.forceRender, E = t.getPopupContainer, S = t.autoDestroy, w = t.portal, C = t.zIndex, N = t.onMouseEnter, x = t.onMouseLeave, A = t.onPointerEnter, T = t.onPointerDownCapture, M = t.ready,
|
|
5881
|
+
var n = t.popup, r = t.className, i = t.prefixCls, o = t.style, s = t.target, a = t.onVisibleChanged, l = t.open, c = t.keepDom, u = t.fresh, f = t.onClick, d = t.mask, h = t.arrow, p = t.arrowPos, m = t.align, y = t.motion, v = t.maskMotion, k = t.forceRender, E = t.getPopupContainer, S = t.autoDestroy, w = t.portal, C = t.zIndex, N = t.onMouseEnter, x = t.onMouseLeave, A = t.onPointerEnter, T = t.onPointerDownCapture, M = t.ready, D = t.offsetX, O = t.offsetY, L = t.offsetR, H = t.offsetB, P = t.onAlign, j = t.onPrepare, _ = t.stretch, W = t.targetWidth, B = t.targetHeight, $ = typeof n == "function" ? n() : n, U = l || c, Y = E?.length > 0, Z = R.useState(!E || !Y), X = $e(Z, 2), q = X[0], ee = X[1];
|
|
5882
5882
|
if (pn(function() {
|
|
5883
5883
|
!q && Y && s && ee(!0);
|
|
5884
5884
|
}, [q, Y, s]), !q)
|
|
@@ -5891,7 +5891,7 @@ var nb = /* @__PURE__ */ R.forwardRef(function(t, e) {
|
|
|
5891
5891
|
};
|
|
5892
5892
|
if (M || !l) {
|
|
5893
5893
|
var se, Ae = m.points, ye = m.dynamicInset || ((se = m._experimental) === null || se === void 0 ? void 0 : se.dynamicInset), De = ye && Ae[0][1] === "r", F = ye && Ae[0][0] === "b";
|
|
5894
|
-
De ? (te.right =
|
|
5894
|
+
De ? (te.right = L, te.left = ne) : (te.left = D, te.right = ne), F ? (te.bottom = H, te.top = ne) : (te.top = O, te.bottom = ne);
|
|
5895
5895
|
}
|
|
5896
5896
|
var ve = {};
|
|
5897
5897
|
return _ && (_.includes("height") && B ? ve.height = B : _.includes("minHeight") && B && (ve.minHeight = B), _.includes("width") && W ? ve.width = W : _.includes("minWidth") && W && (ve.minWidth = W)), l || (ve.pointerEvents = "none"), /* @__PURE__ */ R.createElement(w, {
|
|
@@ -6034,12 +6034,12 @@ function sg(t, e) {
|
|
|
6034
6034
|
var n = ge({}, t);
|
|
6035
6035
|
return (e || []).forEach(function(r) {
|
|
6036
6036
|
if (!(r instanceof HTMLBodyElement || r instanceof HTMLHtmlElement)) {
|
|
6037
|
-
var i = ta(r).getComputedStyle(r), o = i.overflow, s = i.overflowClipMargin, a = i.borderTopWidth, l = i.borderBottomWidth, c = i.borderLeftWidth, u = i.borderRightWidth, f = r.getBoundingClientRect(), d = r.offsetHeight, h = r.clientHeight, p = r.offsetWidth, m = r.clientWidth, y = rs(a), v = rs(l), k = rs(c), E = rs(u), S = Ds(Math.round(f.width / p * 1e3) / 1e3), w = Ds(Math.round(f.height / d * 1e3) / 1e3), C = (p - m - k - E) * S, N = (d - h - y - v) * w, x = y * w, A = v * w, T = k * S, M = E * S,
|
|
6037
|
+
var i = ta(r).getComputedStyle(r), o = i.overflow, s = i.overflowClipMargin, a = i.borderTopWidth, l = i.borderBottomWidth, c = i.borderLeftWidth, u = i.borderRightWidth, f = r.getBoundingClientRect(), d = r.offsetHeight, h = r.clientHeight, p = r.offsetWidth, m = r.clientWidth, y = rs(a), v = rs(l), k = rs(c), E = rs(u), S = Ds(Math.round(f.width / p * 1e3) / 1e3), w = Ds(Math.round(f.height / d * 1e3) / 1e3), C = (p - m - k - E) * S, N = (d - h - y - v) * w, x = y * w, A = v * w, T = k * S, M = E * S, D = 0, O = 0;
|
|
6038
6038
|
if (o === "clip") {
|
|
6039
|
-
var
|
|
6040
|
-
|
|
6039
|
+
var L = rs(s);
|
|
6040
|
+
D = L * S, O = L * w;
|
|
6041
6041
|
}
|
|
6042
|
-
var H = f.x + T -
|
|
6042
|
+
var H = f.x + T - D, P = f.y + x - O, j = H + f.width + 2 * D - T - M - C, _ = P + f.height + 2 * O - x - A - N;
|
|
6043
6043
|
n.left = Math.max(n.left, H), n.top = Math.max(n.top, P), n.right = Math.min(n.right, j), n.bottom = Math.min(n.bottom, _);
|
|
6044
6044
|
}
|
|
6045
6045
|
}), n;
|
|
@@ -6100,7 +6100,7 @@ function HA(t, e, n, r, i, o, s) {
|
|
|
6100
6100
|
}, so = function() {
|
|
6101
6101
|
Lr = U.y + ct, Dr = Lr + De, Ni = U.x + rt, ur = Ni + F;
|
|
6102
6102
|
};
|
|
6103
|
-
var k, E, S, w, C = e, N = C.ownerDocument, x = ta(C), A = x.getComputedStyle(C), T = A.position, M = C.style.left,
|
|
6103
|
+
var k, E, S, w, C = e, N = C.ownerDocument, x = ta(C), A = x.getComputedStyle(C), T = A.position, M = C.style.left, D = C.style.top, O = C.style.right, L = C.style.bottom, H = C.style.overflow, P = ge(ge({}, i[r]), o), j = N.createElement("div");
|
|
6104
6104
|
(k = C.parentElement) === null || k === void 0 || k.appendChild(j), j.style.left = "".concat(C.offsetLeft, "px"), j.style.top = "".concat(C.offsetTop, "px"), j.style.position = T, j.style.height = "".concat(C.offsetHeight, "px"), j.style.width = "".concat(C.offsetWidth, "px"), C.style.left = "0", C.style.top = "0", C.style.right = "auto", C.style.bottom = "auto", C.style.overflow = "hidden";
|
|
6105
6105
|
var _;
|
|
6106
6106
|
if (Array.isArray(n))
|
|
@@ -6136,7 +6136,7 @@ function HA(t, e, n, r, i, o, s) {
|
|
|
6136
6136
|
var be = Pe === oe, Ne = sg(Le, d), Q = sg(Te, d), ue = Pe === Ce ? Q : Ne, le = be ? Q : ue;
|
|
6137
6137
|
C.style.left = "auto", C.style.top = "auto", C.style.right = "0", C.style.bottom = "0";
|
|
6138
6138
|
var Be = C.getBoundingClientRect();
|
|
6139
|
-
C.style.left = M, C.style.top =
|
|
6139
|
+
C.style.left = M, C.style.top = D, C.style.right = O, C.style.bottom = L, C.style.overflow = H, (w = C.parentElement) === null || w === void 0 || w.removeChild(j);
|
|
6140
6140
|
var Ie = Ds(Math.round(F / parseFloat(X) * 1e3) / 1e3), gt = Ds(Math.round(De / parseFloat(Z) * 1e3) / 1e3);
|
|
6141
6141
|
if (Ie === 0 || gt === 0 || Ls(n) && !_A(n))
|
|
6142
6142
|
return;
|
|
@@ -6272,7 +6272,7 @@ function WA(t, e, n, r, i, o, s, a) {
|
|
|
6272
6272
|
var UA = ["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"];
|
|
6273
6273
|
function VA() {
|
|
6274
6274
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : kh, e = /* @__PURE__ */ R.forwardRef(function(n, r) {
|
|
6275
|
-
var i = n.prefixCls, o = i === void 0 ? "rc-trigger-popup" : i, s = n.children, a = n.action, l = a === void 0 ? "hover" : a, c = n.showAction, u = n.hideAction, f = n.popupVisible, d = n.defaultPopupVisible, h = n.onPopupVisibleChange, p = n.afterPopupVisibleChange, m = n.mouseEnterDelay, y = n.mouseLeaveDelay, v = y === void 0 ? 0.1 : y, k = n.focusDelay, E = n.blurDelay, S = n.mask, w = n.maskClosable, C = w === void 0 ? !0 : w, N = n.getPopupContainer, x = n.forceRender, A = n.autoDestroy, T = n.destroyPopupOnHide, M = n.popup,
|
|
6275
|
+
var i = n.prefixCls, o = i === void 0 ? "rc-trigger-popup" : i, s = n.children, a = n.action, l = a === void 0 ? "hover" : a, c = n.showAction, u = n.hideAction, f = n.popupVisible, d = n.defaultPopupVisible, h = n.onPopupVisibleChange, p = n.afterPopupVisibleChange, m = n.mouseEnterDelay, y = n.mouseLeaveDelay, v = y === void 0 ? 0.1 : y, k = n.focusDelay, E = n.blurDelay, S = n.mask, w = n.maskClosable, C = w === void 0 ? !0 : w, N = n.getPopupContainer, x = n.forceRender, A = n.autoDestroy, T = n.destroyPopupOnHide, M = n.popup, D = n.popupClassName, O = n.popupStyle, L = n.popupPlacement, H = n.builtinPlacements, P = H === void 0 ? {} : H, j = n.popupAlign, _ = n.zIndex, W = n.stretch, B = n.getPopupClassNameFromAlign, $ = n.fresh, U = n.alignPoint, Y = n.onPopupClick, Z = n.onPopupAlign, X = n.arrow, q = n.popupMotion, ee = n.maskMotion, ne = n.popupTransitionName, te = n.popupAnimation, se = n.maskTransitionName, Ae = n.maskAnimation, ye = n.className, De = n.getTriggerDOMNode, F = Rs(n, UA), ve = A || T || !1, ke = R.useState(!1), Te = $e(ke, 2), Le = Te[0], Pe = Te[1];
|
|
6276
6276
|
pn(function() {
|
|
6277
6277
|
Pe(pA());
|
|
6278
6278
|
}, []);
|
|
@@ -6321,15 +6321,15 @@ function VA() {
|
|
|
6321
6321
|
}, [zt]);
|
|
6322
6322
|
var mu = R.useState(null), va = $e(mu, 2), io = va[0], Jo = va[1], ba = R.useState(null), Lr = $e(ba, 2), Dr = Lr[0], Ni = Lr[1], ur = function(Ee) {
|
|
6323
6323
|
Ni([Ee.clientX, Ee.clientY]);
|
|
6324
|
-
}, wa = HA(zt, le, U && Dr !== null ? Dr : qe,
|
|
6324
|
+
}, wa = HA(zt, le, U && Dr !== null ? Dr : qe, L, P, j, Z), nn = $e(wa, 11), xi = nn[0], Sa = nn[1], gu = nn[2], Ai = nn[3], Ea = nn[4], yu = nn[5], ka = nn[6], Ca = nn[7], Ti = nn[8], Oi = nn[9], Xo = nn[10], Mi = $A(Le, l, c, u), Zo = $e(Mi, 2), oo = Zo[0], Bn = Zo[1], Pr = oo.has("click"), Br = Bn.has("click") || Bn.has("contextMenu"), $r = Jn(function() {
|
|
6325
6325
|
ki || Xo();
|
|
6326
6326
|
}), Qo = function() {
|
|
6327
6327
|
En.current && U && Br && kn(!1);
|
|
6328
6328
|
};
|
|
6329
6329
|
jA(zt, qe, le, $r, Qo), pn(function() {
|
|
6330
6330
|
$r();
|
|
6331
|
-
}, [Dr,
|
|
6332
|
-
zt && !(P != null && P[
|
|
6331
|
+
}, [Dr, L]), pn(function() {
|
|
6332
|
+
zt && !(P != null && P[L]) && $r();
|
|
6333
6333
|
}, [JSON.stringify(j)]);
|
|
6334
6334
|
var vu = R.useMemo(function() {
|
|
6335
6335
|
var re = zA(P, o, Oi, U);
|
|
@@ -6423,7 +6423,7 @@ function VA() {
|
|
|
6423
6423
|
ref: gt,
|
|
6424
6424
|
prefixCls: o,
|
|
6425
6425
|
popup: M,
|
|
6426
|
-
className: er(
|
|
6426
|
+
className: er(D, vu),
|
|
6427
6427
|
style: O,
|
|
6428
6428
|
target: qe,
|
|
6429
6429
|
onMouseEnter: so,
|
|
@@ -6542,7 +6542,7 @@ var uo = {
|
|
|
6542
6542
|
}, qA = ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "motion", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle", "arrowContent", "overlay", "id", "showArrow", "classNames", "styles"], YA = function(e, n) {
|
|
6543
6543
|
var r = e.overlayClassName, i = e.trigger, o = i === void 0 ? ["hover"] : i, s = e.mouseEnterDelay, a = s === void 0 ? 0 : s, l = e.mouseLeaveDelay, c = l === void 0 ? 0.1 : l, u = e.overlayStyle, f = e.prefixCls, d = f === void 0 ? "rc-tooltip" : f, h = e.children, p = e.onVisibleChange, m = e.afterVisibleChange, y = e.transitionName, v = e.animation, k = e.motion, E = e.placement, S = E === void 0 ? "right" : E, w = e.align, C = w === void 0 ? {} : w, N = e.destroyTooltipOnHide, x = N === void 0 ? !1 : N, A = e.defaultVisible, T = e.getTooltipContainer, M = e.overlayInnerStyle;
|
|
6544
6544
|
e.arrowContent;
|
|
6545
|
-
var
|
|
6545
|
+
var D = e.overlay, O = e.id, L = e.showArrow, H = L === void 0 ? !0 : L, P = e.classNames, j = e.styles, _ = Rs(e, qA), W = jv(O), B = Sr(null);
|
|
6546
6546
|
iE(n, function() {
|
|
6547
6547
|
return B.current;
|
|
6548
6548
|
});
|
|
@@ -6555,10 +6555,10 @@ var uo = {
|
|
|
6555
6555
|
id: W,
|
|
6556
6556
|
bodyClassName: P?.body,
|
|
6557
6557
|
overlayInnerStyle: ge(ge({}, M), j?.body)
|
|
6558
|
-
},
|
|
6558
|
+
}, D);
|
|
6559
6559
|
}, Y = function() {
|
|
6560
6560
|
var X = R.Children.only(h), q = X?.props || {}, ee = ge(ge({}, q), {}, {
|
|
6561
|
-
"aria-describedby":
|
|
6561
|
+
"aria-describedby": D ? W : null
|
|
6562
6562
|
});
|
|
6563
6563
|
return /* @__PURE__ */ R.cloneElement(h, ee);
|
|
6564
6564
|
};
|
|
@@ -7386,16 +7386,16 @@ function yT(t, e, n, r, i, o, s, a, l) {
|
|
|
7386
7386
|
var A = N.split(`
|
|
7387
7387
|
`);
|
|
7388
7388
|
A.forEach(function(T, M) {
|
|
7389
|
-
var
|
|
7389
|
+
var D = r && f.length + o, O = {
|
|
7390
7390
|
type: "text",
|
|
7391
7391
|
value: "".concat(T, `
|
|
7392
7392
|
`)
|
|
7393
7393
|
};
|
|
7394
7394
|
if (M === 0) {
|
|
7395
|
-
var
|
|
7395
|
+
var L = u.slice(d + 1, h).concat(yl({
|
|
7396
7396
|
children: [O],
|
|
7397
7397
|
className: C.properties.className
|
|
7398
|
-
})), H = y(
|
|
7398
|
+
})), H = y(L, D);
|
|
7399
7399
|
f.push(H);
|
|
7400
7400
|
} else if (M === A.length - 1) {
|
|
7401
7401
|
var P = u[h + 1] && u[h + 1].children && u[h + 1].children[0], j = {
|
|
@@ -7409,11 +7409,11 @@ function yT(t, e, n, r, i, o, s, a, l) {
|
|
|
7409
7409
|
});
|
|
7410
7410
|
u.splice(h + 1, 0, _);
|
|
7411
7411
|
} else {
|
|
7412
|
-
var W = [j], B = y(W,
|
|
7412
|
+
var W = [j], B = y(W, D, C.properties.className);
|
|
7413
7413
|
f.push(B);
|
|
7414
7414
|
}
|
|
7415
7415
|
} else {
|
|
7416
|
-
var $ = [O], U = y($,
|
|
7416
|
+
var $ = [O], U = y($, D, C.properties.className);
|
|
7417
7417
|
f.push(U);
|
|
7418
7418
|
}
|
|
7419
7419
|
}), d = h;
|
|
@@ -7470,7 +7470,7 @@ function wT(t, e) {
|
|
|
7470
7470
|
var i, o, s = r.language, a = r.children, l = r.style, c = l === void 0 ? e : l, u = r.customStyle, f = u === void 0 ? {} : u, d = r.codeTagProps, h = d === void 0 ? {
|
|
7471
7471
|
className: s ? "language-".concat(s) : void 0,
|
|
7472
7472
|
style: Xr(Xr({}, c['code[class*="language-"]']), c['code[class*="language-'.concat(s, '"]')])
|
|
7473
|
-
} : d, p = r.useInlineStyles, m = p === void 0 ? !0 : p, y = r.showLineNumbers, v = y === void 0 ? !1 : y, k = r.showInlineLineNumbers, E = k === void 0 ? !0 : k, S = r.startingLineNumber, w = S === void 0 ? 1 : S, C = r.lineNumberContainerStyle, N = r.lineNumberStyle, x = N === void 0 ? {} : N, A = r.wrapLines, T = r.wrapLongLines, M = T === void 0 ? !1 : T,
|
|
7473
|
+
} : d, p = r.useInlineStyles, m = p === void 0 ? !0 : p, y = r.showLineNumbers, v = y === void 0 ? !1 : y, k = r.showInlineLineNumbers, E = k === void 0 ? !0 : k, S = r.startingLineNumber, w = S === void 0 ? 1 : S, C = r.lineNumberContainerStyle, N = r.lineNumberStyle, x = N === void 0 ? {} : N, A = r.wrapLines, T = r.wrapLongLines, M = T === void 0 ? !1 : T, D = r.lineProps, O = D === void 0 ? {} : D, L = r.renderer, H = r.PreTag, P = H === void 0 ? "pre" : H, j = r.CodeTag, _ = j === void 0 ? "code" : j, W = r.code, B = W === void 0 ? (Array.isArray(a) ? a[0] : a) || "" : W, $ = r.astGenerator, U = Rs(r, fT);
|
|
7474
7474
|
$ = $ || t;
|
|
7475
7475
|
var Y = v ? /* @__PURE__ */ b.createElement(mT, {
|
|
7476
7476
|
containerStyle: C,
|
|
@@ -7492,7 +7492,7 @@ function wT(t, e) {
|
|
|
7492
7492
|
whiteSpace: "pre"
|
|
7493
7493
|
}, h.style), !$)
|
|
7494
7494
|
return /* @__PURE__ */ b.createElement(P, q, Y, /* @__PURE__ */ b.createElement(_, h, B));
|
|
7495
|
-
(A === void 0 &&
|
|
7495
|
+
(A === void 0 && L || M) && (A = !0), L = L || vT;
|
|
7496
7496
|
var ee = [{
|
|
7497
7497
|
type: "text",
|
|
7498
7498
|
value: B
|
|
@@ -7504,7 +7504,7 @@ function wT(t, e) {
|
|
|
7504
7504
|
});
|
|
7505
7505
|
ne.language === null && (ne.value = ee);
|
|
7506
7506
|
var te = (i = (o = B.match(/\n/g)) === null || o === void 0 ? void 0 : o.length) !== null && i !== void 0 ? i : 0, se = w + te, Ae = yT(ne, A, O, v, E, w, se, x, M);
|
|
7507
|
-
return /* @__PURE__ */ b.createElement(P, q, /* @__PURE__ */ b.createElement(_, h, !E && Y,
|
|
7507
|
+
return /* @__PURE__ */ b.createElement(P, q, /* @__PURE__ */ b.createElement(_, h, !E && Y, L({
|
|
7508
7508
|
rows: Ae,
|
|
7509
7509
|
stylesheet: c,
|
|
7510
7510
|
useInlineStyles: m
|
|
@@ -9047,7 +9047,7 @@ function jT(t, e) {
|
|
|
9047
9047
|
const O = w === "named" ? Eg(x) : !1;
|
|
9048
9048
|
O && (C = x, N = O);
|
|
9049
9049
|
}
|
|
9050
|
-
let M = 1 + S - k,
|
|
9050
|
+
let M = 1 + S - k, D = "";
|
|
9051
9051
|
if (!(!T && n.nonTerminated === !1)) if (!x)
|
|
9052
9052
|
w !== "named" && m(4, M);
|
|
9053
9053
|
else if (w === "named") {
|
|
@@ -9056,12 +9056,12 @@ function jT(t, e) {
|
|
|
9056
9056
|
else if (C !== x && (S = E + C.length, M = 1 + S - E, T = !1), !T) {
|
|
9057
9057
|
const O = C ? 1 : 3;
|
|
9058
9058
|
if (n.attribute) {
|
|
9059
|
-
const
|
|
9060
|
-
|
|
9059
|
+
const L = t.charCodeAt(S);
|
|
9060
|
+
L === 61 ? (m(O, M), N = "") : wg(L) ? N = "" : m(O, M);
|
|
9061
9061
|
} else
|
|
9062
9062
|
m(O, M);
|
|
9063
9063
|
}
|
|
9064
|
-
|
|
9064
|
+
D = N;
|
|
9065
9065
|
} else {
|
|
9066
9066
|
T || m(2, M);
|
|
9067
9067
|
let O = Number.parseInt(
|
|
@@ -9069,22 +9069,22 @@ function jT(t, e) {
|
|
|
9069
9069
|
w === "hexadecimal" ? 16 : 10
|
|
9070
9070
|
);
|
|
9071
9071
|
if (WT(O))
|
|
9072
|
-
m(7, M),
|
|
9072
|
+
m(7, M), D = "�";
|
|
9073
9073
|
else if (O in bg)
|
|
9074
|
-
m(6, M),
|
|
9074
|
+
m(6, M), D = bg[O];
|
|
9075
9075
|
else {
|
|
9076
|
-
let
|
|
9077
|
-
UT(O) && m(6, M), O > 65535 && (O -= 65536,
|
|
9076
|
+
let L = "";
|
|
9077
|
+
UT(O) && m(6, M), O > 65535 && (O -= 65536, L += String.fromCharCode(
|
|
9078
9078
|
O >>> 10 | 55296
|
|
9079
|
-
), O = 56320 | O & 1023),
|
|
9079
|
+
), O = 56320 | O & 1023), D = L + String.fromCharCode(O);
|
|
9080
9080
|
}
|
|
9081
9081
|
}
|
|
9082
|
-
if (
|
|
9083
|
-
y(), d = p(), o = S - 1, f += S - k + 1, i.push(
|
|
9082
|
+
if (D) {
|
|
9083
|
+
y(), d = p(), o = S - 1, f += S - k + 1, i.push(D);
|
|
9084
9084
|
const O = p();
|
|
9085
9085
|
O.offset++, n.reference && n.reference.call(
|
|
9086
9086
|
n.referenceContext || void 0,
|
|
9087
|
-
|
|
9087
|
+
D,
|
|
9088
9088
|
{ start: d, end: O },
|
|
9089
9089
|
t.slice(k - 1, S)
|
|
9090
9090
|
), d = O;
|
|
@@ -9501,20 +9501,20 @@ function bb(t, e, n, r, i, o) {
|
|
|
9501
9501
|
E--, k = t.slice(v, C), S.index -= v;
|
|
9502
9502
|
} else if (S = kg(m, 0, k, f), !S)
|
|
9503
9503
|
continue;
|
|
9504
|
-
var x = S.index, A = S[0], T = k.slice(0, x), M = k.slice(x + A.length),
|
|
9505
|
-
o &&
|
|
9504
|
+
var x = S.index, A = S[0], T = k.slice(0, x), M = k.slice(x + A.length), D = v + k.length;
|
|
9505
|
+
o && D > o.reach && (o.reach = D);
|
|
9506
9506
|
var O = y.prev;
|
|
9507
9507
|
T && (O = vl(e, O, T), v += T.length), GT(e, O, E);
|
|
9508
|
-
var
|
|
9508
|
+
var L = new vs(
|
|
9509
9509
|
s,
|
|
9510
9510
|
u ? xt.tokenize(A, u) : A,
|
|
9511
9511
|
h,
|
|
9512
9512
|
A
|
|
9513
9513
|
);
|
|
9514
|
-
if (y = vl(e, O,
|
|
9514
|
+
if (y = vl(e, O, L), M && vl(e, y, M), E > 1) {
|
|
9515
9515
|
var H = {
|
|
9516
9516
|
cause: s + "," + l,
|
|
9517
|
-
reach:
|
|
9517
|
+
reach: D
|
|
9518
9518
|
};
|
|
9519
9519
|
bb(
|
|
9520
9520
|
t,
|
|
@@ -10600,7 +10600,7 @@ function Bh(t) {
|
|
|
10600
10600
|
T
|
|
10601
10601
|
]),
|
|
10602
10602
|
2
|
|
10603
|
-
),
|
|
10603
|
+
), D = /\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source, O = n(/<<0>>(?:\s*\(<<1>>*\))?/.source, [
|
|
10604
10604
|
m,
|
|
10605
10605
|
M
|
|
10606
10606
|
]);
|
|
@@ -10610,13 +10610,13 @@ function Bh(t) {
|
|
|
10610
10610
|
// [Foo], [Foo(1), Bar(2, Prop = "foo")], [return: Foo(1), Bar(2)], [assembly: Foo(Bar)]
|
|
10611
10611
|
pattern: r(
|
|
10612
10612
|
/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,
|
|
10613
|
-
[
|
|
10613
|
+
[D, O]
|
|
10614
10614
|
),
|
|
10615
10615
|
lookbehind: !0,
|
|
10616
10616
|
greedy: !0,
|
|
10617
10617
|
inside: {
|
|
10618
10618
|
target: {
|
|
10619
|
-
pattern: r(/^<<0>>(?=\s*:)/.source, [
|
|
10619
|
+
pattern: r(/^<<0>>(?=\s*:)/.source, [D]),
|
|
10620
10620
|
alias: "keyword"
|
|
10621
10621
|
},
|
|
10622
10622
|
"attribute-arguments": {
|
|
@@ -10633,14 +10633,14 @@ function Bh(t) {
|
|
|
10633
10633
|
}
|
|
10634
10634
|
}
|
|
10635
10635
|
});
|
|
10636
|
-
var
|
|
10636
|
+
var L = /:[^}\r\n]+/.source, H = i(
|
|
10637
10637
|
n(/[^"'/()]|<<0>>|\(<<self>>*\)/.source, [
|
|
10638
10638
|
T
|
|
10639
10639
|
]),
|
|
10640
10640
|
2
|
|
10641
10641
|
), P = n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [
|
|
10642
10642
|
H,
|
|
10643
|
-
|
|
10643
|
+
L
|
|
10644
10644
|
]), j = i(
|
|
10645
10645
|
n(
|
|
10646
10646
|
/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,
|
|
@@ -10649,7 +10649,7 @@ function Bh(t) {
|
|
|
10649
10649
|
2
|
|
10650
10650
|
), _ = n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [
|
|
10651
10651
|
j,
|
|
10652
|
-
|
|
10652
|
+
L
|
|
10653
10653
|
]);
|
|
10654
10654
|
function W(B, $) {
|
|
10655
10655
|
return {
|
|
@@ -10660,7 +10660,7 @@ function Bh(t) {
|
|
|
10660
10660
|
"format-string": {
|
|
10661
10661
|
pattern: r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source, [
|
|
10662
10662
|
$,
|
|
10663
|
-
|
|
10663
|
+
L
|
|
10664
10664
|
]),
|
|
10665
10665
|
lookbehind: !0,
|
|
10666
10666
|
inside: {
|
|
@@ -12271,16 +12271,16 @@ function Vc({
|
|
|
12271
12271
|
className: A = "",
|
|
12272
12272
|
styles: T = {},
|
|
12273
12273
|
onBlur: M,
|
|
12274
|
-
onChange:
|
|
12274
|
+
onChange: D,
|
|
12275
12275
|
onFocus: O,
|
|
12276
|
-
onKeyDown:
|
|
12276
|
+
onKeyDown: L,
|
|
12277
12277
|
onKeyUp: H,
|
|
12278
12278
|
onValueChanged: P
|
|
12279
12279
|
}) {
|
|
12280
12280
|
let [j, _] = b.useState(!1), [W, B] = b.useState(!1), { defaults: $ } = b.useContext(Xe), U = E ?? $.input.size, Y = t ?? $.input.alignment, Z = typeof o == "string" ? o : o({ value: x, touched: W, focused: j, required: k, disabled: i, readonly: v }), X = typeof s == "string" ? s : s(x), q = Z.length > 0 ? "input is-danger" : "input";
|
|
12281
12281
|
q += tt(U), q += Kt(Y), v && (q += " is-static"), A && (q += ` ${A.trim()}`);
|
|
12282
12282
|
function ee(se) {
|
|
12283
|
-
i || (P && P(se.target.value),
|
|
12283
|
+
i || (P && P(se.target.value), D && D(se));
|
|
12284
12284
|
}
|
|
12285
12285
|
function ne(se) {
|
|
12286
12286
|
_(!0), O && O(se, l);
|
|
@@ -12316,7 +12316,7 @@ function Vc({
|
|
|
12316
12316
|
disabled: i,
|
|
12317
12317
|
style: T,
|
|
12318
12318
|
list: n,
|
|
12319
|
-
onKeyDown:
|
|
12319
|
+
onKeyDown: L,
|
|
12320
12320
|
onKeyUp: H,
|
|
12321
12321
|
onBlur: te,
|
|
12322
12322
|
onChange: ee,
|
|
@@ -12351,7 +12351,7 @@ function sr({
|
|
|
12351
12351
|
onFocus: S,
|
|
12352
12352
|
...w
|
|
12353
12353
|
}) {
|
|
12354
|
-
let [C, N] = b.useState(!1), [x, A] = b.useState(!1), [T, M] = b.useState(!1),
|
|
12354
|
+
let [C, N] = b.useState(!1), [x, A] = b.useState(!1), [T, M] = b.useState(!1), D = k && k.length > 0 ? `${s ?? c}-option-list-id` : void 0, O = typeof e == "string" ? e : e({ value: m, touched: C, focused: x, required: u, disabled: d, readonly: h }), L = typeof n == "string" ? n : n(m), { defaults: H } = b.useContext(Xe), P = p ?? H.input.size, j = t ?? H.input.direction, [_, W, B] = or({
|
|
12355
12355
|
icon: o,
|
|
12356
12356
|
error: O,
|
|
12357
12357
|
showInfo: Nt(x, T),
|
|
@@ -12395,14 +12395,14 @@ function sr({
|
|
|
12395
12395
|
disabled: d,
|
|
12396
12396
|
readonly: h,
|
|
12397
12397
|
onFocus: U,
|
|
12398
|
-
optionListId:
|
|
12398
|
+
optionListId: D,
|
|
12399
12399
|
helpTag: v,
|
|
12400
12400
|
errorMessage: O,
|
|
12401
|
-
infoMessage:
|
|
12401
|
+
infoMessage: L,
|
|
12402
12402
|
...w
|
|
12403
12403
|
}
|
|
12404
12404
|
),
|
|
12405
|
-
k && k.length > 0 && /* @__PURE__ */ g("datalist", { id:
|
|
12405
|
+
k && k.length > 0 && /* @__PURE__ */ g("datalist", { id: D, children: k.map(
|
|
12406
12406
|
(Y) => typeof Y == "string" ? /* @__PURE__ */ g("option", { value: Y }, Y) : /* @__PURE__ */ g("option", { value: Y.value, children: Y.label }, Y.value)
|
|
12407
12407
|
) }),
|
|
12408
12408
|
W,
|
|
@@ -12483,9 +12483,9 @@ function Tn({
|
|
|
12483
12483
|
inputRef: A,
|
|
12484
12484
|
labelHidden: T,
|
|
12485
12485
|
icon: M = yh,
|
|
12486
|
-
infoData:
|
|
12486
|
+
infoData: D,
|
|
12487
12487
|
onBlur: O,
|
|
12488
|
-
onFocus:
|
|
12488
|
+
onFocus: L,
|
|
12489
12489
|
onChange: H,
|
|
12490
12490
|
onKeyDown: P,
|
|
12491
12491
|
onKeyUp: j,
|
|
@@ -12498,18 +12498,18 @@ function Tn({
|
|
|
12498
12498
|
error: se,
|
|
12499
12499
|
showInfo: Nt(W, Y),
|
|
12500
12500
|
inputId: e ?? n,
|
|
12501
|
-
infoData:
|
|
12501
|
+
infoData: D,
|
|
12502
12502
|
helpTag: y,
|
|
12503
12503
|
hideIconRight: h
|
|
12504
12504
|
});
|
|
12505
12505
|
function ke(Ce) {
|
|
12506
|
-
$ || U(!0),
|
|
12506
|
+
$ || U(!0), D ? setTimeout(() => {
|
|
12507
12507
|
let oe = document.getElementById(e ?? n);
|
|
12508
12508
|
document.activeElement !== oe && (B(!1), O && O(Ce));
|
|
12509
12509
|
}, cn) : (O && O(Ce), B(!1));
|
|
12510
12510
|
}
|
|
12511
12511
|
function Te(Ce) {
|
|
12512
|
-
B(!0),
|
|
12512
|
+
B(!0), L && L(Ce, y);
|
|
12513
12513
|
}
|
|
12514
12514
|
function Le(Ce) {
|
|
12515
12515
|
if ($ || U(!0), H && H(Ce), c) {
|
|
@@ -15075,7 +15075,7 @@ function M_({
|
|
|
15075
15075
|
paginationOptions: N,
|
|
15076
15076
|
fillEmptyRows: x = !1
|
|
15077
15077
|
}) {
|
|
15078
|
-
let { defaults: A } = b.useContext(Xe), T = b.useMemo(() => ({ ...A.datatablePagination, ...N }), [N, A]), M = e.sort((q, ee) => KM(q.order ?? 0, ee.order ?? 0)),
|
|
15078
|
+
let { defaults: A } = b.useContext(Xe), T = b.useMemo(() => ({ ...A.datatablePagination, ...N }), [N, A]), M = e.sort((q, ee) => KM(q.order ?? 0, ee.order ?? 0)), D = w ?? Rn(0, 999999999999).toString(), [O, L] = b.useState(""), [H] = cO(O, { delay: 200 }), [P, j] = b.useState(() => n || M.findIndex((q) => q.sort !== void 0) + 1), [_, W] = dO(T.initialPage), [B, $] = b.useState(T.initialRowsPerPage), { visibleData: U, pagination: Y, filteredData: Z } = b.useMemo(() => {
|
|
15079
15079
|
let q = [...H === "" ? t : m(H, t)];
|
|
15080
15080
|
q.sort(M[Math.abs(P) - 1]?.sort ?? (() => 0)), P < 0 && q.reverse();
|
|
15081
15081
|
let ee = B === 0 ? 1 / 0 : B;
|
|
@@ -15099,7 +15099,7 @@ function M_({
|
|
|
15099
15099
|
}, Ae = q.slice((te - 1) * ee, te * ee);
|
|
15100
15100
|
return { filteredData: q, visibleData: Ae, pagination: se };
|
|
15101
15101
|
}, [M, t, _, T, B, H, P, W, $, m]), X = "table";
|
|
15102
|
-
return r && (X += " is-narrow"), o || (X += " is-fullwidth"), a && (X += " is-hoverable"), s && (X += " is-bordered"), i || (X += " is-striped"), l !== "none" && (X += " is-sticky"), /* @__PURE__ */ I("table", { className: X, id:
|
|
15102
|
+
return r && (X += " is-narrow"), o || (X += " is-fullwidth"), a && (X += " is-hoverable"), s && (X += " is-bordered"), i || (X += " is-striped"), l !== "none" && (X += " is-sticky"), /* @__PURE__ */ I("table", { className: X, id: D, ref: C, children: [
|
|
15103
15103
|
/* @__PURE__ */ g(
|
|
15104
15104
|
JM,
|
|
15105
15105
|
{
|
|
@@ -15110,12 +15110,12 @@ function M_({
|
|
|
15110
15110
|
filterCount: U.length,
|
|
15111
15111
|
dataCount: t.length,
|
|
15112
15112
|
hideSearch: c,
|
|
15113
|
-
onSearchValueChanged:
|
|
15113
|
+
onSearchValueChanged: L,
|
|
15114
15114
|
searchPlaceholder: h,
|
|
15115
15115
|
infoMessage: S,
|
|
15116
15116
|
sortColNum: P,
|
|
15117
15117
|
onSortIndexChanged: j,
|
|
15118
|
-
tableID:
|
|
15118
|
+
tableID: D,
|
|
15119
15119
|
children: u
|
|
15120
15120
|
}
|
|
15121
15121
|
),
|
|
@@ -15508,74 +15508,55 @@ const Zr = ({
|
|
|
15508
15508
|
usePortal: u = !1
|
|
15509
15509
|
}) => {
|
|
15510
15510
|
let [f, d] = Tb(a), h = QM(() => !t && d(!1));
|
|
15511
|
-
const p = b.useRef(null), [m, y] = b.useState(null)
|
|
15512
|
-
|
|
15513
|
-
|
|
15514
|
-
|
|
15515
|
-
|
|
15516
|
-
|
|
15517
|
-
|
|
15518
|
-
for (; T; ) {
|
|
15519
|
-
const M = window.getComputedStyle(T), L = M.overflow + M.overflowX + M.overflowY;
|
|
15520
|
-
if (L.includes("auto") || L.includes("scroll")) {
|
|
15521
|
-
k(!0);
|
|
15522
|
-
return;
|
|
15523
|
-
}
|
|
15524
|
-
T = T.parentElement;
|
|
15525
|
-
}
|
|
15526
|
-
k(u);
|
|
15527
|
-
}, [u, h]);
|
|
15528
|
-
let E = "dropdown";
|
|
15529
|
-
f && (E += " is-active"), i && (E += " is-disabled"), s && (E += " is-up"), o === "r" && (E += " is-right"), l !== "" && (E += " " + l);
|
|
15530
|
-
const { effectiveTrigger: S, filteredChildren: w } = b.useMemo(() => {
|
|
15531
|
-
let T = null, M = [];
|
|
15532
|
-
b.Children.forEach(n, (O) => {
|
|
15533
|
-
O?.type === Zr.Trigger ? T = O.props.children : M.push(O);
|
|
15511
|
+
const p = b.useRef(null), [m, y] = b.useState(null);
|
|
15512
|
+
let v = "dropdown";
|
|
15513
|
+
f && (v += " is-active"), i && (v += " is-disabled"), s && (v += " is-up"), o === "r" && (v += " is-right"), l !== "" && (v += " " + l);
|
|
15514
|
+
const { effectiveTrigger: k, filteredChildren: E } = b.useMemo(() => {
|
|
15515
|
+
let x = null, A = [];
|
|
15516
|
+
b.Children.forEach(n, (M) => {
|
|
15517
|
+
M?.type === Zr.Trigger ? x = M.props.children : A.push(M);
|
|
15534
15518
|
});
|
|
15535
|
-
const
|
|
15536
|
-
if (!
|
|
15519
|
+
const T = x || r;
|
|
15520
|
+
if (!T) throw new Error('Dropdown requires either a "trigger" prop or a <Dropdown.Trigger> child component');
|
|
15537
15521
|
return {
|
|
15538
|
-
effectiveTrigger:
|
|
15539
|
-
filteredChildren:
|
|
15522
|
+
effectiveTrigger: T,
|
|
15523
|
+
filteredChildren: A
|
|
15540
15524
|
};
|
|
15541
15525
|
}, [n, r]);
|
|
15542
|
-
let
|
|
15543
|
-
const
|
|
15544
|
-
!c &&
|
|
15526
|
+
let S = b.useMemo(() => t4(k, f, i, t, d), [k, f, i, t, d]);
|
|
15527
|
+
const w = (x) => {
|
|
15528
|
+
!c && x && d(!1);
|
|
15545
15529
|
};
|
|
15546
15530
|
b.useEffect(() => {
|
|
15547
|
-
if (
|
|
15548
|
-
const
|
|
15549
|
-
|
|
15550
|
-
|
|
15551
|
-
|
|
15552
|
-
|
|
15553
|
-
width: T.width
|
|
15531
|
+
if (u && f && p.current) {
|
|
15532
|
+
const x = p.current.getBoundingClientRect(), A = window.pageYOffset || document.documentElement.scrollTop, T = window.pageXOffset || document.documentElement.scrollLeft;
|
|
15533
|
+
y({
|
|
15534
|
+
top: x.bottom + A,
|
|
15535
|
+
left: x.left + T,
|
|
15536
|
+
width: x.width
|
|
15554
15537
|
});
|
|
15555
15538
|
}
|
|
15556
|
-
}, [
|
|
15557
|
-
let
|
|
15558
|
-
const
|
|
15539
|
+
}, [u, f]);
|
|
15540
|
+
let C = b.Children.map(E, (x) => !x || x === "" ? null : x.type === Zr.Divider ? x : x.type === Zr.Item ? b.cloneElement(x, { onItemClick: w }) : x.type === Zr.Link ? b.cloneElement(x, { onItemClick: w }) : /* @__PURE__ */ g("div", { className: "dropdown-item", children: x }));
|
|
15541
|
+
const N = /* @__PURE__ */ g(
|
|
15559
15542
|
"div",
|
|
15560
15543
|
{
|
|
15561
15544
|
className: "dropdown-menu",
|
|
15562
15545
|
id: e,
|
|
15563
15546
|
role: "menu",
|
|
15564
|
-
style:
|
|
15565
|
-
position: "
|
|
15547
|
+
style: u && m ? {
|
|
15548
|
+
position: "absolute",
|
|
15566
15549
|
top: `${m.top}px`,
|
|
15567
|
-
left:
|
|
15568
|
-
right: o === "r" ? `${window.innerWidth - m.left}px` : "auto",
|
|
15550
|
+
left: `${m.left}px`,
|
|
15569
15551
|
minWidth: `${m.width}px`,
|
|
15570
|
-
transform: s ? "translateY(-100%)" : "none",
|
|
15571
15552
|
zIndex: 9999
|
|
15572
15553
|
} : void 0,
|
|
15573
|
-
children: /* @__PURE__ */ g("div", { className: "dropdown-content",
|
|
15554
|
+
children: /* @__PURE__ */ g("div", { className: "dropdown-content", children: C })
|
|
15574
15555
|
}
|
|
15575
15556
|
);
|
|
15576
|
-
return /* @__PURE__ */ I("div", { className:
|
|
15577
|
-
/* @__PURE__ */ g("div", { ref: p, children:
|
|
15578
|
-
|
|
15557
|
+
return /* @__PURE__ */ I("div", { className: v, ref: h, onMouseEnter: () => t && d(!0), onMouseLeave: () => t && d(!1), children: [
|
|
15558
|
+
/* @__PURE__ */ g("div", { ref: p, children: S }),
|
|
15559
|
+
u && f ? Dc.createPortal(N, document.body) : N
|
|
15579
15560
|
] });
|
|
15580
15561
|
};
|
|
15581
15562
|
Zr.Trigger = ({ children: t }) => /* @__PURE__ */ g(St, { children: t });
|
|
@@ -17595,15 +17576,15 @@ function tI({
|
|
|
17595
17576
|
color: A = void 0,
|
|
17596
17577
|
infoDataEl: T
|
|
17597
17578
|
}) {
|
|
17598
|
-
let [M,
|
|
17579
|
+
let [M, D] = b.useState(!1), [O, L] = b.useState(!1), [H, P] = b.useState(!1), { defaults: j } = b.useContext(Xe), { scheme: _ } = yi();
|
|
17599
17580
|
A === void 0 && _ === "dark" && (A = "light"), A === void 0 && _ === "light" && (A = "dark");
|
|
17600
17581
|
let W = N ?? j.input.size, B = x ?? j.input.alignment, $ = typeof e == "string" ? e : e({ value: l, touched: M, focused: H, required: c, disabled: i, readonly: h }), U = typeof n == "string" ? n : n(l), Y = "is-checkradio";
|
|
17601
17582
|
Y += tt(W), Y += Kt(B), Y += Yt(A), h && (Y += " is-static");
|
|
17602
17583
|
function Z(ee) {
|
|
17603
|
-
M ||
|
|
17584
|
+
M || D(!0), v && v(ee), P(!1);
|
|
17604
17585
|
}
|
|
17605
17586
|
function X(ee) {
|
|
17606
|
-
M ||
|
|
17587
|
+
M || D(!0), C && C(ee.target.checked), k && k(ee);
|
|
17607
17588
|
}
|
|
17608
17589
|
function q(ee) {
|
|
17609
17590
|
E && E(ee, t), P(!0);
|
|
@@ -17632,11 +17613,11 @@ function tI({
|
|
|
17632
17613
|
onBlur: Z,
|
|
17633
17614
|
onChange: X,
|
|
17634
17615
|
onFocus: q,
|
|
17635
|
-
onMouseEnter: () =>
|
|
17636
|
-
onMouseLeave: () =>
|
|
17616
|
+
onMouseEnter: () => L(!0),
|
|
17617
|
+
onMouseLeave: () => L(!1)
|
|
17637
17618
|
}
|
|
17638
17619
|
),
|
|
17639
|
-
/* @__PURE__ */ I("label", { htmlFor: f ?? a, onMouseEnter: () =>
|
|
17620
|
+
/* @__PURE__ */ I("label", { htmlFor: f ?? a, onMouseEnter: () => L(!0), onMouseLeave: () => L(!1), children: [
|
|
17640
17621
|
r ?? a,
|
|
17641
17622
|
" ",
|
|
17642
17623
|
T
|
|
@@ -17698,9 +17679,9 @@ function H_({
|
|
|
17698
17679
|
onBlur: A,
|
|
17699
17680
|
onKeyDown: T,
|
|
17700
17681
|
onKeyUp: M,
|
|
17701
|
-
onSearch:
|
|
17682
|
+
onSearch: D = (P, j) => P.toLowerCase().indexOf(JSON.stringify(j).toLowerCase()) !== -1,
|
|
17702
17683
|
formatLabel: O = (P) => typeof P == "string" || typeof P == "number" || typeof P == "boolean" ? `${P}` : JSON.stringify(P),
|
|
17703
|
-
formatValue:
|
|
17684
|
+
formatValue: L = (P) => /* @__PURE__ */ g(St, { children: typeof P == "string" || typeof P == "number" || typeof P == "boolean" ? `${P}` : JSON.stringify(P) }),
|
|
17704
17685
|
formatOption: H = (P, j) => /* @__PURE__ */ g(St, { children: typeof P == "string" || typeof P == "number" || typeof P == "boolean" ? `${P}` : JSON.stringify(P) })
|
|
17705
17686
|
}) {
|
|
17706
17687
|
let [P, j] = b.useState(le(e)), [_, W] = b.useState(O(t)), [B, $] = b.useReducer(iI, rI), [U, Y] = b.useState(!1), [Z, X] = b.useState(!1), [q, ee] = b.useState(-1), [ne, te] = b.useState(!1), [se, Ae] = b.useState(!1), { defaults: ye } = b.useContext(Xe), De = u ?? ye.input.size, F = f ?? ye.input.direction, ve = c ?? ye.input.alignment, ke = typeof a == "string" ? a : a({ value: _, touched: ne, focused: B.focused, required: o, disabled: p, readonly: !1 }), Te = typeof l == "string" ? l : l(_), Le = b.useRef(null), Pe = b.useRef(null);
|
|
@@ -17798,7 +17779,7 @@ function H_({
|
|
|
17798
17779
|
T && T(we);
|
|
17799
17780
|
}
|
|
17800
17781
|
function qe(we) {
|
|
17801
|
-
we.length === 0 ? j(le(e)) : j(le(e.filter((he) =>
|
|
17782
|
+
we.length === 0 ? j(le(e)) : j(le(e.filter((he) => D(we, he))));
|
|
17802
17783
|
}
|
|
17803
17784
|
function yt(we) {
|
|
17804
17785
|
ne || te(!0), N && N(we), W(we.target.value), qe(we.target.value);
|
|
@@ -17858,7 +17839,7 @@ function H_({
|
|
|
17858
17839
|
onClick: () => {
|
|
17859
17840
|
document.getElementById(n ?? r)?.focus();
|
|
17860
17841
|
},
|
|
17861
|
-
children:
|
|
17842
|
+
children: L(t)
|
|
17862
17843
|
}
|
|
17863
17844
|
),
|
|
17864
17845
|
/* @__PURE__ */ g(
|
|
@@ -17937,11 +17918,11 @@ function j_({
|
|
|
17937
17918
|
onBlur: N,
|
|
17938
17919
|
onKeyDown: x,
|
|
17939
17920
|
onKeyUp: A,
|
|
17940
|
-
onSearch: T = (O,
|
|
17921
|
+
onSearch: T = (O, L) => O.toLowerCase().indexOf(JSON.stringify(L).toLowerCase()) !== -1,
|
|
17941
17922
|
formatLabel: M = (O) => typeof O == "string" || typeof O == "number" || typeof O == "boolean" ? `${O}` : JSON.stringify(O),
|
|
17942
|
-
formatValue:
|
|
17923
|
+
formatValue: D = (O) => O.join(", ")
|
|
17943
17924
|
}) {
|
|
17944
|
-
let [O,
|
|
17925
|
+
let [O, L] = b.useState(""), [H, P] = b.useState(!1), [j, _] = b.useState(!1), [W, B] = b.useState(!1), [$, U] = b.useState(Ce(t, e)), [Y, Z] = b.useState(!1), [X, q] = b.useState(!1), ee = b.useRef(null), ne = b.useRef(null), te = { right: "1.5em" }, se = typeof a == "string" ? a : a({ value: t, touched: j, focused: H, required: o, disabled: p, readonly: !1 }), Ae = typeof l == "string" ? l : l(D(t)), { defaults: ye } = b.useContext(Xe), De = u ?? ye.input.size, F = f ?? ye.input.direction, ve = c ?? ye.input.alignment, ke = a ? "input is-danger is-fullwidth" : "input is-fullwidth";
|
|
17945
17926
|
ke += tt(De), ke += Kt(ve), m && (ke += " is-loading");
|
|
17946
17927
|
let [Te, Le, Pe] = or({
|
|
17947
17928
|
icon: k,
|
|
@@ -17973,10 +17954,10 @@ function j_({
|
|
|
17973
17954
|
}
|
|
17974
17955
|
function be(le) {
|
|
17975
17956
|
let Be = [];
|
|
17976
|
-
$.includes(le) ? Be = [...$.filter((Ie) => Ie !== le)] : Be = [...$, le].sort(), U(Be), w && w(Be.map((Ie) => e[Ie]).filter((Ie) => Ie !== void 0)),
|
|
17957
|
+
$.includes(le) ? Be = [...$.filter((Ie) => Ie !== le)] : Be = [...$, le].sort(), U(Be), w && w(Be.map((Ie) => e[Ie]).filter((Ie) => Ie !== void 0)), L("");
|
|
17977
17958
|
}
|
|
17978
17959
|
function Ne(le) {
|
|
17979
|
-
H &&
|
|
17960
|
+
H && L(le.target.value);
|
|
17980
17961
|
}
|
|
17981
17962
|
function Q() {
|
|
17982
17963
|
P(!0);
|
|
@@ -18003,7 +17984,7 @@ function j_({
|
|
|
18003
17984
|
{
|
|
18004
17985
|
role: "combobox",
|
|
18005
17986
|
placeholder: d,
|
|
18006
|
-
value: H ? O :
|
|
17987
|
+
value: H ? O : D(t),
|
|
18007
17988
|
className: ke,
|
|
18008
17989
|
name: r,
|
|
18009
17990
|
disabled: p,
|
|
@@ -18123,8 +18104,8 @@ function qb({
|
|
|
18123
18104
|
children: A = void 0,
|
|
18124
18105
|
infoData: T
|
|
18125
18106
|
}) {
|
|
18126
|
-
let { defaults: M } = b.useContext(Xe), [
|
|
18127
|
-
j += tt(
|
|
18107
|
+
let { defaults: M } = b.useContext(Xe), [D, O] = b.useState(!1), L = w ?? M.input.size, H = C ?? M.input.alignment, P = N ?? M.input.rbDirection, j = "is-checkradio";
|
|
18108
|
+
j += tt(L), j += Kt(H), j += Yt(x), f && (j += " is-static"), c || (c = i + "-" + o);
|
|
18128
18109
|
function _(U) {
|
|
18129
18110
|
S && S(o), y && y(U);
|
|
18130
18111
|
}
|
|
@@ -18134,7 +18115,7 @@ function qb({
|
|
|
18134
18115
|
function B() {
|
|
18135
18116
|
O(!1);
|
|
18136
18117
|
}
|
|
18137
|
-
const $ = T &&
|
|
18118
|
+
const $ = T && D ? /* @__PURE__ */ g("span", { className: `mx-1 ${tt(L)}`, onClick: (U) => U.preventDefault(), children: Zi(T, () => {
|
|
18138
18119
|
}, t) }) : void 0;
|
|
18139
18120
|
return /* @__PURE__ */ I("div", { style: { display: P === "v" ? "block" : "inline" }, onMouseEnter: W, onMouseLeave: B, children: [
|
|
18140
18121
|
/* @__PURE__ */ g(
|
|
@@ -18194,7 +18175,7 @@ function sI({
|
|
|
18194
18175
|
onKeyDown: w,
|
|
18195
18176
|
onKeyUp: C
|
|
18196
18177
|
}) {
|
|
18197
|
-
let [N, x] = b.useState(!1), [A, T] = b.useState(!1), [M,
|
|
18178
|
+
let [N, x] = b.useState(!1), [A, T] = b.useState(!1), [M, D] = b.useState(!1), { defaults: O } = b.useContext(Xe), L = c ?? O.input.size, H = u ?? O.input.direction, P = d ?? O.input.alignment, j = f ?? O.input.rbDirection, _ = U(t), W = typeof h == "string" ? h : h({ value: s, touched: N, focused: A, required: a, disabled: r, readonly: !1 }), B = typeof p == "string" ? p : p(s), $ = hi(m, Nt(A, M)) ? /* @__PURE__ */ g("span", { className: "mx-1", onClick: (q) => q.preventDefault(), children: Zi(m, () => {
|
|
18198
18179
|
}, y) }) : void 0;
|
|
18199
18180
|
function U(q) {
|
|
18200
18181
|
return b.Children.map(q, (ee, ne) => {
|
|
@@ -18205,7 +18186,7 @@ function sI({
|
|
|
18205
18186
|
{
|
|
18206
18187
|
...se,
|
|
18207
18188
|
disabled: r ? !0 : se.disabled,
|
|
18208
|
-
size:
|
|
18189
|
+
size: L,
|
|
18209
18190
|
itemsDirection: j,
|
|
18210
18191
|
alignment: P,
|
|
18211
18192
|
id: se.id ?? `${o}-option-${ne}`,
|
|
@@ -18243,11 +18224,11 @@ function sI({
|
|
|
18243
18224
|
required: a,
|
|
18244
18225
|
inputId: e ?? o,
|
|
18245
18226
|
direction: H,
|
|
18246
|
-
size:
|
|
18227
|
+
size: L,
|
|
18247
18228
|
controlClassName: "control",
|
|
18248
18229
|
showRequiredOnLabel: l,
|
|
18249
18230
|
infoData: $,
|
|
18250
|
-
setHovered:
|
|
18231
|
+
setHovered: D,
|
|
18251
18232
|
children: [
|
|
18252
18233
|
_,
|
|
18253
18234
|
W.length > 0 && /* @__PURE__ */ g("p", { className: "help is-danger", children: W }),
|
|
@@ -18295,9 +18276,9 @@ function U_({
|
|
|
18295
18276
|
minLength: A,
|
|
18296
18277
|
pattern: T = void 0,
|
|
18297
18278
|
placeholder: M,
|
|
18298
|
-
readonly:
|
|
18279
|
+
readonly: D = !1,
|
|
18299
18280
|
spellCheck: O = !1,
|
|
18300
|
-
hideIconRight:
|
|
18281
|
+
hideIconRight: L = !1,
|
|
18301
18282
|
title: H,
|
|
18302
18283
|
className: P = "",
|
|
18303
18284
|
styles: j = {},
|
|
@@ -18315,14 +18296,14 @@ function U_({
|
|
|
18315
18296
|
t.map((pe) => a === "random" ? Xp(_) : a)
|
|
18316
18297
|
), Ce = y ?? ee.input.size, oe = l ?? ee.input.direction, be = v ?? ee.input.alignment, Ne = "input";
|
|
18317
18298
|
Ne += tt(Ce), Ne += Kt(be, !1), Ne += P;
|
|
18318
|
-
let Q = typeof c == "string" ? c : c({ value: t, touched: ne, focused: se, required: p, disabled: r, readonly:
|
|
18299
|
+
let Q = typeof c == "string" ? c : c({ value: t, touched: ne, focused: se, required: p, disabled: r, readonly: D }), ue = typeof u == "string" ? u : u(t), [le, Be, Ie] = or({
|
|
18319
18300
|
icon: d,
|
|
18320
18301
|
error: Q,
|
|
18321
18302
|
showInfo: Nt(se, ye),
|
|
18322
18303
|
inputId: i ?? o,
|
|
18323
18304
|
infoData: B,
|
|
18324
18305
|
helpTag: C,
|
|
18325
|
-
hideIconRight:
|
|
18306
|
+
hideIconRight: L
|
|
18326
18307
|
});
|
|
18327
18308
|
function gt(pe) {
|
|
18328
18309
|
te(!0), B ? setTimeout(() => {
|
|
@@ -18394,7 +18375,7 @@ function U_({
|
|
|
18394
18375
|
type: "text",
|
|
18395
18376
|
maxLength: typeof x == "number" ? x : void 0,
|
|
18396
18377
|
minLength: typeof A == "number" ? A : void 0,
|
|
18397
|
-
readOnly:
|
|
18378
|
+
readOnly: D,
|
|
18398
18379
|
autoFocus: S,
|
|
18399
18380
|
form: w,
|
|
18400
18381
|
title: H,
|
|
@@ -18493,7 +18474,7 @@ function q_({
|
|
|
18493
18474
|
onFocus: N,
|
|
18494
18475
|
...x
|
|
18495
18476
|
}) {
|
|
18496
|
-
let [A, T] = b.useState(!1), [M,
|
|
18477
|
+
let [A, T] = b.useState(!1), [M, D] = b.useState(!1), [O, L] = b.useState(!1), [H, P] = b.useState(!1), { defaults: j } = b.useContext(Xe), _ = c ?? j.input.size, W = u ?? j.input.direction, B = typeof v == "string" ? v : v({ value: t, touched: M, focused: O, required: s, disabled: d, readonly: h }), $ = typeof k == "string" ? k : k(t), [U, Y, Z] = or({
|
|
18497
18478
|
icon: n,
|
|
18498
18479
|
error: B,
|
|
18499
18480
|
showInfo: Nt(O, H),
|
|
@@ -18506,13 +18487,13 @@ function q_({
|
|
|
18506
18487
|
w && w(ne);
|
|
18507
18488
|
}
|
|
18508
18489
|
function q(ne) {
|
|
18509
|
-
|
|
18490
|
+
D(!0), E ? setTimeout(() => {
|
|
18510
18491
|
const te = document.getElementById(i ?? r);
|
|
18511
|
-
document.activeElement !== te && (
|
|
18512
|
-
}, cn) : (C && C(ne),
|
|
18492
|
+
document.activeElement !== te && (L(!1), C && C(ne));
|
|
18493
|
+
}, cn) : (C && C(ne), L(!1));
|
|
18513
18494
|
}
|
|
18514
18495
|
function ee(ne) {
|
|
18515
|
-
N && N(ne, S),
|
|
18496
|
+
N && N(ne, S), L(!0);
|
|
18516
18497
|
}
|
|
18517
18498
|
return /* @__PURE__ */ I(
|
|
18518
18499
|
un,
|
|
@@ -29849,12 +29830,12 @@ function G6(t) {
|
|
|
29849
29830
|
K6(N, o.find, s).forEach((A) => {
|
|
29850
29831
|
if (A.index === void 0)
|
|
29851
29832
|
return;
|
|
29852
|
-
const T = w + A.index + 1, M = T + A[0].length,
|
|
29833
|
+
const T = w + A.index + 1, M = T + A[0].length, D = {
|
|
29853
29834
|
from: n.tr.mapping.map(T),
|
|
29854
29835
|
to: n.tr.mapping.map(M)
|
|
29855
29836
|
}, O = o.handler({
|
|
29856
29837
|
state: n,
|
|
29857
|
-
range:
|
|
29838
|
+
range: D,
|
|
29858
29839
|
match: A,
|
|
29859
29840
|
commands: l,
|
|
29860
29841
|
chain: c,
|
|
@@ -31646,29 +31627,29 @@ function a5(t) {
|
|
|
31646
31627
|
if (M)
|
|
31647
31628
|
S += 1;
|
|
31648
31629
|
else if (S -= 1, S === 0) {
|
|
31649
|
-
const
|
|
31650
|
-
C =
|
|
31630
|
+
const D = x.slice(0, T);
|
|
31631
|
+
C = D.trim();
|
|
31651
31632
|
const O = f.slice(0, w + T + A[0].length);
|
|
31652
|
-
let
|
|
31633
|
+
let L = [];
|
|
31653
31634
|
if (C)
|
|
31654
31635
|
if (a === "block")
|
|
31655
|
-
for (
|
|
31636
|
+
for (L = h.blockTokens(D), L.forEach((H) => {
|
|
31656
31637
|
H.text && (!H.tokens || H.tokens.length === 0) && (H.tokens = h.inlineTokens(H.text));
|
|
31657
|
-
});
|
|
31658
|
-
const H =
|
|
31638
|
+
}); L.length > 0; ) {
|
|
31639
|
+
const H = L[L.length - 1];
|
|
31659
31640
|
if (H.type === "paragraph" && (!H.text || H.text.trim() === ""))
|
|
31660
|
-
|
|
31641
|
+
L.pop();
|
|
31661
31642
|
else
|
|
31662
31643
|
break;
|
|
31663
31644
|
}
|
|
31664
31645
|
else
|
|
31665
|
-
|
|
31646
|
+
L = h.inlineTokens(C);
|
|
31666
31647
|
return {
|
|
31667
31648
|
type: e,
|
|
31668
31649
|
raw: O,
|
|
31669
31650
|
attributes: E,
|
|
31670
31651
|
content: C,
|
|
31671
|
-
tokens:
|
|
31652
|
+
tokens: L
|
|
31672
31653
|
};
|
|
31673
31654
|
}
|
|
31674
31655
|
}
|
|
@@ -35767,13 +35748,13 @@ function G7({
|
|
|
35767
35748
|
[dc, hc]
|
|
35768
35749
|
// <>
|
|
35769
35750
|
];
|
|
35770
|
-
for (let
|
|
35771
|
-
const [O,
|
|
35772
|
-
V(C, O, H), V(H,
|
|
35751
|
+
for (let D = 0; D < M.length; D++) {
|
|
35752
|
+
const [O, L] = M[D], H = V(w, O);
|
|
35753
|
+
V(C, O, H), V(H, L, w);
|
|
35773
35754
|
const P = xn(sl);
|
|
35774
35755
|
Re(H, e, P);
|
|
35775
35756
|
const j = xn();
|
|
35776
|
-
Re(H, n), Re(P, e, P), Re(P, n, j), Re(j, e, P), Re(j, n, j), V(P,
|
|
35757
|
+
Re(H, n), Re(P, e, P), Re(P, n, j), Re(j, e, P), Re(j, n, j), V(P, L, w), V(j, L, w);
|
|
35777
35758
|
}
|
|
35778
35759
|
return V(i, Ys, k), V(i, Ip, K7), {
|
|
35779
35760
|
start: i,
|
|
@@ -38789,9 +38770,9 @@ function X_({
|
|
|
38789
38770
|
labelHidden: A = !1,
|
|
38790
38771
|
loading: T = !1,
|
|
38791
38772
|
infoData: M,
|
|
38792
|
-
onValueChanged:
|
|
38773
|
+
onValueChanged: D,
|
|
38793
38774
|
onChange: O,
|
|
38794
|
-
onBlur:
|
|
38775
|
+
onBlur: L,
|
|
38795
38776
|
onFocus: H,
|
|
38796
38777
|
onKeyDown: P,
|
|
38797
38778
|
onKeyUp: j
|
|
@@ -38799,16 +38780,16 @@ function X_({
|
|
|
38799
38780
|
let [_, W] = b.useState(!1), [B, $] = b.useState(!1), [U, Y] = b.useState(!1), { defaults: Z } = b.useContext(Xe), X = S ?? Z.input.size, q = C ?? Z.input.direction, ee = w ?? Z.input.alignment, ne = `textarea ${tt(X)} ${Kt(ee)}`.trim(), te = k ? typeof k == "number" ? k : +k : void 0, se = v ? typeof v == "number" ? v : +v : void 0, Ae = typeof n == "string" ? n : n({ value: t, touched: _, focused: B, required: l, disabled: d, readonly: p }), ye = typeof r == "string" ? r : r(t), De = hi(M, Nt(U, B)) ? /* @__PURE__ */ g("span", { className: "mx-1", children: Zi(M, () => {
|
|
38800
38781
|
}, i) }) : void 0;
|
|
38801
38782
|
function F(Te) {
|
|
38802
|
-
|
|
38783
|
+
L && L(Te), M ? setTimeout(() => {
|
|
38803
38784
|
const Le = document.getElementById(o ?? s);
|
|
38804
|
-
document.activeElement !== Le && ($(!1),
|
|
38805
|
-
}, cn) : (
|
|
38785
|
+
document.activeElement !== Le && ($(!1), L && L(Te));
|
|
38786
|
+
}, cn) : (L && L(Te), $(!1));
|
|
38806
38787
|
}
|
|
38807
38788
|
function ve(Te) {
|
|
38808
38789
|
W(!0), H && H(Te, i), $(!0);
|
|
38809
38790
|
}
|
|
38810
38791
|
function ke(Te) {
|
|
38811
|
-
_ || W(!0), O && O(Te),
|
|
38792
|
+
_ || W(!0), O && O(Te), D && D(Te.target.value);
|
|
38812
38793
|
}
|
|
38813
38794
|
return /* @__PURE__ */ I(
|
|
38814
38795
|
un,
|
|
@@ -38919,9 +38900,9 @@ function Z_({
|
|
|
38919
38900
|
labelHidden: A = !1,
|
|
38920
38901
|
loading: T = !1,
|
|
38921
38902
|
value: M,
|
|
38922
|
-
icon:
|
|
38903
|
+
icon: D = Lc,
|
|
38923
38904
|
groupBy: O = 4,
|
|
38924
|
-
divider:
|
|
38905
|
+
divider: L = " ",
|
|
38925
38906
|
name: H,
|
|
38926
38907
|
label: P,
|
|
38927
38908
|
id: j,
|
|
@@ -38933,7 +38914,7 @@ function Z_({
|
|
|
38933
38914
|
let [$, U] = b.useState(!1), [Y, Z] = b.useState(!1), [X, q] = b.useState(!1), [ee, ne] = b.useState(""), { defaults: te } = b.useContext(Xe), se = typeof n == "string" ? n : n({ value: M, touched: $, focused: Y, required: s, disabled: i, readonly: d }), Ae = typeof r == "string" ? r : r(M), ye = w ?? te.input.size, De = N ?? te.input.direction, F = C ?? te.input.alignment, ve = n ? "input is-danger" : "input";
|
|
38934
38915
|
ve += tt(ye), ve += Kt(F), Y && (ve += " is-focused"), d && (ve += " is-static");
|
|
38935
38916
|
let [ke, Te, Le] = or({
|
|
38936
|
-
icon:
|
|
38917
|
+
icon: D,
|
|
38937
38918
|
error: se,
|
|
38938
38919
|
showInfo: Nt(Y, X),
|
|
38939
38920
|
inputId: j ?? H,
|
|
@@ -38947,7 +38928,7 @@ function Z_({
|
|
|
38947
38928
|
}, [M, O]);
|
|
38948
38929
|
function Pe(Q) {
|
|
38949
38930
|
v && v(Q);
|
|
38950
|
-
let ue = Q.target.value.replaceAll(
|
|
38931
|
+
let ue = Q.target.value.replaceAll(L, "") ?? "";
|
|
38951
38932
|
W && W(ue);
|
|
38952
38933
|
}
|
|
38953
38934
|
function Ce(Q) {
|
|
@@ -38955,18 +38936,18 @@ function Z_({
|
|
|
38955
38936
|
let ue = "";
|
|
38956
38937
|
if (typeof O == "number") {
|
|
38957
38938
|
let le = new RegExp(`(.{1,${O}})`, "g");
|
|
38958
|
-
ue = Q.replaceAll(
|
|
38939
|
+
ue = Q.replaceAll(L, "").replace(le, `$1${L}`).trim();
|
|
38959
38940
|
} else if (typeof O == "string") {
|
|
38960
38941
|
let le = 0;
|
|
38961
|
-
ue = Q.replaceAll(
|
|
38942
|
+
ue = Q.replaceAll(L, "").split("").map((Be, Ie) => O.charAt(Ie + le) === L ? (le++, L + Be) : Be).join("");
|
|
38962
38943
|
} else {
|
|
38963
38944
|
let le = 0, Be = 0;
|
|
38964
|
-
ue = Q.replaceAll(
|
|
38945
|
+
ue = Q.replaceAll(L, "").split("").map((Ie) => {
|
|
38965
38946
|
let gt = O[le % O.length];
|
|
38966
|
-
return gt === void 0 ? Ie : Be < gt - 1 ? (Be++, Ie) : (le++, Be = 0, Ie +
|
|
38947
|
+
return gt === void 0 ? Ie : Be < gt - 1 ? (Be++, Ie) : (le++, Be = 0, Ie + L);
|
|
38967
38948
|
}).join("");
|
|
38968
38949
|
}
|
|
38969
|
-
return ue.endsWith(
|
|
38950
|
+
return ue.endsWith(L) && (ue = ue.slice(0, L.length * -1)), _ === "uppercase" || _ === "upper" ? ue = ue.toLocaleUpperCase() : _ === "lowercase" || _ === "lower" ? ue = ue.toLocaleLowerCase() : _ === "capitalize" && (ue = ue.charAt(0).toUpperCase() + ue.slice(1).toLowerCase()), B(ue);
|
|
38970
38951
|
}
|
|
38971
38952
|
function oe(Q) {
|
|
38972
38953
|
Z(!0), k && k(Q, e);
|
|
@@ -39056,10 +39037,10 @@ function Q_({
|
|
|
39056
39037
|
onFocus: x,
|
|
39057
39038
|
...A
|
|
39058
39039
|
}) {
|
|
39059
|
-
let [T, M] = b.useState(t?.toString() ?? ""), [
|
|
39040
|
+
let [T, M] = b.useState(t?.toString() ?? ""), [D, O] = b.useState(!1), [L, H] = b.useState(!1), [P, j] = b.useState(!1), { defaults: _ } = b.useContext(Xe), W = typeof S == "string" ? S : S({ value: t, touched: D, focused: L, required: u, disabled: f, readonly: d }), B = typeof w == "string" ? w : w(t), $ = l ?? _.input.size, U = a ?? _.input.direction, Y = c ?? _.input.alignment, Z = o ?? i + "-id", [X, q, ee] = or({
|
|
39060
39041
|
icon: r,
|
|
39061
39042
|
error: W,
|
|
39062
|
-
showInfo: Nt(
|
|
39043
|
+
showInfo: Nt(L, P),
|
|
39063
39044
|
inputId: Z ?? i,
|
|
39064
39045
|
infoData: k,
|
|
39065
39046
|
helpTag: E,
|
|
@@ -39124,7 +39105,7 @@ function Q_({
|
|
|
39124
39105
|
] }),
|
|
39125
39106
|
q,
|
|
39126
39107
|
ee,
|
|
39127
|
-
W.length > 0 &&
|
|
39108
|
+
W.length > 0 && D && /* @__PURE__ */ g("p", { className: "help is-danger", children: W }),
|
|
39128
39109
|
B.length > 0 && /* @__PURE__ */ g("p", { className: "help is-info", children: B })
|
|
39129
39110
|
]
|
|
39130
39111
|
}
|
|
@@ -39159,9 +39140,9 @@ function e9({
|
|
|
39159
39140
|
onValueChanged: A,
|
|
39160
39141
|
direction: T,
|
|
39161
39142
|
labelHidden: M = !1,
|
|
39162
|
-
infoData:
|
|
39143
|
+
infoData: D
|
|
39163
39144
|
}) {
|
|
39164
|
-
let [O,
|
|
39145
|
+
let [O, L] = b.useState(!1), [H, P] = b.useState(!1), [j, _] = b.useState(!1), { defaults: W } = b.useContext(Xe), B = h ?? W.input.size, $ = T ?? W.input.direction, U = typeof a == "string" ? a : a({ value: t, touched: O, focused: j, required: p, disabled: u, readonly: v }), Y = typeof l == "string" ? l : l(t), Z = hi(D, Nt(j, H)) ? /* @__PURE__ */ g("span", { className: "mx-1", children: Zi(D, () => {
|
|
39165
39146
|
}, s) }) : void 0, X = b.useMemo(
|
|
39166
39147
|
() => ({
|
|
39167
39148
|
width: "100%",
|
|
@@ -39176,16 +39157,16 @@ function e9({
|
|
|
39176
39157
|
[t, i, o, n, e]
|
|
39177
39158
|
);
|
|
39178
39159
|
function q(te) {
|
|
39179
|
-
|
|
39160
|
+
D ? setTimeout(() => {
|
|
39180
39161
|
const se = document.getElementById(y ?? d);
|
|
39181
39162
|
document.activeElement !== se && (_(!1), S && S(te));
|
|
39182
39163
|
}, cn) : (S && S(te), _(!1));
|
|
39183
39164
|
}
|
|
39184
39165
|
function ee(te) {
|
|
39185
|
-
|
|
39166
|
+
L(!0), C && C(te, s), _(!0);
|
|
39186
39167
|
}
|
|
39187
39168
|
function ne(te) {
|
|
39188
|
-
u || (O ||
|
|
39169
|
+
u || (O || L(!0), w && w(te), A && A(te.target.valueAsNumber));
|
|
39189
39170
|
}
|
|
39190
39171
|
return /* @__PURE__ */ I(
|
|
39191
39172
|
un,
|
|
@@ -39343,9 +39324,9 @@ function i9({
|
|
|
39343
39324
|
onFocus: A,
|
|
39344
39325
|
onKeyDown: T,
|
|
39345
39326
|
onKeyUp: M,
|
|
39346
|
-
onValueChanged:
|
|
39327
|
+
onValueChanged: D,
|
|
39347
39328
|
size: O,
|
|
39348
|
-
alignment:
|
|
39329
|
+
alignment: L,
|
|
39349
39330
|
direction: H,
|
|
39350
39331
|
value: P = { files: [], path: "" },
|
|
39351
39332
|
icon: j = Im,
|
|
@@ -39357,7 +39338,7 @@ function i9({
|
|
|
39357
39338
|
infoData: Y,
|
|
39358
39339
|
formatter: Z = (X) => X.files.length > 0 ? X.files.map((q) => q.name).join(", ") : $
|
|
39359
39340
|
}) {
|
|
39360
|
-
let [X, q] = b.useState(!1), [ee, ne] = b.useState(!1), [te, se] = b.useState(!1), { defaults: Ae } = b.useContext(Xe), ye = O ?? Ae.input.size, De = H ?? Ae.input.direction, F =
|
|
39341
|
+
let [X, q] = b.useState(!1), [ee, ne] = b.useState(!1), [te, se] = b.useState(!1), { defaults: Ae } = b.useContext(Xe), ye = O ?? Ae.input.size, De = H ?? Ae.input.direction, F = L ?? Ae.input.alignment, ve = "file has-name";
|
|
39361
39342
|
_ ? ve += " is-boxed" : ve += " is-fullwidth", ve += tt(ye), ve += Kt(F);
|
|
39362
39343
|
let ke = Z(P), Te, Le = hi(Y, Nt(ee, te)) ? /* @__PURE__ */ g("span", { className: "mx-1", children: Zi(Y, () => {
|
|
39363
39344
|
}, r) }) : void 0, Pe = typeof i == "string" ? i : i({ value: P, touched: X, focused: ee, required: f, disabled: a, readonly: k }), Ce = typeof o == "string" ? o : o(ke);
|
|
@@ -39373,7 +39354,7 @@ function i9({
|
|
|
39373
39354
|
}
|
|
39374
39355
|
function Ne(Q) {
|
|
39375
39356
|
let ue = Array.from(Q.target.files ?? []), le = Q.target.value;
|
|
39376
|
-
X || q(!0), x && x(Q),
|
|
39357
|
+
X || q(!0), x && x(Q), D && D({ files: ue, path: le });
|
|
39377
39358
|
}
|
|
39378
39359
|
return /* @__PURE__ */ I(
|
|
39379
39360
|
un,
|
|
@@ -39491,9 +39472,9 @@ function KB({
|
|
|
39491
39472
|
else {
|
|
39492
39473
|
let w = r.toLowerCase(), x = i.toLowerCase().substring(0, n).split(ft).filter((W) => w.indexOf(W) !== -1);
|
|
39493
39474
|
S = x[x.length - 1];
|
|
39494
|
-
let A = e.substring(0, x.length).split(ft).filter((W) => W !== o).length, M = s.substring(0, x.length).split(ft).filter((W) => W !== o).length !== A,
|
|
39495
|
-
!p && (M ||
|
|
39496
|
-
let
|
|
39475
|
+
let A = e.substring(0, x.length).split(ft).filter((W) => W !== o).length, M = s.substring(0, x.length).split(ft).filter((W) => W !== o).length !== A, D = e[x.length - 1] !== void 0 && s[x.length - 2] !== void 0 && e[x.length - 1] !== o && e[x.length - 1] !== s[x.length - 1] && e[x.length - 1] === s[x.length - 2];
|
|
39476
|
+
!p && (M || D) && A > 0 && (s ?? "").indexOf(S ?? "") > -1 && i[n] !== void 0 && (E = !0, S = i[n]);
|
|
39477
|
+
let L = a.map((W) => w[W]).filter((W) => W === S).length, H = x.filter((W) => W === S).length, j = s.substring(0, s.indexOf(o)).split(ft).filter((W, B) => W === S && i[B] !== W).length + H + L + (E ? 1 : 0), _ = 0;
|
|
39497
39478
|
for (let W = 0; W < d; W++) {
|
|
39498
39479
|
let B = w[W];
|
|
39499
39480
|
if (k = W + 1, B === S && _++, _ >= j) break;
|
|
@@ -39556,10 +39537,10 @@ function qS(t = ft, e, n = {}) {
|
|
|
39556
39537
|
else {
|
|
39557
39538
|
let A = k.length, T = null;
|
|
39558
39539
|
for (let M = 0; M < A; M++) {
|
|
39559
|
-
let
|
|
39560
|
-
if (
|
|
39561
|
-
if (
|
|
39562
|
-
if (
|
|
39540
|
+
let D = k[M];
|
|
39541
|
+
if (D) {
|
|
39542
|
+
if (D.char !== o && D.isNew === !1) break;
|
|
39543
|
+
if (D.char === o) {
|
|
39563
39544
|
T = M;
|
|
39564
39545
|
break;
|
|
39565
39546
|
}
|
|
@@ -39753,9 +39734,9 @@ function o9({
|
|
|
39753
39734
|
onChange: A,
|
|
39754
39735
|
onFocus: T,
|
|
39755
39736
|
onKeyDown: M,
|
|
39756
|
-
onKeyUp:
|
|
39737
|
+
onKeyUp: D,
|
|
39757
39738
|
onValueChanged: O,
|
|
39758
|
-
onStringValueChanged:
|
|
39739
|
+
onStringValueChanged: L,
|
|
39759
39740
|
size: H,
|
|
39760
39741
|
alignment: P,
|
|
39761
39742
|
direction: j,
|
|
@@ -39812,7 +39793,7 @@ function o9({
|
|
|
39812
39793
|
function fn(qe) {
|
|
39813
39794
|
ne || te(!0), A && A(qe);
|
|
39814
39795
|
let yt = qe.target.value ?? "";
|
|
39815
|
-
|
|
39796
|
+
L && L(yt);
|
|
39816
39797
|
let pe = parseFloat(yt.replaceAll(X, "").replace(Z, "."));
|
|
39817
39798
|
ve(yt), !isNaN(pe) && !yt.endsWith(Z) && (Te(pe), O && O(pe));
|
|
39818
39799
|
}
|
|
@@ -39860,7 +39841,7 @@ function o9({
|
|
|
39860
39841
|
form: N,
|
|
39861
39842
|
ref: v,
|
|
39862
39843
|
onKeyDown: M,
|
|
39863
|
-
onKeyUp:
|
|
39844
|
+
onKeyUp: D,
|
|
39864
39845
|
onFocus: gt,
|
|
39865
39846
|
onBlur: Ie,
|
|
39866
39847
|
onChange: fn
|
|
@@ -40728,8 +40709,8 @@ function S9({ db: t = "lbr-default-db", store: e = "lbr-default-store", version:
|
|
|
40728
40709
|
}
|
|
40729
40710
|
async function u(E, S, w) {
|
|
40730
40711
|
return new Promise((C, N) => {
|
|
40731
|
-
let { key: x, store: A, value: T } = k(E, S, w),
|
|
40732
|
-
|
|
40712
|
+
let { key: x, store: A, value: T } = k(E, S, w), D = v(A, "readwrite").put(T, x);
|
|
40713
|
+
D.onsuccess = () => C(!0), D.onerror = (O) => {
|
|
40733
40714
|
N(new Error(`iDB "${t}" write error: ${O.target.error}`, { cause: O.target.error }));
|
|
40734
40715
|
};
|
|
40735
40716
|
});
|
|
@@ -40737,11 +40718,11 @@ function S9({ db: t = "lbr-default-db", store: e = "lbr-default-store", version:
|
|
|
40737
40718
|
async function f(E, S, w) {
|
|
40738
40719
|
return new Promise((C, N) => {
|
|
40739
40720
|
let { key: x, store: A } = k(E, void 0, S), M = v(A, "readonly").get(x);
|
|
40740
|
-
M.onsuccess = (
|
|
40741
|
-
let O =
|
|
40721
|
+
M.onsuccess = (D) => {
|
|
40722
|
+
let O = D.target.result;
|
|
40742
40723
|
C(O || (w ?? null));
|
|
40743
|
-
}, M.onerror = (
|
|
40744
|
-
N(new Error(`iDB "${t}" read error: ${
|
|
40724
|
+
}, M.onerror = (D) => {
|
|
40725
|
+
N(new Error(`iDB "${t}" read error: ${D.target.error}`));
|
|
40745
40726
|
};
|
|
40746
40727
|
});
|
|
40747
40728
|
}
|