@m4l/components 0.2.36 → 1.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/components/AccountPopover/{index.a9dc9f92.js → index.efc74d5c.js} +3 -5
- package/components/AppBar/{index.7dee7427.js → index.fc126a22.js} +6 -5
- package/components/AppBar/styles.d.ts +1 -1
- package/components/CommonActions/components/Actions/styles.d.ts +1 -1
- package/components/DataGrid/styles.d.ts +1 -1
- package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/styles.d.ts +7 -7
- package/components/DragResizeWindow/{index.a9f25040.js → index.46b380e1.js} +3 -6
- package/components/DynamicFilter/dynamicFilterSlots.d.ts +76 -101
- package/components/DynamicFilter/{index.48d809e2.js → index.d9168c12.js} +22 -96
- package/components/FieldLabel/{index.2622ee40.js → index.f9cdcc27.js} +4 -4
- package/components/GridLayout/{index.b9c47a4c.js → index.bb3b7769.js} +23 -46
- package/components/GridLayout/subcomponents/Griditem/{index.69bc14e5.js → index.bb23f651.js} +4 -3
- package/components/GridLayout/subcomponents/Responsive/{index.094c1d09.js → index.b8a2a121.js} +2 -1
- package/components/GridLayout/subcomponents/SizeProvider/{index.e1d2df80.js → index.094bc6b5.js} +1 -1
- package/components/{commercial/index.b90488db.js → HamburgerMenu/index.5997af31.js} +4 -6
- package/components/HelperText/{index.81c5d349.js → index.be949cdf.js} +3 -2
- package/components/HelperText/styles.d.ts +1 -1
- package/components/Icon/index.d5fed418.js +420 -0
- package/components/Icon/styles.d.ts +2 -2
- package/components/{hook-form/RHFUpload/index.c5e5c61c.js → Image/index.36a3d440.js} +233 -32
- package/components/Image/styles.d.ts +1 -1
- package/components/LanguagePopover/{index.72f316fc.js → index.e6fa2336.js} +5 -8
- package/components/LanguagePopover/styles.d.ts +5 -5
- package/components/LinearProgressIndeterminate/{index.2ecd571e.js → index.de9d447c.js} +2 -4
- package/components/Loadable/{index.97fe63f9.js → index.e83cdb4e.js} +1 -1
- package/components/LoadingError/{index.7aaba1cf.js → index.9f00c83c.js} +8 -12
- package/components/LoadingError/styles.d.ts +1 -1
- package/components/MFLoader/{index.40c419c0.js → index.402c1acc.js} +4 -8
- package/components/ModalDialog/{index.42349189.js → index.ea9189c3.js} +5 -14
- package/components/NavLink/{index.9e847eb5.js → index.4e548cee.js} +4 -4
- package/components/NavLink/styles.d.ts +1 -1
- package/components/NoItemSelected/{index.5a8160fd.js → index.418c8316.js} +6 -15
- package/components/NoItemSelected/styles.d.ts +4 -4
- package/components/ObjectLogs/{index.6955149e.js → index.bfa7dad3.js} +10 -27
- package/components/ObjectLogs/styles.d.ts +3 -3
- package/components/PDFViewer/{index.47bb0928.js → index.bb2eca5a.js} +2 -2
- package/components/{mui_extended/Pager/index.1ba2d52b.js → Page/index.fdf04592.js} +134 -26
- package/components/PaperForm/{index.9f6fd02d.js → index.8121e3da.js} +8 -7
- package/components/PaperForm/styles.d.ts +6 -6
- package/components/Period/{index.c6d1a95a.js → index.5233694b.js} +157 -22
- package/components/Period/styles.d.ts +5 -5
- package/components/PrintingSystem/{index.f51a00f8.js → index.fb176a93.js} +14 -14
- package/components/PrintingSystem/subcomponents/BodyNode/{index.6792c353.js → index.c1d61038.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.eec6b4cd.js → index.18bd9bad.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.e58467c9.js → index.67d9f1b4.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.920b75c9.js → index.eaee152a.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.6c1ad53c.js → index.f5f63a2a.js} +1 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.e8b151ad.js → index.7de4e411.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.bf199422.js → index.f9ccf22b.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.44d436b9.js → index.f2f2e903.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index.879cf13d.js → index.540a4b19.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.eb6af0ca.js → index.41e7fcb0.js} +1 -1
- package/components/PropertyValue/{index.5e59580c.js → index.9572c347.js} +4 -7
- package/components/Resizeable/{index.5e8e48b1.js → index.1f0c1359.js} +7 -7
- package/components/ResizeableWindow/styles.d.ts +1 -1
- package/components/ScrollBar/{index.4b965665.js → index.adf0eade.js} +2 -4
- package/components/SideBar/classes/index.d.ts +1 -1
- package/components/SideBar/{index.5d1f4a23.js → index.629ba840.js} +24 -26
- package/components/SideBar/styles.d.ts +2 -2
- package/components/SideBar/subcomponents/ContentGroups/styles.d.ts +3 -3
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/styles.d.ts +1 -1
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/styles.d.ts +2 -18
- package/components/SplitLayout/{index.15756f0f.js → index.74091a81.js} +1 -3
- package/components/ToastContainer/{index.dbd78941.js → index.f9b507b9.js} +3 -3
- package/components/animate/LoadingScreen/{index.1a83615a.js → index.779690a7.js} +3 -5
- package/components/animate/PropagateLoader/{index.76d7ea70.js → index.a9da8d00.js} +3 -2
- package/components/animate/PropagateLoader/syles.d.ts +1 -1
- package/components/animate/{index.87296638.js → index.b8497385.js} +3 -2
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/styles.d.ts +3 -3
- package/components/areas/constants.5387d83e.js +412 -0
- package/components/areas/contexts/AreasContext/{index.19c7b906.js → index.bb316000.js} +5 -6
- package/components/areas/contexts/DynamicMFParmsContext/{index.3d9ad0ad.js → index.37d1d444.js} +2 -2
- package/components/areas/contexts/WindowToolsMFContext/{index.992ae7a3.js → index.69d95c15.js} +2 -2
- package/components/areas/dictionary.7e74022a.js +286 -0
- package/components/areas/hooks/useAreas/{index.cedd30ee.js → index.e24bd74d.js} +1 -1
- package/components/areas/hooks/useDynamicMFParameters/{index.9e09e1e3.js → index.03ce6078.js} +1 -1
- package/components/areas/hooks/useWindowToolsMF/{index.2fbae9dc.js → index.09801b66.js} +1 -1
- package/components/areas/icons.504ec098.js +83 -0
- package/components/commercial/HamburgerMenu/styles.d.ts +1 -1
- package/components/commercial/SectionCommercial/styles.d.ts +4 -9
- package/components/hook-form/RHFAutocomplete/classes/index.d.ts +1 -1
- package/components/hook-form/RHFAutocomplete/styles.d.ts +1 -1
- package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/styles.d.ts +1 -1
- package/components/hook-form/RHFAutocompleteAsync/styles.d.ts +4 -4
- package/components/hook-form/RHFCheckbox/styles.d.ts +2 -10
- package/components/hook-form/RHFPeriod/styles.d.ts +1 -1
- package/components/hook-form/RHFTextField/styles.d.ts +2 -2
- package/components/hook-form/RHFTextField/subcomponents/Skeleton/styles.d.ts +2 -2
- package/components/hook-form/RHFTextFieldPassword/styles.d.ts +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/styles.d.ts +1 -1
- package/components/maps/components/GpsTools/{index.4ea69dd1.js → index.75880ce0.js} +14 -136
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/styles.d.ts +4 -9
- package/components/maps/{components/Map/index.62b7d09b.js → index.8ec46ce4.js} +19 -194
- package/components/modal/{WindowBase.2414cd02.js → WindowBase.a3ac7adc.js} +3 -4
- package/components/modal/{WindowConfirm.48140481.js → WindowConfirm.e35da619.js} +6 -10
- package/components/modal/{index.81eb6def.js → index.a0e30c8b.js} +1 -5
- package/components/mui_extended/Accordion/styles.d.ts +3 -3
- package/components/mui_extended/Badge/styles.d.ts +1 -1
- package/components/mui_extended/Button/styles.d.ts +2 -10
- package/components/mui_extended/IconButton/styles.d.ts +1 -1
- package/components/mui_extended/ImageButton/styles.d.ts +1 -1
- package/components/mui_extended/MenuActions/styles.d.ts +2 -27
- package/components/mui_extended/Pager/styles.d.ts +1 -1
- package/components/mui_extended/Stack/styles.d.ts +2 -9
- package/components/mui_extended/Tab/styles.d.ts +2 -2
- package/components/mui_extended/Tabs/styles.d.ts +3 -58
- package/components/mui_extended/Typography/styles.d.ts +1 -1
- package/components/popups/PopupsProvider/{index.8fb6232a.js → index.18669fb4.js} +1 -1
- package/components/popups/PopupsViewer/{index.813854e4.js → index.ba354267.js} +5 -10
- package/contexts/ModalContext/{index.45c275cd.js → index.cf02e6bd.js} +1 -1
- package/contexts/RHFormContext/{index.bf3a2812.js → index.dc955a09.js} +2 -6
- package/hooks/useFormAddEdit/{index.9b27ca02.js → index.f156a2cd.js} +4 -8
- package/hooks/useModal/index.ef54bcf2.js +66 -0
- package/hooks/useTab/{index.f7973779.js → index.bce8b99e.js} +1 -1
- package/index.d.ts +0 -1
- package/index.js +276 -360
- package/package.json +3 -2
- package/{react-draggable.79b4c69a.js → react-draggable.5331add7.js} +1 -1
- package/{react-resizable.af1f31c1.js → react-resizable.37bfb965.js} +3 -5
- package/test/{getNameDataTestId.0faeade8.js → getNameDataTestId.aee44365.js} +2 -2
- package/test/index.6d4b98b9.js +4 -0
- package/utils/{index.0718eeac.js → index.9ee4c99a.js} +113 -3
- package/vendor.a1ce6777.js +6352 -0
- package/assets/Logo/index.109a182d.js +0 -38
- package/assets/Logo.d.ts +0 -6
- package/components/CommonActions/components/ActionCancel/index.46f636e9.js +0 -12
- package/components/CommonActions/components/ActionFormCancel/index.2b0bd50d.js +0 -56
- package/components/CommonActions/components/ActionFormIntro/index.4f212c39.js +0 -33
- package/components/CommonActions/components/ActionIntro/index.7406bd47.js +0 -25
- package/components/CommonActions/components/Actions/index.273645af.js +0 -70
- package/components/DataGrid/constants.e334cd50.js +0 -10
- package/components/DataGrid/formatters/ColumnBooleanFormatter/index.cee6b676.js +0 -26
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/index.708f3fb5.js +0 -22
- package/components/DataGrid/formatters/ColumnDateFormatter/index.e00d0cf2.js +0 -19
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/index.c064bb07.js +0 -23
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/index.880e743b.js +0 -14
- package/components/DataGrid/formatters/ColumnPointsFormatter/index.226cc583.js +0 -10
- package/components/DataGrid/formatters/ColumnPriceFormatter/index.bf9d9e60.js +0 -10
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/index.4045b2f2.js +0 -36
- package/components/DataGrid/formatters/ColumnUncertaintyFormatter/index.a87302d1.js +0 -10
- package/components/DataGrid/formatters/index.2c2f0ae4.js +0 -1
- package/components/DataGrid/index.304437ee.js +0 -917
- package/components/DataGrid/subcomponents/Actions/index.f14590d2.js +0 -595
- package/components/DataGrid/subcomponents/editors/TextEditor/index.3f0d9e28.js +0 -76
- package/components/Icon/index.ee7b85c9.js +0 -192
- package/components/Image/index.8cc036b1.js +0 -168
- package/components/Page/index.c1d4a319.js +0 -114
- package/components/animate/variants/index.7a912140.js +0 -1
- package/components/areas/components/AreasAdmin/index.f239c717.js +0 -733
- package/components/areas/components/AreasViewer/index.61e0538b.js +0 -1071
- package/components/areas/components/index.558684b3.js +0 -1
- package/components/areas/constants.66529246.js +0 -6
- package/components/areas/contexts/index.24025b97.js +0 -1
- package/components/areas/dictionary.08cfc4c9.js +0 -36
- package/components/areas/hooks/index.d9dc1e21.js +0 -1
- package/components/areas/icons.8266ccc8.js +0 -26
- package/components/areas/index.4cc6a221.js +0 -22
- package/components/commercial/AppBarCommercial/index.9f654f8e.js +0 -28
- package/components/commercial/SectionCommercial/index.3df4685b.js +0 -57
- package/components/commercial/TopBar/index.7aeb6ec0.js +0 -234
- package/components/formatters/BooleanFormatter/index.0c2d8e35.js +0 -44
- package/components/formatters/DateFormatter/index.2ef6f261.js +0 -43
- package/components/formatters/PointsFormatter/index.d8a4ee54.js +0 -25
- package/components/formatters/PriceFormatter/index.97f75b4b.js +0 -35
- package/components/formatters/UncertaintyFormatter/index.c3ffdebc.js +0 -29
- package/components/formatters/index.b816c6b6.js +0 -117
- package/components/hook-form/HelperError/index.c8b046b7.js +0 -19
- package/components/hook-form/RHFAutocomplete/index.ea2ac2b1.js +0 -408
- package/components/hook-form/RHFAutocompleteAsync/index.98dcf0de.js +0 -158
- package/components/hook-form/RHFCheckbox/index.c32278fa.js +0 -142
- package/components/hook-form/RHFColorPicker/index.8c939bfd.js +0 -191
- package/components/hook-form/RHFDateTime/index.ac27deab.js +0 -190
- package/components/hook-form/RHFMultiCheckbox/index.437e6ba3.js +0 -34
- package/components/hook-form/RHFPeriod/index.70cfc422.js +0 -104
- package/components/hook-form/RHFRadioGroup/index.11c0add8.js +0 -35
- package/components/hook-form/RHFSelect/index.c6c60ecc.js +0 -29
- package/components/hook-form/RHFTextField/index.fa97889a.js +0 -325
- package/components/maps/index.13bb982c.js +0 -7
- package/components/mui_extended/Accordion/index.d08a0361.js +0 -142
- package/components/mui_extended/Avatar/index.fb9ad158.js +0 -63
- package/components/mui_extended/Badge/index.2a3aef2c.js +0 -30
- package/components/mui_extended/BoxIcon/index.d61e7ac5.js +0 -22
- package/components/mui_extended/Breadcrumbs/index.4a44883c.js +0 -87
- package/components/mui_extended/Button/index.5395d101.js +0 -213
- package/components/mui_extended/CheckBox.256169f0.js +0 -76
- package/components/mui_extended/CircularProgress/index.967e70b7.js +0 -8
- package/components/mui_extended/IconButton/index.b0ee4965.js +0 -119
- package/components/mui_extended/LinearProgress/index.4092bb69.js +0 -9
- package/components/mui_extended/LinkWithRoute/index.288c51f3.js +0 -15
- package/components/mui_extended/MenuActions/index.d92ed0d6.js +0 -175
- package/components/mui_extended/Popover/index.4e7340b4.js +0 -142
- package/components/mui_extended/Stack/index.fe363ca5.js +0 -31
- package/components/mui_extended/Tab/index.c5ad86e2.js +0 -134
- package/components/mui_extended/ToggleButton/index.7fbc8614.js +0 -18
- package/components/mui_extended/ToggleIconButton/index.0cd347b4.js +0 -24
- package/components/mui_extended/Tooltip/index.49bb5ee1.js +0 -40
- package/components/mui_extended/Typography/index.a1e774a2.js +0 -54
- package/components/mui_extended/index.b606cd9d.js +0 -1
- package/hooks/useModal/index.30674bb7.js +0 -11
- package/style.css +0 -65
- package/test/constants_no_mock.86c553a9.js +0 -4
|
@@ -1,45 +1,37 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { createContext, useRef, useEffect, useContext, useState, useMemo, useCallback } from "react";
|
|
3
3
|
import { useModuleDictionary, useModuleSkeleton, useEnvironment, useHostTools, useNetwork, useModulePrivileges, usePaginate } from "@m4l/core";
|
|
4
|
-
import {
|
|
4
|
+
import { M as MAP_DICCTIONARY } from "../../../areas/dictionary.7e74022a.js";
|
|
5
5
|
import { shallow } from "zustand/shallow";
|
|
6
6
|
import { createStore, useStore } from "zustand";
|
|
7
7
|
import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
|
|
8
8
|
import { devtools } from "zustand/middleware";
|
|
9
9
|
import { immer } from "zustand/middleware/immer";
|
|
10
10
|
import { enableMapSet } from "immer";
|
|
11
|
+
import { u as useMapStore, C as CommonFeatureRender } from "../../index.8ec46ce4.js";
|
|
12
|
+
import { a9 as GeofencesFeaturesLayers, aa as COMPONENT_CLASS_NAME, M as MAP_ZINDEX_OVER_MAP, ab as COMPONENT_MAP_TOOLS_ID, ac as initialValues, ad as STROKE_COLOR_DEFAULT, ae as STROKE_OPACITY_DEFAULT, af as STROKE_WHEIGTH_DEFAULT, ag as STROKE_DASH_ARRAY_DEFAULT, ah as FILL_COLOR_DEFAULT, ai as FILL_OPACITY_DEFAULT, aj as STYLE_OPACITIES, ak as STYLE_WHEIGHTS, al as STYLE_PATTERNS, am as ENDPOINT_GEOFENCE_NEW_EDIT, an as ENDPOINT_GEOFENCE_GET } from "../../../areas/constants.5387d83e.js";
|
|
11
13
|
import "@geoman-io/leaflet-geoman-free/dist/leaflet-geoman.css";
|
|
12
14
|
import "@geoman-io/leaflet-geoman-free";
|
|
13
15
|
import { styled } from "@mui/material/styles";
|
|
14
16
|
import { generateUtilityClasses } from "@mui/material";
|
|
15
17
|
import "@mui/base";
|
|
16
18
|
import clsx from "clsx";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
+
import { G as GPSTOOLSICONS } from "../../../areas/icons.504ec098.js";
|
|
20
|
+
import { D as DynamicFilter } from "../../../DynamicFilter/index.d9168c12.js";
|
|
21
|
+
import { j as ColumnDateFormatter, d as Actions, H as HelperError, B as Button, k as ActionFormIntro, a as RHFTextField, S as Stack, R as RHFAutocomplete, l as RHFColorPicker, m as Tabs, n as Tab, o as Tooltip, p as TabContent, q as TabProvider, g as DataGrid } from "../../../../vendor.a1ce6777.js";
|
|
19
22
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
20
|
-
import {
|
|
21
|
-
import { u as usePopupsStore } from "../../../popups/PopupsProvider/index.8fb6232a.js";
|
|
22
|
-
import { A as ActionFormIntro } from "../../../CommonActions/components/ActionFormIntro/index.4f212c39.js";
|
|
23
|
-
import { A as Actions } from "../../../CommonActions/components/Actions/index.273645af.js";
|
|
24
|
-
import { B as Button } from "../../../mui_extended/Button/index.5395d101.js";
|
|
23
|
+
import { u as usePopupsStore } from "../../../popups/PopupsProvider/index.18669fb4.js";
|
|
25
24
|
import { useMap } from "react-leaflet";
|
|
26
25
|
import { u as useFormReadyForUpdate } from "../../../../hooks/useFormReadyForUpdate/index.f60f500e.js";
|
|
27
26
|
import * as L from "leaflet";
|
|
28
|
-
import { u as useTab } from "../../../../hooks/useTab/index.
|
|
29
|
-
import { P as PaperForm } from "../../../PaperForm/index.
|
|
30
|
-
import {
|
|
31
|
-
import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.fa97889a.js";
|
|
32
|
-
import { S as Stack } from "../../../mui_extended/Stack/index.fe363ca5.js";
|
|
33
|
-
import { P as PropertyValue } from "../../../PropertyValue/index.5e59580c.js";
|
|
34
|
-
import { R as RHFColorPicker } from "../../../hook-form/RHFColorPicker/index.8c939bfd.js";
|
|
35
|
-
import { T as Tabs, a as Tab, b as TabContent, c as TabProvider } from "../../../mui_extended/Tab/index.c5ad86e2.js";
|
|
36
|
-
import { T as Tooltip } from "../../../mui_extended/Tooltip/index.49bb5ee1.js";
|
|
27
|
+
import { u as useTab } from "../../../../hooks/useTab/index.bce8b99e.js";
|
|
28
|
+
import { P as PaperForm } from "../../../PaperForm/index.8121e3da.js";
|
|
29
|
+
import { P as PropertyValue } from "../../../PropertyValue/index.9572c347.js";
|
|
37
30
|
import * as Yup from "yup";
|
|
38
|
-
import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.
|
|
39
|
-
import { u as useFormAddEdit } from "../../../../hooks/useFormAddEdit/index.
|
|
40
|
-
import { u as useModal } from "../../../../hooks/useModal/index.
|
|
41
|
-
import { W as WindowConfirm } from "../../../modal/WindowConfirm.
|
|
42
|
-
import { c as DataGrid } from "../../../DataGrid/index.304437ee.js";
|
|
31
|
+
import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.dc955a09.js";
|
|
32
|
+
import { u as useFormAddEdit } from "../../../../hooks/useFormAddEdit/index.f156a2cd.js";
|
|
33
|
+
import { u as useModal } from "../../../../hooks/useModal/index.ef54bcf2.js";
|
|
34
|
+
import { W as WindowConfirm } from "../../../modal/WindowConfirm.e35da619.js";
|
|
43
35
|
enableMapSet();
|
|
44
36
|
const createGpsToolsStore = (initProps) => {
|
|
45
37
|
const startProps = {
|
|
@@ -179,14 +171,6 @@ function useGpsToolsStore(selector, equalityFn) {
|
|
|
179
171
|
throw new Error("useGpsToolsStore context must be use inside GpsToolsContext");
|
|
180
172
|
return useStore(context, selector, equalityFn);
|
|
181
173
|
}
|
|
182
|
-
const ENDPOINT_GEOFENCE_GET = "geofences";
|
|
183
|
-
const ENDPOINT_GEOFENCE_NEW_EDIT = "geofences";
|
|
184
|
-
var GeofencesFeaturesLayers = /* @__PURE__ */ ((GeofencesFeaturesLayers2) => {
|
|
185
|
-
GeofencesFeaturesLayers2["LAYER_GEOFENCES"] = "geofences";
|
|
186
|
-
GeofencesFeaturesLayers2["LAYER_GEOFENCES_TRANSIT_FEATURES"] = "geofencesCrossingFeatures";
|
|
187
|
-
GeofencesFeaturesLayers2["LAYER_GEOFENCES_INTERNAL_FEATURES"] = "geofencesInternalFeatures";
|
|
188
|
-
return GeofencesFeaturesLayers2;
|
|
189
|
-
})(GeofencesFeaturesLayers || {});
|
|
190
174
|
function useLayers() {
|
|
191
175
|
const { addLayer, removeLayer } = useMapStore((state) => state.mapActions, shallow);
|
|
192
176
|
const { init } = useGpsToolsStore((state) => state.gpsToolsActions, shallow);
|
|
@@ -235,70 +219,6 @@ function useLayers() {
|
|
|
235
219
|
};
|
|
236
220
|
}, []);
|
|
237
221
|
}
|
|
238
|
-
const COMPONENT_CLASS_NAME = "M4LGpsTools";
|
|
239
|
-
const COMPONENT_MAP_TOOLS_ID = "gps_tools";
|
|
240
|
-
const STYLE_OPACITIES = [
|
|
241
|
-
{
|
|
242
|
-
value: 0,
|
|
243
|
-
label: "0%"
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
value: 0.1,
|
|
247
|
-
label: "10%"
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
value: 0.2,
|
|
251
|
-
label: "20%"
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
value: 0.3,
|
|
255
|
-
label: "30%"
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
value: 0.4,
|
|
259
|
-
label: "40%"
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
value: 0.5,
|
|
263
|
-
label: "50%"
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
value: 1,
|
|
267
|
-
label: "100%"
|
|
268
|
-
}
|
|
269
|
-
];
|
|
270
|
-
const STYLE_WHEIGHTS = [
|
|
271
|
-
{
|
|
272
|
-
value: 0,
|
|
273
|
-
label: "0px"
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
value: 1,
|
|
277
|
-
label: "1px"
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
value: 2,
|
|
281
|
-
label: "2px"
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
value: 3,
|
|
285
|
-
label: "3px"
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
value: 4,
|
|
289
|
-
label: "4px"
|
|
290
|
-
}
|
|
291
|
-
];
|
|
292
|
-
const STYLE_PATTERNS = [
|
|
293
|
-
{
|
|
294
|
-
value: "",
|
|
295
|
-
label: "------"
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
value: "4 1 2",
|
|
299
|
-
label: "-- - - --"
|
|
300
|
-
}
|
|
301
|
-
];
|
|
302
222
|
const gpsToolsClasses = generateUtilityClasses(COMPONENT_CLASS_NAME, [
|
|
303
223
|
"gpsToolsRoot",
|
|
304
224
|
"gpsToolsTab",
|
|
@@ -336,21 +256,6 @@ const DivGpsToolsRoot = styled("div")`
|
|
|
336
256
|
|
|
337
257
|
${(props) => props.theme.components?.M4LGpsTools?.styleOverrides}
|
|
338
258
|
`;
|
|
339
|
-
const GPSTOOLSICONS = {
|
|
340
|
-
GEOMETRY_CIRCLE: "geometry_circle.svg",
|
|
341
|
-
GEOMETRY_RECTANGLE: "geometry_rectangle.svg",
|
|
342
|
-
GEOMETRY_POLYGON: "geometry_polygon.svg",
|
|
343
|
-
ADD: "add.svg",
|
|
344
|
-
MEASURE: "measure.svg",
|
|
345
|
-
GENERAL: "general.svg",
|
|
346
|
-
CONFIG: "config.svg",
|
|
347
|
-
STROKE: "stroke.svg",
|
|
348
|
-
FILL: "fill.svg",
|
|
349
|
-
EDIT: "edit.svg",
|
|
350
|
-
DELETE: "delete.svg",
|
|
351
|
-
ACTIVE: "active.svg",
|
|
352
|
-
NAME: "name.svg"
|
|
353
|
-
};
|
|
354
259
|
function Filter(props) {
|
|
355
260
|
const { refresh, setBackendQueryParams } = props;
|
|
356
261
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
@@ -454,33 +359,6 @@ function MyActions(props) {
|
|
|
454
359
|
/* @__PURE__ */ jsx(ActionFormIntro, { disabled: inEdition })
|
|
455
360
|
] });
|
|
456
361
|
}
|
|
457
|
-
const STROKE_COLOR_DEFAULT = "#aaccaa";
|
|
458
|
-
const STROKE_OPACITY_DEFAULT = { value: 1, label: "100%" };
|
|
459
|
-
const STROKE_WHEIGTH_DEFAULT = { value: 1, label: "1 px" };
|
|
460
|
-
const STROKE_DASH_ARRAY_DEFAULT = { value: "", label: "-----" };
|
|
461
|
-
const FILL_COLOR_DEFAULT = "#aa3000";
|
|
462
|
-
const FILL_OPACITY_DEFAULT = { value: 0.2, label: "20%" };
|
|
463
|
-
const initialValues = {
|
|
464
|
-
name: "",
|
|
465
|
-
geofenceType: null,
|
|
466
|
-
alias: null,
|
|
467
|
-
customerId: null,
|
|
468
|
-
timeMinInSeconds: 5,
|
|
469
|
-
timeMinOutSeconds: 5,
|
|
470
|
-
inEdition: false,
|
|
471
|
-
geometry: null,
|
|
472
|
-
lat: null,
|
|
473
|
-
lng: null,
|
|
474
|
-
properties: {
|
|
475
|
-
radius: null,
|
|
476
|
-
strokeColor: STROKE_COLOR_DEFAULT,
|
|
477
|
-
strokeOpacity: STROKE_OPACITY_DEFAULT,
|
|
478
|
-
strokeWeight: STROKE_WHEIGTH_DEFAULT,
|
|
479
|
-
strokeDashArray: STROKE_DASH_ARRAY_DEFAULT,
|
|
480
|
-
fillColor: FILL_COLOR_DEFAULT,
|
|
481
|
-
fillOpacity: FILL_OPACITY_DEFAULT
|
|
482
|
-
}
|
|
483
|
-
};
|
|
484
362
|
const formatDataEnpoint = (response) => {
|
|
485
363
|
try {
|
|
486
364
|
const { data } = response;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const StackGeofenceListRoot: import("@emotion/styled").StyledComponent<import("@mui/
|
|
3
|
-
ref?: import("react").Ref<unknown> | undefined;
|
|
4
|
-
children?: import("react").ReactNode;
|
|
5
|
-
direction?: import("@mui/system").ResponsiveStyleValue<"column" | "row" | "column-reverse" | "row-reverse"> | undefined;
|
|
6
|
-
spacing?: import("@mui/system").ResponsiveStyleValue<string | number> | undefined;
|
|
7
|
-
divider?: import("react").ReactNode;
|
|
8
|
-
sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
|
|
9
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
+
export declare const StackGeofenceListRoot: import("@emotion/styled").StyledComponent<import("@mui/material").StackOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
10
3
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
11
|
-
},
|
|
4
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/material").StackOwnProps> & {
|
|
5
|
+
component?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
6
|
+
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
@@ -9,24 +9,18 @@ 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 {
|
|
13
|
-
import { B as Button } from "
|
|
12
|
+
import { M as MAP_DICCTIONARY } from "../areas/dictionary.7e74022a.js";
|
|
13
|
+
import { d as Actions, B as Button, c as RHFAutocompleteAsync, S as Stack, r as ColumnSetCheckFormatter, g as DataGrid, s as CheckBox, P as Popover } from "../../vendor.a1ce6777.js";
|
|
14
14
|
import * as Yup from "yup";
|
|
15
|
-
import { u as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { u as usePopupsStore, P as PopupsProvider } from "
|
|
21
|
-
import { T as ToggleIconButton } from "../../../mui_extended/ToggleIconButton/index.0cd347b4.js";
|
|
22
|
-
import { c as DataGrid } from "../../../DataGrid/index.304437ee.js";
|
|
15
|
+
import { ao as COMPONENT_CLASS_NAME, ap as STYLE_MEASURE_OPTIONS, aq as MAP_ZINDEX_DEFAULT, ar as INITIAL_FORM_VALUES, as as GPS_TOOLS_POPUP_DEFAULT_POSITION, at as MESURE_POPUP_DEFAULT_POSITION, au as TIME_DOUBLE_CLICK, av as MARKER_COLOR_DEFAULT, L as LABEL_BK_COLOR_DEFAULT, u as LABEL_COLOR_DEFAULT, aw as SVG_ICON_DEFAULT } from "../areas/constants.5387d83e.js";
|
|
16
|
+
import { u as useFormReadyForUpdate } from "../../hooks/useFormReadyForUpdate/index.f60f500e.js";
|
|
17
|
+
import { R as RHFormProvider } from "../../contexts/RHFormContext/index.dc955a09.js";
|
|
18
|
+
import { M as MAP_ICONS } from "../areas/icons.504ec098.js";
|
|
19
|
+
import { a as IconButton, T as ToggleIconButton, I as Icon, M as MarkerIconLabel } from "../Icon/index.d5fed418.js";
|
|
20
|
+
import { u as usePopupsStore, P as PopupsProvider } from "../popups/PopupsProvider/index.18669fb4.js";
|
|
23
21
|
import { generateUtilityClasses, Tooltip, FormControl, RadioGroup, FormControlLabel, Radio, useTheme } from "@mui/material";
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import { u as useStateRef } from "../../../../hooks/useStateRef/index.538edb89.js";
|
|
27
|
-
import { C as CheckBox } from "../../../mui_extended/CheckBox.256169f0.js";
|
|
28
|
-
import { P as Popover } from "../../../mui_extended/Popover/index.4e7340b4.js";
|
|
29
|
-
import { P as PopupsViewer } from "../../../popups/PopupsViewer/index.813854e4.js";
|
|
22
|
+
import { u as useStateRef } from "../../hooks/useStateRef/index.538edb89.js";
|
|
23
|
+
import { P as PopupsViewer } from "../popups/PopupsViewer/index.ba354267.js";
|
|
30
24
|
import { createPathComponent } from "@react-leaflet/core";
|
|
31
25
|
import "leaflet.markercluster";
|
|
32
26
|
import { cloneDeep, throttle } from "lodash";
|
|
@@ -37,44 +31,8 @@ import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
|
|
|
37
31
|
import { devtools } from "zustand/middleware";
|
|
38
32
|
import { immer } from "zustand/middleware/immer";
|
|
39
33
|
import { unstable_composeClasses } from "@mui/base";
|
|
40
|
-
import { g as getComponentUtilityClass } from "
|
|
41
|
-
import { b as bearingRawToCSS } from "../../index.13bb982c.js";
|
|
34
|
+
import { g as getComponentUtilityClass } from "../../utils/index.9ee4c99a.js";
|
|
42
35
|
import "leaflet-polylinedecorator";
|
|
43
|
-
const COMPONENT_CLASS_NAME = "M4LMap";
|
|
44
|
-
const MAP_ZINDEX_DEFAULT = 0;
|
|
45
|
-
const MAP_ZINDEX_OVER_MAP = 1100;
|
|
46
|
-
const TIME_DOUBLE_CLICK = 250;
|
|
47
|
-
const MARKER_COLOR_DEFAULT = "#1E96DC";
|
|
48
|
-
const LABEL_BK_COLOR_DEFAULT = "#1E96DC";
|
|
49
|
-
const LABEL_COLOR_DEFAULT = "#FFFFFF";
|
|
50
|
-
const GPS_TOOLS_POPUP_DEFAULT_POSITION = {
|
|
51
|
-
vertical: { top: 50, bottom: 50 },
|
|
52
|
-
horizontal: { right: 50, width: 380 }
|
|
53
|
-
};
|
|
54
|
-
const MESURE_POPUP_DEFAULT_POSITION = {
|
|
55
|
-
vertical: { top: 50, height: 250 },
|
|
56
|
-
horizontal: { right: 50, width: 300 }
|
|
57
|
-
};
|
|
58
|
-
const SVG_ICON_DEFAULT = `<svg viewBox="0 0 640 640" height="32" width="32" xmlns="http://www.w3.org/2000/svg">
|
|
59
|
-
<g>
|
|
60
|
-
<circle
|
|
61
|
-
cx="320"
|
|
62
|
-
cy="320"
|
|
63
|
-
r="280"
|
|
64
|
-
fill="#1E96DC"
|
|
65
|
-
/>
|
|
66
|
-
<text
|
|
67
|
-
x="320"
|
|
68
|
-
y="320"
|
|
69
|
-
font-size="320"
|
|
70
|
-
font-family="sans-serif"
|
|
71
|
-
fill="#FFFFFF"
|
|
72
|
-
text-anchor="middle"
|
|
73
|
-
alignment-baseline="central"
|
|
74
|
-
dominant-baseline="central"
|
|
75
|
-
>P</text>
|
|
76
|
-
</g>
|
|
77
|
-
</svg>`;
|
|
78
36
|
const updateOwnerStateClasses = (_state) => {
|
|
79
37
|
};
|
|
80
38
|
const mapClasses = generateUtilityClasses(COMPONENT_CLASS_NAME, [
|
|
@@ -152,113 +110,6 @@ const useMapUtilityClasses = (_ownerState) => {
|
|
|
152
110
|
};
|
|
153
111
|
return unstable_composeClasses(slots, getComponentUtilityClass(COMPONENT_CLASS_NAME), {});
|
|
154
112
|
};
|
|
155
|
-
const MAP_DICCTIONARY = {
|
|
156
|
-
LABEL_GPSTOOLS_NAME: "label_gpstools_name",
|
|
157
|
-
LABEL_TAB_GEO: "label_tab_geo",
|
|
158
|
-
TAB_GENERAL_CONFIG_TOOLTIP: "tab_general_config_tooltip",
|
|
159
|
-
PAPER_GENERAL: "paper_general",
|
|
160
|
-
LABEL_ID: "label_id",
|
|
161
|
-
LABEL_NAME: "label_name",
|
|
162
|
-
LABEL_GEOMETRY_TYPE: "label_geometry_type",
|
|
163
|
-
LABEL_GEOMETRY_CIRCLE: "label_geometry_circle",
|
|
164
|
-
LABEL_GEOMETRY_RECTANGLE: "label_geometry_rectangle",
|
|
165
|
-
LABEL_GEOMETRY_POLYGON: "label_geometry_polygon",
|
|
166
|
-
LABEL_DRAW: "label_draw",
|
|
167
|
-
LABEL_FINISH: "label_finish",
|
|
168
|
-
PAPER_CONFIG: "paper_config",
|
|
169
|
-
LABEL_ALIAS: "label_alias",
|
|
170
|
-
LABEL_CUSTOMER_ID: "label_customer_id",
|
|
171
|
-
LABEL_TIME_MIN_IN_SECONDS: "label_time_min_in_seconds",
|
|
172
|
-
LABEL_TIME_MIN_OUT_SECONDS: "label_time_min_out_seconds",
|
|
173
|
-
TAB_STYLE_CONFIG_TOOLTIP: "tab_style_tooltip",
|
|
174
|
-
PAPER_STROKE: "paper_stroke",
|
|
175
|
-
LABEL_COLOR: "label_color",
|
|
176
|
-
LABEL_OPACITY: "label_opacity",
|
|
177
|
-
LABEL_WEIGHT: "label_weight",
|
|
178
|
-
LABEL_DASH_ARRAY: "label_dash_array",
|
|
179
|
-
LABEL_DASH_OFFSET: "label_dash_offset",
|
|
180
|
-
LABEL_RADIUS: "label_radius",
|
|
181
|
-
LABEL_LAT: "label_lat",
|
|
182
|
-
LABEL_LON: "label_lon",
|
|
183
|
-
LABEL_PLACE_MARKER: "label_place_marker",
|
|
184
|
-
LABEL_FIRST_VERTEX: "label_first_vertex",
|
|
185
|
-
LABEL_CONTINUE_LINE: "label_continue_line",
|
|
186
|
-
LABEL_FINISH_LINE: "label_finish_line",
|
|
187
|
-
LABEL_FINISH_POLY: "label_finish_poly",
|
|
188
|
-
LABEL_FINISH_RECT: "label_finish_rect",
|
|
189
|
-
LABEL_START_CIRCLE: "label_start_circle",
|
|
190
|
-
LABEL_FINISH_CIRCLE: "label_finish_circle",
|
|
191
|
-
LABEL_PLACE_CIRCLE_MARKER: "label_place_circle_marker",
|
|
192
|
-
VALIDATION_GEOMETRY_REQUIRED: "validation_geometry_required",
|
|
193
|
-
VALIDATION_FIELD_REQUIRED: "validation_field_required",
|
|
194
|
-
VALIDATION_FIELD_TYPE_NUMBER_ERROR: "validation_field_type_number_error",
|
|
195
|
-
LABEL_VIEW_TRANSIT_FEATURES: "label_view_crossing_features",
|
|
196
|
-
LABEL_VIEW_INTERNAL_FEATURES: "label_view_internal_features",
|
|
197
|
-
LABEL_CREATED_AT: "label_created_at",
|
|
198
|
-
LABEL_UPDATED_AT: "label_updated_at",
|
|
199
|
-
MODAL_DELETE_GEO_TITLE: "modal_delete_geo_title",
|
|
200
|
-
MODAL_DELETE_GEO_MESSAGE: "modal_delete_geo_message",
|
|
201
|
-
MODAL_DISABLE_GEO_TITLE: "modal_disable_geo_title",
|
|
202
|
-
MODAL_DISABLE_MESSAGE: "modal_disable_geo_message",
|
|
203
|
-
ROW_ACTION_GEO_EDIT: "row_action_geo_edit",
|
|
204
|
-
ROW_ACTION_GEO_ENABLE: "row_action_geo_enable",
|
|
205
|
-
ROW_ACTION_GEO_DISABLE: "row_action_geo_disable",
|
|
206
|
-
ROW_ACTION_GEO_DELETE: "row_action_geo_delete",
|
|
207
|
-
LABEL_TAB_MEASURE: "label_tab_measure",
|
|
208
|
-
PAPER_MEASURE: "paper_measure",
|
|
209
|
-
LABEL_MEASURE_START: "label_measure_start",
|
|
210
|
-
LABEL_MEASURE_CANCEL: "label_measure_cancel",
|
|
211
|
-
LABEL_MEASURE_DISTANCE: "label_measure_distance",
|
|
212
|
-
LABEL_MEASURE_AREA: "label_measure_area",
|
|
213
|
-
LABEL_MEASURE_UNIT: "label_measure_unit",
|
|
214
|
-
LABEL_MEASURE_UNIT_BASE_KILOMETERS: "label_measure_unit_base_kilometers",
|
|
215
|
-
LABEL_MEASURE_REMOVE_POINT: "label_measure_remove_point",
|
|
216
|
-
LABEL_LAYERS: "label_layes",
|
|
217
|
-
LABEL_LAYER_NAME: "label_layer_name",
|
|
218
|
-
LABEL_LAYER_VISIBLE: "label_layer_visible",
|
|
219
|
-
LABEL_LAYER_AUTOFOCUS: "label_layer_autofocus",
|
|
220
|
-
LABEL_LAYER_CLUSTER: "label_layer_cluster",
|
|
221
|
-
LABEL_LAYER_DELETE: "label_layer_delete",
|
|
222
|
-
ROW_ACTION_LAYER_DELETE: "row_action_layer_delete",
|
|
223
|
-
LABEL_MAP_SOURCES: "label_map_sources",
|
|
224
|
-
LABEL_TILE_OSM: "label_tile_osm",
|
|
225
|
-
LABEL_TILE_GOOGLE: "label_tile_google",
|
|
226
|
-
LABEL_TILE_GOOGLE_SATELLITE: "label_tile_google_satellite",
|
|
227
|
-
LABEL_TILE_GOOGLE_HYBRID: "label_tile_google_hybrid",
|
|
228
|
-
LABEL_TILE_BING: "label_tile_bing"
|
|
229
|
-
};
|
|
230
|
-
const MAP_ICONS = {
|
|
231
|
-
MAP_ZOOM_IN: "cmp_map_zoom_in.svg",
|
|
232
|
-
MAP_ZOOM_OUT: "cmp_map_zoom_out.svg",
|
|
233
|
-
MAP_SOURCES_TOOL: "cmp_map_mapsources_tool.svg",
|
|
234
|
-
MAP_SOURCE_OSM: "cmp_map_mapsources_osm.svg",
|
|
235
|
-
MAP_SOURCE_GOOGLE_ROADS: "cmp_map_mapsources_google.svg",
|
|
236
|
-
MAP_SOURCE_GOOGLE_HYBRID: "cmp_map_mapsources_googlehybrid.svg",
|
|
237
|
-
MAP_SOURCE_GOOGLE_SATELLITE: "cmp_map_mapsources_googlesatelite.svg",
|
|
238
|
-
MAP_SOURCE_BING: "cmp_map_mapsources_ bing.svg",
|
|
239
|
-
MAP_SOURCE_ROAD_TRAFFIC: "cmp_map_mapsources_layer-traffic.svg",
|
|
240
|
-
MAP_SOURCE_ROAD_TRANSIT: "cmp_map_mapsources_layer-transit.svg",
|
|
241
|
-
MAP_SOURCE_ROAD_BICYCLING: "cmp_map_mapsources_layer-bicycle.svg",
|
|
242
|
-
MAP_LAYERS_TOOL: "cmp_map_layers_tool.svg",
|
|
243
|
-
MAP_LAYER_VISIBLE: "cmp_map_layers_view.svg",
|
|
244
|
-
MAP_LAYER_AUTOFOCUS: "cmp_map_layers_zoom_fit.svg",
|
|
245
|
-
MAP_LAYER_CLUSTER: "cmp_map_layers_cluster.svg",
|
|
246
|
-
MAP_LAYER_DELETE: "cmp_map_layers_delete.svg",
|
|
247
|
-
MAP_GPS_TOOLS_TOOL: "cmp_map_gpstools_tool.svg",
|
|
248
|
-
GEOMETRY_CIRCLE: "geometry_circle.svg",
|
|
249
|
-
GEOMETRY_RECTANGLE: "geometry_rectangle.svg",
|
|
250
|
-
GEOMETRY_POLYGON: "geometry_polygon.svg",
|
|
251
|
-
ADD: "add.svg",
|
|
252
|
-
MAP_MEASURE_TOOL: "cmp_map_measure_tool.svg",
|
|
253
|
-
GENERAL: "general.svg",
|
|
254
|
-
CONFIG: "config.svg",
|
|
255
|
-
STROKE: "stroke.svg",
|
|
256
|
-
FILL: "fill.svg",
|
|
257
|
-
EDIT: "edit.svg",
|
|
258
|
-
DELETE: "delete.svg",
|
|
259
|
-
ACTIVE: "active.svg",
|
|
260
|
-
NAME: "name.svg"
|
|
261
|
-
};
|
|
262
113
|
const TILE_LAYER_OSM = {
|
|
263
114
|
id: "osm_roadmap",
|
|
264
115
|
sourceType: "OSM",
|
|
@@ -849,32 +700,6 @@ function useValidation() {
|
|
|
849
700
|
);
|
|
850
701
|
return { validationSchema };
|
|
851
702
|
}
|
|
852
|
-
const INITIAL_FORM_VALUES = {
|
|
853
|
-
statusLoad: "ready",
|
|
854
|
-
reInits: 0,
|
|
855
|
-
value: "0",
|
|
856
|
-
measureTypeId: "distance",
|
|
857
|
-
magnitudFactor: {
|
|
858
|
-
id: "m_kilometers",
|
|
859
|
-
name: "Kilometers",
|
|
860
|
-
symbol: "k",
|
|
861
|
-
factor_x0: 0,
|
|
862
|
-
factor_x1: 1,
|
|
863
|
-
factor_x2: 0
|
|
864
|
-
},
|
|
865
|
-
unitArea: null,
|
|
866
|
-
statusEdition: "initial"
|
|
867
|
-
};
|
|
868
|
-
const STYLE_MEASURE_OPTIONS = {
|
|
869
|
-
strokeLineColor: "#1E96DC",
|
|
870
|
-
strokeLineWeight: 5,
|
|
871
|
-
markerHeight: 37,
|
|
872
|
-
markerWidth: 26,
|
|
873
|
-
labelMarkerHeight: 0,
|
|
874
|
-
labelMarkerWidth: 0,
|
|
875
|
-
labelMarkerAnchorY: 0,
|
|
876
|
-
labelMarkerAnchorX: 0
|
|
877
|
-
};
|
|
878
703
|
const getMarkerPointIcon = (position) => {
|
|
879
704
|
return L__default.divIcon({
|
|
880
705
|
className: mapClasses.measureMarkerRoot,
|
|
@@ -2113,6 +1938,10 @@ const PolylineWithArrows = ({
|
|
|
2113
1938
|
}, [map, enableEdit]);
|
|
2114
1939
|
return /* @__PURE__ */ jsx(Polyline, { positions, ref: polylineRef, ...other });
|
|
2115
1940
|
};
|
|
1941
|
+
function bearingRawToCSS(gpsBearing, offsetRotate) {
|
|
1942
|
+
const rotation = -((360 + offsetRotate - gpsBearing) % 360);
|
|
1943
|
+
return rotation;
|
|
1944
|
+
}
|
|
2116
1945
|
const CommonFeatureRender = (props) => {
|
|
2117
1946
|
const { id, layerId } = props;
|
|
2118
1947
|
const feature = useMapStore((state) => {
|
|
@@ -2334,14 +2163,10 @@ const CommonFeatureRender = (props) => {
|
|
|
2334
2163
|
};
|
|
2335
2164
|
export {
|
|
2336
2165
|
CommonFeatureRender as C,
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
Map$1 as c,
|
|
2342
|
-
MapProvider as d,
|
|
2343
|
-
MapContext as e,
|
|
2344
|
-
MarkerFeatureRender as f,
|
|
2166
|
+
Map$1 as M,
|
|
2167
|
+
MapProvider as a,
|
|
2168
|
+
MapContext as b,
|
|
2169
|
+
MarkerFeatureRender as c,
|
|
2345
2170
|
mapClasses as m,
|
|
2346
2171
|
useMapStore as u
|
|
2347
2172
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { m as modalUtilityClasses } from "./index.
|
|
2
|
+
import { m as modalUtilityClasses } from "./index.a0e30c8b.js";
|
|
3
3
|
import { useEnvironment } from "@m4l/core";
|
|
4
4
|
import clsx from "clsx";
|
|
5
|
-
import { I as IconButton } from "../
|
|
6
|
-
import {
|
|
7
|
-
import { u as useModal } from "../../hooks/useModal/index.30674bb7.js";
|
|
5
|
+
import { I as Icon, a as IconButton } from "../Icon/index.d5fed418.js";
|
|
6
|
+
import { u as useModal } from "../../hooks/useModal/index.ef54bcf2.js";
|
|
8
7
|
const Header = (props) => {
|
|
9
8
|
const { title, onClickCancel, urlIcon, classes } = props;
|
|
10
9
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { d as Actions, e as ActionCancel, f as ActionIntro } from "../../vendor.a1ce6777.js";
|
|
3
3
|
import { Typography } from "@mui/material";
|
|
4
4
|
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.7406bd47.js";
|
|
11
|
-
const dictionary = {
|
|
12
|
-
MESSAGE: "common_actions.confirm_quit_msg"
|
|
13
|
-
};
|
|
5
|
+
import { e as dictionary } from "../areas/dictionary.7e74022a.js";
|
|
6
|
+
import { u as useModal } from "../../hooks/useModal/index.ef54bcf2.js";
|
|
7
|
+
import { I as Image } from "../Image/index.36a3d440.js";
|
|
8
|
+
import { m as modalUtilityClasses } from "./index.a0e30c8b.js";
|
|
9
|
+
import { W as WindowBase } from "./WindowBase.a3ac7adc.js";
|
|
14
10
|
const MessageIlustration = (props) => {
|
|
15
11
|
const { getLabel } = useModuleDictionary();
|
|
16
12
|
const { variant } = useModal();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
2
2
|
import { unstable_composeClasses } from "@mui/base";
|
|
3
|
-
|
|
3
|
+
import { ax as componentName } from "../areas/constants.5387d83e.js";
|
|
4
4
|
generateUtilityClasses(componentName, [
|
|
5
5
|
"root",
|
|
6
6
|
"windowBaseRoot",
|
|
@@ -54,10 +54,6 @@ const modalUtilityClasses = (ownerState) => {
|
|
|
54
54
|
...composedClasses
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
|
-
const getModalDictionary = () => {
|
|
58
|
-
return "modal_dialog";
|
|
59
|
-
};
|
|
60
57
|
export {
|
|
61
|
-
getModalDictionary as g,
|
|
62
58
|
modalUtilityClasses as m
|
|
63
59
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const SKTAccordionWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
3
|
-
export declare const WrapperAccordionLabel: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
4
|
-
export declare const AccordionRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
2
|
+
export declare const SKTAccordionWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
3
|
+
export declare const WrapperAccordionLabel: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
4
|
+
export declare const AccordionRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const BadgeRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
2
|
+
export declare const BadgeRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const ButtonRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
3
|
-
export declare const SKTButton: import("@emotion/styled").StyledComponent<{
|
|
4
|
-
animation?: false | "pulse" | "wave" | undefined;
|
|
5
|
-
children?: import("react").ReactNode;
|
|
6
|
-
classes?: Partial<import("@mui/material").SkeletonClasses> | undefined;
|
|
7
|
-
height?: string | number | undefined;
|
|
8
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
9
|
-
variant?: "text" | "rectangular" | "rounded" | "circular" | undefined;
|
|
10
|
-
width?: string | number | undefined;
|
|
11
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
3
|
+
export declare const SKTButton: import("@emotion/styled").StyledComponent<import("@mui/material").SkeletonOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
12
4
|
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
13
|
-
}, "children" | "width" | "
|
|
5
|
+
}, "style" | "children" | "width" | "className" | "height" | "animation" | "sx" | "classes" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const IconButtonRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
2
|
+
export declare const IconButtonRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const WrapperImageButton: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
2
|
+
export declare const WrapperImageButton: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,30 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const WrapperMenuActions: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
children?: import("react").ReactNode;
|
|
4
|
-
classes?: Partial<import("@mui/material").IconButtonClasses> | undefined;
|
|
5
|
-
color?: "error" | "default" | "inherit" | "warning" | "info" | "success" | "primary" | "secondary" | undefined;
|
|
6
|
-
disabled?: boolean | undefined;
|
|
7
|
-
disableFocusRipple?: boolean | undefined;
|
|
8
|
-
edge?: false | "end" | "start" | undefined;
|
|
9
|
-
size?: "small" | "large" | "medium" | undefined;
|
|
10
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
11
|
-
} & Omit<{
|
|
12
|
-
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
13
|
-
centerRipple?: boolean | undefined;
|
|
14
|
-
children?: import("react").ReactNode;
|
|
15
|
-
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
|
16
|
-
disabled?: boolean | undefined;
|
|
17
|
-
disableRipple?: boolean | undefined;
|
|
18
|
-
disableTouchRipple?: boolean | undefined;
|
|
19
|
-
focusRipple?: boolean | undefined;
|
|
20
|
-
focusVisibleClassName?: string | undefined;
|
|
21
|
-
LinkComponent?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
22
|
-
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
|
23
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
24
|
-
tabIndex?: number | undefined;
|
|
25
|
-
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
26
|
-
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
27
|
-
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
2
|
+
export declare const WrapperMenuActions: import("@emotion/styled").StyledComponent<import("@mui/material").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
28
3
|
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
29
|
-
}, "disabled" | "children" | "tabIndex" | "color" | "size" | "action" |
|
|
4
|
+
}, "style" | "disabled" | "children" | "tabIndex" | "className" | "color" | "size" | "action" | "sx" | "classes" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
30
5
|
export declare const LabelMemuItem: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const PagerRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
2
|
+
export declare const PagerRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|