@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,117 @@
|
|
|
1
|
+
import { GetLabelType } from '@m4l/core';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { PopupsClasses } from '../../classes/types';
|
|
4
|
+
import { DraggableWindowProps } from '../../../DragResizeWindow/types';
|
|
5
|
+
import { PositionXY } from '../../../../utils/types';
|
|
6
|
+
export interface PopupStoreProps extends Pick<DraggableWindowProps, 'bounds' | 'defaultPosition'> {
|
|
7
|
+
/**
|
|
8
|
+
* "popupId" Indetificador del popupId
|
|
9
|
+
*/
|
|
10
|
+
popupId: string;
|
|
11
|
+
/**
|
|
12
|
+
* "title" Titulo de la ventan
|
|
13
|
+
*/
|
|
14
|
+
title?: string;
|
|
15
|
+
/**
|
|
16
|
+
* draggable Indica si el popup es arrastrable, default true
|
|
17
|
+
*/
|
|
18
|
+
draggable?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* resizable Indica si el popup es redimensionable, default true
|
|
21
|
+
*/
|
|
22
|
+
resizable?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* maxSizeByPadding Tamaño maximo del popup en terminos de padding con respecto al conenedor padre
|
|
25
|
+
*/
|
|
26
|
+
maxSizeByPadding?: PositionXY;
|
|
27
|
+
/**
|
|
28
|
+
* functionComponent retorna el componente que se va a mostrar en el popup.
|
|
29
|
+
* Se utiliza ()=>ReactNode para evitar que zustand cargue todo el componente en el store.
|
|
30
|
+
* Lo unico que necesita es guardar la referencia la función que retorna el componente.
|
|
31
|
+
*/
|
|
32
|
+
functionComponent: (() => ReactNode);
|
|
33
|
+
/**
|
|
34
|
+
* "onMouseDown" Evento nativo del Draggable, para tomar acciones externamente
|
|
35
|
+
*/
|
|
36
|
+
onMouseDown?: (e: MouseEvent) => void;
|
|
37
|
+
}
|
|
38
|
+
export declare type PopupsStatus = 'init' | 'ready';
|
|
39
|
+
export declare type OwnerState = {
|
|
40
|
+
status: PopupsStatus;
|
|
41
|
+
/**
|
|
42
|
+
* "isMobile" cuando el navegador está en modo celular
|
|
43
|
+
*/
|
|
44
|
+
isMobile: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* "isSkeleton" indica si el componente está en skeleton.
|
|
47
|
+
*/
|
|
48
|
+
isSkeleton: boolean;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* @type
|
|
52
|
+
* @name ExternalOwnerState
|
|
53
|
+
* @description Estados que se actulizan por fuera del store, a través de hooks
|
|
54
|
+
*/
|
|
55
|
+
export declare type ExternalOwnerState = Pick<OwnerState, 'isMobile' | 'isSkeleton'>;
|
|
56
|
+
/**
|
|
57
|
+
* @interface
|
|
58
|
+
* @description Interface que define el estado del componente (variables y funciones )
|
|
59
|
+
*/
|
|
60
|
+
export interface PopupsState {
|
|
61
|
+
ownerState: OwnerState;
|
|
62
|
+
/**
|
|
63
|
+
* "classes" enfocado al funcionamiento de las clases a nivel de map
|
|
64
|
+
*/
|
|
65
|
+
classes: PopupsClasses;
|
|
66
|
+
/**
|
|
67
|
+
* "poupsIds" Poups para saber en que orden se muestran
|
|
68
|
+
*/
|
|
69
|
+
popupsIds: string[];
|
|
70
|
+
/**
|
|
71
|
+
* "hashPoups" Poups
|
|
72
|
+
*/
|
|
73
|
+
hashPopups: Record<string, PopupStoreProps>;
|
|
74
|
+
/**
|
|
75
|
+
* "getLabel" funcion que usará para traducir las etiquetas de diccionario
|
|
76
|
+
*/
|
|
77
|
+
getLabel: GetLabelType;
|
|
78
|
+
}
|
|
79
|
+
export interface PopupsStateWithActions extends PopupsState {
|
|
80
|
+
popupsActions: {
|
|
81
|
+
/**
|
|
82
|
+
* @description
|
|
83
|
+
*/
|
|
84
|
+
init(layersStore: PopupStoreProps[]): void;
|
|
85
|
+
/**
|
|
86
|
+
* @description Cambia el estado del popus
|
|
87
|
+
*/
|
|
88
|
+
setState: (state: PopupsStatus) => void;
|
|
89
|
+
/**
|
|
90
|
+
* @description Agrega una capa nueva,
|
|
91
|
+
*/
|
|
92
|
+
addPopup: (popupProps: PopupStoreProps) => void;
|
|
93
|
+
/**
|
|
94
|
+
* @description Remueve un feature especifico de la capa
|
|
95
|
+
*/
|
|
96
|
+
removePopup: (layerId: string) => void;
|
|
97
|
+
/**
|
|
98
|
+
* @description Actualiza la variable de estado "getLabel"
|
|
99
|
+
* @param newHandler handle o función que va a traducir las etiquetas, esto es necesario debido que getLabel de useModuleDictionary
|
|
100
|
+
* cambia por el useCallback, cuando el diccionario se carga.
|
|
101
|
+
* @returns void
|
|
102
|
+
*/
|
|
103
|
+
setHandlerGetLabel: (newHandler: GetLabelType) => void;
|
|
104
|
+
/**
|
|
105
|
+
* @description Modifica los estados que se actualizan externamente al Store
|
|
106
|
+
* @param newIsMobile
|
|
107
|
+
* @returns
|
|
108
|
+
*/
|
|
109
|
+
setExternalState: (newExternalState: ExternalOwnerState) => void;
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
export declare type DefaultPopupsStoreProps = PopupsState;
|
|
113
|
+
export declare type InitialPopupsStoreProps = Pick<PopupsState, 'getLabel' | 'ownerState'> & Partial<DefaultPopupsStoreProps>;
|
|
114
|
+
export interface PopupsProviderProps {
|
|
115
|
+
initialPopups?: PopupStoreProps[];
|
|
116
|
+
children: ReactNode;
|
|
117
|
+
}
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import React__default, { useContext, useRef, useEffect, createContext } from "react";
|
|
2
|
+
import { createStore, useStore } from "zustand";
|
|
3
|
+
import { shallow } from "zustand/shallow";
|
|
4
|
+
import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
|
|
5
|
+
import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
6
|
+
import { devtools } from "zustand/middleware";
|
|
7
|
+
import { immer } from "zustand/middleware/immer";
|
|
8
|
+
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
9
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
10
|
+
import { cloneDeep } from "lodash";
|
|
11
|
+
import clsx from "clsx";
|
|
12
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { styled } from "@mui/material/styles";
|
|
14
|
+
import { D as DragResizeWindow, d as draggableWindowClasses } from "../DragResizeWindow/index.67aa1e22.js";
|
|
15
|
+
import { useMap } from "react-leaflet";
|
|
16
|
+
import { u as useSizeContainer } from "../../hooks/useSizeContainer/index.62b4e0c4.js";
|
|
17
|
+
const COMPONENT_CLASS_NAME = "M4LPopupsProvider";
|
|
18
|
+
const MAP_ZINDEX_OVER_MAP = 1100;
|
|
19
|
+
const popupsClasses = generateUtilityClasses(COMPONENT_CLASS_NAME, [
|
|
20
|
+
"root",
|
|
21
|
+
"windowRoot",
|
|
22
|
+
"headerContainer",
|
|
23
|
+
"windowContent"
|
|
24
|
+
]);
|
|
25
|
+
function getPopupsUtilityClass(slot) {
|
|
26
|
+
return generateUtilityClass(COMPONENT_CLASS_NAME, slot);
|
|
27
|
+
}
|
|
28
|
+
const popupsUtilityClasses = (_ownerState) => {
|
|
29
|
+
const slots = {
|
|
30
|
+
root: ["root"],
|
|
31
|
+
popupsContainer: ["popupsContainer"],
|
|
32
|
+
windowRoot: ["windowBaseRoot"],
|
|
33
|
+
headerContainer: ["headerContainer"],
|
|
34
|
+
windowContent: ["windowContent"]
|
|
35
|
+
};
|
|
36
|
+
const composedClasses = unstable_composeClasses(slots, getPopupsUtilityClass, {});
|
|
37
|
+
return {
|
|
38
|
+
...composedClasses
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
const updateOwnerStateClasses = (state) => {
|
|
42
|
+
state.classes = popupsUtilityClasses(state.ownerState);
|
|
43
|
+
};
|
|
44
|
+
const createPopupsStore = (initProps) => {
|
|
45
|
+
const startProps = {
|
|
46
|
+
classes: popupsUtilityClasses(initProps.ownerState),
|
|
47
|
+
popupsIds: [],
|
|
48
|
+
hashPopups: {},
|
|
49
|
+
...initProps
|
|
50
|
+
};
|
|
51
|
+
return createStore(
|
|
52
|
+
devtools(
|
|
53
|
+
immer((set, get) => ({
|
|
54
|
+
...startProps,
|
|
55
|
+
popupsActions: {
|
|
56
|
+
init: (initialPopups) => {
|
|
57
|
+
set((state) => {
|
|
58
|
+
for (let index = 0; index < initialPopups.length; index++) {
|
|
59
|
+
state.hashPopups[initialPopups[index].popupId] = cloneDeep(
|
|
60
|
+
initialPopups[index]
|
|
61
|
+
);
|
|
62
|
+
state.popupsIds.push(initialPopups[index].popupId);
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
},
|
|
66
|
+
setState: (status) => {
|
|
67
|
+
set((state) => {
|
|
68
|
+
state.ownerState.status = status;
|
|
69
|
+
});
|
|
70
|
+
},
|
|
71
|
+
addPopup: (popupProps) => {
|
|
72
|
+
if (get().hashPopups[popupProps.popupId]) {
|
|
73
|
+
throw new Error(`Poupup with id ${popupProps.popupId} already exists`);
|
|
74
|
+
}
|
|
75
|
+
set((state) => {
|
|
76
|
+
state.hashPopups[popupProps.popupId] = popupProps;
|
|
77
|
+
state.popupsIds.push(popupProps.popupId);
|
|
78
|
+
});
|
|
79
|
+
},
|
|
80
|
+
removePopup: (popupId) => {
|
|
81
|
+
if (!get().hashPopups[popupId]) {
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
set((state) => {
|
|
85
|
+
state.popupsIds.splice(state.popupsIds.indexOf(popupId), 1);
|
|
86
|
+
delete state.hashPopups[popupId];
|
|
87
|
+
});
|
|
88
|
+
},
|
|
89
|
+
setHandlerGetLabel: (newHandler) => {
|
|
90
|
+
set((state) => {
|
|
91
|
+
state.getLabel = newHandler;
|
|
92
|
+
});
|
|
93
|
+
},
|
|
94
|
+
setExternalState: (newExternalState) => {
|
|
95
|
+
set((state) => {
|
|
96
|
+
state.ownerState = { ...state.ownerState, ...newExternalState };
|
|
97
|
+
updateOwnerStateClasses(state);
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
})),
|
|
102
|
+
{ name: `Popups store` }
|
|
103
|
+
)
|
|
104
|
+
);
|
|
105
|
+
};
|
|
106
|
+
function usePopupsStore(selector, equalityFn) {
|
|
107
|
+
const context = useContext(PopupsContext);
|
|
108
|
+
if (!context)
|
|
109
|
+
throw new Error("usePopupsStore context must be use inside PopupsContext");
|
|
110
|
+
return useStore(context, selector, equalityFn);
|
|
111
|
+
}
|
|
112
|
+
const PopupWindowRoot = styled("div")`
|
|
113
|
+
display: flex;
|
|
114
|
+
flex-direction: column;
|
|
115
|
+
position: relative;
|
|
116
|
+
width: 100%;
|
|
117
|
+
height: 100%;
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
.${popupsClasses.headerContainer} {
|
|
121
|
+
position: relative;
|
|
122
|
+
}
|
|
123
|
+
.${popupsClasses.windowContent} {
|
|
124
|
+
padding: 12px;
|
|
125
|
+
position: relative;
|
|
126
|
+
flex-grow: 1;
|
|
127
|
+
overflow: hidden;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
`;
|
|
131
|
+
const Popup = (props) => {
|
|
132
|
+
const {
|
|
133
|
+
popupId,
|
|
134
|
+
containerElement,
|
|
135
|
+
containerSize
|
|
136
|
+
} = props;
|
|
137
|
+
const popup = usePopupsStore((state) => state.hashPopups[popupId], shallow);
|
|
138
|
+
const {
|
|
139
|
+
draggable,
|
|
140
|
+
resizable,
|
|
141
|
+
defaultPosition,
|
|
142
|
+
bounds,
|
|
143
|
+
...others
|
|
144
|
+
} = popup;
|
|
145
|
+
const nodeRef = useRef(null);
|
|
146
|
+
return /* @__PURE__ */ jsx(DragResizeWindow, {
|
|
147
|
+
className: popupsClasses.root,
|
|
148
|
+
onMouseDown: popup.onMouseDown,
|
|
149
|
+
containerElement,
|
|
150
|
+
containerSize,
|
|
151
|
+
bounds,
|
|
152
|
+
draggable,
|
|
153
|
+
resizeable: resizable,
|
|
154
|
+
defaultPosition,
|
|
155
|
+
...others,
|
|
156
|
+
children: /* @__PURE__ */ jsxs(PopupWindowRoot, {
|
|
157
|
+
className: popupsClasses.windowRoot,
|
|
158
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
159
|
+
ref: nodeRef,
|
|
160
|
+
className: clsx(popupsClasses.headerContainer, draggableWindowClasses.draggableHandle),
|
|
161
|
+
children: /* @__PURE__ */ jsx("h3", {
|
|
162
|
+
children: popup.popupId
|
|
163
|
+
})
|
|
164
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
165
|
+
className: popupsClasses.windowContent,
|
|
166
|
+
children: popup.functionComponent()
|
|
167
|
+
})]
|
|
168
|
+
})
|
|
169
|
+
});
|
|
170
|
+
};
|
|
171
|
+
const PopupsContainer = (_props) => {
|
|
172
|
+
const map = useMap();
|
|
173
|
+
const popupsIds = usePopupsStore((state) => state.popupsIds, shallow);
|
|
174
|
+
const [containerElement, setContainerElement] = React__default.useState();
|
|
175
|
+
const containerSize = useSizeContainer(containerElement);
|
|
176
|
+
useEffect(() => {
|
|
177
|
+
if (!map)
|
|
178
|
+
return;
|
|
179
|
+
setContainerElement(map.getContainer());
|
|
180
|
+
}, [map]);
|
|
181
|
+
if (!containerElement) {
|
|
182
|
+
return null;
|
|
183
|
+
}
|
|
184
|
+
return /* @__PURE__ */ jsx(React__default.Fragment, {
|
|
185
|
+
children: popupsIds.map((id) => {
|
|
186
|
+
return /* @__PURE__ */ jsx(Popup, {
|
|
187
|
+
popupId: id,
|
|
188
|
+
containerElement,
|
|
189
|
+
containerSize
|
|
190
|
+
}, id);
|
|
191
|
+
})
|
|
192
|
+
});
|
|
193
|
+
};
|
|
194
|
+
const PopupsContext = createContext(null);
|
|
195
|
+
function PopupsProvider(props) {
|
|
196
|
+
const {
|
|
197
|
+
children,
|
|
198
|
+
initialPopups
|
|
199
|
+
} = props;
|
|
200
|
+
const {
|
|
201
|
+
getLabel
|
|
202
|
+
} = useModuleDictionary();
|
|
203
|
+
const isDesktop = useResponsiveDesktop();
|
|
204
|
+
const isSkeleton = useModuleSkeleton();
|
|
205
|
+
const isFirstRender = useFirstRender([getLabel]);
|
|
206
|
+
const popupsStoreRef = useRef();
|
|
207
|
+
if (!popupsStoreRef.current) {
|
|
208
|
+
popupsStoreRef.current = createPopupsStore({
|
|
209
|
+
getLabel,
|
|
210
|
+
ownerState: {
|
|
211
|
+
status: "init",
|
|
212
|
+
isMobile: !isDesktop,
|
|
213
|
+
isSkeleton
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
popupsStoreRef.current?.getState().popupsActions.init(initialPopups || []);
|
|
217
|
+
}
|
|
218
|
+
const {
|
|
219
|
+
setHandlerGetLabel,
|
|
220
|
+
setExternalState
|
|
221
|
+
} = useStore(popupsStoreRef.current, (state) => state.popupsActions, shallow);
|
|
222
|
+
useEffect(() => {
|
|
223
|
+
if (!isFirstRender) {
|
|
224
|
+
setHandlerGetLabel(getLabel);
|
|
225
|
+
}
|
|
226
|
+
}, [getLabel]);
|
|
227
|
+
useEffect(() => {
|
|
228
|
+
if (isFirstRender) {
|
|
229
|
+
return;
|
|
230
|
+
}
|
|
231
|
+
setExternalState({
|
|
232
|
+
isMobile: !isDesktop,
|
|
233
|
+
isSkeleton
|
|
234
|
+
});
|
|
235
|
+
}, [isDesktop, isSkeleton]);
|
|
236
|
+
return /* @__PURE__ */ jsx(PopupsContext.Provider, {
|
|
237
|
+
value: popupsStoreRef.current,
|
|
238
|
+
children: /* @__PURE__ */ jsxs(React__default.Fragment, {
|
|
239
|
+
children: [children, /* @__PURE__ */ jsx(PopupsContainer, {})]
|
|
240
|
+
})
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
export {
|
|
244
|
+
MAP_ZINDEX_OVER_MAP as M,
|
|
245
|
+
PopupsProvider as P,
|
|
246
|
+
usePopupsStore as u
|
|
247
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ContainerSize } from "../../../../utils/types";
|
|
2
|
+
export declare type ResizeReason = 'start' | 'resize' | 'stop';
|
|
3
|
+
export interface PopupProps {
|
|
4
|
+
/**
|
|
5
|
+
* "popupId" Indetificador del popupId
|
|
6
|
+
*/
|
|
7
|
+
popupId: string;
|
|
8
|
+
/**
|
|
9
|
+
* Referencia el contendedor donde van a estar los popups
|
|
10
|
+
*/
|
|
11
|
+
containerElement: HTMLElement;
|
|
12
|
+
/**
|
|
13
|
+
* "containerSize" tamaño del contenedor padre
|
|
14
|
+
*/
|
|
15
|
+
containerSize?: ContainerSize | undefined;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type PopupContainerProps = {};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
+
import { getPropertyByString } from "@m4l/core";
|
|
1
2
|
import { generateUtilityClasses } from "@mui/material";
|
|
2
3
|
import { unstable_composeClasses } from "@mui/base";
|
|
3
|
-
import { g as getComponentUtilityClass } from "../../utils/index.
|
|
4
|
+
import { g as getComponentUtilityClass } from "../../utils/index.9ad3909a.js";
|
|
4
5
|
import { styled, useTheme } from "@mui/material/styles";
|
|
5
6
|
import clsx from "clsx";
|
|
6
|
-
import { D as DividerNode } from "./subcomponents/DividerNode/index.
|
|
7
|
-
import { S as SectionNode } from "./subcomponents/SectionNode/index.
|
|
8
|
-
import { T as TextBoxNode } from "./subcomponents/TextBoxNode/index.
|
|
9
|
-
import { H as HeaderNode } from "./subcomponents/HeaderNode/index.
|
|
10
|
-
import { a as ImageNode
|
|
11
|
-
import { B as BodyNode } from "./subcomponents/BodyNode/index.
|
|
12
|
-
import { F as FooterNode } from "./subcomponents/FooterNode/index.
|
|
13
|
-
import { P as PaperNode } from "./subcomponents/PaperNode/index.
|
|
14
|
-
import { P as PropertyValueNode } from "./subcomponents/PropertyValueNode/index.
|
|
15
|
-
import { G as GridNode } from "./subcomponents/GridNode/index.
|
|
16
|
-
import { C as ChartNode } from "./subcomponents/ChartNode/index.
|
|
17
|
-
import { P as PagerNode, a as PageRender } from "../Page/index.
|
|
18
|
-
import { useBase, evaluateWithContext } from "@m4l/core";
|
|
7
|
+
import { D as DividerNode } from "./subcomponents/DividerNode/index.0e6e76ad.js";
|
|
8
|
+
import { S as SectionNode } from "./subcomponents/SectionNode/index.72cb64b8.js";
|
|
9
|
+
import { T as TextBoxNode } from "./subcomponents/TextBoxNode/index.41c261f4.js";
|
|
10
|
+
import { H as HeaderNode } from "./subcomponents/HeaderNode/index.dbf08ab4.js";
|
|
11
|
+
import { a as ImageNode } from "../Image/index.d5fed0ab.js";
|
|
12
|
+
import { B as BodyNode } from "./subcomponents/BodyNode/index.81da2c9c.js";
|
|
13
|
+
import { F as FooterNode } from "./subcomponents/FooterNode/index.5af68fd5.js";
|
|
14
|
+
import { P as PaperNode } from "./subcomponents/PaperNode/index.d81d2f30.js";
|
|
15
|
+
import { P as PropertyValueNode } from "./subcomponents/PropertyValueNode/index.4c20215d.js";
|
|
16
|
+
import { G as GridNode } from "./subcomponents/GridNode/index.07d4f9a4.js";
|
|
17
|
+
import { C as ChartNode } from "./subcomponents/ChartNode/index.1863bcf1.js";
|
|
18
|
+
import { P as PagerNode, a as PageRender } from "../Page/index.c3767243.js";
|
|
19
19
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
20
20
|
import { forwardRef, useRef, useImperativeHandle } from "react";
|
|
21
21
|
const componentName = "M4LPrintingSystem";
|
|
@@ -97,6 +97,33 @@ const getSize = (value, unitSize) => {
|
|
|
97
97
|
return value;
|
|
98
98
|
}
|
|
99
99
|
};
|
|
100
|
+
const getEvalValue = (sourceData, key) => {
|
|
101
|
+
const regexPattern = /\${([^${}]+(?:\${[^{}]*}[^${}]*)*)}/g;
|
|
102
|
+
if (regexPattern.test(key)) {
|
|
103
|
+
const matches = [];
|
|
104
|
+
let match;
|
|
105
|
+
let localRegex = new RegExp(regexPattern);
|
|
106
|
+
while ((match = localRegex.exec(key)) !== null) {
|
|
107
|
+
matches.push(match[1]);
|
|
108
|
+
}
|
|
109
|
+
const finalValue = new Array();
|
|
110
|
+
matches.map((findMatch) => {
|
|
111
|
+
const nestedRegex = /\${([^${}]+(?:\${[^{}]*}[^${}]*)*)}/g;
|
|
112
|
+
if (nestedRegex.test(findMatch)) {
|
|
113
|
+
const regexKeyReady = /([^ ${]+)/;
|
|
114
|
+
let matchKeyReady = regexKeyReady.exec(findMatch) || "";
|
|
115
|
+
let nestedKey = findMatch.match(regexPattern) || "";
|
|
116
|
+
finalValue.push(getPropertyByString(sourceData, matchKeyReady[1]));
|
|
117
|
+
finalValue.push(getEvalValue(sourceData, nestedKey[0]));
|
|
118
|
+
} else {
|
|
119
|
+
finalValue.push(getPropertyByString(sourceData, findMatch));
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
return finalValue.join(" ");
|
|
123
|
+
} else {
|
|
124
|
+
return key;
|
|
125
|
+
}
|
|
126
|
+
};
|
|
100
127
|
const FactoryRender = (props) => {
|
|
101
128
|
const {
|
|
102
129
|
data: parent
|
|
@@ -105,9 +132,6 @@ const FactoryRender = (props) => {
|
|
|
105
132
|
children,
|
|
106
133
|
...otherProps
|
|
107
134
|
} = parent || {};
|
|
108
|
-
const {
|
|
109
|
-
sourceData
|
|
110
|
-
} = useBase();
|
|
111
135
|
const strategiesComponents = {
|
|
112
136
|
section: SectionNode,
|
|
113
137
|
textBox: TextBoxNode,
|
|
@@ -121,7 +145,6 @@ const FactoryRender = (props) => {
|
|
|
121
145
|
grid: GridNode,
|
|
122
146
|
chart: ChartNode,
|
|
123
147
|
pager: PagerNode,
|
|
124
|
-
qrImage: QRImageNode,
|
|
125
148
|
__default__: () => {
|
|
126
149
|
throw new Error("Type no defined");
|
|
127
150
|
}
|
|
@@ -133,7 +156,7 @@ const FactoryRender = (props) => {
|
|
|
133
156
|
return /* @__PURE__ */ jsx(FactoryRender, {
|
|
134
157
|
data: subComponent
|
|
135
158
|
}, `${subComponent.key}-${Math.random().toString(36).substring(7)}`);
|
|
136
|
-
}) : null, typeof children === "string" ?
|
|
159
|
+
}) : null, typeof children === "string" ? children : null]
|
|
137
160
|
});
|
|
138
161
|
};
|
|
139
162
|
const PrintingSystem = forwardRef((props, ref) => {
|
|
@@ -194,6 +217,7 @@ const PrintingSystem = forwardRef((props, ref) => {
|
|
|
194
217
|
export {
|
|
195
218
|
FactoryRender as F,
|
|
196
219
|
PrintingSystem as P,
|
|
220
|
+
getSize as a,
|
|
197
221
|
classes as c,
|
|
198
|
-
|
|
222
|
+
getEvalValue as g
|
|
199
223
|
};
|
package/components/PrintingSystem/subcomponents/BodyNode/{index.1dd418aa.js → index.81da2c9c.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useBase } from "@m4l/core";
|
|
2
|
-
import { c as classes,
|
|
2
|
+
import { c as classes, a as getSize } from "../../index.b69edc07.js";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
const BodyNode = (props) => {
|
package/components/PrintingSystem/subcomponents/ChartNode/{index.6aadd6b3.js → index.1863bcf1.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as classes } from "../../index.
|
|
1
|
+
import { g as getEvalValue, c as classes } from "../../index.b69edc07.js";
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { createRef, useEffect } from "react";
|
|
4
4
|
import { Chart, registerables } from "chart.js";
|
|
5
5
|
import { ScatterWithErrorBarsController, LineWithErrorBarsChart, PointWithErrorBar } from "chartjs-chart-error-bars";
|
|
6
|
-
import { useBase, getPropertyByString
|
|
6
|
+
import { useBase, getPropertyByString } from "@m4l/core";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
Chart.register(ScatterWithErrorBarsController, LineWithErrorBarsChart, PointWithErrorBar, ...registerables);
|
|
9
9
|
const ChartNode = (props) => {
|
|
@@ -61,13 +61,13 @@ const ChartNode = (props) => {
|
|
|
61
61
|
x: {
|
|
62
62
|
title: {
|
|
63
63
|
display: true,
|
|
64
|
-
text:
|
|
64
|
+
text: getEvalValue(sourceData, messageX)
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
y: {
|
|
68
68
|
title: {
|
|
69
69
|
display: true,
|
|
70
|
-
text:
|
|
70
|
+
text: getEvalValue(sourceData, messageY)
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
}
|
package/components/PrintingSystem/subcomponents/FooterNode/{index.c2481749.js → index.5af68fd5.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useBase } from "@m4l/core";
|
|
2
|
-
import { c as classes,
|
|
2
|
+
import { c as classes, a as getSize } from "../../index.b69edc07.js";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
const FooterNode = (props) => {
|
package/components/PrintingSystem/subcomponents/GridNode/{index.758d94d1.js → index.07d4f9a4.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useBase, getPropertyByString
|
|
2
|
-
import { c as classes,
|
|
1
|
+
import { useBase, getPropertyByString } from "@m4l/core";
|
|
2
|
+
import { c as classes, a as getSize, g as getEvalValue } from "../../index.b69edc07.js";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
5
5
|
const GridNode = (props) => {
|
|
@@ -17,9 +17,13 @@ const GridNode = (props) => {
|
|
|
17
17
|
sourceData
|
|
18
18
|
} = useBase();
|
|
19
19
|
const result = getPropertyByString(sourceData, typeof rows === "string" ? rowMaybeString[1] : "");
|
|
20
|
+
console.log("rows", rows);
|
|
21
|
+
console.log("result", result);
|
|
20
22
|
const rowEval = Array.isArray(result) ? result : typeof result === "object" ? [{
|
|
21
23
|
...result
|
|
22
24
|
}] : [];
|
|
25
|
+
console.log("rows", rows);
|
|
26
|
+
console.log("rowEval", rowEval);
|
|
23
27
|
const rowsFormated = typeof rows === "string" ? rowEval : rows;
|
|
24
28
|
if (dataColumns.length > 0) {
|
|
25
29
|
return /* @__PURE__ */ jsxs("table", {
|
|
@@ -38,7 +42,7 @@ const GridNode = (props) => {
|
|
|
38
42
|
maxWidth: column.width ? getSize(column.width, unitSize) : "auto",
|
|
39
43
|
justifyContent: column.alignX ? column.alignX : "center"
|
|
40
44
|
},
|
|
41
|
-
children:
|
|
45
|
+
children: getEvalValue(sourceData, column.title)
|
|
42
46
|
}, `th-${Math.random().toString(36).substring(7)}`);
|
|
43
47
|
})
|
|
44
48
|
}, `tr-${Math.random().toString(36).substring(7)}`)
|
package/components/PrintingSystem/subcomponents/HeaderNode/{index.732d7c58.js → index.dbf08ab4.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useBase } from "@m4l/core";
|
|
2
|
-
import { c as classes,
|
|
2
|
+
import { c as classes, a as getSize } from "../../index.b69edc07.js";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
const HeaderNode = (props) => {
|
package/components/PrintingSystem/subcomponents/PaperNode/{index.1a20a9d4.js → index.d81d2f30.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useBase
|
|
2
|
-
import { c as classes } from "../../index.
|
|
1
|
+
import { useBase } from "@m4l/core";
|
|
2
|
+
import { g as getEvalValue, c as classes } from "../../index.b69edc07.js";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
5
5
|
const PaperNode = (props) => {
|
|
@@ -16,8 +16,8 @@ const PaperNode = (props) => {
|
|
|
16
16
|
const {
|
|
17
17
|
sourceData
|
|
18
18
|
} = useBase();
|
|
19
|
-
const titleFormated =
|
|
20
|
-
const titleSecondaryFormated =
|
|
19
|
+
const titleFormated = getEvalValue(sourceData, title);
|
|
20
|
+
const titleSecondaryFormated = getEvalValue(sourceData, titleSecondary || "");
|
|
21
21
|
return /* @__PURE__ */ jsxs("div", {
|
|
22
22
|
className: clsx(classes.paperNodeRoot, className),
|
|
23
23
|
style: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useBase, evaluateWithContext } from "@m4l/core";
|
|
2
|
-
import { c as classes,
|
|
2
|
+
import { c as classes, a as getSize } from "../../index.b69edc07.js";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
5
5
|
const PropertyValueNode = (props) => {
|
|
@@ -7,16 +7,18 @@ const PropertyValueNode = (props) => {
|
|
|
7
7
|
style = {},
|
|
8
8
|
className = "",
|
|
9
9
|
property,
|
|
10
|
-
|
|
10
|
+
value,
|
|
11
11
|
direction,
|
|
12
12
|
propertyWidth = "auto"
|
|
13
13
|
} = props;
|
|
14
|
+
console.log();
|
|
14
15
|
const {
|
|
15
16
|
unitSize,
|
|
16
17
|
mainColor,
|
|
17
18
|
sourceData
|
|
18
19
|
} = useBase();
|
|
19
20
|
const propertyFormated = evaluateWithContext(sourceData, property);
|
|
21
|
+
const valueFormated = evaluateWithContext(sourceData, value);
|
|
20
22
|
return /* @__PURE__ */ jsxs("div", {
|
|
21
23
|
className: clsx(classes.propertyValueNodeRoot, direction === "column" ? classes.propertyValueNodeHorizontal : classes.propertyValueNodeVertical, className),
|
|
22
24
|
style: {
|
|
@@ -32,7 +34,7 @@ const PropertyValueNode = (props) => {
|
|
|
32
34
|
children: propertyFormated
|
|
33
35
|
}), /* @__PURE__ */ jsx("div", {
|
|
34
36
|
className: classes.propertyValueNodeContent,
|
|
35
|
-
children
|
|
37
|
+
children: valueFormated
|
|
36
38
|
})]
|
|
37
39
|
});
|
|
38
40
|
};
|
package/components/PrintingSystem/subcomponents/SectionNode/{index.25aeb4aa.js → index.72cb64b8.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useBase } from "@m4l/core";
|
|
2
|
-
import { c as classes,
|
|
2
|
+
import { c as classes, a as getSize } from "../../index.b69edc07.js";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
const SectionNode = (props) => {
|