@m4l/components 0.2.2 → 0.2.3
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.37803642.js → index.3f67361e.js} +1 -1
- package/components/AppBar/{index.d17827eb.js → index.f78b52c7.js} +1 -1
- package/components/CommonActions/components/ActionCancel/{index.6aa59730.js → index.5916fb86.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.e6ac3a19.js → index.dbd002ab.js} +4 -4
- package/components/CommonActions/components/ActionFormIntro/{index.ebadee33.js → index.c7acf718.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.33acdebb.js → index.789d82ed.js} +2 -2
- package/components/CommonActions/components/Actions/{index.f358ae72.js → index.ccf731c1.js} +1 -1
- package/components/DataGrid/{index.e93a1a31.js → index.71fae988.js} +6 -6
- package/components/DataGrid/subcomponents/Actions/{index.bcf7a8d7.js → index.ea3fb0b2.js} +9 -9
- package/components/DraggableWindow/{index.ddc7327b.js → index.8f423ed7.js} +1 -1
- package/components/DynamicFilter/{index.6663cc83.js → index.69c2e381.js} +11 -11
- package/components/GridLayout/{index.c26989d8.js → index.4a245d9e.js} +2 -2
- package/components/GridLayout/subcomponents/Griditem/{index.da0a3c47.js → index.ea745285.js} +3 -3
- package/components/GridLayout/subcomponents/Responsive/{index.2e641db2.js → index.edb59c22.js} +1 -1
- package/components/Icon/{index.6db034b5.js → index.f1161f32.js} +1 -1
- package/components/Image/{index.2a2e0b27.js → index.9799dfc0.js} +1 -1
- package/components/LanguagePopover/{index.ff7c862e.js → index.b8fd6ccc.js} +2 -2
- package/components/LinearProgressIndeterminate/{index.7f4ed9b7.js → index.c46da124.js} +1 -1
- package/components/LoadingError/{index.0ac9e74d.js → index.19b6eeb6.js} +3 -3
- package/components/MFLoader/{index.cd087354.js → index.56cd1993.js} +1 -1
- package/components/ModalDialog/{index.8c4fde10.js → index.ec55087e.js} +4 -4
- package/components/NoItemSelected/{index.afc12ed9.js → index.8a2a13f8.js} +1 -1
- package/components/ObjectLogs/{index.cb303905.js → index.7150b3a9.js} +5 -5
- package/components/Page/{index.190e2356.js → index.49d18c85.js} +1 -1
- package/components/PaperForm/{index.7a206d69.js → index.637c8cb4.js} +1 -1
- package/components/Period/{index.906f1ce2.js → index.c964884f.js} +2 -2
- package/components/PrintingSystem/{index.bbf52442.js → index.d1fd7818.js} +13 -13
- package/components/PrintingSystem/subcomponents/BodyNode/{index.ee81edc5.js → index.f6410daa.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.b56666cf.js → index.6b30abe0.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.ca3332b1.js → index.dcac3bc0.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.932c3e33.js → index.dd21921e.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.16748040.js → index.eb5ebe06.js} +1 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.0ddbbbad.js → index.48e8769c.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.efd9af2f.js → index.ccec72dc.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.75ed9752.js → index.807e0343.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index.68cac21a.js → index.622df623.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.91ba514f.js → index.f06ac3d5.js} +1 -1
- package/components/PropertyValue/{index.a36c1223.js → index.8fcce0c2.js} +1 -1
- package/components/Resizeable/{index.383eb1aa.js → index.8c53c1fa.js} +1 -1
- package/components/SideBar/{index.7e4a79a6.js → index.83ee1067.js} +4 -4
- package/components/areas/components/AreasAdmin/{index.74532c2a.js → index.90da0626.js} +10 -10
- package/components/areas/components/AreasViewer/{index.3cd1a452.js → index.eb166eca.js} +15 -15
- package/components/areas/contexts/AreasContext/{index.55981647.js → index.1c3f87a7.js} +4 -4
- package/components/areas/hooks/useAreas/{index.5cbbe91c.js → index.58ac16d2.js} +1 -1
- package/components/formatters/BooleanFormatter/{index.5379222a.js → index.fffdef5e.js} +2 -2
- package/components/formatters/{index.d0a0800d.js → index.7ee9ae5d.js} +1 -1
- package/components/hook-form/RHFAutocomplete/{index.09ff3d84.js → index.31e92edb.js} +2 -2
- package/components/hook-form/RHFAutocompleteAsync/{index.54b4dca3.js → index.6c5648f7.js} +1 -1
- package/components/hook-form/RHFColorPicker/index.259b6f38.js +61 -0
- package/components/hook-form/RHFDateTime/{index.2b76899e.js → index.a5ba00d5.js} +1 -1
- package/components/hook-form/RHFPeriod/{index.d6c8587a.js → index.fd29d20c.js} +1 -1
- package/components/hook-form/RHFTextField/{index.f546c18a.js → index.22203742.js} +2 -2
- package/components/hook-form/RHFUpload/{index.a5621247.js → index.aef0f459.js} +2 -2
- package/components/maps/{GpsTools.34a27c0a.js → components/GpsTools/index.ed49dc90.js} +28 -27
- package/components/maps/{Map.9fc17398.js → components/Map/index.9fcc381d.js} +4 -4
- package/components/modal/{WindowBase.38d4b8e7.js → WindowBase.2f29424e.js} +3 -3
- package/components/modal/{WindowConfirm.cd776fe5.js → WindowConfirm.1d1d9cd2.js} +6 -6
- package/components/mui_extended/Accordion/{index.5b4b2075.js → index.c8c7d392.js} +3 -3
- package/components/mui_extended/Button/{index.fc5132fa.js → index.bd3371a3.js} +1 -1
- package/components/mui_extended/IconButton/{index.df52ae90.js → index.dd9f297b.js} +1 -1
- package/components/mui_extended/MenuActions/{index.04d87c36.js → index.46c5f7c7.js} +2 -2
- package/components/mui_extended/Pager/{index.c6990cd4.js → index.e4e66ac8.js} +1 -1
- package/components/mui_extended/Tab/{index.53203047.js → index.a85b2dab.js} +1 -1
- package/components/mui_extended/ToggleButton/{index.4b7b7df0.js → index.b030c4ec.js} +1 -1
- package/components/mui_extended/ToggleIconButton/{index.e430bed4.js → index.e0854091.js} +1 -1
- package/contexts/ModalContext/{index.aa3bd23f.js → index.436c2938.js} +1 -1
- package/hooks/useFormAddEdit/{index.59c74cbf.js → index.16083a43.js} +2 -2
- package/hooks/useModal/{index.b4b84d5d.js → index.05d1821e.js} +1 -1
- package/hooks/useTab/{index.6ab00d5a.js → index.19c8a409.js} +1 -1
- package/index.js +75 -76
- package/package.json +1 -1
- package/{react-draggable.cdce362f.js → react-draggable.e4725f3a.js} +1 -1
- package/{react-resizable.806822ee.js → react-resizable.c07d63fb.js} +2 -2
- package/utils/{index.b22c4c1a.js → index.6469f148.js} +0 -32
- package/vendor.384f1182.js +110 -0
- package/components/maps/index.7057e217.js +0 -1
- package/node_modules.f907e6dd.js +0 -4736
- package/vendor.caaaf054.js +0 -168
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
|
-
import { r as react_resizable_css } from "../../../../react-resizable.
|
|
2
|
+
import { r as react_resizable_css } from "../../../../react-resizable.c07d63fb.js";
|
|
3
3
|
import { generateUtilityClasses, Skeleton, Dialog } from "@mui/material";
|
|
4
4
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
|
-
import { g as getComponentUtilityClass } from "../../../../utils/index.
|
|
5
|
+
import { g as getComponentUtilityClass } from "../../../../utils/index.6469f148.js";
|
|
6
6
|
import { a as AREAS_VIEWER_CLASS_NAME } from "../../constants.66529246.js";
|
|
7
7
|
import { shallow } from "zustand/shallow";
|
|
8
8
|
import React__default, { useMemo, useEffect } from "react";
|
|
9
9
|
import clsx from "clsx";
|
|
10
|
-
import { u as useAreasStore } from "../../hooks/useAreas/index.
|
|
10
|
+
import { u as useAreasStore } from "../../hooks/useAreas/index.58ac16d2.js";
|
|
11
11
|
import { useModuleDictionary, useEnvironment, useModuleSkeleton } from "@m4l/core";
|
|
12
|
-
import { a as MemonizedMenuActions } from "../../../mui_extended/MenuActions/index.
|
|
12
|
+
import { a as MemonizedMenuActions } from "../../../mui_extended/MenuActions/index.46c5f7c7.js";
|
|
13
13
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
14
14
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
15
15
|
import { I as ICONS } from "../../icons.8266ccc8.js";
|
|
16
16
|
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.08cfc4c9.js";
|
|
17
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index.
|
|
18
|
-
import { L as LinearProgressIndeterminate } from "../../../LinearProgressIndeterminate/index.
|
|
19
|
-
import { I as Icon } from "../../../Icon/index.
|
|
17
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.dd9f297b.js";
|
|
18
|
+
import { L as LinearProgressIndeterminate } from "../../../LinearProgressIndeterminate/index.c46da124.js";
|
|
19
|
+
import { I as Icon } from "../../../Icon/index.f1161f32.js";
|
|
20
20
|
import { T as Typography } from "../../../mui_extended/Typography/index.379dd374.js";
|
|
21
|
-
import { M as MFLoader } from "../../../MFLoader/index.
|
|
21
|
+
import { M as MFLoader } from "../../../MFLoader/index.56cd1993.js";
|
|
22
22
|
import { W as WindowToolsMFProvider } from "../../contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
23
23
|
import { D as DynamicMFParmsProvider } from "../../contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
24
24
|
import { L as LinearProgress } from "../../../mui_extended/LinearProgress/index.c92b9ba9.js";
|
|
25
25
|
import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.86c553a9.js";
|
|
26
|
-
import { g as getNameDataTestId } from "../../../../vendor.
|
|
27
|
-
import { R as RESPONSIVE_COLAPSED_HEIGHTS, a as RESPONSIVE_ROW_HEIGHTS, M as MARGIN_GRIDLAYOUT, P as PADDING_GRIDLAYOUT } from "../../contexts/AreasContext/index.
|
|
28
|
-
import { S as SizeProvider } from "../../../GridLayout/index.
|
|
29
|
-
import { R as Responsive } from "../../../GridLayout/subcomponents/Responsive/index.
|
|
26
|
+
import { g as getNameDataTestId } from "../../../../vendor.384f1182.js";
|
|
27
|
+
import { R as RESPONSIVE_COLAPSED_HEIGHTS, a as RESPONSIVE_ROW_HEIGHTS, M as MARGIN_GRIDLAYOUT, P as PADDING_GRIDLAYOUT } from "../../contexts/AreasContext/index.1c3f87a7.js";
|
|
28
|
+
import { S as SizeProvider } from "../../../GridLayout/index.4a245d9e.js";
|
|
29
|
+
import { R as Responsive } from "../../../GridLayout/subcomponents/Responsive/index.edb59c22.js";
|
|
30
30
|
import { useLocation } from "react-router-dom";
|
|
31
|
-
import { L as LoadingError } from "../../../LoadingError/index.
|
|
32
|
-
import { c as cjs } from "../../../../react-draggable.
|
|
33
|
-
import { R as ResizeableWindow } from "../../../Resizeable/index.
|
|
31
|
+
import { L as LoadingError } from "../../../LoadingError/index.19b6eeb6.js";
|
|
32
|
+
import { c as cjs } from "../../../../react-draggable.e4725f3a.js";
|
|
33
|
+
import { R as ResizeableWindow } from "../../../Resizeable/index.8c53c1fa.js";
|
|
34
34
|
const areasViewerClasses = generateUtilityClasses(AREAS_VIEWER_CLASS_NAME, [
|
|
35
35
|
"root",
|
|
36
36
|
"areaRoot",
|
|
@@ -5,13 +5,13 @@ import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
|
|
|
5
5
|
import { useHostTools, useModuleDictionary, useNetwork, useModuleSkeleton, EmitEvents } from "@m4l/core";
|
|
6
6
|
import { devtools } from "zustand/middleware";
|
|
7
7
|
import { immer } from "zustand/middleware/immer";
|
|
8
|
-
import { u as useAreasViewerUtilityClasses } from "../../components/AreasViewer/index.
|
|
9
|
-
import { u as useAreasAdminUtilityClasses } from "../../components/AreasAdmin/index.
|
|
8
|
+
import { u as useAreasViewerUtilityClasses } from "../../components/AreasViewer/index.eb166eca.js";
|
|
9
|
+
import { u as useAreasAdminUtilityClasses } from "../../components/AreasAdmin/index.90da0626.js";
|
|
10
10
|
import { c as createDynamicMFStore } from "../DynamicMFParmsContext/index.1607c78e.js";
|
|
11
11
|
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.08cfc4c9.js";
|
|
12
|
-
import { a as addLayoutItemToBreakPointIfNoExists, b as addLayoutItemToBreakPoints, c as cloneLayouts } from "../../../GridLayout/subcomponents/Responsive/index.
|
|
12
|
+
import { a as addLayoutItemToBreakPointIfNoExists, b as addLayoutItemToBreakPoints, c as cloneLayouts } from "../../../GridLayout/subcomponents/Responsive/index.edb59c22.js";
|
|
13
13
|
import { debounce, cloneDeep } from "lodash";
|
|
14
|
-
import { A as isEqualLayouts } from "../../../GridLayout/index.
|
|
14
|
+
import { A as isEqualLayouts } from "../../../GridLayout/index.4a245d9e.js";
|
|
15
15
|
import { useNavigate } from "react-router-dom";
|
|
16
16
|
import { jsx } from "react/jsx-runtime";
|
|
17
17
|
const PADDING_GRIDLAYOUT = 4;
|
|
@@ -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.1c3f87a7.js";
|
|
4
4
|
function useAreasStore(selector, equalityFn) {
|
|
5
5
|
const context = useContext(AreasContext);
|
|
6
6
|
if (!context)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
2
|
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
3
|
-
import { I as Icon } from "../../Icon/index.
|
|
3
|
+
import { I as Icon } from "../../Icon/index.f1161f32.js";
|
|
4
4
|
import { W as WrapperComponent } from "../../WrapperComponent/index.5e872594.js";
|
|
5
|
-
import { F as FormatterRoot, f as formatterClasses } from "../index.
|
|
5
|
+
import { F as FormatterRoot, f as formatterClasses } from "../index.7ee9ae5d.js";
|
|
6
6
|
import clsx from "clsx";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
const BOOLEAN_FORMATTER_DICTIONARY_KEY = `boolean_formatter`;
|
|
@@ -3,7 +3,7 @@ import "@mui/base";
|
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { W as WrapperComponent } from "../WrapperComponent/index.5e872594.js";
|
|
5
5
|
import { useModuleDictionary } from "@m4l/core";
|
|
6
|
-
import { a as BOOLEAN_FORMATTER_DICTIONARY_KEY } from "./BooleanFormatter/index.
|
|
6
|
+
import { a as BOOLEAN_FORMATTER_DICTIONARY_KEY } from "./BooleanFormatter/index.fffdef5e.js";
|
|
7
7
|
const COMPONENT_CLASS_NAME = "M4LFormatter";
|
|
8
8
|
const formatterClasses = generateUtilityClasses(COMPONENT_CLASS_NAME, [
|
|
9
9
|
"root",
|
|
@@ -2,7 +2,7 @@ import { useModuleDictionary, useModuleSkeleton, useEnvironment } from "@m4l/cor
|
|
|
2
2
|
import { useFormContext, Controller } from "react-hook-form";
|
|
3
3
|
import { Skeleton, generateUtilityClasses, generateUtilityClass, useTheme, Autocomplete, Popper, TextField, CircularProgress } from "@mui/material";
|
|
4
4
|
import { styled } from "@mui/material/styles";
|
|
5
|
-
import { I as Image } from "../../Image/index.
|
|
5
|
+
import { I as Image } from "../../Image/index.9799dfc0.js";
|
|
6
6
|
import { useMemo, useRef, useState, useEffect } from "react";
|
|
7
7
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
8
8
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
@@ -10,7 +10,7 @@ import { unstable_composeClasses } from "@mui/base";
|
|
|
10
10
|
import { T as Typography } from "../../mui_extended/Typography/index.379dd374.js";
|
|
11
11
|
import { H as HelperText } from "../../HelperText/index.7d2afdb3.js";
|
|
12
12
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
13
|
-
import { I as IconButton } from "../../mui_extended/IconButton/index.
|
|
13
|
+
import { I as IconButton } from "../../mui_extended/IconButton/index.dd9f297b.js";
|
|
14
14
|
const AutocompleteRoot = styled("div")(({
|
|
15
15
|
theme
|
|
16
16
|
}) => ({
|
|
@@ -6,7 +6,7 @@ import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
|
6
6
|
import { unstable_composeClasses } from "@mui/base";
|
|
7
7
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
import { R as RHFAutocomplete, g as getRHFAutocompleteComponentsDictionary } from "../RHFAutocomplete/index.
|
|
9
|
+
import { R as RHFAutocomplete, g as getRHFAutocompleteComponentsDictionary } from "../RHFAutocomplete/index.31e92edb.js";
|
|
10
10
|
styled("div")(() => ({
|
|
11
11
|
display: "flex",
|
|
12
12
|
width: "100%",
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { useState } from "react";
|
|
2
|
+
import { useFormContext, Controller } from "react-hook-form";
|
|
3
|
+
import { Popover, Box, Button } from "@mui/material";
|
|
4
|
+
import { HexColorPicker } from "react-colorful";
|
|
5
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
6
|
+
const RHFColorPicker = (props) => {
|
|
7
|
+
const {
|
|
8
|
+
name
|
|
9
|
+
} = props;
|
|
10
|
+
const {
|
|
11
|
+
control
|
|
12
|
+
} = useFormContext();
|
|
13
|
+
const [anchorEl, setAnchorEl] = useState(null);
|
|
14
|
+
const handleApprove = () => {
|
|
15
|
+
setAnchorEl(null);
|
|
16
|
+
};
|
|
17
|
+
return /* @__PURE__ */ jsx(Controller, {
|
|
18
|
+
name,
|
|
19
|
+
control,
|
|
20
|
+
defaultValue: "",
|
|
21
|
+
render: ({
|
|
22
|
+
field
|
|
23
|
+
}) => /* @__PURE__ */ jsxs(Fragment, {
|
|
24
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
25
|
+
onClick: (event) => setAnchorEl(event.currentTarget),
|
|
26
|
+
style: {
|
|
27
|
+
backgroundColor: field.value,
|
|
28
|
+
width: "20px",
|
|
29
|
+
height: "20px",
|
|
30
|
+
cursor: "pointer"
|
|
31
|
+
}
|
|
32
|
+
}), /* @__PURE__ */ jsx(Popover, {
|
|
33
|
+
open: Boolean(anchorEl),
|
|
34
|
+
anchorEl,
|
|
35
|
+
onClose: () => setAnchorEl(null),
|
|
36
|
+
anchorOrigin: {
|
|
37
|
+
vertical: "bottom",
|
|
38
|
+
horizontal: "left"
|
|
39
|
+
},
|
|
40
|
+
transformOrigin: {
|
|
41
|
+
vertical: "top",
|
|
42
|
+
horizontal: "left"
|
|
43
|
+
},
|
|
44
|
+
children: /* @__PURE__ */ jsxs(Box, {
|
|
45
|
+
p: 2,
|
|
46
|
+
children: [/* @__PURE__ */ jsx(HexColorPicker, {
|
|
47
|
+
...field,
|
|
48
|
+
color: field.value
|
|
49
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
50
|
+
variant: "contained",
|
|
51
|
+
onClick: handleApprove,
|
|
52
|
+
children: "Aprobar"
|
|
53
|
+
})]
|
|
54
|
+
})
|
|
55
|
+
})]
|
|
56
|
+
})
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
export {
|
|
60
|
+
RHFColorPicker as R
|
|
61
|
+
};
|
|
@@ -11,7 +11,7 @@ import clsx from "clsx";
|
|
|
11
11
|
import { H as HelperText } from "../../HelperText/index.7d2afdb3.js";
|
|
12
12
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
13
13
|
import { T as Typography } from "../../mui_extended/Typography/index.379dd374.js";
|
|
14
|
-
import { I as Icon } from "../../Icon/index.
|
|
14
|
+
import { I as Icon } from "../../Icon/index.f1161f32.js";
|
|
15
15
|
const SKTRHFWrapperTextField = styled("div")(({
|
|
16
16
|
theme
|
|
17
17
|
}) => ({
|
|
@@ -3,7 +3,7 @@ import { useFormContext, Controller } from "react-hook-form";
|
|
|
3
3
|
import { H as HelperText } from "../../HelperText/index.7d2afdb3.js";
|
|
4
4
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { P as Period } from "../../Period/index.
|
|
6
|
+
import { P as Period } from "../../Period/index.c964884f.js";
|
|
7
7
|
const RHFPeriodRoot = styled("div")(({
|
|
8
8
|
theme
|
|
9
9
|
}) => ({
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { useModuleSkeleton, useEnvironment } from "@m4l/core";
|
|
2
2
|
import { styled, Skeleton, generateUtilityClasses, TextField, InputAdornment, generateUtilityClass } from "@mui/material";
|
|
3
3
|
import { forwardRef, useState, useEffect } from "react";
|
|
4
|
-
import { I as IconButton } from "../../mui_extended/IconButton/index.
|
|
4
|
+
import { I as IconButton } from "../../mui_extended/IconButton/index.dd9f297b.js";
|
|
5
5
|
import { useFormContext, Controller } from "react-hook-form";
|
|
6
6
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
7
7
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
8
8
|
import { styled as styled$1 } from "@mui/material/styles";
|
|
9
9
|
import { unstable_composeClasses } from "@mui/base";
|
|
10
|
-
import { g as getComponentUtilityClass } from "../../../utils/index.
|
|
10
|
+
import { g as getComponentUtilityClass } from "../../../utils/index.6469f148.js";
|
|
11
11
|
import { T as Typography } from "../../mui_extended/Typography/index.379dd374.js";
|
|
12
12
|
import { H as HelperText } from "../../HelperText/index.7d2afdb3.js";
|
|
13
13
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
@@ -2,7 +2,7 @@ import { useCallback } from "react";
|
|
|
2
2
|
import { useFormContext, Controller } from "react-hook-form";
|
|
3
3
|
import isString from "lodash/isString";
|
|
4
4
|
import { useDropzone } from "react-dropzone";
|
|
5
|
-
import { I as Image } from "../../Image/index.
|
|
5
|
+
import { I as Image } from "../../Image/index.9799dfc0.js";
|
|
6
6
|
import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
7
7
|
import { styled } from "@mui/material/styles";
|
|
8
8
|
import { Skeleton, generateUtilityClasses, generateUtilityClass, styled as styled$1 } from "@mui/material";
|
|
@@ -10,7 +10,7 @@ import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
|
10
10
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
11
11
|
import { unstable_composeClasses } from "@mui/base";
|
|
12
12
|
import { T as Typography } from "../../mui_extended/Typography/index.379dd374.js";
|
|
13
|
-
import { B as Button } from "../../mui_extended/Button/index.
|
|
13
|
+
import { B as Button } from "../../mui_extended/Button/index.bd3371a3.js";
|
|
14
14
|
import { H as HelperText } from "../../HelperText/index.7d2afdb3.js";
|
|
15
15
|
const UploadImageRoot = styled("div")(({
|
|
16
16
|
theme
|
|
@@ -5,45 +5,45 @@ import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
|
|
|
5
5
|
import { useModuleDictionary, useModuleSkeleton, useEnvironment, useNetwork, useModulePrivileges, useHostTools, usePaginate } from "@m4l/core";
|
|
6
6
|
import { devtools } from "zustand/middleware";
|
|
7
7
|
import { immer } from "zustand/middleware/immer";
|
|
8
|
-
import {
|
|
8
|
+
import { enableMapSet } from "immer";
|
|
9
9
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
10
|
-
import { D as DynamicFilter } from "
|
|
11
|
-
import { S as SelectCellFormatter } from "
|
|
12
|
-
import { e as columnDateFormatter, c as DataGrid } from "
|
|
13
|
-
import { u as useMapToolsStore, a as useMapStore, m as mapClasses, M as MAP_ZINDEX_DEFAULT, b as MAP_ZINDEX_OVER_MAP } from "
|
|
14
|
-
import { u as useModal } from "
|
|
15
|
-
import { W as WindowConfirm } from "
|
|
10
|
+
import { D as DynamicFilter } from "../../../DynamicFilter/index.69c2e381.js";
|
|
11
|
+
import { S as SelectCellFormatter } from "../../../../react-data-grid.c5377916.js";
|
|
12
|
+
import { e as columnDateFormatter, c as DataGrid } from "../../../DataGrid/index.71fae988.js";
|
|
13
|
+
import { u as useMapToolsStore, a as useMapStore, m as mapClasses, M as MAP_ZINDEX_DEFAULT, b as MAP_ZINDEX_OVER_MAP } from "../Map/index.9fcc381d.js";
|
|
14
|
+
import { u as useModal } from "../../../../hooks/useModal/index.05d1821e.js";
|
|
15
|
+
import { W as WindowConfirm } from "../../../modal/WindowConfirm.1d1d9cd2.js";
|
|
16
16
|
import { generateUtilityClasses } from "@mui/material";
|
|
17
17
|
import "@mui/base";
|
|
18
|
-
import { S as Stack } from "
|
|
19
|
-
import { B as Button } from "
|
|
18
|
+
import { S as Stack } from "../../../mui_extended/Stack/index.0e53197c.js";
|
|
19
|
+
import { B as Button } from "../../../mui_extended/Button/index.bd3371a3.js";
|
|
20
20
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
21
|
-
import { H as HelperError } from "
|
|
22
|
-
import { A as Actions } from "
|
|
23
|
-
import { A as ActionFormIntro } from "
|
|
21
|
+
import { H as HelperError } from "../../../hook-form/HelperError/index.66bbcac3.js";
|
|
22
|
+
import { A as Actions } from "../../../CommonActions/components/Actions/index.ccf731c1.js";
|
|
23
|
+
import { A as ActionFormIntro } from "../../../CommonActions/components/ActionFormIntro/index.c7acf718.js";
|
|
24
24
|
import { useMap, Polyline, Polygon, Popup, Circle } from "react-leaflet";
|
|
25
|
-
import { u as useFormReadyForUpdate } from "
|
|
25
|
+
import { u as useFormReadyForUpdate } from "../../../../hooks/useFormReadyForUpdate/index.f60f500e.js";
|
|
26
26
|
import * as L from "leaflet";
|
|
27
27
|
import L__default from "leaflet";
|
|
28
|
-
import { u as useTab } from "
|
|
29
|
-
import { P as PaperForm } from "
|
|
30
|
-
import { R as RHFAutocomplete } from "
|
|
31
|
-
import { R as RHFTextField } from "
|
|
32
|
-
import { P as PropertyValue } from "
|
|
33
|
-
import { R as RHFColorPicker } from "
|
|
28
|
+
import { u as useTab } from "../../../../hooks/useTab/index.19c8a409.js";
|
|
29
|
+
import { P as PaperForm } from "../../../PaperForm/index.637c8cb4.js";
|
|
30
|
+
import { R as RHFAutocomplete } from "../../../hook-form/RHFAutocomplete/index.31e92edb.js";
|
|
31
|
+
import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.22203742.js";
|
|
32
|
+
import { P as PropertyValue } from "../../../PropertyValue/index.8fcce0c2.js";
|
|
33
|
+
import { R as RHFColorPicker } from "../../../hook-form/RHFColorPicker/index.259b6f38.js";
|
|
34
34
|
import clsx from "clsx";
|
|
35
|
-
import { T as Tabs, a as Tab, b as TabContent, c as TabProvider } from "
|
|
36
|
-
import { T as Tooltip } from "
|
|
35
|
+
import { T as Tabs, a as Tab, b as TabContent, c as TabProvider } from "../../../mui_extended/Tab/index.a85b2dab.js";
|
|
36
|
+
import { T as Tooltip } from "../../../mui_extended/Tooltip/index.24a2bc3f.js";
|
|
37
37
|
import * as Yup from "yup";
|
|
38
|
-
import { u as useFormAddEdit } from "
|
|
39
|
-
import { R as RHFormProvider } from "
|
|
40
|
-
import { R as RHFAutocompleteAsync } from "
|
|
38
|
+
import { u as useFormAddEdit } from "../../../../hooks/useFormAddEdit/index.16083a43.js";
|
|
39
|
+
import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.7769076a.js";
|
|
40
|
+
import { R as RHFAutocompleteAsync } from "../../../hook-form/RHFAutocompleteAsync/index.6c5648f7.js";
|
|
41
41
|
import "leaflet-polylinedecorator";
|
|
42
42
|
import "@geoman-io/leaflet-geoman-free/dist/leaflet-geoman.css";
|
|
43
43
|
import "@geoman-io/leaflet-geoman-free";
|
|
44
44
|
import { styled } from "@mui/material/styles";
|
|
45
45
|
import { createPortal } from "react-dom";
|
|
46
|
-
|
|
46
|
+
enableMapSet();
|
|
47
47
|
const createMapToolsStore = (initProps) => {
|
|
48
48
|
const startProps = {
|
|
49
49
|
currentTabTool: "measure",
|
|
@@ -1935,6 +1935,7 @@ function useMeasure() {
|
|
|
1935
1935
|
}, []);
|
|
1936
1936
|
return { statusEdition, magnitudFactor, value };
|
|
1937
1937
|
}
|
|
1938
|
+
const DevTool = process.env.NODE_ENV === "development" ? require("@hookform/devtools").DevTool : () => null;
|
|
1938
1939
|
function MeasureData() {
|
|
1939
1940
|
const {
|
|
1940
1941
|
getLabel
|
|
@@ -1973,9 +1974,9 @@ function MeasureData() {
|
|
|
1973
1974
|
className: mapToolsClasses.toolMeasureFormValueSymbol,
|
|
1974
1975
|
children: magnitudFactor.symbol
|
|
1975
1976
|
})]
|
|
1976
|
-
}), /* @__PURE__ */ jsx(DevTool, {
|
|
1977
|
+
}), process.env.NODE_ENV === "development" && /* @__PURE__ */ jsx(DevTool, {
|
|
1977
1978
|
control
|
|
1978
|
-
})
|
|
1979
|
+
})]
|
|
1979
1980
|
});
|
|
1980
1981
|
}
|
|
1981
1982
|
function MeasureTool() {
|
|
@@ -6,17 +6,17 @@ import React__default, { useEffect, useState, useCallback, createContext, useRef
|
|
|
6
6
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { createStore, useStore } from "zustand";
|
|
8
8
|
import L__default from "leaflet";
|
|
9
|
-
import { T as ToggleButton } from "
|
|
10
|
-
import { T as ToggleIconButton } from "
|
|
9
|
+
import { T as ToggleButton } from "../../../mui_extended/ToggleButton/index.b030c4ec.js";
|
|
10
|
+
import { T as ToggleIconButton } from "../../../mui_extended/ToggleIconButton/index.e0854091.js";
|
|
11
11
|
import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
|
|
12
12
|
import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
13
13
|
import { devtools } from "zustand/middleware";
|
|
14
14
|
import { immer } from "zustand/middleware/immer";
|
|
15
15
|
import { generateUtilityClasses } from "@mui/material";
|
|
16
16
|
import { unstable_composeClasses } from "@mui/base";
|
|
17
|
-
import { g as getComponentUtilityClass } from "
|
|
17
|
+
import { g as getComponentUtilityClass } from "../../../../utils/index.6469f148.js";
|
|
18
18
|
import { cloneDeep } from "lodash";
|
|
19
|
-
import { G as GpsToolsContext } from "
|
|
19
|
+
import { G as GpsToolsContext } from "../GpsTools/index.ed49dc90.js";
|
|
20
20
|
const COMPONENT_CLASS_NAME = "M4LMap";
|
|
21
21
|
const MAP_ZINDEX_DEFAULT = 0;
|
|
22
22
|
const MAP_ZINDEX_OVER_MAP = 1100;
|
|
@@ -2,9 +2,9 @@ import { m as modalUtilityClasses } from "./index.61389369.js";
|
|
|
2
2
|
import { useEnvironment } from "@m4l/core";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
5
|
-
import { I as IconButton } from "../mui_extended/IconButton/index.
|
|
6
|
-
import { I as Icon } from "../Icon/index.
|
|
7
|
-
import { u as useModal } from "../../hooks/useModal/index.
|
|
5
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.dd9f297b.js";
|
|
6
|
+
import { I as Icon } from "../Icon/index.f1161f32.js";
|
|
7
|
+
import { u as useModal } from "../../hooks/useModal/index.05d1821e.js";
|
|
8
8
|
const Header = (props) => {
|
|
9
9
|
const {
|
|
10
10
|
title,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { A as Actions } from "../CommonActions/components/Actions/index.
|
|
1
|
+
import { A as Actions } from "../CommonActions/components/Actions/index.ccf731c1.js";
|
|
2
2
|
import { Typography } from "@mui/material";
|
|
3
3
|
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
4
|
-
import { u as useModal } from "../../hooks/useModal/index.
|
|
4
|
+
import { u as useModal } from "../../hooks/useModal/index.05d1821e.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { I as Image } from "../Image/index.
|
|
6
|
+
import { I as Image } from "../Image/index.9799dfc0.js";
|
|
7
7
|
import { m as modalUtilityClasses } from "./index.61389369.js";
|
|
8
|
-
import { W as WindowBase } from "./WindowBase.
|
|
9
|
-
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.
|
|
10
|
-
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.
|
|
8
|
+
import { W as WindowBase } from "./WindowBase.2f29424e.js";
|
|
9
|
+
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.5916fb86.js";
|
|
10
|
+
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.789d82ed.js";
|
|
11
11
|
const dictionary = {
|
|
12
12
|
MESSAGE: "common_actions.confirm_quit_msg"
|
|
13
13
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { generateUtilityClasses, generateUtilityClass, styled, Accordion as Accordion$1, AccordionSummary, AccordionDetails } from "@mui/material";
|
|
2
|
-
import { I as IconButton } from "../IconButton/index.
|
|
2
|
+
import { I as IconButton } from "../IconButton/index.dd9f297b.js";
|
|
3
3
|
import { useEnvironment } from "@m4l/core";
|
|
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.384f1182.js";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
import { I as Icon } from "../../Icon/index.
|
|
9
|
+
import { I as Icon } from "../../Icon/index.f1161f32.js";
|
|
10
10
|
import { T as Typography } from "../Typography/index.379dd374.js";
|
|
11
11
|
const componentName = "M4LAccordion";
|
|
12
12
|
generateUtilityClasses(componentName, [
|
|
@@ -5,7 +5,7 @@ import { unstable_composeClasses } from "@mui/base";
|
|
|
5
5
|
import clsx from "clsx";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
import { useMemo } from "react";
|
|
8
|
-
import { I as Image } from "../../Image/index.
|
|
8
|
+
import { I as Image } from "../../Image/index.9799dfc0.js";
|
|
9
9
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
10
10
|
import { LoadingButton as LoadingButton$1 } from "@mui/lab";
|
|
11
11
|
import { T as Typography } from "../Typography/index.379dd374.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMemo, useState } from "react";
|
|
2
2
|
import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
3
3
|
import { Skeleton, styled, generateUtilityClasses, generateUtilityClass, Tooltip, IconButton as IconButton$1 } from "@mui/material";
|
|
4
|
-
import { I as Icon } from "../../Icon/index.
|
|
4
|
+
import { I as Icon } from "../../Icon/index.f1161f32.js";
|
|
5
5
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
6
6
|
import { unstable_composeClasses } from "@mui/base";
|
|
7
7
|
import clsx from "clsx";
|
|
@@ -3,12 +3,12 @@ import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
|
3
3
|
import { IconButton, generateUtilityClasses, generateUtilityClass, useTheme, MenuItem } from "@mui/material";
|
|
4
4
|
import { P as Popover } from "../Popover/index.b3eca6b1.js";
|
|
5
5
|
import { styled } from "@mui/material/styles";
|
|
6
|
-
import { I as Icon } from "../../Icon/index.
|
|
6
|
+
import { I as Icon } from "../../Icon/index.f1161f32.js";
|
|
7
7
|
import clsx from "clsx";
|
|
8
8
|
import { unstable_composeClasses } from "@mui/base";
|
|
9
9
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
10
10
|
import { B as Badge } from "../Badge/index.09f5aee5.js";
|
|
11
|
-
import { I as IconButton$1 } from "../IconButton/index.
|
|
11
|
+
import { I as IconButton$1 } from "../IconButton/index.dd9f297b.js";
|
|
12
12
|
styled(IconButton)(() => ({}));
|
|
13
13
|
const LabelMemuItem = styled("div")(({
|
|
14
14
|
theme
|
|
@@ -2,7 +2,7 @@ import { useMemo } from "react";
|
|
|
2
2
|
import { styled } from "@mui/material/styles";
|
|
3
3
|
import { generateUtilityClasses, generateUtilityClass, useTheme, Select, InputBase, MenuItem } from "@mui/material";
|
|
4
4
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
|
-
import { I as IconButton } from "../IconButton/index.
|
|
5
|
+
import { I as IconButton } from "../IconButton/index.dd9f297b.js";
|
|
6
6
|
import { useEnvironment } from "@m4l/core";
|
|
7
7
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
8
8
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
@@ -5,7 +5,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
5
5
|
import { useModuleSkeleton } from "@m4l/core";
|
|
6
6
|
import { styled as styled$1 } from "@mui/material/styles";
|
|
7
7
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
8
|
-
import { g as getNameDataTestId } from "../../../vendor.
|
|
8
|
+
import { g as getNameDataTestId } from "../../../vendor.384f1182.js";
|
|
9
9
|
import { createContext, useState } from "react";
|
|
10
10
|
const componentName$2 = "M4LTabs";
|
|
11
11
|
generateUtilityClasses(componentName$2, [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import clsx from "clsx";
|
|
2
|
-
import { B as Button, b as buttonClasses } from "../Button/index.
|
|
2
|
+
import { B as Button, b as buttonClasses } from "../Button/index.bd3371a3.js";
|
|
3
3
|
import { w as withToggle } from "../../../hocs/withToggle/index.e44eb0da.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
const ToggleAbleButton = ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import clsx from "clsx";
|
|
2
|
-
import { I as IconButton, i as iconButtonClasses } from "../IconButton/index.
|
|
2
|
+
import { I as IconButton, i as iconButtonClasses } from "../IconButton/index.dd9f297b.js";
|
|
3
3
|
import { w as withToggle } from "../../../hocs/withToggle/index.e44eb0da.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
const ToggleAbleIconButton = ({
|
|
@@ -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.ec55087e.js";
|
|
3
3
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
4
4
|
const ModalContext = createContext(null);
|
|
5
5
|
function ModalProvider({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useNetwork, useFlags, useModuleDictionary } from "@m4l/core";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
|
-
import { u as useModal } from "../useModal/index.
|
|
3
|
+
import { u as useModal } from "../useModal/index.05d1821e.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
import { W as WindowConfirm } from "../../components/modal/WindowConfirm.
|
|
5
|
+
import { W as WindowConfirm } from "../../components/modal/WindowConfirm.1d1d9cd2.js";
|
|
6
6
|
function useFormAddEdit(props) {
|
|
7
7
|
const {
|
|
8
8
|
initialValues,
|
|
@@ -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.436c2938.js";
|
|
3
3
|
function useModal() {
|
|
4
4
|
const context = useContext(ModalContext);
|
|
5
5
|
if (!context)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
|
-
import { d as TabContext } from "../../components/mui_extended/Tab/index.
|
|
2
|
+
import { d as TabContext } from "../../components/mui_extended/Tab/index.a85b2dab.js";
|
|
3
3
|
const useTab = () => {
|
|
4
4
|
const context = useContext(TabContext);
|
|
5
5
|
if (context === null) {
|