@amateescu/portal-ui-components 0.0.7 → 0.0.9-beta0
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/ButtonBase-Dv90LYxj.js +956 -0
- package/dist/Skeleton-g81JQrtl.js +25004 -0
- package/dist/VModalIcon-D7L4bQLO.js +5 -0
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/components/ConfirmationModal/ConfirmationModal.d.ts +2 -0
- package/dist/components/ConfirmationModal/ConfirmationModal.js +50 -0
- package/dist/components/ConfirmationModal/ConfirmationModal.types.d.ts +11 -0
- package/dist/components/CustomButton/index.js +359 -9
- package/dist/components/CustomPagination/CustomPagination.d.ts +11 -0
- package/dist/components/CustomPagination/CustomPagination.js +948 -0
- package/dist/components/ErrorModal/ErrorModal.d.ts +2 -0
- package/dist/components/ErrorModal/ErrorModal.js +35 -0
- package/dist/components/ErrorModal/ErrorModal.types.d.ts +10 -0
- package/dist/components/ErrorModal/ErrorModal.types.js +1 -0
- package/dist/components/InfoModal/index.js +23 -6128
- package/dist/components/KpiCard/index.js +23 -24
- package/dist/components/LoadingAnimation/index.js +254 -37
- package/dist/components/TotalDataGrid/TotalDataGrid.d.ts +2 -0
- package/dist/components/TotalDataGrid/TotalDataGrid.js +125 -0
- package/dist/components/TotalDataGrid/TotalDataGrid.types.js +1 -0
- package/dist/generateUtilityClasses-CBdP3bZj.js +3259 -0
- package/dist/index-BczMuCik.js +6111 -0
- package/dist/main.d.ts +4 -1
- package/dist/main.js +18 -12
- package/dist/{index-kNWC7pFF.js → objectWithoutPropertiesLoose-CIT-1_kH.js} +25 -25
- package/dist/types/CustomSvg.d.ts +5 -0
- package/dist/types/CustomSvg.js +1 -0
- package/package.json +1 -1
- package/dist/Button-BgbkoKxR.js +0 -1314
- package/dist/CircularProgress-BsBIRj7X.js +0 -225
- package/dist/Skeleton-BB4Y_Her.js +0 -5898
- package/dist/components/TotalDataGrid/index.d.ts +0 -2
- package/dist/components/TotalDataGrid/index.js +0 -28058
- package/dist/generateUtilityClasses-sdN6xOVt.js +0 -3985
- package/dist/toPropertyKey-DMiYgyB_.js +0 -19113
- /package/dist/components/{TotalDataGrid/types.js → ConfirmationModal/ConfirmationModal.types.js} +0 -0
- /package/dist/components/TotalDataGrid/{types.d.ts → TotalDataGrid.types.d.ts} +0 -0
|
@@ -3,10 +3,9 @@ import { LoadingAnimation as li } from "../LoadingAnimation/index.js";
|
|
|
3
3
|
import si from "../../utils/cn.js";
|
|
4
4
|
import * as i from "react";
|
|
5
5
|
import ot, { useState as qe, useMemo as Nn, useCallback as Qt, forwardRef as ci, useRef as Fe, useImperativeHandle as ui, createContext as di, useEffect as Mt } from "react";
|
|
6
|
-
import { _ as ua, a as da, b as fa, c as va, s as Xn, u as Jn, f as dr, d as V, t as xr, w as fr, i as fi, K as Zt,
|
|
7
|
-
import { a as de } from "../../
|
|
8
|
-
import
|
|
9
|
-
import '../../assets/index2.css';var hr = /* @__PURE__ */ i.createContext(null);
|
|
6
|
+
import { _ as ua, a as da, b as fa, c as va, s as Xn, u as Jn, f as dr, d as Tn, e as V, t as xr, w as fr, i as fi, K as Zt, g as Ke, h as te, j as At, r as ma, k as O, l as zt, m as $t, C as Qn, n as Er, o as vi, p as vr, q as ha, v as _t, x as mr, y as mi, P as ga, z as je, A as ce, B as hi, D as ba, E as nn, F as bn, G as Zn, I as pa, H as gi, J as bi, L as Rr, M as ya, N as Ca, O as L, Q as Mr, R as Pr, S as Sa, T as Yn, U as pi, V as yi, W as wa, X as er, Y as Ci } from "../../Skeleton-g81JQrtl.js";
|
|
7
|
+
import { a as de } from "../../objectWithoutPropertiesLoose-CIT-1_kH.js";
|
|
8
|
+
import '../../assets/index3.css';var hr = /* @__PURE__ */ i.createContext(null);
|
|
10
9
|
function Si(e) {
|
|
11
10
|
var t = e.children, n = e.onBatchResize, r = i.useRef(0), a = i.useRef([]), o = i.useContext(hr), l = i.useCallback(function(s, c, u) {
|
|
12
11
|
r.current += 1;
|
|
@@ -588,7 +587,7 @@ function ro(e) {
|
|
|
588
587
|
function ao() {
|
|
589
588
|
var e = i.useRef(null), t = function(r) {
|
|
590
589
|
e.current || (e.current = [], ro(function() {
|
|
591
|
-
|
|
590
|
+
ma.unstable_batchedUpdates(function() {
|
|
592
591
|
e.current.forEach(function(a) {
|
|
593
592
|
a();
|
|
594
593
|
}), e.current = null;
|
|
@@ -1040,7 +1039,7 @@ function po(e, t, n, r, a, o, l) {
|
|
|
1040
1039
|
var re = g.getBoundingClientRect();
|
|
1041
1040
|
g.style.left = P, g.style.top = I, g.style.right = j, g.style.bottom = ne, g.style.overflow = w, (_ = g.parentElement) === null || _ === void 0 || _.removeChild(q);
|
|
1042
1041
|
var Ze = In(Math.round(_e / parseFloat(k) * 1e3) / 1e3), Re = In(Math.round(ie / parseFloat(N) * 1e3) / 1e3);
|
|
1043
|
-
if (Ze === 0 || Re === 0 || vr(n) && !
|
|
1042
|
+
if (Ze === 0 || Re === 0 || vr(n) && !ha(n))
|
|
1044
1043
|
return;
|
|
1045
1044
|
var Ie = H.offset, Ye = H.targetOffset, Ae = Ur(T, Ie), De = O(Ae, 2), Ee = De[0], Me = De[1], Be = Ur(D, Ye), he = O(Be, 2), We = he[0], Xe = he[1];
|
|
1046
1045
|
D.x -= We, D.y -= Xe;
|
|
@@ -1173,7 +1172,7 @@ function Co(e, t, n, r, a, o, l, s) {
|
|
|
1173
1172
|
}
|
|
1174
1173
|
var So = ["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"];
|
|
1175
1174
|
function wo() {
|
|
1176
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
1175
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ga, t = /* @__PURE__ */ i.forwardRef(function(n, r) {
|
|
1177
1176
|
var a = n.prefixCls, o = a === void 0 ? "rc-trigger-popup" : a, l = n.children, s = n.action, c = s === void 0 ? "hover" : s, u = n.showAction, v = n.hideAction, d = n.popupVisible, f = n.defaultPopupVisible, m = n.onPopupVisibleChange, C = n.afterPopupVisibleChange, S = n.mouseEnterDelay, p = n.mouseLeaveDelay, b = p === void 0 ? 0.1 : p, h = n.focusDelay, y = n.blurDelay, $ = n.mask, _ = n.maskClosable, g = _ === void 0 ? !0 : _, M = n.getPopupContainer, E = n.forceRender, R = n.autoDestroy, k = n.destroyPopupOnHide, N = n.popup, x = n.popupClassName, P = n.popupStyle, I = n.popupPlacement, j = n.builtinPlacements, ne = j === void 0 ? {} : j, w = n.popupAlign, H = n.zIndex, q = n.stretch, D = n.getPopupClassNameFromAlign, oe = n.fresh, ue = n.alignPoint, A = n.onPopupClick, T = n.onPopupAlign, B = n.arrow, J = n.popupMotion, ae = n.maskMotion, X = n.popupTransitionName, Z = n.popupAnimation, fe = n.maskTransitionName, me = n.maskAnimation, ie = n.className, _e = n.getTriggerDOMNode, G = Ke(n, So), le = R || k || !1, Le = i.useState(!1), Ge = O(Le, 2), Q = Ge[0], Y = Ge[1];
|
|
1178
1177
|
$t(function() {
|
|
1179
1178
|
Y(Ia());
|
|
@@ -1359,7 +1358,7 @@ function wo() {
|
|
|
1359
1358
|
});
|
|
1360
1359
|
return process.env.NODE_ENV !== "production" && (t.displayName = "Trigger"), t;
|
|
1361
1360
|
}
|
|
1362
|
-
const ka = wo(
|
|
1361
|
+
const ka = wo(ga);
|
|
1363
1362
|
var $o = je.ESC, _o = je.TAB;
|
|
1364
1363
|
function xo(e) {
|
|
1365
1364
|
var t = e.visible, n = e.triggerRef, r = e.onVisibleChange, a = e.autoFocus, o = e.overlayRef, l = i.useRef(!1), s = function() {
|
|
@@ -1521,7 +1520,7 @@ function On(e) {
|
|
|
1521
1520
|
var t = e.children, n = e.locked, r = Ke(e, Io), a = i.useContext(xt), o = hi(function() {
|
|
1522
1521
|
return Oo(a, r);
|
|
1523
1522
|
}, [a, r], function(l, s) {
|
|
1524
|
-
return !n && (l[0] !== s[0] || !
|
|
1523
|
+
return !n && (l[0] !== s[0] || !ba(l[1], s[1], !0));
|
|
1525
1524
|
});
|
|
1526
1525
|
return /* @__PURE__ */ i.createElement(xt.Provider, {
|
|
1527
1526
|
value: o
|
|
@@ -1541,7 +1540,7 @@ function zn(e) {
|
|
|
1541
1540
|
var ja = /* @__PURE__ */ i.createContext(null), Nr = /* @__PURE__ */ i.createContext({});
|
|
1542
1541
|
function Xr(e) {
|
|
1543
1542
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
1544
|
-
if (
|
|
1543
|
+
if (ha(e)) {
|
|
1545
1544
|
var n = e.nodeName.toLowerCase(), r = (
|
|
1546
1545
|
// Focusable element
|
|
1547
1546
|
["input", "select", "textarea", "button"].includes(n) || // Editable element
|
|
@@ -2263,7 +2262,7 @@ var ul = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
2263
2262
|
function tt() {
|
|
2264
2263
|
We(ge), le == null || le(ge);
|
|
2265
2264
|
}
|
|
2266
|
-
$e ?
|
|
2265
|
+
$e ? ma.flushSync(tt) : tt();
|
|
2267
2266
|
}, yt = i.useState(he), mt = O(yt, 2), ct = mt[0], Et = mt[1], ze = i.useRef(!1), Ve = i.useMemo(function() {
|
|
2268
2267
|
return (p === "inline" || p === "vertical") && b ? ["vertical", b] : [p, !1];
|
|
2269
2268
|
}, [p, b]), it = O(Ve, 2), pe = it[0], W = it[1], K = pe === "inline", F = i.useState(pe), Se = O(F, 2), Oe = Se[0], Pt = Se[1], et = i.useState(W), ut = O(et, 2), Ct = ut[0], lt = ut[1];
|
|
@@ -2346,7 +2345,7 @@ var ul = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
2346
2345
|
return !tt.has(Qe);
|
|
2347
2346
|
});
|
|
2348
2347
|
}
|
|
2349
|
-
|
|
2348
|
+
ba(he, $e, !0) || Xe($e, !0);
|
|
2350
2349
|
}), Ft = function(ge, $e) {
|
|
2351
2350
|
var tt = $e ?? !he.includes(ge);
|
|
2352
2351
|
Dt(ge, tt);
|
|
@@ -2447,14 +2446,14 @@ Ln.SubMenu = ar;
|
|
|
2447
2446
|
Ln.ItemGroup = zr;
|
|
2448
2447
|
Ln.Divider = Ja;
|
|
2449
2448
|
var fl = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "ellipsis", theme: "outlined" }, vl = function(t, n) {
|
|
2450
|
-
return /* @__PURE__ */ i.createElement(
|
|
2449
|
+
return /* @__PURE__ */ i.createElement(pa, de({}, t, {
|
|
2451
2450
|
ref: n,
|
|
2452
2451
|
icon: fl
|
|
2453
2452
|
}));
|
|
2454
2453
|
}, Qa = /* @__PURE__ */ i.forwardRef(vl);
|
|
2455
2454
|
process.env.NODE_ENV !== "production" && (Qa.displayName = "EllipsisOutlined");
|
|
2456
2455
|
var ml = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { tag: "path", attrs: { d: "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, name: "plus", theme: "outlined" }, hl = function(t, n) {
|
|
2457
|
-
return /* @__PURE__ */ i.createElement(
|
|
2456
|
+
return /* @__PURE__ */ i.createElement(pa, de({}, t, {
|
|
2458
2457
|
ref: n,
|
|
2459
2458
|
icon: ml
|
|
2460
2459
|
}));
|
|
@@ -3778,7 +3777,7 @@ const kl = (e) => {
|
|
|
3778
3777
|
"&:focus:not(:focus-visible), &:active": {
|
|
3779
3778
|
color: n
|
|
3780
3779
|
}
|
|
3781
|
-
},
|
|
3780
|
+
}, Sa(e)),
|
|
3782
3781
|
"&-btn": {
|
|
3783
3782
|
outline: "none",
|
|
3784
3783
|
transition: `all ${e.motionDurationSlow}`,
|
|
@@ -4028,7 +4027,7 @@ const kl = (e) => {
|
|
|
4028
4027
|
"&:active, &:focus:not(:focus-visible)": {
|
|
4029
4028
|
color: l
|
|
4030
4029
|
}
|
|
4031
|
-
},
|
|
4030
|
+
}, Sa(e))
|
|
4032
4031
|
},
|
|
4033
4032
|
[`${t}-extra-content`]: {
|
|
4034
4033
|
flex: "none"
|
|
@@ -4098,8 +4097,8 @@ const kl = (e) => {
|
|
|
4098
4097
|
itemActiveColor: e.colorPrimaryActive,
|
|
4099
4098
|
cardGutter: e.marginXXS / 2
|
|
4100
4099
|
};
|
|
4101
|
-
}, Ul =
|
|
4102
|
-
const t =
|
|
4100
|
+
}, Ul = ya("Tabs", (e) => {
|
|
4101
|
+
const t = Ca(e, {
|
|
4103
4102
|
// `cardPadding` is empty by default, so we could calculate with dynamic `cardHeight`
|
|
4104
4103
|
tabsCardPadding: e.cardPadding,
|
|
4105
4104
|
dropdownEdgeChildVerticalPadding: e.paddingXXS,
|
|
@@ -4166,7 +4165,7 @@ const Ar = (e) => {
|
|
|
4166
4165
|
const ie = Rr("Tabs");
|
|
4167
4166
|
process.env.NODE_ENV !== "production" && ie(!("onPrevClick" in e) && !("onNextClick" in e), "breaking", "`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."), process.env.NODE_ENV !== "production" && ie(!(x || w != null && w.indicatorSize), "deprecated", "`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.");
|
|
4168
4167
|
}
|
|
4169
|
-
const ae =
|
|
4168
|
+
const ae = wa(S), X = Al(R, E), Z = Dl(D, k), fe = Object.assign(Object.assign({}, w == null ? void 0 : w.style), N), me = {
|
|
4170
4169
|
align: (n = P == null ? void 0 : P.align) !== null && n !== void 0 ? n : (r = w == null ? void 0 : w.indicator) === null || r === void 0 ? void 0 : r.align,
|
|
4171
4170
|
size: (s = (o = (a = P == null ? void 0 : P.size) !== null && a !== void 0 ? a : x) !== null && o !== void 0 ? o : (l = w == null ? void 0 : w.indicator) === null || l === void 0 ? void 0 : l.size) !== null && s !== void 0 ? s : w == null ? void 0 : w.indicatorSize
|
|
4172
4171
|
};
|
|
@@ -4522,8 +4521,8 @@ const oi = (e) => {
|
|
|
4522
4521
|
actionsLiMargin: `${e.paddingSM}px 0`,
|
|
4523
4522
|
tabsMarginBottom: -e.padding - e.lineWidth,
|
|
4524
4523
|
extraColor: e.colorText
|
|
4525
|
-
}), is =
|
|
4526
|
-
const t =
|
|
4524
|
+
}), is = ya("Card", (e) => {
|
|
4525
|
+
const t = Ca(e, {
|
|
4527
4526
|
cardShadow: e.boxShadowCard,
|
|
4528
4527
|
cardHeadPadding: e.padding,
|
|
4529
4528
|
cardPaddingBase: e.paddingLG,
|
|
@@ -4626,7 +4625,7 @@ const os = (e) => {
|
|
|
4626
4625
|
tabBarExtraContent: $
|
|
4627
4626
|
});
|
|
4628
4627
|
let T;
|
|
4629
|
-
const B =
|
|
4628
|
+
const B = wa(f), J = !B || B === "default" ? "large" : B, ae = p ? /* @__PURE__ */ i.createElement(Ar, Object.assign({
|
|
4630
4629
|
size: J
|
|
4631
4630
|
}, A, {
|
|
4632
4631
|
className: `${w}-head-tabs`,
|
|
@@ -4723,7 +4722,7 @@ const us = "_kpiCard_aruiy_1", ds = "_width430_aruiy_7", fs = "_width384_aruiy_1
|
|
|
4723
4722
|
title: hs,
|
|
4724
4723
|
content: gs
|
|
4725
4724
|
};
|
|
4726
|
-
function
|
|
4725
|
+
function $s({ title: e, content: t, icon: n, menuCollapsed: r }) {
|
|
4727
4726
|
return /* @__PURE__ */ $n(or, { className: si(Jt.kpiCard, r ? Jt.width430 : Jt.width384), children: e && t ? /* @__PURE__ */ $n("div", { className: Jt.flexCol, children: /* @__PURE__ */ Kr("div", { className: Jt.flexRow, children: [
|
|
4728
4727
|
n,
|
|
4729
4728
|
/* @__PURE__ */ Kr("div", { className: Jt.flexCol, children: [
|
|
@@ -4733,5 +4732,5 @@ function _s({ title: e, content: t, icon: n, menuCollapsed: r }) {
|
|
|
4733
4732
|
] }) }) : /* @__PURE__ */ $n(li, {}) });
|
|
4734
4733
|
}
|
|
4735
4734
|
export {
|
|
4736
|
-
|
|
4735
|
+
$s as KpiCard
|
|
4737
4736
|
};
|
|
@@ -1,38 +1,49 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import { _ as
|
|
4
|
-
import * as
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { h as U, i as z, j as F, k as V, f as j, a as w, C as G, l as H, T as K, P as r, g as L, u as W, c as y, b as A, s as b, m as Y } from "../../generateUtilityClasses-CBdP3bZj.js";
|
|
3
|
+
import { _ as M, a as d } from "../../objectWithoutPropertiesLoose-CIT-1_kH.js";
|
|
4
|
+
import * as C from "react";
|
|
5
|
+
import { ThemeContext as Z, css as R, keyframes as B } from "@emotion/react";
|
|
6
|
+
function q(e) {
|
|
7
|
+
return Object.keys(e).length === 0;
|
|
8
|
+
}
|
|
9
|
+
function J(e = null) {
|
|
10
|
+
const t = C.useContext(Z);
|
|
11
|
+
return !t || q(t) ? e : t;
|
|
12
|
+
}
|
|
13
|
+
const Q = U();
|
|
14
|
+
function X(e = Q) {
|
|
15
|
+
return J(e);
|
|
16
|
+
}
|
|
17
|
+
const ee = ["className", "component"];
|
|
18
|
+
function re(e = {}) {
|
|
8
19
|
const {
|
|
9
|
-
themeId:
|
|
10
|
-
defaultTheme:
|
|
11
|
-
defaultClassName:
|
|
12
|
-
generateClassName:
|
|
13
|
-
} =
|
|
14
|
-
shouldForwardProp: (
|
|
15
|
-
})(
|
|
16
|
-
return /* @__PURE__ */
|
|
17
|
-
const
|
|
18
|
-
className:
|
|
19
|
-
component:
|
|
20
|
-
} =
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
as:
|
|
23
|
-
ref:
|
|
24
|
-
className:
|
|
25
|
-
theme:
|
|
26
|
-
},
|
|
20
|
+
themeId: t,
|
|
21
|
+
defaultTheme: s,
|
|
22
|
+
defaultClassName: o = "MuiBox-root",
|
|
23
|
+
generateClassName: c
|
|
24
|
+
} = e, f = z("div", {
|
|
25
|
+
shouldForwardProp: (a) => a !== "theme" && a !== "sx" && a !== "as"
|
|
26
|
+
})(F);
|
|
27
|
+
return /* @__PURE__ */ C.forwardRef(function(x, l) {
|
|
28
|
+
const i = X(s), h = V(x), {
|
|
29
|
+
className: g,
|
|
30
|
+
component: m = "div"
|
|
31
|
+
} = h, p = M(h, ee);
|
|
32
|
+
return /* @__PURE__ */ u(f, d({
|
|
33
|
+
as: m,
|
|
34
|
+
ref: l,
|
|
35
|
+
className: j(g, c ? c(o) : o),
|
|
36
|
+
theme: t && i[t] || i
|
|
37
|
+
}, p));
|
|
27
38
|
});
|
|
28
39
|
}
|
|
29
|
-
const
|
|
30
|
-
themeId:
|
|
31
|
-
defaultTheme:
|
|
32
|
-
defaultClassName:
|
|
33
|
-
generateClassName:
|
|
40
|
+
const te = w("MuiBox", ["root"]), se = H(), E = re({
|
|
41
|
+
themeId: K,
|
|
42
|
+
defaultTheme: se,
|
|
43
|
+
defaultClassName: te.root,
|
|
44
|
+
generateClassName: G.generate
|
|
34
45
|
});
|
|
35
|
-
process.env.NODE_ENV !== "production" && (
|
|
46
|
+
process.env.NODE_ENV !== "production" && (E.propTypes = {
|
|
36
47
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
37
48
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
38
49
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -40,20 +51,226 @@ process.env.NODE_ENV !== "production" && (m.propTypes = {
|
|
|
40
51
|
/**
|
|
41
52
|
* @ignore
|
|
42
53
|
*/
|
|
43
|
-
children:
|
|
54
|
+
children: r.node,
|
|
44
55
|
/**
|
|
45
56
|
* The component used for the root node.
|
|
46
57
|
* Either a string to use a HTML element or a component.
|
|
47
58
|
*/
|
|
48
|
-
component:
|
|
59
|
+
component: r.elementType,
|
|
60
|
+
/**
|
|
61
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
62
|
+
*/
|
|
63
|
+
sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object])
|
|
64
|
+
});
|
|
65
|
+
function oe(e) {
|
|
66
|
+
return L("MuiCircularProgress", e);
|
|
67
|
+
}
|
|
68
|
+
w("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
|
|
69
|
+
const ae = ["className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"];
|
|
70
|
+
let v = (e) => e, $, D, O, _;
|
|
71
|
+
const n = 44, ne = B($ || ($ = v`
|
|
72
|
+
0% {
|
|
73
|
+
transform: rotate(0deg);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
100% {
|
|
77
|
+
transform: rotate(360deg);
|
|
78
|
+
}
|
|
79
|
+
`)), ie = B(D || (D = v`
|
|
80
|
+
0% {
|
|
81
|
+
stroke-dasharray: 1px, 200px;
|
|
82
|
+
stroke-dashoffset: 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
50% {
|
|
86
|
+
stroke-dasharray: 100px, 200px;
|
|
87
|
+
stroke-dashoffset: -15px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
100% {
|
|
91
|
+
stroke-dasharray: 100px, 200px;
|
|
92
|
+
stroke-dashoffset: -125px;
|
|
93
|
+
}
|
|
94
|
+
`)), ce = (e) => {
|
|
95
|
+
const {
|
|
96
|
+
classes: t,
|
|
97
|
+
variant: s,
|
|
98
|
+
color: o,
|
|
99
|
+
disableShrink: c
|
|
100
|
+
} = e, f = {
|
|
101
|
+
root: ["root", s, `color${y(o)}`],
|
|
102
|
+
svg: ["svg"],
|
|
103
|
+
circle: ["circle", `circle${y(s)}`, c && "circleDisableShrink"]
|
|
104
|
+
};
|
|
105
|
+
return A(f, oe, t);
|
|
106
|
+
}, le = b("span", {
|
|
107
|
+
name: "MuiCircularProgress",
|
|
108
|
+
slot: "Root",
|
|
109
|
+
overridesResolver: (e, t) => {
|
|
110
|
+
const {
|
|
111
|
+
ownerState: s
|
|
112
|
+
} = e;
|
|
113
|
+
return [t.root, t[s.variant], t[`color${y(s.color)}`]];
|
|
114
|
+
}
|
|
115
|
+
})(({
|
|
116
|
+
ownerState: e,
|
|
117
|
+
theme: t
|
|
118
|
+
}) => d({
|
|
119
|
+
display: "inline-block"
|
|
120
|
+
}, e.variant === "determinate" && {
|
|
121
|
+
transition: t.transitions.create("transform")
|
|
122
|
+
}, e.color !== "inherit" && {
|
|
123
|
+
color: (t.vars || t).palette[e.color].main
|
|
124
|
+
}), ({
|
|
125
|
+
ownerState: e
|
|
126
|
+
}) => e.variant === "indeterminate" && R(O || (O = v`
|
|
127
|
+
animation: ${0} 1.4s linear infinite;
|
|
128
|
+
`), ne)), me = b("svg", {
|
|
129
|
+
name: "MuiCircularProgress",
|
|
130
|
+
slot: "Svg",
|
|
131
|
+
overridesResolver: (e, t) => t.svg
|
|
132
|
+
})({
|
|
133
|
+
display: "block"
|
|
134
|
+
// Keeps the progress centered
|
|
135
|
+
}), ue = b("circle", {
|
|
136
|
+
name: "MuiCircularProgress",
|
|
137
|
+
slot: "Circle",
|
|
138
|
+
overridesResolver: (e, t) => {
|
|
139
|
+
const {
|
|
140
|
+
ownerState: s
|
|
141
|
+
} = e;
|
|
142
|
+
return [t.circle, t[`circle${y(s.variant)}`], s.disableShrink && t.circleDisableShrink];
|
|
143
|
+
}
|
|
144
|
+
})(({
|
|
145
|
+
ownerState: e,
|
|
146
|
+
theme: t
|
|
147
|
+
}) => d({
|
|
148
|
+
stroke: "currentColor"
|
|
149
|
+
}, e.variant === "determinate" && {
|
|
150
|
+
transition: t.transitions.create("stroke-dashoffset")
|
|
151
|
+
}, e.variant === "indeterminate" && {
|
|
152
|
+
// Some default value that looks fine waiting for the animation to kicks in.
|
|
153
|
+
strokeDasharray: "80px, 200px",
|
|
154
|
+
strokeDashoffset: 0
|
|
155
|
+
// Add the unit to fix a Edge 16 and below bug.
|
|
156
|
+
}), ({
|
|
157
|
+
ownerState: e
|
|
158
|
+
}) => e.variant === "indeterminate" && !e.disableShrink && R(_ || (_ = v`
|
|
159
|
+
animation: ${0} 1.4s ease-in-out infinite;
|
|
160
|
+
`), ie)), I = /* @__PURE__ */ C.forwardRef(function(t, s) {
|
|
161
|
+
const o = W({
|
|
162
|
+
props: t,
|
|
163
|
+
name: "MuiCircularProgress"
|
|
164
|
+
}), {
|
|
165
|
+
className: c,
|
|
166
|
+
color: f = "primary",
|
|
167
|
+
disableShrink: P = !1,
|
|
168
|
+
size: a = 40,
|
|
169
|
+
style: x,
|
|
170
|
+
thickness: l = 3.6,
|
|
171
|
+
value: i = 0,
|
|
172
|
+
variant: h = "indeterminate"
|
|
173
|
+
} = o, g = M(o, ae), m = d({}, o, {
|
|
174
|
+
color: f,
|
|
175
|
+
disableShrink: P,
|
|
176
|
+
size: a,
|
|
177
|
+
thickness: l,
|
|
178
|
+
value: i,
|
|
179
|
+
variant: h
|
|
180
|
+
}), p = ce(m), k = {}, T = {}, S = {};
|
|
181
|
+
if (h === "determinate") {
|
|
182
|
+
const N = 2 * Math.PI * ((n - l) / 2);
|
|
183
|
+
k.strokeDasharray = N.toFixed(3), S["aria-valuenow"] = Math.round(i), k.strokeDashoffset = `${((100 - i) / 100 * N).toFixed(3)}px`, T.transform = "rotate(-90deg)";
|
|
184
|
+
}
|
|
185
|
+
return /* @__PURE__ */ u(le, d({
|
|
186
|
+
className: j(p.root, c),
|
|
187
|
+
style: d({
|
|
188
|
+
width: a,
|
|
189
|
+
height: a
|
|
190
|
+
}, T, x),
|
|
191
|
+
ownerState: m,
|
|
192
|
+
ref: s,
|
|
193
|
+
role: "progressbar"
|
|
194
|
+
}, S, g, {
|
|
195
|
+
children: /* @__PURE__ */ u(me, {
|
|
196
|
+
className: p.svg,
|
|
197
|
+
ownerState: m,
|
|
198
|
+
viewBox: `${n / 2} ${n / 2} ${n} ${n}`,
|
|
199
|
+
children: /* @__PURE__ */ u(ue, {
|
|
200
|
+
className: p.circle,
|
|
201
|
+
style: k,
|
|
202
|
+
ownerState: m,
|
|
203
|
+
cx: n,
|
|
204
|
+
cy: n,
|
|
205
|
+
r: (n - l) / 2,
|
|
206
|
+
fill: "none",
|
|
207
|
+
strokeWidth: l
|
|
208
|
+
})
|
|
209
|
+
})
|
|
210
|
+
}));
|
|
211
|
+
});
|
|
212
|
+
process.env.NODE_ENV !== "production" && (I.propTypes = {
|
|
213
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
214
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
215
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
216
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
217
|
+
/**
|
|
218
|
+
* Override or extend the styles applied to the component.
|
|
219
|
+
*/
|
|
220
|
+
classes: r.object,
|
|
221
|
+
/**
|
|
222
|
+
* @ignore
|
|
223
|
+
*/
|
|
224
|
+
className: r.string,
|
|
225
|
+
/**
|
|
226
|
+
* The color of the component.
|
|
227
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
228
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
229
|
+
* @default 'primary'
|
|
230
|
+
*/
|
|
231
|
+
color: r.oneOfType([r.oneOf(["inherit", "primary", "secondary", "error", "info", "success", "warning"]), r.string]),
|
|
232
|
+
/**
|
|
233
|
+
* If `true`, the shrink animation is disabled.
|
|
234
|
+
* This only works if variant is `indeterminate`.
|
|
235
|
+
* @default false
|
|
236
|
+
*/
|
|
237
|
+
disableShrink: Y(r.bool, (e) => e.disableShrink && e.variant && e.variant !== "indeterminate" ? new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect.") : null),
|
|
238
|
+
/**
|
|
239
|
+
* The size of the component.
|
|
240
|
+
* If using a number, the pixel unit is assumed.
|
|
241
|
+
* If using a string, you need to provide the CSS unit, for example '3rem'.
|
|
242
|
+
* @default 40
|
|
243
|
+
*/
|
|
244
|
+
size: r.oneOfType([r.number, r.string]),
|
|
245
|
+
/**
|
|
246
|
+
* @ignore
|
|
247
|
+
*/
|
|
248
|
+
style: r.object,
|
|
49
249
|
/**
|
|
50
250
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
51
251
|
*/
|
|
52
|
-
sx:
|
|
252
|
+
sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object]),
|
|
253
|
+
/**
|
|
254
|
+
* The thickness of the circle.
|
|
255
|
+
* @default 3.6
|
|
256
|
+
*/
|
|
257
|
+
thickness: r.number,
|
|
258
|
+
/**
|
|
259
|
+
* The value of the progress indicator for the determinate variant.
|
|
260
|
+
* Value between 0 and 100.
|
|
261
|
+
* @default 0
|
|
262
|
+
*/
|
|
263
|
+
value: r.number,
|
|
264
|
+
/**
|
|
265
|
+
* The variant to use.
|
|
266
|
+
* Use indeterminate when there is no progress value.
|
|
267
|
+
* @default 'indeterminate'
|
|
268
|
+
*/
|
|
269
|
+
variant: r.oneOf(["determinate", "indeterminate"])
|
|
53
270
|
});
|
|
54
|
-
function
|
|
55
|
-
return /* @__PURE__ */
|
|
271
|
+
function ye() {
|
|
272
|
+
return /* @__PURE__ */ u(E, { display: "flex", justifyContent: "center", alignItems: "center", minHeight: "100%", children: /* @__PURE__ */ u(I, {}) });
|
|
56
273
|
}
|
|
57
274
|
export {
|
|
58
|
-
|
|
275
|
+
ye as LoadingAnimation
|
|
59
276
|
};
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { DataGrid as t, gridClasses as o } from "@mui/x-data-grid";
|
|
3
|
+
const p = ({
|
|
4
|
+
rows: e,
|
|
5
|
+
isFetching: n
|
|
6
|
+
// columnsDefinitions
|
|
7
|
+
}) => /* @__PURE__ */ a(
|
|
8
|
+
t,
|
|
9
|
+
{
|
|
10
|
+
loading: (!e || !e.length) && n,
|
|
11
|
+
rows: e.map((i, r) => (i.id = r, i)),
|
|
12
|
+
columns: [],
|
|
13
|
+
getRowClassName: (i) => i.id === e.length - 1 ? "last-row" : "",
|
|
14
|
+
sx: {
|
|
15
|
+
"& .last-row": {
|
|
16
|
+
"& .MuiDataGrid-cellContent": {
|
|
17
|
+
fontWeight: "600"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
[`& .${o.main}`]: {
|
|
21
|
+
backgroundColor: "#F0F0F0",
|
|
22
|
+
borderRadius: "0px 0px 8px 8px"
|
|
23
|
+
},
|
|
24
|
+
[`& .${o.row}`]: {
|
|
25
|
+
maxHeight: "36px",
|
|
26
|
+
minHeight: "36px",
|
|
27
|
+
"&.Mui-selected": {
|
|
28
|
+
backgroundColor: "#05A9521A !important"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
[`& .${o.cell}`]: {
|
|
32
|
+
border: "none !important"
|
|
33
|
+
},
|
|
34
|
+
[`& .${o.cell}:focus, & .${o.cell}:focus-within`]: {
|
|
35
|
+
outline: "none"
|
|
36
|
+
},
|
|
37
|
+
[`& .${o.columnHeader}:focus, & .${o.columnHeader}:focus-within`]: {
|
|
38
|
+
outline: "none"
|
|
39
|
+
},
|
|
40
|
+
[`& .${o.columnHeaders}`]: {
|
|
41
|
+
backgroundColor: "#FAFAFA",
|
|
42
|
+
textTransform: "uppercase",
|
|
43
|
+
userSelect: "none",
|
|
44
|
+
border: "none",
|
|
45
|
+
borderRadius: "16px",
|
|
46
|
+
minHeight: "0px !important",
|
|
47
|
+
lineHeight: "0px !important"
|
|
48
|
+
},
|
|
49
|
+
[`& .${o.columnHeadersInner}`]: {
|
|
50
|
+
minHeight: "0px !important",
|
|
51
|
+
lineHeight: "0px !important"
|
|
52
|
+
},
|
|
53
|
+
[`& .${o.columnHeader}`]: {
|
|
54
|
+
height: "0px !important"
|
|
55
|
+
},
|
|
56
|
+
[`& .${o.columnHeaderTitle}`]: {
|
|
57
|
+
whiteSpace: "normal",
|
|
58
|
+
lineHeight: "normal",
|
|
59
|
+
color: "#626367",
|
|
60
|
+
fontWeight: "500",
|
|
61
|
+
fontSize: "13px"
|
|
62
|
+
},
|
|
63
|
+
[`& .${o.columnHeaderTitleContainer}`]: {
|
|
64
|
+
alignItems: "center"
|
|
65
|
+
},
|
|
66
|
+
[`& .${o.footerContainer}`]: {
|
|
67
|
+
border: "0",
|
|
68
|
+
backgroundColor: "#F0F0F0",
|
|
69
|
+
borderRadius: "8px",
|
|
70
|
+
marginTop: "10px",
|
|
71
|
+
display: "none"
|
|
72
|
+
},
|
|
73
|
+
[`& .${o.overlay}`]: {
|
|
74
|
+
backgroundColor: "#F0F0F0"
|
|
75
|
+
},
|
|
76
|
+
[`& .${o.toolbarContainer}`]: {
|
|
77
|
+
backgroundColor: "#F0F0F0",
|
|
78
|
+
borderRadius: "8px 8px 0 0",
|
|
79
|
+
padding: "10px"
|
|
80
|
+
},
|
|
81
|
+
[`& .${o.columnSeparator}`]: {
|
|
82
|
+
display: "none"
|
|
83
|
+
},
|
|
84
|
+
[`& .${o.root}`]: {
|
|
85
|
+
border: "0",
|
|
86
|
+
".MuiDataGrid-cell:focus-within": {
|
|
87
|
+
outline: "none !important"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"&.MuiDataGrid-root": {
|
|
91
|
+
border: "0"
|
|
92
|
+
},
|
|
93
|
+
"& .MuiDataGrid-main": {
|
|
94
|
+
borderRadius: "8px"
|
|
95
|
+
},
|
|
96
|
+
"& .MuiTablePagination-spacer": { order: 0, display: "none" },
|
|
97
|
+
"& .MuiTablePagination-displayedRows": {
|
|
98
|
+
order: 1,
|
|
99
|
+
color: "#12121A",
|
|
100
|
+
fontWeight: "300",
|
|
101
|
+
marginInlineEnd: "10px",
|
|
102
|
+
position: "absolute",
|
|
103
|
+
right: "10px"
|
|
104
|
+
},
|
|
105
|
+
"& .MuiTablePagination-toolbar": {
|
|
106
|
+
display: "flex",
|
|
107
|
+
width: "100%"
|
|
108
|
+
},
|
|
109
|
+
"& .MuiTablePagination-actions": {
|
|
110
|
+
marginLeft: "auto !important",
|
|
111
|
+
marginRight: "auto !important"
|
|
112
|
+
},
|
|
113
|
+
"& .MuiTablePagination-root": {
|
|
114
|
+
width: "100%",
|
|
115
|
+
display: "none"
|
|
116
|
+
},
|
|
117
|
+
"& .MuiDataGrid-virtualScroller": {
|
|
118
|
+
overflow: "hidden"
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
export {
|
|
124
|
+
p as TotalDataGrid
|
|
125
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|