@m4l/components 0.1.26 → 0.1.28
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/assets/Logo/index.228dcb5a.js +42 -35
- package/commonjs.565e6834.js +5 -5
- package/components/CommonActions/components/ActionCancel/index.e498eeb2.js +17 -0
- package/components/CommonActions/components/ActionFormCancel/index.4ff0ad73.js +64 -0
- package/components/CommonActions/components/ActionFormIntro/index.ca4d2674.js +28 -22
- package/components/CommonActions/components/ActionIntro/index.60ef7bd7.js +18 -0
- package/components/CommonActions/components/Actions/index.0645e30f.js +867 -0
- package/components/DataGrid/index.76d8fd25.js +1075 -0
- package/components/DynamicFilter/index.342ba5fe.js +1577 -0
- package/components/ErrorLabel/index.c8615f16.js +13 -12
- package/components/Icon/index.619c31c4.js +96 -0
- package/components/Icon/types.d.ts +2 -1
- package/components/Image/index.93d5f37f.js +190 -0
- package/components/Loadable/index.f5518558.js +8 -8
- package/components/ModalDialog/index.9ea10764.js +184 -0
- package/components/NoItemSelected/{index.9609a7f7.js → index.46d2f632.js} +52 -41
- package/components/ObjectLogs/index.f941fb79.js +288 -0
- package/components/Page/index.4237c241.js +22 -20
- package/components/PaperForm/index.ec9cb8c9.js +112 -0
- package/components/Period/index.2941fbda.js +249 -0
- package/components/PropertyValue/index.dfcfe1ba.js +147 -0
- package/components/PropertyValue/styles.d.ts +2 -1
- package/components/PropertyValue/types.d.ts +3 -3
- package/components/Resizeable/index.45995d2b.js +19 -19
- package/components/ScrollBar/index.39eeb2de.js +26 -21
- package/components/ScrollToTop/index.e06f98f6.js +8 -7
- package/components/SplitLayout/index.4032673d.js +35 -33
- package/components/animate/LoadingScreen/index.1d0c4307.js +33 -33
- package/components/animate/MotionContainer/index.8d9f9d80.js +25 -22
- package/components/animate/MotionLazyContainer/index.572dd012.js +10 -10
- package/components/animate/features.0fbf41e1.js +3 -3
- package/components/animate/variants/bounce.784aaaaa.js +16 -13
- package/components/animate/variants/container.11f82b76.js +8 -6
- package/components/animate/variants/fade.b561c0fc.js +32 -28
- package/components/animate/variants/transition.bd46b9ce.js +17 -12
- package/components/formatters/BooleanFormatter/index.8da35c9c.js +55 -0
- package/components/formatters/DateFormatter/index.1b9baacc.js +69 -0
- package/components/formatters/index.689a8086.js +119 -0
- package/components/hook-form/RHFAutocomplete/index.59a68f9f.js +224 -0
- package/components/hook-form/RHFAutocompleteAsync/index.c3083062.js +87 -0
- package/components/hook-form/RHFCheckbox/index.6dcec9e2.js +49 -39
- package/components/hook-form/RHFDateTime/index.9231a7c7.js +69 -56
- package/components/hook-form/RHFMultiCheckbox/index.2680b3b6.js +23 -23
- package/components/hook-form/RHFPeriod/index.64a228d5.js +55 -0
- package/components/hook-form/RHFRadioGroup/index.b3335e13.js +29 -29
- package/components/hook-form/RHFSelect/index.b6ca8bb2.js +24 -24
- package/components/hook-form/RHFTextField/index.f9aaaa90.js +146 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/index.d.ts +0 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/styles.d.ts +4 -3
- package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/subcomponents/Skeleton/index.d.ts +0 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/subcomponents/Skeleton/styles.d.ts +0 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/types.d.ts +0 -0
- package/components/hook-form/RHFUpload/index.d5cc7c13.js +285 -0
- package/components/mui_extended/Accordion/index.a02ac6ae.js +107 -0
- package/components/mui_extended/Avatar/index.fe06afd7.js +51 -0
- package/components/mui_extended/BoxIcon/index.e638ecc8.js +10 -10
- package/components/mui_extended/Breadcrumbs/index.5e37d903.js +49 -44
- package/components/mui_extended/Button/index.53b56958.js +178 -0
- package/components/mui_extended/CircularProgress/index.ad569afd.js +8 -6
- package/components/mui_extended/IconButton/index.a321e5cb.js +120 -0
- package/components/mui_extended/IconButton/index.d.ts +1 -1
- package/components/mui_extended/LinkWithRoute/index.16436ab8.js +25 -21
- package/components/mui_extended/Pager/index.c0865b70.js +141 -0
- package/components/mui_extended/Popover/index.705275a4.js +278 -0
- package/components/mui_extended/Tab/index.e0653a0a.js +25 -21
- package/components/mui_extended/Typography/index.e5494696.js +25 -21
- package/contexts/ModalContext/index.b92fa565.js +153 -0
- package/contexts/ModalContext/{components → subcomponents}/ContentConfirm/index.d.ts +0 -0
- package/contexts/ModalContext/{components → subcomponents}/ContentConfirm/styles.d.ts +0 -0
- package/contexts/ModalContext/{components → subcomponents}/ContentConfirm/types.d.ts +0 -0
- package/contexts/RHFormContext/index.b142190a.js +63 -0
- package/hooks/useFormAddEdit/index.d4845f1a.js +40 -22
- package/hooks/useModal/index.5fee01a3.js +11 -0
- package/index.js +153 -153
- package/package.json +2 -1
- package/react-data-grid.d46d625e.js +2206 -1663
- package/react-draggable.20e95c61.js +800 -553
- package/react-json-view.f56a7f8e.js +2344 -2340
- package/react-resizable.5277deaf.js +470 -298
- package/react-splitter-layout.7810ac1b.js +130 -128
- package/utils/index.214d9542.js +500 -354
- package/components/CommonActions/components/ActionCancel/index.6736b782.js +0 -17
- package/components/CommonActions/components/ActionFormCancel/index.281ee166.js +0 -49
- package/components/CommonActions/components/ActionIntro/index.4665a611.js +0 -18
- package/components/CommonActions/components/Actions/index.cd7b2671.js +0 -742
- package/components/DataGrid/index.2caf6231.js +0 -894
- package/components/DynamicFilter/index.f2377369.js +0 -1157
- package/components/Icon/index.f569765b.js +0 -82
- package/components/Image/index.c9da2d5a.js +0 -152
- package/components/ModalDialog/index.bee344a5.js +0 -168
- package/components/ObjectLogs/index.6b6f95e6.js +0 -266
- package/components/PaperForm/index.3f8c7ef2.js +0 -105
- package/components/Period/index.a112ce37.js +0 -175
- package/components/PropertyValue/index.ab3dd7e9.js +0 -116
- package/components/contexts/RHFormContext/index.33dba822.js +0 -56
- package/components/formatters/BooleanFormatter/index.3ec56305.js +0 -42
- package/components/formatters/DateFormatter/index.08d8823b.js +0 -57
- package/components/formatters/index.6959c2de.js +0 -106
- package/components/hook-form/RHFAutocomplete/index.5eee9d7c.js +0 -174
- package/components/hook-form/RHFAutocompleteAsync/index.757b5080.js +0 -65
- package/components/hook-form/RHFPeriod/index.979d0898.js +0 -51
- package/components/hook-form/RHFTextField/index.ba2a8f67.js +0 -129
- package/components/hook-form/RHFUpload/index.6347159a.js +0 -258
- package/components/mui_extended/Accordion/index.49f5df8e.js +0 -103
- package/components/mui_extended/Avatar/index.dadb0528.js +0 -37
- package/components/mui_extended/Button/index.52d18aea.js +0 -144
- package/components/mui_extended/IconButton/index.4b5ce8b5.js +0 -103
- package/components/mui_extended/Pager/index.951b6975.js +0 -126
- package/components/mui_extended/Popover/index.4da8587a.js +0 -252
- package/contexts/ModalContext/index.5388dfd5.js +0 -136
- package/hooks/useModal/index.3b1ff084.js +0 -11
- package/node_modules.168cb897.js +0 -55
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { Skeleton as d, Accordion as f, AccordionSummary as x, AccordionDetails as b } from "@mui/material";
|
|
2
|
-
import { I as v } from "../IconButton/index.4b5ce8b5.js";
|
|
3
|
-
import { useEnvironment as y, useModuleSkeleton as I } from "@m4l/core";
|
|
4
|
-
import { I as S } from "../../Icon/index.f569765b.js";
|
|
5
|
-
import { styled as c } from "@mui/material/styles";
|
|
6
|
-
import { jsx as t, jsxs as s } from "react/jsx-runtime";
|
|
7
|
-
c("div")(({
|
|
8
|
-
theme: n
|
|
9
|
-
}) => ({
|
|
10
|
-
display: "flex",
|
|
11
|
-
justifyContent: "space-between",
|
|
12
|
-
alignItems: "center",
|
|
13
|
-
borderRadius: n.spacing(0.5),
|
|
14
|
-
height: n.spacing(4.5),
|
|
15
|
-
minHeight: n.spacing(4.5),
|
|
16
|
-
backgroundColor: n.palette.background.header,
|
|
17
|
-
paddingLeft: n.spacing(2),
|
|
18
|
-
paddingRight: n.spacing(2),
|
|
19
|
-
marginBottom: "0px"
|
|
20
|
-
}));
|
|
21
|
-
const l = c("div")(({
|
|
22
|
-
theme: n
|
|
23
|
-
}) => ({
|
|
24
|
-
display: "flex",
|
|
25
|
-
justifyContent: "flex-start",
|
|
26
|
-
alignItems: "center",
|
|
27
|
-
gap: n.spacing(2)
|
|
28
|
-
})), A = c("span")(({
|
|
29
|
-
theme: n
|
|
30
|
-
}) => ({
|
|
31
|
-
...n.typography.subtitle2
|
|
32
|
-
})), k = (n) => {
|
|
33
|
-
const {
|
|
34
|
-
isSkeleton: e,
|
|
35
|
-
label: i,
|
|
36
|
-
SKTWidht: r,
|
|
37
|
-
SKTHeight: a,
|
|
38
|
-
labelIcon: o
|
|
39
|
-
} = n;
|
|
40
|
-
return /* @__PURE__ */ t("div", {
|
|
41
|
-
children: e ? /* @__PURE__ */ s(l, {
|
|
42
|
-
children: [o && /* @__PURE__ */ t(d, {
|
|
43
|
-
variant: "circular",
|
|
44
|
-
width: "16px",
|
|
45
|
-
height: "16px"
|
|
46
|
-
}), /* @__PURE__ */ t(d, {
|
|
47
|
-
variant: "text",
|
|
48
|
-
width: r,
|
|
49
|
-
height: a
|
|
50
|
-
})]
|
|
51
|
-
}) : /* @__PURE__ */ s(l, {
|
|
52
|
-
children: [o && /* @__PURE__ */ t(S, {
|
|
53
|
-
src: o
|
|
54
|
-
}), /* @__PURE__ */ t(A, {
|
|
55
|
-
children: i
|
|
56
|
-
})]
|
|
57
|
-
})
|
|
58
|
-
});
|
|
59
|
-
};
|
|
60
|
-
function E(n) {
|
|
61
|
-
const {
|
|
62
|
-
label: e,
|
|
63
|
-
SKTWidht: i,
|
|
64
|
-
SKTHeight: r,
|
|
65
|
-
children: a,
|
|
66
|
-
accordionProps: o,
|
|
67
|
-
summaryProps: p,
|
|
68
|
-
labelIcon: u
|
|
69
|
-
} = n, {
|
|
70
|
-
host_static_assets: g,
|
|
71
|
-
environment_assets: h
|
|
72
|
-
} = y(), m = I();
|
|
73
|
-
return /* @__PURE__ */ s(f, {
|
|
74
|
-
variant: "outlined",
|
|
75
|
-
square: !0,
|
|
76
|
-
TransitionProps: {
|
|
77
|
-
unmountOnExit: !0
|
|
78
|
-
},
|
|
79
|
-
defaultExpanded: !0,
|
|
80
|
-
...o,
|
|
81
|
-
children: [/* @__PURE__ */ t(x, {
|
|
82
|
-
"aria-controls": "expanded-content",
|
|
83
|
-
disableTouchRipple: !1,
|
|
84
|
-
expandIcon: /* @__PURE__ */ t(v, {
|
|
85
|
-
"aria-label": "settings",
|
|
86
|
-
src: `${g}/${h}/frontend/components/accordion/assets/icons/expanded.svg`
|
|
87
|
-
}),
|
|
88
|
-
...p,
|
|
89
|
-
children: /* @__PURE__ */ t(k, {
|
|
90
|
-
isSkeleton: m,
|
|
91
|
-
label: e,
|
|
92
|
-
SKTWidht: i,
|
|
93
|
-
SKTHeight: r,
|
|
94
|
-
labelIcon: u
|
|
95
|
-
})
|
|
96
|
-
}), /* @__PURE__ */ t(b, {
|
|
97
|
-
children: a
|
|
98
|
-
})]
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
export {
|
|
102
|
-
E as A
|
|
103
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { forwardRef as p } from "react";
|
|
2
|
-
import { useTheme as s } from "@mui/material/styles";
|
|
3
|
-
import { Skeleton as f, Avatar as m } from "@mui/material";
|
|
4
|
-
import { useModuleSkeleton as u } from "@m4l/core";
|
|
5
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
6
|
-
const l = () => /* @__PURE__ */ t(f, {
|
|
7
|
-
variant: "circular",
|
|
8
|
-
width: "32px",
|
|
9
|
-
height: "32px"
|
|
10
|
-
}), d = p(({
|
|
11
|
-
color: e = "default",
|
|
12
|
-
children: a,
|
|
13
|
-
sx: o,
|
|
14
|
-
...n
|
|
15
|
-
}, i) => {
|
|
16
|
-
const r = s();
|
|
17
|
-
return u() ? /* @__PURE__ */ t(l, {}) : e === "default" ? /* @__PURE__ */ t(m, {
|
|
18
|
-
ref: i,
|
|
19
|
-
sx: o,
|
|
20
|
-
...n,
|
|
21
|
-
children: a
|
|
22
|
-
}) : /* @__PURE__ */ t(m, {
|
|
23
|
-
ref: i,
|
|
24
|
-
sx: {
|
|
25
|
-
fontWeight: r.typography.fontWeightMedium,
|
|
26
|
-
color: r.palette[e].contrastText,
|
|
27
|
-
backgroundColor: r.palette[e].main,
|
|
28
|
-
...o
|
|
29
|
-
},
|
|
30
|
-
...n,
|
|
31
|
-
children: a
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
|
-
d.displayName = "Avatar";
|
|
35
|
-
export {
|
|
36
|
-
d as A
|
|
37
|
-
};
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import { useModuleSkeleton as g, useEnvironment as B, useModuleDictionary as k } from "@m4l/core";
|
|
2
|
-
import { Skeleton as m, styled as S, IconButton as v, Tooltip as I } from "@mui/material";
|
|
3
|
-
import _ from "@mui/material/Button";
|
|
4
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
5
|
-
import { LoadingButton as b } from "@mui/lab";
|
|
6
|
-
import { I as x } from "../IconButton/index.4b5ce8b5.js";
|
|
7
|
-
import { styled as h, alpha as F } from "@mui/material/styles";
|
|
8
|
-
import { u as L } from "../../DynamicFilter/index.f2377369.js";
|
|
9
|
-
import { useMemo as u } from "react";
|
|
10
|
-
import { I as $ } from "../../Image/index.c9da2d5a.js";
|
|
11
|
-
const G = (t) => g() ? /* @__PURE__ */ i(m, {
|
|
12
|
-
sx: {
|
|
13
|
-
borderRadius: 2
|
|
14
|
-
},
|
|
15
|
-
variant: "rectangular",
|
|
16
|
-
width: "100px",
|
|
17
|
-
height: "36px"
|
|
18
|
-
}) : /* @__PURE__ */ i(_, {
|
|
19
|
-
...t
|
|
20
|
-
}), D = S("div")(({
|
|
21
|
-
theme: t
|
|
22
|
-
}) => ({
|
|
23
|
-
display: "flex",
|
|
24
|
-
width: "100%",
|
|
25
|
-
borderRadius: t.spacing(1),
|
|
26
|
-
overflow: "hidden"
|
|
27
|
-
})), W = () => /* @__PURE__ */ i(D, {
|
|
28
|
-
id: "WrapperSKTLoadingButton",
|
|
29
|
-
children: /* @__PURE__ */ i(m, {
|
|
30
|
-
variant: "rectangular",
|
|
31
|
-
width: "100%",
|
|
32
|
-
height: "48px"
|
|
33
|
-
})
|
|
34
|
-
}), H = (t) => {
|
|
35
|
-
const {
|
|
36
|
-
children: r,
|
|
37
|
-
...n
|
|
38
|
-
} = t;
|
|
39
|
-
return g() ? /* @__PURE__ */ i(W, {}) : /* @__PURE__ */ i(b, {
|
|
40
|
-
...n,
|
|
41
|
-
children: r
|
|
42
|
-
});
|
|
43
|
-
}, w = h("div")(({
|
|
44
|
-
theme: t
|
|
45
|
-
}) => ({
|
|
46
|
-
display: "flex",
|
|
47
|
-
justifyContent: "center",
|
|
48
|
-
alignItems: "center",
|
|
49
|
-
minWidth: t.spacing(3.75),
|
|
50
|
-
height: t.spacing(3.75),
|
|
51
|
-
background: F(t.palette.primary.main, 0.3)
|
|
52
|
-
})), C = h("div")(() => ({
|
|
53
|
-
"&.isDirty": {
|
|
54
|
-
animationName: "dirtyEffect",
|
|
55
|
-
animationDuration: "1s",
|
|
56
|
-
animationFillMode: "both",
|
|
57
|
-
animationIterationCount: "infinite",
|
|
58
|
-
transition: "all .3s",
|
|
59
|
-
"@keyframes dirtyEffect": {
|
|
60
|
-
"20%": {
|
|
61
|
-
opacity: 1
|
|
62
|
-
},
|
|
63
|
-
"50%": {
|
|
64
|
-
opacity: 0.5
|
|
65
|
-
},
|
|
66
|
-
"100%": {
|
|
67
|
-
opacity: 1
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
"&.isDirtyError": {}
|
|
72
|
-
}));
|
|
73
|
-
function J() {
|
|
74
|
-
const {
|
|
75
|
-
isSkeleton: t,
|
|
76
|
-
fireOnChangeFilters: r,
|
|
77
|
-
automatic: n,
|
|
78
|
-
isDirty: o,
|
|
79
|
-
isValid: e
|
|
80
|
-
} = L(), {
|
|
81
|
-
host_static_assets: s,
|
|
82
|
-
environment_assets: l
|
|
83
|
-
} = B();
|
|
84
|
-
if (t)
|
|
85
|
-
return /* @__PURE__ */ i(w, {
|
|
86
|
-
children: /* @__PURE__ */ i(m, {
|
|
87
|
-
variant: "circular",
|
|
88
|
-
width: 20,
|
|
89
|
-
height: 20
|
|
90
|
-
})
|
|
91
|
-
});
|
|
92
|
-
const a = u(() => n || !o ? "action.active" : e ? "primary.main" : "error.main", [n, e, o]);
|
|
93
|
-
return /* @__PURE__ */ i(C, {
|
|
94
|
-
id: "WrapperFilterButton",
|
|
95
|
-
className: o && e ? "isDirty" : "",
|
|
96
|
-
children: /* @__PURE__ */ i(x, {
|
|
97
|
-
bgColor: a,
|
|
98
|
-
dictionaryTooltip: "dynamic_filter.filter_tooltip",
|
|
99
|
-
onClick: () => r(),
|
|
100
|
-
"aria-label": "settings",
|
|
101
|
-
src: `${s}/${l}/frontend/components/dynamic_filter/assets/icons/${n ? "refresh" : "search"}.svg`
|
|
102
|
-
})
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
function O({
|
|
106
|
-
src: t,
|
|
107
|
-
width: r,
|
|
108
|
-
height: n,
|
|
109
|
-
className: o,
|
|
110
|
-
useIntersectionObserver: e,
|
|
111
|
-
skeletonVariant: s = "circle",
|
|
112
|
-
tooltip: l,
|
|
113
|
-
dictionaryTooltip: a,
|
|
114
|
-
sx: d = {
|
|
115
|
-
width: 40,
|
|
116
|
-
height: 40
|
|
117
|
-
},
|
|
118
|
-
...y
|
|
119
|
-
}) {
|
|
120
|
-
const {
|
|
121
|
-
getLabel: c
|
|
122
|
-
} = k(), p = u(() => a && c ? c(a) : l, [l, a, c]), f = u(() => /* @__PURE__ */ i(v, {
|
|
123
|
-
sx: d,
|
|
124
|
-
className: `m4l_image_button ${o || ""}`,
|
|
125
|
-
...y,
|
|
126
|
-
children: /* @__PURE__ */ i($, {
|
|
127
|
-
src: t,
|
|
128
|
-
width: r,
|
|
129
|
-
height: n,
|
|
130
|
-
useIntersectionObserver: e,
|
|
131
|
-
skeletonVariant: s
|
|
132
|
-
})
|
|
133
|
-
}), [t, r, n, e, s, d]);
|
|
134
|
-
return p ? /* @__PURE__ */ i(I, {
|
|
135
|
-
title: p || "",
|
|
136
|
-
children: f
|
|
137
|
-
}) : f;
|
|
138
|
-
}
|
|
139
|
-
export {
|
|
140
|
-
G as B,
|
|
141
|
-
J as F,
|
|
142
|
-
O as I,
|
|
143
|
-
H as L
|
|
144
|
-
};
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { m as p } from "framer-motion";
|
|
2
|
-
import { forwardRef as f, useMemo as v } from "react";
|
|
3
|
-
import { IconButton as l, Box as I, Skeleton as b, Tooltip as h } from "@mui/material";
|
|
4
|
-
import { jsx as e } from "react/jsx-runtime";
|
|
5
|
-
import { useModuleDictionary as x, useModuleSkeleton as B } from "@m4l/core";
|
|
6
|
-
import { I as d } from "../../Icon/index.f569765b.js";
|
|
7
|
-
const g = {
|
|
8
|
-
hover: {
|
|
9
|
-
scale: 1.1
|
|
10
|
-
},
|
|
11
|
-
tap: {
|
|
12
|
-
scale: 0.95
|
|
13
|
-
}
|
|
14
|
-
}, S = {
|
|
15
|
-
hover: {
|
|
16
|
-
scale: 1.09
|
|
17
|
-
},
|
|
18
|
-
tap: {
|
|
19
|
-
scale: 0.97
|
|
20
|
-
}
|
|
21
|
-
}, k = {
|
|
22
|
-
hover: {
|
|
23
|
-
scale: 1.08
|
|
24
|
-
},
|
|
25
|
-
tap: {
|
|
26
|
-
scale: 0.99
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
function w({
|
|
30
|
-
size: n,
|
|
31
|
-
children: t
|
|
32
|
-
}) {
|
|
33
|
-
const a = n === "small", o = n === "large";
|
|
34
|
-
return /* @__PURE__ */ e(I, {
|
|
35
|
-
component: p.div,
|
|
36
|
-
whileTap: "tap",
|
|
37
|
-
whileHover: "hover",
|
|
38
|
-
variants: a && g || o && k || S,
|
|
39
|
-
sx: {
|
|
40
|
-
display: "inline-flex"
|
|
41
|
-
},
|
|
42
|
-
children: t
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
const M = f(({
|
|
46
|
-
children: n,
|
|
47
|
-
size: t = "medium",
|
|
48
|
-
...a
|
|
49
|
-
}, o) => /* @__PURE__ */ e(w, {
|
|
50
|
-
size: t,
|
|
51
|
-
children: /* @__PURE__ */ e(l, {
|
|
52
|
-
size: t,
|
|
53
|
-
ref: o,
|
|
54
|
-
...a,
|
|
55
|
-
children: n
|
|
56
|
-
})
|
|
57
|
-
}));
|
|
58
|
-
M.displayName = "IconButtonAnimate";
|
|
59
|
-
const A = () => /* @__PURE__ */ e(b, {
|
|
60
|
-
variant: "circular",
|
|
61
|
-
width: "30px",
|
|
62
|
-
height: "30px"
|
|
63
|
-
});
|
|
64
|
-
function N({
|
|
65
|
-
src: n,
|
|
66
|
-
tooltip: t,
|
|
67
|
-
size: a = "small",
|
|
68
|
-
dictionaryTooltip: o,
|
|
69
|
-
bgColor: s = "primary.active",
|
|
70
|
-
rotate: c,
|
|
71
|
-
...r
|
|
72
|
-
}) {
|
|
73
|
-
const {
|
|
74
|
-
getLabel: i
|
|
75
|
-
} = x(), u = B(), m = v(() => {
|
|
76
|
-
if (!r.disabled)
|
|
77
|
-
return o && i ? i(o) : t;
|
|
78
|
-
}, [o, i, r.disabled]);
|
|
79
|
-
return u ? /* @__PURE__ */ e(A, {}) : m ? /* @__PURE__ */ e(h, {
|
|
80
|
-
title: m || "",
|
|
81
|
-
children: /* @__PURE__ */ e(l, {
|
|
82
|
-
size: a,
|
|
83
|
-
...r,
|
|
84
|
-
children: /* @__PURE__ */ e(d, {
|
|
85
|
-
src: n,
|
|
86
|
-
bgColor: r.disabled ? "action.disabled" : s,
|
|
87
|
-
rotate: c
|
|
88
|
-
})
|
|
89
|
-
})
|
|
90
|
-
}) : /* @__PURE__ */ e(l, {
|
|
91
|
-
size: a,
|
|
92
|
-
...r,
|
|
93
|
-
children: /* @__PURE__ */ e(d, {
|
|
94
|
-
src: n,
|
|
95
|
-
bgColor: r.disabled ? "action.disabled" : s,
|
|
96
|
-
rotate: c
|
|
97
|
-
})
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
export {
|
|
101
|
-
N as I,
|
|
102
|
-
M as a
|
|
103
|
-
};
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { useMemo as y } from "react";
|
|
2
|
-
import { Skeleton as i, TablePagination as R } from "@mui/material";
|
|
3
|
-
import { P as S } from "../../CommonActions/components/Actions/index.cd7b2671.js";
|
|
4
|
-
import { styled as a } from "@mui/material/styles";
|
|
5
|
-
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
6
|
-
a("div")(() => ({
|
|
7
|
-
display: "flex",
|
|
8
|
-
flexDirection: "column",
|
|
9
|
-
height: "100%",
|
|
10
|
-
overflow: "hidden"
|
|
11
|
-
}));
|
|
12
|
-
const b = a("div")(({ theme: t }) => ({
|
|
13
|
-
width: "100%",
|
|
14
|
-
display: "flex",
|
|
15
|
-
justifyContent: "center",
|
|
16
|
-
alignItems: "center",
|
|
17
|
-
marginLeft: t.spacing(3)
|
|
18
|
-
})), T = a("div")(({ theme: t }) => ({
|
|
19
|
-
display: "flex",
|
|
20
|
-
marginLeft: t.spacing(3)
|
|
21
|
-
})), s = a("div")(({ theme: t }) => ({
|
|
22
|
-
display: "flex",
|
|
23
|
-
justifyContent: "center",
|
|
24
|
-
alignItems: "center",
|
|
25
|
-
width: t.spacing(3.75),
|
|
26
|
-
height: t.spacing(3.75)
|
|
27
|
-
})), D = a("div")(({ theme: t }) => ({
|
|
28
|
-
display: "grid",
|
|
29
|
-
gridTemplateColumns: "auto auto",
|
|
30
|
-
gridGap: t.spacing(1),
|
|
31
|
-
marginRight: t.spacing(3)
|
|
32
|
-
}));
|
|
33
|
-
function A(t) {
|
|
34
|
-
const {
|
|
35
|
-
totalRecords: n,
|
|
36
|
-
rowsPerPageOptions: d = [5, 10, 2],
|
|
37
|
-
rowsPerPage: r = 25,
|
|
38
|
-
page: g,
|
|
39
|
-
onPageChange: h,
|
|
40
|
-
onRowsPerPageChange: f,
|
|
41
|
-
labelRows: P = "Rows per page",
|
|
42
|
-
labelOf: u = "Of",
|
|
43
|
-
isSkeleton: m = "false",
|
|
44
|
-
isDesktop: p
|
|
45
|
-
} = t, v = y(() => r * g > n ? Math.floor(n / r) : g, [g, r, n]), w = (o) => {
|
|
46
|
-
f(parseInt(o.target.value, 10)), h(0);
|
|
47
|
-
}, x = (o, c) => {
|
|
48
|
-
h(c);
|
|
49
|
-
};
|
|
50
|
-
return m ? /* @__PURE__ */ l(b, {
|
|
51
|
-
children: [/* @__PURE__ */ l(D, {
|
|
52
|
-
children: [/* @__PURE__ */ e(i, {
|
|
53
|
-
variant: "text",
|
|
54
|
-
width: "40px",
|
|
55
|
-
height: "16px"
|
|
56
|
-
}), /* @__PURE__ */ e(i, {
|
|
57
|
-
variant: "text",
|
|
58
|
-
width: "20px",
|
|
59
|
-
height: "16px"
|
|
60
|
-
})]
|
|
61
|
-
}), /* @__PURE__ */ e(i, {
|
|
62
|
-
variant: "text",
|
|
63
|
-
width: "50px",
|
|
64
|
-
height: "16px"
|
|
65
|
-
}), /* @__PURE__ */ l(T, {
|
|
66
|
-
children: [/* @__PURE__ */ e(s, {
|
|
67
|
-
children: /* @__PURE__ */ e(i, {
|
|
68
|
-
variant: "circular",
|
|
69
|
-
width: 20,
|
|
70
|
-
height: 20
|
|
71
|
-
})
|
|
72
|
-
}), /* @__PURE__ */ e(s, {
|
|
73
|
-
children: /* @__PURE__ */ e(i, {
|
|
74
|
-
variant: "circular",
|
|
75
|
-
width: 20,
|
|
76
|
-
height: 20
|
|
77
|
-
})
|
|
78
|
-
}), /* @__PURE__ */ e(s, {
|
|
79
|
-
children: /* @__PURE__ */ e(i, {
|
|
80
|
-
variant: "circular",
|
|
81
|
-
width: 20,
|
|
82
|
-
height: 20
|
|
83
|
-
})
|
|
84
|
-
}), /* @__PURE__ */ e(s, {
|
|
85
|
-
children: /* @__PURE__ */ e(i, {
|
|
86
|
-
variant: "circular",
|
|
87
|
-
width: 20,
|
|
88
|
-
height: 20
|
|
89
|
-
})
|
|
90
|
-
})]
|
|
91
|
-
})]
|
|
92
|
-
}) : /* @__PURE__ */ e(R, {
|
|
93
|
-
id: "TablePagination",
|
|
94
|
-
rowsPerPageOptions: d,
|
|
95
|
-
component: "div",
|
|
96
|
-
count: n,
|
|
97
|
-
rowsPerPage: r,
|
|
98
|
-
page: v,
|
|
99
|
-
onPageChange: x,
|
|
100
|
-
onRowsPerPageChange: w,
|
|
101
|
-
labelDisplayedRows: p ? ({
|
|
102
|
-
from: o,
|
|
103
|
-
to: c,
|
|
104
|
-
count: C
|
|
105
|
-
}) => `${o}-${c} ${u} ${C}` : () => "",
|
|
106
|
-
labelRowsPerPage: p ? P : "",
|
|
107
|
-
ActionsComponent: S
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
function B() {
|
|
111
|
-
return ["pager"];
|
|
112
|
-
}
|
|
113
|
-
const L = {
|
|
114
|
-
pager: {
|
|
115
|
-
first: "First",
|
|
116
|
-
previous: "Previous",
|
|
117
|
-
before: "Before",
|
|
118
|
-
last: "Last",
|
|
119
|
-
of: "of"
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
export {
|
|
123
|
-
A as P,
|
|
124
|
-
L as d,
|
|
125
|
-
B as g
|
|
126
|
-
};
|