@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
|
@@ -1,248 +0,0 @@
|
|
|
1
|
-
import React__default, { useState, useEffect } from "react";
|
|
2
|
-
import { styled, generateUtilityClasses, generateUtilityClass, Skeleton } from "@mui/material";
|
|
3
|
-
import clsx from "clsx";
|
|
4
|
-
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
import { useEnvironment } from "@m4l/core";
|
|
7
|
-
import { u as useSideBar, g as getNameDataTestId$1 } from "../SideBar/index.614f85fb.js";
|
|
8
|
-
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
9
|
-
import { unstable_composeClasses } from "@mui/base";
|
|
10
|
-
const IconRoot = styled("div")(({
|
|
11
|
-
theme
|
|
12
|
-
}) => ({
|
|
13
|
-
...theme.components?.M4LIcon?.styleOverrides
|
|
14
|
-
}));
|
|
15
|
-
const DivIcon = styled("div", {
|
|
16
|
-
shouldForwardProp: (props) => props !== "src" && props !== "rotationAngle"
|
|
17
|
-
})(({
|
|
18
|
-
src,
|
|
19
|
-
rotationAngle
|
|
20
|
-
}) => ({
|
|
21
|
-
maskPosition: "center",
|
|
22
|
-
maskRepeat: "no-repeat",
|
|
23
|
-
maskSize: "cover",
|
|
24
|
-
WebkitMaskRepeat: "no-repeat",
|
|
25
|
-
mask: `url('data:image/svg+xml;base64,${src}')`,
|
|
26
|
-
WebkitMask: `url('data:image/svg+xml;base64,${src}')`,
|
|
27
|
-
WebkitMaskSize: "cover",
|
|
28
|
-
...rotationAngle && {
|
|
29
|
-
transform: `rotate(${rotationAngle}deg)`
|
|
30
|
-
}
|
|
31
|
-
}));
|
|
32
|
-
const componentName = "M4LIcon";
|
|
33
|
-
generateUtilityClasses(componentName, [
|
|
34
|
-
"root",
|
|
35
|
-
"icon",
|
|
36
|
-
"variantSkeleton",
|
|
37
|
-
"sizeExtraSmall",
|
|
38
|
-
"sizeSmall",
|
|
39
|
-
"sizeMedium",
|
|
40
|
-
"sizeLarge",
|
|
41
|
-
"sizeExtraLarge",
|
|
42
|
-
"rotationAngle"
|
|
43
|
-
]);
|
|
44
|
-
function getIconClassesUtilityClass(slot) {
|
|
45
|
-
return generateUtilityClass(componentName, slot);
|
|
46
|
-
}
|
|
47
|
-
const useUtilityClasses = (ownerState) => {
|
|
48
|
-
const slots = {
|
|
49
|
-
root: ["root"],
|
|
50
|
-
icon: ["icon", ownerState.size === "extraSmall" && "sizeExtraSmall", ownerState.size === "small" && "sizeSmall", ownerState.size === "medium" && "sizeMedium", ownerState.size === "large" && "sizeLarge", ownerState.size === "extraLarge" && "sizeExtraLarge", ownerState.rotationAngle ? "rotationAngle" : ""],
|
|
51
|
-
variantSkeleton: ["variantSkeleton", ownerState.size === "extraSmall" && "sizeExtraSmall", ownerState.size === "small" && "sizeSmall", ownerState.size === "medium" && "sizeMedium", ownerState.size === "large" && "sizeLarge", ownerState.size === "extraLarge" && "sizeExtraLarge"]
|
|
52
|
-
};
|
|
53
|
-
const composedClasses = unstable_composeClasses(slots, getIconClassesUtilityClass, {});
|
|
54
|
-
return {
|
|
55
|
-
...composedClasses
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
const ICON_PREFIX = "Icon";
|
|
59
|
-
const getNameDataTestId = (KEY) => {
|
|
60
|
-
return `${ICON_PREFIX}-${KEY}`;
|
|
61
|
-
};
|
|
62
|
-
function Icon(props) {
|
|
63
|
-
const {
|
|
64
|
-
src,
|
|
65
|
-
size = "small",
|
|
66
|
-
rotationAngle,
|
|
67
|
-
testingProps,
|
|
68
|
-
className,
|
|
69
|
-
memorizeResource = true
|
|
70
|
-
} = props;
|
|
71
|
-
const [resource, setResource] = useState(testingProps?.resource || void 0);
|
|
72
|
-
const isDesktop = useResponsiveDesktop();
|
|
73
|
-
if (memorizeResource) {
|
|
74
|
-
useEffect(() => {
|
|
75
|
-
let mounted = true;
|
|
76
|
-
(async function networkOperation() {
|
|
77
|
-
await fetch(src).then((response) => {
|
|
78
|
-
return response.text() || "";
|
|
79
|
-
}).then((xml) => {
|
|
80
|
-
xml = xml.match(
|
|
81
|
-
/(<svg\b[^>]*\s*(viewBox="(\b[^"]*)").*?>([\s\S]*?)<\/svg>|<svg>([\s\S]*?)<\/svg>)/g
|
|
82
|
-
)?.toString() || "";
|
|
83
|
-
if (mounted) {
|
|
84
|
-
setResource(window.btoa(xml));
|
|
85
|
-
}
|
|
86
|
-
}).catch((_err) => {
|
|
87
|
-
});
|
|
88
|
-
})();
|
|
89
|
-
return function clenUp() {
|
|
90
|
-
mounted = false;
|
|
91
|
-
};
|
|
92
|
-
}, [src]);
|
|
93
|
-
}
|
|
94
|
-
const ownerState = {
|
|
95
|
-
size: isDesktop ? size : "medium",
|
|
96
|
-
rotationAngle
|
|
97
|
-
};
|
|
98
|
-
const classes = useUtilityClasses(ownerState);
|
|
99
|
-
if (!memorizeResource) {
|
|
100
|
-
return /* @__PURE__ */ jsx(IconRoot, {
|
|
101
|
-
className: clsx(classes.root, className),
|
|
102
|
-
children: /* @__PURE__ */ jsx("img", {
|
|
103
|
-
src,
|
|
104
|
-
alt: src,
|
|
105
|
-
className: ""
|
|
106
|
-
})
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
return /* @__PURE__ */ jsx(IconRoot, {
|
|
110
|
-
className: clsx(classes.root, className),
|
|
111
|
-
...process.env.NODE_ENV !== "production" ? {
|
|
112
|
-
[TEST_PROP_ID]: getNameDataTestId("root")
|
|
113
|
-
} : {},
|
|
114
|
-
children: resource ? /* @__PURE__ */ jsx(DivIcon, {
|
|
115
|
-
className: classes.icon,
|
|
116
|
-
src: resource,
|
|
117
|
-
rotationAngle,
|
|
118
|
-
...process.env.NODE_ENV !== "production" ? {
|
|
119
|
-
[TEST_PROP_ID]: getNameDataTestId("icon")
|
|
120
|
-
} : {}
|
|
121
|
-
}) : /* @__PURE__ */ jsx(Skeleton, {
|
|
122
|
-
variant: "rectangular",
|
|
123
|
-
className: classes.variantSkeleton,
|
|
124
|
-
...process.env.NODE_ENV !== "production" ? {
|
|
125
|
-
[TEST_PROP_ID]: getNameDataTestId("variantSkeleton")
|
|
126
|
-
} : {}
|
|
127
|
-
})
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
var UnfoldMoreHorizontalIcon = {};
|
|
131
|
-
Object.defineProperty(UnfoldMoreHorizontalIcon, "__esModule", {
|
|
132
|
-
value: true
|
|
133
|
-
});
|
|
134
|
-
var _extends$1 = Object.assign || function(target) {
|
|
135
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
136
|
-
var source = arguments[i];
|
|
137
|
-
for (var key in source) {
|
|
138
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
139
|
-
target[key] = source[key];
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
return target;
|
|
144
|
-
};
|
|
145
|
-
var _react$1 = React__default;
|
|
146
|
-
var _react2$1 = _interopRequireDefault$1(_react$1);
|
|
147
|
-
function _interopRequireDefault$1(obj) {
|
|
148
|
-
return obj && obj.__esModule ? obj : { default: obj };
|
|
149
|
-
}
|
|
150
|
-
function _objectWithoutProperties$1(obj, keys) {
|
|
151
|
-
var target = {};
|
|
152
|
-
for (var i in obj) {
|
|
153
|
-
if (keys.indexOf(i) >= 0)
|
|
154
|
-
continue;
|
|
155
|
-
if (!Object.prototype.hasOwnProperty.call(obj, i))
|
|
156
|
-
continue;
|
|
157
|
-
target[i] = obj[i];
|
|
158
|
-
}
|
|
159
|
-
return target;
|
|
160
|
-
}
|
|
161
|
-
var DEFAULT_SIZE$1 = 24;
|
|
162
|
-
var _default$1 = UnfoldMoreHorizontalIcon.default = function(_ref) {
|
|
163
|
-
var _ref$fill = _ref.fill, fill = _ref$fill === void 0 ? "currentColor" : _ref$fill, _ref$width = _ref.width, width = _ref$width === void 0 ? DEFAULT_SIZE$1 : _ref$width, _ref$height = _ref.height, height = _ref$height === void 0 ? DEFAULT_SIZE$1 : _ref$height, _ref$style = _ref.style, style = _ref$style === void 0 ? {} : _ref$style, props = _objectWithoutProperties$1(_ref, ["fill", "width", "height", "style"]);
|
|
164
|
-
return _react2$1.default.createElement(
|
|
165
|
-
"svg",
|
|
166
|
-
_extends$1({
|
|
167
|
-
viewBox: "0 0 " + DEFAULT_SIZE$1 + " " + DEFAULT_SIZE$1,
|
|
168
|
-
style: _extends$1({ fill, width, height }, style)
|
|
169
|
-
}, props),
|
|
170
|
-
_react2$1.default.createElement("path", { d: "M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z" })
|
|
171
|
-
);
|
|
172
|
-
};
|
|
173
|
-
var CheckIcon = {};
|
|
174
|
-
Object.defineProperty(CheckIcon, "__esModule", {
|
|
175
|
-
value: true
|
|
176
|
-
});
|
|
177
|
-
var _extends = Object.assign || function(target) {
|
|
178
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
179
|
-
var source = arguments[i];
|
|
180
|
-
for (var key in source) {
|
|
181
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
182
|
-
target[key] = source[key];
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
return target;
|
|
187
|
-
};
|
|
188
|
-
var _react = React__default;
|
|
189
|
-
var _react2 = _interopRequireDefault(_react);
|
|
190
|
-
function _interopRequireDefault(obj) {
|
|
191
|
-
return obj && obj.__esModule ? obj : { default: obj };
|
|
192
|
-
}
|
|
193
|
-
function _objectWithoutProperties(obj, keys) {
|
|
194
|
-
var target = {};
|
|
195
|
-
for (var i in obj) {
|
|
196
|
-
if (keys.indexOf(i) >= 0)
|
|
197
|
-
continue;
|
|
198
|
-
if (!Object.prototype.hasOwnProperty.call(obj, i))
|
|
199
|
-
continue;
|
|
200
|
-
target[i] = obj[i];
|
|
201
|
-
}
|
|
202
|
-
return target;
|
|
203
|
-
}
|
|
204
|
-
var DEFAULT_SIZE = 24;
|
|
205
|
-
var _default = CheckIcon.default = function(_ref) {
|
|
206
|
-
var _ref$fill = _ref.fill, fill = _ref$fill === void 0 ? "currentColor" : _ref$fill, _ref$width = _ref.width, width = _ref$width === void 0 ? DEFAULT_SIZE : _ref$width, _ref$height = _ref.height, height = _ref$height === void 0 ? DEFAULT_SIZE : _ref$height, _ref$style = _ref.style, style = _ref$style === void 0 ? {} : _ref$style, props = _objectWithoutProperties(_ref, ["fill", "width", "height", "style"]);
|
|
207
|
-
return _react2.default.createElement(
|
|
208
|
-
"svg",
|
|
209
|
-
_extends({
|
|
210
|
-
viewBox: "0 0 " + DEFAULT_SIZE + " " + DEFAULT_SIZE,
|
|
211
|
-
style: _extends({ fill, width, height }, style)
|
|
212
|
-
}, props),
|
|
213
|
-
_react2.default.createElement("path", { d: "M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z" })
|
|
214
|
-
);
|
|
215
|
-
};
|
|
216
|
-
const ArrowIconRoot = styled("div")(() => ({
|
|
217
|
-
display: "flex",
|
|
218
|
-
alignSelf: "center",
|
|
219
|
-
lineHeight: 0
|
|
220
|
-
}));
|
|
221
|
-
function ArrowIcon(props) {
|
|
222
|
-
const {
|
|
223
|
-
openState
|
|
224
|
-
} = props;
|
|
225
|
-
const {
|
|
226
|
-
host_static_assets,
|
|
227
|
-
environment_assets
|
|
228
|
-
} = useEnvironment();
|
|
229
|
-
const {
|
|
230
|
-
classes
|
|
231
|
-
} = useSideBar();
|
|
232
|
-
return /* @__PURE__ */ jsx(ArrowIconRoot, {
|
|
233
|
-
className: classes.arrowIconRoot,
|
|
234
|
-
...process.env.NODE_ENV !== "production" ? {
|
|
235
|
-
[TEST_PROP_ID]: getNameDataTestId$1("arrowIconRoot")
|
|
236
|
-
} : {},
|
|
237
|
-
children: /* @__PURE__ */ jsx(Icon, {
|
|
238
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/sidebar/assets/icons/ChevronRight.svg`,
|
|
239
|
-
rotationAngle: openState ? 90 : 0
|
|
240
|
-
})
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
export {
|
|
244
|
-
ArrowIcon as A,
|
|
245
|
-
Icon as I,
|
|
246
|
-
_default$1 as _,
|
|
247
|
-
_default as a
|
|
248
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const componentName = "M4LPDFViewer";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PDFViewerClassesType } from './types';
|
|
2
|
-
export declare const pdfViewerClasses: PDFViewerClassesType;
|
|
3
|
-
export declare function getPDFViewerUtilityClass(slot: string): string;
|
|
4
|
-
export declare const pdfviewerUtilityClasses: () => {
|
|
5
|
-
root: string;
|
|
6
|
-
buttonDownload: string;
|
|
7
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { pdfviewerUtilityClasses } from ".";
|
|
2
|
-
export interface PDFViewerClassesType {
|
|
3
|
-
root: string;
|
|
4
|
-
buttonDownload: string;
|
|
5
|
-
}
|
|
6
|
-
export declare type PDFViewerClassesKey = keyof PDFViewerClassesType;
|
|
7
|
-
export declare type Classes = ReturnType<typeof pdfviewerUtilityClasses>;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { styled, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
2
|
-
import "react";
|
|
3
|
-
import "@m4l/core";
|
|
4
|
-
import "../Icon/index.e215d0f0.js";
|
|
5
|
-
import "clsx";
|
|
6
|
-
import "@m4l/graphics";
|
|
7
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
8
|
-
import "../mui_extended/IconButton/index.5afe56b7.js";
|
|
9
|
-
import "../mui_extended/Accordion/index.3087f40e.js";
|
|
10
|
-
import "../mui_extended/Typography/index.443590d6.js";
|
|
11
|
-
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
12
|
-
import "react-router-dom";
|
|
13
|
-
import { B as Button } from "../mui_extended/Button/index.0f2552ed.js";
|
|
14
|
-
import "../mui_extended/CheckBox.38abccd8.js";
|
|
15
|
-
import "../mui_extended/Badge/index.b09524fe.js";
|
|
16
|
-
import "../Image/index.d684bdf2.js";
|
|
17
|
-
import "@mui/lab";
|
|
18
|
-
import "../mui_extended/MenuActions/index.cc54c35c.js";
|
|
19
|
-
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
20
|
-
import "../mui_extended/Stack/index.0e53197c.js";
|
|
21
|
-
import "../mui_extended/Tab/index.ae9ea641.js";
|
|
22
|
-
import "../mui_extended/Pager/index.5fbbefe2.js";
|
|
23
|
-
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
24
|
-
import "@mui/material/Button";
|
|
25
|
-
import { unstable_composeClasses } from "@mui/base";
|
|
26
|
-
const PDFVeiwerRoot = styled("div")(({ theme }) => ({
|
|
27
|
-
...theme.components?.M4LPDFViewer?.styleOverrides
|
|
28
|
-
}));
|
|
29
|
-
const componentName = "M4LPDFViewer";
|
|
30
|
-
generateUtilityClasses(componentName, [
|
|
31
|
-
"root",
|
|
32
|
-
"buttonDownload"
|
|
33
|
-
]);
|
|
34
|
-
function getPDFViewerUtilityClass(slot) {
|
|
35
|
-
return generateUtilityClass(componentName, slot);
|
|
36
|
-
}
|
|
37
|
-
const pdfviewerUtilityClasses = () => {
|
|
38
|
-
const slots = {
|
|
39
|
-
root: ["root"],
|
|
40
|
-
buttonDownload: ["buttonDownload"]
|
|
41
|
-
};
|
|
42
|
-
const composedClasses = unstable_composeClasses(slots, getPDFViewerUtilityClass, {});
|
|
43
|
-
return {
|
|
44
|
-
...composedClasses
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
const PDFViewer = (props) => {
|
|
48
|
-
const {
|
|
49
|
-
pdfUrl
|
|
50
|
-
} = props;
|
|
51
|
-
const handleDownload = async () => {
|
|
52
|
-
try {
|
|
53
|
-
const response = await fetch(pdfUrl);
|
|
54
|
-
const blob = await response.blob();
|
|
55
|
-
const url = window.URL.createObjectURL(new Blob([blob]));
|
|
56
|
-
const link = document.createElement("a");
|
|
57
|
-
link.href = url;
|
|
58
|
-
link.download = pdfUrl.substring(pdfUrl.lastIndexOf("/") + 1);
|
|
59
|
-
document.body.appendChild(link);
|
|
60
|
-
link.click();
|
|
61
|
-
document.body.removeChild(link);
|
|
62
|
-
} catch (error) {
|
|
63
|
-
console.error("Error al descargar el PDF:", error);
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
const classes = pdfviewerUtilityClasses();
|
|
67
|
-
return /* @__PURE__ */ jsxs(PDFVeiwerRoot, {
|
|
68
|
-
className: classes.root,
|
|
69
|
-
children: [/* @__PURE__ */ jsx("embed", {
|
|
70
|
-
src: pdfUrl,
|
|
71
|
-
type: "application/pdf",
|
|
72
|
-
width: "100%",
|
|
73
|
-
height: "100%"
|
|
74
|
-
}), /* @__PURE__ */ jsx(Button, {
|
|
75
|
-
onClick: handleDownload,
|
|
76
|
-
variant: "contained",
|
|
77
|
-
children: "Descargar PDF"
|
|
78
|
-
})]
|
|
79
|
-
});
|
|
80
|
-
};
|
|
81
|
-
export {
|
|
82
|
-
PDFViewer as P
|
|
83
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { PDFViewer } from '../PDFViewer/PDFViewer';
|
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
import { styled } from "@mui/material/styles";
|
|
2
|
-
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
3
|
-
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
4
|
-
import { unstable_composeClasses } from "@mui/base";
|
|
5
|
-
import clsx from "clsx";
|
|
6
|
-
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
7
|
-
import { g as getNameDataTestId } from "../../vendor.f0742647.js";
|
|
8
|
-
import { useState } from "react";
|
|
9
|
-
import "@m4l/core";
|
|
10
|
-
import { I as Icon } from "../Icon/index.e215d0f0.js";
|
|
11
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
12
|
-
import "../mui_extended/IconButton/index.5afe56b7.js";
|
|
13
|
-
import "../mui_extended/Accordion/index.3087f40e.js";
|
|
14
|
-
import { T as Typography } from "../mui_extended/Typography/index.443590d6.js";
|
|
15
|
-
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
16
|
-
import "react-router-dom";
|
|
17
|
-
import "@mui/material/Button";
|
|
18
|
-
import "../mui_extended/Button/index.0f2552ed.js";
|
|
19
|
-
import "../mui_extended/CheckBox.38abccd8.js";
|
|
20
|
-
import "../mui_extended/Badge/index.b09524fe.js";
|
|
21
|
-
import "../Image/index.d684bdf2.js";
|
|
22
|
-
import "@mui/lab";
|
|
23
|
-
import "../mui_extended/MenuActions/index.cc54c35c.js";
|
|
24
|
-
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
25
|
-
import "../mui_extended/Stack/index.0e53197c.js";
|
|
26
|
-
import "../mui_extended/Tab/index.ae9ea641.js";
|
|
27
|
-
import "../mui_extended/Pager/index.5fbbefe2.js";
|
|
28
|
-
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
29
|
-
const PropertyValueRoot = styled("div")(({
|
|
30
|
-
theme
|
|
31
|
-
}) => ({
|
|
32
|
-
...theme.components?.M4LPropertyValue?.styleOverrides
|
|
33
|
-
}));
|
|
34
|
-
const componentName = "M4LPropertyValue";
|
|
35
|
-
generateUtilityClasses(componentName, [
|
|
36
|
-
"root",
|
|
37
|
-
"property",
|
|
38
|
-
"iconProperty",
|
|
39
|
-
"value",
|
|
40
|
-
"isDisabled",
|
|
41
|
-
"isFocus",
|
|
42
|
-
"variantIsForm",
|
|
43
|
-
"isTabSelected",
|
|
44
|
-
"isMobile"
|
|
45
|
-
]);
|
|
46
|
-
function getPropertyValueUtilityClass(slot) {
|
|
47
|
-
return generateUtilityClass(componentName, slot);
|
|
48
|
-
}
|
|
49
|
-
const propertyValueUtilityClasses = (ownerState) => {
|
|
50
|
-
const slots = {
|
|
51
|
-
root: ["root", ownerState.disabled && "isDisabled", ownerState.isFocus && "isFocus", ownerState.isForm && "variantIsForm", ownerState.isTabSelected && "isTabSelected", ownerState.isMobile && "isMobile"],
|
|
52
|
-
property: ["property"],
|
|
53
|
-
iconProperty: ["iconProperty"],
|
|
54
|
-
value: ["value"]
|
|
55
|
-
};
|
|
56
|
-
const composedClasses = unstable_composeClasses(slots, getPropertyValueUtilityClass, {});
|
|
57
|
-
return {
|
|
58
|
-
...composedClasses
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
const COMPONENT_PREFIX = "m4l-property-value";
|
|
62
|
-
const TEST_PROPS_DATA = `${COMPONENT_PREFIX}-data`;
|
|
63
|
-
function PropertyValue(props) {
|
|
64
|
-
const {
|
|
65
|
-
property,
|
|
66
|
-
iconProperty,
|
|
67
|
-
value,
|
|
68
|
-
propertyWidth = 200,
|
|
69
|
-
valueHeight = "auto",
|
|
70
|
-
valueWidth = "100",
|
|
71
|
-
valueWidthMobile,
|
|
72
|
-
isForm,
|
|
73
|
-
className,
|
|
74
|
-
dataTestId = "",
|
|
75
|
-
disabled = false
|
|
76
|
-
} = props;
|
|
77
|
-
const isDesktop = useResponsiveDesktop();
|
|
78
|
-
const [isFocus, setIsFocus] = useState(false);
|
|
79
|
-
const [isTabSelected, setIsTabSelected] = useState(false);
|
|
80
|
-
const getValueW = () => {
|
|
81
|
-
if (valueWidthMobile && !isDesktop) {
|
|
82
|
-
return valueWidthMobile;
|
|
83
|
-
}
|
|
84
|
-
if (valueWidth === 75 && isDesktop) {
|
|
85
|
-
return 75;
|
|
86
|
-
} else if (valueWidth === 75 && !isDesktop) {
|
|
87
|
-
return 100;
|
|
88
|
-
}
|
|
89
|
-
if (valueWidth === 50 && isDesktop) {
|
|
90
|
-
return 50;
|
|
91
|
-
} else if (valueWidth === 50 && !isDesktop) {
|
|
92
|
-
return 100;
|
|
93
|
-
}
|
|
94
|
-
if (valueWidth === 25 && isDesktop || valueWidth === 12.5 && isDesktop) {
|
|
95
|
-
return valueWidth;
|
|
96
|
-
}
|
|
97
|
-
if (valueWidth === 25 && !isDesktop) {
|
|
98
|
-
return 50;
|
|
99
|
-
}
|
|
100
|
-
if (valueWidth === 12.5 && !isDesktop) {
|
|
101
|
-
return 25;
|
|
102
|
-
}
|
|
103
|
-
return 100;
|
|
104
|
-
};
|
|
105
|
-
const handlerFocus = () => {
|
|
106
|
-
setIsFocus(true);
|
|
107
|
-
};
|
|
108
|
-
const handlerKeyUp = (event) => {
|
|
109
|
-
if (event.key === "Tab") {
|
|
110
|
-
setIsTabSelected(true);
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
const handlerOnBlur = () => {
|
|
114
|
-
setIsFocus(false);
|
|
115
|
-
setIsTabSelected(false);
|
|
116
|
-
};
|
|
117
|
-
const ownerState = {
|
|
118
|
-
disabled: isForm && disabled ? disabled : false,
|
|
119
|
-
isFocus: !disabled && isForm ? isFocus : false,
|
|
120
|
-
isTabSelected: !disabled && isForm ? isTabSelected : false,
|
|
121
|
-
isForm: isForm ? true : false,
|
|
122
|
-
isMobile: !isDesktop
|
|
123
|
-
};
|
|
124
|
-
const classes = propertyValueUtilityClasses(ownerState);
|
|
125
|
-
if (!isForm) {
|
|
126
|
-
return /* @__PURE__ */ jsxs(PropertyValueRoot, {
|
|
127
|
-
className: clsx(classes.root, className),
|
|
128
|
-
style: {
|
|
129
|
-
gridTemplateColumns: propertyWidth ? `${propertyWidth}px 1fr` : "150px 1fr"
|
|
130
|
-
},
|
|
131
|
-
...process.env.NODE_ENV !== "production" ? {
|
|
132
|
-
[TEST_PROPS_DATA]: JSON.stringify([{
|
|
133
|
-
property: property ? true : false,
|
|
134
|
-
value: value ? true : false
|
|
135
|
-
}]),
|
|
136
|
-
[TEST_PROP_ID]: getNameDataTestId(COMPONENT_PREFIX, "root", dataTestId)
|
|
137
|
-
} : {},
|
|
138
|
-
children: [/* @__PURE__ */ jsxs("div", {
|
|
139
|
-
className: classes.property,
|
|
140
|
-
style: {
|
|
141
|
-
width: propertyWidth && isDesktop ? propertyWidth : "150px",
|
|
142
|
-
minWidth: propertyWidth && isDesktop ? propertyWidth : "150px"
|
|
143
|
-
},
|
|
144
|
-
...process.env.NODE_ENV !== "production" ? {
|
|
145
|
-
[TEST_PROP_ID]: getNameDataTestId(COMPONENT_PREFIX, "property", dataTestId)
|
|
146
|
-
} : {},
|
|
147
|
-
children: [iconProperty ? /* @__PURE__ */ jsx(Icon, {
|
|
148
|
-
src: iconProperty,
|
|
149
|
-
className: classes.iconProperty
|
|
150
|
-
}) : null, /* @__PURE__ */ jsx(Typography, {
|
|
151
|
-
variant: "body",
|
|
152
|
-
skeletonWidth: "70px",
|
|
153
|
-
children: property
|
|
154
|
-
})]
|
|
155
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
156
|
-
className: classes.value,
|
|
157
|
-
style: {
|
|
158
|
-
width: `${getValueW()}%`,
|
|
159
|
-
maxWidth: `${getValueW()}%`,
|
|
160
|
-
height: valueHeight
|
|
161
|
-
},
|
|
162
|
-
...process.env.NODE_ENV !== "production" ? {
|
|
163
|
-
[TEST_PROP_ID]: getNameDataTestId(COMPONENT_PREFIX, "value", dataTestId)
|
|
164
|
-
} : {},
|
|
165
|
-
children: value
|
|
166
|
-
})]
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
return /* @__PURE__ */ jsxs(PropertyValueRoot, {
|
|
170
|
-
className: clsx(classes.root, className),
|
|
171
|
-
style: {
|
|
172
|
-
gridTemplateColumns: propertyWidth ? `${propertyWidth}px 1fr` : "150px 1fr"
|
|
173
|
-
},
|
|
174
|
-
role: "button",
|
|
175
|
-
tabIndex: 0,
|
|
176
|
-
onClick: handlerFocus,
|
|
177
|
-
onBlur: handlerOnBlur,
|
|
178
|
-
onKeyUp: handlerKeyUp,
|
|
179
|
-
...process.env.NODE_ENV !== "production" ? {
|
|
180
|
-
[TEST_PROPS_DATA]: JSON.stringify([{
|
|
181
|
-
property: property ? true : false,
|
|
182
|
-
value: value ? true : false
|
|
183
|
-
}]),
|
|
184
|
-
[TEST_PROP_ID]: getNameDataTestId(COMPONENT_PREFIX, "root", dataTestId)
|
|
185
|
-
} : {},
|
|
186
|
-
children: [/* @__PURE__ */ jsxs("div", {
|
|
187
|
-
className: clsx(classes.root, className),
|
|
188
|
-
style: {
|
|
189
|
-
width: propertyWidth ? `${propertyWidth}px 1fr` : "150px 1fr"
|
|
190
|
-
},
|
|
191
|
-
...process.env.NODE_ENV !== "production" ? {
|
|
192
|
-
[TEST_PROPS_DATA]: JSON.stringify([{
|
|
193
|
-
property: property ? true : false,
|
|
194
|
-
value: value ? true : false
|
|
195
|
-
}]),
|
|
196
|
-
[TEST_PROP_ID]: getNameDataTestId(COMPONENT_PREFIX, "root", dataTestId)
|
|
197
|
-
} : {},
|
|
198
|
-
children: [iconProperty ? /* @__PURE__ */ jsx(Icon, {
|
|
199
|
-
src: iconProperty,
|
|
200
|
-
className: classes.iconProperty
|
|
201
|
-
}) : null, /* @__PURE__ */ jsx(Typography, {
|
|
202
|
-
variant: "body",
|
|
203
|
-
skeletonWidth: "70px",
|
|
204
|
-
children: property
|
|
205
|
-
})]
|
|
206
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
207
|
-
className: classes.value,
|
|
208
|
-
style: {
|
|
209
|
-
width: `${getValueW()}%`,
|
|
210
|
-
maxWidth: `${getValueW()}%`,
|
|
211
|
-
height: valueHeight
|
|
212
|
-
},
|
|
213
|
-
...process.env.NODE_ENV !== "production" ? {
|
|
214
|
-
[TEST_PROP_ID]: getNameDataTestId(COMPONENT_PREFIX, "value", dataTestId)
|
|
215
|
-
} : {},
|
|
216
|
-
children: value
|
|
217
|
-
})]
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
export {
|
|
221
|
-
PropertyValue as P
|
|
222
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const componentName = "M4LToastContainer";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { getToastClassesByState } from ".";
|
|
2
|
-
export interface ToastClassesType {
|
|
3
|
-
root: string;
|
|
4
|
-
toastMessageContainer: string;
|
|
5
|
-
toastMessageIcon: string;
|
|
6
|
-
toastMessageInfo: string;
|
|
7
|
-
}
|
|
8
|
-
export declare type ToastClassesKey = keyof ToastClassesType;
|
|
9
|
-
export declare type Classes = ReturnType<typeof getToastClassesByState>;
|