@m4l/components 0.1.27 → 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.
Files changed (93) hide show
  1. package/assets/Logo/index.228dcb5a.js +42 -35
  2. package/commonjs.565e6834.js +5 -5
  3. package/components/CommonActions/components/ActionCancel/index.e498eeb2.js +17 -0
  4. package/components/CommonActions/components/ActionFormCancel/index.4ff0ad73.js +64 -0
  5. package/components/CommonActions/components/ActionFormIntro/index.ca4d2674.js +28 -22
  6. package/components/CommonActions/components/ActionIntro/index.60ef7bd7.js +18 -0
  7. package/components/CommonActions/components/Actions/index.0645e30f.js +867 -0
  8. package/components/DataGrid/index.76d8fd25.js +1075 -0
  9. package/components/DynamicFilter/index.342ba5fe.js +1577 -0
  10. package/components/ErrorLabel/index.c8615f16.js +13 -12
  11. package/components/Icon/index.619c31c4.js +65 -53
  12. package/components/Image/index.93d5f37f.js +190 -0
  13. package/components/Loadable/index.f5518558.js +8 -8
  14. package/components/ModalDialog/index.9ea10764.js +184 -0
  15. package/components/NoItemSelected/{index.9609a7f7.js → index.46d2f632.js} +52 -41
  16. package/components/ObjectLogs/index.f941fb79.js +288 -0
  17. package/components/Page/index.4237c241.js +22 -20
  18. package/components/PaperForm/index.ec9cb8c9.js +66 -59
  19. package/components/Period/index.2941fbda.js +249 -0
  20. package/components/PropertyValue/index.dfcfe1ba.js +95 -65
  21. package/components/Resizeable/index.45995d2b.js +19 -19
  22. package/components/ScrollBar/index.39eeb2de.js +26 -21
  23. package/components/ScrollToTop/index.e06f98f6.js +8 -7
  24. package/components/SplitLayout/index.4032673d.js +35 -33
  25. package/components/animate/LoadingScreen/index.1d0c4307.js +33 -33
  26. package/components/animate/MotionContainer/index.8d9f9d80.js +25 -22
  27. package/components/animate/MotionLazyContainer/index.572dd012.js +10 -10
  28. package/components/animate/features.0fbf41e1.js +3 -3
  29. package/components/animate/variants/bounce.784aaaaa.js +16 -13
  30. package/components/animate/variants/container.11f82b76.js +8 -6
  31. package/components/animate/variants/fade.b561c0fc.js +32 -28
  32. package/components/animate/variants/transition.bd46b9ce.js +17 -12
  33. package/components/formatters/BooleanFormatter/index.8da35c9c.js +46 -33
  34. package/components/formatters/DateFormatter/index.1b9baacc.js +49 -37
  35. package/components/formatters/index.689a8086.js +119 -0
  36. package/components/hook-form/RHFAutocomplete/index.59a68f9f.js +224 -0
  37. package/components/hook-form/RHFAutocompleteAsync/index.c3083062.js +87 -0
  38. package/components/hook-form/RHFCheckbox/index.6dcec9e2.js +49 -39
  39. package/components/hook-form/RHFDateTime/index.9231a7c7.js +69 -56
  40. package/components/hook-form/RHFMultiCheckbox/index.2680b3b6.js +23 -23
  41. package/components/hook-form/RHFPeriod/index.64a228d5.js +55 -0
  42. package/components/hook-form/RHFRadioGroup/index.b3335e13.js +29 -29
  43. package/components/hook-form/RHFSelect/index.b6ca8bb2.js +24 -24
  44. package/components/hook-form/RHFTextField/index.f9aaaa90.js +110 -93
  45. package/components/hook-form/RHFUpload/{index.ec4d5326.js → index.d5cc7c13.js} +151 -130
  46. package/components/mui_extended/Accordion/index.a02ac6ae.js +73 -69
  47. package/components/mui_extended/Avatar/index.fe06afd7.js +44 -34
  48. package/components/mui_extended/BoxIcon/index.e638ecc8.js +10 -10
  49. package/components/mui_extended/Breadcrumbs/index.5e37d903.js +49 -44
  50. package/components/mui_extended/Button/index.53b56958.js +178 -0
  51. package/components/mui_extended/CircularProgress/index.ad569afd.js +8 -6
  52. package/components/mui_extended/IconButton/index.a321e5cb.js +82 -67
  53. package/components/mui_extended/LinkWithRoute/index.16436ab8.js +25 -21
  54. package/components/mui_extended/Pager/index.c0865b70.js +141 -0
  55. package/components/mui_extended/Popover/index.705275a4.js +278 -0
  56. package/components/mui_extended/Tab/index.e0653a0a.js +25 -21
  57. package/components/mui_extended/Typography/index.e5494696.js +25 -21
  58. package/contexts/ModalContext/index.b92fa565.js +153 -0
  59. package/contexts/ModalContext/{components → subcomponents}/ContentConfirm/index.d.ts +0 -0
  60. package/contexts/ModalContext/{components → subcomponents}/ContentConfirm/styles.d.ts +0 -0
  61. package/contexts/ModalContext/{components → subcomponents}/ContentConfirm/types.d.ts +0 -0
  62. package/contexts/RHFormContext/index.b142190a.js +63 -0
  63. package/hooks/useFormAddEdit/index.d4845f1a.js +40 -22
  64. package/hooks/useModal/index.5fee01a3.js +11 -0
  65. package/index.js +153 -153
  66. package/package.json +2 -1
  67. package/react-data-grid.d46d625e.js +2206 -1663
  68. package/react-draggable.20e95c61.js +800 -553
  69. package/react-json-view.f56a7f8e.js +2344 -2340
  70. package/react-resizable.5277deaf.js +470 -298
  71. package/react-splitter-layout.7810ac1b.js +130 -128
  72. package/utils/index.214d9542.js +500 -354
  73. package/components/CommonActions/components/ActionCancel/index.431160ba.js +0 -17
  74. package/components/CommonActions/components/ActionFormCancel/index.6a0f34aa.js +0 -49
  75. package/components/CommonActions/components/ActionIntro/index.85557b90.js +0 -18
  76. package/components/CommonActions/components/Actions/index.edeb05c2.js +0 -742
  77. package/components/DataGrid/index.2ce9da7d.js +0 -894
  78. package/components/DynamicFilter/index.e1d4a948.js +0 -1157
  79. package/components/Image/index.c9da2d5a.js +0 -152
  80. package/components/ModalDialog/index.ad61757f.js +0 -168
  81. package/components/ObjectLogs/index.6ebaec71.js +0 -266
  82. package/components/Period/index.81de7941.js +0 -175
  83. package/components/contexts/RHFormContext/index.33dba822.js +0 -56
  84. package/components/formatters/index.c2a9b55d.js +0 -106
  85. package/components/hook-form/RHFAutocomplete/index.5eee9d7c.js +0 -174
  86. package/components/hook-form/RHFAutocompleteAsync/index.757b5080.js +0 -65
  87. package/components/hook-form/RHFPeriod/index.e08fb1ab.js +0 -51
  88. package/components/mui_extended/Button/index.51dae0bb.js +0 -144
  89. package/components/mui_extended/Pager/index.1dc45f5e.js +0 -126
  90. package/components/mui_extended/Popover/index.cb2ccc66.js +0 -252
  91. package/contexts/ModalContext/index.9ebc793c.js +0 -136
  92. package/hooks/useModal/index.34f5978e.js +0 -11
  93. package/node_modules.168cb897.js +0 -55
@@ -0,0 +1,249 @@
1
+ import { useModuleDictionary, useModuleSkeleton, useEnvironment } from "@m4l/core";
2
+ import { styled, Skeleton, Autocomplete, TextField } from "@mui/material";
3
+ import { useMemo } from "react";
4
+ import { I as Icon } from "../Icon/index.619c31c4.js";
5
+ import { jsxs, jsx } from "react/jsx-runtime";
6
+ import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.0645e30f.js";
7
+ import "@mui/material/Button";
8
+ import "react-hook-form";
9
+ import "react-router-dom";
10
+ import "../../contexts/ModalContext/index.b92fa565.js";
11
+ import "@mui/lab";
12
+ const ContainerPeriod = styled("div")(({
13
+ theme,
14
+ error,
15
+ readOnly
16
+ }) => ({
17
+ display: "flex",
18
+ width: "100%",
19
+ height: "auto",
20
+ alignItems: "center",
21
+ gap: theme.spacing(1),
22
+ border: error ? `1px solid ${theme.palette.error.main}` : `1px solid ${theme.palette.divider}`,
23
+ padding: theme.spacing(0.5, 1),
24
+ borderRadius: "4px",
25
+ ...readOnly && {
26
+ border: "0px"
27
+ },
28
+ "& .MuiAutocomplete-root, & .MuiTextField-root": {
29
+ width: "100%"
30
+ },
31
+ "& .MuiAutocomplete-root .MuiTextField-root": {
32
+ width: "100%"
33
+ },
34
+ "& .MuiTextField-root .MuiInput-input": {
35
+ padding: "5px!important"
36
+ }
37
+ }));
38
+ const Gap = styled("div")(({
39
+ theme
40
+ }) => ({
41
+ width: "1px",
42
+ height: "20px",
43
+ backgroundColor: theme.palette.divider
44
+ }));
45
+ const SKTWrapper = styled("div", {
46
+ shouldForwardProp: (props) => props !== "readOnly"
47
+ })(({
48
+ theme,
49
+ readOnly
50
+ }) => ({
51
+ display: "flex",
52
+ width: "100%",
53
+ height: "37.5px",
54
+ alignItems: "center",
55
+ gap: theme.spacing(1),
56
+ border: `1px solid ${theme.palette.divider}`,
57
+ ...readOnly && {
58
+ border: "0px"
59
+ },
60
+ padding: theme.spacing(0.5, 1),
61
+ borderRadius: "4px"
62
+ }));
63
+ const FieldPeriod = styled("div")(({
64
+ theme
65
+ }) => ({
66
+ ...theme.typography.body2,
67
+ width: "100%",
68
+ display: "flex",
69
+ textOverflow: "elipsis",
70
+ overflow: "hidden",
71
+ padding: "5px",
72
+ textAlign: "left"
73
+ }));
74
+ const FieldValue = styled("div")(({
75
+ theme
76
+ }) => ({
77
+ ...theme.typography.body2,
78
+ width: "70px",
79
+ display: "flex",
80
+ textOverflow: "elipsis",
81
+ overflow: "hidden",
82
+ padding: "5px",
83
+ textAlign: "left"
84
+ }));
85
+ var ETimePeriods = /* @__PURE__ */ ((ETimePeriods2) => {
86
+ ETimePeriods2[ETimePeriods2["YEARS"] = 0] = "YEARS";
87
+ ETimePeriods2[ETimePeriods2["MONTHS"] = 1] = "MONTHS";
88
+ ETimePeriods2[ETimePeriods2["DAYS"] = 2] = "DAYS";
89
+ return ETimePeriods2;
90
+ })(ETimePeriods || {});
91
+ const getSelPeriodTime = (period) => {
92
+ if (!period)
93
+ return ETimePeriods.YEARS;
94
+ if (period.selPeriodTime)
95
+ return period.selPeriodTime;
96
+ if (period.years && period.years > 0)
97
+ return ETimePeriods.YEARS;
98
+ if (period.months && period.months > 0)
99
+ return ETimePeriods.MONTHS;
100
+ if (period.days && period.days > 0)
101
+ return ETimePeriods.DAYS;
102
+ return ETimePeriods.YEARS;
103
+ };
104
+ const getSingleValue = (period) => {
105
+ if (!period)
106
+ return "";
107
+ if (period.singleValue !== void 0)
108
+ return period.singleValue;
109
+ if (period.years && period.years > 0)
110
+ return period.years;
111
+ if (period.months && period.months > 0)
112
+ return period.months;
113
+ if (period.days && period.days > 0)
114
+ return period.days;
115
+ return "";
116
+ };
117
+ const Period = (props) => {
118
+ const {
119
+ value,
120
+ onChange,
121
+ error = false,
122
+ readOnly = false,
123
+ skeletonWidth = "100%",
124
+ skeletonHeight = "18px"
125
+ } = props;
126
+ const {
127
+ getLabel
128
+ } = useModuleDictionary();
129
+ const isSkeleton = useModuleSkeleton();
130
+ const selPeriodTime = getSelPeriodTime(value);
131
+ const singleValue = getSingleValue(value);
132
+ const onTotalChange = (newPeriodTime, newValue) => {
133
+ const newPeriod = {
134
+ selPeriodTime: newPeriodTime,
135
+ singleValue: newValue
136
+ };
137
+ if (newValue !== "" && newValue > 0) {
138
+ newPeriod.years = 0;
139
+ newPeriod.months = 0;
140
+ newPeriod.days = 0;
141
+ if (newPeriodTime === ETimePeriods.YEARS)
142
+ newPeriod.years = newValue;
143
+ if (newPeriodTime === ETimePeriods.MONTHS)
144
+ newPeriod.months = newValue;
145
+ if (newPeriodTime === ETimePeriods.DAYS)
146
+ newPeriod.days = newValue;
147
+ }
148
+ onChange(newPeriod);
149
+ };
150
+ const onChangeTime = (newPeriodTime) => {
151
+ if (newPeriodTime) {
152
+ onTotalChange(newPeriodTime.id, singleValue);
153
+ }
154
+ };
155
+ const {
156
+ host_static_assets,
157
+ environment_assets
158
+ } = useEnvironment();
159
+ const options = useMemo(() => [{
160
+ id: 0,
161
+ label: getLabel("period.label_days")
162
+ }, {
163
+ id: 1,
164
+ label: getLabel("period.label_months")
165
+ }, {
166
+ id: 2,
167
+ label: getLabel("period.label_years")
168
+ }], [getLabel]);
169
+ if (isSkeleton) {
170
+ return /* @__PURE__ */ jsxs(SKTWrapper, {
171
+ readOnly,
172
+ children: [/* @__PURE__ */ jsx(Skeleton, {
173
+ variant: "text",
174
+ width: "50%",
175
+ height: skeletonHeight
176
+ }), /* @__PURE__ */ jsx(Gap, {}), /* @__PURE__ */ jsx(Skeleton, {
177
+ variant: "text",
178
+ width: skeletonWidth,
179
+ height: skeletonHeight
180
+ }), /* @__PURE__ */ jsx(Skeleton, {
181
+ variant: "circular",
182
+ width: 20,
183
+ sx: {
184
+ minWidth: "20px",
185
+ minHeight: "20px"
186
+ }
187
+ })]
188
+ });
189
+ }
190
+ if (readOnly) {
191
+ /* @__PURE__ */ jsxs(ContainerPeriod, {
192
+ error: false,
193
+ readOnly,
194
+ children: [/* @__PURE__ */ jsx(FieldPeriod, {
195
+ children: value.selPeriodTime
196
+ }), /* @__PURE__ */ jsx(Gap, {}), /* @__PURE__ */ jsx(FieldValue, {
197
+ children: value.singleValue
198
+ }), /* @__PURE__ */ jsx(Icon, {
199
+ src: `${host_static_assets}/${environment_assets}/frontend/components/period/assets/icons/clock.svg`
200
+ })]
201
+ });
202
+ }
203
+ return /* @__PURE__ */ jsxs(ContainerPeriod, {
204
+ error,
205
+ readOnly,
206
+ children: [/* @__PURE__ */ jsx(Autocomplete, {
207
+ options,
208
+ value: options[selPeriodTime],
209
+ disableClearable: true,
210
+ onChange: (_event, autcValue) => {
211
+ onChangeTime(autcValue);
212
+ },
213
+ renderInput: (params) => {
214
+ return /* @__PURE__ */ jsx(TextField, {
215
+ ...params,
216
+ fullWidth: true,
217
+ variant: "standard",
218
+ SelectProps: {
219
+ native: true
220
+ },
221
+ InputProps: {
222
+ disableUnderline: true,
223
+ ...params.InputProps
224
+ },
225
+ autoComplete: "off"
226
+ }, `tx_async_${params.id}`);
227
+ }
228
+ }), /* @__PURE__ */ jsx(Gap, {}), /* @__PURE__ */ jsx(TextField, {
229
+ type: "number",
230
+ variant: "standard",
231
+ value: singleValue,
232
+ InputProps: {
233
+ disableUnderline: true
234
+ },
235
+ onChange: (e) => {
236
+ onTotalChange(selPeriodTime, e.target.value === "" ? "" : parseInt(e.target.value));
237
+ }
238
+ }), /* @__PURE__ */ jsx(Icon, {
239
+ src: `${host_static_assets}/${environment_assets}/frontend/components/period/assets/icons/clock.svg`
240
+ })]
241
+ });
242
+ };
243
+ function getPeriodComponetsDictionary() {
244
+ return ["period"].concat(getCommonActionsDictionary());
245
+ }
246
+ export {
247
+ Period as P,
248
+ getPeriodComponetsDictionary as g
249
+ };
@@ -1,117 +1,147 @@
1
- import { styled as a } from "@mui/material/styles";
2
- import { Skeleton as g } from "@mui/material";
3
- import { jsx as n, jsxs as f } from "react/jsx-runtime";
4
- import { useResponsiveDesktop as c } from "@m4l/graphics";
5
- import { useModuleSkeleton as h } from "@m4l/core";
6
- const y = a("div", {
7
- shouldForwardProp: (r) => r !== "propertyWidth" && r !== "propertyHeight" && r !== "isForm"
1
+ import { styled } from "@mui/material/styles";
2
+ import { Skeleton } from "@mui/material";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { useResponsiveDesktop } from "@m4l/graphics";
5
+ import { useModuleSkeleton } from "@m4l/core";
6
+ const WrapperPropertyValue = styled("div", {
7
+ shouldForwardProp: (prop) => prop !== "propertyWidth" && prop !== "propertyHeight" && prop !== "isForm"
8
8
  })(({
9
- propertyWidth: r,
10
- isForm: o,
11
- theme: t
9
+ propertyWidth,
10
+ isForm,
11
+ theme
12
12
  }) => ({
13
13
  display: "grid",
14
14
  gridTemplateColumns: "1fr",
15
15
  alignItems: "flex-start",
16
16
  width: "100%",
17
- padding: `${t.spacing(1)} ${t.spacing(2)}`,
17
+ padding: `${theme.spacing(1)} ${theme.spacing(2)}`,
18
18
  ":hover": {
19
- backgroundColor: o ? "unset" : t.palette.grid?.rowHover
19
+ backgroundColor: isForm ? "unset" : theme.palette.grid?.rowHover
20
20
  },
21
- borderBottom: o ? "none" : `1px solid ${t.palette.divider}`,
21
+ borderBottom: isForm ? "none" : `1px solid ${theme.palette.divider}`,
22
22
  flexDirection: "column",
23
- [t.breakpoints.up("sm")]: {
24
- gridTemplateColumns: r ? `${r}px 1fr` : "150px 1fr",
25
- gap: t.spacing(2),
23
+ [theme.breakpoints.up("sm")]: {
24
+ gridTemplateColumns: propertyWidth ? `${propertyWidth}px 1fr` : "150px 1fr",
25
+ gap: theme.spacing(2),
26
26
  alignItems: "center"
27
27
  }
28
- })), x = a("div", {
29
- shouldForwardProp: (r) => r !== "propertyWidth" && r !== "propertyHeight" && r !== "isForm"
28
+ }));
29
+ const Property = styled("div", {
30
+ shouldForwardProp: (prop) => prop !== "propertyWidth" && prop !== "propertyHeight" && prop !== "isForm"
30
31
  })(({
31
- propertyWidth: r,
32
- isForm: o,
33
- theme: t
32
+ propertyWidth,
33
+ isForm,
34
+ theme
34
35
  }) => ({
35
36
  width: "100%",
36
37
  minWidth: "100%",
37
- ...t.typography.subtitle2,
38
- color: t.palette.text.primary,
38
+ ...theme.typography.subtitle2,
39
+ color: theme.palette.text.primary,
39
40
  height: "100%",
40
41
  display: "flex",
41
42
  alignItems: "center",
42
43
  justifyContent: "flex-start",
43
44
  position: "relative",
44
- [t.breakpoints.up("sm")]: {
45
- borderRight: o ? "none" : `1px solid ${t.palette.divider}`,
46
- paddingRight: t.spacing(2),
45
+ [theme.breakpoints.up("sm")]: {
46
+ borderRight: isForm ? "none" : `1px solid ${theme.palette.divider}`,
47
+ paddingRight: theme.spacing(2),
47
48
  textAlign: "right",
48
- width: r || "150px",
49
- minWidth: r || "150px",
49
+ width: propertyWidth || "150px",
50
+ minWidth: propertyWidth || "150px",
50
51
  justifyContent: "flex-end"
51
52
  },
52
53
  overflow: "hidden",
53
54
  overflowWrap: "break-word"
54
- })), v = a("div", {
55
- shouldForwardProp: (r) => r !== "valueWidth" && r !== "valueHeight" && r !== "withGrid"
55
+ }));
56
+ const Value = styled("div", {
57
+ shouldForwardProp: (prop) => prop !== "valueWidth" && prop !== "valueHeight" && prop !== "withGrid"
56
58
  })(({
57
- valueWidth: r,
58
- valueHeight: o,
59
- theme: t
59
+ valueWidth,
60
+ valueHeight,
61
+ theme
60
62
  }) => ({
61
63
  flexGrow: "1",
62
- ...t.typography.body2,
63
- color: t.palette.text.secondary,
64
+ ...theme.typography.body2,
65
+ color: theme.palette.text.secondary,
64
66
  position: "relative",
65
67
  padding: "1px",
66
- maxWidth: `${r}%`,
67
- width: `${r}%`,
68
- height: o,
69
- marginTop: t.spacing(1),
70
- [t.breakpoints.up("sm")]: {
68
+ maxWidth: `${valueWidth}%`,
69
+ width: `${valueWidth}%`,
70
+ height: valueHeight,
71
+ marginTop: theme.spacing(1),
72
+ [theme.breakpoints.up("sm")]: {
71
73
  marginTop: "0px"
72
74
  },
73
75
  overflow: "auto",
74
76
  overflowWrap: "break-word"
75
- })), m = a("div")(() => ({
77
+ }));
78
+ const SKTWrapperProperty = styled("div")(() => ({
76
79
  display: "flex",
77
80
  justifyContent: "flex-end"
78
81
  }));
79
- function w() {
80
- return /* @__PURE__ */ n(m, {
81
- children: /* @__PURE__ */ n(g, {
82
+ function SKTProperty() {
83
+ return /* @__PURE__ */ jsx(SKTWrapperProperty, {
84
+ children: /* @__PURE__ */ jsx(Skeleton, {
82
85
  variant: "text",
83
86
  width: 68,
84
87
  height: 14
85
88
  })
86
89
  });
87
90
  }
88
- function C(r) {
91
+ function PropertyValue(props) {
89
92
  const {
90
- property: o,
91
- value: t,
92
- propertyWidth: l = 200,
93
- valueHeight: s = "auto",
94
- valueWidth: e = "100",
95
- valueWidthMobile: p,
96
- isForm: d
97
- } = r, i = c(), u = h();
98
- return /* @__PURE__ */ f(y, {
93
+ property,
94
+ value,
95
+ propertyWidth = 200,
96
+ valueHeight = "auto",
97
+ valueWidth = "100",
98
+ valueWidthMobile,
99
+ isForm
100
+ } = props;
101
+ const isDesktop = useResponsiveDesktop();
102
+ const isSkeleton = useModuleSkeleton();
103
+ const getValueW = () => {
104
+ if (valueWidthMobile && !isDesktop) {
105
+ return valueWidthMobile;
106
+ }
107
+ if (valueWidth === 75 && isDesktop) {
108
+ return 75;
109
+ } else if (valueWidth === 75 && !isDesktop) {
110
+ return 100;
111
+ }
112
+ if (valueWidth === 50 && isDesktop) {
113
+ return 50;
114
+ } else if (valueWidth === 50 && !isDesktop) {
115
+ return 100;
116
+ }
117
+ if (valueWidth === 25 && isDesktop || valueWidth === 12.5 && isDesktop) {
118
+ return valueWidth;
119
+ }
120
+ if (valueWidth === 25 && !isDesktop) {
121
+ return 50;
122
+ }
123
+ if (valueWidth === 12.5 && !isDesktop) {
124
+ return 25;
125
+ }
126
+ return 100;
127
+ };
128
+ return /* @__PURE__ */ jsxs(WrapperPropertyValue, {
99
129
  id: "WrapperPropertyValue",
100
- isForm: d,
101
- propertyWidth: l,
102
- children: [/* @__PURE__ */ n(x, {
130
+ isForm,
131
+ propertyWidth,
132
+ children: [/* @__PURE__ */ jsx(Property, {
103
133
  id: "Property",
104
- isForm: d,
105
- propertyWidth: l,
106
- children: u ? /* @__PURE__ */ n(w, {}) : o
107
- }), /* @__PURE__ */ n(v, {
134
+ isForm,
135
+ propertyWidth,
136
+ children: isSkeleton ? /* @__PURE__ */ jsx(SKTProperty, {}) : property
137
+ }), /* @__PURE__ */ jsx(Value, {
108
138
  id: "Value",
109
- valueWidth: (() => p && !i ? p : e === 75 && i ? 75 : e === 75 && !i ? 100 : e === 50 && i ? 50 : e === 50 && !i ? 100 : e === 25 && i || e === 12.5 && i ? e : e === 25 && !i ? 50 : e === 12.5 && !i ? 25 : 100)(),
110
- valueHeight: s,
111
- children: t
139
+ valueWidth: getValueW(),
140
+ valueHeight,
141
+ children: value
112
142
  })]
113
143
  });
114
144
  }
115
145
  export {
116
- C as P
146
+ PropertyValue as P
117
147
  };
@@ -1,8 +1,8 @@
1
- import { styled as n } from "@mui/material/styles";
2
- import { R as i } from "../../react-resizable.5277deaf.js";
3
- import { jsx as l } from "react/jsx-runtime";
4
- const g = n(i)(({
5
- theme: e
1
+ import { styled } from "@mui/material/styles";
2
+ import { R as ResizableBox } from "../../react-resizable.5277deaf.js";
3
+ import { jsx } from "react/jsx-runtime";
4
+ const WrapperResizeable = styled(ResizableBox)(({
5
+ theme
6
6
  }) => ({
7
7
  "&.react-resizable": {
8
8
  position: "relative",
@@ -17,7 +17,7 @@ const g = n(i)(({
17
17
  backgroundRepeat: "no-repeat",
18
18
  backgroundOrigin: "content-box",
19
19
  boxSizing: "border-box",
20
- backgroundColor: e.palette.action.active,
20
+ backgroundColor: theme.palette.action.active,
21
21
  mask: `url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 26.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Capa_1' focusable='false' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 24 24' style='enable-background:new 0 0 24 24;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:none;%7D%0A%3C/style%3E%3Cg id='Grupo_5256'%3E%3C/g%3E%3Cpath class='st0' d='z'/%3E%3Cg%3E%3Cpolygon points='21.9,21.9 15.8,21.9 15.8,19.9 19.9,19.9 19.9,15.9 21.9,15.9 '/%3E%3C/g%3E%3C/svg%3E%0A")`,
22
22
  backgroundImage: `url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 26.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Capa_1' focusable='false' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 24 24' style='enable-background:new 0 0 24 24;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:none;%7D%0A%3C/style%3E%3Cg id='Grupo_5256'%3E%3C/g%3E%3Cpath class='st0' d='z'/%3E%3Cg%3E%3Cpolygon points='21.9,21.9 15.8,21.9 15.8,19.9 19.9,19.9 19.9,15.9 21.9,15.9 '/%3E%3C/g%3E%3C/svg%3E%0A")`,
23
23
  backgroundPosition: "bottom right",
@@ -73,22 +73,22 @@ const g = n(i)(({
73
73
  transform: "rotate(45deg)"
74
74
  }
75
75
  }));
76
- function x(e) {
76
+ function Resizeable(props) {
77
77
  const {
78
- children: a,
79
- width: s,
80
- height: o,
81
- maxHeigth: r,
82
- maxWidth: t
83
- } = e;
84
- return /* @__PURE__ */ l(g, {
85
- width: s,
86
- height: o,
87
- maxConstraints: r && t ? [t, r] : void 0,
78
+ children,
79
+ width,
80
+ height,
81
+ maxHeigth,
82
+ maxWidth
83
+ } = props;
84
+ return /* @__PURE__ */ jsx(WrapperResizeable, {
85
+ width,
86
+ height,
87
+ maxConstraints: maxHeigth && maxWidth ? [maxWidth, maxHeigth] : void 0,
88
88
  resizeHandles: ["se", "nw"],
89
- children: a
89
+ children
90
90
  });
91
91
  }
92
92
  export {
93
- x as R
93
+ Resizeable as R
94
94
  };
@@ -1,18 +1,19 @@
1
- import t from "simplebar-react";
2
- import { styled as i, alpha as a } from "@mui/material/styles";
3
- import { Box as l } from "@mui/material";
4
- import { jsx as r } from "react/jsx-runtime";
5
- const s = i("div")(() => ({
1
+ import SimpleBarReact from "simplebar-react";
2
+ import { styled, alpha } from "@mui/material/styles";
3
+ import { Box } from "@mui/material";
4
+ import { jsx } from "react/jsx-runtime";
5
+ const RootStyle = styled("div")(() => ({
6
6
  flexGrow: 1,
7
7
  height: "100%",
8
8
  overflow: "hidden"
9
- })), n = i(t)(({
10
- theme: e
9
+ }));
10
+ const SimpleBarStyle = styled(SimpleBarReact)(({
11
+ theme
11
12
  }) => ({
12
13
  maxHeight: "100%",
13
14
  "& .simplebar-scrollbar": {
14
15
  "&:before": {
15
- backgroundColor: a(e.palette.grey[600], 0.48)
16
+ backgroundColor: alpha(theme.palette.grey[600], 0.48)
16
17
  },
17
18
  "&.simplebar-visible:before": {
18
19
  opacity: 1
@@ -28,22 +29,26 @@ const s = i("div")(() => ({
28
29
  zIndex: "inherit"
29
30
  }
30
31
  }));
31
- function f({
32
- children: e
32
+ function ScrollBar({
33
+ children
33
34
  }) {
34
- const o = typeof navigator > "u" ? "SSR" : navigator.userAgent;
35
- return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(o) ? /* @__PURE__ */ r(l, {
36
- sx: {
37
- overflowX: "auto"
38
- },
39
- children: e
40
- }) : /* @__PURE__ */ r(s, {
41
- children: /* @__PURE__ */ r(n, {
42
- autoHide: !1,
43
- children: e
35
+ const userAgent = typeof navigator === "undefined" ? "SSR" : navigator.userAgent;
36
+ const isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(userAgent);
37
+ if (isMobile) {
38
+ return /* @__PURE__ */ jsx(Box, {
39
+ sx: {
40
+ overflowX: "auto"
41
+ },
42
+ children
43
+ });
44
+ }
45
+ return /* @__PURE__ */ jsx(RootStyle, {
46
+ children: /* @__PURE__ */ jsx(SimpleBarStyle, {
47
+ autoHide: false,
48
+ children
44
49
  })
45
50
  });
46
51
  }
47
52
  export {
48
- f as S
53
+ ScrollBar as S
49
54
  };
@@ -1,11 +1,12 @@
1
- import { useEffect as r } from "react";
2
- import { useLocation as t } from "react-router-dom";
3
- function e() {
4
- const { pathname: o } = t();
5
- return r(() => {
1
+ import { useEffect } from "react";
2
+ import { useLocation } from "react-router-dom";
3
+ function ScrollToTop() {
4
+ const { pathname } = useLocation();
5
+ useEffect(() => {
6
6
  window.scrollTo(0, 0);
7
- }, [o]), null;
7
+ }, [pathname]);
8
+ return null;
8
9
  }
9
10
  export {
10
- e as S
11
+ ScrollToTop as S
11
12
  };