@m4l/components 0.2.13 → 0.2.15
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 +7 -16
- package/{commonjs.333e55c7.js → commonjs.565e6834.js} +0 -5
- package/components/AccountPopover/index.d.ts +0 -1
- package/components/AccountPopover/{index.7060320a.js → index.da84c424.js} +12 -22
- package/components/AppBar/AppBar.d.ts +0 -24
- package/components/AppBar/classes/index.d.ts +0 -2
- package/components/AppBar/classes/types.d.ts +0 -2
- package/components/AppBar/{index.c8e7b25c.js → index.46f2db0a.js} +7 -45
- package/components/AppBar/types.d.ts +0 -14
- package/components/CommonActions/components/ActionCancel/{index.82313aef.js → index.06365996.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/index.2c1fff45.js +70 -0
- package/components/CommonActions/components/ActionFormIntro/{index.29891df9.js → index.885f49af.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.c70ae272.js → index.b97cfeec.js} +2 -2
- package/components/CommonActions/components/Actions/index.8368ac0f.js +74 -0
- package/components/DataGrid/assets/icons/datagrid.svg +4 -0
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/index.d.ts +9 -0
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/types.d.ts +6 -0
- package/components/DataGrid/formatters/columnPointsFormatter/{index.a19b7b90.js → index.5e645334.js} +1 -1
- package/components/DataGrid/{index.387652a9.js → index.e127cac8.js} +54 -732
- package/components/DataGrid/subcomponents/Actions/index.5947f820.js +591 -0
- package/components/DataGrid/subcomponents/editors/TextEditor/index.91380a55.js +64 -0
- package/components/DragResizeWindow/DragResizeWindow.d.ts +15 -0
- package/components/DragResizeWindow/classes/index.d.ts +6 -0
- package/components/DragResizeWindow/classes/types.d.ts +8 -0
- package/components/DragResizeWindow/constants.d.ts +3 -0
- package/components/DragResizeWindow/index.67aa1e22.js +445 -0
- package/components/DragResizeWindow/index.d.ts +2 -0
- package/components/DragResizeWindow/types.d.ts +169 -0
- package/components/DragResizeWindow/utils.d.ts +2 -0
- package/components/DynamicFilter/classes/index.d.ts +1 -1
- package/components/DynamicFilter/classes/types.d.ts +0 -1
- package/components/DynamicFilter/{index.9e9885b0.js → index.068ca09c.js} +25 -96
- package/components/GridLayout/{index.68093cfb.js → index.367e44f9.js} +8 -63
- package/components/GridLayout/index.d.ts +1 -1
- package/components/GridLayout/subcomponents/Griditem/{index.8e4af155.js → index.b3c79b77.js} +3 -3
- package/components/GridLayout/subcomponents/Responsive/{index.c32210fc.js → index.4234d9f3.js} +1 -1
- package/components/GridLayout/subcomponents/SizeProvider/index.0676f896.js +62 -0
- package/components/GridLayout/subcomponents/{WidthProvider → withSizeProvider}/index.d.ts +1 -1
- package/components/HelperText/{index.918bba47.js → index.7d2afdb3.js} +2 -23
- package/components/Icon/index.aa9949f0.js +147 -0
- package/components/Icon/types.d.ts +0 -1
- package/components/Image/{index.d684bdf2.js → index.d5fed0ab.js} +5 -47
- package/components/Image/types.d.ts +2 -2
- package/components/LanguagePopover/{index.424bad09.js → index.02987c68.js} +4 -20
- package/components/LinearProgressIndeterminate/{index.a0ad2d9e.js → index.2d53ade4.js} +1 -1
- package/components/LoadingError/{index.b3e4e8e5.js → index.991393ca.js} +5 -23
- package/components/MFLoader/{index.3d17dfc3.js → index.b928e361.js} +13 -22
- package/components/ModalDialog/{index.40f6571e.js → index.a30831c9.js} +5 -5
- package/components/NavLink/{index.ed4c0609.js → index.b75c91e1.js} +2 -22
- package/components/NoItemSelected/{index.5ed80b8e.js → index.1ddc6a38.js} +1 -1
- package/components/ObjectLogs/{index.3a939c6b.js → index.546bf5bf.js} +7 -84
- package/components/Page/{index.890fbaac.js → index.c3767243.js} +1 -1
- package/components/PaperForm/classes/index.d.ts +1 -2
- package/components/PaperForm/classes/types.d.ts +0 -1
- package/components/PaperForm/{index.013ed28b.js → index.27dafbcc.js} +6 -11
- package/components/PaperForm/types.d.ts +1 -4
- package/components/Period/{index.3bd05e05.js → index.288a0ec2.js} +5 -88
- package/components/PopupsProvider/classes/index.d.ts +11 -0
- package/components/PopupsProvider/classes/types.d.ts +9 -0
- package/components/PopupsProvider/constants.d.ts +10 -0
- package/components/PopupsProvider/contexts/PopupsContext/PopupsContext.d.ts +19 -0
- package/components/PopupsProvider/contexts/PopupsContext/helper.d.ts +7 -0
- package/components/PopupsProvider/contexts/PopupsContext/index.d.ts +1 -0
- package/components/PopupsProvider/contexts/PopupsContext/store.d.ts +16 -0
- package/components/PopupsProvider/contexts/PopupsContext/types.d.ts +117 -0
- package/components/PopupsProvider/hooks/usePopupsStore/index.d.ts +3 -0
- package/components/PopupsProvider/index.ae1bd010.js +247 -0
- package/components/PopupsProvider/index.d.ts +2 -0
- package/components/PopupsProvider/subcomponents/Popup/index.d.ts +8 -0
- package/components/PopupsProvider/subcomponents/Popup/types.d.ts +16 -0
- package/components/PopupsProvider/subcomponents/PopupsContainer/index.d.ts +2 -0
- package/components/PopupsProvider/subcomponents/PopupsContainer/types.d.ts +1 -0
- package/components/PrintingSystem/{index.70234425.js → index.b69edc07.js} +44 -20
- package/components/PrintingSystem/subcomponents/BodyNode/{index.1dd418aa.js → index.81da2c9c.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.6aadd6b3.js → index.1863bcf1.js} +4 -4
- package/components/PrintingSystem/subcomponents/DividerNode/{index.91e65ff6.js → index.0e6e76ad.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.c2481749.js → index.5af68fd5.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.758d94d1.js → index.07d4f9a4.js} +7 -3
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.732d7c58.js → index.dbf08ab4.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.1a20a9d4.js → index.d81d2f30.js} +4 -4
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.8402e742.js → index.4c20215d.js} +5 -3
- package/components/PrintingSystem/subcomponents/SectionNode/{index.25aeb4aa.js → index.72cb64b8.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.2b632722.js → index.41c261f4.js} +3 -3
- package/components/PrintingSystem/types.d.ts +3 -12
- package/components/PrintingSystem/utils/getEvalValue/index.d.ts +1 -0
- package/components/PropertyValue/classes/index.d.ts +1 -1
- package/components/PropertyValue/classes/types.d.ts +1 -4
- package/components/PropertyValue/index.92ccdf7a.js +220 -0
- package/components/PropertyValue/skeleton.d.ts +2 -0
- package/components/PropertyValue/types.d.ts +7 -5
- package/components/Resizeable/{index.6478d7d8.js → index.e4f47710.js} +5 -5
- package/components/ResizeableWindow/types.d.ts +3 -5
- package/components/ScrollBar/{index.010f1b9d.js → index.65bb2930.js} +1 -5
- package/components/SideBar/classes/index.d.ts +1 -1
- package/components/SideBar/{index.614f85fb.js → index.e4d2ee53.js} +31 -30
- package/components/SideBar/types.d.ts +3 -3
- package/components/SplitLayout/{index.30fd5861.js → index.9ef430f6.js} +1 -1
- package/components/animate/{index.4e9774a6.js → index.5d4575bc.js} +2 -6
- package/components/areas/components/AreasAdmin/{index.c1539c1b.js → index.8426755c.js} +29 -98
- package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/{index.e084d8e9.js → index.6b310068.js} +24 -88
- package/components/areas/components/index.558684b3.js +1 -0
- package/components/areas/contexts/AreasContext/helper.d.ts +2 -2
- package/components/areas/contexts/AreasContext/{index.cffa1526.js → index.1e3974e1.js} +17 -10
- package/components/areas/contexts/index.24025b97.js +1 -0
- package/components/areas/hooks/index.d9dc1e21.js +1 -0
- package/components/areas/hooks/useAreas/{index.00031ac3.js → index.21fa4ab1.js} +1 -1
- package/components/areas/index.4cc6a221.js +22 -0
- package/components/formatters/BooleanFormatter/{index.5ed55bda.js → index.fcc47dfd.js} +3 -2
- package/components/formatters/PointsFormatter/{index.5c94c5e8.js → index.80a4e414.js} +2 -2
- package/components/formatters/PointsFormatter/index.d.ts +1 -1
- package/components/formatters/{index.4426a315.js → index.7d5cbac9.js} +3 -7
- package/components/hook-form/HelperError/index.66bbcac3.js +30 -0
- package/components/hook-form/RHFAutocomplete/classes/types.d.ts +0 -2
- package/components/hook-form/RHFAutocomplete/{index.01a8f57e.js → index.ea720b8f.js} +38 -44
- package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/index.d.ts +1 -1
- package/components/hook-form/RHFAutocomplete/subcomponents/Skeleton/types.d.ts +2 -1
- package/components/hook-form/RHFAutocomplete/types.d.ts +3 -8
- package/components/hook-form/RHFAutocompleteAsync/{index.df1d5bca.js → index.1609eaf0.js} +1 -1
- package/components/hook-form/RHFCheckbox/{index.23fc4851.js → index.a38715e3.js} +2 -22
- package/components/hook-form/RHFColorPicker/index.259b6f38.js +61 -0
- package/components/hook-form/RHFColorPicker/index.d.ts +0 -6
- package/components/hook-form/RHFColorPicker/types.d.ts +0 -5
- package/components/hook-form/RHFDateTime/{index.984b803f.js → index.8bd9e41e.js} +5 -21
- package/components/hook-form/RHFDateTime/types.d.ts +1 -0
- package/components/hook-form/RHFHelperError/index.d.ts +4 -0
- package/components/hook-form/RHFPeriod/{index.1852e7d3.js → index.89bebd60.js} +3 -2
- package/components/hook-form/RHFRadioGroup/{index.3b17819b.js → index.1ddb3d93.js} +1 -1
- package/components/hook-form/RHFTextField/{index.1167879e.js → index.2c8d4613.js} +6 -8
- package/components/hook-form/RHFUpload/{index.49edcb02.js → index.55e495bb.js} +7 -24
- package/components/index.d.ts +2 -3
- package/components/maps/components/GpsTools/GpsTools.d.ts +1 -0
- package/components/maps/components/GpsTools/classes/index.d.ts +4 -0
- package/components/maps/components/GpsTools/classes/types.d.ts +20 -0
- package/components/maps/components/GpsTools/constants.d.ts +8 -0
- package/components/maps/components/GpsTools/contexts/GpsToolsContext/index.d.ts +19 -0
- package/components/maps/components/GpsTools/contexts/GpsToolsContext/store.d.ts +16 -0
- package/components/maps/components/GpsTools/contexts/GpsToolsContext/types.d.ts +173 -0
- package/components/maps/components/GpsTools/hooks/useGpsToolsStore/index.d.ts +2 -0
- package/components/maps/components/GpsTools/hooks/useLayers/index.d.ts +1 -0
- package/components/maps/components/GpsTools/icons.d.ts +15 -0
- package/components/maps/components/GpsTools/index.1b6d82bc.js +2086 -0
- package/components/maps/components/GpsTools/index.d.ts +2 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/index.d.ts +9 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/constants.d.ts +7 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/model.d.ts +122 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/constants.d.ts +20 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/helpers.d.ts +7 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useDrawing.d.ts +11 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useSubmit.d.ts +8 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useSumbitErrorsFocus.d.ts +5 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useValidation.d.ts +22 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/types.d.ts +6 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/validations.d.ts +5 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/types.d.ts +7 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/validations.d.ts +6 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/FillData/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/types.d.ts +10 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/types.d.ts +25 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofencesList/hooks/useCheckedFeatures.d.ts +9 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofencesList/hooks/useCheckedGeofences.d.ts +4 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofencesList/hooks/useColumns.d.ts +9 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofencesList/hooks/useMaster.d.ts +20 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofencesList/hooks/useRowActionsGetter.d.ts +9 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofencesList/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofencesList/subcomponents/Filter/index.d.ts +7 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/constants.d.ts +30 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/hooks/useMeasure.d.ts +31 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/hooks/useValidation.d.ts +10 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/subcomponents/MeasureData/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/subcomponents/MeasureData/types.d.ts +6 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/subcomponents/MeasureData/validations.d.ts +2 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/types.d.ts +9 -0
- package/components/maps/components/GpsTools/types.d.ts +34 -0
- package/components/maps/components/Map/Map.d.ts +2 -0
- package/components/maps/components/Map/classes/index.d.ts +5 -0
- package/components/maps/components/Map/classes/types.d.ts +19 -0
- package/components/maps/components/Map/constants.d.ts +11 -0
- package/components/maps/components/Map/contexts/MapContext/MapContext.d.ts +19 -0
- package/components/maps/components/Map/contexts/MapContext/helper.d.ts +8 -0
- package/components/maps/components/Map/contexts/MapContext/index.d.ts +2 -0
- package/components/maps/components/Map/contexts/MapContext/store.d.ts +16 -0
- package/components/maps/components/Map/contexts/MapContext/types.d.ts +414 -0
- package/components/maps/components/Map/dictionary.d.ts +70 -0
- package/components/maps/components/Map/featureRenders/CommonFeatureRender/index.d.ts +8 -0
- package/components/maps/components/Map/featureRenders/MarkerFeatureRender/IconMarker.d.ts +6 -0
- package/components/maps/components/Map/featureRenders/MarkerFeatureRender/IconMarkerGrua.d.ts +1 -0
- package/components/maps/components/Map/featureRenders/MarkerFeatureRender/IconMarkerTaxi.d.ts +1 -0
- package/components/maps/components/Map/featureRenders/MarkerFeatureRender/index.d.ts +2 -0
- package/components/maps/components/Map/featureRenders/index.d.ts +1 -0
- package/components/maps/components/Map/hooks/useAutoFocus/index.d.ts +8 -0
- package/components/maps/components/Map/hooks/useAutoFocus/types.d.ts +15 -0
- package/components/maps/components/Map/hooks/useDisableZoomEvents/index.d.ts +1 -0
- package/components/maps/components/Map/hooks/useMapStore/index.d.ts +3 -0
- package/components/maps/components/Map/index.d.ts +7 -0
- package/components/maps/components/Map/index.f38df83e.js +1338 -0
- package/components/maps/components/Map/pluginLayers/PolylineWithArrows/index.d.ts +9 -0
- package/components/maps/components/Map/pluginLayers/index.d.ts +1 -0
- package/components/maps/components/Map/subcomponents/LayersContainer/index.d.ts +2 -0
- package/components/maps/components/Map/subcomponents/LayersTool/hooks/useCheckedLayers.d.ts +9 -0
- package/components/maps/components/Map/subcomponents/LayersTool/hooks/useColumns.d.ts +15 -0
- package/components/maps/components/Map/subcomponents/LayersTool/hooks/useMaster.d.ts +12 -0
- package/components/maps/components/Map/subcomponents/LayersTool/index.d.ts +1 -0
- package/components/maps/components/Map/subcomponents/LayersTool/model.d.ts +19 -0
- package/components/maps/components/Map/subcomponents/MainTools/index.d.ts +2 -0
- package/components/maps/components/Map/subcomponents/MainTools/types.d.ts +5 -0
- package/components/maps/components/Map/subcomponents/MyLayer/index.d.ts +17 -0
- package/components/maps/components/Map/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/index.d.ts +20 -0
- package/components/maps/components/Map/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/types.d.ts +11 -0
- package/components/maps/components/Map/subcomponents/MyLayer/subcomponents/RenderByEachFeatureComponent/index.d.ts +12 -0
- package/components/maps/components/Map/subcomponents/MyLayer/subcomponents/RenderByEachFeatureComponent/types.d.ts +5 -0
- package/components/maps/components/Map/subcomponents/MyLayer/types.d.ts +2 -0
- package/components/maps/components/Map/types.d.ts +28 -0
- package/components/maps/index.d.ts +3 -0
- package/components/modal/WindowBase.a4534b0b.js +74 -0
- package/components/modal/WindowConfirm.7a79bfa5.js +102 -0
- package/components/modal/index.61389369.js +57 -0
- package/components/mui_extended/Accordion/{index.3087f40e.js → index.f1289de0.js} +4 -4
- package/components/mui_extended/Button/classes/types.d.ts +0 -2
- package/components/mui_extended/Button/{index.0f2552ed.js → index.007f5a6e.js} +5 -5
- package/components/mui_extended/{CheckBox.38abccd8.js → CheckBox.e662d20c.js} +1 -1
- package/components/mui_extended/IconButton/{index.5afe56b7.js → index.b705c196.js} +2 -2
- package/components/mui_extended/LoadingButton/classes/constants.d.ts +1 -1
- package/components/mui_extended/MenuActions/{index.cc54c35c.js → index.aa43c4f2.js} +5 -19
- package/components/mui_extended/Pager/{index.5fbbefe2.js → index.9928807e.js} +3 -2
- package/components/mui_extended/Tab/{index.ae9ea641.js → index.cefe27e7.js} +6 -6
- package/components/mui_extended/ToggleButton/ToggleButton.d.ts +1 -1
- package/components/mui_extended/ToggleButton/{index.667d63cd.js → index.b053aa70.js} +1 -5
- package/components/mui_extended/ToggleButton/types.d.ts +2 -2
- package/components/mui_extended/ToggleIconButton/{index.2de19be3.js → index.80d38bf4.js} +1 -6
- package/components/mui_extended/ToggleIconButton/types.d.ts +1 -1
- package/components/mui_extended/index.b606cd9d.js +1 -0
- package/contexts/ModalContext/{index.ef38d747.js → index.054af5d8.js} +1 -1
- package/hocs/withToggle/index.d.ts +1 -9
- package/hocs/withToggle/types.d.ts +10 -0
- package/hooks/useFormAddEdit/index.b4348b6a.js +96 -0
- package/hooks/useFormReadyForUpdate/index.d.ts +6 -0
- package/hooks/useFormReadyForUpdate/index.f60f500e.js +20 -0
- package/hooks/useModal/{index.8acace45.js → index.acc61361.js} +1 -1
- package/hooks/useSizeContainer/contants.d.ts +1 -0
- package/hooks/useSizeContainer/index.62b4e0c4.js +35 -0
- package/hooks/useSizeContainer/index.d.ts +8 -0
- package/hooks/useStateRef/index.538edb89.js +15 -0
- package/hooks/useStateRef/index.d.ts +8 -0
- package/hooks/useTab/index.500c048b.js +12 -0
- package/index.js +225 -213
- package/package.json +6 -8
- package/{react-draggable.ee21cb7e.js → react-draggable.2bc0e647.js} +4 -4
- package/{react-json-view.5636414a.js → react-json-view.57125fcf.js} +1 -1
- package/{react-resizable.ee028152.js → react-resizable.53094455.js} +5 -5
- package/{react-splitter-layout.c5d98bf7.js → react-splitter-layout.8b1655c8.js} +3 -3
- package/test/getNameDataTestId.14875ec7.js +6 -0
- package/utils/capitalizeFirstLetter.d.ts +1 -0
- package/utils/getComponentUtilityClass.d.ts +1 -0
- package/utils/getPaletteColor.d.ts +2 -0
- package/utils/getThemeVariantColor.d.ts +3 -0
- package/utils/getTransformXY.d.ts +4 -0
- package/utils/index.d.ts +6 -7
- package/utils/isValidDate.d.ts +1 -0
- package/utils/types.d.ts +16 -0
- package/components/CommonActions/components/ActionFormCancel/index.3b2605ee.js +0 -144
- package/components/CommonActions/components/Actions/index.93e9112b.js +0 -161
- package/components/DraggableWindow/index.d.ts +0 -3
- package/components/DraggableWindow/index.f9f067bd.js +0 -39
- package/components/DraggableWindow/types.d.ts +0 -5
- package/components/Icon/index.e215d0f0.js +0 -248
- package/components/PDFViewer/PDFViewer.d.ts +0 -2
- package/components/PDFViewer/classes/constants.d.ts +0 -1
- package/components/PDFViewer/classes/index.d.ts +0 -7
- package/components/PDFViewer/classes/types.d.ts +0 -7
- package/components/PDFViewer/index.4d16e5bc.js +0 -83
- package/components/PDFViewer/index.d.ts +0 -1
- package/components/PDFViewer/types.d.ts +0 -3
- package/components/PrintingSystem/subcomponents/QRImageNode/index.d.ts +0 -2
- package/components/PrintingSystem/subcomponents/QRImageNode/types.d.ts +0 -3
- package/components/PropertyValue/index.45482ca3.js +0 -222
- package/components/ToastContainer/ToastContainer.d.ts +0 -2
- package/components/ToastContainer/classes/constants.d.ts +0 -1
- package/components/ToastContainer/classes/index.d.ts +0 -8
- package/components/ToastContainer/classes/types.d.ts +0 -9
- package/components/ToastContainer/index.5e729fbb.js +0 -89
- package/components/ToastContainer/index.d.ts +0 -2
- package/components/ToastContainer/subcomponents/ToastMessage/index.d.ts +0 -2
- package/components/ToastContainer/subcomponents/ToastMessage/types.d.ts +0 -5
- package/components/ToastContainer/types.d.ts +0 -4
- package/components/areas/components/index.4381fcfa.js +0 -32
- package/components/areas/contexts/index.003a53c1.js +0 -4
- package/components/areas/hooks/index.0184c6f7.js +0 -4
- package/components/areas/index.1b5b2267.js +0 -56
- package/components/hook-form/RHFColorPicker/classes/constants.d.ts +0 -1
- package/components/hook-form/RHFColorPicker/classes/index.d.ts +0 -11
- package/components/hook-form/RHFColorPicker/classes/types.d.ts +0 -11
- package/components/hook-form/RHFColorPicker/index.c7695748.js +0 -166
- package/components/hook-form/RHFColorPicker/subcomponents/Skeleton/indext.d.ts +0 -1
- package/components/maps/leaflet.d.ts +0 -29
- package/components/modal/WindowBase.8e3e5337.js +0 -158
- package/components/modal/WindowConfirm.eec3e5d0.js +0 -186
- package/components/modal/index.ac0c9093.js +0 -146
- package/components/mui_extended/index.6837d969.js +0 -24
- package/hooks/useFormAddEdit/index.8276444a.js +0 -181
- package/hooks/useTab/index.07f652ec.js +0 -101
- package/node_modules.79f5ed2f.js +0 -6921
- package/vendor.f0742647.js +0 -140
- package/components/GridLayout/subcomponents/{GridItem → Griditem}/index.d.ts +0 -0
- package/components/GridLayout/subcomponents/{GridItem → Griditem}/types.d.ts +0 -0
- package/components/mui_extended/Badge/{index.b09524fe.js → index.09f5aee5.js} +1 -1
- package/components/mui_extended/Popover/{index.9f35d0eb.js → index.b3eca6b1.js} +2 -2
- package/components/mui_extended/Tooltip/{index.5a795dcd.js → index.24a2bc3f.js} +1 -1
- package/components/mui_extended/Typography/{index.443590d6.js → index.379dd374.js} +1 -1
- package/utils/{index.de903261.js → index.9ad3909a.js} +3 -3
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface TabAction {
|
|
3
|
+
id: string;
|
|
4
|
+
icon?: string | React.ReactElement;
|
|
5
|
+
component: React.ReactNode;
|
|
6
|
+
label: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function TabTools(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const ENDPOINT_GEOFENCE_GET = "geofences";
|
|
2
|
+
export declare const ENDPOINT_GEOFENCE_NEW_EDIT = "geofences";
|
|
3
|
+
export declare enum GeofencesFeaturesLayers {
|
|
4
|
+
LAYER_GEOFENCES = "geofences",
|
|
5
|
+
LAYER_GEOFENCES_TRANSIT_FEATURES = "geofencesCrossingFeatures",
|
|
6
|
+
LAYER_GEOFENCES_INTERNAL_FEATURES = "geofencesInternalFeatures"
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function GeofencesTool(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { GeofenceId } from '../../../../contexts/GpsToolsContext/types';
|
|
2
|
+
import type { Feature, GeoJsonProperties, LineString, MultiLineString, MultiPoint, MultiPolygon, Point, Polygon } from '../../../../../Map/contexts/MapContext/types';
|
|
3
|
+
/**
|
|
4
|
+
* @description Tipos de geometría compatibles con las geocercas
|
|
5
|
+
* @interface GeofenceGeometry
|
|
6
|
+
*/
|
|
7
|
+
export declare type GeofenceGeometry = Point | Polygon | MultiPolygon;
|
|
8
|
+
/**
|
|
9
|
+
* @description Tipos de geometría Compatibles con las geocercas
|
|
10
|
+
* @interface CrossingGeometry
|
|
11
|
+
*/
|
|
12
|
+
export declare type CrossingGeometry = Polygon | Point;
|
|
13
|
+
/**
|
|
14
|
+
* @description Tipos de features de transtio soportados
|
|
15
|
+
* @interface CrossingFeature
|
|
16
|
+
*/
|
|
17
|
+
export declare type CrossingFeature = Feature<CrossingGeometry>;
|
|
18
|
+
export declare type InternalGeometry = Point | Polygon | MultiPolygon | MultiPoint | LineString | MultiLineString;
|
|
19
|
+
/**
|
|
20
|
+
* @description Tipos de features de transtio soportados
|
|
21
|
+
* @interface InternalFeature
|
|
22
|
+
*/
|
|
23
|
+
export declare type InternalFeature = Feature<InternalGeometry>;
|
|
24
|
+
export declare type GeofenceTypeId = 'gt_polygon' | 'gt_circle' | 'gt_rectangle' | 'gt_multipolygon';
|
|
25
|
+
export declare type GeofenceType = {
|
|
26
|
+
id: GeofenceTypeId;
|
|
27
|
+
name: string;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @description Modelo de datos proveniente del endpoint get de geocercas
|
|
31
|
+
* @interface GeofenceGetModel
|
|
32
|
+
*/
|
|
33
|
+
export interface GeofenceGetModel {
|
|
34
|
+
/**
|
|
35
|
+
* id de la geocerca
|
|
36
|
+
*/
|
|
37
|
+
id: GeofenceId;
|
|
38
|
+
/**
|
|
39
|
+
* "name" nombre dado por el cliente a la geocerca
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
* "active" si está activa o no lo geocerca
|
|
44
|
+
*/
|
|
45
|
+
active: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* "type" tipo de geocerca con idioma
|
|
48
|
+
*/
|
|
49
|
+
type: GeofenceType;
|
|
50
|
+
/**
|
|
51
|
+
* "geometry" geometría de la geocerca compatible con GeoJSON
|
|
52
|
+
*/
|
|
53
|
+
geometry: GeofenceGeometry;
|
|
54
|
+
/**
|
|
55
|
+
* "properties" propiedades de la geometria
|
|
56
|
+
*/
|
|
57
|
+
properties: GeoJsonProperties;
|
|
58
|
+
/**
|
|
59
|
+
* timeMinInSeconds indica el tiempo mínimo para ingresar a una geocerca
|
|
60
|
+
*/
|
|
61
|
+
timeMinInSeconds: number;
|
|
62
|
+
/**
|
|
63
|
+
* timeMinOutSeconds indica el tiempo mínimo para salir de una geocerca
|
|
64
|
+
*/
|
|
65
|
+
timeMinOutSeconds: number;
|
|
66
|
+
/**
|
|
67
|
+
* "countCrossingFeatures" indica si la cantidad de features de cruce
|
|
68
|
+
*/
|
|
69
|
+
countCrossingFeatures: number;
|
|
70
|
+
/**
|
|
71
|
+
* "countInternalFeatures" indica la cantidad de features internos que tiene la geocerca
|
|
72
|
+
*/
|
|
73
|
+
countInternalFeatures: number;
|
|
74
|
+
/**
|
|
75
|
+
* "alias" alias de la geocerca, si no tiene es null y si tiene, es un string unico en todas las geocercas
|
|
76
|
+
*/
|
|
77
|
+
alias?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* customerId indica el id del cliente al que pertenece la geocerca, si no tiene es null,
|
|
80
|
+
* si es de un cliente es un string unico en todas las geocercas
|
|
81
|
+
*/
|
|
82
|
+
customerId?: string | null;
|
|
83
|
+
createdAt: string;
|
|
84
|
+
updatedAt: string | null;
|
|
85
|
+
}
|
|
86
|
+
interface AuthUserOptionsType {
|
|
87
|
+
activation: boolean;
|
|
88
|
+
delete: boolean;
|
|
89
|
+
edit: boolean;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* @description Modelo de datos proveniente del endpoint list de geocercas
|
|
93
|
+
* @interface GeofenceListModel
|
|
94
|
+
*/
|
|
95
|
+
export interface GeofenceListModel extends Omit<GeofenceGetModel, 'geometry'> {
|
|
96
|
+
/**
|
|
97
|
+
* "geometry" geometría de la geocerca compatible con GeoJSON
|
|
98
|
+
*/
|
|
99
|
+
geometry: GeofenceGeometry | null;
|
|
100
|
+
authUserOptions: AuthUserOptionsType;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* @description Modelo de datos para enviar al endpoint de creacion de geocercas
|
|
104
|
+
* @interface GeofenceNewModel
|
|
105
|
+
*/
|
|
106
|
+
export interface GeofenceNewModel extends Pick<GeofenceGetModel, 'name' | 'geometry' | 'properties' | 'timeMinInSeconds' | 'timeMinOutSeconds' | 'alias' | 'customerId'> {
|
|
107
|
+
/**
|
|
108
|
+
* "type" tipo de geocerca con idioma
|
|
109
|
+
*/
|
|
110
|
+
typeId: GeofenceTypeId;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* @description Modelo de datos para enviar al endpoint de creacion de geocercas
|
|
114
|
+
* @interface GeofenceNewModel
|
|
115
|
+
*/
|
|
116
|
+
export interface GeofenceEditModel extends GeofenceNewModel {
|
|
117
|
+
/**
|
|
118
|
+
* id de la geocerca
|
|
119
|
+
*/
|
|
120
|
+
geofenceId: GeofenceId;
|
|
121
|
+
}
|
|
122
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FormAddEditValues } from './types';
|
|
2
|
+
export declare const STROKE_COLOR_DEFAULT = "#aaccaa";
|
|
3
|
+
export declare const STROKE_OPACITY_DEFAULT: {
|
|
4
|
+
value: number;
|
|
5
|
+
label: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const STROKE_WHEIGTH_DEFAULT: {
|
|
8
|
+
value: number;
|
|
9
|
+
label: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const STROKE_DASH_ARRAY_DEFAULT: {
|
|
12
|
+
value: string;
|
|
13
|
+
label: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const FILL_COLOR_DEFAULT = "#aa3000";
|
|
16
|
+
export declare const FILL_OPACITY_DEFAULT: {
|
|
17
|
+
value: number;
|
|
18
|
+
label: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const initialValues: FormAddEditValues;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GeofenceGeometry, GeofenceGetModel, GeofenceTypeId } from '../../model';
|
|
2
|
+
import { FormAddEditValues } from './types';
|
|
3
|
+
import * as L from 'leaflet';
|
|
4
|
+
export declare const formatDataEnpoint: (response: {
|
|
5
|
+
data: GeofenceGetModel;
|
|
6
|
+
}) => FormAddEditValues;
|
|
7
|
+
export declare const getLayerFromGeometry: (geometry: GeofenceGeometry | null, geofenceTypeId: GeofenceTypeId | null, radius: number | null) => L.Polygon<any> | L.Circle<any> | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* hook Encargado manejar los eventos de dibujo y setear en hook forms values,
|
|
3
|
+
* los datos asociados a una geocerca
|
|
4
|
+
* @returns
|
|
5
|
+
*/
|
|
6
|
+
export declare function useDrawing(): {
|
|
7
|
+
inEdition: boolean;
|
|
8
|
+
handleDraw: () => void;
|
|
9
|
+
handleFinish: () => void;
|
|
10
|
+
geometrTypeIdCached: "gt_polygon" | "gt_circle" | "gt_rectangle" | "gt_multipolygon" | null;
|
|
11
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
|
+
import { FormAddEditValues } from '../types';
|
|
3
|
+
export interface UseSubmitProps {
|
|
4
|
+
objectId?: number;
|
|
5
|
+
}
|
|
6
|
+
export declare function useSubmit(props: UseSubmitProps): {
|
|
7
|
+
onSubmit: (data: FormAddEditValues | FieldValues) => Promise<void>;
|
|
8
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as Yup from 'yup';
|
|
2
|
+
export declare function useValidation(): {
|
|
3
|
+
validationSchema: Yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
4
|
+
timeMinInSeconds: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
|
|
5
|
+
timeMinOutSeconds: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
|
|
6
|
+
name: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
7
|
+
geometry: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape> | null>;
|
|
8
|
+
geofenceType: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape> | null>;
|
|
9
|
+
}>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
10
|
+
timeMinInSeconds: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
|
|
11
|
+
timeMinOutSeconds: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
|
|
12
|
+
name: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
13
|
+
geometry: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape> | null>;
|
|
14
|
+
geofenceType: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape> | null>;
|
|
15
|
+
}>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
16
|
+
timeMinInSeconds: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
|
|
17
|
+
timeMinOutSeconds: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
|
|
18
|
+
name: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
19
|
+
geometry: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape> | null>;
|
|
20
|
+
geofenceType: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape> | null>;
|
|
21
|
+
}>>>;
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function GeofenceAddEdit(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ConfigData(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GetLabelType } from '@m4l/core';
|
|
2
|
+
export declare function ConfigDataValidation(getLabel: GetLabelType): {
|
|
3
|
+
timeMinInSeconds: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
|
|
4
|
+
timeMinOutSeconds: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
|
|
5
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function GeneralData(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GetLabelType } from '@m4l/core';
|
|
2
|
+
export declare function GeneralDataValidation(getLabel: GetLabelType): {
|
|
3
|
+
name: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
4
|
+
geometry: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape> | null>;
|
|
5
|
+
geofenceType: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape> | null>;
|
|
6
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function MyActions(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function MyTabs(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function StyleData(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function FillData(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function StrokeData(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Maybe } from "@m4l/core";
|
|
2
|
+
import { StyleOpacity, StyleDashArray, StyleWheight } from "../../../../../../../../types";
|
|
3
|
+
export interface FormStyleDataValues {
|
|
4
|
+
strokeColor?: string;
|
|
5
|
+
strokeOpacity?: Maybe<StyleOpacity>;
|
|
6
|
+
strokeWeight?: Maybe<StyleWheight>;
|
|
7
|
+
strokeDashArray?: Maybe<StyleDashArray>;
|
|
8
|
+
fillColor?: string;
|
|
9
|
+
fillOpacity?: Maybe<StyleOpacity>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { StyleOpacity, StyleDashArray, StyleWheight } from '../../../../../../types';
|
|
2
|
+
import { GeofenceGetModel } from '../../model';
|
|
3
|
+
import { FormConfigDataValues } from './subcomponents/ConfigData/types';
|
|
4
|
+
import { FormGeneralDataValues } from './subcomponents/GeneralData/types';
|
|
5
|
+
import { FormStyleDataValues } from './subcomponents/StyleData/types';
|
|
6
|
+
export declare type ResponseGet = {
|
|
7
|
+
data: GeofenceGetModel;
|
|
8
|
+
};
|
|
9
|
+
export declare type FormAddEditValues = FormGeneralDataValues & FormConfigDataValues & FormStyleDataValues & {
|
|
10
|
+
inEdition: boolean;
|
|
11
|
+
lat?: number | null;
|
|
12
|
+
lng?: number | null;
|
|
13
|
+
properties: {
|
|
14
|
+
radius?: number | null;
|
|
15
|
+
strokeColor: string;
|
|
16
|
+
strokeOpacity: StyleOpacity;
|
|
17
|
+
strokeWeight: StyleWheight;
|
|
18
|
+
strokeDashArray: StyleDashArray;
|
|
19
|
+
fillColor: string;
|
|
20
|
+
fillOpacity: StyleOpacity;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export interface GeofenceAddEditProps {
|
|
24
|
+
geofenceId?: number;
|
|
25
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GeofencesFeaturesLayers } from '../../../constants';
|
|
2
|
+
/**
|
|
3
|
+
* Hook encargado de cargar los features y pintarlos cuando los seleccionen
|
|
4
|
+
* @param layerId
|
|
5
|
+
* @param featuresType
|
|
6
|
+
* @param endpoint
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export declare function useCheckedFeatures(layerId: GeofencesFeaturesLayers, featuresType: 'CrossingFeatures' | 'InternalFeatures', endpoint: string): [ReadonlySet<number>, (newFeatures: ReadonlySet<number>) => void];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GeofenceListModel } from '../../../model';
|
|
2
|
+
import { Column } from 'react-data-grid';
|
|
3
|
+
declare type UseColumnsProps<Row> = {
|
|
4
|
+
rowKeyGetter: (row: Row) => number;
|
|
5
|
+
};
|
|
6
|
+
export declare function useColumns(props: UseColumnsProps<GeofenceListModel>): {
|
|
7
|
+
columns: Column<GeofenceListModel, unknown>[];
|
|
8
|
+
};
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { GeofenceId } from '../../../../../../../contexts/GpsToolsContext/types';
|
|
3
|
+
import { GeofenceListModel } from '../../../model';
|
|
4
|
+
export declare function useMaster(): {
|
|
5
|
+
rowKeyGetter: (row: GeofenceListModel) => number;
|
|
6
|
+
columns: import("react-data-grid").Column<GeofenceListModel, unknown>[];
|
|
7
|
+
refresh: () => void;
|
|
8
|
+
setBackendQueryParams: import("react").Dispatch<import("react").SetStateAction<Record<string, unknown>>>;
|
|
9
|
+
pagerState: import("@m4l/core").PagerState;
|
|
10
|
+
rows: GeofenceListModel[];
|
|
11
|
+
onPageChange: (newPage: number) => void;
|
|
12
|
+
onRowsPerPageChange: (newRowsPerPage: number) => void;
|
|
13
|
+
rowActionsGetter: (row: GeofenceListModel) => [] | import("../../../../../../../../../..").MenuAction[];
|
|
14
|
+
selectedRows: ReadonlySet<number>;
|
|
15
|
+
onSelectedRowsChange: (newRowsSelectSet: ReadonlySet<GeofenceId>) => void;
|
|
16
|
+
checkedRows: ReadonlySet<number>;
|
|
17
|
+
onCheckedRowsChange: (newGeofences: ReadonlySet<number>) => void;
|
|
18
|
+
setRows: import("react").Dispatch<import("react").SetStateAction<GeofenceListModel[]>>;
|
|
19
|
+
goToAddEdit: (geofenceId?: number | undefined) => void;
|
|
20
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MenuAction } from '../../../../../../../../../../mui_extended';
|
|
2
|
+
import { GeofenceListModel } from '../../../model';
|
|
3
|
+
interface UseRowActionsProps {
|
|
4
|
+
fullRefresh: (id?: number) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare function useRowActionsGetter(props: UseRowActionsProps): {
|
|
7
|
+
rowActionsGetter: (row: GeofenceListModel) => MenuAction[] | [];
|
|
8
|
+
};
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function GeofencesList(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface FilterProps {
|
|
3
|
+
refresh: () => void;
|
|
4
|
+
setBackendQueryParams: React.Dispatch<React.SetStateAction<Record<string, unknown>>>;
|
|
5
|
+
}
|
|
6
|
+
export declare function Filter(props: FilterProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { FormMeasureValues } from './types';
|
|
2
|
+
export declare const STROKE_COLOR_DEFAULT = "#aaccaa";
|
|
3
|
+
export declare const STROKE_OPACITY_DEFAULT: {
|
|
4
|
+
value: number;
|
|
5
|
+
label: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const STROKE_WHEIGTH_DEFAULT: {
|
|
8
|
+
value: number;
|
|
9
|
+
label: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const STROKE_DASH_ARRAY_DEFAULT: {
|
|
12
|
+
value: string;
|
|
13
|
+
label: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const FILL_COLOR_DEFAULT = "#aa3000";
|
|
16
|
+
export declare const FILL_OPACITY_DEFAULT: {
|
|
17
|
+
value: number;
|
|
18
|
+
label: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const INITIAL_FORM_VALUES: FormMeasureValues;
|
|
21
|
+
export declare const STYLE_MEASURE_OPTIONS: {
|
|
22
|
+
strokeLineColor: string;
|
|
23
|
+
strokeLineWeight: number;
|
|
24
|
+
markerHeight: number;
|
|
25
|
+
markerWidth: number;
|
|
26
|
+
labelMarkerHeight: number;
|
|
27
|
+
labelMarkerWidth: number;
|
|
28
|
+
labelMarkerAnchorY: number;
|
|
29
|
+
labelMarkerAnchorX: number;
|
|
30
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as L from 'leaflet';
|
|
2
|
+
import { MagnitudeFactorItem } from '../../../../../types';
|
|
3
|
+
import { StatusEdition } from '../types';
|
|
4
|
+
/**
|
|
5
|
+
* hook Encargado manejar los eventos de dibujo y setear en hook forms values,
|
|
6
|
+
* los datos asociados a una geocerca
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export declare type MeasurePoint = {
|
|
10
|
+
marker: L.Marker;
|
|
11
|
+
labelMarker: L.Marker;
|
|
12
|
+
formatDistanceFromPrevious: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
export interface RefCurrentMeasure {
|
|
15
|
+
dragging: boolean;
|
|
16
|
+
addMarker: boolean;
|
|
17
|
+
measurePoints: Array<MeasurePoint>;
|
|
18
|
+
layerLine?: L.Polyline;
|
|
19
|
+
magnitudFactor: MagnitudeFactorItem;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* useMeasure hook se encarga de pintar las marcas y una línea que las une, para calcular la distancia o el area
|
|
23
|
+
* de ellas. En su primera versión no incluye agregar nuevas marcas entre los vertices por facilidad de implementación
|
|
24
|
+
* ya que el costo beneficio es muy alto si se coloca esa capacidad.
|
|
25
|
+
* @returns
|
|
26
|
+
*/
|
|
27
|
+
export declare function useMeasure(): {
|
|
28
|
+
statusEdition: StatusEdition;
|
|
29
|
+
magnitudFactor: MagnitudeFactorItem;
|
|
30
|
+
value: number;
|
|
31
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as Yup from 'yup';
|
|
2
|
+
export declare function useValidation(): {
|
|
3
|
+
validationSchema: Yup.ObjectSchema<{
|
|
4
|
+
[x: string]: Yup.AnySchema<any, any, any> | import("yup/lib/Reference").default<unknown> | import("yup/lib/Lazy").default<any, any>;
|
|
5
|
+
}, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<{
|
|
6
|
+
[x: string]: Yup.AnySchema<any, any, any> | import("yup/lib/Reference").default<unknown> | import("yup/lib/Lazy").default<any, any>;
|
|
7
|
+
}>, import("yup/lib/object").AssertsShape<{
|
|
8
|
+
[x: string]: Yup.AnySchema<any, any, any> | import("yup/lib/Reference").default<unknown> | import("yup/lib/Lazy").default<any, any>;
|
|
9
|
+
}>>;
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function MeasureTool(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function MeasureData(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function MyActions(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FormStatusLoad } from '../../../../../../../../contexts';
|
|
2
|
+
import { FormGeneralDataValues } from './subcomponents/MeasureData/types';
|
|
3
|
+
export declare type StatusEdition = 'initial' | 'draw';
|
|
4
|
+
export declare type FormMeasureValues = FormGeneralDataValues & {
|
|
5
|
+
statusLoad: FormStatusLoad;
|
|
6
|
+
reInits: number;
|
|
7
|
+
statusEdition: StatusEdition;
|
|
8
|
+
value: string | null;
|
|
9
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { GeofenceTypeId } from "./subcomponents/TabTools/subcomponents/GeofencesTool/model";
|
|
2
|
+
/**
|
|
3
|
+
* Por ahora solo distancia.
|
|
4
|
+
*/
|
|
5
|
+
export declare type MeasureTypeId = 'distance';
|
|
6
|
+
export interface MeasureTypeItem {
|
|
7
|
+
id: MeasureTypeId;
|
|
8
|
+
name: string;
|
|
9
|
+
}
|
|
10
|
+
export interface MagnitudeFactorItem {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
symbol: string;
|
|
14
|
+
factor_x0: number;
|
|
15
|
+
factor_x1: number;
|
|
16
|
+
factor_x2: number;
|
|
17
|
+
}
|
|
18
|
+
export interface GeofenceTypeItem {
|
|
19
|
+
id: GeofenceTypeId;
|
|
20
|
+
name: string;
|
|
21
|
+
url: string;
|
|
22
|
+
}
|
|
23
|
+
export interface StyleOpacity {
|
|
24
|
+
value: number;
|
|
25
|
+
label: string;
|
|
26
|
+
}
|
|
27
|
+
export interface StyleWheight {
|
|
28
|
+
value: number;
|
|
29
|
+
label: string;
|
|
30
|
+
}
|
|
31
|
+
export interface StyleDashArray {
|
|
32
|
+
value: string;
|
|
33
|
+
label: string;
|
|
34
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { MapClasses } from './types';
|
|
2
|
+
import { OwnerState } from '../contexts/MapContext/types';
|
|
3
|
+
export declare const mapClasses: MapClasses;
|
|
4
|
+
export declare const useMapUtilityClasses: (_ownerState: OwnerState) => Record<"root" | "mapContainer" | "svgLayersContainer" | "svgLayer" | "svgLayerMultiPoints" | "layerMarker" | "mainToolsRoot" | "measureMarkerRoot" | "measureMarkerContainer" | "measureMarkerContainerRhomb" | "measureMarkerContainerSlot" | "measureMarkerContainerSlotNumber" | "measureLabelMarkerRoot" | "measureLabelMarkerContainer" | "measureLabelMarkerDistance" | "measureLabelMarkerRemove", string>;
|
|
5
|
+
export declare type Classes = ReturnType<typeof useMapUtilityClasses>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface MapClasses {
|
|
2
|
+
root: string;
|
|
3
|
+
mapContainer: string;
|
|
4
|
+
svgLayersContainer: string;
|
|
5
|
+
svgLayer: string;
|
|
6
|
+
svgLayerMultiPoints: string;
|
|
7
|
+
layerMarker: string;
|
|
8
|
+
mainToolsRoot: string;
|
|
9
|
+
measureMarkerRoot: string;
|
|
10
|
+
measureMarkerContainer: string;
|
|
11
|
+
measureMarkerContainerRhomb: string;
|
|
12
|
+
measureMarkerContainerSlot: string;
|
|
13
|
+
measureMarkerContainerSlotNumber: string;
|
|
14
|
+
measureLabelMarkerRoot: string;
|
|
15
|
+
measureLabelMarkerContainer: string;
|
|
16
|
+
measureLabelMarkerDistance: string;
|
|
17
|
+
measureLabelMarkerRemove: string;
|
|
18
|
+
}
|
|
19
|
+
export declare type MapClassesKey = keyof MapClasses;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const COMPONENT_TEST_ID = "M4LMap";
|
|
2
|
+
export declare const COMPONENT_CLASS_NAME = "M4LMap";
|
|
3
|
+
export declare const EARTH_RADIO = 6378137;
|
|
4
|
+
export declare const DN = 500;
|
|
5
|
+
export declare const DE = 500;
|
|
6
|
+
export declare const DLAT: number;
|
|
7
|
+
export declare const THROTTLE_RENDER_MAP_TIMEOUT = 50;
|
|
8
|
+
export declare const MAP_ZINDEX_DEFAULT = 0;
|
|
9
|
+
export declare const MAP_ZINDEX_OVER_LAYERS = 1000;
|
|
10
|
+
export declare const MAP_ZINDEX_OVER_MAP = 1100;
|
|
11
|
+
export declare const TIME_DOUBLE_CLICK = 250;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { MapProviderProps } from './types';
|
|
3
|
+
declare const MapContext: import("react").Context<(Omit<Omit<import("zustand").StoreApi<import("./types").MapStateWithActions>, "setState"> & {
|
|
4
|
+
setState<A extends string | {
|
|
5
|
+
type: unknown;
|
|
6
|
+
}>(partial: import("./types").MapStateWithActions | Partial<import("./types").MapStateWithActions> | ((state: import("./types").MapStateWithActions) => import("./types").MapStateWithActions | Partial<import("./types").MapStateWithActions>), replace?: boolean | undefined, action?: A | undefined): void;
|
|
7
|
+
}, "setState"> & {
|
|
8
|
+
setState(nextStateOrUpdater: import("./types").MapStateWithActions | Partial<import("./types").MapStateWithActions> | ((state: import("immer/dist/internal").WritableDraft<import("./types").MapStateWithActions>) => void), shouldReplace?: boolean | undefined, action?: string | {
|
|
9
|
+
type: unknown;
|
|
10
|
+
} | undefined): void;
|
|
11
|
+
}) | null>;
|
|
12
|
+
/**
|
|
13
|
+
* @description Provedor del contexto de los mapas
|
|
14
|
+
* Expone el store (MapStore) encargado de gestionar la creación, modificación y borrado de capas.
|
|
15
|
+
* @param props
|
|
16
|
+
* @returns
|
|
17
|
+
*/
|
|
18
|
+
declare function MapProvider(props: MapProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export { MapProvider, MapContext };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { WritableDraft } from 'immer/dist/internal';
|
|
2
|
+
import type { MapStateWithActions, LayerStore } from './types';
|
|
3
|
+
export declare const DEFAULT_LAYER: Partial<LayerStore>;
|
|
4
|
+
/**
|
|
5
|
+
* @description Actualiza la clases basado en owner state
|
|
6
|
+
* @param state immer State
|
|
7
|
+
*/
|
|
8
|
+
export declare const updateOwnerStateClasses: (state: WritableDraft<MapStateWithActions>) => void;
|