@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
package/components/PrintingSystem/subcomponents/TextBoxNode/{index.2b632722.js → index.41c261f4.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 { jsx } from "react/jsx-runtime";
|
|
5
5
|
const TextBoxNode = (props) => {
|
|
@@ -13,7 +13,7 @@ const TextBoxNode = (props) => {
|
|
|
13
13
|
const {
|
|
14
14
|
sourceData
|
|
15
15
|
} = useBase();
|
|
16
|
-
const textFormated =
|
|
16
|
+
const textFormated = getEvalValue(sourceData, children[1]);
|
|
17
17
|
return /* @__PURE__ */ jsx("span", {
|
|
18
18
|
className: clsx(classes.textBoxNodeRoot, className, `${classes.textBoxNodeVariant}-${variant}`),
|
|
19
19
|
style: {
|
|
@@ -115,15 +115,6 @@ export interface ImageNode extends BaseNode {
|
|
|
115
115
|
width?: number;
|
|
116
116
|
height?: number;
|
|
117
117
|
}
|
|
118
|
-
/**
|
|
119
|
-
* QReNode: Componente para visualizar una imagen qr.
|
|
120
|
-
*/
|
|
121
|
-
export interface QRImageNode extends BaseNode {
|
|
122
|
-
type: 'qrImage';
|
|
123
|
-
url: string;
|
|
124
|
-
size?: number;
|
|
125
|
-
color?: string;
|
|
126
|
-
}
|
|
127
118
|
/**
|
|
128
119
|
* HeaderNode: Componente para visualizar la cabecera del documento.
|
|
129
120
|
*/
|
|
@@ -163,10 +154,10 @@ export interface PropertyValue extends Omit<BaseNode, 'children'> {
|
|
|
163
154
|
type: 'propertyValue';
|
|
164
155
|
property: string;
|
|
165
156
|
propertyWidth?: number | string;
|
|
166
|
-
|
|
157
|
+
value: string;
|
|
167
158
|
direction: Direction;
|
|
159
|
+
children?: string;
|
|
168
160
|
}
|
|
169
|
-
export declare type NodePrintPropertyValue = SectionNode | TextBoxNode | ImageNode | FooterNode | PaperNode | DividerNode | GridNode | ChartNode | PagerNode | QRImageNode;
|
|
170
161
|
/**
|
|
171
162
|
* DividerNode: Componente que aporta una división gráfica.
|
|
172
163
|
*/
|
|
@@ -210,7 +201,7 @@ export interface ChartNode extends Omit<BaseNode, 'children'> {
|
|
|
210
201
|
messageX: string;
|
|
211
202
|
messageY: string;
|
|
212
203
|
}
|
|
213
|
-
export declare type NodePrint = SectionNode | TextBoxNode | ImageNode | HeaderNode | BodyNode | FooterNode | PaperNode | PropertyValue | DividerNode | GridNode | ChartNode | PagerNode
|
|
204
|
+
export declare type NodePrint = SectionNode | TextBoxNode | ImageNode | HeaderNode | BodyNode | FooterNode | PaperNode | PropertyValue | DividerNode | GridNode | ChartNode | PagerNode;
|
|
214
205
|
export declare type NodePrintComponent = ((props: PageNodeProps) => React.JSX.Element) | ((props: SectionNodeProps) => React.JSX.Element) | ((props: HeaderNodeProps) => React.JSX.Element) | ((props: BodyNodeProps) => React.JSX.Element) | ((props: FooterNodeProps) => React.JSX.Element) | ((props: PaperNodeProps) => React.JSX.Element) | ((props: PropertyValueNodeProps) => React.JSX.Element) | ((props: GridNodeProps) => React.JSX.Element) | ((props: ChartNodeProps) => React.JSX.Element);
|
|
215
206
|
export interface PrintingSystemProps {
|
|
216
207
|
templateData: RootNode;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getEvalValue: (sourceData: any, key: string) => string | Array<any>;
|
|
@@ -3,12 +3,9 @@ export interface PropertyValueClassesType {
|
|
|
3
3
|
root: string;
|
|
4
4
|
property: string;
|
|
5
5
|
value: string;
|
|
6
|
-
|
|
6
|
+
skeletonProperty: string;
|
|
7
7
|
isDisabled: string;
|
|
8
8
|
isFocus: string;
|
|
9
|
-
variantIsForm: string;
|
|
10
|
-
isTabSelected: string;
|
|
11
|
-
isMobile: string;
|
|
12
9
|
}
|
|
13
10
|
export declare type PropertyValueClassesKey = keyof PropertyValueClassesType;
|
|
14
11
|
export declare type Classes = ReturnType<typeof propertyValueUtilityClasses>;
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import { styled } from "@mui/material/styles";
|
|
2
|
+
import { Skeleton, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
3
|
+
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
4
|
+
import { g as getNameDataTestId } from "../../test/getNameDataTestId.14875ec7.js";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
7
|
+
import { useModuleSkeleton } from "@m4l/core";
|
|
8
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
9
|
+
import clsx from "clsx";
|
|
10
|
+
import { useState } from "react";
|
|
11
|
+
const PropertyValueRoot = styled("div", {
|
|
12
|
+
shouldForwardProp: (prop) => prop !== "propertyWidth" && prop !== "propertyHeight" && prop !== "isForm"
|
|
13
|
+
})(({
|
|
14
|
+
propertyWidth,
|
|
15
|
+
isForm,
|
|
16
|
+
theme
|
|
17
|
+
}) => ({
|
|
18
|
+
display: "grid",
|
|
19
|
+
gridTemplateColumns: "1fr",
|
|
20
|
+
alignItems: "flex-start",
|
|
21
|
+
width: "100%",
|
|
22
|
+
padding: `${theme.spacing(1)} ${theme.spacing(2)}`,
|
|
23
|
+
borderBottom: isForm ? "none" : `1px solid ${theme.palette.divider}`,
|
|
24
|
+
flexDirection: "column",
|
|
25
|
+
[theme.breakpoints.up("sm")]: {
|
|
26
|
+
gridTemplateColumns: propertyWidth ? `${propertyWidth}px 1fr` : "150px 1fr",
|
|
27
|
+
gap: theme.spacing(2),
|
|
28
|
+
alignItems: "center"
|
|
29
|
+
},
|
|
30
|
+
...theme.components?.M4LPropertyValue?.styleOverrides
|
|
31
|
+
}));
|
|
32
|
+
const Property = styled("div", {
|
|
33
|
+
shouldForwardProp: (prop) => prop !== "propertyWidth" && prop !== "propertyHeight" && prop !== "isForm"
|
|
34
|
+
})(({
|
|
35
|
+
propertyWidth,
|
|
36
|
+
isForm,
|
|
37
|
+
theme
|
|
38
|
+
}) => ({
|
|
39
|
+
width: "100%",
|
|
40
|
+
minWidth: "100%",
|
|
41
|
+
...theme.typography.body,
|
|
42
|
+
color: theme.palette.text.primary,
|
|
43
|
+
height: "100%",
|
|
44
|
+
display: "flex",
|
|
45
|
+
alignItems: "center",
|
|
46
|
+
justifyContent: "flex-start",
|
|
47
|
+
position: "relative",
|
|
48
|
+
[theme.breakpoints.up("sm")]: {
|
|
49
|
+
borderRight: isForm ? "none" : `1px solid ${theme.palette.divider}`,
|
|
50
|
+
paddingRight: theme.spacing(2),
|
|
51
|
+
textAlign: "right",
|
|
52
|
+
width: propertyWidth || "150px",
|
|
53
|
+
minWidth: propertyWidth || "150px",
|
|
54
|
+
justifyContent: "flex-end"
|
|
55
|
+
},
|
|
56
|
+
overflow: "hidden",
|
|
57
|
+
overflowWrap: "break-word"
|
|
58
|
+
}));
|
|
59
|
+
const Value = styled("div", {
|
|
60
|
+
shouldForwardProp: (prop) => prop !== "valueWidth" && prop !== "valueHeight" && prop !== "withGrid"
|
|
61
|
+
})(({
|
|
62
|
+
valueWidth,
|
|
63
|
+
valueHeight,
|
|
64
|
+
theme
|
|
65
|
+
}) => ({
|
|
66
|
+
flexGrow: "1",
|
|
67
|
+
...theme.typography.body,
|
|
68
|
+
color: theme.palette.text.secondary,
|
|
69
|
+
overflow: "hidden",
|
|
70
|
+
textOverflow: "ellipsis",
|
|
71
|
+
position: "relative",
|
|
72
|
+
padding: "1px",
|
|
73
|
+
maxWidth: `${valueWidth}%`,
|
|
74
|
+
width: `${valueWidth}%`,
|
|
75
|
+
height: valueHeight,
|
|
76
|
+
marginTop: theme.spacing(1),
|
|
77
|
+
[theme.breakpoints.up("sm")]: {
|
|
78
|
+
marginTop: "0px"
|
|
79
|
+
},
|
|
80
|
+
overflowWrap: "break-word"
|
|
81
|
+
}));
|
|
82
|
+
const SKTWrapperProperty = styled("div")(() => ({
|
|
83
|
+
display: "flex",
|
|
84
|
+
justifyContent: "flex-end"
|
|
85
|
+
}));
|
|
86
|
+
const COMPONENT_PREFIX = "m4l-property-value";
|
|
87
|
+
const TEST_PROPS_DATA = `${COMPONENT_PREFIX}-data`;
|
|
88
|
+
function SKTProperty(props) {
|
|
89
|
+
const {
|
|
90
|
+
className,
|
|
91
|
+
dataTestId = ""
|
|
92
|
+
} = props;
|
|
93
|
+
return /* @__PURE__ */ jsx(SKTWrapperProperty, {
|
|
94
|
+
className,
|
|
95
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
96
|
+
[TEST_PROP_ID]: getNameDataTestId(COMPONENT_PREFIX, "skeletonProperty", dataTestId)
|
|
97
|
+
} : {},
|
|
98
|
+
children: /* @__PURE__ */ jsx(Skeleton, {
|
|
99
|
+
variant: "text",
|
|
100
|
+
width: 68,
|
|
101
|
+
height: 14
|
|
102
|
+
})
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
const componentName = "M4LPropertyValue";
|
|
106
|
+
generateUtilityClasses(componentName, [
|
|
107
|
+
"root",
|
|
108
|
+
"property",
|
|
109
|
+
"value",
|
|
110
|
+
"skeletonProperty",
|
|
111
|
+
"isDisabled",
|
|
112
|
+
"isFocus"
|
|
113
|
+
]);
|
|
114
|
+
function getPropertyValueUtilityClass(slot) {
|
|
115
|
+
return generateUtilityClass(componentName, slot);
|
|
116
|
+
}
|
|
117
|
+
const propertyValueUtilityClasses = (ownerState) => {
|
|
118
|
+
const slots = {
|
|
119
|
+
root: ["root", ownerState.disabled && "isDisabled", ownerState.focus && "isFocus"],
|
|
120
|
+
property: ["property"],
|
|
121
|
+
value: ["value"],
|
|
122
|
+
skeletonProperty: ["skeletonProperty"]
|
|
123
|
+
};
|
|
124
|
+
const composedClasses = unstable_composeClasses(slots, getPropertyValueUtilityClass, {});
|
|
125
|
+
return {
|
|
126
|
+
...composedClasses
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
function PropertyValue(props) {
|
|
130
|
+
const {
|
|
131
|
+
property,
|
|
132
|
+
value,
|
|
133
|
+
propertyWidth = 200,
|
|
134
|
+
valueHeight = "auto",
|
|
135
|
+
valueWidth = "100",
|
|
136
|
+
valueWidthMobile,
|
|
137
|
+
isForm,
|
|
138
|
+
className,
|
|
139
|
+
dataTestId = "",
|
|
140
|
+
disabled = false
|
|
141
|
+
} = props;
|
|
142
|
+
const isDesktop = useResponsiveDesktop();
|
|
143
|
+
const isSkeleton = useModuleSkeleton();
|
|
144
|
+
const [isFocus, setIsFocus] = useState(false);
|
|
145
|
+
console.log("Estado de focus: ", isFocus);
|
|
146
|
+
const getValueW = () => {
|
|
147
|
+
if (valueWidthMobile && !isDesktop) {
|
|
148
|
+
return valueWidthMobile;
|
|
149
|
+
}
|
|
150
|
+
if (valueWidth === 75 && isDesktop) {
|
|
151
|
+
return 75;
|
|
152
|
+
} else if (valueWidth === 75 && !isDesktop) {
|
|
153
|
+
return 100;
|
|
154
|
+
}
|
|
155
|
+
if (valueWidth === 50 && isDesktop) {
|
|
156
|
+
return 50;
|
|
157
|
+
} else if (valueWidth === 50 && !isDesktop) {
|
|
158
|
+
return 100;
|
|
159
|
+
}
|
|
160
|
+
if (valueWidth === 25 && isDesktop || valueWidth === 12.5 && isDesktop) {
|
|
161
|
+
return valueWidth;
|
|
162
|
+
}
|
|
163
|
+
if (valueWidth === 25 && !isDesktop) {
|
|
164
|
+
return 50;
|
|
165
|
+
}
|
|
166
|
+
if (valueWidth === 12.5 && !isDesktop) {
|
|
167
|
+
return 25;
|
|
168
|
+
}
|
|
169
|
+
return 100;
|
|
170
|
+
};
|
|
171
|
+
const handlerFocus = () => {
|
|
172
|
+
setIsFocus(true);
|
|
173
|
+
};
|
|
174
|
+
const handlerOnBlur = () => {
|
|
175
|
+
setIsFocus(false);
|
|
176
|
+
};
|
|
177
|
+
const ownerState = {
|
|
178
|
+
disabled,
|
|
179
|
+
focus: disabled === false ? isFocus : false
|
|
180
|
+
};
|
|
181
|
+
const classes = propertyValueUtilityClasses(ownerState);
|
|
182
|
+
return /* @__PURE__ */ jsxs(PropertyValueRoot, {
|
|
183
|
+
tabIndex: 0,
|
|
184
|
+
className: clsx(classes.root, className),
|
|
185
|
+
isForm,
|
|
186
|
+
propertyWidth,
|
|
187
|
+
onClick: handlerFocus,
|
|
188
|
+
onBlur: handlerOnBlur,
|
|
189
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
190
|
+
[TEST_PROPS_DATA]: JSON.stringify([{
|
|
191
|
+
property: property ? true : false,
|
|
192
|
+
value: value ? true : false
|
|
193
|
+
}]),
|
|
194
|
+
[TEST_PROP_ID]: getNameDataTestId(COMPONENT_PREFIX, "root", dataTestId)
|
|
195
|
+
} : {},
|
|
196
|
+
children: [/* @__PURE__ */ jsx(Property, {
|
|
197
|
+
className: classes.property,
|
|
198
|
+
isForm,
|
|
199
|
+
propertyWidth,
|
|
200
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
201
|
+
[TEST_PROP_ID]: getNameDataTestId(COMPONENT_PREFIX, "property", dataTestId)
|
|
202
|
+
} : {},
|
|
203
|
+
children: isSkeleton ? /* @__PURE__ */ jsx(SKTProperty, {
|
|
204
|
+
className: classes.skeletonProperty,
|
|
205
|
+
dataTestId
|
|
206
|
+
}) : property
|
|
207
|
+
}), /* @__PURE__ */ jsx(Value, {
|
|
208
|
+
className: classes.value,
|
|
209
|
+
valueWidth: getValueW(),
|
|
210
|
+
valueHeight,
|
|
211
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
212
|
+
[TEST_PROP_ID]: getNameDataTestId(COMPONENT_PREFIX, "value", dataTestId)
|
|
213
|
+
} : {},
|
|
214
|
+
children: value
|
|
215
|
+
})]
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
export {
|
|
219
|
+
PropertyValue as P
|
|
220
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
export interface PropertyProps {
|
|
3
3
|
propertyWidth?: number;
|
|
4
|
-
iconProperty?: string;
|
|
5
4
|
}
|
|
6
5
|
export interface ValueProps {
|
|
7
6
|
valueHeight?: number | string;
|
|
@@ -16,9 +15,12 @@ export interface PropertyValueProps extends PropertyProps, ValueProps {
|
|
|
16
15
|
dataTestId?: string;
|
|
17
16
|
disabled?: boolean;
|
|
18
17
|
}
|
|
18
|
+
export declare type WrapperProps = PropertyProps & Pick<PropertyValueProps, 'isForm'>;
|
|
19
|
+
export declare type WrapperPropertyProps = WrapperProps;
|
|
20
|
+
export declare type WrapperValueProps = Omit<ValueProps, 'valueWidthMobile'>;
|
|
21
|
+
export interface SKTPropertyProps extends Pick<PropertyValueProps, 'dataTestId'> {
|
|
22
|
+
className: string;
|
|
23
|
+
}
|
|
19
24
|
export interface OwnerState extends Pick<PropertyValueProps, 'disabled'> {
|
|
20
|
-
|
|
21
|
-
isForm: boolean;
|
|
22
|
-
isTabSelected: boolean;
|
|
23
|
-
isMobile: boolean;
|
|
25
|
+
focus: boolean;
|
|
24
26
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
|
-
import { a as ResizableBox } from "../../react-resizable.
|
|
2
|
+
import { a as ResizableBox } from "../../react-resizable.53094455.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
const WrapperResizeable = styled(ResizableBox)(({
|
|
5
5
|
theme
|
|
@@ -60,8 +60,7 @@ const WrapperResizeable = styled(ResizableBox)(({
|
|
|
60
60
|
position: "absolute",
|
|
61
61
|
"& .M4LImage-img": {
|
|
62
62
|
opacity: "0.5",
|
|
63
|
-
filter: "invert(0.4) hue-rotate(20deg) saturate(1000%)"
|
|
64
|
-
"-webkit-user-drag": "none"
|
|
63
|
+
filter: "invert(0.4) hue-rotate(20deg) saturate(1000%)"
|
|
65
64
|
}
|
|
66
65
|
},
|
|
67
66
|
"& .M4LImage-root.custom-handle.custom-handle-nw": {
|
|
@@ -71,8 +70,7 @@ const WrapperResizeable = styled(ResizableBox)(({
|
|
|
71
70
|
transform: "rotate(180deg)",
|
|
72
71
|
"& .M4LImage-img": {
|
|
73
72
|
opacity: "0.5",
|
|
74
|
-
filter: "invert(0.4) hue-rotate(20deg) saturate(1000%)"
|
|
75
|
-
"-webkit-user-drag": "none"
|
|
73
|
+
filter: "invert(0.4) hue-rotate(20deg) saturate(1000%)"
|
|
76
74
|
}
|
|
77
75
|
},
|
|
78
76
|
"& .react-resizable-handle-ne": {
|
|
@@ -114,12 +112,14 @@ function ResizeableWindow(props) {
|
|
|
114
112
|
width = 600,
|
|
115
113
|
height = 400,
|
|
116
114
|
maxHeigth,
|
|
115
|
+
onResize,
|
|
117
116
|
maxWidth,
|
|
118
117
|
...other
|
|
119
118
|
} = props;
|
|
120
119
|
return /* @__PURE__ */ jsx(WrapperResizeable, {
|
|
121
120
|
width,
|
|
122
121
|
height,
|
|
122
|
+
onResize,
|
|
123
123
|
maxConstraints: maxHeigth && maxWidth ? [maxWidth, maxHeigth] : void 0,
|
|
124
124
|
resizeHandles: ["se", "nw"],
|
|
125
125
|
...other,
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import { ResizableBoxProps } from 'react-resizable';
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ResizableBoxProps, ResizeCallbackData } from 'react-resizable';
|
|
3
3
|
declare type InternalResizeableProps = {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
width?: number;
|
|
6
|
-
height?: number;
|
|
7
4
|
maxWidth?: number;
|
|
8
5
|
maxHeigth?: number;
|
|
6
|
+
onResize?: (e: React.SyntheticEvent, data: ResizeCallbackData) => void;
|
|
9
7
|
};
|
|
10
8
|
export declare type ResizeableProps = InternalResizeableProps & Partial<ResizableBoxProps>;
|
|
11
9
|
export {};
|
|
@@ -69,11 +69,7 @@ styled(SimpleBarReact)(({
|
|
|
69
69
|
"& .simplebar-mask": {
|
|
70
70
|
zIndex: "inherit"
|
|
71
71
|
},
|
|
72
|
-
"& .simplebar-content": {
|
|
73
|
-
display: "flex",
|
|
74
|
-
flexDirection: "column",
|
|
75
|
-
height: "100%"
|
|
76
|
-
},
|
|
72
|
+
"& .simplebar-content": {},
|
|
77
73
|
'& .simplebar-content-wrapper[style*="overflow: hidden scroll;"] ': {
|
|
78
74
|
"& .simplebar-content": {
|
|
79
75
|
marginRight: "12px"
|
|
@@ -5,11 +5,11 @@ export declare const getSideBarClassesByState: (ownerState: SideBarState) => {
|
|
|
5
5
|
root: string;
|
|
6
6
|
drawer: string;
|
|
7
7
|
popover: string;
|
|
8
|
-
containerLogo: string;
|
|
9
8
|
containerSideBarLogo: string;
|
|
10
9
|
contentDesktop: string;
|
|
11
10
|
contentMobile: string;
|
|
12
11
|
collapseButton: string;
|
|
12
|
+
containerLogo: string;
|
|
13
13
|
contentGroups: string;
|
|
14
14
|
wrapperGroup: string;
|
|
15
15
|
wrapperGroupTitle: string;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
2
|
+
import { styled, alpha } from "@mui/material/styles";
|
|
3
|
+
import { styled as styled$1, generateUtilityClasses, ListItemText, Tooltip, ListItemButton, Collapse, useTheme, Skeleton, Drawer as Drawer$1 } from "@mui/material";
|
|
2
4
|
import { useEnvironment, useBase, BaseProvider } from "@m4l/core";
|
|
3
5
|
import { createContext, useContext, useState, useEffect } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { I as IconButton } from "../mui_extended/IconButton/index.5afe56b7.js";
|
|
6
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
7
|
+
import { g as getComponentUtilityClass } from "../../utils/index.9ad3909a.js";
|
|
7
8
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
8
|
-
import {
|
|
9
|
-
import { I as
|
|
10
|
-
import {
|
|
9
|
+
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
10
|
+
import { I as Image } from "../Image/index.d5fed0ab.js";
|
|
11
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.b705c196.js";
|
|
12
|
+
import { I as Icon, A as ArrowIcon } from "../Icon/index.aa9949f0.js";
|
|
13
|
+
import { T as Typography } from "../mui_extended/Typography/index.379dd374.js";
|
|
11
14
|
import clsx from "clsx";
|
|
12
15
|
import { useLocation } from "react-router-dom";
|
|
13
|
-
import { P as Popover } from "../mui_extended/Popover/index.
|
|
14
|
-
import { S as ScrollBar } from "../ScrollBar/index.
|
|
15
|
-
import { styled, alpha } from "@mui/material/styles";
|
|
16
|
-
import { unstable_composeClasses } from "@mui/base";
|
|
17
|
-
import { g as getComponentUtilityClass } from "../../utils/index.de903261.js";
|
|
16
|
+
import { P as Popover } from "../mui_extended/Popover/index.b3eca6b1.js";
|
|
17
|
+
import { S as ScrollBar } from "../ScrollBar/index.65bb2930.js";
|
|
18
18
|
const SideBarRoot = styled("div")(({
|
|
19
19
|
theme
|
|
20
20
|
}) => ({
|
|
@@ -207,6 +207,7 @@ const SideBarProvider = (props) => {
|
|
|
207
207
|
});
|
|
208
208
|
};
|
|
209
209
|
const useSideBar = () => useContext(SideBarContext);
|
|
210
|
+
const useSideBar$1 = useSideBar;
|
|
210
211
|
const SIDEBAR_PREFIX = "M4LSideBar";
|
|
211
212
|
const getNameDataTestId = (KEY) => {
|
|
212
213
|
return `${SIDEBAR_PREFIX}-${KEY}`;
|
|
@@ -223,7 +224,7 @@ function CollapseButton(props) {
|
|
|
223
224
|
const {
|
|
224
225
|
classes,
|
|
225
226
|
companyLogoNormalUrl
|
|
226
|
-
} = useSideBar();
|
|
227
|
+
} = useSideBar$1();
|
|
227
228
|
return /* @__PURE__ */ jsxs(CollapseButtonRoot, {
|
|
228
229
|
className: classes.collapseButton,
|
|
229
230
|
...process.env.NODE_ENV !== "production" ? {
|
|
@@ -234,7 +235,7 @@ function CollapseButton(props) {
|
|
|
234
235
|
children: /* @__PURE__ */ jsx(Image, {
|
|
235
236
|
width: "100%",
|
|
236
237
|
height: "100%",
|
|
237
|
-
src: companyLogoNormalUrl
|
|
238
|
+
src: companyLogoNormalUrl,
|
|
238
239
|
alt: "logo"
|
|
239
240
|
}, "Logo")
|
|
240
241
|
}), /* @__PURE__ */ jsx("div", {
|
|
@@ -353,7 +354,7 @@ const NavItemMainContent = (props) => {
|
|
|
353
354
|
const {
|
|
354
355
|
collapsed,
|
|
355
356
|
classes
|
|
356
|
-
} = useSideBar();
|
|
357
|
+
} = useSideBar$1();
|
|
357
358
|
const isDesktop = useResponsiveDesktop();
|
|
358
359
|
const handlerClick = (event) => {
|
|
359
360
|
onClick && onClick(item);
|
|
@@ -443,7 +444,7 @@ const NavSubItemContent = (props) => {
|
|
|
443
444
|
isItemActive,
|
|
444
445
|
onToggleVisible,
|
|
445
446
|
classes
|
|
446
|
-
} = useSideBar();
|
|
447
|
+
} = useSideBar$1();
|
|
447
448
|
const active = isItemActive(item);
|
|
448
449
|
const isDesktop = useResponsiveDesktop();
|
|
449
450
|
const hasChildren = item.children && Array.isArray(item.children) && item.children.length > 0;
|
|
@@ -487,7 +488,7 @@ function NavSubItem(props) {
|
|
|
487
488
|
} = props;
|
|
488
489
|
const {
|
|
489
490
|
onClick
|
|
490
|
-
} = useSideBar();
|
|
491
|
+
} = useSideBar$1();
|
|
491
492
|
return /* @__PURE__ */ jsx(NavSubItemContent, {
|
|
492
493
|
item,
|
|
493
494
|
onClick: () => onClick(item),
|
|
@@ -509,7 +510,7 @@ function NavListSubItem(props) {
|
|
|
509
510
|
const {
|
|
510
511
|
classes,
|
|
511
512
|
isItemActive
|
|
512
|
-
} = useSideBar();
|
|
513
|
+
} = useSideBar$1();
|
|
513
514
|
const active = isItemActive(list);
|
|
514
515
|
const [openSub, setOpenSub] = useState(false);
|
|
515
516
|
const hasChildren = list.children && Array.isArray(list.children) && list.children.length > 0;
|
|
@@ -577,7 +578,7 @@ function NavItemMain(props) {
|
|
|
577
578
|
isItemActive,
|
|
578
579
|
onToggleVisible,
|
|
579
580
|
classes
|
|
580
|
-
} = useSideBar();
|
|
581
|
+
} = useSideBar$1();
|
|
581
582
|
const [popoverStatus, setPopoverStatus] = useState(null);
|
|
582
583
|
const theme = useTheme();
|
|
583
584
|
const active = isItemActive(item);
|
|
@@ -665,7 +666,7 @@ function ItemListMain(props) {
|
|
|
665
666
|
collapsed: isSideBarCollapsed,
|
|
666
667
|
isItemActive,
|
|
667
668
|
classes
|
|
668
|
-
} = useSideBar();
|
|
669
|
+
} = useSideBar$1();
|
|
669
670
|
const location = useLocation();
|
|
670
671
|
const [internalItemActive, setInternalItemActive] = useState(false);
|
|
671
672
|
const [active, setActive] = useState(false);
|
|
@@ -782,7 +783,7 @@ const SkeletonNavSectionVertical = () => {
|
|
|
782
783
|
const {
|
|
783
784
|
collapsed,
|
|
784
785
|
classes
|
|
785
|
-
} = useSideBar();
|
|
786
|
+
} = useSideBar$1();
|
|
786
787
|
return /* @__PURE__ */ jsxs(WrapperSKTNavSectionVertical, {
|
|
787
788
|
collapse: collapsed,
|
|
788
789
|
className: classes.skeleton,
|
|
@@ -843,7 +844,7 @@ const ContentGroups = () => {
|
|
|
843
844
|
collapsed,
|
|
844
845
|
menuData,
|
|
845
846
|
classes
|
|
846
|
-
} = useSideBar();
|
|
847
|
+
} = useSideBar$1();
|
|
847
848
|
const [itemMainActive, setItemMainActive] = useState(-1);
|
|
848
849
|
if (menuData && menuData.length > 0) {
|
|
849
850
|
return /* @__PURE__ */ jsxs(ContentGroupsRoot, {
|
|
@@ -898,13 +899,13 @@ const ContentDesktop = () => {
|
|
|
898
899
|
companyLogoSmallUrl,
|
|
899
900
|
classes,
|
|
900
901
|
companyName
|
|
901
|
-
} = useSideBar();
|
|
902
|
+
} = useSideBar$1();
|
|
902
903
|
return /* @__PURE__ */ jsxs(WrapperContentDesktop, {
|
|
903
904
|
className: classes.contentDesktop,
|
|
904
905
|
...process.env.NODE_ENV !== "production" ? {
|
|
905
906
|
[TEST_PROP_ID]: getNameDataTestId("contentDesktop")
|
|
906
907
|
} : {},
|
|
907
|
-
children: [
|
|
908
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
908
909
|
className: classes.containerSideBarLogo,
|
|
909
910
|
...process.env.NODE_ENV !== "production" ? {
|
|
910
911
|
[TEST_PROP_ID]: getNameDataTestId("containerSideBarLogo")
|
|
@@ -919,16 +920,16 @@ const ContentDesktop = () => {
|
|
|
919
920
|
height: "60px",
|
|
920
921
|
src: companyLogoSmallUrl,
|
|
921
922
|
alt: "logo"
|
|
922
|
-
}, "Logo"),
|
|
923
|
+
}, "Logo"), /* @__PURE__ */ jsx(Typography, {
|
|
923
924
|
variant: "subtitleDens",
|
|
924
925
|
skeletonWidth: "100px",
|
|
925
926
|
style: {
|
|
926
927
|
width: collapsed ? "0px" : "auto"
|
|
927
928
|
},
|
|
928
929
|
children: companyName
|
|
929
|
-
})
|
|
930
|
+
})]
|
|
930
931
|
})
|
|
931
|
-
})
|
|
932
|
+
}), /* @__PURE__ */ jsx(ContentGroups, {}), /* @__PURE__ */ jsx(CollapseButton, {
|
|
932
933
|
onToggleCollapse,
|
|
933
934
|
collapsed
|
|
934
935
|
})]
|
|
@@ -970,7 +971,7 @@ const ContentMobile = () => {
|
|
|
970
971
|
collapsed,
|
|
971
972
|
classes,
|
|
972
973
|
companyName
|
|
973
|
-
} = useSideBar();
|
|
974
|
+
} = useSideBar$1();
|
|
974
975
|
const theme = useTheme();
|
|
975
976
|
return /* @__PURE__ */ jsx(Drawer, {
|
|
976
977
|
open: visible,
|
|
@@ -995,7 +996,7 @@ const ContentMobile = () => {
|
|
|
995
996
|
...process.env.NODE_ENV !== "production" ? {
|
|
996
997
|
[TEST_PROP_ID]: getNameDataTestId("contentMobile")
|
|
997
998
|
} : {},
|
|
998
|
-
children: [
|
|
999
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
999
1000
|
className: classes.containerSideBarLogo,
|
|
1000
1001
|
...process.env.NODE_ENV !== "production" ? {
|
|
1001
1002
|
[TEST_PROP_ID]: getNameDataTestId("containerSideBarLogo")
|
|
@@ -1016,7 +1017,7 @@ const ContentMobile = () => {
|
|
|
1016
1017
|
children: companyName
|
|
1017
1018
|
})]
|
|
1018
1019
|
})
|
|
1019
|
-
})
|
|
1020
|
+
}), /* @__PURE__ */ jsx(ContentGroups, {})]
|
|
1020
1021
|
})]
|
|
1021
1022
|
})
|
|
1022
1023
|
});
|
|
@@ -1075,5 +1076,5 @@ const SideBar = (props) => {
|
|
|
1075
1076
|
export {
|
|
1076
1077
|
SideBar as S,
|
|
1077
1078
|
getNameDataTestId as g,
|
|
1078
|
-
useSideBar as u
|
|
1079
|
+
useSideBar$1 as u
|
|
1079
1080
|
};
|
|
@@ -21,11 +21,11 @@ export interface SideBarProps {
|
|
|
21
21
|
onToggleVisible: VoidFunction;
|
|
22
22
|
collapsed: boolean;
|
|
23
23
|
visible: boolean;
|
|
24
|
-
companyLogoSmallUrl
|
|
25
|
-
companyLogoNormalUrl
|
|
24
|
+
companyLogoSmallUrl: string;
|
|
25
|
+
companyLogoNormalUrl: string;
|
|
26
26
|
collapsedWidht?: string | number;
|
|
27
27
|
unCollapsedWidht?: string | number;
|
|
28
|
-
companyName
|
|
28
|
+
companyName: string;
|
|
29
29
|
}
|
|
30
30
|
export declare type Classes = ReturnType<typeof getSideBarClassesByState>;
|
|
31
31
|
export declare type SideBarState = Pick<SideBarProps, 'collapsed' | 'visible'>;
|
|
@@ -3,7 +3,7 @@ import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
|
3
3
|
import { unstable_composeClasses } from "@mui/base";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
6
|
-
import { S as SplitterLayout } from "../../react-splitter-layout.
|
|
6
|
+
import { S as SplitterLayout } from "../../react-splitter-layout.8b1655c8.js";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
const SplitLayoutRoot = styled("div")(({
|
|
9
9
|
theme
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import { forwardRef, useRef } from "react";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
1
|
import { m } from "framer-motion";
|
|
2
|
+
import { forwardRef, useRef } from "react";
|
|
4
3
|
import { IconButton, Box, styled, alpha } from "@mui/material";
|
|
5
|
-
import "
|
|
6
|
-
import "react-router-dom";
|
|
7
|
-
import "./LoadingScreen/index.1d0c4307.js";
|
|
8
|
-
import "./PropagateLoader/index.7fab43c8.js";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
5
|
import SimpleBarReact from "simplebar-react";
|
|
10
6
|
const varSmall = {
|
|
11
7
|
hover: {
|