@m4l/components 2.0.4 → 2.0.6
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 +269 -269
- package/@types/types.d.ts +37 -37
- package/components/AccountPopover/{index.323b6cf4.js → index.23a1eabd.js} +3 -3
- package/components/AppBar/{index.209841e1.js → index.1956ba23.js} +4 -4
- package/components/BaseModule/{index.aee40a28.js → index.6835e9a6.js} +1 -1
- package/components/CommonActions/components/ActionCancel/{index.797d8195.js → index.6b060ad1.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.d6776091.js → index.09be1900.js} +4 -4
- package/components/CommonActions/components/ActionFormIntro/{index.2af9a15d.js → index.c93b31d4.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.865af0d8.js → index.c8e7ae9e.js} +2 -2
- package/components/CommonActions/components/Actions/{index.841f1da0.js → index.4eb9ca1e.js} +2 -2
- package/components/DataGrid/assets/icons/datagrid.svg +4 -4
- package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.5dac4b66.js → index.7743ee64.js} +1 -1
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.12d2461f.js → index.c77f8bfc.js} +1 -1
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.7234f4b9.js → index.8cab2870.js} +1 -1
- package/components/DataGrid/formatters/{index.93458be0.js → index.ec837142.js} +2 -2
- package/components/DataGrid/{index.fa8634c0.js → index.dc8fa469.js} +4 -4
- package/components/DataGrid/subcomponents/Actions/{index.5ff19f99.js → index.f1fe2bd2.js} +11 -11
- package/components/DragResizeWindow/DragResizeWindow.d.ts +1 -1
- package/components/DragResizeWindow/{index.c0382188.js → index.44fad985.js} +2 -2
- package/components/DynamicFilter/{dictionary.d36bea70.js → dictionary.8b931250.js} +2 -2
- package/components/DynamicFilter/{index.5d0688b9.js → index.93376b7c.js} +4 -4
- package/components/DynamicFilter/slots/{dynamicFilterSlots.58ee518d.js → dynamicFilterSlots.3143a011.js} +6 -6
- package/components/DynamicFilter/store/{index.2c9704ee.js → index.0b26e781.js} +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/{index.faf637d6.js → index.294d846d.js} +3 -3
- package/components/DynamicFilter/subcomponents/AppliedFilters/{index.e1008442.js → index.d54831ba.js} +4 -4
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/{index.246c1304.js → index.8b75ee17.js} +6 -6
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/{index.5c3063f2.js → index.119aa323.js} +2 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/{index.cc477a59.js → index.090819a9.js} +4 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/{index.88bb0dee.js → index.69a5da30.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/{index.eec7fa42.js → index.696ea1ff.js} +4 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/{index.50a0dfb9.js → index.2dfd8e4b.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/{index.06fb696b.js → index.3eea7e61.js} +5 -5
- package/components/DynamicFilter/subcomponents/FilterActions/{index.415b11e6.js → index.d2f7e0ac.js} +3 -3
- package/components/DynamicFilter/subcomponents/InputFilter/{index.46905747.js → index.03fe887d.js} +4 -4
- package/components/DynamicFilter/subcomponents/PopoverFilter/{index.fe51263d.js → index.f3af7c5e.js} +6 -6
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/{index.0b52a455.js → index.928b69f1.js} +2 -2
- package/components/FieldLabel/{index.13a833c9.js → index.c191727a.js} +4 -4
- package/components/GridLayout/{index.95c84243.js → index.1efdb6ca.js} +2 -2
- package/components/GridLayout/subcomponents/Griditem/{index.99bf4b5c.js → index.ad5e4dd6.js} +3 -3
- package/components/GridLayout/subcomponents/Responsive/{index.83d6fc44.js → index.e3ff990a.js} +1 -1
- package/components/GridLayout/subcomponents/SizeProvider/{index.bf9a859a.js → index.5fa6f902.js} +1 -1
- package/components/HelperText/{index.83b28429.js → index.451bc436.js} +2 -2
- package/components/Icon/{index.f9cd9367.js → index.d82723ca.js} +3 -3
- package/components/Image/{index.eec95206.js → index.472191c2.js} +2 -2
- package/components/LanguagePopover/{index.becad7ef.js → index.9cb9f615.js} +4 -4
- package/components/LinearProgressIndeterminate/{index.87be4283.js → index.330dd4d7.js} +2 -2
- package/components/LoadingError/{index.8b7a3162.js → index.8c5c3905.js} +5 -5
- package/components/MFIsolationApp/{index.d20c8218.js → index.7aed6dd6.js} +2 -2
- package/components/MFLoader/{index.3e7b4cb5.js → index.ae54aafb.js} +2 -2
- package/components/ModalDialog/{index.ec0ab622.js → index.238735ec.js} +4 -4
- package/components/NavLink/{index.cca2c605.js → index.52568cdd.js} +2 -2
- package/components/NoItemSelected/{index.fa49cac5.js → index.0038a666.js} +1 -1
- package/components/ObjectLogs/{index.f70e0c0c.js → index.6da63df6.js} +9 -9
- package/components/PDFViewer/{index.cdc90184.js → index.f2394ac9.js} +2 -2
- package/components/Page/{index.4759d66c.js → index.0df91a0d.js} +1 -1
- package/components/PaperForm/{index.5cc98ed7.js → index.3a46ec6c.js} +2 -2
- package/components/Period/{index.6b0b98c1.js → index.cd547147.js} +4 -4
- package/components/PrintingSystem/{index.0acacf1b.js → index.ba908ae6.js} +14 -14
- package/components/PrintingSystem/subcomponents/BodyNode/{index.779838e5.js → index.251148ca.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.6a572f3d.js → index.e2882c92.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.a121da0d.js → index.b17898c6.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.0775edc0.js → index.4227795f.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.8d196cc6.js → index.c210ce35.js} +1 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.1542db42.js → index.cec9df33.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.34e7cd43.js → index.59ab10b9.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.8f42fe69.js → index.5d12fac5.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index.9a39e104.js → index.cf0b2bd1.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.73fb8756.js → index.b7beb250.js} +1 -1
- package/components/PropertyValue/{index.d1ca87c1.js → index.de28c147.js} +3 -3
- package/components/Resizeable/{index.c2f229d6.js → index.7df514af.js} +1 -1
- package/components/ScrollBar/{index.424bd908.js → index.3bf5b4b3.js} +1 -1
- package/components/SideBar/{index.2ce72f65.js → index.1c9dc8a5.js} +6 -6
- package/components/SplitLayout/{index.4265a602.js → index.d17f44d2.js} +1 -1
- package/components/ToastContainer/{index.b5413d7f.js → index.6407b2e3.js} +3 -3
- package/components/animate/LoadingScreen/{index.20b1f443.js → index.2be4af69.js} +1 -1
- package/components/animate/{index.680f5895.js → index.08d2e411.js} +1 -1
- package/components/areas/components/AreasAdmin/{index.b41fe898.js → index.cbabcf60.js} +15 -15
- package/components/areas/components/AreasViewer/{index.be5f5a9d.js → index.84bf6e1e.js} +15 -15
- package/components/areas/contexts/AreasContext/{index.e4be3c65.js → index.a6d20b26.js} +4 -4
- package/components/areas/hooks/useAreas/{index.ce08327d.js → index.1ee5d290.js} +1 -1
- package/components/areas/types.d.ts +1 -1
- package/components/commercial/AppBarCommercial/{index.372ea01e.js → index.81279e02.js} +2 -2
- package/components/commercial/SectionCommercial/{index.026cc71f.js → index.d903e9e7.js} +2 -2
- package/components/commercial/TopBar/{index.fff88136.js → index.9d791d27.js} +6 -6
- package/components/commercial/{index.1ea39cc1.js → index.380aa13d.js} +3 -3
- package/components/formatters/BooleanFormatter/{index.c29c63fc.js → index.1f89b011.js} +2 -2
- package/components/formatters/{index.5f44ed46.js → index.9ab0137a.js} +2 -2
- package/components/hook-form/HelperError/{index.f2b943ae.js → index.eb0451a8.js} +1 -1
- package/components/hook-form/RHFAutocomplete/classes/index.d.ts +2 -0
- package/components/hook-form/RHFAutocomplete/classes/types.d.ts +2 -0
- package/components/hook-form/RHFAutocomplete/{index.3f11b4dd.js → index.66b8a523.js} +58 -29
- package/components/hook-form/RHFAutocomplete/types.d.ts +1 -0
- package/components/hook-form/RHFAutocompleteAsync/{index.60003c6b.js → index.d0f40f8f.js} +64 -68
- package/components/hook-form/RHFAutocompleteAsync/subcomponents/ComponentTypeImage/index.d.ts +2 -2
- package/components/hook-form/RHFAutocompleteAsync/subcomponents/ComponentTypeText/index.d.ts +1 -1
- package/components/hook-form/RHFCheckbox/{index.3ce32b03.js → index.95d31dea.js} +3 -3
- package/components/hook-form/RHFColorPicker/{index.21ae7dca.js → index.6fc44977.js} +6 -6
- package/components/hook-form/RHFDateTime/{index.0d2b3d0a.js → index.8db9d2a6.js} +4 -4
- package/components/hook-form/RHFPeriod/{index.c950b5d0.js → index.febe530f.js} +4 -4
- package/components/hook-form/RHFRadioGroup/{index.87be90b7.js → index.29f49580.js} +1 -1
- package/components/hook-form/RHFTextField/{index.7f95edb6.js → index.6f9bbd80.js} +5 -5
- package/components/hook-form/RHFUpload/{index.13724496.js → index.77519c4c.js} +5 -5
- package/components/maps/components/GpsTools/{index.6da62b64.js → index.c912d7c6.js} +22 -22
- package/components/maps/components/Map/external/googleMutant/index.d.ts +159 -159
- package/components/maps/components/Map/{index.9c3b3cd0.js → index.765e578d.js} +13 -13
- package/components/maps/leaflet-geoman.d.ts +1476 -1476
- package/components/modal/{WindowBase.6c15797f.js → WindowBase.044659d9.js} +3 -3
- package/components/modal/{WindowConfirm.0d48420b.js → WindowConfirm.08d72905.js} +6 -6
- package/components/mui_extended/Accordion/{index.fd738d87.js → index.7bafa548.js} +4 -4
- package/components/mui_extended/Avatar/{index.c7b7541f.js → index.9f9346ad.js} +1 -1
- package/components/mui_extended/Badge/{index.cb26549b.js → index.182414ed.js} +1 -1
- package/components/mui_extended/Button/{index.19eb272d.js → index.d44027cf.js} +3 -3
- package/components/mui_extended/{CheckBox.d6469bd2.js → CheckBox.a68237b1.js} +2 -2
- package/components/mui_extended/IconButton/{index.4134de6f.js → index.b43ca9c9.js} +2 -2
- package/components/mui_extended/MenuActions/{index.ee8887b7.js → index.0d11f43a.js} +5 -5
- package/components/mui_extended/Pager/{index.015df2f9.js → index.fd0db044.js} +4 -4
- package/components/mui_extended/Popover/{index.ab4709b3.js → index.ea936c4a.js} +1 -1
- package/components/mui_extended/Stack/{index.53be5d28.js → index.f88ee5eb.js} +1 -1
- package/components/mui_extended/Tab/{index.7abd42e8.js → index.cb37d00d.js} +1 -1
- package/components/mui_extended/ToggleButton/{index.a34836ba.js → index.c3a9d691.js} +1 -1
- package/components/mui_extended/ToggleIconButton/{index.1f4121fa.js → index.fa33051b.js} +1 -1
- package/components/mui_extended/Typography/{index.202945af.js → index.850bc036.js} +1 -1
- package/components/popups/PopupsViewer/{index.fb409d20.js → index.722af14c.js} +4 -4
- package/components/popups/PopupsViewer/slots/{popupsViewerSlots.00d8493c.js → popupsViewerSlots.3fce4e57.js} +2 -2
- package/contexts/ModalContext/{index.eb616dfb.js → index.61e5d598.js} +1 -1
- package/contexts/RHFormContext/{index.2ced89c0.js → index.b5e15835.js} +1 -1
- package/hooks/useFormAddEdit/{index.5f204081.js → index.9b6c5008.js} +2 -2
- package/hooks/useModal/{index.33e4befd.js → index.64d98763.js} +1 -1
- package/hooks/useTab/{index.bcbaa818.js → index.75c252f9.js} +1 -1
- package/index.js +122 -122
- package/package.json +1 -1
- package/{react-draggable.310e3387.js → react-draggable.df62ccbd.js} +1 -1
- package/{react-resizable.3755959b.js → react-resizable.c746880c.js} +2 -2
- package/styles/{DynamicFilter.557ee3a7.js → DynamicFilter.f317726e.js} +1 -1
- package/styles/{index.cabe6a64.js → index.1664b7ed.js} +8 -8
- package/vite-env.d.ts +4 -4
- /package/utils/{index.78d1638f.js → index.ebfbb70f.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.472191c2.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.1664b7ed.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.850bc036.js";
|
|
13
|
+
import { B as Button } from "../../mui_extended/Button/index.d44027cf.js";
|
|
14
|
+
import { H as HelperText } from "../../HelperText/index.451bc436.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.1664b7ed.js";
|
|
9
|
+
import { D as DynamicFilter } from "../../../DynamicFilter/index.93376b7c.js";
|
|
10
|
+
import { C as ColumnIconFormatter } from "../../../DataGrid/formatters/index.ec837142.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.eb0451a8.js";
|
|
15
|
+
import { u as useModal } from "../../../../hooks/useModal/index.64d98763.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.c93b31d4.js";
|
|
22
|
+
import { W as WindowConfirm } from "../../../modal/WindowConfirm.08d72905.js";
|
|
23
|
+
import { A as Actions } from "../../../CommonActions/components/Actions/index.4eb9ca1e.js";
|
|
24
|
+
import { B as Button } from "../../../mui_extended/Button/index.d44027cf.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.75c252f9.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.3a46ec6c.js";
|
|
32
|
+
import { R as RHFAutocomplete } from "../../../hook-form/RHFAutocomplete/index.66b8a523.js";
|
|
33
|
+
import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.6f9bbd80.js";
|
|
34
|
+
import { S as Stack } from "../../../mui_extended/Stack/index.f88ee5eb.js";
|
|
35
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.b43ca9c9.js";
|
|
36
|
+
import { P as PropertyValue } from "../../../PropertyValue/index.de28c147.js";
|
|
37
|
+
import { R as RHFColorPicker } from "../../../hook-form/RHFColorPicker/index.6fc44977.js";
|
|
38
|
+
import { T as Tabs, a as Tab, b as TabContent, c as TabProvider } from "../../../mui_extended/Tab/index.cb37d00d.js";
|
|
39
|
+
import { I as Icon } from "../../../Icon/index.d82723ca.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.9b6c5008.js";
|
|
42
|
+
import { u as useMapStore, C as CommonFeatureRender, G as GPS_TOOLS_POPUP_ID } from "../Map/index.765e578d.js";
|
|
43
|
+
import { D as DataGrid } from "../../../DataGrid/index.dc8fa469.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.4eb9ca1e.js";
|
|
13
|
+
import { B as Button } from "../../../mui_extended/Button/index.d44027cf.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.d0f40f8f.js";
|
|
17
|
+
import { S as Stack } from "../../../mui_extended/Stack/index.f88ee5eb.js";
|
|
18
|
+
import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.b5e15835.js";
|
|
19
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.b43ca9c9.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.fa33051b.js";
|
|
22
|
+
import { D as DataGrid } from "../../../DataGrid/index.dc8fa469.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.d82723ca.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.a68237b1.js";
|
|
28
|
+
import { P as Popover } from "../../../mui_extended/Popover/index.ea936c4a.js";
|
|
29
|
+
import { P as PopupsViewer } from "../../../popups/PopupsViewer/index.722af14c.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.ebfbb70f.js";
|
|
41
41
|
import { b as bearingRawToCSS } from "../../index.13bb982c.js";
|
|
42
42
|
import "leaflet-polylinedecorator";
|
|
43
43
|
const updateOwnerStateClasses = (_state) => {
|