@m4l/components 1.0.0 → 1.0.2
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/components/AccountPopover/{index.efc74d5c.js → index.ec031003.js} +5 -3
- package/components/AppBar/{index.fc126a22.js → index.1499770b.js} +4 -4
- package/components/DragResizeWindow/{index.46b380e1.js → index.5e316291.js} +3 -3
- package/components/DynamicFilter/{index.d9168c12.js → index.05e15fb8.js} +28 -211
- package/components/FieldLabel/{index.f9cdcc27.js → index.400a46e0.js} +4 -4
- package/components/GridLayout/{index.bb3b7769.js → index.7156fbc9.js} +2 -2
- package/components/GridLayout/subcomponents/Griditem/{index.bb23f651.js → index.8946f18e.js} +4 -4
- package/components/GridLayout/subcomponents/Responsive/{index.b8a2a121.js → index.3c68f0cb.js} +2 -2
- package/components/GridLayout/subcomponents/SizeProvider/{index.094bc6b5.js → index.a5b2190d.js} +1 -1
- package/components/HamburgerMenu/{index.5997af31.js → index.d57bca4c.js} +3 -3
- package/components/HelperText/{index.be949cdf.js → index.651a9b4b.js} +1 -1
- package/components/Icon/index.2e8ec5a1.js +209 -0
- package/components/Image/index.0d32558e.js +168 -0
- package/components/LoadingError/{index.9f00c83c.js → index.d137be81.js} +5 -4
- package/components/MFLoader/{index.402c1acc.js → index.2038aa6c.js} +3 -3
- package/components/ModalDialog/{index.ea9189c3.js → index.85d30f10.js} +4 -4
- package/components/NavLink/{index.4e548cee.js → index.badec599.js} +2 -2
- package/components/NoItemSelected/{index.418c8316.js → index.008154ce.js} +2 -2
- package/components/ObjectLogs/{index.bfa7dad3.js → index.65a6b1bc.js} +8 -7
- package/components/PDFViewer/{index.bb2eca5a.js → index.9677b02a.js} +2 -2
- package/components/Page/index.7482cf60.js +98 -0
- package/components/PaperForm/{index.8121e3da.js → index.e04f9f1f.js} +2 -2
- package/components/Period/{index.5233694b.js → index.3d695534.js} +8 -103
- package/components/PrintingSystem/{index.fb176a93.js → index.89493ad6.js} +15 -14
- package/components/PrintingSystem/subcomponents/BodyNode/{index.c1d61038.js → index.fdd8cebb.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.18bd9bad.js → index.12293a60.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.67d9f1b4.js → index.7fdad1df.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.eaee152a.js → index.fcaf9b2f.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.f5f63a2a.js → index.03148990.js} +1 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.7de4e411.js → index.691b5c38.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.f9ccf22b.js → index.3699b685.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.f2f2e903.js → index.bcc87da8.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index.540a4b19.js → index.659f28e5.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.41e7fcb0.js → index.137ebb7a.js} +1 -1
- package/components/PropertyValue/{index.9572c347.js → index.e31d4282.js} +3 -3
- package/components/Resizeable/{index.1f0c1359.js → index.8c72e36a.js} +1 -1
- package/components/ScrollBar/{index.adf0eade.js → index.9bfcc74f.js} +1 -1
- package/components/SideBar/{index.629ba840.js → index.004a2de1.js} +7 -31
- package/components/SplitLayout/{index.74091a81.js → index.aed78a1f.js} +1 -1
- package/components/ToastContainer/{index.f9b507b9.js → index.586b1194.js} +3 -3
- package/components/areas/constants.630a4f42.js +293 -0
- package/components/areas/contexts/AreasContext/{index.bb316000.js → index.81b748ec.js} +4 -4
- package/components/areas/{dictionary.7e74022a.js → dictionary.19b25583.js} +26 -34
- package/components/areas/hooks/useAreas/{index.e24bd74d.js → index.b02d5bdc.js} +1 -1
- package/components/hook-form/HelperError/index.fd10c3ab.js +19 -0
- package/components/hook-form/RHFAutocompleteAsync/index.ea3ba7a7.js +160 -0
- package/components/hook-form/RHFCheckbox/index.9ac452cc.js +143 -0
- package/components/hook-form/RHFColorPicker/index.25e4e643.js +191 -0
- package/components/hook-form/RHFDateTime/index.31a0537d.js +190 -0
- package/components/hook-form/RHFMultiCheckbox/index.437e6ba3.js +34 -0
- package/components/hook-form/RHFPeriod/index.c8868100.js +105 -0
- package/components/hook-form/RHFRadioGroup/index.11c0add8.js +35 -0
- package/components/hook-form/RHFSelect/index.c6c60ecc.js +29 -0
- package/components/hook-form/RHFTextField/index.2ae1f130.js +326 -0
- package/components/{Image/index.36a3d440.js → hook-form/RHFUpload/index.9eeaee0f.js} +32 -232
- package/components/maps/components/GpsTools/index.ef751d28.js +251 -0
- package/components/maps/{index.8ec46ce4.js → index.ba1ccfad.js} +21 -555
- package/components/modal/{WindowBase.a3ac7adc.js → WindowBase.c1e879e4.js} +4 -3
- package/components/modal/{WindowConfirm.e35da619.js → WindowConfirm.1a123368.js} +6 -6
- package/components/modal/{index.a0e30c8b.js → index.7ca17f55.js} +1 -1
- package/components/mui_extended/Accordion/index.391679d1.js +143 -0
- package/components/mui_extended/Avatar/index.3ba36655.js +63 -0
- package/components/mui_extended/Badge/index.3465d7fb.js +31 -0
- package/components/mui_extended/BoxIcon/index.d61e7ac5.js +22 -0
- package/components/mui_extended/Breadcrumbs/index.4a44883c.js +87 -0
- package/components/mui_extended/Button/index.a7dc6ef0.js +289 -0
- package/components/mui_extended/CheckBox/index.c5c8721c.js +76 -0
- package/components/mui_extended/CircularProgress/index.967e70b7.js +8 -0
- package/components/mui_extended/IconButton/index.87f4726c.js +120 -0
- package/components/{LinearProgressIndeterminate/index.de9d447c.js → mui_extended/LinearProgress/index.52edc848.js} +11 -4
- package/components/mui_extended/LinkWithRoute/index.288c51f3.js +15 -0
- package/components/{Page/index.fdf04592.js → mui_extended/Pager/index.46aec921.js} +9 -98
- package/components/mui_extended/Popover/index.8e5ac765.js +1041 -0
- package/components/mui_extended/Stack/index.fe363ca5.js +31 -0
- package/components/{maps/components/GpsTools/index.75880ce0.js → mui_extended/Tab/index.ad88441e.js} +674 -239
- package/components/mui_extended/ToggleButton/index.38ca2330.js +18 -0
- package/components/mui_extended/ToggleIconButton/index.7fbece74.js +24 -0
- package/components/mui_extended/Tooltip/index.49bb5ee1.js +40 -0
- package/components/mui_extended/Typography/index.2a1c68f8.js +55 -0
- package/components/popups/PopupsProvider/{index.18669fb4.js → index.3b43e55f.js} +1 -1
- package/components/popups/PopupsViewer/{index.ba354267.js → index.fb3f0c48.js} +5 -4
- package/contexts/ModalContext/{index.cf02e6bd.js → index.82f61407.js} +1 -1
- package/contexts/RHFormContext/{index.dc955a09.js → index.e942a298.js} +1 -1
- package/hooks/useFormAddEdit/{index.f156a2cd.js → index.fa430551.js} +2 -2
- package/hooks/useModal/{index.ef54bcf2.js → index.9fe41bde.js} +3 -3
- package/index.js +266 -239
- package/package.json +1 -1
- package/{react-draggable.5331add7.js → react-draggable.2df3b71a.js} +1 -1
- package/{react-resizable.37bfb965.js → react-resizable.c60f3843.js} +2 -2
- package/utils/{index.9ee4c99a.js → index.0660ee9c.js} +9 -62
- package/{vendor.a1ce6777.js → vendor.3eadfa16.js} +746 -3011
- package/components/Icon/index.d5fed418.js +0 -420
- package/components/LanguagePopover/index.e6fa2336.js +0 -184
- package/components/areas/constants.5387d83e.js +0 -412
- package/hooks/useTab/index.bce8b99e.js +0 -12
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import { B as Button, b as buttonClasses } from "../Button/index.a7dc6ef0.js";
|
|
4
|
+
import { w as withToggle } from "../../../hocs/withToggle/index.548aeace.js";
|
|
5
|
+
const ToggleAbleButton = ({ onToggle, isToggled, ...props }) => {
|
|
6
|
+
return /* @__PURE__ */ jsx(
|
|
7
|
+
Button,
|
|
8
|
+
{
|
|
9
|
+
onClick: onToggle,
|
|
10
|
+
...props,
|
|
11
|
+
className: clsx(isToggled ? buttonClasses.togglePressed : buttonClasses.toggleNotPressed)
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
};
|
|
15
|
+
const ToggleButton = withToggle(ToggleAbleButton);
|
|
16
|
+
export {
|
|
17
|
+
ToggleButton as T
|
|
18
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import { I as IconButton, i as iconButtonClasses } from "../IconButton/index.87f4726c.js";
|
|
4
|
+
import { w as withToggle } from "../../../hocs/withToggle/index.548aeace.js";
|
|
5
|
+
const ToggleAbleIconButton = ({
|
|
6
|
+
onToggle,
|
|
7
|
+
isToggled,
|
|
8
|
+
...props
|
|
9
|
+
}) => {
|
|
10
|
+
return /* @__PURE__ */ jsx(
|
|
11
|
+
IconButton,
|
|
12
|
+
{
|
|
13
|
+
onClick: onToggle,
|
|
14
|
+
...props,
|
|
15
|
+
className: clsx(
|
|
16
|
+
onToggle ? iconButtonClasses.togglePressed : iconButtonClasses.toggleNotPressed
|
|
17
|
+
)
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
};
|
|
21
|
+
const ToggleIconButton = withToggle(ToggleAbleIconButton);
|
|
22
|
+
export {
|
|
23
|
+
ToggleIconButton as T
|
|
24
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { generateUtilityClasses, generateUtilityClass, useTheme, Tooltip as Tooltip$1 } from "@mui/material";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
5
|
+
const componentName = "M4LTooltip";
|
|
6
|
+
generateUtilityClasses(componentName, [
|
|
7
|
+
"root"
|
|
8
|
+
]);
|
|
9
|
+
function getTooltipUtilityClass(slot) {
|
|
10
|
+
return generateUtilityClass(componentName, slot);
|
|
11
|
+
}
|
|
12
|
+
const tooltipUtilityClasses = () => {
|
|
13
|
+
const slots = {
|
|
14
|
+
root: ["root"]
|
|
15
|
+
};
|
|
16
|
+
const composedClasses = unstable_composeClasses(slots, getTooltipUtilityClass, {});
|
|
17
|
+
return {
|
|
18
|
+
...composedClasses
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
const Tooltip = (props) => {
|
|
22
|
+
const { children, className, ...others } = props;
|
|
23
|
+
const classes = tooltipUtilityClasses();
|
|
24
|
+
const theme = useTheme();
|
|
25
|
+
const stylesoverrides = theme.components?.M4LTooltip?.styleOverrides;
|
|
26
|
+
return /* @__PURE__ */ jsx(
|
|
27
|
+
Tooltip$1,
|
|
28
|
+
{
|
|
29
|
+
PopperProps: {
|
|
30
|
+
sx: { ...stylesoverrides },
|
|
31
|
+
className: clsx(classes.root, className)
|
|
32
|
+
},
|
|
33
|
+
...others,
|
|
34
|
+
children
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
Tooltip as T
|
|
40
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useModuleSkeleton } from "@m4l/core";
|
|
3
|
+
import { Skeleton, generateUtilityClasses, generateUtilityClass, Typography as Typography$1 } from "@mui/material";
|
|
4
|
+
import { styled } from "@mui/material/styles";
|
|
5
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
6
|
+
import clsx from "clsx";
|
|
7
|
+
import { T as TEST_PROP_ID } from "../../areas/constants.630a4f42.js";
|
|
8
|
+
const WarpperTypography = styled("div")(({ theme }) => ({
|
|
9
|
+
...theme.components?.M4LTypography?.styleOverrides
|
|
10
|
+
}));
|
|
11
|
+
const SkeletonTypography = (props) => {
|
|
12
|
+
const { skeletonWidth, skeletongHeight } = props;
|
|
13
|
+
return /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: skeletonWidth, height: skeletongHeight });
|
|
14
|
+
};
|
|
15
|
+
generateUtilityClasses("M4LTypography", [
|
|
16
|
+
"root"
|
|
17
|
+
]);
|
|
18
|
+
function getTypographyClassesUtilityClass(slot) {
|
|
19
|
+
return generateUtilityClass("M4LTypography", slot);
|
|
20
|
+
}
|
|
21
|
+
const useUtilityClasses = () => {
|
|
22
|
+
const slots = {
|
|
23
|
+
root: ["root"]
|
|
24
|
+
};
|
|
25
|
+
const composedClasses = unstable_composeClasses(slots, getTypographyClassesUtilityClass, {});
|
|
26
|
+
return {
|
|
27
|
+
...composedClasses
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
const TYPOGRAPHY_PREFIX = "Typography";
|
|
31
|
+
const getNameDataTestId = (KEY) => {
|
|
32
|
+
return `${TYPOGRAPHY_PREFIX}-${KEY}`;
|
|
33
|
+
};
|
|
34
|
+
function Typography(props) {
|
|
35
|
+
const {
|
|
36
|
+
skeletonWidth = "100%",
|
|
37
|
+
skeletongHeight = "18px",
|
|
38
|
+
variant = "body",
|
|
39
|
+
className,
|
|
40
|
+
...other
|
|
41
|
+
} = props;
|
|
42
|
+
const isSkeleton = useModuleSkeleton();
|
|
43
|
+
const classes = useUtilityClasses();
|
|
44
|
+
return /* @__PURE__ */ jsx(
|
|
45
|
+
WarpperTypography,
|
|
46
|
+
{
|
|
47
|
+
className: clsx(classes.root, className),
|
|
48
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId("root") } : {},
|
|
49
|
+
children: !isSkeleton ? /* @__PURE__ */ jsx(Typography$1, { ...other, variant }) : /* @__PURE__ */ jsx(SkeletonTypography, { skeletonWidth, skeletongHeight })
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
Typography as T
|
|
55
|
+
};
|
|
@@ -6,7 +6,7 @@ import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
|
|
|
6
6
|
import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
7
7
|
import { devtools } from "zustand/middleware";
|
|
8
8
|
import { immer } from "zustand/middleware/immer";
|
|
9
|
-
import { p as popupsUtilityClasses } from "../PopupsViewer/index.
|
|
9
|
+
import { p as popupsUtilityClasses } from "../PopupsViewer/index.fb3f0c48.js";
|
|
10
10
|
import { cloneDeep } from "lodash";
|
|
11
11
|
const updateOwnerStateClasses = (state) => {
|
|
12
12
|
state.classes = popupsUtilityClasses(state.ownerState);
|
|
@@ -4,13 +4,14 @@ import { shallow } from "zustand/shallow";
|
|
|
4
4
|
import { useState, useRef } from "react";
|
|
5
5
|
import clsx from "clsx";
|
|
6
6
|
import { useEnvironment } from "@m4l/core";
|
|
7
|
-
import { u as usePopupsStore } from "../PopupsProvider/index.
|
|
7
|
+
import { u as usePopupsStore } from "../PopupsProvider/index.3b43e55f.js";
|
|
8
8
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
9
9
|
import { unstable_composeClasses } from "@mui/base";
|
|
10
|
-
import {
|
|
10
|
+
import { af as COMPONENT_CLASS_NAME } from "../../areas/constants.630a4f42.js";
|
|
11
11
|
import { P as POPUPS_ICONS } from "../../areas/icons.504ec098.js";
|
|
12
|
-
import { d as draggableWindowClasses, D as DragResizeWindow } from "../../DragResizeWindow/index.
|
|
13
|
-
import { I as Icon
|
|
12
|
+
import { d as draggableWindowClasses, D as DragResizeWindow } from "../../DragResizeWindow/index.5e316291.js";
|
|
13
|
+
import { I as Icon } from "../../Icon/index.2e8ec5a1.js";
|
|
14
|
+
import { I as IconButton } from "../../mui_extended/IconButton/index.87f4726c.js";
|
|
14
15
|
import { u as useSizeContainer } from "../../../hooks/useSizeContainer/index.3c48670c.js";
|
|
15
16
|
import { styled } from "@mui/material/styles";
|
|
16
17
|
const popupsClasses = generateUtilityClasses(COMPONENT_CLASS_NAME, [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createContext, useState } from "react";
|
|
3
|
-
import { M as ModalDialog } from "../../components/ModalDialog/index.
|
|
3
|
+
import { M as ModalDialog } from "../../components/ModalDialog/index.85d30f10.js";
|
|
4
4
|
const ModalContext = createContext(null);
|
|
5
5
|
function ModalProvider({ children }) {
|
|
6
6
|
const [modalOptions, setModalOptions] = useState({
|
|
@@ -5,7 +5,7 @@ import { useForm, FormProvider } from "react-hook-form";
|
|
|
5
5
|
import { yupResolver } from "@hookform/resolvers/yup";
|
|
6
6
|
import { styled, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
7
7
|
import { unstable_composeClasses } from "@mui/base";
|
|
8
|
-
import {
|
|
8
|
+
import { ag as componentName } from "../../components/areas/constants.630a4f42.js";
|
|
9
9
|
const FormProviderRoot = styled("form")(({ theme }) => ({
|
|
10
10
|
...theme.components?.M4LRHFormProvider?.styleOverrides
|
|
11
11
|
}));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useNetwork, useFlagsStore, useModuleDictionary } from "@m4l/core";
|
|
3
3
|
import { useState, useEffect } from "react";
|
|
4
|
-
import { u as useModal } from "../useModal/index.
|
|
5
|
-
import { W as WindowConfirm } from "../../components/modal/WindowConfirm.
|
|
4
|
+
import { u as useModal } from "../useModal/index.9fe41bde.js";
|
|
5
|
+
import { W as WindowConfirm } from "../../components/modal/WindowConfirm.1a123368.js";
|
|
6
6
|
function useFormAddEdit(props) {
|
|
7
7
|
const {
|
|
8
8
|
initialValues,
|
|
@@ -2,9 +2,9 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
3
3
|
import { useIsMobile } from "@m4l/graphics";
|
|
4
4
|
import { useContext, useRef, useCallback } from "react";
|
|
5
|
-
import {
|
|
6
|
-
import { M as ModalContext } from "../../contexts/ModalContext/index.
|
|
7
|
-
import { W as WindowBase } from "../../components/modal/WindowBase.
|
|
5
|
+
import { f as useDataGrid, j as DataGridRoot, k as ColumnsConfig, A as Actions, d as ActionCancel, e as ActionIntro } from "../../vendor.3eadfa16.js";
|
|
6
|
+
import { M as ModalContext } from "../../contexts/ModalContext/index.82f61407.js";
|
|
7
|
+
import { W as WindowBase } from "../../components/modal/WindowBase.c1e879e4.js";
|
|
8
8
|
function useModal() {
|
|
9
9
|
const context = useContext(ModalContext);
|
|
10
10
|
if (!context)
|