@dexma/ui-components 8.0.49 → 8.0.50
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/ui-components.es.js +137 -121
- package/dist/ui-components.umd.js +13 -1
- package/package.json +1 -1
package/dist/ui-components.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as p from "react";
|
|
2
|
-
import ie, { useRef as it, useContext as kt, useMemo as gr, useDebugValue as l7, createElement as lF, forwardRef as jr, createContext as Yd, useState as It, isValidElement as E1, useLayoutEffect as u0, useEffect as
|
|
3
|
-
import { jsx as Ee, jsxs as
|
|
2
|
+
import ie, { useRef as it, useContext as kt, useMemo as gr, useDebugValue as l7, createElement as lF, forwardRef as jr, createContext as Yd, useState as It, isValidElement as E1, useLayoutEffect as u0, useEffect as Wt, Children as sF, createRef as cF, useCallback as Ba, useImperativeHandle as yl, cloneElement as Is, Component as Js, PureComponent as K1 } from "react";
|
|
3
|
+
import { jsx as Ee, jsxs as Zt, Fragment as ga } from "react/jsx-runtime";
|
|
4
4
|
import Ea from "highcharts";
|
|
5
5
|
import * as dF from "react-dom";
|
|
6
6
|
import f0, { createPortal as uF, unstable_batchedUpdates as KE, flushSync as M1 } from "react-dom";
|
|
@@ -3957,7 +3957,7 @@ const Y9 = /* @__PURE__ */ dn(Vte), jte = (e) => {
|
|
|
3957
3957
|
overflow: hidden;
|
|
3958
3958
|
`, o4 = Yd(""), Yte = (e) => {
|
|
3959
3959
|
const { children: t, dataId: n } = e;
|
|
3960
|
-
return /* @__PURE__ */
|
|
3960
|
+
return /* @__PURE__ */ Zt(o4.Provider, { value: n, children: [
|
|
3961
3961
|
" ",
|
|
3962
3962
|
t,
|
|
3963
3963
|
" "
|
|
@@ -3977,9 +3977,9 @@ const ca = (e, t) => jr(({ dataId: r, ...a }, i) => {
|
|
|
3977
3977
|
}, M = (R) => {
|
|
3978
3978
|
m && m(R);
|
|
3979
3979
|
};
|
|
3980
|
-
return /* @__PURE__ */
|
|
3980
|
+
return /* @__PURE__ */ Zt(ga, { children: [
|
|
3981
3981
|
/* @__PURE__ */ Ee(Bte, { htmlFor: "input-element", children: u }),
|
|
3982
|
-
/* @__PURE__ */
|
|
3982
|
+
/* @__PURE__ */ Zt(
|
|
3983
3983
|
zte,
|
|
3984
3984
|
{
|
|
3985
3985
|
role: b ? "search" : void 0,
|
|
@@ -4165,8 +4165,8 @@ const ca = (e, t) => jr(({ dataId: r, ...a }, i) => {
|
|
|
4165
4165
|
const h = (v) => {
|
|
4166
4166
|
u(!0), l && l(v);
|
|
4167
4167
|
}, b = (v) => /* @__PURE__ */ Ee("span", { "data-testid": "alert-description", className: "description", children: v });
|
|
4168
|
-
return d ? null : /* @__PURE__ */
|
|
4169
|
-
/* @__PURE__ */
|
|
4168
|
+
return d ? null : /* @__PURE__ */ Zt(Zte, { "data-testid": "alert", role: "alert", $showIcon: a, $type: e, $description: r, $message: n, theme: c, "aria-live": i, ...s, children: [
|
|
4169
|
+
/* @__PURE__ */ Zt("span", { "data-testid": "alert-message", className: "message", children: [
|
|
4170
4170
|
a && /* @__PURE__ */ Ee(
|
|
4171
4171
|
jn,
|
|
4172
4172
|
{
|
|
@@ -8002,7 +8002,7 @@ const mke = ["primary", "secondary", "outline", "destructive", "link", "icon", "
|
|
|
8002
8002
|
kind: f = "button",
|
|
8003
8003
|
...h
|
|
8004
8004
|
}, b) => {
|
|
8005
|
-
const v = kt(gn) || yn, m = L1.omit(h, ["refs", "iconAfter", "iconBefore", "iconAriaLabel", "iconColor", "text"]), C = Ce(i && "expanded", e), y = s && s > 0 && r ? bne(r, s) : r, x = nR(l), S = yne(l), w = f.includes("icon"), M = h.text, { iconColor: R } = h, { iconAfter: $ } = h, { iconBefore: P } = h, { iconAriaLabel: T } = h, A = () => /* @__PURE__ */
|
|
8005
|
+
const v = kt(gn) || yn, m = L1.omit(h, ["refs", "iconAfter", "iconBefore", "iconAriaLabel", "iconColor", "text"]), C = Ce(i && "expanded", e), y = s && s > 0 && r ? bne(r, s) : r, x = nR(l), S = yne(l), w = f.includes("icon"), M = h.text, { iconColor: R } = h, { iconAfter: $ } = h, { iconBefore: P } = h, { iconAriaLabel: T } = h, A = () => /* @__PURE__ */ Zt(
|
|
8006
8006
|
X1,
|
|
8007
8007
|
{
|
|
8008
8008
|
ref: b,
|
|
@@ -8181,19 +8181,19 @@ const mke = ["primary", "secondary", "outline", "destructive", "link", "icon", "
|
|
|
8181
8181
|
${(e) => LR(e)};
|
|
8182
8182
|
`, Sne = _t.a`
|
|
8183
8183
|
${(e) => LR(e)};
|
|
8184
|
-
`, Ene = ({ image: e, icon: t, iconAriaLabel: n, imageAlt: r }) => !e && !t ? null : /* @__PURE__ */
|
|
8184
|
+
`, Ene = ({ image: e, icon: t, iconAriaLabel: n, imageAlt: r }) => !e && !t ? null : /* @__PURE__ */ Zt("div", { className: "card-header", "data-testid": "card-header", children: [
|
|
8185
8185
|
e && !t && /* @__PURE__ */ Ee("img", { alt: r, src: e, className: "card-img card-img-top", "data-testid": "card-image" }),
|
|
8186
8186
|
t && !e && /* @__PURE__ */ Ee(jn, { name: t, "data-testid": "card-icon", ariaLabel: n || `${t} icon` })
|
|
8187
|
-
] }), h6 = ({ title: e, subtitle: t, description: n }) => !e && !t && !n ? null : /* @__PURE__ */
|
|
8187
|
+
] }), h6 = ({ title: e, subtitle: t, description: n }) => !e && !t && !n ? null : /* @__PURE__ */ Zt("div", { className: "card-body", "data-testid": "card-body", children: [
|
|
8188
8188
|
e && /* @__PURE__ */ Ee("h3", { className: "card-title", children: e }),
|
|
8189
8189
|
t && /* @__PURE__ */ Ee("p", { className: "card-subtitle", children: t }),
|
|
8190
8190
|
n && /* @__PURE__ */ Ee(TEe, { children: n })
|
|
8191
|
-
] }), g6 = ({ footer: e }) => e ? /* @__PURE__ */ Ee("div", { className: "card-footer", "data-testid": "card-footer", children: e }) : null, m6 = ({ image: e, icon: t, isHorizontal: n, title: r, subtitle: a, description: i, footer: o, iconAriaLabel: l, imageAlt: s }) => /* @__PURE__ */
|
|
8191
|
+
] }), g6 = ({ footer: e }) => e ? /* @__PURE__ */ Ee("div", { className: "card-footer", "data-testid": "card-footer", children: e }) : null, m6 = ({ image: e, icon: t, isHorizontal: n, title: r, subtitle: a, description: i, footer: o, iconAriaLabel: l, imageAlt: s }) => /* @__PURE__ */ Zt(ga, { children: [
|
|
8192
8192
|
/* @__PURE__ */ Ee(Ene, { image: e, icon: t, iconAriaLabel: l, imageAlt: s }),
|
|
8193
|
-
n ? /* @__PURE__ */
|
|
8193
|
+
n ? /* @__PURE__ */ Zt("div", { className: "horizontal", children: [
|
|
8194
8194
|
/* @__PURE__ */ Ee(h6, { title: r, subtitle: a, description: i }),
|
|
8195
8195
|
/* @__PURE__ */ Ee(g6, { footer: o })
|
|
8196
|
-
] }) : /* @__PURE__ */
|
|
8196
|
+
] }) : /* @__PURE__ */ Zt(ga, { children: [
|
|
8197
8197
|
/* @__PURE__ */ Ee(h6, { title: r, subtitle: a, description: i }),
|
|
8198
8198
|
/* @__PURE__ */ Ee(g6, { footer: o })
|
|
8199
8199
|
] })
|
|
@@ -12153,7 +12153,7 @@ const Cie = function(e) {
|
|
|
12153
12153
|
};
|
|
12154
12154
|
}, []), [r, n];
|
|
12155
12155
|
};
|
|
12156
|
-
var z$ = Zr() ? u0 :
|
|
12156
|
+
var z$ = Zr() ? u0 : Wt;
|
|
12157
12157
|
const xie = function() {
|
|
12158
12158
|
var e = p.useRef(null);
|
|
12159
12159
|
function t() {
|
|
@@ -12261,18 +12261,18 @@ function Rie(e, t, n, r) {
|
|
|
12261
12261
|
var ve = J(fe);
|
|
12262
12262
|
fe && (e || ve[io]) ? (H(fe), ae()) : H(Zl), ne.current = t;
|
|
12263
12263
|
}
|
|
12264
|
-
}, [t]),
|
|
12264
|
+
}, [t]), Wt(function() {
|
|
12265
12265
|
// Cancel appear
|
|
12266
12266
|
(F === wh && !l || // Cancel enter
|
|
12267
12267
|
F === Sh && !i || // Cancel leave
|
|
12268
12268
|
F === Eh && !c) && H(Zl);
|
|
12269
|
-
}, [l, i, c]),
|
|
12269
|
+
}, [l, i, c]), Wt(function() {
|
|
12270
12270
|
return function() {
|
|
12271
12271
|
z.current = !1, clearTimeout(Y.current);
|
|
12272
12272
|
};
|
|
12273
12273
|
}, []);
|
|
12274
12274
|
var ue = p.useRef(!1);
|
|
12275
|
-
|
|
12275
|
+
Wt(function() {
|
|
12276
12276
|
A && (ue.current = !0), A !== void 0 && F === Zl && ((ue.current || A) && ($ == null || $(A)), ue.current = !0);
|
|
12277
12277
|
}, [A, F]);
|
|
12278
12278
|
var oe = V;
|
|
@@ -12855,7 +12855,7 @@ var Xie = `
|
|
|
12855
12855
|
var n = kt(g4), r = n.csp, a = n.prefixCls, i = n.layer, o = Xie;
|
|
12856
12856
|
a && (o = o.replace(/anticon/g, a)), i && (o = "@layer ".concat(i, ` {
|
|
12857
12857
|
`).concat(o, `
|
|
12858
|
-
}`)),
|
|
12858
|
+
}`)), Wt(function() {
|
|
12859
12859
|
var l = t.current, s = I0(l);
|
|
12860
12860
|
Jl(o, "@ant-design-icons", {
|
|
12861
12861
|
prepend: !i,
|
|
@@ -15103,7 +15103,7 @@ const xle = (e, t) => {
|
|
|
15103
15103
|
direction: $,
|
|
15104
15104
|
button: P
|
|
15105
15105
|
} = kt(jt), T = M("btn", i), [A, O] = fle(T), I = kt(Aa), L = u ?? I, D = kt(lL), H = gr(() => Cle(a), [a]), [N, k] = It(H.loading), [V, _] = It(!1), z = ki(t, /* @__PURE__ */ cF()), Y = sF.count(b) === 1 && !v && !Rh(o);
|
|
15106
|
-
|
|
15106
|
+
Wt(() => {
|
|
15107
15107
|
let oe = null;
|
|
15108
15108
|
H.delay > 0 ? oe = setTimeout(() => {
|
|
15109
15109
|
oe = null, k(!0);
|
|
@@ -15112,7 +15112,7 @@ const xle = (e, t) => {
|
|
|
15112
15112
|
oe && (clearTimeout(oe), oe = null);
|
|
15113
15113
|
}
|
|
15114
15114
|
return se;
|
|
15115
|
-
}, [H]),
|
|
15115
|
+
}, [H]), Wt(() => {
|
|
15116
15116
|
if (!z || !z.current || R === !1)
|
|
15117
15117
|
return;
|
|
15118
15118
|
const oe = z.current.textContent;
|
|
@@ -15648,9 +15648,9 @@ function Tle(e) {
|
|
|
15648
15648
|
}
|
|
15649
15649
|
i && K.keyCode === He.TAB && N.current.changeActive(!K.shiftKey);
|
|
15650
15650
|
}
|
|
15651
|
-
return
|
|
15651
|
+
return Wt(function() {
|
|
15652
15652
|
i && (F(!0), Y());
|
|
15653
|
-
}, [i]),
|
|
15653
|
+
}, [i]), Wt(function() {
|
|
15654
15654
|
return function() {
|
|
15655
15655
|
clearTimeout(X.current);
|
|
15656
15656
|
};
|
|
@@ -17747,7 +17747,7 @@ function Ose() {
|
|
|
17747
17747
|
var v = kt(Id), m = s || v, C = m && m._init;
|
|
17748
17748
|
process.env.NODE_ENV !== "production" && ot(t.length === 2 ? s ? C : !0 : C, "useWatch requires a form instance since it can not auto detect from context.");
|
|
17749
17749
|
var y = Vr(a), x = it(y);
|
|
17750
|
-
return x.current = y, Pse(y),
|
|
17750
|
+
return x.current = y, Pse(y), Wt(
|
|
17751
17751
|
function() {
|
|
17752
17752
|
if (C) {
|
|
17753
17753
|
var S = m.getFieldsValue, w = m.getInternalHooks, M = w(Vs), R = M.registerWatch, $ = R(function(T, A) {
|
|
@@ -21083,7 +21083,7 @@ function Cde(e, t, n) {
|
|
|
21083
21083
|
var v = e(h);
|
|
21084
21084
|
l.current.get(v), b ? (l.current.set(v, b), u()) : l.current.delete(v);
|
|
21085
21085
|
}
|
|
21086
|
-
return
|
|
21086
|
+
return Wt(function() {
|
|
21087
21087
|
return d;
|
|
21088
21088
|
}, []), [f, u, s.current, i];
|
|
21089
21089
|
}
|
|
@@ -21619,13 +21619,13 @@ var kde = function(t, n) {
|
|
|
21619
21619
|
}
|
|
21620
21620
|
v(Z.value, q, J);
|
|
21621
21621
|
};
|
|
21622
|
-
|
|
21622
|
+
Wt(function() {
|
|
21623
21623
|
_(m !== !1 ? D(0) : -1);
|
|
21624
21624
|
}, [A.length, c]);
|
|
21625
21625
|
var F = p.useCallback(function(X) {
|
|
21626
21626
|
return x.has(X) && s !== "combobox";
|
|
21627
21627
|
}, [s, Ye(x).toString(), x.size]);
|
|
21628
|
-
|
|
21628
|
+
Wt(function() {
|
|
21629
21629
|
var X = setTimeout(function() {
|
|
21630
21630
|
if (!l && o && x.size === 1) {
|
|
21631
21631
|
var te = Array.from(x)[0], J = A.findIndex(function(Z) {
|
|
@@ -25536,7 +25536,7 @@ const sw = {
|
|
|
25536
25536
|
} = e, C = I1e(e, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]), {
|
|
25537
25537
|
siderHook: y
|
|
25538
25538
|
} = kt(N1e), [x, S] = It("collapsed" in e ? e.collapsed : o), [w, M] = It(!1);
|
|
25539
|
-
|
|
25539
|
+
Wt(() => {
|
|
25540
25540
|
"collapsed" in e && S(e.collapsed);
|
|
25541
25541
|
}, [e.collapsed]);
|
|
25542
25542
|
const R = (I, L) => {
|
|
@@ -25544,7 +25544,7 @@ const sw = {
|
|
|
25544
25544
|
}, $ = it();
|
|
25545
25545
|
$.current = (I) => {
|
|
25546
25546
|
M(I.matches), m == null || m(I.matches), x !== I.matches && R(I.matches, "responsive");
|
|
25547
|
-
},
|
|
25547
|
+
}, Wt(() => {
|
|
25548
25548
|
function I(D) {
|
|
25549
25549
|
return $.current(D);
|
|
25550
25550
|
}
|
|
@@ -25570,7 +25570,7 @@ const sw = {
|
|
|
25570
25570
|
L == null || L.removeListener(I);
|
|
25571
25571
|
}
|
|
25572
25572
|
};
|
|
25573
|
-
}, [b]),
|
|
25573
|
+
}, [b]), Wt(() => {
|
|
25574
25574
|
const I = A1e("ant-sider-");
|
|
25575
25575
|
return y.addSider(I), () => y.removeSider(I);
|
|
25576
25576
|
}, []);
|
|
@@ -28568,9 +28568,9 @@ function Z5(e, t) {
|
|
|
28568
28568
|
var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
28569
28569
|
d(null, m);
|
|
28570
28570
|
}
|
|
28571
|
-
return
|
|
28571
|
+
return Wt(function() {
|
|
28572
28572
|
v(!0);
|
|
28573
|
-
}, [e]),
|
|
28573
|
+
}, [e]), Wt(function() {
|
|
28574
28574
|
return function() {
|
|
28575
28575
|
return cancelAnimationFrame(c.current);
|
|
28576
28576
|
};
|
|
@@ -28749,11 +28749,11 @@ function U5(e) {
|
|
|
28749
28749
|
}, 0) : t && (a(!1), M.current && c()), S(!1), f == null || f(T);
|
|
28750
28750
|
}
|
|
28751
28751
|
};
|
|
28752
|
-
return
|
|
28752
|
+
return Wt(function() {
|
|
28753
28753
|
M.current = !1;
|
|
28754
|
-
}, [t]),
|
|
28754
|
+
}, [t]), Wt(function() {
|
|
28755
28755
|
M.current = !0;
|
|
28756
|
-
}, [n]),
|
|
28756
|
+
}, [n]), Wt(function() {
|
|
28757
28757
|
return Lfe(function(P) {
|
|
28758
28758
|
var T = Pfe(P), A = r(T);
|
|
28759
28759
|
t && (A ? !s && !l && (!x || A) && a(!1) : (w.current = !0, Mn(function() {
|
|
@@ -30586,7 +30586,7 @@ function bpe(e) {
|
|
|
30586
30586
|
}), dt = ye(tt, 2), De = dt[0], Ge = dt[1], Fe = Tn([x, x], {
|
|
30587
30587
|
value: W
|
|
30588
30588
|
}), Be = ye(Fe, 2), Ke = Be[0], Pt = Be[1];
|
|
30589
|
-
|
|
30589
|
+
Wt(function() {
|
|
30590
30590
|
Pt([x, x]);
|
|
30591
30591
|
}, [x]);
|
|
30592
30592
|
var xt = function(Mt, sn) {
|
|
@@ -30599,7 +30599,7 @@ function bpe(e) {
|
|
|
30599
30599
|
disabledDate: I,
|
|
30600
30600
|
generateConfig: f
|
|
30601
30601
|
}, !et || $t), Ct = ye(Je, 2), Bt = Ct[0], ln = Ct[1], Hn = It(0), Pn = ye(Hn, 2), Yn = Pn[0], mr = Pn[1];
|
|
30602
|
-
|
|
30602
|
+
Wt(function() {
|
|
30603
30603
|
!et && we.current && mr(we.current.offsetWidth);
|
|
30604
30604
|
}, [et]);
|
|
30605
30605
|
function Qt(wn) {
|
|
@@ -30733,9 +30733,9 @@ function bpe(e) {
|
|
|
30733
30733
|
format: "YYYYMMDDHHmmss",
|
|
30734
30734
|
generateConfig: f
|
|
30735
30735
|
}) : "";
|
|
30736
|
-
|
|
30736
|
+
Wt(function() {
|
|
30737
30737
|
et || (Ge(at), !Ir.length || Ir[0] === "" ? zn("") : $r !== Rn && vr(), !Nt.length || Nt[0] === "" ? Gt("") : Kn !== Qr && Jt());
|
|
30738
|
-
}, [et, Ir, Nt]),
|
|
30738
|
+
}, [et, Ir, Nt]), Wt(function() {
|
|
30739
30739
|
Ge(at);
|
|
30740
30740
|
}, [xp, wp]);
|
|
30741
30741
|
var vc = aO({
|
|
@@ -33712,7 +33712,7 @@ var Qpe = function(t) {
|
|
|
33712
33712
|
function f() {
|
|
33713
33713
|
Mn.cancel(d.current);
|
|
33714
33714
|
}
|
|
33715
|
-
return
|
|
33715
|
+
return Wt(function() {
|
|
33716
33716
|
var h = {};
|
|
33717
33717
|
return n && (r ? (a ? (h.right = n.right + n.width / 2, h.transform = "translateX(50%)") : (h.left = n.left + n.width / 2, h.transform = "translateX(-50%)"), h.width = u(n.width)) : (h.top = n.top + n.height / 2, h.transform = "translateY(-50%)", h.height = u(n.height))), f(), d.current = Mn(function() {
|
|
33718
33718
|
c(h);
|
|
@@ -33997,10 +33997,10 @@ function ohe(e, t) {
|
|
|
33997
33997
|
break;
|
|
33998
33998
|
}
|
|
33999
33999
|
}
|
|
34000
|
-
|
|
34000
|
+
Wt(function() {
|
|
34001
34001
|
var z = document.getElementById(I);
|
|
34002
34002
|
z && z.scrollIntoView && z.scrollIntoView(!1);
|
|
34003
|
-
}, [P]),
|
|
34003
|
+
}, [P]), Wt(function() {
|
|
34004
34004
|
w || T(null);
|
|
34005
34005
|
}, [w]);
|
|
34006
34006
|
var V = re({}, b ? "marginRight" : "marginLeft", h);
|
|
@@ -34131,7 +34131,7 @@ function dhe(e, t) {
|
|
|
34131
34131
|
});
|
|
34132
34132
|
}
|
|
34133
34133
|
return be ? (O ? qe(H, Et) : qe(_, et), lt(), Ue(), !0) : !1;
|
|
34134
|
-
}),
|
|
34134
|
+
}), Wt(function() {
|
|
34135
34135
|
return lt(), je && (Re.current = window.setTimeout(function() {
|
|
34136
34136
|
Ae(0);
|
|
34137
34137
|
}, 100)), lt;
|
|
@@ -34205,7 +34205,7 @@ function dhe(e, t) {
|
|
|
34205
34205
|
}), qe;
|
|
34206
34206
|
});
|
|
34207
34207
|
};
|
|
34208
|
-
|
|
34208
|
+
Wt(function() {
|
|
34209
34209
|
st();
|
|
34210
34210
|
}, [i.map(function(Et) {
|
|
34211
34211
|
return Et.key;
|
|
@@ -34225,9 +34225,9 @@ function dhe(e, t) {
|
|
|
34225
34225
|
rtl: u,
|
|
34226
34226
|
indicatorSize: S
|
|
34227
34227
|
}), Ge = De.style;
|
|
34228
|
-
|
|
34228
|
+
Wt(function() {
|
|
34229
34229
|
vt();
|
|
34230
|
-
}, [d, $e, we, Lw(dt), Lw(se), O]),
|
|
34230
|
+
}, [d, $e, we, Lw(dt), Lw(se), O]), Wt(function() {
|
|
34231
34231
|
Xe();
|
|
34232
34232
|
}, [u]);
|
|
34233
34233
|
var Fe = !!tt.length, Be = "".concat(a, "-nav-wrap"), Ke, Pt, xt, Vt;
|
|
@@ -34327,7 +34327,7 @@ function mhe(e, t) {
|
|
|
34327
34327
|
return ce && Rt(ce) === "object" && "key" in ce;
|
|
34328
34328
|
});
|
|
34329
34329
|
}, [l]), D = s === "rtl", H = hhe(f), N = It(!1), k = ye(N, 2), V = k[0], _ = k[1];
|
|
34330
|
-
|
|
34330
|
+
Wt(function() {
|
|
34331
34331
|
_(L4());
|
|
34332
34332
|
}, []);
|
|
34333
34333
|
var F = Tn(function() {
|
|
@@ -34341,7 +34341,7 @@ function mhe(e, t) {
|
|
|
34341
34341
|
return ce.key === Y;
|
|
34342
34342
|
});
|
|
34343
34343
|
}), G = ye(ee, 2), W = G[0], X = G[1];
|
|
34344
|
-
|
|
34344
|
+
Wt(function() {
|
|
34345
34345
|
var ce = L.findIndex(function(ne) {
|
|
34346
34346
|
return ne.key === Y;
|
|
34347
34347
|
});
|
|
@@ -34356,7 +34356,7 @@ function mhe(e, t) {
|
|
|
34356
34356
|
var q = Tn(null, {
|
|
34357
34357
|
value: r
|
|
34358
34358
|
}), te = ye(q, 2), J = te[0], Z = te[1];
|
|
34359
|
-
|
|
34359
|
+
Wt(function() {
|
|
34360
34360
|
r || (Z("rc-tabs-".concat(process.env.NODE_ENV === "test" ? "test" : Ow)), Ow += 1);
|
|
34361
34361
|
}, []);
|
|
34362
34362
|
function K(ce, de) {
|
|
@@ -37276,7 +37276,7 @@ var E0e = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onK
|
|
|
37276
37276
|
},
|
|
37277
37277
|
input: L.current
|
|
37278
37278
|
};
|
|
37279
|
-
}),
|
|
37279
|
+
}), Wt(function() {
|
|
37280
37280
|
O(function(ue) {
|
|
37281
37281
|
return ue && d ? !1 : ue;
|
|
37282
37282
|
});
|
|
@@ -37408,7 +37408,7 @@ function rk(e, t) {
|
|
|
37408
37408
|
!((a = e.current) === null || a === void 0) && a.input && ((i = e.current) === null || i === void 0 ? void 0 : i.input.getAttribute("type")) === "password" && (!((o = e.current) === null || o === void 0) && o.input.hasAttribute("value")) && ((l = e.current) === null || l === void 0 || l.input.removeAttribute("value"));
|
|
37409
37409
|
}));
|
|
37410
37410
|
};
|
|
37411
|
-
return
|
|
37411
|
+
return Wt(() => (t && r(), () => n.current.forEach((a) => {
|
|
37412
37412
|
a && clearTimeout(a);
|
|
37413
37413
|
})), []), r;
|
|
37414
37414
|
}
|
|
@@ -37481,7 +37481,7 @@ const fC = /* @__PURE__ */ jr((e, t) => {
|
|
|
37481
37481
|
} = kt(Xa), _ = rc(N, i), F = $0e(e) || !!k, z = it(F);
|
|
37482
37482
|
if (process.env.NODE_ENV !== "production") {
|
|
37483
37483
|
const q = Fn("Input");
|
|
37484
|
-
|
|
37484
|
+
Wt(() => {
|
|
37485
37485
|
var te;
|
|
37486
37486
|
F && !z.current && process.env.NODE_ENV !== "production" && q(document.activeElement === ((te = P.current) === null || te === void 0 ? void 0 : te.input), "usage", "When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"), z.current = F;
|
|
37487
37487
|
}, [F]);
|
|
@@ -37840,7 +37840,7 @@ var z0e = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSize", "on
|
|
|
37840
37840
|
G().blur();
|
|
37841
37841
|
}
|
|
37842
37842
|
};
|
|
37843
|
-
}),
|
|
37843
|
+
}), Wt(function() {
|
|
37844
37844
|
V(function(we) {
|
|
37845
37845
|
return !w && we;
|
|
37846
37846
|
});
|
|
@@ -40861,7 +40861,7 @@ var Gge = {
|
|
|
40861
40861
|
gapPosition: "bottom"
|
|
40862
40862
|
}, Xge = function() {
|
|
40863
40863
|
var t = it([]), n = it(null);
|
|
40864
|
-
return
|
|
40864
|
+
return Wt(function() {
|
|
40865
40865
|
var r = Date.now(), a = !1;
|
|
40866
40866
|
t.current.forEach(function(i) {
|
|
40867
40867
|
if (i) {
|
|
@@ -43193,7 +43193,7 @@ function Kk(e) {
|
|
|
43193
43193
|
}
|
|
43194
43194
|
});
|
|
43195
43195
|
}
|
|
43196
|
-
return
|
|
43196
|
+
return Wt(function() {
|
|
43197
43197
|
return function() {
|
|
43198
43198
|
i.current = null;
|
|
43199
43199
|
};
|
|
@@ -43212,7 +43212,7 @@ function y2e(e) {
|
|
|
43212
43212
|
function i() {
|
|
43213
43213
|
return t.current;
|
|
43214
43214
|
}
|
|
43215
|
-
return
|
|
43215
|
+
return Wt(function() {
|
|
43216
43216
|
return r;
|
|
43217
43217
|
}, []), [a, i];
|
|
43218
43218
|
}
|
|
@@ -51070,7 +51070,7 @@ const bu = ({ theme: e, children: t, ...n }) => {
|
|
|
51070
51070
|
${x9e}
|
|
51071
51071
|
`, S9e = (e, t) => (n) => {
|
|
51072
51072
|
const { label: r, value: a, closable: i, onClose: o } = n;
|
|
51073
|
-
return /* @__PURE__ */
|
|
51073
|
+
return /* @__PURE__ */ Zt(C9e, { onMouseDown: (s) => {
|
|
51074
51074
|
s.preventDefault(), s.stopPropagation();
|
|
51075
51075
|
}, $closable: i, style: { marginRight: 4 }, "data-testid": `tag-option-selected-${a}`, theme: e, children: [
|
|
51076
51076
|
r,
|
|
@@ -51078,7 +51078,7 @@ const bu = ({ theme: e, children: t, ...n }) => {
|
|
|
51078
51078
|
] });
|
|
51079
51079
|
}, yke = ({ multiple: e, options: t = [], maxTagCount: n, onChange: r, open: a, changeOnSelect: i, iconAriaLabel: o, ...l }) => {
|
|
51080
51080
|
const s = kt(gn) || yn, [c, d] = It(a || !1), [u, f] = It([]), h = it();
|
|
51081
|
-
|
|
51081
|
+
Wt(() => {
|
|
51082
51082
|
document.querySelectorAll(".ant-cascader-menu-item").forEach((m) => {
|
|
51083
51083
|
m.removeAttribute("aria-label");
|
|
51084
51084
|
}), u.forEach((m) => {
|
|
@@ -51101,7 +51101,7 @@ const bu = ({ theme: e, children: t, ...n }) => {
|
|
|
51101
51101
|
var C;
|
|
51102
51102
|
r && r(m), !i && !e && ((C = h.current) != null && C.blur()) && d(!1), f([]), b(e ? m.flat().map(String) : m.map((y) => y.toString()));
|
|
51103
51103
|
};
|
|
51104
|
-
return /* @__PURE__ */
|
|
51104
|
+
return /* @__PURE__ */ Zt(ga, { children: [
|
|
51105
51105
|
/* @__PURE__ */ Ee(w9e, { theme: s }),
|
|
51106
51106
|
/* @__PURE__ */ Ee(
|
|
51107
51107
|
bu,
|
|
@@ -58256,10 +58256,10 @@ N9e(Ea);
|
|
|
58256
58256
|
K9e(Ea);
|
|
58257
58257
|
G9e(Ea);
|
|
58258
58258
|
Ea.SVGRenderer.prototype.symbols.cross = (e, t, n, r) => ["M", e, t, "L", e + n, t + r, "M", e + n, t, "L", e, t + r, "z"];
|
|
58259
|
-
const n5e = () => /* @__PURE__ */ Ee(t5e, { "data-testid": "chart-loading", children: /* @__PURE__ */
|
|
58259
|
+
const n5e = () => /* @__PURE__ */ Ee(t5e, { "data-testid": "chart-loading", children: /* @__PURE__ */ Zt("svg", { width: "210", height: "210", preserveAspectRatio: "none", viewBox: "0 0 210 210", children: [
|
|
58260
58260
|
/* @__PURE__ */ Ee("rect", { width: "100%", height: "100%", fill: 'url("#fill")', clipPath: "url(#clip-path-chart)" }),
|
|
58261
|
-
/* @__PURE__ */
|
|
58262
|
-
/* @__PURE__ */
|
|
58261
|
+
/* @__PURE__ */ Zt("defs", { children: [
|
|
58262
|
+
/* @__PURE__ */ Zt("clipPath", { id: "clip-path-chart", children: [
|
|
58263
58263
|
/* @__PURE__ */ Ee("rect", { width: "1", height: "1", x: "156", y: "89", rx: "0", ry: "0" }),
|
|
58264
58264
|
/* @__PURE__ */ Ee("rect", { width: "9", height: "27", x: "62", y: "103", rx: "0", ry: "0" }),
|
|
58265
58265
|
/* @__PURE__ */ Ee("rect", { width: "9", height: "72", x: "89", y: "60", rx: "0", ry: "0" }),
|
|
@@ -58271,7 +58271,7 @@ const n5e = () => /* @__PURE__ */ Ee(t5e, { "data-testid": "chart-loading", chil
|
|
|
58271
58271
|
/* @__PURE__ */ Ee("rect", { width: "184", height: "9", x: "14", y: "174", rx: "0", ry: "0" }),
|
|
58272
58272
|
/* @__PURE__ */ Ee("rect", { width: "9", height: "154", x: "14", y: "30", rx: "0", ry: "0" })
|
|
58273
58273
|
] }),
|
|
58274
|
-
/* @__PURE__ */
|
|
58274
|
+
/* @__PURE__ */ Zt("linearGradient", { id: "fill", children: [
|
|
58275
58275
|
/* @__PURE__ */ Ee("stop", { offset: "0.6", stopColor: "#f3f3f3", children: /* @__PURE__ */ Ee("animate", { attributeName: "offset", dur: "2s", keyTimes: "0; 0.25; 1", repeatCount: "indefinite", values: "-2; -2; 1" }) }),
|
|
58276
58276
|
/* @__PURE__ */ Ee("stop", { offset: "1.6", stopColor: "#ecebeb", children: /* @__PURE__ */ Ee("animate", { attributeName: "offset", dur: "2s", keyTimes: "0; 0.25; 1", repeatCount: "indefinite", values: "-1; -1; 2" }) }),
|
|
58277
58277
|
/* @__PURE__ */ Ee("stop", { offset: "2.6", stopColor: "#f3f3f3", children: /* @__PURE__ */ Ee("animate", { attributeName: "offset", dur: "2s", keyTimes: "0; 0.25; 1", repeatCount: "indefinite", values: "0; 0; 3" }) })
|
|
@@ -58295,7 +58295,7 @@ const n5e = () => /* @__PURE__ */ Ee(t5e, { "data-testid": "chart-loading", chil
|
|
|
58295
58295
|
...f
|
|
58296
58296
|
}, h) => {
|
|
58297
58297
|
const b = kt(gn) || yn, v = t && !n, m = !t && n && r, C = !v && !m && e, [y, x] = It(), [S, w] = It(!1), { fontFamily: M, backgroundColor: R } = kt(gn) || yn;
|
|
58298
|
-
return
|
|
58298
|
+
return Wt(() => {
|
|
58299
58299
|
let $ = !1;
|
|
58300
58300
|
if (typeof document > "u" || !document.fonts) {
|
|
58301
58301
|
w(!0);
|
|
@@ -58316,7 +58316,7 @@ const n5e = () => /* @__PURE__ */ Ee(t5e, { "data-testid": "chart-loading", chil
|
|
|
58316
58316
|
shortMonths: d,
|
|
58317
58317
|
weekdays: u
|
|
58318
58318
|
}
|
|
58319
|
-
}),
|
|
58319
|
+
}), Wt(() => {
|
|
58320
58320
|
const $ = { ...e };
|
|
58321
58321
|
$.chart ? $.chart.style || ($.chart.style = {}) : $.chart = { style: {} }, $.legend || ($.legend = {}), $.tooltip || ($.tooltip = {}), $.title ? $.title.style || ($.title.style = {}) : $.title = { text: "" }, x({
|
|
58322
58322
|
...e,
|
|
@@ -58352,7 +58352,7 @@ const n5e = () => /* @__PURE__ */ Ee(t5e, { "data-testid": "chart-loading", chil
|
|
|
58352
58352
|
}
|
|
58353
58353
|
}
|
|
58354
58354
|
});
|
|
58355
|
-
}, [e, M, R, S]), /* @__PURE__ */
|
|
58355
|
+
}, [e, M, R, S]), /* @__PURE__ */ Zt(J9e, { "data-id": a, "data-testid": i, theme: b, children: [
|
|
58356
58356
|
(v || !y) && /* @__PURE__ */ Ee(n5e, {}),
|
|
58357
58357
|
m && /* @__PURE__ */ Ee(r5e, { children: r }),
|
|
58358
58358
|
C && y && /* @__PURE__ */ Ee(P9e, { highcharts: Ea, ref: h, ...f, options: y })
|
|
@@ -65328,10 +65328,10 @@ const lSe = _t.div`
|
|
|
65328
65328
|
jr(
|
|
65329
65329
|
({ dataId: e, isLoading: t, placeholder: n = "#FFFFFF", presetColors: r = [], onChangePicker: a, onChangeInput: i, showInput: o, value: l = "#FFFFFF" }, s) => {
|
|
65330
65330
|
const c = kt(gn) || yn, [d, u] = It(!1), [f, h] = It(l);
|
|
65331
|
-
return
|
|
65331
|
+
return Wt(() => {
|
|
65332
65332
|
h(l);
|
|
65333
|
-
}, [l]), /* @__PURE__ */
|
|
65334
|
-
/* @__PURE__ */
|
|
65333
|
+
}, [l]), /* @__PURE__ */ Zt(ga, { children: [
|
|
65334
|
+
/* @__PURE__ */ Zt(lSe, { children: [
|
|
65335
65335
|
/* @__PURE__ */ Ee(dSe, { "data-testid": "color-picker", "data-id": e, color: f, onClick: () => {
|
|
65336
65336
|
u((y) => !y);
|
|
65337
65337
|
} }),
|
|
@@ -65351,7 +65351,7 @@ const lSe = _t.div`
|
|
|
65351
65351
|
),
|
|
65352
65352
|
t && /* @__PURE__ */ Ee(cSe, { $showInput: o !== void 0 ? o : !1, size: 20, theme: c })
|
|
65353
65353
|
] }),
|
|
65354
|
-
d && /* @__PURE__ */
|
|
65354
|
+
d && /* @__PURE__ */ Zt(pSe, { "data-testid": "popover-color-picker", children: [
|
|
65355
65355
|
/* @__PURE__ */ Ee(fSe, { onClick: () => {
|
|
65356
65356
|
u(!1);
|
|
65357
65357
|
} }),
|
|
@@ -65691,7 +65691,7 @@ const xke = (e) => {
|
|
|
65691
65691
|
const $ = R.key.split("-")[1];
|
|
65692
65692
|
f($);
|
|
65693
65693
|
};
|
|
65694
|
-
return /* @__PURE__ */
|
|
65694
|
+
return /* @__PURE__ */ Zt(ga, { children: [
|
|
65695
65695
|
/* @__PURE__ */ Ee(bSe, {}),
|
|
65696
65696
|
/* @__PURE__ */ Ee(
|
|
65697
65697
|
Jg,
|
|
@@ -65966,7 +65966,7 @@ const iEe = (e, t, n, r) => {
|
|
|
65966
65966
|
return /* @__PURE__ */ Ee(zN, { theme: u, size: a, "data-testid": "field-group", $vertical: !!o, $variant: t, "data-id": c, ...d, children: f.map((m) => {
|
|
65967
65967
|
const { uniqueId: C, value: y, label: x, icon: S, tooltip: w, isDisabled: M, iconAriaLabel: R } = m, $ = oEe({ type: e, selectedValues: m }, h), P = Ce("item", x ? `item-${x}` : null, $ && "active", M && "disabled"), T = () => (
|
|
65968
65968
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-noninteractive-element-interactions
|
|
65969
|
-
/* @__PURE__ */
|
|
65969
|
+
/* @__PURE__ */ Zt(
|
|
65970
65970
|
"label",
|
|
65971
65971
|
{
|
|
65972
65972
|
className: P,
|
|
@@ -66101,7 +66101,7 @@ const iEe = (e, t, n, r) => {
|
|
|
66101
66101
|
...y
|
|
66102
66102
|
}, x) => {
|
|
66103
66103
|
const S = kt(gn) || yn;
|
|
66104
|
-
return /* @__PURE__ */
|
|
66104
|
+
return /* @__PURE__ */ Zt(WN, { theme: S, $error: n, $success: r, "data-id": l, children: [
|
|
66105
66105
|
e === "Input" && /* @__PURE__ */ Ee(SR, { type: "text", className: "form-control-input", title: t, ref: x, ...y, value: t, label: s || "" }),
|
|
66106
66106
|
e === "Checkbox" && /* @__PURE__ */ Ee(i5e, { className: "form-control-checkbox", ...y }),
|
|
66107
66107
|
e === "Textarea" && /* @__PURE__ */ Ee("textarea", { rows: 2, className: "form-control-textarea", ...y, value: t }),
|
|
@@ -66149,7 +66149,7 @@ const sEe = (e, t) => {
|
|
|
66149
66149
|
color: ${(e) => $i(e.theme.color, e.$color)};
|
|
66150
66150
|
`, dEe = ({ color: e = "gray900", type: t = "h3", text: n, children: r, ...a }) => {
|
|
66151
66151
|
const i = kt(gn) || yn;
|
|
66152
|
-
return /* @__PURE__ */
|
|
66152
|
+
return /* @__PURE__ */ Zt(cEe, { "data-testid": "heading", as: t, $color: e, theme: i, ...a, children: [
|
|
66153
66153
|
n,
|
|
66154
66154
|
r && r
|
|
66155
66155
|
] });
|
|
@@ -66395,7 +66395,7 @@ const KN = (e, t, n) => (e - n) * 100 / (t - n), UN = (e, t, n = 0) => {
|
|
|
66395
66395
|
...v
|
|
66396
66396
|
}) => {
|
|
66397
66397
|
const [m, C] = It();
|
|
66398
|
-
return
|
|
66398
|
+
return Wt(() => {
|
|
66399
66399
|
if (f === "DIAL") {
|
|
66400
66400
|
const y = {
|
|
66401
66401
|
...LEe.chart,
|
|
@@ -66582,9 +66582,9 @@ const KN = (e, t, n) => (e - n) * 100 / (t - n), UN = (e, t, n = 0) => {
|
|
|
66582
66582
|
}
|
|
66583
66583
|
`, Lke = ({ open: e, title: t, body: n, footer: r, closeModalButtonAriaLabel: a, onCancel: i, ...o }) => {
|
|
66584
66584
|
const l = kt(gn) || yn, s = it(null), c = it(null);
|
|
66585
|
-
return
|
|
66585
|
+
return Wt(() => {
|
|
66586
66586
|
e && s.current && s.current.focus();
|
|
66587
|
-
}, [e]), /* @__PURE__ */
|
|
66587
|
+
}, [e]), /* @__PURE__ */ Zt(ga, { children: [
|
|
66588
66588
|
/* @__PURE__ */ Ee(
|
|
66589
66589
|
OEe,
|
|
66590
66590
|
{
|
|
@@ -66606,7 +66606,7 @@ const KN = (e, t, n) => (e - n) * 100 / (t - n), UN = (e, t, n = 0) => {
|
|
|
66606
66606
|
"aria-labelledby": "modal-title",
|
|
66607
66607
|
"aria-describedby": "modal-body",
|
|
66608
66608
|
...o,
|
|
66609
|
-
children: /* @__PURE__ */
|
|
66609
|
+
children: /* @__PURE__ */ Zt("div", { role: "dialog", "aria-modal": "true", id: "modal-content", ref: c, tabIndex: -1, style: { position: "relative" }, children: [
|
|
66610
66610
|
/* @__PURE__ */ Ee("h2", { id: "modal-title", ref: s, tabIndex: -1, children: t }),
|
|
66611
66611
|
Array.isArray(n) ? /* @__PURE__ */ Ee("div", { id: "modal-body", tabIndex: -1, children: n.map(
|
|
66612
66612
|
(u, f) => ie.isValidElement(u) ? ie.cloneElement(u, { key: u.key || f }) : u
|
|
@@ -66938,7 +66938,7 @@ const KN = (e, t, n) => (e - n) * 100 / (t - n), UN = (e, t, n = 0) => {
|
|
|
66938
66938
|
${(e) => eI(e.theme)}
|
|
66939
66939
|
`, IEe = (e) => (t, n, r) => n === "prev" ? /* @__PURE__ */ Ee(jn, { name: "chevron_left_l", color: "gray900", size: 12, ariaLabel: "" }) : n === "next" ? /* @__PURE__ */ Ee(jn, { name: "chevron_right_l", color: "gray900", size: 12, ariaLabel: "" }) : n === "page" ? /* @__PURE__ */ Ee("span", { "aria-current": e === t ? "page" : void 0, children: t }) : r, AEe = (e) => {
|
|
66940
66940
|
const t = kt(gn) || yn, { previousPageAriaLabel: n, nextPageAriaLabel: r, disabled: a, prevDotsPageAriaLabel: i, nextDotsPageAriaLabel: o, defaultCurrent: l, current: s, onChange: c } = e;
|
|
66941
|
-
|
|
66941
|
+
Wt(() => {
|
|
66942
66942
|
const u = document.querySelector(".ant-pagination");
|
|
66943
66943
|
if (u) {
|
|
66944
66944
|
u.setAttribute("role", "list"), u.querySelectorAll("li").forEach((C) => C.setAttribute("role", "listitem"));
|
|
@@ -67035,8 +67035,8 @@ const KN = (e, t, n) => (e - n) * 100 / (t - n), UN = (e, t, n = 0) => {
|
|
|
67035
67035
|
left: ${(e) => e.$value}%;
|
|
67036
67036
|
`, Oke = ({ text: e, marks: t, percent: n, color: r = "green", isTransparent: a, ariaLabel: i, ...o }) => {
|
|
67037
67037
|
const l = kt(gn) || yn;
|
|
67038
|
-
return /* @__PURE__ */
|
|
67039
|
-
/* @__PURE__ */ Ee("div", { className: "outer", children: /* @__PURE__ */
|
|
67038
|
+
return /* @__PURE__ */ Zt(DEe, { "data-testid": "progress", $color: r, $percent: n, $isTransparent: a, theme: l, "aria-label": e ? void 0 : i, ...o, children: [
|
|
67039
|
+
/* @__PURE__ */ Ee("div", { className: "outer", children: /* @__PURE__ */ Zt("div", { className: "inner", children: [
|
|
67040
67040
|
/* @__PURE__ */ Ee("div", { className: "background" }),
|
|
67041
67041
|
t && t.length > 0 ? t.map((s) => /* @__PURE__ */ Ee(_Ee, { $color: s.color, $value: s.value, theme: l }, s.value)) : null
|
|
67042
67042
|
] }) }),
|
|
@@ -67090,10 +67090,10 @@ const nI = _t(md)`
|
|
|
67090
67090
|
}
|
|
67091
67091
|
`, kke = ca((e) => {
|
|
67092
67092
|
const { title: t, isLoading: n, onExportExcel: r, onExportImage: a, onAddReport: i, children: o, dataId: l, iconExportExcelAriaLabel: s, iconExportImageAriaLabel: c, iconAddReportAriaLabel: d } = e, u = !!r, f = !!a, h = !!i, b = u || f || h;
|
|
67093
|
-
return /* @__PURE__ */
|
|
67094
|
-
/* @__PURE__ */
|
|
67093
|
+
return /* @__PURE__ */ Zt(nI, { theme: yn, $title: !!t, $hasButtons: !!b, children: [
|
|
67094
|
+
/* @__PURE__ */ Zt("div", { className: "section-top", "data-testid": "section-data", "data-id": l, children: [
|
|
67095
67095
|
t && /* @__PURE__ */ Ee(w1, { className: "section-title", children: /* @__PURE__ */ Ee(dEe, { type: "h4", text: t }) }),
|
|
67096
|
-
b && /* @__PURE__ */ Ee(w1, { className: "section-buttons", children: /* @__PURE__ */
|
|
67096
|
+
b && /* @__PURE__ */ Ee(w1, { className: "section-buttons", children: /* @__PURE__ */ Zt(ga, { children: [
|
|
67097
67097
|
u && /* @__PURE__ */ Ee(Ql, { kind: "iconButton", variant: "icon-secondary", iconBefore: "export_file", onClick: r, isCircle: !0, "data-testid": "excel", isDisabled: n, iconAriaLabel: s || "" }),
|
|
67098
67098
|
f && /* @__PURE__ */ Ee(Ql, { kind: "iconButton", variant: "icon-secondary", iconBefore: "image", onClick: a, isCircle: !0, "data-testid": "image", isDisabled: n, iconAriaLabel: c || "" }),
|
|
67099
67099
|
h && /* @__PURE__ */ Ee(Ql, { kind: "iconButton", variant: "icon-secondary", iconBefore: "report_add", onClick: i, isCircle: !0, "data-testid": "report", isDisabled: n, iconAriaLabel: d || "" })
|
|
@@ -67130,7 +67130,7 @@ const FEe = (e) => {
|
|
|
67130
67130
|
return { iconName: t, iconColor: n };
|
|
67131
67131
|
}, Nke = ({ title: e, info: t, variant: n = "default", content: r, size: a = 72, icon: i, iconElement: o, iconAriaLabel: l }) => {
|
|
67132
67132
|
const s = kt(gn) || yn, { iconName: c, iconColor: d } = FEe(n);
|
|
67133
|
-
return /* @__PURE__ */
|
|
67133
|
+
return /* @__PURE__ */ Zt(AC, { fluid: !0, className: `result-${n}`, "data-testid": `result-${n}`, theme: s, children: [
|
|
67134
67134
|
/* @__PURE__ */ Ee(md, { className: "result-row icon", children: o || /* @__PURE__ */ Ee(
|
|
67135
67135
|
jn,
|
|
67136
67136
|
{
|
|
@@ -67143,7 +67143,7 @@ const FEe = (e) => {
|
|
|
67143
67143
|
) }),
|
|
67144
67144
|
e && /* @__PURE__ */ Ee(md, { className: "result-row title", children: /* @__PURE__ */ Ee("span", { children: e }) }),
|
|
67145
67145
|
t && /* @__PURE__ */ Ee(md, { className: "result-row info", children: /* @__PURE__ */ Ee("span", { children: t }) }),
|
|
67146
|
-
r && /* @__PURE__ */
|
|
67146
|
+
r && /* @__PURE__ */ Zt(md, { className: "result-row content", children: [
|
|
67147
67147
|
" ",
|
|
67148
67148
|
r,
|
|
67149
67149
|
" "
|
|
@@ -67204,7 +67204,7 @@ const FEe = (e) => {
|
|
|
67204
67204
|
}
|
|
67205
67205
|
`, Ike = ca(({ icon: e, color: t, closable: n, children: r, type: a = "normal", onClose: i, variant: o = "primary", dataId: l, iconAriaLabel: s, ...c }) => {
|
|
67206
67206
|
const d = kt(gn) || yn;
|
|
67207
|
-
return /* @__PURE__ */
|
|
67207
|
+
return /* @__PURE__ */ Zt(
|
|
67208
67208
|
rI,
|
|
67209
67209
|
{
|
|
67210
67210
|
"data-testid": "tag",
|
|
@@ -67389,7 +67389,7 @@ const KEe = _t.div`
|
|
|
67389
67389
|
`, Ake = ca(
|
|
67390
67390
|
({ dataId: e = "tagSelect", placeholder: t = "Type text and press enter", onChange: n, disabled: r, style: a, defaultValue: i, value: o, onBlur: l }) => {
|
|
67391
67391
|
const s = kt(gn) || yn;
|
|
67392
|
-
return /* @__PURE__ */
|
|
67392
|
+
return /* @__PURE__ */ Zt(ga, { children: [
|
|
67393
67393
|
/* @__PURE__ */ Ee(iI, { $theme: s }),
|
|
67394
67394
|
/* @__PURE__ */ Ee(
|
|
67395
67395
|
Li,
|
|
@@ -69114,6 +69114,18 @@ const QEe = "50px", JEe = _t.div`
|
|
|
69114
69114
|
margin: -8px -8px -9px;
|
|
69115
69115
|
}
|
|
69116
69116
|
${(e) => eI(e.theme)};
|
|
69117
|
+
.table-pagination {
|
|
69118
|
+
position: relative;
|
|
69119
|
+
display: flex;
|
|
69120
|
+
justify-content: center;
|
|
69121
|
+
}
|
|
69122
|
+
.table-pagination .ant-pagination-options {
|
|
69123
|
+
position: absolute;
|
|
69124
|
+
right: 0;
|
|
69125
|
+
top: 50%;
|
|
69126
|
+
transform: translateY(-50%);
|
|
69127
|
+
margin-left: 0;
|
|
69128
|
+
}
|
|
69117
69129
|
|
|
69118
69130
|
.expanded-first-column {
|
|
69119
69131
|
position: relative;
|
|
@@ -69141,10 +69153,10 @@ const QEe = "50px", JEe = _t.div`
|
|
|
69141
69153
|
height: 400px;
|
|
69142
69154
|
align-items: center;
|
|
69143
69155
|
justify-content: center;
|
|
69144
|
-
`, tMe = () => /* @__PURE__ */ Ee(eMe, { "data-testid": "table-loading", children: /* @__PURE__ */
|
|
69156
|
+
`, tMe = () => /* @__PURE__ */ Ee(eMe, { "data-testid": "table-loading", children: /* @__PURE__ */ Zt("svg", { width: "210", height: "210", "aria-labelledby": "loading-aria", preserveAspectRatio: "none", viewBox: "0 0 210 210", children: [
|
|
69145
69157
|
/* @__PURE__ */ Ee("rect", { width: "100%", height: "100%", fill: 'url("#fill")', clipPath: "url(#clip-path-table)" }),
|
|
69146
|
-
/* @__PURE__ */
|
|
69147
|
-
/* @__PURE__ */
|
|
69158
|
+
/* @__PURE__ */ Zt("defs", { children: [
|
|
69159
|
+
/* @__PURE__ */ Zt("clipPath", { id: "clip-path-table", children: [
|
|
69148
69160
|
/* @__PURE__ */ Ee("rect", { width: "9", height: "158", x: "10", y: "26", rx: "0", ry: "0" }),
|
|
69149
69161
|
/* @__PURE__ */ Ee("rect", { width: "1", height: "88", x: "107", y: "73", rx: "0", ry: "0" }),
|
|
69150
69162
|
/* @__PURE__ */ Ee("rect", { width: "190", height: "9", x: "10", y: "26", rx: "0", ry: "0" }),
|
|
@@ -69155,7 +69167,7 @@ const QEe = "50px", JEe = _t.div`
|
|
|
69155
69167
|
/* @__PURE__ */ Ee("rect", { width: "4", height: "158", x: "147", y: "26", rx: "0", ry: "0" }),
|
|
69156
69168
|
/* @__PURE__ */ Ee("rect", { width: "184", height: "4", x: "10", y: "68", rx: "0", ry: "0" })
|
|
69157
69169
|
] }),
|
|
69158
|
-
/* @__PURE__ */
|
|
69170
|
+
/* @__PURE__ */ Zt("linearGradient", { id: "fill", children: [
|
|
69159
69171
|
/* @__PURE__ */ Ee("stop", { offset: "0.6", stopColor: "#f3f3f3", children: /* @__PURE__ */ Ee("animate", { attributeName: "offset", dur: "2s", keyTimes: "0; 0.25; 1", repeatCount: "indefinite", values: "-2; -2; 1" }) }),
|
|
69160
69172
|
/* @__PURE__ */ Ee("stop", { offset: "1.6", stopColor: "#ecebeb", children: /* @__PURE__ */ Ee("animate", { attributeName: "offset", dur: "2s", keyTimes: "0; 0.25; 1", repeatCount: "indefinite", values: "-1; -1; 2" }) }),
|
|
69161
69173
|
/* @__PURE__ */ Ee("stop", { offset: "2.6", stopColor: "#f3f3f3", children: /* @__PURE__ */ Ee("animate", { attributeName: "offset", dur: "2s", keyTimes: "0; 0.25; 1", repeatCount: "indefinite", values: "0; 0; 3" }) })
|
|
@@ -69217,21 +69229,25 @@ const QEe = "50px", JEe = _t.div`
|
|
|
69217
69229
|
selectAllRowsAriaLabel: f,
|
|
69218
69230
|
totalRegisters: h,
|
|
69219
69231
|
currentPage: b = 1,
|
|
69220
|
-
pageSize: v =
|
|
69232
|
+
pageSize: v = 25,
|
|
69221
69233
|
showSizeChanger: m,
|
|
69222
|
-
pageSizeOptions: C = ["5", "10", "20"],
|
|
69234
|
+
pageSizeOptions: C = ["5", "10", "20", "25", "100"],
|
|
69223
69235
|
onPageChange: y,
|
|
69224
69236
|
prevPageAriaLabel: x,
|
|
69225
69237
|
nextPageAriaLabel: S,
|
|
69226
69238
|
prevDotsPageAriaLabel: w,
|
|
69227
69239
|
nextDotsPageAriaLabel: M
|
|
69228
69240
|
} = e;
|
|
69229
|
-
|
|
69241
|
+
Wt(() => {
|
|
69230
69242
|
document.querySelectorAll(".ant-checkbox-inner").forEach((F) => F.setAttribute("aria-label", u || ""));
|
|
69231
69243
|
const V = document.querySelector(".ant-table-thead"), _ = V == null ? void 0 : V.querySelector(".ant-checkbox-inner");
|
|
69232
69244
|
_ && f && _.setAttribute("aria-label", f);
|
|
69233
69245
|
}, [u, f]);
|
|
69234
|
-
const [R, $] = It(b), [P, T] = It(v)
|
|
69246
|
+
const [R, $] = It(b), [P, T] = It(v);
|
|
69247
|
+
Wt(() => {
|
|
69248
|
+
$(b);
|
|
69249
|
+
}, [b]);
|
|
69250
|
+
const A = o ?? [], O = Y9(e, ["theme", "columns", "dataId", "expandable", "rowSelection", "dataSource"]), I = kt(gn) || yn, L = () => i ? [{
|
|
69235
69251
|
className: "expanded-first-column",
|
|
69236
69252
|
...i[0]
|
|
69237
69253
|
}, ...i.slice(1)] : [], D = l && !s, H = !l && s && c, N = !D && !H && i && o;
|
|
@@ -69243,14 +69259,14 @@ const QEe = "50px", JEe = _t.div`
|
|
|
69243
69259
|
colorPrimary: I.primary
|
|
69244
69260
|
}
|
|
69245
69261
|
},
|
|
69246
|
-
children: /* @__PURE__ */
|
|
69262
|
+
children: /* @__PURE__ */ Zt(JEe, { "data-testid": "table", theme: I, "data-id": d, children: [
|
|
69247
69263
|
D && /* @__PURE__ */ Ee(tMe, {}),
|
|
69248
|
-
H && /* @__PURE__ */
|
|
69264
|
+
H && /* @__PURE__ */ Zt(rMe, { children: [
|
|
69249
69265
|
" ",
|
|
69250
69266
|
c,
|
|
69251
69267
|
" "
|
|
69252
69268
|
] }),
|
|
69253
|
-
N && /* @__PURE__ */
|
|
69269
|
+
N && /* @__PURE__ */ Zt("div", { style: { display: "flex", flexDirection: "column", gap: "16px" }, children: [
|
|
69254
69270
|
/* @__PURE__ */ Ee(
|
|
69255
69271
|
zo,
|
|
69256
69272
|
{
|
|
@@ -69262,7 +69278,7 @@ const QEe = "50px", JEe = _t.div`
|
|
|
69262
69278
|
...O
|
|
69263
69279
|
}
|
|
69264
69280
|
),
|
|
69265
|
-
n && /* @__PURE__ */ Ee("div", {
|
|
69281
|
+
n && /* @__PURE__ */ Ee("div", { className: "table-pagination", children: /* @__PURE__ */ Ee(
|
|
69266
69282
|
AEe,
|
|
69267
69283
|
{
|
|
69268
69284
|
total: h,
|
|
@@ -69339,7 +69355,7 @@ const dMe = ie.createContext({ toast: () => {
|
|
|
69339
69355
|
}),
|
|
69340
69356
|
[o]
|
|
69341
69357
|
);
|
|
69342
|
-
return /* @__PURE__ */ Ee(dMe.Provider, { value: s, children: /* @__PURE__ */
|
|
69358
|
+
return /* @__PURE__ */ Ee(dMe.Provider, { value: s, children: /* @__PURE__ */ Zt(ga, { children: [
|
|
69343
69359
|
/* @__PURE__ */ Ee("div", { children: e }),
|
|
69344
69360
|
n && /* @__PURE__ */ Ee(cMe, { ...t, ...a })
|
|
69345
69361
|
] }) });
|
|
@@ -69499,7 +69515,7 @@ const dMe = ie.createContext({ toast: () => {
|
|
|
69499
69515
|
}
|
|
69500
69516
|
`, Bke = ca(({ disabled: e, size: t = "default", onChange: n, onClick: r, dataId: a, ariaLabel: i, ...o }) => {
|
|
69501
69517
|
const l = kt(gn) || yn;
|
|
69502
|
-
return
|
|
69518
|
+
return Wt(() => {
|
|
69503
69519
|
const s = document.querySelector(".ant-switch-inner");
|
|
69504
69520
|
s && s.setAttribute("aria-label", i || "");
|
|
69505
69521
|
}, [i]), /* @__PURE__ */ Ee(gMe, { ...o, theme: l, children: /* @__PURE__ */ Ee(xC, { ...o, "data-testid": "switch", disabled: e, onChange: n, onClick: r, size: t, "data-id": a, "aria-disabled": e }) });
|
|
@@ -69743,7 +69759,7 @@ const Yke = ({
|
|
|
69743
69759
|
startDate: A,
|
|
69744
69760
|
endDate: O
|
|
69745
69761
|
};
|
|
69746
|
-
}, f = (P, T, A) => /* @__PURE__ */
|
|
69762
|
+
}, f = (P, T, A) => /* @__PURE__ */ Zt("div", { className: "compare-period-item", "data-testid": `compare-period-${A}`, children: [
|
|
69747
69763
|
/* @__PURE__ */ Ee("div", { className: "title", "data-testid": `compare-period-${A}-title`, children: P }),
|
|
69748
69764
|
/* @__PURE__ */ Ee("div", { className: "dates", "data-testid": `compare-period-${A}-dates`, children: T })
|
|
69749
69765
|
] }), [h, b] = CMe(t, n), [v, m] = xMe(t, n), C = (P) => P === "previous_period" ? u(h, b) : u(v, m), y = (P) => {
|
|
@@ -69818,7 +69834,7 @@ const Yke = ({
|
|
|
69818
69834
|
}, $Me = (e, t, n, r, a, i) => {
|
|
69819
69835
|
const o = `${e.select}`, l = n <= i ? ` ${1 + (t - 1) * n} - ${n * t > r.length ? r.length : n * t}` : ` ${e.all}`, s = `${// eslint-disable-next-line no-nested-ternary
|
|
69820
69836
|
a !== "" ? ` "${a}"` : n <= i ? ` ${e.connector} ${e.content}` : ""} (${i})`;
|
|
69821
|
-
return /* @__PURE__ */
|
|
69837
|
+
return /* @__PURE__ */ Zt("span", { "data-testid": "text-pagination-selector", children: [
|
|
69822
69838
|
o,
|
|
69823
69839
|
/* @__PURE__ */ Ee("strong", { children: l }),
|
|
69824
69840
|
s
|
|
@@ -69831,17 +69847,17 @@ const Yke = ({
|
|
|
69831
69847
|
const M = n + 1;
|
|
69832
69848
|
M <= u && M >= 1 && a(M);
|
|
69833
69849
|
};
|
|
69834
|
-
|
|
69850
|
+
Wt(() => {
|
|
69835
69851
|
v(n === 1), C(n === u);
|
|
69836
|
-
}, [n, u]),
|
|
69852
|
+
}, [n, u]), Wt(() => {
|
|
69837
69853
|
t !== void 0 && (l !== "" && vd(r, l).length > t || l === "" && t !== void 0 && t < r.length ? d(!0) : d(!1));
|
|
69838
|
-
}, [t, r, l]),
|
|
69854
|
+
}, [t, r, l]), Wt(() => {
|
|
69839
69855
|
l !== "" && vd(r, l).length > 0 || l === "" && r.length > 0 ? h(!0) : h(!1);
|
|
69840
|
-
}, [r, l]),
|
|
69856
|
+
}, [r, l]), Wt(() => {
|
|
69841
69857
|
v(!0), C(!1);
|
|
69842
69858
|
}, [l]);
|
|
69843
69859
|
const S = l !== "" ? vd(r, l).length : r.length, w = l !== "" ? vd(r, l) : r;
|
|
69844
|
-
return /* @__PURE__ */
|
|
69860
|
+
return /* @__PURE__ */ Zt(WEe, { children: [
|
|
69845
69861
|
c && /* @__PURE__ */ Ee(zE, { "data-testid": "button-prev", xs: 1, $disabled: b, onClick: y, theme: o, children: /* @__PURE__ */ Ee(BE, { name: "chevron_left_l", color: b ? "gray300" : "gray900", size: 12, ariaLabel: "Previous page" }) }),
|
|
69846
69862
|
f && /* @__PURE__ */ Ee(w1, { children: /* @__PURE__ */ Ee(
|
|
69847
69863
|
ZEe,
|
|
@@ -69872,7 +69888,7 @@ const Yke = ({
|
|
|
69872
69888
|
const { value: i, closable: o, onClose: l } = e, s = (u) => {
|
|
69873
69889
|
u.preventDefault(), u.stopPropagation();
|
|
69874
69890
|
}, c = t.filter((u) => u.value === i)[0], d = c.label.length > n - 3 ? `${c.label.slice(0, n - 3)}...` : c.label;
|
|
69875
|
-
return /* @__PURE__ */ Ee(gm, { title: c.label, children: /* @__PURE__ */
|
|
69891
|
+
return /* @__PURE__ */ Ee(gm, { title: c.label, children: /* @__PURE__ */ Zt(
|
|
69876
69892
|
p3,
|
|
69877
69893
|
{
|
|
69878
69894
|
className: "tag-select-option-selected",
|
|
@@ -69897,7 +69913,7 @@ const Yke = ({
|
|
|
69897
69913
|
]
|
|
69898
69914
|
}
|
|
69899
69915
|
) });
|
|
69900
|
-
}, NMe = (e, t, n, r, a, i, o, l, s, c) => /* @__PURE__ */
|
|
69916
|
+
}, NMe = (e, t, n, r, a, i, o, l, s, c) => /* @__PURE__ */ Zt(KEe, { "data-testid": "select-dropdown", children: [
|
|
69901
69917
|
e,
|
|
69902
69918
|
c !== void 0 && ["multiple", "tags"].includes(l) && /* @__PURE__ */ Ee(
|
|
69903
69919
|
PMe,
|
|
@@ -70010,9 +70026,9 @@ const Yke = ({
|
|
|
70010
70026
|
})),
|
|
70011
70027
|
[r, $, a]
|
|
70012
70028
|
);
|
|
70013
|
-
|
|
70029
|
+
Wt(() => {
|
|
70014
70030
|
A(1);
|
|
70015
|
-
}, [O]),
|
|
70031
|
+
}, [O]), Wt(() => {
|
|
70016
70032
|
t && P(t);
|
|
70017
70033
|
}, [t]);
|
|
70018
70034
|
const k = (B) => A(B), V = () => {
|
|
@@ -70029,7 +70045,7 @@ const Yke = ({
|
|
|
70029
70045
|
})) : N,
|
|
70030
70046
|
[N, S]
|
|
70031
70047
|
);
|
|
70032
|
-
return /* @__PURE__ */
|
|
70048
|
+
return /* @__PURE__ */ Zt(ga, { children: [
|
|
70033
70049
|
/* @__PURE__ */ Ee(iI, { $theme: H }),
|
|
70034
70050
|
n === void 0 || n === "single" ? /* @__PURE__ */ Ee(
|
|
70035
70051
|
Li,
|
|
@@ -70052,7 +70068,7 @@ const Yke = ({
|
|
|
70052
70068
|
searchValue: D.current,
|
|
70053
70069
|
showSearch: !0,
|
|
70054
70070
|
style: { width: "100%" },
|
|
70055
|
-
suffixIcon: /* @__PURE__ */
|
|
70071
|
+
suffixIcon: /* @__PURE__ */ Zt(ga, { children: [
|
|
70056
70072
|
b && (O !== "" || $.length > 0) && /* @__PURE__ */ Ee(
|
|
70057
70073
|
jn,
|
|
70058
70074
|
{
|
|
@@ -70119,7 +70135,7 @@ const Yke = ({
|
|
|
70119
70135
|
searchValue: D.current,
|
|
70120
70136
|
style: { width: "100%" },
|
|
70121
70137
|
showSearch: !0,
|
|
70122
|
-
suffixIcon: /* @__PURE__ */
|
|
70138
|
+
suffixIcon: /* @__PURE__ */ Zt(ga, { children: [
|
|
70123
70139
|
b && (O !== "" || $.length > 0) && /* @__PURE__ */ Ee(
|
|
70124
70140
|
jn,
|
|
70125
70141
|
{
|
|
@@ -74543,9 +74559,9 @@ const HI = (e) => {
|
|
|
74543
74559
|
n && (n.setAttribute("role", "dialog"), n.setAttribute("aria-label", t || ""));
|
|
74544
74560
|
}, nke = ca(({ lang: e = "en", theme: t = yn, dataId: n, format: r, label: a, disabled: i, allowClear: o, clearDateAriaLabel: l, calendarIconAriaLabel: s, prevPageIconAriaLabel: c, nextPageIconAriaLabel: d, superPrevPageIconAriaLabel: u, superNextPageIconAriaLabel: f, ...h }) => {
|
|
74545
74561
|
const b = kt(gn) || t, v = `antd-date-picker_${Date.now()}`;
|
|
74546
|
-
return /* @__PURE__ */
|
|
74562
|
+
return /* @__PURE__ */ Zt(ga, { children: [
|
|
74547
74563
|
DI(a, v),
|
|
74548
|
-
/* @__PURE__ */
|
|
74564
|
+
/* @__PURE__ */ Zt(
|
|
74549
74565
|
bu,
|
|
74550
74566
|
{
|
|
74551
74567
|
locale: HI(e ?? "en"),
|
|
@@ -74598,9 +74614,9 @@ const HI = (e) => {
|
|
|
74598
74614
|
] });
|
|
74599
74615
|
}, "datepicker"), rke = ca(({ lang: e = "en", theme: t = yn, dataId: n, label: r, format: a, disabled: i, allowClear: o, clearDateAriaLabel: l, toIconAriaLabel: s, calendarIconAriaLabel: c, prevPageIconAriaLabel: d, nextPageIconAriaLabel: u, superPrevPageIconAriaLabel: f, superNextPageIconAriaLabel: h, ...b }) => {
|
|
74600
74616
|
const v = kt(gn) || t, m = `antd-date-picker_${Date.now()}`;
|
|
74601
|
-
return /* @__PURE__ */
|
|
74617
|
+
return /* @__PURE__ */ Zt(ga, { children: [
|
|
74602
74618
|
DI(r, m),
|
|
74603
|
-
/* @__PURE__ */
|
|
74619
|
+
/* @__PURE__ */ Zt(
|
|
74604
74620
|
bu,
|
|
74605
74621
|
{
|
|
74606
74622
|
locale: HI(e ?? "en"),
|
|
@@ -74674,7 +74690,7 @@ const HI = (e) => {
|
|
|
74674
74690
|
.ant-tree input {
|
|
74675
74691
|
min-height: 0;
|
|
74676
74692
|
}
|
|
74677
|
-
`, Wke = ({ checkable: e, treeData: t, ...n }) => /* @__PURE__ */
|
|
74693
|
+
`, Wke = ({ checkable: e, treeData: t, ...n }) => /* @__PURE__ */ Zt(ga, { children: [
|
|
74678
74694
|
/* @__PURE__ */ Ee(ike, {}),
|
|
74679
74695
|
/* @__PURE__ */ Ee(im, { "data-testid": "tree", checkable: e, treeData: t, ...n })
|
|
74680
74696
|
] }), oke = ca((e) => /* @__PURE__ */ Ee(Y1, { ...e }), "upload"), Zke = Object.assign(oke, {
|
|
@@ -74698,7 +74714,7 @@ const HI = (e) => {
|
|
|
74698
74714
|
font-weight: 400;
|
|
74699
74715
|
line-height: 16px;
|
|
74700
74716
|
}
|
|
74701
|
-
`, Kke = ({ treeData: e, ...t }) => /* @__PURE__ */
|
|
74717
|
+
`, Kke = ({ treeData: e, ...t }) => /* @__PURE__ */ Zt(ga, { children: [
|
|
74702
74718
|
/* @__PURE__ */ Ee(lke, {}),
|
|
74703
74719
|
/* @__PURE__ */ Ee(gs, { "data-testid": "tree-select", style: { width: "100%" }, treeData: e, ...t })
|
|
74704
74720
|
] }), Uke = ({ ...e }) => {
|
|
@@ -4701,6 +4701,18 @@ Valid keys: `+JSON.stringify(Object.keys(_),null," "));var K=ee(Z,ne,Y,te,X+"."
|
|
|
4701
4701
|
margin: -8px -8px -9px;
|
|
4702
4702
|
}
|
|
4703
4703
|
${e=>cT(e.theme)};
|
|
4704
|
+
.table-pagination {
|
|
4705
|
+
position: relative;
|
|
4706
|
+
display: flex;
|
|
4707
|
+
justify-content: center;
|
|
4708
|
+
}
|
|
4709
|
+
.table-pagination .ant-pagination-options {
|
|
4710
|
+
position: absolute;
|
|
4711
|
+
right: 0;
|
|
4712
|
+
top: 50%;
|
|
4713
|
+
transform: translateY(-50%);
|
|
4714
|
+
margin-left: 0;
|
|
4715
|
+
}
|
|
4704
4716
|
|
|
4705
4717
|
.expanded-first-column {
|
|
4706
4718
|
position: relative;
|
|
@@ -4752,7 +4764,7 @@ Valid keys: `+JSON.stringify(Object.keys(_),null," "));var K=ee(Z,ne,Y,te,X+"."
|
|
|
4752
4764
|
transform: rotate(-90deg);
|
|
4753
4765
|
border-color: transparent;
|
|
4754
4766
|
}
|
|
4755
|
-
`,Y8e=e=>{const{expanded:t,onExpand:n,record:r,expandIconAriaLabel:a}=e;return r.children||r.expandable?ve.jsx(B8e,{children:ve.jsx(Fo,{kind:"iconButton",className:`expand-button ${t?"button-no-expanded":"button-expanded"}`,iconAfter:"chevron_down",isCircle:!0,variant:"icon-secondary",onClick:i=>{i.stopPropagation(),n(r,i)},iconAriaLabel:a||""})}):ve.jsx("span",{style:{height:"16px",width:"16px",display:"inline-block"}})},nC=" ",W8e=e=>e==null?void 0:e.map(t=>t.title==null||t.title===""?{...t,title:nC}:t),ET=e=>{const{isExpanded:t,isPaginated:n=!0,expandable:r,rowSelection:a,columns:i,dataSource:o,isLoading:l,showError:s,errorContent:c,dataId:d,rowsCanBeSelectAriaLabel:u,selectAllRowsAriaLabel:f,totalRegisters:h,currentPage:b=1,pageSize:v=
|
|
4767
|
+
`,Y8e=e=>{const{expanded:t,onExpand:n,record:r,expandIconAriaLabel:a}=e;return r.children||r.expandable?ve.jsx(B8e,{children:ve.jsx(Fo,{kind:"iconButton",className:`expand-button ${t?"button-no-expanded":"button-expanded"}`,iconAfter:"chevron_down",isCircle:!0,variant:"icon-secondary",onClick:i=>{i.stopPropagation(),n(r,i)},iconAriaLabel:a||""})}):ve.jsx("span",{style:{height:"16px",width:"16px",display:"inline-block"}})},nC=" ",W8e=e=>e==null?void 0:e.map(t=>t.title==null||t.title===""?{...t,title:nC}:t),ET=e=>{const{isExpanded:t,isPaginated:n=!0,expandable:r,rowSelection:a,columns:i,dataSource:o,isLoading:l,showError:s,errorContent:c,dataId:d,rowsCanBeSelectAriaLabel:u,selectAllRowsAriaLabel:f,totalRegisters:h,currentPage:b=1,pageSize:v=25,showSizeChanger:m,pageSizeOptions:C=["5","10","20","25","100"],onPageChange:y,prevPageAriaLabel:x,nextPageAriaLabel:S,prevDotsPageAriaLabel:w,nextDotsPageAriaLabel:M}=e;z.useEffect(()=>{document.querySelectorAll(".ant-checkbox-inner").forEach(F=>F.setAttribute("aria-label",u||""));const V=document.querySelector(".ant-table-thead"),_=V==null?void 0:V.querySelector(".ant-checkbox-inner");_&&f&&_.setAttribute("aria-label",f)},[u,f]);const[$,L]=z.useState(b),[R,T]=z.useState(v);z.useEffect(()=>{L(b)},[b]);const A=o??[],O=eb(e,["theme","columns","dataId","expandable","rowSelection","dataSource"]),I=z.useContext(dn)||gn,P=()=>i?[{className:"expanded-first-column",...i[0]},...i.slice(1)]:[],D=l&&!s,H=!l&&s&&c,N=!D&&!H&&i&&o;return r&&(r.expandIcon||(r.expandIcon=Y8e),r.columnTitle||(r.columnTitle=nC)),a&&a.hideSelectAll&&!a.columnTitle&&(a.columnTitle=nC),ve.jsx(Bs,{theme:{token:{colorPrimary:I.primary}},children:ve.jsxs(_8e,{"data-testid":"table",theme:I,"data-id":d,children:[D&&ve.jsx(j8e,{}),H&&ve.jsxs(z8e,{children:[" ",c," "]}),N&&ve.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[ve.jsx($o,{expandable:r,rowSelection:a,pagination:!1,columns:W8e(t?P():i),dataSource:A,...O}),n&&ve.jsx("div",{className:"table-pagination",children:ve.jsx(uT,{total:h,pageSize:v,current:$,previousPageAriaLabel:x||"",nextPageAriaLabel:S||"",prevDotsPageAriaLabel:w||"",nextDotsPageAriaLabel:M||"",showSizeChanger:m,pageSizeOptions:C,totalBoundaryShowSizeChanger:m?50:1/0,onChange:(k,V)=>{L(V!==v?1:k),T(V),y&&y(V!==v?1:k,V)}})})]})]})})},Z8e=()=>Wr(ET,"table"),K8e=({children:e,options:t})=>{if(!e)return null;let n;return t===void 0||t&&Object.entries(t).length===0?n=gn:n={...gn,...t,backgroundColorActive:t.backgroundColor?t.backgroundColor:t.primary},ve.jsx(dH,{theme:n,children:e})},MT=At.div`
|
|
4756
4768
|
position: fixed;
|
|
4757
4769
|
z-index: 100000;
|
|
4758
4770
|
top: 0;
|