@m4l/components 0.1.79 → 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.d541e4e6.js → index.00d1d15f.js} +10 -6
- package/components/AppBar/{index.f90014de.js → index.c85b100d.js} +5 -4
- package/components/CommonActions/components/ActionCancel/{index.92536832.js → index.1051a117.js} +1 -1
- package/components/CommonActions/components/ActionFormCancel/{index.7fb1ed8d.js → index.a0d727b2.js} +12 -11
- package/components/CommonActions/components/ActionFormIntro/{index.bebc0c94.js → index.a20dc88d.js} +1 -1
- package/components/CommonActions/components/ActionIntro/{index.aa4e432e.js → index.bfe3256c.js} +1 -1
- package/components/CommonActions/components/Actions/{index.5732847f.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.302080d3.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.0887320f.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.29d5ad65.js → index.6ef76993.js} +5 -4
- package/components/LanguagePopover/{index.ce84f099.js → index.1564bd08.js} +5 -4
- package/components/ModalDialog/{index.ab432b77.js → index.fbc4cd71.js} +3 -3
- package/components/NavLink/{index.3bf44e30.js → index.6c9c2588.js} +5 -4
- package/components/ObjectLogs/{index.c947ded4.js → index.eab1c15f.js} +14 -13
- package/components/Period/{index.adc328ca.js → index.26071a16.js} +16 -15
- package/components/PropertyValue/{index.6b583e7a.js → index.18d3c0fd.js} +1 -1
- package/components/areas/components/AreasAdmin/{index.31905078.js → index.7a0dabbe.js} +23 -22
- package/components/areas/components/AreasViewer/{index.fe18bdbc.js → index.fd49f06c.js} +31 -30
- package/components/areas/components/{index.7ae189ba.js → index.7756928a.js} +8 -7
- package/components/areas/contexts/AreasContext/{index.1213c3ef.js → index.0a08a08b.js} +4 -4
- package/components/areas/contexts/{index.84d35ffe.js → index.b303b664.js} +1 -1
- package/components/areas/hooks/useAreas/{index.cd799cf6.js → index.c6eb2569.js} +1 -1
- package/components/areas/{index.6ee7a4eb.js → index.6e67d89a.js} +8 -7
- 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.e52c1f6a.js → index.d1bbb015.js} +34 -51
- package/components/hook-form/RHFAutocomplete/subcomponents/Skeleton/types.d.ts +2 -1
- package/components/hook-form/RHFAutocompleteAsync/{index.a226b8ac.js → index.f9a9ef48.js} +1 -1
- package/components/hook-form/RHFCheckbox/{index.9619debd.js → index.7b4a21d7.js} +42 -67
- package/components/hook-form/RHFCheckbox/types.d.ts +2 -1
- package/components/hook-form/RHFDateTime/{index.5da7b839.js → index.46cf616e.js} +9 -7
- package/components/hook-form/RHFPeriod/{index.7e42c292.js → index.ce513149.js} +2 -2
- package/components/hook-form/RHFTextField/{index.13447584.js → index.f7ee202c.js} +4 -3
- package/components/hook-form/RHFUpload/{index.80071782.js → index.1befd5bb.js} +6 -5
- package/components/modal/{WindowBase.90d3c1d5.js → WindowBase.7e19843e.js} +8 -6
- package/components/modal/{WindowConfirm.835f8d13.js → WindowConfirm.12a9608a.js} +13 -12
- package/components/modal/{index.cd34ddb3.js → index.b0a7236c.js} +10 -9
- package/components/mui_extended/Accordion/{index.e8ba0755.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.3c005df1.js → index.c39a6681.js} +1 -1
- package/components/mui_extended/index.d.ts +1 -0
- package/components/mui_extended/{index.ff59a512.js → index.d78bde19.js} +5 -4
- package/contexts/ModalContext/{index.feded672.js → index.89805978.js} +1 -1
- package/hooks/useModal/{index.6d238807.js → index.e1c5c31e.js} +1 -1
- package/index.js +46 -44
- package/package.json +1 -1
- package/{vendor.9b969b18.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
|
@@ -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>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { generateUtilityClasses, generateUtilityClass, TablePagination, Skeleton } from "@mui/material";
|
|
3
3
|
import { styled } from "@mui/material/styles";
|
|
4
4
|
import { I as IconButton } from "../IconButton/index.12f1a3c3.js";
|
|
5
5
|
import { useEnvironment } from "@m4l/core";
|
|
6
6
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
7
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
7
8
|
const WrapperPagerActions = styled("div")(({ theme }) => ({
|
|
8
9
|
width: "100%",
|
|
9
10
|
justifyContent: "center",
|
|
@@ -68,36 +69,63 @@ function PagerActions(props) {
|
|
|
68
69
|
})]
|
|
69
70
|
});
|
|
70
71
|
}
|
|
72
|
+
const PagerRoot = styled("div")(({ theme }) => ({
|
|
73
|
+
...theme.components?.M4LPager?.styleOverrides
|
|
74
|
+
}));
|
|
71
75
|
styled("div")(() => ({
|
|
72
76
|
display: "flex",
|
|
73
77
|
flexDirection: "column",
|
|
74
78
|
height: "100%",
|
|
75
79
|
overflow: "hidden"
|
|
76
80
|
}));
|
|
77
|
-
|
|
81
|
+
styled("div")(({ theme }) => ({
|
|
78
82
|
width: "100%",
|
|
79
83
|
display: "flex",
|
|
80
84
|
justifyContent: "center",
|
|
81
85
|
alignItems: "center",
|
|
82
86
|
marginLeft: theme.spacing(3)
|
|
83
87
|
}));
|
|
84
|
-
|
|
88
|
+
styled("div")(({ theme }) => ({
|
|
85
89
|
display: "flex",
|
|
86
90
|
marginLeft: theme.spacing(3)
|
|
87
91
|
}));
|
|
88
|
-
|
|
92
|
+
styled("div")(({ theme }) => ({
|
|
89
93
|
display: "flex",
|
|
90
94
|
justifyContent: "center",
|
|
91
95
|
alignItems: "center",
|
|
92
96
|
width: theme.spacing(3.75),
|
|
93
97
|
height: theme.spacing(3.75)
|
|
94
98
|
}));
|
|
95
|
-
|
|
99
|
+
styled("div")(({ theme }) => ({
|
|
96
100
|
display: "grid",
|
|
97
101
|
gridTemplateColumns: "auto auto",
|
|
98
102
|
gridGap: theme.spacing(1),
|
|
99
103
|
marginRight: theme.spacing(3)
|
|
100
104
|
}));
|
|
105
|
+
const componentName = "M4LPager";
|
|
106
|
+
generateUtilityClasses(componentName, [
|
|
107
|
+
"root",
|
|
108
|
+
"skeletonRoot",
|
|
109
|
+
"skeletonRowsPerPage",
|
|
110
|
+
"skeletonButtonContainer",
|
|
111
|
+
"skeletonIconButton"
|
|
112
|
+
]);
|
|
113
|
+
function getPagerUtilityClass(slot) {
|
|
114
|
+
return generateUtilityClass(componentName, slot);
|
|
115
|
+
}
|
|
116
|
+
const pagerUtilityClasses = () => {
|
|
117
|
+
const slots = {
|
|
118
|
+
root: ["root"],
|
|
119
|
+
skeletonRoot: ["skeletonRoot"],
|
|
120
|
+
skeletonRowsPerPage: ["skeletonRowsPerPage"],
|
|
121
|
+
skeletonButtonContainer: ["skeletonButtonContainer"],
|
|
122
|
+
skeletonIconButton: ["skeletonIconButton"]
|
|
123
|
+
};
|
|
124
|
+
const composedClasses = unstable_composeClasses(slots, getPagerUtilityClass, {});
|
|
125
|
+
return {
|
|
126
|
+
...composedClasses
|
|
127
|
+
};
|
|
128
|
+
};
|
|
101
129
|
function Pager(props) {
|
|
102
130
|
const {
|
|
103
131
|
totalRecords,
|
|
@@ -124,9 +152,29 @@ function Pager(props) {
|
|
|
124
152
|
const handleChangePage = (_event, newPage) => {
|
|
125
153
|
onPageChange(newPage);
|
|
126
154
|
};
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
155
|
+
const classes = pagerUtilityClasses();
|
|
156
|
+
return /* @__PURE__ */ jsx(PagerRoot, {
|
|
157
|
+
className: classes.root,
|
|
158
|
+
children: !isSkeleton ? /* @__PURE__ */ jsx(TablePagination, {
|
|
159
|
+
id: "TablePagination",
|
|
160
|
+
rowsPerPageOptions,
|
|
161
|
+
component: "div",
|
|
162
|
+
count: totalRecords,
|
|
163
|
+
rowsPerPage,
|
|
164
|
+
page: currentPage,
|
|
165
|
+
onPageChange: handleChangePage,
|
|
166
|
+
onRowsPerPageChange: handleChangeRowsPerPage,
|
|
167
|
+
labelDisplayedRows: isDesktop ? ({
|
|
168
|
+
from,
|
|
169
|
+
to,
|
|
170
|
+
count
|
|
171
|
+
}) => `${from}-${to} ${labelOf} ${count}` : () => ``,
|
|
172
|
+
labelRowsPerPage: isDesktop ? labelRows : "",
|
|
173
|
+
ActionsComponent: PagerActions
|
|
174
|
+
}) : /* @__PURE__ */ jsxs("div", {
|
|
175
|
+
className: classes.skeletonRoot,
|
|
176
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
177
|
+
className: classes.skeletonRowsPerPage,
|
|
130
178
|
children: [/* @__PURE__ */ jsx(Skeleton, {
|
|
131
179
|
variant: "text",
|
|
132
180
|
width: "40px",
|
|
@@ -140,26 +188,31 @@ function Pager(props) {
|
|
|
140
188
|
variant: "text",
|
|
141
189
|
width: "50px",
|
|
142
190
|
height: "16px"
|
|
143
|
-
}), /* @__PURE__ */ jsxs(
|
|
144
|
-
|
|
191
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
192
|
+
className: classes.skeletonButtonContainer,
|
|
193
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
194
|
+
className: classes.skeletonIconButton,
|
|
145
195
|
children: /* @__PURE__ */ jsx(Skeleton, {
|
|
146
196
|
variant: "circular",
|
|
147
197
|
width: 20,
|
|
148
198
|
height: 20
|
|
149
199
|
})
|
|
150
|
-
}), /* @__PURE__ */ jsx(
|
|
200
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
201
|
+
className: classes.skeletonIconButton,
|
|
151
202
|
children: /* @__PURE__ */ jsx(Skeleton, {
|
|
152
203
|
variant: "circular",
|
|
153
204
|
width: 20,
|
|
154
205
|
height: 20
|
|
155
206
|
})
|
|
156
|
-
}), /* @__PURE__ */ jsx(
|
|
207
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
208
|
+
className: classes.skeletonIconButton,
|
|
157
209
|
children: /* @__PURE__ */ jsx(Skeleton, {
|
|
158
210
|
variant: "circular",
|
|
159
211
|
width: 20,
|
|
160
212
|
height: 20
|
|
161
213
|
})
|
|
162
|
-
}), /* @__PURE__ */ jsx(
|
|
214
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
215
|
+
className: classes.skeletonIconButton,
|
|
163
216
|
children: /* @__PURE__ */ jsx(Skeleton, {
|
|
164
217
|
variant: "circular",
|
|
165
218
|
width: 20,
|
|
@@ -167,24 +220,7 @@ function Pager(props) {
|
|
|
167
220
|
})
|
|
168
221
|
})]
|
|
169
222
|
})]
|
|
170
|
-
})
|
|
171
|
-
}
|
|
172
|
-
return /* @__PURE__ */ jsx(TablePagination, {
|
|
173
|
-
id: "TablePagination",
|
|
174
|
-
rowsPerPageOptions,
|
|
175
|
-
component: "div",
|
|
176
|
-
count: totalRecords,
|
|
177
|
-
rowsPerPage,
|
|
178
|
-
page: currentPage,
|
|
179
|
-
onPageChange: handleChangePage,
|
|
180
|
-
onRowsPerPageChange: handleChangeRowsPerPage,
|
|
181
|
-
labelDisplayedRows: isDesktop ? ({
|
|
182
|
-
from,
|
|
183
|
-
to,
|
|
184
|
-
count
|
|
185
|
-
}) => `${from}-${to} ${labelOf} ${count}` : () => ``,
|
|
186
|
-
labelRowsPerPage: isDesktop ? labelRows : "",
|
|
187
|
-
ActionsComponent: PagerActions
|
|
223
|
+
})
|
|
188
224
|
});
|
|
189
225
|
}
|
|
190
226
|
function getPagerComponentsDictionary() {
|
|
@@ -4,7 +4,7 @@ import { styled } from "@mui/material/styles";
|
|
|
4
4
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
5
|
import clsx from "clsx";
|
|
6
6
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
7
|
-
import { g as getNameDataTestId } from "../../../vendor.
|
|
7
|
+
import { g as getNameDataTestId } from "../../../vendor.f57d47a7.js";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
const TabRoot = styled("div")(({
|
|
10
10
|
theme
|
|
@@ -5,6 +5,7 @@ export { BoxIcon } from './BoxIcon';
|
|
|
5
5
|
export { Breadcrumbs } from './Breadcrumbs';
|
|
6
6
|
export type { TLink } from './Breadcrumbs/types';
|
|
7
7
|
export * from './Button/Button';
|
|
8
|
+
export * from './CheckBox';
|
|
8
9
|
export { CircularProgress } from './CircularProgress';
|
|
9
10
|
export { Badge } from './Badge';
|
|
10
11
|
export * from './IconButton/IconButton';
|
|
@@ -6,17 +6,18 @@ import "clsx";
|
|
|
6
6
|
import "react/jsx-runtime";
|
|
7
7
|
import "./IconButton/index.12f1a3c3.js";
|
|
8
8
|
import "@m4l/graphics";
|
|
9
|
-
import "./Accordion/index.
|
|
9
|
+
import "./Accordion/index.a6447bf8.js";
|
|
10
10
|
import "./Typography/index.443590d6.js";
|
|
11
11
|
import "./Avatar/index.75e6ed57.js";
|
|
12
12
|
import "react-router-dom";
|
|
13
13
|
import "@mui/material/Button";
|
|
14
14
|
import "./Button/index.4288f9fc.js";
|
|
15
|
-
import "./
|
|
15
|
+
import "./CheckBox.5f6c78b0.js";
|
|
16
|
+
import "./Badge/index.cad260fe.js";
|
|
16
17
|
import "../Image/index.c18ebf5a.js";
|
|
17
18
|
import "@mui/lab";
|
|
18
19
|
import "./MenuActions/index.43a2e1ae.js";
|
|
19
20
|
import "./Popover/index.9f35d0eb.js";
|
|
20
|
-
import "./Pager/index.
|
|
21
|
-
import "./Tab/index.
|
|
21
|
+
import "./Pager/index.82e89328.js";
|
|
22
|
+
import "./Tab/index.c39a6681.js";
|
|
22
23
|
import "./Tooltip/index.5a795dcd.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createContext, useState } from "react";
|
|
2
|
-
import { M as ModalDialog } from "../../components/ModalDialog/index.
|
|
2
|
+
import { M as ModalDialog } from "../../components/ModalDialog/index.fbc4cd71.js";
|
|
3
3
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
4
4
|
const ModalContext = createContext(null);
|
|
5
5
|
function ModalProvider({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
|
-
import { M as ModalContext } from "../../contexts/ModalContext/index.
|
|
2
|
+
import { M as ModalContext } from "../../contexts/ModalContext/index.89805978.js";
|
|
3
3
|
function useModal() {
|
|
4
4
|
const context = useContext(ModalContext);
|
|
5
5
|
if (!context)
|