@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,103 +1,20 @@
|
|
|
1
|
+
import { SvgIcon, Checkbox, InputBase, Skeleton, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { g as getModalDialogComponentsDictionary } from "../ModalDialog/index.a30831c9.js";
|
|
4
|
+
import { g as getPagerComponentsDictionary } from "../mui_extended/Pager/index.9928807e.js";
|
|
1
5
|
import { styled } from "@mui/material/styles";
|
|
2
|
-
import { forwardRef, createContext, useState, useMemo, useEffect, useCallback, useContext, useRef, useLayoutEffect
|
|
6
|
+
import { forwardRef, createContext, useState, useMemo, useEffect, useCallback, useContext, useRef, useLayoutEffect } from "react";
|
|
3
7
|
import { u as useRowSelection, S as SelectCellFormatter, H as HeaderRenderer, D as DataGrid$1 } from "../../react-data-grid.c5377916.js";
|
|
4
8
|
import { useDrag, useDrop, DndProvider } from "react-dnd";
|
|
5
9
|
import { HTML5Backend } from "react-dnd-html5-backend";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { voidFunction, useModuleDictionary, useModuleSkeleton, getPropertyByString, useEnvironment } from "@m4l/core";
|
|
9
|
-
import { M as MenuActions } from "../mui_extended/MenuActions/index.cc54c35c.js";
|
|
10
|
-
import { g as getPagerComponentsDictionary, P as Pager } from "../mui_extended/Pager/index.5fbbefe2.js";
|
|
11
|
-
import { I as IconButton } from "../mui_extended/IconButton/index.5afe56b7.js";
|
|
10
|
+
import { voidFunction, useModuleDictionary, useModuleSkeleton, getPropertyByString } from "@m4l/core";
|
|
11
|
+
import { A as ActionsColumn, a as Actions } from "./subcomponents/Actions/index.5947f820.js";
|
|
12
12
|
import { unstable_composeClasses } from "@mui/base";
|
|
13
|
-
import { u as useModal } from "../../hooks/useModal/index.8acace45.js";
|
|
14
|
-
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.82313aef.js";
|
|
15
|
-
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.c70ae272.js";
|
|
16
|
-
import "../../react-draggable.ee21cb7e.js";
|
|
17
|
-
import "../Resizeable/index.6478d7d8.js";
|
|
18
|
-
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
19
|
-
import "../modal/index.ac0c9093.js";
|
|
20
|
-
import "../animate/index.4e9774a6.js";
|
|
21
|
-
import "framer-motion";
|
|
22
|
-
import "react-router-dom";
|
|
23
|
-
import "../animate/LoadingScreen/index.1d0c4307.js";
|
|
24
|
-
import "../animate/PropagateLoader/index.7fab43c8.js";
|
|
25
|
-
import "zustand";
|
|
26
|
-
import "../areas/contexts/AreasContext/index.cffa1526.js";
|
|
27
|
-
import "../areas/components/AreasAdmin/index.c1539c1b.js";
|
|
28
|
-
import "zustand/shallow";
|
|
29
|
-
import "../ScrollBar/index.010f1b9d.js";
|
|
30
|
-
import "../mui_extended/Accordion/index.3087f40e.js";
|
|
31
|
-
import "../Icon/index.e215d0f0.js";
|
|
32
|
-
import "clsx";
|
|
33
|
-
import "../mui_extended/Typography/index.443590d6.js";
|
|
34
|
-
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
35
|
-
import "@mui/material/Button";
|
|
36
|
-
import "../mui_extended/Button/index.0f2552ed.js";
|
|
37
|
-
import "../mui_extended/CheckBox.38abccd8.js";
|
|
38
|
-
import "../mui_extended/Badge/index.b09524fe.js";
|
|
39
|
-
import "../Image/index.d684bdf2.js";
|
|
40
|
-
import "@mui/lab";
|
|
41
|
-
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
42
|
-
import "../mui_extended/Stack/index.0e53197c.js";
|
|
43
|
-
import "../mui_extended/Tab/index.ae9ea641.js";
|
|
44
|
-
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
45
|
-
import "../areas/components/AreasViewer/index.e084d8e9.js";
|
|
46
|
-
import "../LinearProgressIndeterminate/index.a0ad2d9e.js";
|
|
47
|
-
import "../LoadingError/index.b3e4e8e5.js";
|
|
48
|
-
import "../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
49
|
-
import "zustand/middleware/immer";
|
|
50
|
-
import "../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
51
|
-
import "react-hook-form";
|
|
52
|
-
import "../hook-form/RHFAutocomplete/index.01a8f57e.js";
|
|
53
|
-
import "../HelperText/index.918bba47.js";
|
|
54
|
-
import "../../node_modules.79f5ed2f.js";
|
|
55
|
-
import "lodash-es/debounce";
|
|
56
|
-
import "lodash-es/each";
|
|
57
|
-
import "../hook-form/RHFColorPicker/index.c7695748.js";
|
|
58
|
-
import "lodash/debounce";
|
|
59
|
-
import "../hook-form/RHFAutocompleteAsync/index.df1d5bca.js";
|
|
60
|
-
import "../hook-form/RHFCheckbox/index.23fc4851.js";
|
|
61
|
-
import "@mui/x-date-pickers";
|
|
62
|
-
import "../hook-form/RHFDateTime/index.984b803f.js";
|
|
63
|
-
import "../hook-form/RHFTextField/index.1167879e.js";
|
|
64
|
-
import "../hook-form/RHFPeriod/index.1852e7d3.js";
|
|
65
|
-
import "../Period/index.3bd05e05.js";
|
|
66
|
-
import { A as Actions$1 } from "../CommonActions/components/Actions/index.93e9112b.js";
|
|
67
|
-
import "lodash/isString";
|
|
68
|
-
import "react-dropzone";
|
|
69
|
-
import "../hook-form/RHFUpload/index.49edcb02.js";
|
|
70
|
-
import { C as ConcatenatedFormatter } from "../formatters/index.4426a315.js";
|
|
71
|
-
import "../DynamicFilter/index.9e9885b0.js";
|
|
72
|
-
import "yup";
|
|
73
|
-
import "../../contexts/RHFormContext/index.7769076a.js";
|
|
74
|
-
import "../GridLayout/subcomponents/Griditem/index.8e4af155.js";
|
|
75
|
-
import "../GridLayout/index.68093cfb.js";
|
|
76
|
-
import "fast-equals";
|
|
77
|
-
import "lodash";
|
|
78
|
-
import "../PrintingSystem/index.70234425.js";
|
|
79
|
-
import "../LanguagePopover/index.424bad09.js";
|
|
80
|
-
import "../MFLoader/index.3d17dfc3.js";
|
|
81
|
-
import "../NavLink/index.ed4c0609.js";
|
|
82
|
-
import "../NoItemSelected/index.5ed80b8e.js";
|
|
83
|
-
import "../ObjectLogs/index.3a939c6b.js";
|
|
84
|
-
import "../../react-json-view.5636414a.js";
|
|
85
|
-
import "../PaperForm/index.013ed28b.js";
|
|
86
|
-
import "../PDFViewer/index.4d16e5bc.js";
|
|
87
|
-
import "../Page/index.890fbaac.js";
|
|
88
|
-
import "../PropertyValue/index.45482ca3.js";
|
|
89
|
-
import "../SplitLayout/index.30fd5861.js";
|
|
90
|
-
import "../../react-splitter-layout.c5d98bf7.js";
|
|
91
|
-
import "../ToastContainer/index.5e729fbb.js";
|
|
92
|
-
import "../SideBar/index.614f85fb.js";
|
|
93
|
-
import "../AppBar/index.c8e7b25c.js";
|
|
94
|
-
import "../AccountPopover/index.7060320a.js";
|
|
95
|
-
import { W as WindowBase } from "../modal/WindowBase.8e3e5337.js";
|
|
96
|
-
import { g as getModalDialogComponentsDictionary } from "../ModalDialog/index.40f6571e.js";
|
|
97
13
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
98
|
-
import { g as getNameDataTestId } from "../../
|
|
99
|
-
import { B as BooleanFormatter } from "../formatters/BooleanFormatter/index.
|
|
14
|
+
import { g as getNameDataTestId } from "../../test/getNameDataTestId.14875ec7.js";
|
|
15
|
+
import { B as BooleanFormatter } from "../formatters/BooleanFormatter/index.fcc47dfd.js";
|
|
100
16
|
import { D as DateFormatter } from "../formatters/DateFormatter/index.578a9f53.js";
|
|
17
|
+
import { C as ConcatenatedFormatter } from "../formatters/index.7d5cbac9.js";
|
|
101
18
|
const DataGridRoot = styled("div")(({
|
|
102
19
|
theme
|
|
103
20
|
}) => ({
|
|
@@ -245,8 +162,8 @@ function DataGridProvider(props) {
|
|
|
245
162
|
rows,
|
|
246
163
|
rowsCount,
|
|
247
164
|
rowActionsGetter,
|
|
248
|
-
rowHeights = [
|
|
249
|
-
rowHeaderHeights = [
|
|
165
|
+
rowHeights = [36, 52, 67],
|
|
166
|
+
rowHeaderHeights = [44, 63, 75],
|
|
250
167
|
initialRowHeightVariant = "compact",
|
|
251
168
|
checkedRows,
|
|
252
169
|
onCheckedRowsChange,
|
|
@@ -614,48 +531,6 @@ const getDragHeaderRenderer = (handleColumnsReorder) => {
|
|
|
614
531
|
}
|
|
615
532
|
return HeaderRenderer2;
|
|
616
533
|
};
|
|
617
|
-
function ActionsFormatter(props) {
|
|
618
|
-
const {
|
|
619
|
-
rowActionsGetter,
|
|
620
|
-
classes
|
|
621
|
-
} = useDataGrid();
|
|
622
|
-
const theme = useTheme();
|
|
623
|
-
if (rowActionsGetter === void 0) {
|
|
624
|
-
return /* @__PURE__ */ jsx(Fragment, {});
|
|
625
|
-
}
|
|
626
|
-
return /* @__PURE__ */ jsx(MenuActions, {
|
|
627
|
-
arrowType: "top-left",
|
|
628
|
-
objItem: props.row,
|
|
629
|
-
menuActions: rowActionsGetter,
|
|
630
|
-
className: classes.actionsFormatter,
|
|
631
|
-
menuActionSx: theme.components?.M4LDataGridActionsFormatter?.styleOverrides,
|
|
632
|
-
marginTop: 1,
|
|
633
|
-
marginLeft: "-11px",
|
|
634
|
-
anchorOrigin: {
|
|
635
|
-
vertical: "bottom",
|
|
636
|
-
horizontal: "left"
|
|
637
|
-
},
|
|
638
|
-
transformOrigin: {
|
|
639
|
-
vertical: "top",
|
|
640
|
-
horizontal: "left"
|
|
641
|
-
}
|
|
642
|
-
});
|
|
643
|
-
}
|
|
644
|
-
const ActionsColumn = {
|
|
645
|
-
key: DATAGRID_ACTIONS_COLUMN_KEY,
|
|
646
|
-
name: getActionLabel(),
|
|
647
|
-
width: 60,
|
|
648
|
-
isDraggable: false,
|
|
649
|
-
withFilter: false,
|
|
650
|
-
resizable: true,
|
|
651
|
-
sortable: false,
|
|
652
|
-
frozen: true,
|
|
653
|
-
type: "custom",
|
|
654
|
-
formatter: ActionsFormatter
|
|
655
|
-
};
|
|
656
|
-
function getActionLabel() {
|
|
657
|
-
return "";
|
|
658
|
-
}
|
|
659
534
|
const WrapperSkeleton = styled("div")(() => ({
|
|
660
535
|
display: "flex",
|
|
661
536
|
width: "100%",
|
|
@@ -942,72 +817,6 @@ function Table(props) {
|
|
|
942
817
|
})
|
|
943
818
|
});
|
|
944
819
|
}
|
|
945
|
-
function Filter() {
|
|
946
|
-
const {
|
|
947
|
-
activeFilters,
|
|
948
|
-
setActiveFilters
|
|
949
|
-
} = useFilters();
|
|
950
|
-
const {
|
|
951
|
-
host_static_assets,
|
|
952
|
-
environment_assets
|
|
953
|
-
} = useEnvironment();
|
|
954
|
-
const {
|
|
955
|
-
classes
|
|
956
|
-
} = useDataGrid();
|
|
957
|
-
const toggleIcon = () => {
|
|
958
|
-
setActiveFilters(!activeFilters);
|
|
959
|
-
};
|
|
960
|
-
return /* @__PURE__ */ jsx(IconButton, {
|
|
961
|
-
dictionaryTooltipId: activeFilters ? "data_grid.tooltip_filter_hide" : "data_grid.tooltip_filter_show",
|
|
962
|
-
className: classes.actionFilter,
|
|
963
|
-
onClick: toggleIcon,
|
|
964
|
-
"aria-label": "filter",
|
|
965
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/filter.svg`
|
|
966
|
-
});
|
|
967
|
-
}
|
|
968
|
-
const WrapperColumnsConfig = styled("div")(({ theme }) => ({
|
|
969
|
-
color: theme.palette.text.primary,
|
|
970
|
-
position: "relative",
|
|
971
|
-
display: "flex",
|
|
972
|
-
flexDirection: "column",
|
|
973
|
-
height: "100%",
|
|
974
|
-
width: "100%"
|
|
975
|
-
}));
|
|
976
|
-
styled("div")(({ theme }) => ({
|
|
977
|
-
color: theme.palette.text.primary,
|
|
978
|
-
fontSize: theme.typography.h4.fontSize
|
|
979
|
-
}));
|
|
980
|
-
const DivSelColumns = styled("div")(({ theme }) => ({
|
|
981
|
-
...theme.typography.bodyDens,
|
|
982
|
-
color: theme.palette.text.primary,
|
|
983
|
-
padding: `16px 8px`
|
|
984
|
-
}));
|
|
985
|
-
const WrapperDataGrid = styled("div")(() => ({
|
|
986
|
-
position: "relative",
|
|
987
|
-
display: "flex",
|
|
988
|
-
flexDirection: "column",
|
|
989
|
-
flexGrow: 1,
|
|
990
|
-
overflow: "auto"
|
|
991
|
-
}));
|
|
992
|
-
styled("div")(() => ({
|
|
993
|
-
display: "flex",
|
|
994
|
-
flexDirection: "row"
|
|
995
|
-
}));
|
|
996
|
-
const ColumnActions = styled("div")(() => ({
|
|
997
|
-
paddingTop: "16px",
|
|
998
|
-
paddingBottom: "8px",
|
|
999
|
-
display: "flex",
|
|
1000
|
-
flexDirection: "row"
|
|
1001
|
-
}));
|
|
1002
|
-
styled("div")(({ theme }) => ({
|
|
1003
|
-
paddingTop: theme.spacing(3),
|
|
1004
|
-
display: "flex",
|
|
1005
|
-
flexDirection: "row",
|
|
1006
|
-
justifyContent: "flex-end",
|
|
1007
|
-
"& > button": {
|
|
1008
|
-
marginLeft: "10px"
|
|
1009
|
-
}
|
|
1010
|
-
}));
|
|
1011
820
|
const componentName = "M4LDataGrid";
|
|
1012
821
|
const dataGridClasses = generateUtilityClasses(componentName, [
|
|
1013
822
|
"root",
|
|
@@ -1089,434 +898,6 @@ function ColumnInteractiveCheckFormatterColumn(props) {
|
|
|
1089
898
|
className: dataGridClasses.formatterColumn
|
|
1090
899
|
});
|
|
1091
900
|
}
|
|
1092
|
-
function getRowsFromColumnsConfig(columnsConfig) {
|
|
1093
|
-
return columnsConfig.filter((column) => !column.hidden).map((column) => ({
|
|
1094
|
-
key: column.key,
|
|
1095
|
-
name: column.name,
|
|
1096
|
-
visible: column.visible === void 0 ? true : column.visible,
|
|
1097
|
-
frozen: column.frozen === void 0 ? false : column.frozen,
|
|
1098
|
-
originalIndex: column.orginalIndex,
|
|
1099
|
-
originalFrozen: column.originalFrozen,
|
|
1100
|
-
originalVisible: column.originalVisible
|
|
1101
|
-
}));
|
|
1102
|
-
}
|
|
1103
|
-
const ColumnsConfig = forwardRef((props, ref) => {
|
|
1104
|
-
const refdata_grid = useRef(null);
|
|
1105
|
-
const {
|
|
1106
|
-
onCloseSettings,
|
|
1107
|
-
columnsConfig,
|
|
1108
|
-
onChangeColumnsConfig,
|
|
1109
|
-
classes
|
|
1110
|
-
} = props;
|
|
1111
|
-
const {
|
|
1112
|
-
getLabel
|
|
1113
|
-
} = useModuleDictionary();
|
|
1114
|
-
const [isInit, setIsInit] = useState(true);
|
|
1115
|
-
const [rows, setRows] = useState(getRowsFromColumnsConfig(columnsConfig));
|
|
1116
|
-
const [selRows, setSelRows] = useState(() => /* @__PURE__ */ new Set());
|
|
1117
|
-
const divRef = useRef(null);
|
|
1118
|
-
const {
|
|
1119
|
-
host_static_assets,
|
|
1120
|
-
environment_assets
|
|
1121
|
-
} = useEnvironment();
|
|
1122
|
-
useImperativeHandle(ref, () => ({
|
|
1123
|
-
onClickIntro: handleIntro,
|
|
1124
|
-
current: divRef.current
|
|
1125
|
-
}));
|
|
1126
|
-
const columnsdata_grid = useMemo(() => [{
|
|
1127
|
-
key: "name",
|
|
1128
|
-
name: getLabel("data_grid.settings_column_name"),
|
|
1129
|
-
width: 200,
|
|
1130
|
-
resizable: true,
|
|
1131
|
-
type: "string"
|
|
1132
|
-
}, {
|
|
1133
|
-
key: "originalIndex",
|
|
1134
|
-
name: getLabel("data_grid.settings_column_position"),
|
|
1135
|
-
width: 50,
|
|
1136
|
-
type: "number",
|
|
1137
|
-
cellClass: "rdg-cell-align-center"
|
|
1138
|
-
}, {
|
|
1139
|
-
key: "visible",
|
|
1140
|
-
name: getLabel("data_grid.settings_column_visible"),
|
|
1141
|
-
width: 80,
|
|
1142
|
-
type: "boolean",
|
|
1143
|
-
formatter: ColumnInteractiveCheckFormatterColumn,
|
|
1144
|
-
cellClass: "rdg-cell-align-center"
|
|
1145
|
-
}, {
|
|
1146
|
-
key: "frozen",
|
|
1147
|
-
name: getLabel("data_grid.settings_column_frozen"),
|
|
1148
|
-
width: 80,
|
|
1149
|
-
type: "boolean",
|
|
1150
|
-
formatter: ColumnInteractiveCheckFormatterColumn,
|
|
1151
|
-
cellClass: "rdg-cell-align-center"
|
|
1152
|
-
}], [getLabel]);
|
|
1153
|
-
const checkAll = () => {
|
|
1154
|
-
setRows(rows.map((row) => ({
|
|
1155
|
-
...row,
|
|
1156
|
-
visible: true
|
|
1157
|
-
})));
|
|
1158
|
-
};
|
|
1159
|
-
const unCheckAll = () => {
|
|
1160
|
-
setRows(rows.map((row) => ({
|
|
1161
|
-
...row,
|
|
1162
|
-
visible: false
|
|
1163
|
-
})));
|
|
1164
|
-
};
|
|
1165
|
-
const restoreAll = () => {
|
|
1166
|
-
setRows(rows.map((row) => ({
|
|
1167
|
-
...row,
|
|
1168
|
-
visible: row.originalVisible,
|
|
1169
|
-
frozen: row.originalFrozen,
|
|
1170
|
-
index: row.originalIndex
|
|
1171
|
-
})).sort((a, b) => a.index - b.index));
|
|
1172
|
-
};
|
|
1173
|
-
useEffect(() => {
|
|
1174
|
-
if (isInit === false) {
|
|
1175
|
-
setRows(getRowsFromColumnsConfig(columnsConfig));
|
|
1176
|
-
}
|
|
1177
|
-
setIsInit(false);
|
|
1178
|
-
}, [columnsConfig]);
|
|
1179
|
-
const rowSelectedIndex = useMemo(() => {
|
|
1180
|
-
let rowIndex = -1;
|
|
1181
|
-
if (selRows.size !== 1)
|
|
1182
|
-
return rowIndex;
|
|
1183
|
-
const iterator = selRows.entries();
|
|
1184
|
-
const entry = iterator.next().value[1];
|
|
1185
|
-
rowIndex = rows.findIndex((row) => row.key === entry);
|
|
1186
|
-
return rowIndex;
|
|
1187
|
-
}, [rows, selRows]);
|
|
1188
|
-
const handleMoveFirst = () => {
|
|
1189
|
-
if (rowSelectedIndex === -1)
|
|
1190
|
-
return -1;
|
|
1191
|
-
const newRows = [...rows];
|
|
1192
|
-
newRows.splice(rowSelectedIndex, 1);
|
|
1193
|
-
newRows.splice(0, 0, rows[rowSelectedIndex]);
|
|
1194
|
-
refdata_grid.current?.selectCell({
|
|
1195
|
-
idx: 0,
|
|
1196
|
-
rowIdx: 0
|
|
1197
|
-
});
|
|
1198
|
-
setRows(newRows);
|
|
1199
|
-
};
|
|
1200
|
-
const handleMoveLast = () => {
|
|
1201
|
-
if (rowSelectedIndex === -1)
|
|
1202
|
-
return -1;
|
|
1203
|
-
const newRows = [...rows];
|
|
1204
|
-
newRows.splice(rowSelectedIndex, 1);
|
|
1205
|
-
newRows.splice(newRows.length, 0, rows[rowSelectedIndex]);
|
|
1206
|
-
refdata_grid.current?.selectCell({
|
|
1207
|
-
idx: 0,
|
|
1208
|
-
rowIdx: newRows.length - 1
|
|
1209
|
-
});
|
|
1210
|
-
setRows(newRows);
|
|
1211
|
-
};
|
|
1212
|
-
const handleMoveUpDownd = (position) => {
|
|
1213
|
-
if (rowSelectedIndex === -1)
|
|
1214
|
-
return -1;
|
|
1215
|
-
const newRows = [...rows];
|
|
1216
|
-
const element = newRows[rowSelectedIndex];
|
|
1217
|
-
newRows.splice(rowSelectedIndex, 1);
|
|
1218
|
-
newRows.splice(rowSelectedIndex + position, 0, element);
|
|
1219
|
-
refdata_grid.current?.selectCell({
|
|
1220
|
-
idx: 0,
|
|
1221
|
-
rowIdx: rowSelectedIndex + position
|
|
1222
|
-
});
|
|
1223
|
-
setRows(newRows);
|
|
1224
|
-
};
|
|
1225
|
-
const getColumnConfigByKey2 = (key) => {
|
|
1226
|
-
const rowIndexFinded = rows.findIndex((row) => row.key === key);
|
|
1227
|
-
if (rowIndexFinded > -1) {
|
|
1228
|
-
return {
|
|
1229
|
-
visible: rows[rowIndexFinded].visible,
|
|
1230
|
-
frozen: rows[rowIndexFinded].frozen
|
|
1231
|
-
};
|
|
1232
|
-
}
|
|
1233
|
-
return void 0;
|
|
1234
|
-
};
|
|
1235
|
-
const getRowIndex = (column) => {
|
|
1236
|
-
const rowIndexFinded = rows.findIndex((row) => row.key === column.key);
|
|
1237
|
-
if (rowIndexFinded > -1) {
|
|
1238
|
-
return rowIndexFinded;
|
|
1239
|
-
}
|
|
1240
|
-
return columnsConfig.findIndex((columnConfig) => columnConfig.key === column.key);
|
|
1241
|
-
};
|
|
1242
|
-
const handleIntro = () => {
|
|
1243
|
-
const newColumnsConfig = columnsConfig.map((columnConfig) => {
|
|
1244
|
-
const newColumnConfig = {
|
|
1245
|
-
...columnConfig
|
|
1246
|
-
};
|
|
1247
|
-
if (!columnConfig.hidden) {
|
|
1248
|
-
const columnConfigRow = getColumnConfigByKey2(columnConfig.key);
|
|
1249
|
-
if (columnConfigRow) {
|
|
1250
|
-
newColumnConfig.visible = columnConfigRow.visible;
|
|
1251
|
-
newColumnConfig.frozen = columnConfigRow.frozen;
|
|
1252
|
-
}
|
|
1253
|
-
}
|
|
1254
|
-
return newColumnConfig;
|
|
1255
|
-
}).sort((a, b) => getRowIndex(a) - getRowIndex(b));
|
|
1256
|
-
onChangeColumnsConfig(newColumnsConfig);
|
|
1257
|
-
onCloseSettings();
|
|
1258
|
-
};
|
|
1259
|
-
const onInternalSelectedRowsChange = () => {
|
|
1260
|
-
};
|
|
1261
|
-
const onInternalRowsChange = (newRows) => {
|
|
1262
|
-
setRows(newRows);
|
|
1263
|
-
};
|
|
1264
|
-
const onRowClick = (row) => {
|
|
1265
|
-
if (selRows.has(row.key))
|
|
1266
|
-
return;
|
|
1267
|
-
const mySet = /* @__PURE__ */ new Set([row.key]);
|
|
1268
|
-
setSelRows(mySet);
|
|
1269
|
-
};
|
|
1270
|
-
return /* @__PURE__ */ jsxs(WrapperColumnsConfig, {
|
|
1271
|
-
ref: divRef,
|
|
1272
|
-
className: classes.columnsConfigContainer,
|
|
1273
|
-
children: [/* @__PURE__ */ jsx(DivSelColumns, {
|
|
1274
|
-
className: classes.columnsLabelSetColumns,
|
|
1275
|
-
children: getLabel("data_grid.settings_sel_columns")
|
|
1276
|
-
}), /* @__PURE__ */ jsx(WrapperDataGrid, {
|
|
1277
|
-
className: classes.columnsConfigContent,
|
|
1278
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
1279
|
-
className: classes.wrapperDataGridCss,
|
|
1280
|
-
children: /* @__PURE__ */ jsx(DataGrid$1, {
|
|
1281
|
-
className: classes.columnsConfigGrid,
|
|
1282
|
-
ref: refdata_grid,
|
|
1283
|
-
columns: columnsdata_grid,
|
|
1284
|
-
rows,
|
|
1285
|
-
onRowsChange: onInternalRowsChange,
|
|
1286
|
-
selectedRows: selRows,
|
|
1287
|
-
onSelectedRowsChange: onInternalSelectedRowsChange,
|
|
1288
|
-
onRowClick,
|
|
1289
|
-
rowKeyGetter: (row) => row.key,
|
|
1290
|
-
cellNavigationMode: "CHANGE_ROW",
|
|
1291
|
-
defaultColumnOptions: {
|
|
1292
|
-
resizable: true,
|
|
1293
|
-
sortable: true
|
|
1294
|
-
}
|
|
1295
|
-
})
|
|
1296
|
-
})
|
|
1297
|
-
}), /* @__PURE__ */ jsxs(ColumnActions, {
|
|
1298
|
-
className: classes.columnsConfigActions,
|
|
1299
|
-
children: [/* @__PURE__ */ jsx(IconButton, {
|
|
1300
|
-
tooltip: getLabel("data_grid.settings_move_first"),
|
|
1301
|
-
onClick: handleMoveFirst,
|
|
1302
|
-
"aria-label": "move first place",
|
|
1303
|
-
disabled: rowSelectedIndex < 1,
|
|
1304
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/move_first_place.svg`
|
|
1305
|
-
}), /* @__PURE__ */ jsx(IconButton, {
|
|
1306
|
-
tooltip: getLabel("data_grid.settings_move_up"),
|
|
1307
|
-
dictionaryTooltipId: "data_grid.settings_move_up",
|
|
1308
|
-
onClick: () => handleMoveUpDownd(-1),
|
|
1309
|
-
"aria-label": "move up place",
|
|
1310
|
-
disabled: rowSelectedIndex < 1,
|
|
1311
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/move_up_place.svg`
|
|
1312
|
-
}), /* @__PURE__ */ jsx(IconButton, {
|
|
1313
|
-
tooltip: getLabel("data_grid.settings_move_last"),
|
|
1314
|
-
onClick: handleMoveLast,
|
|
1315
|
-
"aria-label": "move last place",
|
|
1316
|
-
disabled: !!(rowSelectedIndex === rows.length - 1 || rowSelectedIndex === -1),
|
|
1317
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/move_last_place.svg`
|
|
1318
|
-
}), /* @__PURE__ */ jsx(IconButton, {
|
|
1319
|
-
tooltip: getLabel("data_grid.settings_move_down"),
|
|
1320
|
-
onClick: () => handleMoveUpDownd(1),
|
|
1321
|
-
"aria-label": "move down place",
|
|
1322
|
-
disabled: !!(rowSelectedIndex === rows.length - 1 || rowSelectedIndex === -1),
|
|
1323
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/move_down_place.svg`
|
|
1324
|
-
}), /* @__PURE__ */ jsx(IconButton, {
|
|
1325
|
-
tooltip: getLabel("data_grid.settings_visible_all"),
|
|
1326
|
-
onClick: checkAll,
|
|
1327
|
-
"aria-label": "check visible all",
|
|
1328
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/check_all.svg`
|
|
1329
|
-
}), /* @__PURE__ */ jsx(IconButton, {
|
|
1330
|
-
tooltip: getLabel("data_grid.settings_no_visible_all"),
|
|
1331
|
-
onClick: unCheckAll,
|
|
1332
|
-
"aria-label": "un check all",
|
|
1333
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/uncheck_all.svg`
|
|
1334
|
-
}), /* @__PURE__ */ jsx(IconButton, {
|
|
1335
|
-
tooltip: getLabel("data_grid.settings_restore"),
|
|
1336
|
-
onClick: restoreAll,
|
|
1337
|
-
"aria-label": "Restore columns",
|
|
1338
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/restore_columns.svg`
|
|
1339
|
-
})]
|
|
1340
|
-
})]
|
|
1341
|
-
});
|
|
1342
|
-
});
|
|
1343
|
-
ColumnsConfig.displayName = "ColumnsConfig";
|
|
1344
|
-
function Settings() {
|
|
1345
|
-
const {
|
|
1346
|
-
openModal,
|
|
1347
|
-
closeModal
|
|
1348
|
-
} = useModal();
|
|
1349
|
-
const {
|
|
1350
|
-
columnsConfig,
|
|
1351
|
-
onChangeColumnsConfig
|
|
1352
|
-
} = useDataGrid();
|
|
1353
|
-
const {
|
|
1354
|
-
getLabel
|
|
1355
|
-
} = useModuleDictionary();
|
|
1356
|
-
const {
|
|
1357
|
-
host_static_assets,
|
|
1358
|
-
environment_assets
|
|
1359
|
-
} = useEnvironment();
|
|
1360
|
-
const isDesktop = useResponsiveDesktop();
|
|
1361
|
-
const {
|
|
1362
|
-
classes
|
|
1363
|
-
} = useDataGrid();
|
|
1364
|
-
const ref = useRef(null);
|
|
1365
|
-
const onCloseSettings = useCallback(() => {
|
|
1366
|
-
closeModal();
|
|
1367
|
-
}, [closeModal]);
|
|
1368
|
-
const onClickIntro = useCallback(() => {
|
|
1369
|
-
if (ref.current?.onClickIntro) {
|
|
1370
|
-
ref.current?.onClickIntro();
|
|
1371
|
-
}
|
|
1372
|
-
}, []);
|
|
1373
|
-
const onClickSettings = useCallback(() => {
|
|
1374
|
-
openModal({
|
|
1375
|
-
initialWidth: 500,
|
|
1376
|
-
initialHeigth: 680,
|
|
1377
|
-
fullScreen: !isDesktop ? true : false,
|
|
1378
|
-
window: /* @__PURE__ */ jsxs(WindowBase, {
|
|
1379
|
-
title: getLabel("data_grid.settings_title"),
|
|
1380
|
-
urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/configuration.svg`,
|
|
1381
|
-
children: [/* @__PURE__ */ jsx(DataGridRoot, {
|
|
1382
|
-
className: classes.root,
|
|
1383
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
1384
|
-
className: classes.tableContaniner,
|
|
1385
|
-
style: {
|
|
1386
|
-
inset: "0"
|
|
1387
|
-
},
|
|
1388
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
1389
|
-
className: classes.wrapperDataGridCss,
|
|
1390
|
-
children: /* @__PURE__ */ jsx(ColumnsConfig, {
|
|
1391
|
-
ref,
|
|
1392
|
-
columnsConfig,
|
|
1393
|
-
onChangeColumnsConfig,
|
|
1394
|
-
onCloseSettings,
|
|
1395
|
-
classes
|
|
1396
|
-
})
|
|
1397
|
-
})
|
|
1398
|
-
})
|
|
1399
|
-
}), /* @__PURE__ */ jsxs(Actions$1, {
|
|
1400
|
-
children: [/* @__PURE__ */ jsx(ActionCancel, {
|
|
1401
|
-
onClick: closeModal
|
|
1402
|
-
}), /* @__PURE__ */ jsx(ActionIntro, {
|
|
1403
|
-
onClick: onClickIntro
|
|
1404
|
-
})]
|
|
1405
|
-
})]
|
|
1406
|
-
})
|
|
1407
|
-
});
|
|
1408
|
-
}, [closeModal, columnsConfig, getLabel, onChangeColumnsConfig, onCloseSettings, openModal, onClickIntro]);
|
|
1409
|
-
return /* @__PURE__ */ jsx(IconButton, {
|
|
1410
|
-
className: classes.actionSettings,
|
|
1411
|
-
dictionaryTooltipId: "data_grid.tooltip_settings",
|
|
1412
|
-
onClick: onClickSettings,
|
|
1413
|
-
"aria-label": "settings",
|
|
1414
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/configuration.svg`
|
|
1415
|
-
});
|
|
1416
|
-
}
|
|
1417
|
-
function RowsCount() {
|
|
1418
|
-
const {
|
|
1419
|
-
rowsCount,
|
|
1420
|
-
classes
|
|
1421
|
-
} = useDataGrid();
|
|
1422
|
-
const {
|
|
1423
|
-
getLabel
|
|
1424
|
-
} = useModuleDictionary();
|
|
1425
|
-
const isSkeleton = useModuleSkeleton();
|
|
1426
|
-
return /* @__PURE__ */ jsx("div", {
|
|
1427
|
-
className: classes.rowsCount,
|
|
1428
|
-
children: !isSkeleton ? /* @__PURE__ */ jsxs(Fragment, {
|
|
1429
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
1430
|
-
className: classes.rowsCountLabel,
|
|
1431
|
-
children: getLabel("data_grid.rows")
|
|
1432
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
1433
|
-
className: classes.rowsCountValue,
|
|
1434
|
-
children: rowsCount
|
|
1435
|
-
})]
|
|
1436
|
-
}) : /* @__PURE__ */ jsxs(Fragment, {
|
|
1437
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
1438
|
-
className: classes.rowsCountLabel,
|
|
1439
|
-
children: /* @__PURE__ */ jsx(Skeleton, {
|
|
1440
|
-
variant: "text",
|
|
1441
|
-
width: "40px",
|
|
1442
|
-
height: "16px"
|
|
1443
|
-
})
|
|
1444
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
1445
|
-
className: classes.rowsCountValue,
|
|
1446
|
-
children: /* @__PURE__ */ jsx(Skeleton, {
|
|
1447
|
-
variant: "text",
|
|
1448
|
-
width: "20px",
|
|
1449
|
-
height: "16px"
|
|
1450
|
-
})
|
|
1451
|
-
})]
|
|
1452
|
-
})
|
|
1453
|
-
});
|
|
1454
|
-
}
|
|
1455
|
-
function Density() {
|
|
1456
|
-
const {
|
|
1457
|
-
host_static_assets,
|
|
1458
|
-
environment_assets
|
|
1459
|
-
} = useEnvironment();
|
|
1460
|
-
const {
|
|
1461
|
-
rowHeights,
|
|
1462
|
-
currentRowHeightVariant,
|
|
1463
|
-
setRowHeightVariant,
|
|
1464
|
-
classes
|
|
1465
|
-
} = useDataGrid();
|
|
1466
|
-
const {
|
|
1467
|
-
getLabel
|
|
1468
|
-
} = useModuleDictionary();
|
|
1469
|
-
const menuActions = useMemo(() => {
|
|
1470
|
-
if (typeof rowHeights === "number") {
|
|
1471
|
-
return [];
|
|
1472
|
-
}
|
|
1473
|
-
return [{
|
|
1474
|
-
urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/compact.svg`,
|
|
1475
|
-
onClick: () => setRowHeightVariant("compact"),
|
|
1476
|
-
disabled: currentRowHeightVariant === "compact",
|
|
1477
|
-
dictionaryField: "data_grid.density_compact"
|
|
1478
|
-
}, {
|
|
1479
|
-
urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/standard.svg`,
|
|
1480
|
-
onClick: () => setRowHeightVariant("standard"),
|
|
1481
|
-
disabled: currentRowHeightVariant === "standard",
|
|
1482
|
-
dictionaryField: "data_grid.density_standard"
|
|
1483
|
-
}, {
|
|
1484
|
-
urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/confortable.svg`,
|
|
1485
|
-
onClick: () => setRowHeightVariant("confortable"),
|
|
1486
|
-
disabled: currentRowHeightVariant === "confortable",
|
|
1487
|
-
dictionaryField: "data_grid.density_confortable"
|
|
1488
|
-
}];
|
|
1489
|
-
}, [rowHeights, currentRowHeightVariant, setRowHeightVariant, host_static_assets, environment_assets]);
|
|
1490
|
-
const theme = useTheme();
|
|
1491
|
-
const currenViewIcon = useMemo(() => {
|
|
1492
|
-
if (currentRowHeightVariant === "compact") {
|
|
1493
|
-
return `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/compact.svg`;
|
|
1494
|
-
}
|
|
1495
|
-
if (currentRowHeightVariant === "standard") {
|
|
1496
|
-
return `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/standard.svg`;
|
|
1497
|
-
}
|
|
1498
|
-
return `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/confortable.svg`;
|
|
1499
|
-
}, [currentRowHeightVariant, host_static_assets, environment_assets]);
|
|
1500
|
-
if (menuActions.length === 0) {
|
|
1501
|
-
return /* @__PURE__ */ jsx(Fragment, {});
|
|
1502
|
-
}
|
|
1503
|
-
return /* @__PURE__ */ jsx(MenuActions, {
|
|
1504
|
-
arrowType: "right-top",
|
|
1505
|
-
className: classes.actionDensityPopover,
|
|
1506
|
-
menuActionSx: theme.components?.M4LDataGridDensityPopover?.styleOverrides,
|
|
1507
|
-
anchorOrigin: {
|
|
1508
|
-
vertical: "top",
|
|
1509
|
-
horizontal: "left"
|
|
1510
|
-
},
|
|
1511
|
-
transformOrigin: {
|
|
1512
|
-
vertical: "top",
|
|
1513
|
-
horizontal: "right"
|
|
1514
|
-
},
|
|
1515
|
-
menuActions,
|
|
1516
|
-
urlIcon: currenViewIcon,
|
|
1517
|
-
toolTip: getLabel("data_grid.tooltip_density")
|
|
1518
|
-
});
|
|
1519
|
-
}
|
|
1520
901
|
function getDataGridComponentsDictionary() {
|
|
1521
902
|
return ["data_grid"].concat(getPagerComponentsDictionary()).concat(getModalDialogComponentsDictionary());
|
|
1522
903
|
}
|
|
@@ -1525,41 +906,6 @@ const dictionary = {
|
|
|
1525
906
|
LABEL_ROWS_PER_PAGE: "pager.rows_per_page",
|
|
1526
907
|
LABEL_OF: "pager.of"
|
|
1527
908
|
};
|
|
1528
|
-
function Actions(props) {
|
|
1529
|
-
const isDesktop = useResponsiveDesktop();
|
|
1530
|
-
const {
|
|
1531
|
-
rowHeights,
|
|
1532
|
-
classes
|
|
1533
|
-
} = useDataGrid();
|
|
1534
|
-
const isSkeleton = useModuleSkeleton();
|
|
1535
|
-
const {
|
|
1536
|
-
getLabel
|
|
1537
|
-
} = useModuleDictionary();
|
|
1538
|
-
const {
|
|
1539
|
-
withRowsCount = true,
|
|
1540
|
-
withPager = true,
|
|
1541
|
-
pagerOptions,
|
|
1542
|
-
withSettings = true,
|
|
1543
|
-
settingsProps,
|
|
1544
|
-
withLocalFilters
|
|
1545
|
-
} = props;
|
|
1546
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
1547
|
-
className: classes.actions,
|
|
1548
|
-
children: [withRowsCount && isDesktop && /* @__PURE__ */ jsx(RowsCount, {}), withPager && pagerOptions && /* @__PURE__ */ jsx(Pager, {
|
|
1549
|
-
...pagerOptions,
|
|
1550
|
-
totalRecords: pagerOptions.totalRecords,
|
|
1551
|
-
isSkeleton,
|
|
1552
|
-
isDesktop,
|
|
1553
|
-
labelRows: getLabel(dictionary.LABEL_ROWS_PER_PAGE),
|
|
1554
|
-
labelOf: getLabel(dictionary.LABEL_OF)
|
|
1555
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
1556
|
-
className: classes.actionsConfigContainer,
|
|
1557
|
-
children: [typeof rowHeights !== "number" && /* @__PURE__ */ jsx(Density, {}), withLocalFilters && /* @__PURE__ */ jsx(Filter, {}), withSettings && /* @__PURE__ */ jsx(Settings, {
|
|
1558
|
-
...settingsProps
|
|
1559
|
-
})]
|
|
1560
|
-
})]
|
|
1561
|
-
});
|
|
1562
|
-
}
|
|
1563
909
|
const DATAGRID_TEST_ID = "m4ldatagrid";
|
|
1564
910
|
const PREFIX_TEST_ATTRIBUTE = "data-testid";
|
|
1565
911
|
const TEST_PROP_COLUMNS = `${PREFIX_TEST_ATTRIBUTE}-${DATAGRID_TEST_ID}-columns`;
|
|
@@ -1691,64 +1037,6 @@ function columnConcatenatedValuesFormatter(props) {
|
|
|
1691
1037
|
});
|
|
1692
1038
|
};
|
|
1693
1039
|
}
|
|
1694
|
-
const Input = styled("input")(() => ({
|
|
1695
|
-
appearance: "none",
|
|
1696
|
-
boxSizing: "border-box",
|
|
1697
|
-
inlineSize: "100%",
|
|
1698
|
-
blockSize: "100%",
|
|
1699
|
-
paddingBlock: "0",
|
|
1700
|
-
verticalAlign: "top",
|
|
1701
|
-
textAlign: "right",
|
|
1702
|
-
color: "var(--rdg-color)",
|
|
1703
|
-
backgroundColor: "var(--rdg-background-color)",
|
|
1704
|
-
fontFamily: "inherit",
|
|
1705
|
-
"&:focus": {
|
|
1706
|
-
outline: "none"
|
|
1707
|
-
},
|
|
1708
|
-
"&::placeholder": {
|
|
1709
|
-
color: "#999",
|
|
1710
|
-
opacity: "1"
|
|
1711
|
-
}
|
|
1712
|
-
}));
|
|
1713
|
-
function autoFocusAndSelect(input) {
|
|
1714
|
-
input?.focus();
|
|
1715
|
-
input?.select();
|
|
1716
|
-
}
|
|
1717
|
-
function TextEditor({
|
|
1718
|
-
row,
|
|
1719
|
-
column,
|
|
1720
|
-
onRowChange,
|
|
1721
|
-
onClose
|
|
1722
|
-
}) {
|
|
1723
|
-
return /* @__PURE__ */ jsx(Input, {
|
|
1724
|
-
className: "rdg-text-editor",
|
|
1725
|
-
ref: autoFocusAndSelect,
|
|
1726
|
-
value: row[column.key],
|
|
1727
|
-
onChange: (event) => onRowChange({
|
|
1728
|
-
...row,
|
|
1729
|
-
[column.key]: event.target.value
|
|
1730
|
-
}),
|
|
1731
|
-
onBlur: () => onClose(true)
|
|
1732
|
-
});
|
|
1733
|
-
}
|
|
1734
|
-
function NumberEditor({
|
|
1735
|
-
row,
|
|
1736
|
-
column,
|
|
1737
|
-
onRowChange,
|
|
1738
|
-
onClose
|
|
1739
|
-
}) {
|
|
1740
|
-
return /* @__PURE__ */ jsx(Input, {
|
|
1741
|
-
className: "rdg-text-editor",
|
|
1742
|
-
ref: autoFocusAndSelect,
|
|
1743
|
-
type: "number",
|
|
1744
|
-
value: row[column.key],
|
|
1745
|
-
onChange: (event) => onRowChange({
|
|
1746
|
-
...row,
|
|
1747
|
-
[column.key]: event.target.value !== "" ? Number(event.target.value) : ""
|
|
1748
|
-
}),
|
|
1749
|
-
onBlur: () => onClose(true)
|
|
1750
|
-
});
|
|
1751
|
-
}
|
|
1752
1040
|
const getDataGridRowsFromSet = (set, rows, rowKeyGetter) => {
|
|
1753
1041
|
const rowsFinded = [];
|
|
1754
1042
|
if (set) {
|
|
@@ -1766,13 +1054,47 @@ const getDataGridRowsFromSet = (set, rows, rowKeyGetter) => {
|
|
|
1766
1054
|
}
|
|
1767
1055
|
return rowsFinded;
|
|
1768
1056
|
};
|
|
1057
|
+
function ColumnSetCheckFormatter(parameters) {
|
|
1058
|
+
const {
|
|
1059
|
+
field,
|
|
1060
|
+
rowKeyGetter,
|
|
1061
|
+
useHook
|
|
1062
|
+
} = parameters;
|
|
1063
|
+
const formatter = (props) => {
|
|
1064
|
+
const {
|
|
1065
|
+
row
|
|
1066
|
+
} = props;
|
|
1067
|
+
const [checkedRows, setCheckedRows] = useHook(field);
|
|
1068
|
+
const onChange = (checked, _isShiftClick) => {
|
|
1069
|
+
const newCheckedRows = new Set(checkedRows);
|
|
1070
|
+
if (checked) {
|
|
1071
|
+
newCheckedRows.add(rowKeyGetter(props.row));
|
|
1072
|
+
} else {
|
|
1073
|
+
newCheckedRows.delete(rowKeyGetter(props.row));
|
|
1074
|
+
}
|
|
1075
|
+
setCheckedRows(newCheckedRows);
|
|
1076
|
+
};
|
|
1077
|
+
return /* @__PURE__ */ jsx(SelectCellFormatter, {
|
|
1078
|
+
value: checkedRows.has(rowKeyGetter(row)) || false,
|
|
1079
|
+
isCellSelected: props.isCellSelected,
|
|
1080
|
+
onChange,
|
|
1081
|
+
"aria-label": "Select"
|
|
1082
|
+
});
|
|
1083
|
+
};
|
|
1084
|
+
return formatter;
|
|
1085
|
+
}
|
|
1769
1086
|
export {
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1087
|
+
ColumnInteractiveCheckFormatterColumn as C,
|
|
1088
|
+
DATAGRID_ACTIONS_COLUMN_KEY as D,
|
|
1089
|
+
useFilters as a,
|
|
1090
|
+
DataGridRoot as b,
|
|
1091
|
+
DataGrid as c,
|
|
1092
|
+
dictionary as d,
|
|
1093
|
+
ColumnSetCheckFormatter as e,
|
|
1094
|
+
columnDateFormatter as f,
|
|
1095
|
+
getDataGridComponentsDictionary as g,
|
|
1096
|
+
getDataGridRowsFromSet as h,
|
|
1097
|
+
columnBooleanFormatter as i,
|
|
1098
|
+
columnConcatenatedValuesFormatter as j,
|
|
1099
|
+
useDataGrid as u
|
|
1778
1100
|
};
|