@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
package/components/PrintingSystem/subcomponents/TextBoxNode/{index.41e7fcb0.js → index.137ebb7a.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useBase, evaluateWithContext } from "@m4l/core";
|
|
3
|
-
import { c as classes } from "../../index.
|
|
3
|
+
import { c as classes } from "../../index.89493ad6.js";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
const TextBoxNode = (props) => {
|
|
6
6
|
const { variant = "body", style, className, textAlign = "start", children } = props;
|
|
@@ -2,12 +2,12 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { styled, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
3
3
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
4
4
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
|
-
import {
|
|
5
|
+
import { J as componentName, K as TEST_PROPS_DATA, T as TEST_PROP_ID, O as COMPONENT_PREFIX } from "../areas/constants.630a4f42.js";
|
|
6
6
|
import clsx from "clsx";
|
|
7
7
|
import { a as getNameDataTestId } from "../../test/getNameDataTestId.aee44365.js";
|
|
8
8
|
import { useState } from "react";
|
|
9
|
-
import { F as FieldLabel } from "../FieldLabel/index.
|
|
10
|
-
import { I as Icon } from "../Icon/index.
|
|
9
|
+
import { F as FieldLabel } from "../FieldLabel/index.400a46e0.js";
|
|
10
|
+
import { I as Icon } from "../Icon/index.2e8ec5a1.js";
|
|
11
11
|
const PropertyValueRoot = styled("div")(({ theme }) => ({
|
|
12
12
|
...theme.components?.M4LPropertyValue?.styleOverrides
|
|
13
13
|
}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { styled } from "@mui/material/styles";
|
|
3
|
-
import { a as ResizableBox } from "../../react-resizable.
|
|
3
|
+
import { a as ResizableBox } from "../../react-resizable.c60f3843.js";
|
|
4
4
|
const WrapperResizeable = styled(ResizableBox)(({ theme }) => ({
|
|
5
5
|
"&.react-resizable": {
|
|
6
6
|
position: "relative",
|
|
@@ -3,7 +3,7 @@ import { generateUtilityClasses, generateUtilityClass, Box } from "@mui/material
|
|
|
3
3
|
import { styled, alpha } from "@mui/material/styles";
|
|
4
4
|
import SimpleBarReact from "simplebar-react";
|
|
5
5
|
import { unstable_composeClasses } from "@mui/base";
|
|
6
|
-
import {
|
|
6
|
+
import { Q as componentName } from "../areas/constants.630a4f42.js";
|
|
7
7
|
const RootStyle = styled("div")(({ theme }) => ({
|
|
8
8
|
flexGrow: "1",
|
|
9
9
|
height: "100%",
|
|
@@ -3,15 +3,17 @@ import { styled, alpha } from "@mui/material/styles";
|
|
|
3
3
|
import { createContext, useState, useContext, useEffect } from "react";
|
|
4
4
|
import { generateUtilityClasses, ListItemText, styled as styled$1, ListItemButton, Collapse, Drawer as Drawer$1, useTheme } from "@mui/material";
|
|
5
5
|
import { unstable_composeClasses } from "@mui/base";
|
|
6
|
-
import {
|
|
7
|
-
import { g as getComponentUtilityClass } from "../../utils/index.
|
|
6
|
+
import { R as componentName, U as SIDEBAR_PREFIX, T as TEST_PROP_ID, V as MENU_COLLAPSED_CONTAINER_SIZE, W as MENU_COLLAPSED_SIZE } from "../areas/constants.630a4f42.js";
|
|
7
|
+
import { g as getComponentUtilityClass } from "../../utils/index.0660ee9c.js";
|
|
8
8
|
import { useEnvironment, useBase, BaseProvider } from "@m4l/core";
|
|
9
9
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
10
|
-
import { I as Icon, A as ArrowIcon
|
|
11
|
-
import { T as Typography } from "
|
|
10
|
+
import { I as Icon, A as ArrowIcon } from "../Icon/index.2e8ec5a1.js";
|
|
11
|
+
import { T as Typography } from "../mui_extended/Typography/index.2a1c68f8.js";
|
|
12
12
|
import clsx from "clsx";
|
|
13
13
|
import { useLocation } from "react-router-dom";
|
|
14
|
-
import {
|
|
14
|
+
import { F as FooterSidebar } from "../mui_extended/Button/index.a7dc6ef0.js";
|
|
15
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.87f4726c.js";
|
|
16
|
+
import { I as Image } from "../Image/index.0d32558e.js";
|
|
15
17
|
import { useResponsive } from "@m4l/styles";
|
|
16
18
|
const SideBarRoot = styled("div")(({ theme }) => ({
|
|
17
19
|
...theme.components?.M4LSideBar?.styleOverrides
|
|
@@ -607,32 +609,6 @@ const ContentGroups = () => {
|
|
|
607
609
|
}
|
|
608
610
|
);
|
|
609
611
|
};
|
|
610
|
-
const CollapseButtonRoot = styled$1("div")(() => ({
|
|
611
|
-
display: "flex"
|
|
612
|
-
}));
|
|
613
|
-
styled$1("div")(() => ({
|
|
614
|
-
display: "flex"
|
|
615
|
-
}));
|
|
616
|
-
function FooterSidebar(_props) {
|
|
617
|
-
const { classes, companyLogoNormalUrl } = useSideBar$1();
|
|
618
|
-
return /* @__PURE__ */ jsx(
|
|
619
|
-
CollapseButtonRoot,
|
|
620
|
-
{
|
|
621
|
-
className: classes.footer,
|
|
622
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId("footer") } : {},
|
|
623
|
-
children: /* @__PURE__ */ jsx("div", { className: classes.wrapperLogoFooter, children: /* @__PURE__ */ jsx("div", { className: classes.containerLogoButtonLogo, children: /* @__PURE__ */ jsx(
|
|
624
|
-
Image,
|
|
625
|
-
{
|
|
626
|
-
width: "192px",
|
|
627
|
-
height: "28px",
|
|
628
|
-
src: companyLogoNormalUrl || "",
|
|
629
|
-
alt: "logo"
|
|
630
|
-
},
|
|
631
|
-
"Logo"
|
|
632
|
-
) }) })
|
|
633
|
-
}
|
|
634
|
-
);
|
|
635
|
-
}
|
|
636
612
|
const ContentComponent = () => {
|
|
637
613
|
const { collapsed, onToggleCollapse, classes, onToggleOverlay, overlay } = useSideBar$1();
|
|
638
614
|
const handlerOnMouseEnter = () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { styled, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
3
3
|
import { unstable_composeClasses } from "@mui/base";
|
|
4
|
-
import {
|
|
4
|
+
import { X as componentName, Y as SPLITLAYOUT_PREFIX, T as TEST_PROP_ID } from "../areas/constants.630a4f42.js";
|
|
5
5
|
import clsx from "clsx";
|
|
6
6
|
import { S as SplitterLayout } from "../../react-splitter-layout.8b1655c8.js";
|
|
7
7
|
const SplitLayoutRoot = styled("div")(({ theme }) => ({
|
|
@@ -2,11 +2,11 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { styled, generateUtilityClasses } from "@mui/material";
|
|
3
3
|
import { ToastContainer as ToastContainer$1 } from "react-toastify";
|
|
4
4
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
|
-
import {
|
|
6
|
-
import { g as getComponentUtilityClass } from "../../utils/index.
|
|
5
|
+
import { Z as componentName } from "../areas/constants.630a4f42.js";
|
|
6
|
+
import { g as getComponentUtilityClass } from "../../utils/index.0660ee9c.js";
|
|
7
7
|
import { useEnvironment } from "@m4l/core";
|
|
8
8
|
import { useMemo } from "react";
|
|
9
|
-
import { I as Icon } from "../Icon/index.
|
|
9
|
+
import { I as Icon } from "../Icon/index.2e8ec5a1.js";
|
|
10
10
|
const ToastContainerRoot = styled("div")(({ theme }) => ({
|
|
11
11
|
...theme.components?.M4LToastContainer?.styleOverrides
|
|
12
12
|
}));
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
const componentName$m = "M4LIcon";
|
|
2
|
+
const TEST_PROP_ID = "data-testid";
|
|
3
|
+
const ICON_PREFIX = "Icon";
|
|
4
|
+
const AREAS_VIEWER_CLASS_NAME = "M4LAreasViewer";
|
|
5
|
+
const AREAS_ADMIN_CLASS_NAME = "M4LAreasAdmin";
|
|
6
|
+
const COMPONENT_CLASS_NAME$5 = "M4LGridLayout";
|
|
7
|
+
const DEFAULT_COLS = 12;
|
|
8
|
+
const DEFAULT_ROW_HEIGHT = 20;
|
|
9
|
+
const DEFAULT_CONTAINER_WIDTH = 1280;
|
|
10
|
+
const DEFAULT_CONTAINER_HEIGHT = 480;
|
|
11
|
+
const DEFAULT_RESPONSIVE_COLS = { lg: 12, md: 10, sm: 6, xs: 4, xxs: 1 };
|
|
12
|
+
const DEFAULT_RESPONSIVE_BREAKPOINTS = { lg: 1200, md: 996, sm: 768, xs: 480, xxs: 0 };
|
|
13
|
+
const DEFAULT_CONTAINER_PADDING = [10, 10];
|
|
14
|
+
const DEFAULT_MARGIN = [10, 10];
|
|
15
|
+
const DEFAULT_TRANSFORM_SCALE$1 = 1;
|
|
16
|
+
const DEFAULT_COLAPSED_HEIGHT = 35;
|
|
17
|
+
const THROTTLE_RESIZE_TIMEOUT = 200;
|
|
18
|
+
const componentName$l = "M4LFieldLabel";
|
|
19
|
+
const IMAGE_PREFIX = "Image";
|
|
20
|
+
const componentName$k = "M4LMenuActions";
|
|
21
|
+
const componentName$j = "M4LModal";
|
|
22
|
+
const componentName$i = "M4LRHFormProvider";
|
|
23
|
+
const RHFAUTOCOMPLETE_PREFIX = "RHFAutocomplete";
|
|
24
|
+
const RHFTAUTOCOMPLET_ROOT_TEST_ID = "RHFAutocomplete";
|
|
25
|
+
const componentName$h = "M4LCommonActions";
|
|
26
|
+
const COMMONACTIONS_PREFIX = "M4LCommonActions";
|
|
27
|
+
const componentName$g = "M4LPeriod";
|
|
28
|
+
const PERIOD_PREFIX = "M4LPeriod";
|
|
29
|
+
const componentName$f = "M4LScrollBar";
|
|
30
|
+
const componentName$e = "M4LMFLoader";
|
|
31
|
+
const componentName$d = "M4LoadingError";
|
|
32
|
+
const COMPONENT_CLASS_NAME$4 = "M4LFormatter";
|
|
33
|
+
const DATAGRID_PREFIX_NAME = "M4LDataGrid";
|
|
34
|
+
const DATAGRID_SELECT_COLUMN_KEY = "M4LDataGrid-CheckedColumn";
|
|
35
|
+
const DATAGRID_ACTIONS_COLUMN_KEY = "M4LDataGrid-ActionsColumn";
|
|
36
|
+
const componentName$c = "M4LDataGrid";
|
|
37
|
+
const DYNAMIC_FILTER_KEY_COMPONENT = "M4LDynamicFilter";
|
|
38
|
+
const ALL_FIELD = {
|
|
39
|
+
name: "all",
|
|
40
|
+
dictionaryId: "dynamic_filter.all_fields",
|
|
41
|
+
urlIcon: "",
|
|
42
|
+
type: "string",
|
|
43
|
+
multiple: true,
|
|
44
|
+
presence: "optional"
|
|
45
|
+
};
|
|
46
|
+
const STRING_OPERATORS = ["c", "nc"];
|
|
47
|
+
const NUMBER_OPERATORS = ["b", "e", "ne", "gt", "gte", "lt", "lte"];
|
|
48
|
+
const BOOLEAN_OPERATORS = ["e", "ne"];
|
|
49
|
+
const SELECT_OPERATORS = ["in", "nin"];
|
|
50
|
+
const DATE_TIME_OPERATORS = [
|
|
51
|
+
"b",
|
|
52
|
+
"e",
|
|
53
|
+
"ne",
|
|
54
|
+
"gt",
|
|
55
|
+
"gte",
|
|
56
|
+
"lt",
|
|
57
|
+
"lte"
|
|
58
|
+
];
|
|
59
|
+
const COMPONENT_CLASS_NAME$3 = "M4LMap";
|
|
60
|
+
const MAP_ZINDEX_DEFAULT = 0;
|
|
61
|
+
const MAP_ZINDEX_OVER_MAP$1 = 1100;
|
|
62
|
+
const TIME_DOUBLE_CLICK = 250;
|
|
63
|
+
const MARKER_COLOR_DEFAULT = "#1E96DC";
|
|
64
|
+
const LABEL_BK_COLOR_DEFAULT = "#1E96DC";
|
|
65
|
+
const LABEL_COLOR_DEFAULT = "#FFFFFF";
|
|
66
|
+
const GPS_TOOLS_POPUP_DEFAULT_POSITION = {
|
|
67
|
+
vertical: { top: 50, bottom: 50 },
|
|
68
|
+
horizontal: { right: 50, width: 380 }
|
|
69
|
+
};
|
|
70
|
+
const MESURE_POPUP_DEFAULT_POSITION = {
|
|
71
|
+
vertical: { top: 50, height: 250 },
|
|
72
|
+
horizontal: { right: 50, width: 300 }
|
|
73
|
+
};
|
|
74
|
+
const SVG_ICON_DEFAULT = `<svg viewBox="0 0 640 640" height="32" width="32" xmlns="http://www.w3.org/2000/svg">
|
|
75
|
+
<g>
|
|
76
|
+
<circle
|
|
77
|
+
cx="320"
|
|
78
|
+
cy="320"
|
|
79
|
+
r="280"
|
|
80
|
+
fill="#1E96DC"
|
|
81
|
+
/>
|
|
82
|
+
<text
|
|
83
|
+
x="320"
|
|
84
|
+
y="320"
|
|
85
|
+
font-size="320"
|
|
86
|
+
font-family="sans-serif"
|
|
87
|
+
fill="#FFFFFF"
|
|
88
|
+
text-anchor="middle"
|
|
89
|
+
alignment-baseline="central"
|
|
90
|
+
dominant-baseline="central"
|
|
91
|
+
>P</text>
|
|
92
|
+
</g>
|
|
93
|
+
</svg>`;
|
|
94
|
+
const COMPONENT_CLASS_NAME$2 = "M4LDraggableWindow";
|
|
95
|
+
const DEFAULT_TRANSFORM_SCALE = 1;
|
|
96
|
+
const COMPONENT_CLASS_NAME$1 = "M4LPopupsViewer";
|
|
97
|
+
const MAP_ZINDEX_OVER_MAP = 1100;
|
|
98
|
+
const componentName$b = "M4LPrintingSystem";
|
|
99
|
+
const INITIAL_FORM_VALUES = {
|
|
100
|
+
statusLoad: "ready",
|
|
101
|
+
reInits: 0,
|
|
102
|
+
value: "0",
|
|
103
|
+
measureTypeId: "distance",
|
|
104
|
+
magnitudFactor: {
|
|
105
|
+
id: "m_kilometers",
|
|
106
|
+
name: "Kilometers",
|
|
107
|
+
symbol: "k",
|
|
108
|
+
factor_x0: 0,
|
|
109
|
+
factor_x1: 1,
|
|
110
|
+
factor_x2: 0
|
|
111
|
+
},
|
|
112
|
+
unitArea: null,
|
|
113
|
+
statusEdition: "initial"
|
|
114
|
+
};
|
|
115
|
+
const STYLE_MEASURE_OPTIONS = {
|
|
116
|
+
strokeLineColor: "#1E96DC",
|
|
117
|
+
strokeLineWeight: 5,
|
|
118
|
+
markerHeight: 37,
|
|
119
|
+
markerWidth: 26,
|
|
120
|
+
labelMarkerHeight: 0,
|
|
121
|
+
labelMarkerWidth: 0,
|
|
122
|
+
labelMarkerAnchorY: 0,
|
|
123
|
+
labelMarkerAnchorX: 0
|
|
124
|
+
};
|
|
125
|
+
const COMPONENT_CLASS_NAME = "M4LGpsTools";
|
|
126
|
+
const COMPONENT_MAP_TOOLS_ID = "gps_tools";
|
|
127
|
+
const STYLE_OPACITIES = [
|
|
128
|
+
{
|
|
129
|
+
value: 0,
|
|
130
|
+
label: "0%"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
value: 0.1,
|
|
134
|
+
label: "10%"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
value: 0.2,
|
|
138
|
+
label: "20%"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
value: 0.3,
|
|
142
|
+
label: "30%"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
value: 0.4,
|
|
146
|
+
label: "40%"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
value: 0.5,
|
|
150
|
+
label: "50%"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
value: 1,
|
|
154
|
+
label: "100%"
|
|
155
|
+
}
|
|
156
|
+
];
|
|
157
|
+
const STYLE_WHEIGHTS = [
|
|
158
|
+
{
|
|
159
|
+
value: 0,
|
|
160
|
+
label: "0px"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
value: 1,
|
|
164
|
+
label: "1px"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
value: 2,
|
|
168
|
+
label: "2px"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
value: 3,
|
|
172
|
+
label: "3px"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
value: 4,
|
|
176
|
+
label: "4px"
|
|
177
|
+
}
|
|
178
|
+
];
|
|
179
|
+
const STYLE_PATTERNS = [
|
|
180
|
+
{
|
|
181
|
+
value: "",
|
|
182
|
+
label: "------"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
value: "4 1 2",
|
|
186
|
+
label: "-- - - --"
|
|
187
|
+
}
|
|
188
|
+
];
|
|
189
|
+
const NAVLINK_PREFIX = "Navlink";
|
|
190
|
+
const componentName$a = "M4LNoItemSelected";
|
|
191
|
+
const componentName$9 = "M4LPaperForm";
|
|
192
|
+
const componentName$8 = "M4LPDFViewer";
|
|
193
|
+
const componentName$7 = "M4LPropertyValue";
|
|
194
|
+
const COMPONENT_PREFIX = "m4l-property-value";
|
|
195
|
+
const TEST_PROPS_DATA = `${COMPONENT_PREFIX}-data`;
|
|
196
|
+
const componentName$6 = "M4LSplitLayout";
|
|
197
|
+
const SPLITLAYOUT_PREFIX = "M4LSplitLayout";
|
|
198
|
+
const componentName$5 = "M4LToastContainer";
|
|
199
|
+
const componentName$4 = "M4LSideBar";
|
|
200
|
+
const SIDEBAR_PREFIX = "M4LSideBar";
|
|
201
|
+
const MENU_COLLAPSED_SIZE = "14px";
|
|
202
|
+
const MENU_COLLAPSED_CONTAINER_SIZE = "15px";
|
|
203
|
+
const componentName$3 = "M4LAppBarCommercial";
|
|
204
|
+
const componentName$2 = "M4LHamburgerMenuCommercial";
|
|
205
|
+
const HAMBURGER_MENU_PREFIX = "M4LHamburgerMenu";
|
|
206
|
+
const componentName$1 = "M4LTopBar";
|
|
207
|
+
const componentName = "M4LSectionCommercial";
|
|
208
|
+
export {
|
|
209
|
+
COMPONENT_CLASS_NAME$3 as $,
|
|
210
|
+
ALL_FIELD as A,
|
|
211
|
+
BOOLEAN_OPERATORS as B,
|
|
212
|
+
COMPONENT_CLASS_NAME$2 as C,
|
|
213
|
+
DEFAULT_TRANSFORM_SCALE as D,
|
|
214
|
+
componentName$9 as E,
|
|
215
|
+
componentName$g as F,
|
|
216
|
+
componentName$b as G,
|
|
217
|
+
HAMBURGER_MENU_PREFIX as H,
|
|
218
|
+
ICON_PREFIX as I,
|
|
219
|
+
componentName$7 as J,
|
|
220
|
+
TEST_PROPS_DATA as K,
|
|
221
|
+
LABEL_BK_COLOR_DEFAULT as L,
|
|
222
|
+
MAP_ZINDEX_OVER_MAP$1 as M,
|
|
223
|
+
NUMBER_OPERATORS as N,
|
|
224
|
+
COMPONENT_PREFIX as O,
|
|
225
|
+
PERIOD_PREFIX as P,
|
|
226
|
+
componentName$f as Q,
|
|
227
|
+
componentName$4 as R,
|
|
228
|
+
STRING_OPERATORS as S,
|
|
229
|
+
TEST_PROP_ID as T,
|
|
230
|
+
SIDEBAR_PREFIX as U,
|
|
231
|
+
MENU_COLLAPSED_CONTAINER_SIZE as V,
|
|
232
|
+
MENU_COLLAPSED_SIZE as W,
|
|
233
|
+
componentName$6 as X,
|
|
234
|
+
SPLITLAYOUT_PREFIX as Y,
|
|
235
|
+
componentName$5 as Z,
|
|
236
|
+
COMPONENT_CLASS_NAME as _,
|
|
237
|
+
MAP_ZINDEX_OVER_MAP as a,
|
|
238
|
+
STYLE_MEASURE_OPTIONS as a0,
|
|
239
|
+
MAP_ZINDEX_DEFAULT as a1,
|
|
240
|
+
INITIAL_FORM_VALUES as a2,
|
|
241
|
+
GPS_TOOLS_POPUP_DEFAULT_POSITION as a3,
|
|
242
|
+
MESURE_POPUP_DEFAULT_POSITION as a4,
|
|
243
|
+
TIME_DOUBLE_CLICK as a5,
|
|
244
|
+
MARKER_COLOR_DEFAULT as a6,
|
|
245
|
+
SVG_ICON_DEFAULT as a7,
|
|
246
|
+
componentName$j as a8,
|
|
247
|
+
DATAGRID_SELECT_COLUMN_KEY as a9,
|
|
248
|
+
DATAGRID_ACTIONS_COLUMN_KEY as aa,
|
|
249
|
+
COMPONENT_MAP_TOOLS_ID as ab,
|
|
250
|
+
STYLE_OPACITIES as ac,
|
|
251
|
+
STYLE_WHEIGHTS as ad,
|
|
252
|
+
STYLE_PATTERNS as ae,
|
|
253
|
+
COMPONENT_CLASS_NAME$1 as af,
|
|
254
|
+
componentName$i as ag,
|
|
255
|
+
RHFAUTOCOMPLETE_PREFIX as ah,
|
|
256
|
+
COMMONACTIONS_PREFIX as ai,
|
|
257
|
+
AREAS_VIEWER_CLASS_NAME as aj,
|
|
258
|
+
AREAS_ADMIN_CLASS_NAME as ak,
|
|
259
|
+
componentName$k as al,
|
|
260
|
+
componentName$h as am,
|
|
261
|
+
RHFTAUTOCOMPLET_ROOT_TEST_ID as an,
|
|
262
|
+
COMPONENT_CLASS_NAME$4 as ao,
|
|
263
|
+
componentName$c as ap,
|
|
264
|
+
DATAGRID_PREFIX_NAME as aq,
|
|
265
|
+
componentName$3 as ar,
|
|
266
|
+
componentName$1 as as,
|
|
267
|
+
componentName as at,
|
|
268
|
+
DATE_TIME_OPERATORS as b,
|
|
269
|
+
SELECT_OPERATORS as c,
|
|
270
|
+
DYNAMIC_FILTER_KEY_COMPONENT as d,
|
|
271
|
+
componentName$l as e,
|
|
272
|
+
DEFAULT_ROW_HEIGHT as f,
|
|
273
|
+
COMPONENT_CLASS_NAME$5 as g,
|
|
274
|
+
DEFAULT_COLS as h,
|
|
275
|
+
DEFAULT_CONTAINER_PADDING as i,
|
|
276
|
+
DEFAULT_MARGIN as j,
|
|
277
|
+
DEFAULT_COLAPSED_HEIGHT as k,
|
|
278
|
+
DEFAULT_CONTAINER_WIDTH as l,
|
|
279
|
+
DEFAULT_CONTAINER_HEIGHT as m,
|
|
280
|
+
DEFAULT_TRANSFORM_SCALE$1 as n,
|
|
281
|
+
DEFAULT_RESPONSIVE_BREAKPOINTS as o,
|
|
282
|
+
DEFAULT_RESPONSIVE_COLS as p,
|
|
283
|
+
THROTTLE_RESIZE_TIMEOUT as q,
|
|
284
|
+
componentName$2 as r,
|
|
285
|
+
componentName$m as s,
|
|
286
|
+
LABEL_COLOR_DEFAULT as t,
|
|
287
|
+
IMAGE_PREFIX as u,
|
|
288
|
+
componentName$d as v,
|
|
289
|
+
componentName$e as w,
|
|
290
|
+
NAVLINK_PREFIX as x,
|
|
291
|
+
componentName$a as y,
|
|
292
|
+
componentName$8 as z
|
|
293
|
+
};
|
|
@@ -6,12 +6,12 @@ import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
|
|
|
6
6
|
import { useHostTools, useModuleDictionary, useNetwork, useModuleSkeleton, EmitEvents } from "@m4l/core";
|
|
7
7
|
import { devtools } from "zustand/middleware";
|
|
8
8
|
import { immer } from "zustand/middleware/immer";
|
|
9
|
-
import {
|
|
9
|
+
import { u as useAreasViewerUtilityClasses, b as useAreasAdminUtilityClasses } from "../../../../vendor.3eadfa16.js";
|
|
10
10
|
import { c as createDynamicMFStore } from "../DynamicMFParmsContext/index.37d1d444.js";
|
|
11
|
-
import { b as getAreasDictionary, c as DICCTIONARY } from "../../dictionary.
|
|
12
|
-
import { a as addLayoutItemToBreakPointIfNoExists, b as addLayoutItemToBreakPoints, c as cloneLayouts } from "../../../GridLayout/subcomponents/Responsive/index.
|
|
11
|
+
import { b as getAreasDictionary, c as DICCTIONARY } from "../../dictionary.19b25583.js";
|
|
12
|
+
import { a as addLayoutItemToBreakPointIfNoExists, b as addLayoutItemToBreakPoints, c as cloneLayouts } from "../../../GridLayout/subcomponents/Responsive/index.3c68f0cb.js";
|
|
13
13
|
import { debounce, cloneDeep } from "lodash";
|
|
14
|
-
import { q as isEqualLayouts } from "../../../GridLayout/index.
|
|
14
|
+
import { q as isEqualLayouts } from "../../../GridLayout/index.7156fbc9.js";
|
|
15
15
|
import { useNavigate } from "react-router-dom";
|
|
16
16
|
const PADDING_GRIDLAYOUT = 11;
|
|
17
17
|
const MARGIN_GRIDLAYOUT = 11;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getPagerComponentsDictionary } from "../
|
|
1
|
+
import { g as getPagerComponentsDictionary } from "../mui_extended/Pager/index.46aec921.js";
|
|
2
2
|
const AREAS_DICTIONARY_ID = "areas";
|
|
3
3
|
function getAreasComponentsDictionary() {
|
|
4
4
|
return [AREAS_DICTIONARY_ID];
|
|
@@ -57,15 +57,9 @@ const getModalDictionary = () => {
|
|
|
57
57
|
const getformAddEditDictionary = () => {
|
|
58
58
|
return "form_add_edit";
|
|
59
59
|
};
|
|
60
|
-
function getRHFColorPickerComponentsDictionary() {
|
|
61
|
-
return ["rhfcolorpicker"];
|
|
62
|
-
}
|
|
63
60
|
function getRHFAutocompleteComponentsDictionary() {
|
|
64
61
|
return ["rhf_autocomplete"];
|
|
65
62
|
}
|
|
66
|
-
function getRHFAutocompleteAsyncComponentsDictionary() {
|
|
67
|
-
return getRHFAutocompleteComponentsDictionary();
|
|
68
|
-
}
|
|
69
63
|
const dictionary$2 = {
|
|
70
64
|
LABEL_YEARS: "period.label_years",
|
|
71
65
|
LABEL_MONTHS: "period.label_months",
|
|
@@ -248,39 +242,37 @@ const defaultObjectLogDictionary = {
|
|
|
248
242
|
};
|
|
249
243
|
export {
|
|
250
244
|
AREAS_DICTIONARY_ID as A,
|
|
251
|
-
|
|
252
|
-
|
|
245
|
+
getObjectLogsComponentsDictionary as B,
|
|
246
|
+
defaultObjectLogDictionary as C,
|
|
253
247
|
DICCTIONARY as D,
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
getFormComponentsDictionary as G,
|
|
257
|
-
getformAddEditDictionary as H,
|
|
248
|
+
getFormComponentsDictionary as E,
|
|
249
|
+
getformAddEditDictionary as F,
|
|
258
250
|
LABEL_BOOLEAN_YES as L,
|
|
259
251
|
MAP_DICCTIONARY as M,
|
|
260
252
|
dictionary$1 as a,
|
|
261
253
|
getAreasDictionary as b,
|
|
262
254
|
DICCTIONARY$1 as c,
|
|
263
255
|
dictionary$2 as d,
|
|
264
|
-
|
|
265
|
-
|
|
256
|
+
getRHFAutocompleteComponentsDictionary as e,
|
|
257
|
+
dictionary$3 as f,
|
|
266
258
|
getDynamicFilterDictionary as g,
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
259
|
+
LABEL_BOOLEAN_NO as h,
|
|
260
|
+
LABEL_BOOLEAN_TRUE as i,
|
|
261
|
+
LABEL_BOOLEAN_FALSE as j,
|
|
262
|
+
dictionary as k,
|
|
263
|
+
getDataGridComponentsDictionary as l,
|
|
264
|
+
getAreasComponentsDictionary as m,
|
|
265
|
+
LABEL_FILTER_BUTTON as n,
|
|
266
|
+
getPeriodComponetsDictionary as o,
|
|
267
|
+
getFormattersComponentsDictionary as p,
|
|
268
|
+
getDynamicFilterComponentsDictionary as q,
|
|
269
|
+
getCommonActionsDictionary as r,
|
|
270
|
+
defaultCommonActionsDictionary as s,
|
|
271
|
+
getModalDictionary as t,
|
|
272
|
+
getModalDialogComponentsDictionary as u,
|
|
273
|
+
defaultModalDialogDictionary as v,
|
|
274
|
+
getLoadingErrorComponentsDictionary as w,
|
|
275
|
+
getMFLoaderComponentsDictionary as x,
|
|
276
|
+
getNoItemSelectedComponentsDictionary as y,
|
|
277
|
+
defaultNoItemSelectedDictionary as z
|
|
286
278
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
2
|
import { useStore } from "zustand";
|
|
3
|
-
import { A as AreasContext } from "../../contexts/AreasContext/index.
|
|
3
|
+
import { A as AreasContext } from "../../contexts/AreasContext/index.81b748ec.js";
|
|
4
4
|
function useAreasStore(selector, equalityFn) {
|
|
5
5
|
const context = useContext(AreasContext);
|
|
6
6
|
if (!context)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useFormContext, useController } from "react-hook-form";
|
|
3
|
+
import { H as HelperText } from "../../HelperText/index.651a9b4b.js";
|
|
4
|
+
function HelperError(props) {
|
|
5
|
+
const { name } = props;
|
|
6
|
+
const { control } = useFormContext();
|
|
7
|
+
const { fieldState } = useController({
|
|
8
|
+
name,
|
|
9
|
+
control,
|
|
10
|
+
rules: { required: true }
|
|
11
|
+
});
|
|
12
|
+
if (fieldState?.error?.message) {
|
|
13
|
+
return /* @__PURE__ */ jsx(HelperText, { variant: "error", message: fieldState?.error?.message });
|
|
14
|
+
}
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
HelperError as H
|
|
19
|
+
};
|