@m4l/components 2.0.6 → 3.0.0
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 +266 -269
- package/@types/types.d.ts +47 -37
- package/components/AccountPopover/{index.23a1eabd.js → index.af5aae0e.js} +3 -3
- package/components/AppBar/{index.1956ba23.js → index.b8f22046.js} +4 -4
- package/components/BaseModule/{index.6835e9a6.js → index.f7a04fe7.js} +1 -1
- package/components/CommonActions/components/ActionCancel/{index.6b060ad1.js → index.e67885bc.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.09be1900.js → index.92988013.js} +4 -4
- package/components/CommonActions/components/ActionFormIntro/{index.c93b31d4.js → index.f8867ae9.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.c8e7ae9e.js → index.e58eb0c4.js} +2 -2
- package/components/CommonActions/components/Actions/{index.4eb9ca1e.js → index.f674be30.js} +2 -2
- package/components/DataGrid/assets/icons/datagrid.svg +4 -4
- package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.7743ee64.js → index.89a59c52.js} +1 -1
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.c77f8bfc.js → index.d619d1db.js} +1 -1
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.8cab2870.js → index.557bc8a5.js} +1 -1
- package/components/DataGrid/formatters/{index.ec837142.js → index.06c18753.js} +2 -2
- package/components/DataGrid/{index.dc8fa469.js → index.b37d6cab.js} +4 -4
- package/components/DataGrid/subcomponents/Actions/{index.f1fe2bd2.js → index.c3b1c1e2.js} +11 -11
- package/components/DragResizeWindow/DragResizeWindow.d.ts +1 -1
- package/components/DragResizeWindow/{index.44fad985.js → index.a4bcaab8.js} +2 -2
- package/components/DynamicFilter/{dictionary.8b931250.js → dictionary.94a74eb3.js} +2 -2
- package/components/DynamicFilter/{index.93376b7c.js → index.b07b567a.js} +4 -4
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +1 -1
- package/components/DynamicFilter/slots/{dynamicFilterSlots.3143a011.js → dynamicFilterSlots.dd5824d5.js} +6 -6
- package/components/DynamicFilter/store/{index.0b26e781.js → index.49d1b77f.js} +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/{index.294d846d.js → index.9e8fcc8c.js} +3 -3
- package/components/DynamicFilter/subcomponents/AppliedFilters/{index.d54831ba.js → index.3e52c5d7.js} +4 -4
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/{index.8b75ee17.js → index.68d855e9.js} +6 -6
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/{index.119aa323.js → index.11f588b4.js} +2 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/{index.090819a9.js → index.77555163.js} +4 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/{index.69a5da30.js → index.1c8454db.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/{index.696ea1ff.js → index.cb31333a.js} +4 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/{index.2dfd8e4b.js → index.0ae3d439.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/{index.3eea7e61.js → index.5a0c7b12.js} +5 -5
- package/components/DynamicFilter/subcomponents/FilterActions/{index.d2f7e0ac.js → index.50c175e7.js} +3 -3
- package/components/DynamicFilter/subcomponents/InputFilter/{index.03fe887d.js → index.82d4ac5a.js} +4 -4
- package/components/DynamicFilter/subcomponents/PopoverFilter/{index.f3af7c5e.js → index.fa62a6c3.js} +6 -6
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/{index.928b69f1.js → index.e5e439f1.js} +2 -2
- package/components/DynamicFilter/types.d.ts +1 -1
- package/components/FieldLabel/{index.c191727a.js → index.9a979def.js} +4 -4
- package/components/GridLayout/{index.1efdb6ca.js → index.dd291886.js} +2 -2
- package/components/GridLayout/subcomponents/Griditem/{index.ad5e4dd6.js → index.10278655.js} +3 -3
- package/components/GridLayout/subcomponents/Responsive/{index.e3ff990a.js → index.24857a52.js} +1 -1
- package/components/GridLayout/subcomponents/SizeProvider/{index.5fa6f902.js → index.2f762118.js} +1 -1
- package/components/HelperText/{index.451bc436.js → index.6818980e.js} +2 -2
- package/components/Icon/{index.d82723ca.js → index.c06685f4.js} +3 -3
- package/components/Image/{index.472191c2.js → index.ae542f70.js} +2 -2
- package/components/LanguagePopover/{index.9cb9f615.js → index.2a7e40fc.js} +4 -4
- package/components/LinearProgressIndeterminate/{index.330dd4d7.js → index.ca78fd37.js} +2 -2
- package/components/LoadingError/{index.8c5c3905.js → index.765ff885.js} +6 -6
- package/components/MFIsolationApp/constants.d.ts +1 -0
- package/components/MFIsolationApp/{index.7aed6dd6.js → index.677d9e93.js} +46 -44
- package/components/MFLoader/{index.ae54aafb.js → index.6af7729c.js} +2 -2
- package/components/ModalDialog/{index.238735ec.js → index.a57ee020.js} +4 -4
- package/components/NavLink/{index.52568cdd.js → index.dd723dfd.js} +2 -2
- package/components/NoItemSelected/{index.0038a666.js → index.b3e365b1.js} +1 -1
- package/components/ObjectLogs/{index.6da63df6.js → index.54fdee14.js} +9 -9
- package/components/PDFViewer/{index.f2394ac9.js → index.7932d07b.js} +2 -2
- package/components/Page/{index.0df91a0d.js → index.5f2963f3.js} +1 -1
- package/components/PaperForm/{index.3a46ec6c.js → index.cdb1f846.js} +2 -2
- package/components/Period/{index.cd547147.js → index.b0b2a03b.js} +4 -4
- package/components/PrintingSystem/{index.ba908ae6.js → index.800a7957.js} +14 -14
- package/components/PrintingSystem/subcomponents/BodyNode/{index.251148ca.js → index.60ad80bd.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.e2882c92.js → index.d4aa116e.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.b17898c6.js → index.142bbf1a.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.4227795f.js → index.d16d2c5e.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.c210ce35.js → index.044363bf.js} +1 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.cec9df33.js → index.5581a84d.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.59ab10b9.js → index.2994c128.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.5d12fac5.js → index.166d7264.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index.cf0b2bd1.js → index.642ab1b7.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.b7beb250.js → index.d8a2a0af.js} +1 -1
- package/components/PropertyValue/{index.de28c147.js → index.d81eae0a.js} +3 -3
- package/components/Resizeable/{index.7df514af.js → index.df2f3bb8.js} +1 -1
- package/components/ScrollBar/{index.3bf5b4b3.js → index.11feff65.js} +1 -1
- package/components/SideBar/{index.1c9dc8a5.js → index.990e8667.js} +6 -6
- package/components/SplitLayout/{index.d17f44d2.js → index.b247de95.js} +1 -1
- package/components/ToastContainer/ToastContainer.d.ts +1 -1
- package/components/ToastContainer/constants.d.ts +3 -0
- package/components/ToastContainer/helpers/toaster.d.ts +4 -0
- package/components/ToastContainer/icons.d.ts +9 -0
- package/components/ToastContainer/index.c1657bde.js +191 -0
- package/components/ToastContainer/index.d.ts +1 -0
- package/components/ToastContainer/slots/ToastContainerEnum.d.ts +13 -0
- package/components/ToastContainer/slots/index.d.ts +2 -0
- package/components/ToastContainer/slots/toastContainerSlots.d.ts +34 -0
- package/components/ToastContainer/subcomponents/ToastMessage/ToastMessage.d.ts +2 -0
- package/components/ToastContainer/subcomponents/ToastMessage/index.d.ts +1 -2
- package/components/ToastContainer/types.d.ts +39 -3
- package/components/animate/LoadingScreen/{index.2be4af69.js → index.36a63311.js} +1 -1
- package/components/animate/{index.08d2e411.js → index.ceb7669a.js} +1 -1
- package/components/areas/components/AreasAdmin/{index.cbabcf60.js → index.b232384d.js} +16 -16
- package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/classes/types.d.ts +0 -8
- package/components/areas/components/AreasViewer/{index.84bf6e1e.js → index.d45bfcd2.js} +19 -97
- package/components/areas/contexts/AreasContext/helper.d.ts +2 -5
- package/components/areas/contexts/AreasContext/{index.a6d20b26.js → index.9edd84c3.js} +5 -119
- package/components/areas/contexts/AreasContext/types.d.ts +1 -4
- package/components/areas/contexts/WindowToolsMFContext/types.d.ts +3 -2
- package/components/areas/hooks/useAreas/{index.1ee5d290.js → index.5a57ab76.js} +1 -1
- package/components/areas/{icons.8266ccc8.js → icons.01fa3bcc.js} +0 -2
- package/components/areas/icons.d.ts +0 -2
- package/components/areas/index.d.ts +1 -1
- package/components/areas/types.d.ts +0 -40
- package/components/commercial/AppBarCommercial/{index.81279e02.js → index.b4f6147e.js} +2 -2
- package/components/commercial/SectionCommercial/{index.d903e9e7.js → index.a250338c.js} +2 -2
- package/components/commercial/TopBar/{index.9d791d27.js → index.4fdd66e5.js} +6 -6
- package/components/commercial/{index.380aa13d.js → index.be1af158.js} +3 -3
- package/components/formatters/BooleanFormatter/{index.1f89b011.js → index.91435984.js} +2 -2
- package/components/formatters/{index.9ab0137a.js → index.64017cc1.js} +2 -2
- package/components/hook-form/HelperError/{index.eb0451a8.js → index.360f8fb7.js} +1 -1
- package/components/hook-form/RHFAutocomplete/{index.66b8a523.js → index.089af1b8.js} +6 -6
- package/components/hook-form/RHFAutocompleteAsync/{index.d0f40f8f.js → index.f05b6fe3.js} +6 -4
- package/components/hook-form/RHFCheckbox/{index.95d31dea.js → index.4cefbad2.js} +3 -3
- package/components/hook-form/RHFColorPicker/{index.6fc44977.js → index.ed380b30.js} +6 -6
- package/components/hook-form/RHFDateTime/{index.8db9d2a6.js → index.118ebe6d.js} +4 -4
- package/components/hook-form/RHFPeriod/{index.febe530f.js → index.404ba4c6.js} +4 -4
- package/components/hook-form/RHFRadioGroup/{index.29f49580.js → index.591f779d.js} +1 -1
- package/components/hook-form/RHFTextField/{index.6f9bbd80.js → index.80b98b98.js} +5 -5
- package/components/hook-form/RHFUpload/{index.77519c4c.js → index.7b7ee732.js} +5 -5
- package/components/maps/components/GpsTools/{index.c912d7c6.js → index.c1198f79.js} +24 -24
- package/components/maps/components/Map/external/googleMutant/index.d.ts +159 -159
- package/components/maps/components/Map/{index.765e578d.js → index.8c947175.js} +13 -13
- package/components/maps/leaflet-geoman.d.ts +1476 -1476
- package/components/modal/{WindowBase.044659d9.js → WindowBase.00b9e5f1.js} +3 -3
- package/components/modal/{WindowConfirm.08d72905.js → WindowConfirm.abf49573.js} +6 -6
- package/components/mui_extended/Accordion/{index.7bafa548.js → index.26524ecd.js} +4 -4
- package/components/mui_extended/Avatar/{index.9f9346ad.js → index.e7bcc850.js} +1 -1
- package/components/mui_extended/Badge/{index.182414ed.js → index.48948839.js} +1 -1
- package/components/mui_extended/Button/{index.d44027cf.js → index.3d14e3e9.js} +3 -3
- package/components/mui_extended/{CheckBox.a68237b1.js → CheckBox.5dc01b37.js} +2 -2
- package/components/mui_extended/IconButton/{index.b43ca9c9.js → index.7b6c1ee3.js} +2 -2
- package/components/mui_extended/MenuActions/{index.0d11f43a.js → index.11d777bb.js} +5 -5
- package/components/mui_extended/Pager/{index.fd0db044.js → index.b28a2103.js} +4 -4
- package/components/mui_extended/Popover/{index.ea936c4a.js → index.a7da93f1.js} +1 -1
- package/components/mui_extended/Stack/{index.f88ee5eb.js → index.99de8138.js} +1 -1
- package/components/mui_extended/Tab/{index.cb37d00d.js → index.5c6a6801.js} +1 -1
- package/components/mui_extended/ToggleButton/{index.c3a9d691.js → index.86098567.js} +1 -1
- package/components/mui_extended/ToggleIconButton/{index.fa33051b.js → index.cbfe1cad.js} +1 -1
- package/components/mui_extended/Typography/{index.850bc036.js → index.8c0801e4.js} +1 -1
- package/components/popups/PopupsViewer/{index.722af14c.js → index.52653047.js} +4 -4
- package/components/popups/PopupsViewer/slots/{popupsViewerSlots.3fce4e57.js → popupsViewerSlots.69dd2614.js} +2 -2
- package/contexts/ModalContext/{index.61e5d598.js → index.799110fe.js} +1 -1
- package/contexts/RHFormContext/{index.b5e15835.js → index.f9d41b99.js} +1 -1
- package/hooks/useFormAddEdit/{index.9b6c5008.js → index.8947ee59.js} +2 -2
- package/hooks/useModal/{index.64d98763.js → index.eb857f6e.js} +1 -1
- package/hooks/useTab/{index.75c252f9.js → index.9ad15247.js} +1 -1
- package/index.js +158 -156
- package/package.json +2 -2
- package/{react-draggable.df62ccbd.js → react-draggable.079122b0.js} +1 -1
- package/{react-resizable.c746880c.js → react-resizable.330f1499.js} +2 -2
- package/styles/{DynamicFilter.f317726e.js → DynamicFilter.0713a406.js} +1 -1
- package/styles/ToastContainer.styles.d.ts +2 -0
- package/styles/{index.1664b7ed.js → index.db9e7ddb.js} +201 -43
- package/test/getNameDataTestId.d.ts +1 -1
- package/utils/index.d.ts +1 -1
- package/vite-env.d.ts +4 -4
- package/components/ToastContainer/classes/constants.d.ts +0 -1
- package/components/ToastContainer/classes/index.d.ts +0 -8
- package/components/ToastContainer/classes/types.d.ts +0 -9
- package/components/ToastContainer/index.6407b2e3.js +0 -69
- package/components/ToastContainer/styles.d.ts +0 -2
- package/components/ToastContainer/subcomponents/ToastMessage/types.d.ts +0 -5
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Toasties/index.d.ts +0 -5
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Toasties/subcomponents/Toasty/index.d.ts +0 -6
- /package/utils/{index.ebfbb70f.js → index.f77cc2ab.js} +0 -0
|
@@ -3,15 +3,15 @@ import { useCallback } from "react";
|
|
|
3
3
|
import { useFormContext, Controller } from "react-hook-form";
|
|
4
4
|
import isString from "lodash/isString";
|
|
5
5
|
import { useDropzone } from "react-dropzone";
|
|
6
|
-
import { I as Image } from "../../Image/index.
|
|
6
|
+
import { I as Image } from "../../Image/index.ae542f70.js";
|
|
7
7
|
import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
8
|
-
import { as as UploadImageRoot, at as WrapperRHFUploadImage } from "../../../styles/index.
|
|
8
|
+
import { as as UploadImageRoot, at as WrapperRHFUploadImage } from "../../../styles/index.db9e7ddb.js";
|
|
9
9
|
import { Skeleton, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
10
10
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
11
11
|
import { unstable_composeClasses } from "@mui/base";
|
|
12
|
-
import { T as Typography } from "../../mui_extended/Typography/index.
|
|
13
|
-
import { B as Button } from "../../mui_extended/Button/index.
|
|
14
|
-
import { H as HelperText } from "../../HelperText/index.
|
|
12
|
+
import { T as Typography } from "../../mui_extended/Typography/index.8c0801e4.js";
|
|
13
|
+
import { B as Button } from "../../mui_extended/Button/index.3d14e3e9.js";
|
|
14
|
+
import { H as HelperText } from "../../HelperText/index.6818980e.js";
|
|
15
15
|
const ICON_PREFIX = "M4LRHFUploadImage";
|
|
16
16
|
const getNameRHFUploadImageDataTestId = (KEY) => {
|
|
17
17
|
return `${ICON_PREFIX}-${KEY}`;
|
|
@@ -5,42 +5,42 @@ import { shallow } from "zustand/shallow";
|
|
|
5
5
|
import "@geoman-io/leaflet-geoman-free/dist/leaflet-geoman.css";
|
|
6
6
|
import "@geoman-io/leaflet-geoman-free";
|
|
7
7
|
import clsx from "clsx";
|
|
8
|
-
import { au as RHFormProviderStyled, av as StackGeofenceListRoot, aw as DivTabGpsToolsRoot } from "../../../../styles/index.
|
|
9
|
-
import { D as DynamicFilter } from "../../../DynamicFilter/index.
|
|
10
|
-
import { C as ColumnIconFormatter } from "../../../DataGrid/formatters/index.
|
|
8
|
+
import { au as RHFormProviderStyled, av as StackGeofenceListRoot, aw as DivTabGpsToolsRoot } from "../../../../styles/index.db9e7ddb.js";
|
|
9
|
+
import { D as DynamicFilter } from "../../../DynamicFilter/index.b07b567a.js";
|
|
10
|
+
import { C as ColumnIconFormatter } from "../../../DataGrid/formatters/index.06c18753.js";
|
|
11
11
|
import { C as ColumnDateFormatter } from "../../../DataGrid/formatters/ColumnDateFormatter/index.e00d0cf2.js";
|
|
12
12
|
import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
|
|
13
13
|
import { useFormContext, useWatch, useFormState } from "react-hook-form";
|
|
14
|
-
import { H as HelperError } from "../../../hook-form/HelperError/index.
|
|
15
|
-
import { u as useModal } from "../../../../hooks/useModal/index.
|
|
14
|
+
import { H as HelperError } from "../../../hook-form/HelperError/index.360f8fb7.js";
|
|
15
|
+
import { u as useModal } from "../../../../hooks/useModal/index.eb857f6e.js";
|
|
16
16
|
import { u as usePopupsStore } from "../../../popups/PopupsProvider/index.9a23e1d0.js";
|
|
17
17
|
import { createStore, useStore } from "zustand";
|
|
18
18
|
import { devtools } from "zustand/middleware";
|
|
19
19
|
import { immer } from "zustand/middleware/immer";
|
|
20
20
|
import { enableMapSet } from "immer";
|
|
21
|
-
import { A as ActionFormIntro } from "../../../CommonActions/components/ActionFormIntro/index.
|
|
22
|
-
import { W as WindowConfirm } from "../../../modal/WindowConfirm.
|
|
23
|
-
import { A as Actions } from "../../../CommonActions/components/Actions/index.
|
|
24
|
-
import { B as Button } from "../../../mui_extended/Button/index.
|
|
21
|
+
import { A as ActionFormIntro } from "../../../CommonActions/components/ActionFormIntro/index.f8867ae9.js";
|
|
22
|
+
import { W as WindowConfirm } from "../../../modal/WindowConfirm.abf49573.js";
|
|
23
|
+
import { A as Actions } from "../../../CommonActions/components/Actions/index.f674be30.js";
|
|
24
|
+
import { B as Button } from "../../../mui_extended/Button/index.3d14e3e9.js";
|
|
25
25
|
import { useMap } from "react-leaflet";
|
|
26
26
|
import * as L from "leaflet";
|
|
27
27
|
import { u as useFormReadyForUpdate } from "../../../../hooks/useFormReadyForUpdate/index.f60f500e.js";
|
|
28
|
-
import { u as useTab } from "../../../../hooks/useTab/index.
|
|
28
|
+
import { u as useTab } from "../../../../hooks/useTab/index.9ad15247.js";
|
|
29
29
|
import { generateUtilityClasses } from "@mui/material";
|
|
30
30
|
import "@mui/base";
|
|
31
|
-
import { P as PaperForm } from "../../../PaperForm/index.
|
|
32
|
-
import { R as RHFAutocomplete } from "../../../hook-form/RHFAutocomplete/index.
|
|
33
|
-
import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.
|
|
34
|
-
import { S as Stack } from "../../../mui_extended/Stack/index.
|
|
35
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index.
|
|
36
|
-
import { P as PropertyValue } from "../../../PropertyValue/index.
|
|
37
|
-
import { R as RHFColorPicker } from "../../../hook-form/RHFColorPicker/index.
|
|
38
|
-
import { T as Tabs, a as Tab, b as TabContent, c as TabProvider } from "../../../mui_extended/Tab/index.
|
|
39
|
-
import { I as Icon } from "../../../Icon/index.
|
|
31
|
+
import { P as PaperForm } from "../../../PaperForm/index.cdb1f846.js";
|
|
32
|
+
import { R as RHFAutocomplete } from "../../../hook-form/RHFAutocomplete/index.089af1b8.js";
|
|
33
|
+
import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.80b98b98.js";
|
|
34
|
+
import { S as Stack } from "../../../mui_extended/Stack/index.99de8138.js";
|
|
35
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.7b6c1ee3.js";
|
|
36
|
+
import { P as PropertyValue } from "../../../PropertyValue/index.d81eae0a.js";
|
|
37
|
+
import { R as RHFColorPicker } from "../../../hook-form/RHFColorPicker/index.ed380b30.js";
|
|
38
|
+
import { T as Tabs, a as Tab, b as TabContent, c as TabProvider } from "../../../mui_extended/Tab/index.5c6a6801.js";
|
|
39
|
+
import { I as Icon } from "../../../Icon/index.c06685f4.js";
|
|
40
40
|
import * as Yup from "yup";
|
|
41
|
-
import { u as useFormAddEdit } from "../../../../hooks/useFormAddEdit/index.
|
|
42
|
-
import { u as useMapStore, C as CommonFeatureRender, G as GPS_TOOLS_POPUP_ID } from "../Map/index.
|
|
43
|
-
import { D as DataGrid } from "../../../DataGrid/index.
|
|
41
|
+
import { u as useFormAddEdit } from "../../../../hooks/useFormAddEdit/index.8947ee59.js";
|
|
42
|
+
import { u as useMapStore, C as CommonFeatureRender, G as GPS_TOOLS_POPUP_ID } from "../Map/index.8c947175.js";
|
|
43
|
+
import { D as DataGrid } from "../../../DataGrid/index.b37d6cab.js";
|
|
44
44
|
const COMPONENT_CLASS_NAME = "M4LMapGpsTools";
|
|
45
45
|
const COMPONENT_MAP_TOOLS_ID = "gps_tools";
|
|
46
46
|
const STYLE_OPACITIES = [
|
|
@@ -1098,7 +1098,7 @@ function useSubmit(props) {
|
|
|
1098
1098
|
bodyToSnakeCase: true,
|
|
1099
1099
|
isRemote: false
|
|
1100
1100
|
}).then((response) => {
|
|
1101
|
-
toast(response.message, { type: "success" });
|
|
1101
|
+
toast({ title: response.message }, { type: "success" });
|
|
1102
1102
|
closePopup("geofencesAddEdit");
|
|
1103
1103
|
showPopup("gpsTools");
|
|
1104
1104
|
if (objectId !== void 0) {
|
|
@@ -1224,7 +1224,7 @@ function useRowActionsGetter(props) {
|
|
|
1224
1224
|
method: "DELETE",
|
|
1225
1225
|
endPoint: `geofences/${row.id}`
|
|
1226
1226
|
}).then((response) => {
|
|
1227
|
-
toast(response.message, { type: "success" });
|
|
1227
|
+
toast({ title: response.message }, { type: "success" });
|
|
1228
1228
|
fullRefresh();
|
|
1229
1229
|
});
|
|
1230
1230
|
closeModal();
|
|
@@ -1,159 +1,159 @@
|
|
|
1
|
-
import 'leaflet';
|
|
2
|
-
|
|
3
|
-
declare module 'leaflet' {
|
|
4
|
-
namespace gridLayer {
|
|
5
|
-
interface GoogleMutant extends GridLayer {
|
|
6
|
-
setElementSize(e: HTMLElement, size: Point): void;
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Add additional Google Maps layer.
|
|
10
|
-
*
|
|
11
|
-
* https://developers.google.com/maps/documentation/javascript/trafficlayer
|
|
12
|
-
*
|
|
13
|
-
* @param googleLayerName such as BicyclingLayer, TrafficLayer, or TransitLayer.
|
|
14
|
-
* @param options? constructor arguments to pass through to the google layer.
|
|
15
|
-
* @returns Promise for the native Google Maps Layer instance.
|
|
16
|
-
*/
|
|
17
|
-
addGoogleLayer(googleLayerName: string, options?: object): Promise<object>;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Removes Google Maps layer.
|
|
21
|
-
*
|
|
22
|
-
* https://developers.google.com/maps/documentation/javascript/trafficlayer
|
|
23
|
-
*
|
|
24
|
-
* @param googleLayerName such as BicyclingLayer, TrafficLayer, or TransitLayer.
|
|
25
|
-
*/
|
|
26
|
-
removeGoogleLayer(googleLayerName: string): void;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
type GoogleMutantType = 'roadmap' | 'satellite' | 'terrain' | 'hybrid';
|
|
30
|
-
|
|
31
|
-
interface GoogleMutantStyler {
|
|
32
|
-
hue?: string | undefined;
|
|
33
|
-
lightness?: number | undefined;
|
|
34
|
-
saturation?: number | undefined;
|
|
35
|
-
gamma?: number | undefined;
|
|
36
|
-
invert_lightness?: boolean | undefined;
|
|
37
|
-
visibility?: string | undefined;
|
|
38
|
-
color?: string | undefined;
|
|
39
|
-
weight?: number | undefined;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Google's map style.
|
|
44
|
-
*
|
|
45
|
-
* https://developers.google.com/maps/documentation/javascript/style-reference
|
|
46
|
-
*/
|
|
47
|
-
interface GoogleMutantStyle {
|
|
48
|
-
/**
|
|
49
|
-
* https://developers.google.com/maps/documentation/javascript/style-reference#style-features
|
|
50
|
-
*/
|
|
51
|
-
featureType?: string | undefined;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* https://developers.google.com/maps/documentation/javascript/style-reference#style-elements
|
|
55
|
-
*/
|
|
56
|
-
elementType?: string | undefined;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* https://developers.google.com/maps/documentation/javascript/style-reference#stylers
|
|
60
|
-
*/
|
|
61
|
-
stylers?: GoogleMutantStyler[] | undefined;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
interface GoogleMutantOptions extends TileLayerOptions {
|
|
65
|
-
minZoom?: number | undefined;
|
|
66
|
-
maxZoom?: number | undefined;
|
|
67
|
-
maxNativeZoom?: number | undefined;
|
|
68
|
-
tileSize?: number | Point | undefined;
|
|
69
|
-
subdomains?: string | string[] | undefined;
|
|
70
|
-
errorTileUrl?: string | undefined;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* The mutant container will add its own attribution anyways.
|
|
74
|
-
*/
|
|
75
|
-
attribution?: string | undefined;
|
|
76
|
-
|
|
77
|
-
opacity?: number | undefined;
|
|
78
|
-
continuousWorld?: boolean | undefined;
|
|
79
|
-
noWrap?: boolean | undefined;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Google's map type. 'hybrid' is not really supported.
|
|
83
|
-
*/
|
|
84
|
-
type?: GoogleMutantType | undefined;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Google's map styles.
|
|
88
|
-
*/
|
|
89
|
-
styles?: GoogleMutantStyle[] | undefined;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
function googleMutant(options?: GoogleMutantOptions): GoogleMutant;
|
|
93
|
-
|
|
94
|
-
// Remove the duplicate declaration of GoogleMutantType
|
|
95
|
-
|
|
96
|
-
interface GoogleMutantStyler {
|
|
97
|
-
hue?: string | undefined;
|
|
98
|
-
lightness?: number | undefined;
|
|
99
|
-
saturation?: number | undefined;
|
|
100
|
-
gamma?: number | undefined;
|
|
101
|
-
invert_lightness?: boolean | undefined;
|
|
102
|
-
visibility?: string | undefined;
|
|
103
|
-
color?: string | undefined;
|
|
104
|
-
weight?: number | undefined;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Google's map style.
|
|
109
|
-
*
|
|
110
|
-
* https://developers.google.com/maps/documentation/javascript/style-reference
|
|
111
|
-
*/
|
|
112
|
-
interface GoogleMutantStyle {
|
|
113
|
-
/**
|
|
114
|
-
* https://developers.google.com/maps/documentation/javascript/style-reference#style-features
|
|
115
|
-
*/
|
|
116
|
-
featureType?: string | undefined;
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* https://developers.google.com/maps/documentation/javascript/style-reference#style-elements
|
|
120
|
-
*/
|
|
121
|
-
elementType?: string | undefined;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* https://developers.google.com/maps/documentation/javascript/style-reference#stylers
|
|
125
|
-
*/
|
|
126
|
-
stylers?: GoogleMutantStyler[] | undefined;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
interface GoogleMutantOptions extends TileLayerOptions {
|
|
130
|
-
minZoom?: number | undefined;
|
|
131
|
-
maxZoom?: number | undefined;
|
|
132
|
-
maxNativeZoom?: number | undefined;
|
|
133
|
-
tileSize?: number | Point | undefined;
|
|
134
|
-
subdomains?: string | string[] | undefined;
|
|
135
|
-
errorTileUrl?: string | undefined;
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* The mutant container will add its own attribution anyways.
|
|
139
|
-
*/
|
|
140
|
-
attribution?: string | undefined;
|
|
141
|
-
|
|
142
|
-
opacity?: number | undefined;
|
|
143
|
-
continuousWorld?: boolean | undefined;
|
|
144
|
-
noWrap?: boolean | undefined;
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* Google's map type. 'hybrid' is not really supported.
|
|
148
|
-
*/
|
|
149
|
-
type?: GoogleMutantType | undefined;
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Google's map styles.
|
|
153
|
-
*/
|
|
154
|
-
styles?: GoogleMutantStyle[] | undefined;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
function googleMutant(options?: GoogleMutantOptions): GoogleMutant;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
1
|
+
import 'leaflet';
|
|
2
|
+
|
|
3
|
+
declare module 'leaflet' {
|
|
4
|
+
namespace gridLayer {
|
|
5
|
+
interface GoogleMutant extends GridLayer {
|
|
6
|
+
setElementSize(e: HTMLElement, size: Point): void;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Add additional Google Maps layer.
|
|
10
|
+
*
|
|
11
|
+
* https://developers.google.com/maps/documentation/javascript/trafficlayer
|
|
12
|
+
*
|
|
13
|
+
* @param googleLayerName such as BicyclingLayer, TrafficLayer, or TransitLayer.
|
|
14
|
+
* @param options? constructor arguments to pass through to the google layer.
|
|
15
|
+
* @returns Promise for the native Google Maps Layer instance.
|
|
16
|
+
*/
|
|
17
|
+
addGoogleLayer(googleLayerName: string, options?: object): Promise<object>;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Removes Google Maps layer.
|
|
21
|
+
*
|
|
22
|
+
* https://developers.google.com/maps/documentation/javascript/trafficlayer
|
|
23
|
+
*
|
|
24
|
+
* @param googleLayerName such as BicyclingLayer, TrafficLayer, or TransitLayer.
|
|
25
|
+
*/
|
|
26
|
+
removeGoogleLayer(googleLayerName: string): void;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
type GoogleMutantType = 'roadmap' | 'satellite' | 'terrain' | 'hybrid';
|
|
30
|
+
|
|
31
|
+
interface GoogleMutantStyler {
|
|
32
|
+
hue?: string | undefined;
|
|
33
|
+
lightness?: number | undefined;
|
|
34
|
+
saturation?: number | undefined;
|
|
35
|
+
gamma?: number | undefined;
|
|
36
|
+
invert_lightness?: boolean | undefined;
|
|
37
|
+
visibility?: string | undefined;
|
|
38
|
+
color?: string | undefined;
|
|
39
|
+
weight?: number | undefined;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Google's map style.
|
|
44
|
+
*
|
|
45
|
+
* https://developers.google.com/maps/documentation/javascript/style-reference
|
|
46
|
+
*/
|
|
47
|
+
interface GoogleMutantStyle {
|
|
48
|
+
/**
|
|
49
|
+
* https://developers.google.com/maps/documentation/javascript/style-reference#style-features
|
|
50
|
+
*/
|
|
51
|
+
featureType?: string | undefined;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* https://developers.google.com/maps/documentation/javascript/style-reference#style-elements
|
|
55
|
+
*/
|
|
56
|
+
elementType?: string | undefined;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* https://developers.google.com/maps/documentation/javascript/style-reference#stylers
|
|
60
|
+
*/
|
|
61
|
+
stylers?: GoogleMutantStyler[] | undefined;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
interface GoogleMutantOptions extends TileLayerOptions {
|
|
65
|
+
minZoom?: number | undefined;
|
|
66
|
+
maxZoom?: number | undefined;
|
|
67
|
+
maxNativeZoom?: number | undefined;
|
|
68
|
+
tileSize?: number | Point | undefined;
|
|
69
|
+
subdomains?: string | string[] | undefined;
|
|
70
|
+
errorTileUrl?: string | undefined;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* The mutant container will add its own attribution anyways.
|
|
74
|
+
*/
|
|
75
|
+
attribution?: string | undefined;
|
|
76
|
+
|
|
77
|
+
opacity?: number | undefined;
|
|
78
|
+
continuousWorld?: boolean | undefined;
|
|
79
|
+
noWrap?: boolean | undefined;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Google's map type. 'hybrid' is not really supported.
|
|
83
|
+
*/
|
|
84
|
+
type?: GoogleMutantType | undefined;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Google's map styles.
|
|
88
|
+
*/
|
|
89
|
+
styles?: GoogleMutantStyle[] | undefined;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function googleMutant(options?: GoogleMutantOptions): GoogleMutant;
|
|
93
|
+
|
|
94
|
+
// Remove the duplicate declaration of GoogleMutantType
|
|
95
|
+
|
|
96
|
+
interface GoogleMutantStyler {
|
|
97
|
+
hue?: string | undefined;
|
|
98
|
+
lightness?: number | undefined;
|
|
99
|
+
saturation?: number | undefined;
|
|
100
|
+
gamma?: number | undefined;
|
|
101
|
+
invert_lightness?: boolean | undefined;
|
|
102
|
+
visibility?: string | undefined;
|
|
103
|
+
color?: string | undefined;
|
|
104
|
+
weight?: number | undefined;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Google's map style.
|
|
109
|
+
*
|
|
110
|
+
* https://developers.google.com/maps/documentation/javascript/style-reference
|
|
111
|
+
*/
|
|
112
|
+
interface GoogleMutantStyle {
|
|
113
|
+
/**
|
|
114
|
+
* https://developers.google.com/maps/documentation/javascript/style-reference#style-features
|
|
115
|
+
*/
|
|
116
|
+
featureType?: string | undefined;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* https://developers.google.com/maps/documentation/javascript/style-reference#style-elements
|
|
120
|
+
*/
|
|
121
|
+
elementType?: string | undefined;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* https://developers.google.com/maps/documentation/javascript/style-reference#stylers
|
|
125
|
+
*/
|
|
126
|
+
stylers?: GoogleMutantStyler[] | undefined;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
interface GoogleMutantOptions extends TileLayerOptions {
|
|
130
|
+
minZoom?: number | undefined;
|
|
131
|
+
maxZoom?: number | undefined;
|
|
132
|
+
maxNativeZoom?: number | undefined;
|
|
133
|
+
tileSize?: number | Point | undefined;
|
|
134
|
+
subdomains?: string | string[] | undefined;
|
|
135
|
+
errorTileUrl?: string | undefined;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* The mutant container will add its own attribution anyways.
|
|
139
|
+
*/
|
|
140
|
+
attribution?: string | undefined;
|
|
141
|
+
|
|
142
|
+
opacity?: number | undefined;
|
|
143
|
+
continuousWorld?: boolean | undefined;
|
|
144
|
+
noWrap?: boolean | undefined;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Google's map type. 'hybrid' is not really supported.
|
|
148
|
+
*/
|
|
149
|
+
type?: GoogleMutantType | undefined;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Google's map styles.
|
|
153
|
+
*/
|
|
154
|
+
styles?: GoogleMutantStyle[] | undefined;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
function googleMutant(options?: GoogleMutantOptions): GoogleMutant;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
@@ -9,24 +9,24 @@ import { createPortal } from "react-dom";
|
|
|
9
9
|
import { useModuleDictionary, useModuleSkeleton, useEnvironment, useModulePrivileges } from "@m4l/core";
|
|
10
10
|
import clsx from "clsx";
|
|
11
11
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
12
|
-
import { A as Actions } from "../../../CommonActions/components/Actions/index.
|
|
13
|
-
import { B as Button } from "../../../mui_extended/Button/index.
|
|
12
|
+
import { A as Actions } from "../../../CommonActions/components/Actions/index.f674be30.js";
|
|
13
|
+
import { B as Button } from "../../../mui_extended/Button/index.3d14e3e9.js";
|
|
14
14
|
import * as Yup from "yup";
|
|
15
15
|
import { u as useFormReadyForUpdate } from "../../../../hooks/useFormReadyForUpdate/index.f60f500e.js";
|
|
16
|
-
import { R as RHFAutocompleteAsync } from "../../../hook-form/RHFAutocompleteAsync/index.
|
|
17
|
-
import { S as Stack } from "../../../mui_extended/Stack/index.
|
|
18
|
-
import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.
|
|
19
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index.
|
|
16
|
+
import { R as RHFAutocompleteAsync } from "../../../hook-form/RHFAutocompleteAsync/index.f05b6fe3.js";
|
|
17
|
+
import { S as Stack } from "../../../mui_extended/Stack/index.99de8138.js";
|
|
18
|
+
import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.f9d41b99.js";
|
|
19
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.7b6c1ee3.js";
|
|
20
20
|
import { u as usePopupsStore, P as PopupsProvider } from "../../../popups/PopupsProvider/index.9a23e1d0.js";
|
|
21
|
-
import { T as ToggleIconButton } from "../../../mui_extended/ToggleIconButton/index.
|
|
22
|
-
import { D as DataGrid } from "../../../DataGrid/index.
|
|
21
|
+
import { T as ToggleIconButton } from "../../../mui_extended/ToggleIconButton/index.cbfe1cad.js";
|
|
22
|
+
import { D as DataGrid } from "../../../DataGrid/index.b37d6cab.js";
|
|
23
23
|
import { generateUtilityClasses, Tooltip, FormControl, RadioGroup, FormControlLabel, Radio, useTheme } from "@mui/material";
|
|
24
24
|
import { C as ColumnSetCheckFormatter } from "../../../DataGrid/formatters/ColumnSetCheckFormatter/index.4045b2f2.js";
|
|
25
|
-
import { I as Icon, M as MarkerIconLabel } from "../../../Icon/index.
|
|
25
|
+
import { I as Icon, M as MarkerIconLabel } from "../../../Icon/index.c06685f4.js";
|
|
26
26
|
import { u as useStateRef } from "../../../../hooks/useStateRef/index.538edb89.js";
|
|
27
|
-
import { C as CheckBox } from "../../../mui_extended/CheckBox.
|
|
28
|
-
import { P as Popover } from "../../../mui_extended/Popover/index.
|
|
29
|
-
import { P as PopupsViewer } from "../../../popups/PopupsViewer/index.
|
|
27
|
+
import { C as CheckBox } from "../../../mui_extended/CheckBox.5dc01b37.js";
|
|
28
|
+
import { P as Popover } from "../../../mui_extended/Popover/index.a7da93f1.js";
|
|
29
|
+
import { P as PopupsViewer } from "../../../popups/PopupsViewer/index.52653047.js";
|
|
30
30
|
import { createPathComponent } from "@react-leaflet/core";
|
|
31
31
|
import "leaflet.markercluster";
|
|
32
32
|
import { cloneDeep, throttle } from "lodash";
|
|
@@ -37,7 +37,7 @@ import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
|
|
|
37
37
|
import { devtools } from "zustand/middleware";
|
|
38
38
|
import { immer } from "zustand/middleware/immer";
|
|
39
39
|
import { unstable_composeClasses } from "@mui/base";
|
|
40
|
-
import { g as getComponentUtilityClass } from "../../../../utils/index.
|
|
40
|
+
import { g as getComponentUtilityClass } from "../../../../utils/index.f77cc2ab.js";
|
|
41
41
|
import { b as bearingRawToCSS } from "../../index.13bb982c.js";
|
|
42
42
|
import "leaflet-polylinedecorator";
|
|
43
43
|
const updateOwnerStateClasses = (_state) => {
|