@m4l/components 0.1.78 → 0.1.80
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/@types/export.d.ts +31 -1
- package/components/AccountPopover/{index.7e76dbb7.js → index.00d1d15f.js} +10 -6
- package/components/AppBar/{index.06858422.js → index.c85b100d.js} +5 -4
- package/components/CommonActions/components/ActionCancel/{index.d536ccfa.js → index.1051a117.js} +1 -1
- package/components/CommonActions/components/ActionFormCancel/{index.a915b105.js → index.a0d727b2.js} +18 -13
- package/components/CommonActions/components/ActionFormIntro/{index.14e65d6c.js → index.a20dc88d.js} +1 -1
- package/components/CommonActions/components/ActionIntro/{index.aa1648eb.js → index.bfe3256c.js} +1 -1
- package/components/CommonActions/components/Actions/{index.52125041.js → index.19d67bc6.js} +10 -9
- package/components/DataGrid/classes/constants.d.ts +1 -0
- package/components/DataGrid/classes/index.d.ts +27 -0
- package/components/DataGrid/classes/types.d.ts +27 -0
- package/components/DataGrid/contexts/DataGridContext/types.d.ts +3 -1
- package/components/DataGrid/{index.9fb3e6a1.js → index.2f175eba.js} +173 -316
- package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/subcomponents/FormatterColumn/index.d.ts +2 -2
- package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/subcomponents/FormatterColumn/types.d.ts +3 -0
- package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/types.d.ts +2 -0
- package/components/DataGrid/types.d.ts +7 -0
- package/components/DynamicFilter/{index.d1a2e2d1.js → index.c1f9d560.js} +23 -22
- package/components/GridLayout/Responsive/{index.0905a698.js → index.1671380a.js} +1 -1
- package/components/GridLayout/{index.da6fd387.js → index.a792aacb.js} +2 -2
- package/components/HelperText/{index.a019742c.js → index.6ef76993.js} +5 -4
- package/components/LanguagePopover/{index.98b63dcb.js → index.1564bd08.js} +5 -4
- package/components/ModalDialog/{index.d9937d46.js → index.fbc4cd71.js} +3 -3
- package/components/NavLink/{index.a5dea6d3.js → index.6c9c2588.js} +5 -4
- package/components/ObjectLogs/{index.d9d20b9d.js → index.eab1c15f.js} +14 -13
- package/components/Period/{index.7b94c418.js → index.26071a16.js} +16 -15
- package/components/PropertyValue/{index.45c73161.js → index.18d3c0fd.js} +1 -1
- package/components/areas/components/AreasAdmin/{index.43ecd998.js → index.7a0dabbe.js} +23 -22
- package/components/areas/components/AreasViewer/{index.14e62059.js → index.fd49f06c.js} +41 -34
- package/components/areas/components/{index.a87653a9.js → index.7756928a.js} +8 -7
- package/components/areas/contexts/AreasContext/{index.02c4e7be.js → index.0a08a08b.js} +9 -4
- package/components/areas/contexts/AreasContext/types.d.ts +1 -0
- package/components/areas/contexts/WindowToolsMFContext/types.d.ts +1 -0
- package/components/areas/contexts/{index.1ff9b360.js → index.b303b664.js} +1 -1
- package/components/areas/hooks/useAreas/{index.85e4b2e2.js → index.c6eb2569.js} +1 -1
- package/components/areas/{index.d1dcccf5.js → index.6e67d89a.js} +8 -7
- package/components/areas/types.d.ts +5 -0
- package/components/hook-form/RHFAutocomplete/classes/index.d.ts +4 -0
- package/components/hook-form/RHFAutocomplete/classes/types.d.ts +6 -0
- package/components/hook-form/RHFAutocomplete/{index.6aa51705.js → index.d1bbb015.js} +34 -51
- package/components/hook-form/RHFAutocomplete/subcomponents/Skeleton/types.d.ts +2 -1
- package/components/hook-form/RHFAutocompleteAsync/{index.1a3dfe5f.js → index.f9a9ef48.js} +1 -1
- package/components/hook-form/RHFCheckbox/{index.a08a65b3.js → index.7b4a21d7.js} +42 -67
- package/components/hook-form/RHFCheckbox/types.d.ts +2 -1
- package/components/hook-form/RHFDateTime/{index.4d671108.js → index.46cf616e.js} +9 -7
- package/components/hook-form/RHFPeriod/{index.39b4be49.js → index.ce513149.js} +2 -2
- package/components/hook-form/RHFTextField/{index.9004e898.js → index.f7ee202c.js} +4 -3
- package/components/hook-form/RHFUpload/{index.bed8573e.js → index.1befd5bb.js} +6 -5
- package/components/modal/{WindowBase.a0c0b322.js → WindowBase.7e19843e.js} +8 -6
- package/components/modal/{WindowConfirm.6c063f2d.js → WindowConfirm.12a9608a.js} +13 -12
- package/components/modal/{index.00efea85.js → index.b0a7236c.js} +10 -9
- package/components/mui_extended/Accordion/{index.9877f7bf.js → index.a6447bf8.js} +1 -1
- package/components/mui_extended/Badge/classes/constants.d.ts +1 -1
- package/components/mui_extended/Badge/{index.8c2b8b66.js → index.cad260fe.js} +1 -1
- package/components/mui_extended/CheckBox/CheckBox.d.ts +3 -0
- package/components/mui_extended/CheckBox/classes/constants.d.ts +1 -0
- package/components/mui_extended/CheckBox/classes/index.d.ts +8 -0
- package/components/mui_extended/CheckBox/classes/types.d.ts +10 -0
- package/components/mui_extended/CheckBox/index.d.ts +1 -0
- package/components/mui_extended/CheckBox/subcomponents/Skeleton/index.d.ts +3 -0
- package/components/mui_extended/CheckBox/subcomponents/Skeleton/types.d.ts +4 -0
- package/components/mui_extended/CheckBox/types.d.ts +5 -0
- package/components/mui_extended/CheckBox.5f6c78b0.js +86 -0
- package/components/mui_extended/Pager/classes/constants.d.ts +1 -0
- package/components/mui_extended/Pager/classes/index.d.ts +10 -0
- package/components/mui_extended/Pager/classes/types.d.ts +10 -0
- package/components/mui_extended/Pager/{index.2f6d6d7d.js → index.82e89328.js} +67 -31
- package/components/mui_extended/Tab/{index.7c82e43d.js → index.c39a6681.js} +1 -1
- package/components/mui_extended/index.d.ts +1 -0
- package/components/mui_extended/{index.0e2ff642.js → index.d78bde19.js} +5 -4
- package/contexts/ModalContext/{index.e9a7ba4a.js → index.89805978.js} +1 -1
- package/hooks/useModal/{index.8e85f7ae.js → index.e1c5c31e.js} +1 -1
- package/index.js +46 -44
- package/package.json +1 -1
- package/{vendor.e353394b.js → vendor.f57d47a7.js} +38 -37
- package/components/hook-form/RHFCheckbox/subcomponents/Skeleton/index.d.ts +0 -3
- package/components/hook-form/RHFCheckbox/subcomponents/Skeleton/types.d.ts +0 -5
|
@@ -1,71 +1,48 @@
|
|
|
1
1
|
import { useFormContext, Controller } from "react-hook-form";
|
|
2
|
-
import { styled
|
|
3
|
-
import {
|
|
4
|
-
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
5
|
-
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
6
|
-
import { styled as styled$1 } from "@mui/material/styles";
|
|
2
|
+
import { styled } from "@mui/material/styles";
|
|
3
|
+
import { Skeleton, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
7
4
|
import { unstable_composeClasses } from "@mui/base";
|
|
8
|
-
import { H as HelperText } from "../../HelperText/index.
|
|
9
|
-
import { T as
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
} = props;
|
|
34
|
-
return /* @__PURE__ */ jsxs(SkeletonRHFCheckBoxRoot, {
|
|
35
|
-
children: [/* @__PURE__ */ jsx(WrapperSkeletonCheckBox, {
|
|
36
|
-
className: classes.skeleton,
|
|
37
|
-
...process.env.NODE_ENV !== "production" ? {
|
|
38
|
-
[TEST_PROP_ID]: getNameDataTestId("skeleton", fieldName)
|
|
39
|
-
} : {},
|
|
40
|
-
children: /* @__PURE__ */ jsx(Skeleton, {
|
|
41
|
-
variant: "rounded",
|
|
42
|
-
width: "18px",
|
|
43
|
-
height: "18px"
|
|
44
|
-
})
|
|
45
|
-
}), hasLabel && /* @__PURE__ */ jsx(Skeleton, {
|
|
46
|
-
variant: "text",
|
|
47
|
-
width: "70px",
|
|
48
|
-
height: "18px"
|
|
49
|
-
})]
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
const RHFCheckboxRoot = styled$1("div")(({
|
|
5
|
+
import { H as HelperText } from "../../HelperText/index.6ef76993.js";
|
|
6
|
+
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
7
|
+
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
8
|
+
import "react";
|
|
9
|
+
import "@m4l/core";
|
|
10
|
+
import "../../Icon/index.9fcd1476.js";
|
|
11
|
+
import "clsx";
|
|
12
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
13
|
+
import "../../mui_extended/IconButton/index.12f1a3c3.js";
|
|
14
|
+
import "../../mui_extended/Accordion/index.a6447bf8.js";
|
|
15
|
+
import "../../mui_extended/Typography/index.443590d6.js";
|
|
16
|
+
import "../../mui_extended/Avatar/index.75e6ed57.js";
|
|
17
|
+
import "react-router-dom";
|
|
18
|
+
import "@mui/material/Button";
|
|
19
|
+
import "../../mui_extended/Button/index.4288f9fc.js";
|
|
20
|
+
import { C as CheckBox } from "../../mui_extended/CheckBox.5f6c78b0.js";
|
|
21
|
+
import "../../mui_extended/Badge/index.cad260fe.js";
|
|
22
|
+
import "../../Image/index.c18ebf5a.js";
|
|
23
|
+
import "@mui/lab";
|
|
24
|
+
import "../../mui_extended/MenuActions/index.43a2e1ae.js";
|
|
25
|
+
import "../../mui_extended/Popover/index.9f35d0eb.js";
|
|
26
|
+
import "../../mui_extended/Pager/index.82e89328.js";
|
|
27
|
+
import "../../mui_extended/Tab/index.c39a6681.js";
|
|
28
|
+
import "../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
29
|
+
const RHFCheckboxRoot = styled("div")(({
|
|
53
30
|
theme
|
|
54
31
|
}) => ({
|
|
55
32
|
...theme.components?.M4LRHFCheckbox?.styleOverrides
|
|
56
33
|
}));
|
|
57
|
-
styled
|
|
34
|
+
styled("div")(() => ({
|
|
58
35
|
display: "flex",
|
|
59
36
|
justifyContent: "center",
|
|
60
37
|
alignItems: "center",
|
|
61
38
|
padding: "8px"
|
|
62
39
|
}));
|
|
63
|
-
styled
|
|
40
|
+
styled(Skeleton)(() => ({
|
|
64
41
|
width: "20px",
|
|
65
42
|
height: "20px",
|
|
66
43
|
borderRadius: "4px"
|
|
67
44
|
}));
|
|
68
|
-
const ContainerCheckTypography = styled
|
|
45
|
+
const ContainerCheckTypography = styled("div")(() => ({
|
|
69
46
|
display: "flex",
|
|
70
47
|
alignItems: "center"
|
|
71
48
|
}));
|
|
@@ -92,6 +69,10 @@ const useUtilityClasses = (ownerState) => {
|
|
|
92
69
|
...composedClasses
|
|
93
70
|
};
|
|
94
71
|
};
|
|
72
|
+
const RHFCHEKCBOX_PREFIX = "RHFCheckbox";
|
|
73
|
+
const getNameDataTestId = (KEY, NAME) => {
|
|
74
|
+
return `${RHFCHEKCBOX_PREFIX}-${NAME}-${KEY}`;
|
|
75
|
+
};
|
|
95
76
|
function RHFCheckbox(props) {
|
|
96
77
|
const {
|
|
97
78
|
name,
|
|
@@ -99,15 +80,15 @@ function RHFCheckbox(props) {
|
|
|
99
80
|
label,
|
|
100
81
|
disabled = false
|
|
101
82
|
} = props;
|
|
102
|
-
const isSkeleton = useModuleSkeleton();
|
|
103
83
|
const {
|
|
104
84
|
control,
|
|
105
85
|
formState: {
|
|
106
86
|
errors
|
|
107
87
|
}
|
|
108
88
|
} = useFormContext();
|
|
89
|
+
const isDesktop = useResponsiveDesktop();
|
|
109
90
|
const ownerState = {
|
|
110
|
-
sizeCheck,
|
|
91
|
+
sizeCheck: !isDesktop ? "medium" : sizeCheck,
|
|
111
92
|
disabled,
|
|
112
93
|
error: errors[name] ? true : false
|
|
113
94
|
};
|
|
@@ -126,29 +107,23 @@ function RHFCheckbox(props) {
|
|
|
126
107
|
error
|
|
127
108
|
}
|
|
128
109
|
}) => {
|
|
129
|
-
return
|
|
130
|
-
children: [/* @__PURE__ */
|
|
110
|
+
return /* @__PURE__ */ jsxs(Fragment, {
|
|
111
|
+
children: [/* @__PURE__ */ jsx(ContainerCheckTypography, {
|
|
131
112
|
className: classes.checkTypography,
|
|
132
113
|
...process.env.NODE_ENV !== "production" ? {
|
|
133
114
|
[TEST_PROP_ID]: getNameDataTestId("checkTypography", name)
|
|
134
115
|
} : {},
|
|
135
|
-
children:
|
|
116
|
+
children: /* @__PURE__ */ jsx(CheckBox, {
|
|
136
117
|
size: sizeCheck,
|
|
137
118
|
...field,
|
|
138
119
|
checked: field.value,
|
|
139
120
|
disabled: disabled ? true : false,
|
|
140
|
-
disableRipple: true
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
children: label
|
|
144
|
-
})]
|
|
121
|
+
disableRipple: true,
|
|
122
|
+
label
|
|
123
|
+
})
|
|
145
124
|
}), error?.message && /* @__PURE__ */ jsx(HelperText, {
|
|
146
125
|
message: error?.message + ""
|
|
147
126
|
})]
|
|
148
|
-
}) : /* @__PURE__ */ jsx(SkeletonRHFCheckBox, {
|
|
149
|
-
classes,
|
|
150
|
-
hasLabel: !!label,
|
|
151
|
-
fieldName: name
|
|
152
127
|
});
|
|
153
128
|
}
|
|
154
129
|
})
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { FormControlLabelProps } from '@mui/material';
|
|
2
|
-
export interface RHFCheckboxProps extends Omit<FormControlLabelProps, 'control'> {
|
|
2
|
+
export interface RHFCheckboxProps extends Omit<FormControlLabelProps, 'control' | 'label'> {
|
|
3
3
|
name: string;
|
|
4
4
|
sizeCheck?: 'small' | 'medium';
|
|
5
|
+
label?: string;
|
|
5
6
|
}
|
|
6
7
|
export interface RHFMultiCheckboxProps extends Omit<FormControlLabelProps, 'control' | 'label'> {
|
|
7
8
|
name: string;
|
|
@@ -3,27 +3,28 @@ import { DateTimePicker } from "@mui/x-date-pickers";
|
|
|
3
3
|
import { useModuleSkeleton } from "@m4l/core";
|
|
4
4
|
import { Skeleton, generateUtilityClasses, generateUtilityClass, styled as styled$1 } from "@mui/material";
|
|
5
5
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
6
|
-
import { useFormatter } from "@m4l/graphics";
|
|
6
|
+
import { useFormatter, useResponsiveDesktop } from "@m4l/graphics";
|
|
7
7
|
import { useState, useEffect } from "react";
|
|
8
8
|
import clsx from "clsx";
|
|
9
9
|
import "../../Icon/index.9fcd1476.js";
|
|
10
10
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
11
11
|
import "../../mui_extended/IconButton/index.12f1a3c3.js";
|
|
12
|
-
import "../../mui_extended/Accordion/index.
|
|
12
|
+
import "../../mui_extended/Accordion/index.a6447bf8.js";
|
|
13
13
|
import { T as Typography } from "../../mui_extended/Typography/index.443590d6.js";
|
|
14
14
|
import "../../mui_extended/Avatar/index.75e6ed57.js";
|
|
15
15
|
import "react-router-dom";
|
|
16
16
|
import "@mui/material/Button";
|
|
17
17
|
import "../../mui_extended/Button/index.4288f9fc.js";
|
|
18
|
-
import "../../mui_extended/
|
|
18
|
+
import "../../mui_extended/CheckBox.5f6c78b0.js";
|
|
19
|
+
import "../../mui_extended/Badge/index.cad260fe.js";
|
|
19
20
|
import "../../Image/index.c18ebf5a.js";
|
|
20
21
|
import "@mui/lab";
|
|
21
22
|
import "../../mui_extended/MenuActions/index.43a2e1ae.js";
|
|
22
23
|
import "../../mui_extended/Popover/index.9f35d0eb.js";
|
|
23
|
-
import "../../mui_extended/Pager/index.
|
|
24
|
-
import "../../mui_extended/Tab/index.
|
|
24
|
+
import "../../mui_extended/Pager/index.82e89328.js";
|
|
25
|
+
import "../../mui_extended/Tab/index.c39a6681.js";
|
|
25
26
|
import "../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
26
|
-
import { H as HelperText } from "../../HelperText/index.
|
|
27
|
+
import { H as HelperText } from "../../HelperText/index.6ef76993.js";
|
|
27
28
|
import { styled } from "@mui/material/styles";
|
|
28
29
|
import { unstable_composeClasses } from "@mui/base";
|
|
29
30
|
const SKTRHFWrapperTextField = styled("div")(({
|
|
@@ -131,10 +132,11 @@ function RHFDateTime(props) {
|
|
|
131
132
|
const handlerBlur = () => {
|
|
132
133
|
setIsFocus(false);
|
|
133
134
|
};
|
|
135
|
+
const isDesktop = useResponsiveDesktop();
|
|
134
136
|
const ownerState = {
|
|
135
137
|
isFocus,
|
|
136
138
|
disabled,
|
|
137
|
-
size,
|
|
139
|
+
size: isDesktop ? size : "medium",
|
|
138
140
|
variant: currentVariant
|
|
139
141
|
};
|
|
140
142
|
const classes = useUtilityClasses(ownerState);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { styled, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
2
2
|
import { useFormContext, Controller } from "react-hook-form";
|
|
3
|
-
import { H as HelperText } from "../../HelperText/index.
|
|
4
|
-
import { P as Period } from "../../Period/index.
|
|
3
|
+
import { H as HelperText } from "../../HelperText/index.6ef76993.js";
|
|
4
|
+
import { P as Period } from "../../Period/index.26071a16.js";
|
|
5
5
|
import { unstable_composeClasses } from "@mui/base";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
const RHFPeriodRoot = styled("div")(({
|
|
@@ -6,13 +6,13 @@ import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
|
6
6
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
7
7
|
import "../../Icon/index.9fcd1476.js";
|
|
8
8
|
import "clsx";
|
|
9
|
-
import "@m4l/graphics";
|
|
9
|
+
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
10
10
|
import { useFormContext, Controller } from "react-hook-form";
|
|
11
11
|
import { styled as styled$1 } from "@mui/material/styles";
|
|
12
12
|
import { unstable_composeClasses } from "@mui/base";
|
|
13
13
|
import { g as getComponentUtilityClass } from "../../../utils/index.c43a95f4.js";
|
|
14
14
|
import { T as Typography } from "../../mui_extended/Typography/index.443590d6.js";
|
|
15
|
-
import { H as HelperText } from "../../HelperText/index.
|
|
15
|
+
import { H as HelperText } from "../../HelperText/index.6ef76993.js";
|
|
16
16
|
const SkeletonTextFieldRoot = styled("div")(() => ({
|
|
17
17
|
display: "flex",
|
|
18
18
|
flexDirection: "column",
|
|
@@ -156,6 +156,7 @@ const RHFTextField = forwardRef((props, ref) => {
|
|
|
156
156
|
} = useFormContext();
|
|
157
157
|
const [isFocus, setIsFocus] = useState(false);
|
|
158
158
|
const [currentVariant, setCurrentVariant] = useState(null);
|
|
159
|
+
const isDesktop = useResponsiveDesktop();
|
|
159
160
|
useEffect(() => {
|
|
160
161
|
if (errors[nameRHF]) {
|
|
161
162
|
setCurrentVariant("error");
|
|
@@ -173,7 +174,7 @@ const RHFTextField = forwardRef((props, ref) => {
|
|
|
173
174
|
};
|
|
174
175
|
const ownerState = {
|
|
175
176
|
type: type === "password" ? "password" : "text",
|
|
176
|
-
size,
|
|
177
|
+
size: !isDesktop ? "medium" : size,
|
|
177
178
|
focus: isFocus,
|
|
178
179
|
variant: currentVariant,
|
|
179
180
|
disabled
|
|
@@ -9,7 +9,7 @@ import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
|
9
9
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
10
10
|
import { B as Button } from "../../mui_extended/Button/index.4288f9fc.js";
|
|
11
11
|
import { T as Typography } from "../../mui_extended/Typography/index.443590d6.js";
|
|
12
|
-
import { H as HelperText } from "../../HelperText/index.
|
|
12
|
+
import { H as HelperText } from "../../HelperText/index.6ef76993.js";
|
|
13
13
|
import "clsx";
|
|
14
14
|
import { styled } from "@mui/material/styles";
|
|
15
15
|
import { unstable_composeClasses } from "@mui/base";
|
|
@@ -17,15 +17,16 @@ import "@mui/material/Button";
|
|
|
17
17
|
import "../../Icon/index.9fcd1476.js";
|
|
18
18
|
import "../../mui_extended/IconButton/index.12f1a3c3.js";
|
|
19
19
|
import "@m4l/graphics";
|
|
20
|
-
import "../../mui_extended/Accordion/index.
|
|
20
|
+
import "../../mui_extended/Accordion/index.a6447bf8.js";
|
|
21
21
|
import "../../mui_extended/Avatar/index.75e6ed57.js";
|
|
22
22
|
import "react-router-dom";
|
|
23
|
-
import "../../mui_extended/
|
|
23
|
+
import "../../mui_extended/CheckBox.5f6c78b0.js";
|
|
24
|
+
import "../../mui_extended/Badge/index.cad260fe.js";
|
|
24
25
|
import "@mui/lab";
|
|
25
26
|
import "../../mui_extended/MenuActions/index.43a2e1ae.js";
|
|
26
27
|
import "../../mui_extended/Popover/index.9f35d0eb.js";
|
|
27
|
-
import "../../mui_extended/Pager/index.
|
|
28
|
-
import "../../mui_extended/Tab/index.
|
|
28
|
+
import "../../mui_extended/Pager/index.82e89328.js";
|
|
29
|
+
import "../../mui_extended/Tab/index.c39a6681.js";
|
|
29
30
|
import "../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
30
31
|
const UploadImageRoot = styled("div")(({
|
|
31
32
|
theme
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useEnvironment } from "@m4l/core";
|
|
2
2
|
import "react";
|
|
3
|
-
import { u as useModal } from "../../hooks/useModal/index.
|
|
4
|
-
import { m as modalUtilityClasses } from "./index.
|
|
3
|
+
import { u as useModal } from "../../hooks/useModal/index.e1c5c31e.js";
|
|
4
|
+
import { m as modalUtilityClasses } from "./index.b0a7236c.js";
|
|
5
5
|
import { I as Icon } from "../Icon/index.9fcd1476.js";
|
|
6
6
|
import "@mui/material";
|
|
7
7
|
import { I as IconButton } from "../mui_extended/IconButton/index.12f1a3c3.js";
|
|
8
|
-
import "../mui_extended/Accordion/index.
|
|
8
|
+
import "../mui_extended/Accordion/index.a6447bf8.js";
|
|
9
9
|
import "../mui_extended/Typography/index.443590d6.js";
|
|
10
10
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
11
11
|
import clsx from "clsx";
|
|
@@ -13,13 +13,15 @@ import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
|
13
13
|
import "react-router-dom";
|
|
14
14
|
import "@mui/material/Button";
|
|
15
15
|
import "../mui_extended/Button/index.4288f9fc.js";
|
|
16
|
-
import "
|
|
16
|
+
import "@m4l/graphics";
|
|
17
|
+
import "../mui_extended/CheckBox.5f6c78b0.js";
|
|
18
|
+
import "../mui_extended/Badge/index.cad260fe.js";
|
|
17
19
|
import "../Image/index.c18ebf5a.js";
|
|
18
20
|
import "@mui/lab";
|
|
19
21
|
import "../mui_extended/MenuActions/index.43a2e1ae.js";
|
|
20
22
|
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
21
|
-
import "../mui_extended/Pager/index.
|
|
22
|
-
import "../mui_extended/Tab/index.
|
|
23
|
+
import "../mui_extended/Pager/index.82e89328.js";
|
|
24
|
+
import "../mui_extended/Tab/index.c39a6681.js";
|
|
23
25
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
24
26
|
const Header = (props) => {
|
|
25
27
|
const {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
2
2
|
import "react";
|
|
3
|
-
import { u as useModal } from "../../hooks/useModal/index.
|
|
4
|
-
import { A as Actions } from "../CommonActions/components/Actions/index.
|
|
5
|
-
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.
|
|
6
|
-
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.
|
|
3
|
+
import { u as useModal } from "../../hooks/useModal/index.e1c5c31e.js";
|
|
4
|
+
import { A as Actions } from "../CommonActions/components/Actions/index.19d67bc6.js";
|
|
5
|
+
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.1051a117.js";
|
|
6
|
+
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.bfe3256c.js";
|
|
7
7
|
import "react-hook-form";
|
|
8
8
|
import { Typography } from "@mui/material";
|
|
9
9
|
import "@mui/material/Button";
|
|
@@ -14,26 +14,27 @@ import "../../react-draggable.7abb5d0a.js";
|
|
|
14
14
|
import "../Resizeable/index.9a9c79a4.js";
|
|
15
15
|
import "@m4l/graphics";
|
|
16
16
|
import "../Icon/index.9fcd1476.js";
|
|
17
|
-
import { m as modalUtilityClasses } from "./index.
|
|
17
|
+
import { m as modalUtilityClasses } from "./index.b0a7236c.js";
|
|
18
18
|
import { I as Image } from "../Image/index.c18ebf5a.js";
|
|
19
19
|
import "../mui_extended/IconButton/index.12f1a3c3.js";
|
|
20
|
-
import "../mui_extended/Accordion/index.
|
|
20
|
+
import "../mui_extended/Accordion/index.a6447bf8.js";
|
|
21
21
|
import "../mui_extended/Typography/index.443590d6.js";
|
|
22
22
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
23
23
|
import "react-router-dom";
|
|
24
|
-
import "../mui_extended/
|
|
24
|
+
import "../mui_extended/CheckBox.5f6c78b0.js";
|
|
25
|
+
import "../mui_extended/Badge/index.cad260fe.js";
|
|
25
26
|
import "@mui/lab";
|
|
26
27
|
import "../mui_extended/MenuActions/index.43a2e1ae.js";
|
|
27
28
|
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
28
|
-
import "../mui_extended/Pager/index.
|
|
29
|
-
import "../mui_extended/Tab/index.
|
|
29
|
+
import "../mui_extended/Pager/index.82e89328.js";
|
|
30
|
+
import "../mui_extended/Tab/index.c39a6681.js";
|
|
30
31
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
31
32
|
import "zustand";
|
|
32
|
-
import "../areas/contexts/AreasContext/index.
|
|
33
|
-
import "../areas/components/AreasAdmin/index.
|
|
33
|
+
import "../areas/contexts/AreasContext/index.0a08a08b.js";
|
|
34
|
+
import "../areas/components/AreasAdmin/index.7a0dabbe.js";
|
|
34
35
|
import "zustand/shallow";
|
|
35
36
|
import "../ScrollBar/index.bbe48f4d.js";
|
|
36
|
-
import "../areas/components/AreasViewer/index.
|
|
37
|
+
import "../areas/components/AreasViewer/index.fd49f06c.js";
|
|
37
38
|
import "../LinearProgressIndeterminate/index.60dabc06.js";
|
|
38
39
|
import "../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
39
40
|
import "../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
2
2
|
import "../../react-draggable.7abb5d0a.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import "../../contexts/ModalContext/index.
|
|
4
|
+
import "../../contexts/ModalContext/index.89805978.js";
|
|
5
5
|
import "../Resizeable/index.9a9c79a4.js";
|
|
6
6
|
import "react/jsx-runtime";
|
|
7
7
|
import "@m4l/graphics";
|
|
@@ -9,29 +9,30 @@ import "../Icon/index.9fcd1476.js";
|
|
|
9
9
|
import "clsx";
|
|
10
10
|
import "@m4l/core";
|
|
11
11
|
import { unstable_composeClasses } from "@mui/base";
|
|
12
|
-
import "../CommonActions/components/Actions/index.
|
|
12
|
+
import "../CommonActions/components/Actions/index.19d67bc6.js";
|
|
13
13
|
import "@mui/material/Button";
|
|
14
14
|
import "../mui_extended/Button/index.4288f9fc.js";
|
|
15
15
|
import "react-hook-form";
|
|
16
16
|
import "../mui_extended/IconButton/index.12f1a3c3.js";
|
|
17
|
-
import "../mui_extended/Accordion/index.
|
|
17
|
+
import "../mui_extended/Accordion/index.a6447bf8.js";
|
|
18
18
|
import "../mui_extended/Typography/index.443590d6.js";
|
|
19
19
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
20
20
|
import "react-router-dom";
|
|
21
|
-
import "../mui_extended/
|
|
21
|
+
import "../mui_extended/CheckBox.5f6c78b0.js";
|
|
22
|
+
import "../mui_extended/Badge/index.cad260fe.js";
|
|
22
23
|
import "../Image/index.c18ebf5a.js";
|
|
23
24
|
import "@mui/lab";
|
|
24
25
|
import "../mui_extended/MenuActions/index.43a2e1ae.js";
|
|
25
26
|
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
26
|
-
import "../mui_extended/Pager/index.
|
|
27
|
-
import "../mui_extended/Tab/index.
|
|
27
|
+
import "../mui_extended/Pager/index.82e89328.js";
|
|
28
|
+
import "../mui_extended/Tab/index.c39a6681.js";
|
|
28
29
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
29
30
|
import "zustand";
|
|
30
|
-
import "../areas/contexts/AreasContext/index.
|
|
31
|
-
import "../areas/components/AreasAdmin/index.
|
|
31
|
+
import "../areas/contexts/AreasContext/index.0a08a08b.js";
|
|
32
|
+
import "../areas/components/AreasAdmin/index.7a0dabbe.js";
|
|
32
33
|
import "zustand/shallow";
|
|
33
34
|
import "../ScrollBar/index.bbe48f4d.js";
|
|
34
|
-
import "../areas/components/AreasViewer/index.
|
|
35
|
+
import "../areas/components/AreasViewer/index.fd49f06c.js";
|
|
35
36
|
import "../LinearProgressIndeterminate/index.60dabc06.js";
|
|
36
37
|
import "../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
37
38
|
import "../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
@@ -6,7 +6,7 @@ import { I as Icon } from "../../Icon/index.9fcd1476.js";
|
|
|
6
6
|
import { T as Typography } from "../Typography/index.443590d6.js";
|
|
7
7
|
import clsx from "clsx";
|
|
8
8
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
9
|
-
import { g as getNameDataTestId } from "../../../vendor.
|
|
9
|
+
import { g as getNameDataTestId } from "../../../vendor.f57d47a7.js";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
const componentName = "M4LAccordion";
|
|
12
12
|
generateUtilityClasses(componentName, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const componentName = "
|
|
1
|
+
export declare const componentName = "M4LDataGrid";
|
|
@@ -2,7 +2,7 @@ import { generateUtilityClasses, styled, Badge as Badge$1 } from "@mui/material"
|
|
|
2
2
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import "@mui/base";
|
|
5
|
-
const componentName = "
|
|
5
|
+
const componentName = "M4LDataGrid";
|
|
6
6
|
const badgeClasses = generateUtilityClasses(componentName, [
|
|
7
7
|
"root"
|
|
8
8
|
]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const COMPONENT_CLASS_NAME = "M4LCheckBox";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CheckboxClassesType } from './types';
|
|
2
|
+
import { OwnerState } from '../types';
|
|
3
|
+
export declare const checkboxClasses: CheckboxClassesType;
|
|
4
|
+
export declare function getRHFCheckboxUtilityClass(slot: string): string;
|
|
5
|
+
export declare const useUtilityClasses: (ownerState: OwnerState) => {
|
|
6
|
+
root: string;
|
|
7
|
+
skeleton: string;
|
|
8
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useUtilityClasses } from ".";
|
|
2
|
+
export interface CheckboxClassesType {
|
|
3
|
+
root: string;
|
|
4
|
+
skeleton: string;
|
|
5
|
+
small: string;
|
|
6
|
+
medium: string;
|
|
7
|
+
stateDisabled: string;
|
|
8
|
+
}
|
|
9
|
+
export declare type CheckBoxClassesKey = keyof CheckboxClassesType;
|
|
10
|
+
export declare type Classes = ReturnType<typeof useUtilityClasses>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CheckBox } from './CheckBox';
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { generateUtilityClasses, generateUtilityClass, styled, Skeleton, Checkbox } from "@mui/material";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
4
|
+
import { useModuleSkeleton } from "@m4l/core";
|
|
5
|
+
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { T as Typography } from "./Typography/index.443590d6.js";
|
|
7
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
8
|
+
const COMPONENT_CLASS_NAME = "M4LCheckBox";
|
|
9
|
+
generateUtilityClasses(COMPONENT_CLASS_NAME, [
|
|
10
|
+
"root",
|
|
11
|
+
"skeleton",
|
|
12
|
+
"small",
|
|
13
|
+
"medium",
|
|
14
|
+
"stateDisabled"
|
|
15
|
+
]);
|
|
16
|
+
function getRHFCheckboxUtilityClass(slot) {
|
|
17
|
+
return generateUtilityClass(COMPONENT_CLASS_NAME, slot);
|
|
18
|
+
}
|
|
19
|
+
const useUtilityClasses = (ownerState) => {
|
|
20
|
+
const slots = {
|
|
21
|
+
root: ["root", ownerState.size === "small" && "small", ownerState.size === "medium" && "medium", ownerState.disabled && "stateDisabled"],
|
|
22
|
+
skeleton: ["skeleton"]
|
|
23
|
+
};
|
|
24
|
+
const composedClasses = unstable_composeClasses(slots, getRHFCheckboxUtilityClass, {});
|
|
25
|
+
return {
|
|
26
|
+
...composedClasses
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
const WrapperSkeletonCheckBox = styled("div")(() => ({
|
|
30
|
+
display: "flex",
|
|
31
|
+
justifyContent: "center",
|
|
32
|
+
alignItems: "center",
|
|
33
|
+
width: "36px",
|
|
34
|
+
height: "36px"
|
|
35
|
+
}));
|
|
36
|
+
styled("div")(() => ({
|
|
37
|
+
display: "flex",
|
|
38
|
+
justifyContent: "flex-start",
|
|
39
|
+
alignItems: "center",
|
|
40
|
+
gap: "8px",
|
|
41
|
+
width: "100%"
|
|
42
|
+
}));
|
|
43
|
+
const SkeletonCheckBox = (props) => {
|
|
44
|
+
const {
|
|
45
|
+
classes
|
|
46
|
+
} = props;
|
|
47
|
+
return /* @__PURE__ */ jsx(Fragment, {
|
|
48
|
+
children: /* @__PURE__ */ jsx(WrapperSkeletonCheckBox, {
|
|
49
|
+
className: classes.skeleton,
|
|
50
|
+
children: /* @__PURE__ */ jsx(Skeleton, {
|
|
51
|
+
variant: "rounded",
|
|
52
|
+
width: "18px",
|
|
53
|
+
height: "18px"
|
|
54
|
+
})
|
|
55
|
+
})
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
const CheckBox = (props) => {
|
|
59
|
+
const {
|
|
60
|
+
className,
|
|
61
|
+
size = "small",
|
|
62
|
+
disabled,
|
|
63
|
+
label
|
|
64
|
+
} = props;
|
|
65
|
+
const isDesktop = useResponsiveDesktop();
|
|
66
|
+
const isSkeleton = useModuleSkeleton();
|
|
67
|
+
const ownerState = {
|
|
68
|
+
size: !isDesktop ? "medium" : size,
|
|
69
|
+
disabled
|
|
70
|
+
};
|
|
71
|
+
const classes = useUtilityClasses(ownerState);
|
|
72
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
73
|
+
className: clsx(classes.root, className),
|
|
74
|
+
children: [!isSkeleton ? /* @__PURE__ */ jsx(Checkbox, {
|
|
75
|
+
...props
|
|
76
|
+
}) : /* @__PURE__ */ jsx(SkeletonCheckBox, {
|
|
77
|
+
classes
|
|
78
|
+
}), label ? /* @__PURE__ */ jsx(Typography, {
|
|
79
|
+
skeletonWidth: "80px",
|
|
80
|
+
children: label
|
|
81
|
+
}) : null]
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
export {
|
|
85
|
+
CheckBox as C
|
|
86
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const componentName = "M4LPager";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PagerClassesType } from './types';
|
|
2
|
+
export declare const pagerClasses: PagerClassesType;
|
|
3
|
+
export declare function getPagerUtilityClass(slot: string): string;
|
|
4
|
+
export declare const pagerUtilityClasses: () => {
|
|
5
|
+
root: string;
|
|
6
|
+
skeletonRoot: string;
|
|
7
|
+
skeletonRowsPerPage: string;
|
|
8
|
+
skeletonButtonContainer: string;
|
|
9
|
+
skeletonIconButton: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { pagerUtilityClasses } from ".";
|
|
2
|
+
export interface PagerClassesType {
|
|
3
|
+
root: string;
|
|
4
|
+
skeletonRoot: string;
|
|
5
|
+
skeletonRowsPerPage: string;
|
|
6
|
+
skeletonButtonContainer: string;
|
|
7
|
+
skeletonIconButton: string;
|
|
8
|
+
}
|
|
9
|
+
export declare type PagerClassesKey = keyof PagerClassesType;
|
|
10
|
+
export declare type Classes = ReturnType<typeof pagerUtilityClasses>;
|