@m4l/components 3.0.1 → 3.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/@types/export.d.ts +266 -266
- package/@types/types.d.ts +70 -47
- package/components/AccountPopover/{index-BJWLsxYq.js → index-vXlaw69C.js} +3 -3
- package/components/AppBar/{index-BdA-qQyV.js → index-3gXtikUI.js} +4 -4
- package/components/BaseModule/{index-Bl0GPyrz.js → index-CtN6b__U.js} +1 -1
- package/components/CommonActions/components/ActionCancel/{index-BlaMdPmp.js → index-D_42VfUR.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index-C5ZI4ZPP.js → index-DL7fDBi6.js} +4 -4
- package/components/CommonActions/components/ActionFormIntro/{index-BbVMcr05.js → index-i3HmOpoU.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index-DGooFqVu.js → index-i5875EXe.js} +2 -2
- package/components/CommonActions/components/Actions/{index-B_vOmNZT.js → index-ChW1FuFf.js} +1 -1
- package/components/DataGrid/assets/icons/datagrid.svg +4 -4
- package/components/DataGrid/formatters/ColumnBooleanFormatter/{index-0wqcK8ML.js → index-BjkuIa7y.js} +1 -1
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index-Ozdfjlt2.js → index-CWQp1KWU.js} +1 -1
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index-D-98uXfl.js → index-DggW8-4n.js} +1 -1
- package/components/DataGrid/formatters/{index-B5SJg0Qq.js → index-B3AsHKeD.js} +2 -2
- package/components/DataGrid/{index-7vJWvQtu.js → index-EgaRUtbL.js} +4 -4
- package/components/DataGrid/subcomponents/Actions/{index-C-p5O-cU.js → index-BF4pV_-K.js} +11 -11
- package/components/DragResizeWindow/DragResizeWindow.d.ts +1 -1
- package/components/DynamicFilter/{dictionary-DbRGLe8j.js → dictionary-B2qYGLOx.js} +2 -2
- package/components/DynamicFilter/{index-D2CmPq_i.js → index-BLjn97jC.js} +4 -4
- package/components/DynamicFilter/slots/{dynamicFilterSlots-BSCWv_Rw.js → dynamicFilterSlots-CaFVu7xW.js} +5 -5
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +1 -1
- package/components/DynamicFilter/store/{index-BcaPHLdk.js → index-EW1sL9gf.js} +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/{index-BZAxYAp1.js → index-DjgwIwH9.js} +3 -3
- package/components/DynamicFilter/subcomponents/AppliedFilters/{index-DIFUGgys.js → index-Cfcgzcw7.js} +4 -4
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/{index-D5BGKd5r.js → index-BFcVswNb.js} +6 -6
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/{index-DFHDm1e4.js → index-B4mhUk9e.js} +2 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/{index-Hn2Rzovd.js → index-CA3JDlD0.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/{index-B5F1Ji7m.js → index-B4R83Pyi.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/{index-BQlxIk_N.js → index-1XC3u2dm.js} +4 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/{index-DF7EGeSx.js → index-BEMRO3Ng.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/{index-B6WQUIl7.js → index-Cfs28hud.js} +5 -5
- package/components/DynamicFilter/subcomponents/FilterActions/{index-D5edNMdo.js → index-CYY3cjbX.js} +3 -3
- package/components/DynamicFilter/subcomponents/InputFilter/{index-bbdBrHj0.js → index-CAdtxARw.js} +4 -4
- package/components/DynamicFilter/subcomponents/PopoverFilter/{index-CD3aGB5S.js → index-COoNIh4L.js} +6 -6
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/{index-MiYNpAu0.js → index-Kz-jfM3o.js} +2 -2
- package/components/FieldLabel/{index-BpW2AGJx.js → index-DCAMDJoJ.js} +3 -3
- package/components/GridLayout/{index-HK_hTGnZ.js → index-DUfp2sP_.js} +2 -2
- package/components/GridLayout/subcomponents/Griditem/{index-izY8S7ns.js → index-DEi0Ai1D.js} +1 -1
- package/components/GridLayout/subcomponents/Responsive/{index-bpKDnaCd.js → index-B7v5X9un.js} +1 -1
- package/components/GridLayout/subcomponents/SizeProvider/{index-OWN-RzRq.js → index-BsKaLKRl.js} +1 -1
- package/components/HelperText/{index-COWCXeJp.js → index-DVV5Jfc8.js} +2 -2
- package/components/Icon/{index-CedboS6y.js → index-CueLDD9j.js} +3 -3
- package/components/Image/{index-B7FhR9uF.js → index-By5vsRzf.js} +2 -2
- package/components/LanguagePopover/{index-4kPWKmxk.js → index-Dn2JPzf1.js} +4 -4
- package/components/LinearProgressIndeterminate/{index-Do7CKcow.js → index-CTlvokQp.js} +1 -1
- package/components/LoadingError/{index-CNh7b1ew.js → index-CXVOiscg.js} +5 -5
- package/components/MFIsolationApp/{index-DJ-MUHoQ.js → index-BfFMo2Q2.js} +3 -3
- package/components/MFLoader/{index-Bcg9TXnJ.js → index-CCtU6zwR.js} +2 -2
- package/components/ModalDialog/{index-BuGRs967.js → index-KryIxH_j.js} +3 -3
- package/components/NavLink/{index-B6Gmzyl0.js → index-D6eiKlc0.js} +2 -2
- package/components/NoItemSelected/{index-CMet73v_.js → index-DKhhgTAH.js} +1 -1
- package/components/ObjectLogs/{index-_8l1PbEQ.js → index-CpBmanv0.js} +9 -9
- package/components/PDFViewer/{index-CV9x1XKR.js → index-3PBUibum.js} +2 -2
- package/components/Page/{index-DKQLs5le.js → index-PXQkJn7v.js} +1 -1
- package/components/PaperForm/{index-DciWfnML.js → index-B6a3-CZt.js} +2 -2
- package/components/Period/{index-DxijnNw6.js → index-DtFWU3y5.js} +4 -4
- package/components/PrintingSystem/{index-sSZkZbrr.js → index-DJmGF2SQ.js} +13 -13
- package/components/PrintingSystem/subcomponents/BodyNode/{index-CxYjxWxL.js → index-DorXm6AO.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index-D85qi4Qz.js → index-Cd9H-_3i.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index-BA-IYLWh.js → index-Dm-RAH_l.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index-Bn9eNtAi.js → index-BPg-NpDf.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index-gNEGVptD.js → index-u0ZSP6s4.js} +1 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/{index-CiVr-jBF.js → index-C7eFFsTN.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index-BGbvh0Xk.js → index-D7M4YL4C.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index-DvhbyOo3.js → index-Drjfhq-n.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index-Cw8ZUwsm.js → index-Banh4UxX.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index-l9SFQ11V.js → index-OBnZLPEc.js} +1 -1
- package/components/PropertyValue/{index-hcXIE6qk.js → index-Cc7y20oI.js} +3 -3
- package/components/Resizeable/{index-ObbOlXFx.js → index-BwQ6EKCK.js} +1 -1
- package/components/ScrollBar/{index-BpTjE7o3.js → index-P3SkjYOy.js} +1 -1
- package/components/SideBar/{index-Cg1bZn8y.js → index-Ddxe1VvL.js} +5 -5
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/styles.d.ts +1 -1
- package/components/SplitLayout/{index-CYnKlhi5.js → index-CwmZT1x6.js} +1 -1
- package/components/ToastContainer/{index-B5VGIn45.js → index-DN3ZHpBT.js} +2 -2
- package/components/animate/LoadingScreen/{index-CzDq3A0i.js → index-CcjW-mkl.js} +1 -1
- package/components/animate/{index-mH4o-crX.js → index-DsolrzTC.js} +1 -1
- package/components/areas/components/AreasAdmin/{index-qqSduaty.js → index-Y6S0Q7TN.js} +14 -14
- package/components/areas/components/AreasViewer/{index-D5If8gFK.js → index-DfcpQwSl.js} +52 -60
- package/components/areas/contexts/AreasContext/{index-Dyj8tCdG.js → index-spCQnOlk.js} +10 -5
- package/components/areas/contexts/AreasContext/types.d.ts +1 -0
- package/components/areas/contexts/WindowToolsMFContext/types.d.ts +5 -0
- package/components/areas/hooks/index.d.ts +1 -0
- package/components/areas/hooks/useAreas/{index-o0DvT3xZ.js → index-D6DaWBIP.js} +1 -1
- package/components/areas/hooks/useSetWindowsTitle/index.d.ts +1 -0
- package/components/areas/hooks/useSetWindowsTitle/useSetWindowsTitle-BzPD-miW.js +31 -0
- package/components/areas/hooks/useSetWindowsTitle/useSetWindowsTitle.d.ts +3 -0
- package/components/commercial/AppBarCommercial/{index-DvigwCQP.js → index-D1jIOw7M.js} +1 -1
- package/components/commercial/SectionCommercial/{index-CLHGooDg.js → index-C9THYik8.js} +1 -1
- package/components/commercial/TopBar/{index-DJNYXgHq.js → index-DLn3yEcX.js} +5 -5
- package/components/commercial/{index-BLUHQfcA.js → index-D1bCIF7p.js} +3 -3
- package/components/formatters/BooleanFormatter/{index-DpF0x_xp.js → index-Bc2l6GTX.js} +2 -2
- package/components/formatters/{index-CDt8LzvL.js → index-Botdzyt2.js} +2 -2
- package/components/hook-form/HelperError/{index-D-_czK9n.js → index-J-C5u9AH.js} +1 -1
- package/components/hook-form/RHFAutocomplete/{index-BhbgwNUz.js → index-erpzYu8W.js} +6 -6
- package/components/hook-form/RHFAutocompleteAsync/{index-BnUgdSnR.js → index-BV0f25eK.js} +2 -2
- package/components/hook-form/RHFCheckbox/{index-ubHFuH1F.js → index-Duf51-pS.js} +3 -3
- package/components/hook-form/RHFCheckbox/styles.d.ts +1 -1
- package/components/hook-form/RHFColorPicker/{index-DBpi0Zhe.js → index-C-tITRAx.js} +6 -6
- package/components/hook-form/RHFDateTime/{index-BtfOlX4T.js → index-OdXKdhJS.js} +4 -4
- package/components/hook-form/RHFInputNumberSpinner/constants.d.ts +1 -0
- package/components/hook-form/RHFInputNumberSpinner/slots/RHFInputNumberSpinnnerEnum.d.ts +9 -0
- package/components/hook-form/RHFInputNumberSpinner/types.d.ts +21 -0
- package/components/hook-form/RHFPeriod/{index-BicAIry0.js → index-CjkIGYUY.js} +4 -4
- package/components/hook-form/RHFRadioGroup/{index-Di37rp0B.js → index-Da_2zFu3.js} +1 -1
- package/components/hook-form/RHFTextField/{index-Cz7BMTLe.js → index-BWZWPFn5.js} +4 -4
- package/components/hook-form/RHFUpload/{index-D52JNxDh.js → index-D4nrnFFT.js} +5 -5
- package/components/maps/components/GpsTools/{index-BP1dIwh6.js → index-DPY-BjB8.js} +22 -22
- package/components/maps/components/Map/external/googleMutant/index.d.ts +159 -159
- package/components/maps/components/Map/{index-CS6xr1Fl.js → index-BRrVIyA-.js} +12 -12
- package/components/maps/leaflet-geoman.d.ts +1476 -1476
- package/components/modal/{WindowBase-CLBER1xc.js → WindowBase-Ce6yRLcN.js} +3 -3
- package/components/modal/{WindowConfirm-DraflAKP.js → WindowConfirm-BaB3Ojgu.js} +6 -6
- package/components/mui_extended/Accordion/{index-ZFpEUCnw.js → index-D1775s1J.js} +4 -4
- package/components/mui_extended/Avatar/{index-Bk4Hq2nk.js → index-n5hK7nJD.js} +1 -1
- package/components/mui_extended/Badge/{index-D6F1o3k2.js → index-Dfdw5Iaq.js} +1 -1
- package/components/mui_extended/Button/{index-DlzpoczE.js → index-CksGG1B8.js} +3 -3
- package/components/mui_extended/Button/styles.d.ts +1 -1
- package/components/mui_extended/{CheckBox-ByxYagHV.js → CheckBox-CjxjIrmN.js} +2 -2
- package/components/mui_extended/IconButton/{index-BfDbi0cC.js → index-OMq0pPK0.js} +2 -2
- package/components/mui_extended/IconButton/types.d.ts +18 -0
- package/components/mui_extended/MenuActions/MenuActions.d.ts +5 -0
- package/components/mui_extended/MenuActions/constant.d.ts +5 -0
- package/components/mui_extended/MenuActions/dictionary.d.ts +7 -0
- package/components/mui_extended/MenuActions/index-De7dpdBH.js +202 -0
- package/components/mui_extended/MenuActions/index.d.ts +2 -5
- package/components/mui_extended/MenuActions/slots/MenuActionsEnum.d.ts +9 -0
- package/components/mui_extended/MenuActions/slots/MenuActionsSlots.d.ts +24 -0
- package/components/mui_extended/MenuActions/slots/index.d.ts +2 -0
- package/components/mui_extended/MenuActions/types.d.ts +11 -2
- package/components/mui_extended/Pager/{index-CRgYDkV8.js → index-k7SRq6Jo.js} +4 -4
- package/components/mui_extended/Popover/{index-C6_2t4L1.js → index-BnKsmvtw.js} +1 -1
- package/components/mui_extended/Stack/{index-CV2W-_eL.js → index-C9YEChZB.js} +1 -1
- package/components/mui_extended/Tab/{index-PyZxxeDt.js → index-CpdHav0V.js} +1 -1
- package/components/mui_extended/Tabs/styles.d.ts +1 -1
- package/components/mui_extended/ToggleButton/{index-X6htsgfF.js → index-CS1mz-lH.js} +1 -1
- package/components/mui_extended/ToggleIconButton/{index-mT-xXWg9.js → index-BNQrQ6-b.js} +1 -1
- package/components/mui_extended/Typography/{index-DKPqV11f.js → index-W88rbpsJ.js} +1 -1
- package/components/popups/PopupsViewer/{index-D8iTb2JJ.js → index-Dn0XOI6q.js} +3 -3
- package/components/popups/PopupsViewer/slots/{popupsViewerSlots-DEQAZ8fq.js → popupsViewerSlots-Db8QAmEE.js} +1 -1
- package/contexts/ModalContext/{index-CMPcjPCy.js → index-DkUBXDpR.js} +1 -1
- package/contexts/RHFormContext/{index-B4a0h0fX.js → index-Ct48jRjb.js} +1 -1
- package/hooks/index.d.ts +1 -0
- package/hooks/useFormAddEdit/{index-DvRNtaub.js → index-BkBJNq8b.js} +2 -2
- package/hooks/useInterval/index.d.ts +7 -0
- package/hooks/useModal/{index-C9r1LQIz.js → index-CTAwKk5D.js} +1 -1
- package/hooks/useTab/{index-DTbLh_DH.js → index-PXnpiLMx.js} +1 -1
- package/index.js +114 -93
- package/package.json +1 -1
- package/styles/MenuActions.styles.d.ts +2 -0
- package/styles/{index-Cc9p_h7i.js → index-C-MsxWtr.js} +47 -19
- package/vite-env.d.ts +4 -4
- package/components/mui_extended/MenuActions/classes/constants.d.ts +0 -1
- package/components/mui_extended/MenuActions/classes/index.d.ts +0 -7
- package/components/mui_extended/MenuActions/classes/types.d.ts +0 -7
- package/components/mui_extended/MenuActions/icons.d.ts +0 -3
- package/components/mui_extended/MenuActions/index-CUz70BPj.js +0 -171
- package/components/mui_extended/MenuActions/styles.d.ts +0 -5
|
@@ -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-By5vsRzf.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-C-MsxWtr.js";
|
|
9
9
|
import { Skeleton, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
10
10
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock-CF-669v-.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-W88rbpsJ.js";
|
|
13
|
+
import { B as Button } from "../../mui_extended/Button/index-CksGG1B8.js";
|
|
14
|
+
import { H as HelperText } from "../../HelperText/index-DVV5Jfc8.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-C-MsxWtr.js";
|
|
9
|
+
import { D as DynamicFilter } from "../../../DynamicFilter/index-BLjn97jC.js";
|
|
10
|
+
import { C as ColumnIconFormatter } from "../../../DataGrid/formatters/index-B3AsHKeD.js";
|
|
11
11
|
import { C as ColumnDateFormatter } from "../../../DataGrid/formatters/ColumnDateFormatter/index-CKg8CJ6A.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-J-C5u9AH.js";
|
|
15
|
+
import { u as useModal } from "../../../../hooks/useModal/index-CTAwKk5D.js";
|
|
16
16
|
import { u as usePopupsStore } from "../../../popups/PopupsProvider/index-DhSxmtfJ.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-i3HmOpoU.js";
|
|
22
|
+
import { W as WindowConfirm } from "../../../modal/WindowConfirm-BaB3Ojgu.js";
|
|
23
|
+
import { A as Actions } from "../../../CommonActions/components/Actions/index-ChW1FuFf.js";
|
|
24
|
+
import { B as Button } from "../../../mui_extended/Button/index-CksGG1B8.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-B3HygFCM.js";
|
|
28
|
-
import { u as useTab } from "../../../../hooks/useTab/index-
|
|
28
|
+
import { u as useTab } from "../../../../hooks/useTab/index-PXnpiLMx.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-B6a3-CZt.js";
|
|
32
|
+
import { R as RHFAutocomplete } from "../../../hook-form/RHFAutocomplete/index-erpzYu8W.js";
|
|
33
|
+
import { R as RHFTextField } from "../../../hook-form/RHFTextField/index-BWZWPFn5.js";
|
|
34
|
+
import { S as Stack } from "../../../mui_extended/Stack/index-C9YEChZB.js";
|
|
35
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index-OMq0pPK0.js";
|
|
36
|
+
import { P as PropertyValue } from "../../../PropertyValue/index-Cc7y20oI.js";
|
|
37
|
+
import { R as RHFColorPicker } from "../../../hook-form/RHFColorPicker/index-C-tITRAx.js";
|
|
38
|
+
import { T as Tabs, a as Tab, b as TabContent, c as TabProvider } from "../../../mui_extended/Tab/index-CpdHav0V.js";
|
|
39
|
+
import { I as Icon } from "../../../Icon/index-CueLDD9j.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-BkBJNq8b.js";
|
|
42
|
+
import { u as useMapStore, C as CommonFeatureRender, G as GPS_TOOLS_POPUP_ID } from "../Map/index-BRrVIyA-.js";
|
|
43
|
+
import { D as DataGrid } from "../../../DataGrid/index-EgaRUtbL.js";
|
|
44
44
|
const COMPONENT_CLASS_NAME = "M4LMapGpsTools";
|
|
45
45
|
const COMPONENT_MAP_TOOLS_ID = "gps_tools";
|
|
46
46
|
const STYLE_OPACITIES = [
|
|
@@ -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-ChW1FuFf.js";
|
|
13
|
+
import { B as Button } from "../../../mui_extended/Button/index-CksGG1B8.js";
|
|
14
14
|
import * as Yup from "yup";
|
|
15
15
|
import { u as useFormReadyForUpdate } from "../../../../hooks/useFormReadyForUpdate/index-B3HygFCM.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-BV0f25eK.js";
|
|
17
|
+
import { S as Stack } from "../../../mui_extended/Stack/index-C9YEChZB.js";
|
|
18
|
+
import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index-Ct48jRjb.js";
|
|
19
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index-OMq0pPK0.js";
|
|
20
20
|
import { u as usePopupsStore, P as PopupsProvider } from "../../../popups/PopupsProvider/index-DhSxmtfJ.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-BNQrQ6-b.js";
|
|
22
|
+
import { D as DataGrid } from "../../../DataGrid/index-EgaRUtbL.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-BaCawLr1.js";
|
|
25
|
-
import { I as Icon, M as MarkerIconLabel } from "../../../Icon/index-
|
|
25
|
+
import { I as Icon, M as MarkerIconLabel } from "../../../Icon/index-CueLDD9j.js";
|
|
26
26
|
import { u as useStateRef } from "../../../../hooks/useStateRef/index-C3P6ZK3m.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-CjxjIrmN.js";
|
|
28
|
+
import { P as Popover } from "../../../mui_extended/Popover/index-BnKsmvtw.js";
|
|
29
|
+
import { P as PopupsViewer } from "../../../popups/PopupsViewer/index-Dn0XOI6q.js";
|
|
30
30
|
import { createPathComponent } from "@react-leaflet/core";
|
|
31
31
|
import "leaflet.markercluster";
|
|
32
32
|
import { cloneDeep, throttle } from "lodash";
|