@m4l/components 0.2.33 → 0.2.35
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 +25 -0
- package/{commonjs.333e55c7.js → commonjs.565e6834.js} +0 -5
- package/components/AccountPopover/{index.e0f283a2.js → index.39efc8f0.js} +1 -1
- package/components/AppBar/{index.a93fc76c.js → index.c8850b99.js} +2 -2
- package/components/CommonActions/components/ActionCancel/{index.6a991836.js → index.416cbf9b.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.9801982c.js → index.78267f7c.js} +4 -4
- package/components/CommonActions/components/ActionFormIntro/{index.f7ee99e7.js → index.dcb4d280.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.7d321553.js → index.094290fd.js} +2 -2
- package/components/CommonActions/components/Actions/{index.5ebb95fe.js → index.fa7ab18c.js} +1 -8
- package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.de8a24bb.js → index.cd6e553a.js} +1 -1
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.220dc8f0.js → index.0c439ac3.js} +1 -1
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.fef17717.js → index.867b8745.js} +1 -1
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/{index.eb406256.js → index.0b23ba88.js} +6 -0
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/types.d.ts +1 -0
- package/components/DataGrid/{index.27810831.js → index.abe0f9b9.js} +43 -41
- package/components/DataGrid/subcomponents/Actions/{index.810ec53e.js → index.4f2071ee.js} +12 -11
- package/components/DragResizeWindow/DragResizeWindow.d.ts +15 -9
- package/components/DragResizeWindow/classes/types.d.ts +1 -0
- package/components/DragResizeWindow/{index.1091606d.js → index.13ef022e.js} +108 -63
- package/components/DragResizeWindow/types.d.ts +23 -1
- package/components/DynamicFilter/{index.781f1212.js → index.c52a8e96.js} +11 -11
- package/components/FieldLabel/{index.6127de0c.js → index.0412576c.js} +2 -2
- package/components/GridLayout/{index.cd9b0723.js → index.65470f01.js} +2 -2
- package/components/GridLayout/subcomponents/Griditem/{index.9d65edbc.js → index.30016fc1.js} +3 -3
- package/components/GridLayout/subcomponents/Responsive/{index.26128960.js → index.5b3e0521.js} +1 -1
- package/components/GridLayout/subcomponents/SizeProvider/{index.003027c6.js → index.0328ad0a.js} +1 -1
- package/components/Icon/{index.d34ed400.js → index.ad330e78.js} +65 -89
- package/components/Image/{index.7ca22fd5.js → index.b799c514.js} +2 -2
- package/components/LanguagePopover/{index.47796ed9.js → index.93c48ec5.js} +2 -2
- package/components/LinearProgressIndeterminate/{index.7349e210.js → index.c46da124.js} +1 -1
- package/components/LoadingError/{index.423d70c8.js → index.ee29dd48.js} +3 -3
- package/components/MFLoader/{index.9bf3be25.js → index.3a37407c.js} +1 -1
- package/components/ModalDialog/{index.17a7be82.js → index.78c9650a.js} +4 -4
- package/components/NoItemSelected/{index.16500ea3.js → index.3a479c64.js} +1 -1
- package/components/ObjectLogs/{index.c33d046a.js → index.1d85a021.js} +6 -6
- package/components/PDFViewer/{index.195bf4c3.js → index.88c6ff6a.js} +1 -1
- package/components/Page/{index.f4ce7c75.js → index.5d34dc4d.js} +1 -1
- package/components/PaperForm/{index.243b20bd.js → index.d08b43f6.js} +1 -1
- package/components/Period/{index.0e647446.js → index.3f89d8a4.js} +2 -2
- package/components/PrintingSystem/{index.7aff86a4.js → index.27f1f209.js} +13 -13
- package/components/PrintingSystem/subcomponents/BodyNode/{index.e7c04442.js → index.319a3bb9.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.7bfbe141.js → index.990e164c.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.2e68dba0.js → index.e504dbd2.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.bb2a7dcb.js → index.9a19a7cb.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.53d82ef7.js → index.8d14e1b6.js} +1 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.3630fe0c.js → index.89e4eaab.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.a7086296.js → index.dd4ca449.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.633304a0.js → index.048d7ebf.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index.40da2bf8.js → index.83f1efea.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.0c9719ce.js → index.5427cb75.js} +1 -1
- package/components/PropertyValue/{index.1b45d87a.js → index.15c61a4b.js} +2 -2
- package/components/Resizeable/{index.e663ca86.js → index.cb5aad75.js} +1 -1
- package/components/SideBar/{index.31e9929f.js → index.b0359a2b.js} +4 -4
- package/components/SplitLayout/{index.3856385c.js → index.7302ceb3.js} +1 -1
- package/components/ToastContainer/{index.3c3c05b2.js → index.4d44ce53.js} +4 -4
- package/components/areas/components/AreasAdmin/{index.971a3f2d.js → index.820a00ab.js} +10 -10
- package/components/areas/components/AreasViewer/{index.dfa954fe.js → index.6d7194e2.js} +14 -14
- package/components/areas/contexts/AreasContext/{index.732db5ce.js → index.c5a3b322.js} +4 -4
- package/components/areas/hooks/useAreas/{index.2b111188.js → index.caa92660.js} +1 -1
- package/components/commercial/AppBarCommercial/{index.d9adaa14.js → index.9cf586a2.js} +1 -1
- package/components/commercial/SectionCommercial/index.4dbfc0a7.js +48 -0
- package/components/commercial/TopBar/{index.5fe97d82.js → index.93a7d26a.js} +4 -4
- package/components/{HamburgerMenu/index.35df83ad.js → commercial/index.89ad149c.js} +2 -2
- package/components/formatters/BooleanFormatter/{index.96191097.js → index.9ccf9298.js} +2 -2
- package/components/formatters/{index.3166cf12.js → index.03471e3f.js} +1 -1
- package/components/hook-form/HelperError/index.66bbcac3.js +30 -0
- package/components/hook-form/RHFAutocomplete/{index.48f7b38f.js → index.1f2afb6b.js} +4 -4
- package/components/hook-form/RHFAutocompleteAsync/{index.e5aa7194.js → index.bc278965.js} +1 -1
- package/components/hook-form/RHFCheckbox/{index.2a9f91d2.js → index.eca64469.js} +2 -2
- package/components/hook-form/RHFColorPicker/{index.b9ce28a2.js → index.dc13d5a3.js} +6 -8
- package/components/hook-form/RHFDateTime/{index.d4644a5b.js → index.e554b068.js} +3 -3
- package/components/hook-form/RHFHelperError/index.d.ts +4 -0
- package/components/hook-form/RHFPeriod/{index.2550b309.js → index.e4e4530f.js} +3 -3
- package/components/hook-form/RHFTextField/{index.01d225ef.js → index.1bfa601f.js} +4 -4
- package/components/hook-form/RHFUpload/{index.e4cdfb40.js → index.6e98b291.js} +4 -4
- package/components/index.d.ts +2 -0
- 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 +13 -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 +165 -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.d.ts +3 -0
- package/components/maps/components/GpsTools/index.d93188ad.js +1792 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/index.d.ts +9 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/constants.d.ts +20 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/helpers.d.ts +19 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useDrawing.d.ts +11 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useSubmit.d.ts +8 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useSumbitErrorsFocus.d.ts +5 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useValidation.d.ts +22 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/index.d.ts +2 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/types.d.ts +6 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/validations.d.ts +5 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/types.d.ts +7 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/validations.d.ts +6 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.d.ts +2 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/types.d.ts +2 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/FillData/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/types.d.ts +10 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/types.d.ts +27 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedFeatures.d.ts +9 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedGeofences.d.ts +4 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useColumns.d.ts +9 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useMaster.d.ts +20 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useRowActionsGetter.d.ts +9 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/subcomponents/Filter/index.d.ts +7 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/constants.d.ts +7 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/model.d.ts +122 -0
- package/components/maps/components/GpsTools/types.d.ts +34 -0
- package/components/maps/components/Map/Map.d.ts +9 -0
- package/components/maps/components/Map/classes/index.d.ts +5 -0
- package/components/maps/components/Map/classes/types.d.ts +69 -0
- package/components/maps/components/Map/constants.d.ts +24 -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 +592 -0
- package/components/maps/components/Map/dictionary.d.ts +86 -0
- package/components/maps/components/Map/external/Control/index.d.ts +11 -0
- package/components/maps/components/Map/external/Control/types.d.ts +8 -0
- package/components/maps/components/Map/external/googleMutant/index.d.ts +94 -0
- package/components/maps/components/Map/featureRenders/CommonFeatureRender/index.d.ts +8 -0
- package/components/maps/components/Map/featureRenders/CommonFeatureRender/subcomponents/FeatureDivIconLabel/index.d.ts +3 -0
- package/components/maps/components/Map/featureRenders/CommonFeatureRender/subcomponents/FeatureDivIconLabel/types.d.ts +7 -0
- package/components/maps/components/Map/featureRenders/CommonFeatureRender/subcomponents/MarkerIconLabel/index.d.ts +2 -0
- package/components/maps/components/Map/featureRenders/CommonFeatureRender/subcomponents/MarkerIconLabel/types.d.ts +6 -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 +2 -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 +6 -0
- package/components/maps/components/Map/hooks/useMapStore/index.d.ts +3 -0
- package/components/maps/components/Map/icons.d.ts +50 -0
- package/components/maps/components/Map/index.accb1f77.js +2386 -0
- package/components/maps/components/Map/index.d.ts +7 -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/Controls/index.d.ts +17 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/index.d.ts +1 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/index.d.ts +7 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useCheckedLayers.d.ts +9 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useColumns.d.ts +15 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useMaster.d.ts +13 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.d.ts +5 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/index.d.ts +1 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/model.d.ts +27 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/index.d.ts +1 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/bing.d.ts +2 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/google.d.ts +4 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/osm.d.ts +2 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/utils.d.ts +1 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/types.d.ts +4 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/index.d.ts +12 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/constants.d.ts +30 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/helpers.d.ts +11 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/index.d.ts +13 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/types.d.ts +13 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useValidation.d.ts +10 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/index.d.ts +1 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/index.d.ts +5 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/types.d.ts +6 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/validations.d.ts +2 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts +1 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/types.d.ts +9 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/ZoomButtons/index.d.ts +1 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/types.d.ts +4 -0
- package/components/maps/components/Map/subcomponents/Controls/types.d.ts +22 -0
- package/components/maps/components/Map/subcomponents/LayersContainer/index.d.ts +2 -0
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/index.d.ts +17 -0
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/index.d.ts +20 -0
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/types.d.ts +11 -0
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/RenderByEachFeatureComponent/index.d.ts +12 -0
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/RenderByEachFeatureComponent/types.d.ts +5 -0
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/types.d.ts +2 -0
- package/components/maps/components/Map/subcomponents/TileLayers/index.d.ts +6 -0
- package/components/maps/components/Map/subcomponents/TileLayers/subcomponents/TileLayerGoogle/index.d.ts +1 -0
- package/components/maps/components/Map/subcomponents/TileLayers/subcomponents/TileLayerOthers/index.d.ts +6 -0
- package/components/maps/components/Map/types.d.ts +40 -0
- package/components/maps/index.34ab6a68.js +7 -0
- package/components/maps/index.d.ts +3 -0
- package/components/maps/utils.d.ts +15 -0
- package/components/modal/{WindowBase.1cb35b2d.js → WindowBase.fd86f575.js} +3 -3
- package/components/modal/{WindowConfirm.8feb23c6.js → WindowConfirm.ee6de236.js} +6 -6
- package/components/mui_extended/Accordion/{index.32ebf85f.js → index.7dcdfd3a.js} +2 -2
- package/components/mui_extended/Button/{index.7265987f.js → index.c3084916.js} +1 -1
- package/components/mui_extended/{CheckBox.4e2fa17c.js → CheckBox.2a3b86c5.js} +1 -1
- package/components/mui_extended/IconButton/{index.21215143.js → index.f8a3021b.js} +1 -1
- package/components/mui_extended/MenuActions/{index.40352568.js → index.90f53670.js} +2 -2
- package/components/mui_extended/Pager/{index.0d7d95be.js → index.ea2a4f3e.js} +2 -2
- package/components/mui_extended/Tab/{index.2068925d.js → index.9214d9cc.js} +4 -4
- package/components/mui_extended/TabContent/types.d.ts +1 -1
- package/components/mui_extended/ToggleButton/ToggleButton.d.ts +2 -1
- package/components/mui_extended/ToggleButton/{index.aa37e2cb.js → index.191711f3.js} +6 -9
- package/components/mui_extended/ToggleButton/types.d.ts +2 -2
- package/components/mui_extended/ToggleIconButton/ToggleIconButton.d.ts +1 -12
- package/components/mui_extended/ToggleIconButton/index.d9dbf650.js +19 -0
- package/components/mui_extended/ToggleIconButton/types.d.ts +2 -3
- package/components/popups/PopupsProvider/index.d7409f48.js +179 -0
- package/components/popups/PopupsViewer/index.1500ce72.js +186 -0
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/PopupsContext.d.ts +19 -0
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/helper.d.ts +7 -0
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/index.d.ts +1 -0
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/store.d.ts +16 -0
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts +160 -0
- package/components/popups/components/PopupsProvider/hooks/usePopupsStore/index.d.ts +3 -0
- package/components/popups/components/PopupsProvider/index.d.ts +2 -0
- package/components/popups/components/PopupsViewer/PopupsViewer.d.ts +8 -0
- package/components/popups/components/PopupsViewer/classes/index.d.ts +15 -0
- package/components/popups/components/PopupsViewer/classes/types.d.ts +13 -0
- package/components/{PopupsProvider → popups/components/PopupsViewer}/constants.d.ts +2 -2
- package/components/popups/components/PopupsViewer/icons.d.ts +3 -0
- package/components/popups/components/PopupsViewer/index.d.ts +1 -0
- package/components/popups/components/PopupsViewer/subcomponents/Popup/index.d.ts +9 -0
- package/components/popups/components/PopupsViewer/subcomponents/Popup/subcomponents/Header/index.d.ts +2 -0
- package/components/popups/components/PopupsViewer/subcomponents/Popup/subcomponents/Header/types.d.ts +2 -0
- package/components/popups/components/PopupsViewer/subcomponents/Popup/types.d.ts +16 -0
- package/components/popups/components/PopupsViewer/types.d.ts +3 -0
- package/components/popups/index.c5eae682.js +1 -0
- package/components/popups/index.d.ts +2 -0
- package/contexts/ModalContext/{index.365ae264.js → index.2368bb19.js} +1 -1
- package/hocs/withToggle/index.50aec5e4.js +22 -0
- package/hocs/withToggle/index.d.ts +2 -2
- package/hocs/withToggle/types.d.ts +6 -4
- package/hooks/useFormAddEdit/{index.7f3162c9.js → index.000ce60b.js} +2 -2
- package/hooks/useFormReadyForUpdate/index.d.ts +6 -0
- package/hooks/useFormReadyForUpdate/index.f60f500e.js +20 -0
- package/hooks/useModal/{index.5a463055.js → index.f73d7e42.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.c0564138.js → index.976d5e1e.js} +1 -1
- package/index.js +157 -115
- package/package.json +11 -5
- package/{react-draggable.483e2eaa.js → react-draggable.e4725f3a.js} +4 -4
- package/{react-json-view.5636414a.js → react-json-view.57125fcf.js} +1 -1
- package/{react-resizable.059cf55c.js → react-resizable.c07d63fb.js} +5 -5
- package/{react-splitter-layout.c5d98bf7.js → react-splitter-layout.8b1655c8.js} +3 -3
- package/components/PopupsProvider/index.3d5ad0ee.js +0 -4
- package/components/mui_extended/ToggleIconButton/index.827d5856.js +0 -29
- package/hocs/withToggle/index.e44eb0da.js +0 -24
- package/node_modules.0fb6293f.js +0 -6921
- package/vendor.52f0234f.js +0 -182
- /package/utils/{index.d2e8f376.js → index.6469f148.js} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import React__default, { useState, useRef, useCallback, useEffect, useMemo } from "react";
|
|
2
|
-
import { D as DraggableCore_1 } from "../../react-draggable.
|
|
1
|
+
import React__default, { forwardRef, useState, useRef, useImperativeHandle, useCallback, useEffect, useMemo } from "react";
|
|
2
|
+
import { D as DraggableCore_1 } from "../../react-draggable.e4725f3a.js";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { styled, generateUtilityClasses } from "@mui/material";
|
|
5
|
-
import { M as MAP_ZINDEX_OVER_MAP } from "
|
|
5
|
+
import { M as MAP_ZINDEX_OVER_MAP } from "../maps/components/Map/index.accb1f77.js";
|
|
6
6
|
import "@mui/base";
|
|
7
|
-
import { M as MAP_ZINDEX_OVER_MAP$1 } from "../
|
|
8
|
-
import { R as Resizable } from "../../react-resizable.
|
|
7
|
+
import { M as MAP_ZINDEX_OVER_MAP$1 } from "../popups/PopupsViewer/index.1500ce72.js";
|
|
8
|
+
import { R as Resizable } from "../../react-resizable.c07d63fb.js";
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
|
-
const
|
|
10
|
+
const WrapperWindowRoot = styled("div")`
|
|
11
11
|
position: absolute;
|
|
12
12
|
left: 0px;
|
|
13
13
|
top:0px;
|
|
@@ -23,6 +23,7 @@ const DEFAULT_TRANSFORM_SCALE = 1;
|
|
|
23
23
|
const draggableWindowClasses = generateUtilityClasses(COMPONENT_CLASS_NAME, [
|
|
24
24
|
"root",
|
|
25
25
|
"draggableHandle",
|
|
26
|
+
"draggableCancel",
|
|
26
27
|
"dragging"
|
|
27
28
|
]);
|
|
28
29
|
function setTransform({ top, left, width, height }) {
|
|
@@ -39,25 +40,34 @@ function setTransform({ top, left, width, height }) {
|
|
|
39
40
|
prop1: 1
|
|
40
41
|
};
|
|
41
42
|
}
|
|
42
|
-
const DragResizeWindow = (props) => {
|
|
43
|
+
const DragResizeWindow = forwardRef((props, ref) => {
|
|
43
44
|
const {
|
|
44
45
|
style,
|
|
45
46
|
className,
|
|
46
47
|
children,
|
|
47
48
|
defaultPosition = {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
vertical: {
|
|
50
|
+
top: 0,
|
|
51
|
+
height: 100
|
|
52
|
+
},
|
|
53
|
+
horizontal: {
|
|
54
|
+
left: 0,
|
|
55
|
+
width: 100
|
|
56
|
+
}
|
|
52
57
|
},
|
|
53
58
|
containerElement,
|
|
54
59
|
containerSize,
|
|
55
60
|
transformScale = DEFAULT_TRANSFORM_SCALE,
|
|
56
|
-
bounds
|
|
61
|
+
bounds = {
|
|
62
|
+
left: 5,
|
|
63
|
+
top: 5,
|
|
64
|
+
right: -5,
|
|
65
|
+
bottom: -5
|
|
66
|
+
},
|
|
57
67
|
minWindowWidth = 200,
|
|
58
68
|
minWindowHeight = 100,
|
|
59
69
|
draggableHandle = `.${draggableWindowClasses.draggableHandle}`,
|
|
60
|
-
draggableCancel
|
|
70
|
+
draggableCancel = `.${draggableWindowClasses.draggableCancel}`,
|
|
61
71
|
draggable = true,
|
|
62
72
|
onDragStart,
|
|
63
73
|
onDrag,
|
|
@@ -71,8 +81,39 @@ const DragResizeWindow = (props) => {
|
|
|
71
81
|
onResizeStop,
|
|
72
82
|
...others
|
|
73
83
|
} = props;
|
|
74
|
-
const [currentState, setCurrentState] = useState({
|
|
75
|
-
|
|
84
|
+
const [currentState, setCurrentState] = useState(() => {
|
|
85
|
+
let top;
|
|
86
|
+
let bottom;
|
|
87
|
+
let height;
|
|
88
|
+
let left;
|
|
89
|
+
let right;
|
|
90
|
+
let width;
|
|
91
|
+
if ("top" in defaultPosition.vertical) {
|
|
92
|
+
top = defaultPosition.vertical.top;
|
|
93
|
+
}
|
|
94
|
+
if ("bottom" in defaultPosition.vertical) {
|
|
95
|
+
bottom = defaultPosition.vertical.bottom;
|
|
96
|
+
}
|
|
97
|
+
if ("height" in defaultPosition.vertical) {
|
|
98
|
+
height = defaultPosition.vertical.height;
|
|
99
|
+
}
|
|
100
|
+
if ("left" in defaultPosition.horizontal) {
|
|
101
|
+
left = defaultPosition.horizontal.left;
|
|
102
|
+
}
|
|
103
|
+
if ("right" in defaultPosition.horizontal) {
|
|
104
|
+
right = defaultPosition.horizontal.right;
|
|
105
|
+
}
|
|
106
|
+
if ("width" in defaultPosition.horizontal) {
|
|
107
|
+
width = defaultPosition.horizontal.width;
|
|
108
|
+
}
|
|
109
|
+
const containerHeight = containerSize?.containerHeight || 200;
|
|
110
|
+
const containerWidth = containerSize?.containerWidth || 200;
|
|
111
|
+
return {
|
|
112
|
+
top: top || 0,
|
|
113
|
+
height: height ?? containerHeight - (top || 0) - (bottom || 0),
|
|
114
|
+
left: left ?? (right ? containerWidth - right - (width || 0) : 0),
|
|
115
|
+
width: width ?? containerWidth - (left || 0) - (right || 0)
|
|
116
|
+
};
|
|
76
117
|
});
|
|
77
118
|
const stateRef = useRef({
|
|
78
119
|
bounds,
|
|
@@ -81,9 +122,17 @@ const DragResizeWindow = (props) => {
|
|
|
81
122
|
containerSize: containerSize ? {
|
|
82
123
|
...containerSize
|
|
83
124
|
} : void 0,
|
|
84
|
-
|
|
125
|
+
left: currentState.left,
|
|
126
|
+
top: currentState.top,
|
|
127
|
+
width: currentState.width,
|
|
128
|
+
height: currentState.height
|
|
129
|
+
});
|
|
130
|
+
useImperativeHandle(ref, () => {
|
|
131
|
+
return {
|
|
132
|
+
current: wrapperRef.current
|
|
133
|
+
};
|
|
85
134
|
});
|
|
86
|
-
const
|
|
135
|
+
const wrapperRef = useRef(null);
|
|
87
136
|
const localOnDragStart = useCallback((e, draggableData) => {
|
|
88
137
|
const {
|
|
89
138
|
node
|
|
@@ -172,6 +221,7 @@ const DragResizeWindow = (props) => {
|
|
|
172
221
|
handle
|
|
173
222
|
} = data;
|
|
174
223
|
const handler = props[handlerName];
|
|
224
|
+
console.log("onResizeHandler", containerElement.getBoundingClientRect());
|
|
175
225
|
if (handler) {
|
|
176
226
|
handler(e, data);
|
|
177
227
|
}
|
|
@@ -209,7 +259,7 @@ const DragResizeWindow = (props) => {
|
|
|
209
259
|
const localOnResizeStop = useCallback((e, callbackData) => {
|
|
210
260
|
onResizeHandler(e, callbackData, "onResizeStop");
|
|
211
261
|
}, []);
|
|
212
|
-
const
|
|
262
|
+
const shringkingParentContainer = useCallback((newState, cState, containerDimension, divRoot, dimension) => {
|
|
213
263
|
const lDimension = dimension === "Width" ? "width" : "height";
|
|
214
264
|
const leftTop = dimension === "Width" ? "left" : "top";
|
|
215
265
|
const shrinkLeftTopAt = dimension === "Width" ? "shrinkLeftAt" : "shrinkTopAt";
|
|
@@ -217,8 +267,8 @@ const DragResizeWindow = (props) => {
|
|
|
217
267
|
const boundsLefTop = dimension === "Width" ? bounds?.left || 0 : bounds?.top || 0;
|
|
218
268
|
const boundsRigthBottom = dimension === "Width" ? bounds?.right || 0 : bounds?.bottom || 0;
|
|
219
269
|
const minWindowDimension = dimension === "Width" ? minWindowWidth : minWindowHeight;
|
|
220
|
-
const minDimension =
|
|
221
|
-
let maxDimensionElement =
|
|
270
|
+
const minDimension = containerDimension - boundsLefTop + boundsRigthBottom > minWindowDimension ? containerDimension - boundsLefTop + boundsRigthBottom : minWindowDimension;
|
|
271
|
+
let maxDimensionElement = containerDimension - cState[leftTop] + boundsRigthBottom;
|
|
222
272
|
if (divRoot[`client${dimension}`] > maxDimensionElement) {
|
|
223
273
|
const shrinkedPixels = divRoot[`client${dimension}`] - maxDimensionElement;
|
|
224
274
|
if (shrinkedPixels < cState[leftTop] - boundsLefTop) {
|
|
@@ -227,7 +277,7 @@ const DragResizeWindow = (props) => {
|
|
|
227
277
|
} else if (shrinkedPixels > cState[leftTop] - boundsLefTop) {
|
|
228
278
|
newState[leftTop] = boundsLefTop;
|
|
229
279
|
newState[shrinkLeftTopAt] = newState[shrinkLeftTopAt] || cState[leftTop];
|
|
230
|
-
maxDimensionElement =
|
|
280
|
+
maxDimensionElement = containerDimension - boundsLefTop + boundsRigthBottom;
|
|
231
281
|
if (divRoot[`client${dimension}`] > maxDimensionElement) {
|
|
232
282
|
newState[lDimension] = maxDimensionElement;
|
|
233
283
|
newState[overflowDimensionAt] = newState[overflowDimensionAt] || cState[lDimension];
|
|
@@ -240,14 +290,14 @@ const DragResizeWindow = (props) => {
|
|
|
240
290
|
return;
|
|
241
291
|
}
|
|
242
292
|
}, []);
|
|
243
|
-
const
|
|
293
|
+
const expandingParentContainer = useCallback((newState, _currentState, containerDimension, _divRoot, dimension) => {
|
|
244
294
|
const lDimension = dimension === "Width" ? "width" : "height";
|
|
245
295
|
const leftTop = dimension === "Width" ? "left" : "top";
|
|
246
296
|
const shrinkLeftTopAt = dimension === "Width" ? "shrinkLeftAt" : "shrinkTopAt";
|
|
247
297
|
const overflowDimensionAt = dimension === "Width" ? "overflowWidthAt" : "overflowHeightAt";
|
|
248
298
|
const boundsLefTop = dimension === "Width" ? bounds?.left || 0 : bounds?.top || 0;
|
|
249
299
|
const boundsRigthBottom = dimension === "Width" ? bounds?.right || 0 : bounds?.bottom || 0;
|
|
250
|
-
let maxDimensionElement =
|
|
300
|
+
let maxDimensionElement = containerDimension - boundsLefTop + boundsRigthBottom;
|
|
251
301
|
const valOverflowDimensionAt = newState[overflowDimensionAt];
|
|
252
302
|
if (valOverflowDimensionAt) {
|
|
253
303
|
if (valOverflowDimensionAt > maxDimensionElement) {
|
|
@@ -259,7 +309,7 @@ const DragResizeWindow = (props) => {
|
|
|
259
309
|
}
|
|
260
310
|
const valShrinkLeftTopAt = newState[shrinkLeftTopAt];
|
|
261
311
|
if (valShrinkLeftTopAt && !newState[overflowDimensionAt]) {
|
|
262
|
-
const dimensionAvailable =
|
|
312
|
+
const dimensionAvailable = containerDimension - boundsLefTop - newState[lDimension] + boundsRigthBottom;
|
|
263
313
|
if (valShrinkLeftTopAt <= dimensionAvailable) {
|
|
264
314
|
newState[leftTop] = valShrinkLeftTopAt;
|
|
265
315
|
newState[shrinkLeftTopAt] = void 0;
|
|
@@ -268,19 +318,19 @@ const DragResizeWindow = (props) => {
|
|
|
268
318
|
}
|
|
269
319
|
}
|
|
270
320
|
}, []);
|
|
271
|
-
const
|
|
321
|
+
const draggingOrResizingWindow = useCallback((newState, _currentState, containerDimension, divRoot, dimension) => {
|
|
272
322
|
const lDimension = dimension === "Width" ? "width" : "height";
|
|
273
323
|
const leftTop = dimension === "Width" ? "left" : "top";
|
|
274
324
|
const boundsLefTop = dimension === "Width" ? bounds?.left || 0 : bounds?.top || 0;
|
|
275
325
|
const boundsRigthBottom = dimension === "Width" ? bounds?.right || 0 : bounds?.bottom || 0;
|
|
276
|
-
const maxDimensionWithoutBounds =
|
|
277
|
-
let rightBottomBoundary =
|
|
326
|
+
const maxDimensionWithoutBounds = containerDimension - boundsLefTop + boundsRigthBottom;
|
|
327
|
+
let rightBottomBoundary = containerDimension - newState[lDimension] + boundsRigthBottom;
|
|
278
328
|
if (newState[lDimension] !== divRoot[`client${dimension}`])
|
|
279
329
|
;
|
|
280
330
|
if (newState.resizing && stateRef.current.initialPostion) {
|
|
281
331
|
if (!newState.resizing.handle.includes("w")) {
|
|
282
|
-
if (newState[leftTop] + newState[lDimension] >
|
|
283
|
-
newState[lDimension] =
|
|
332
|
+
if (newState[leftTop] + newState[lDimension] > containerDimension + boundsRigthBottom) {
|
|
333
|
+
newState[lDimension] = containerDimension - newState[leftTop] + boundsRigthBottom;
|
|
284
334
|
}
|
|
285
335
|
} else {
|
|
286
336
|
if (newState[leftTop] < boundsLefTop) {
|
|
@@ -299,6 +349,7 @@ const DragResizeWindow = (props) => {
|
|
|
299
349
|
newState[lDimension] = stateRef.current.initialPostion[lDimension];
|
|
300
350
|
}
|
|
301
351
|
} else if (dif < 0) {
|
|
352
|
+
console.log("Reeuciendo con W ", newState[leftTop] - dif, boundsLefTop, newState[leftTop] - dif >= boundsLefTop);
|
|
302
353
|
newState[leftTop] = newState[leftTop] - dif;
|
|
303
354
|
newState[lDimension] = stateRef.current.initialPostion[lDimension] + dif;
|
|
304
355
|
}
|
|
@@ -311,12 +362,12 @@ const DragResizeWindow = (props) => {
|
|
|
311
362
|
if (newState[leftTop] < boundsLefTop) {
|
|
312
363
|
newState[leftTop] = boundsLefTop;
|
|
313
364
|
}
|
|
314
|
-
rightBottomBoundary =
|
|
365
|
+
rightBottomBoundary = containerDimension + boundsRigthBottom;
|
|
315
366
|
if (newState[leftTop] > rightBottomBoundary) {
|
|
316
367
|
newState[leftTop] = rightBottomBoundary;
|
|
317
368
|
}
|
|
318
|
-
if (!newState.resizing && newState[leftTop] + newState[lDimension] >
|
|
319
|
-
let outWidthHeight = newState[leftTop] + newState[lDimension] - (
|
|
369
|
+
if (!newState.resizing && newState[leftTop] + newState[lDimension] > containerDimension + boundsRigthBottom) {
|
|
370
|
+
let outWidthHeight = newState[leftTop] + newState[lDimension] - (containerDimension + boundsRigthBottom);
|
|
320
371
|
if (newState[leftTop] - boundsLefTop > outWidthHeight) {
|
|
321
372
|
newState[leftTop] = newState[leftTop] - outWidthHeight;
|
|
322
373
|
}
|
|
@@ -330,7 +381,7 @@ const DragResizeWindow = (props) => {
|
|
|
330
381
|
if (stateRef.current.containerSize === void 0 && containerSize) {
|
|
331
382
|
stateRef.current.containerSize = containerSize;
|
|
332
383
|
}
|
|
333
|
-
if (!(containerSize &&
|
|
384
|
+
if (!(containerSize && wrapperRef?.current && stateRef.current.containerSize)) {
|
|
334
385
|
return;
|
|
335
386
|
}
|
|
336
387
|
if (currentState?.dragging) {
|
|
@@ -339,28 +390,22 @@ const DragResizeWindow = (props) => {
|
|
|
339
390
|
const newState = {
|
|
340
391
|
...currentState
|
|
341
392
|
};
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
if (cActionWidth === "equals") {
|
|
359
|
-
equalsFunction(newState, currentState, containerElement, elementRef.current, "Width");
|
|
360
|
-
}
|
|
361
|
-
if (cActionHeigth === "equals") {
|
|
362
|
-
equalsFunction(newState, currentState, containerElement, elementRef.current, "Height");
|
|
363
|
-
}
|
|
393
|
+
const handleDimension = (dimension) => {
|
|
394
|
+
if (stateRef.current?.containerSize && wrapperRef.current) {
|
|
395
|
+
const containerSizeKey = `container${dimension}`;
|
|
396
|
+
const containerSizeValue = containerSize[containerSizeKey];
|
|
397
|
+
const previousContainerSizeValue = stateRef.current.containerSize[containerSizeKey];
|
|
398
|
+
if (containerSizeValue > previousContainerSizeValue) {
|
|
399
|
+
expandingParentContainer(newState, currentState, containerSizeValue, wrapperRef.current, dimension);
|
|
400
|
+
} else if (containerSizeValue < previousContainerSizeValue) {
|
|
401
|
+
shringkingParentContainer(newState, currentState, containerSizeValue, wrapperRef.current, dimension);
|
|
402
|
+
} else {
|
|
403
|
+
draggingOrResizingWindow(newState, currentState, containerSizeValue, wrapperRef.current, dimension);
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
};
|
|
407
|
+
handleDimension("Width");
|
|
408
|
+
handleDimension("Height");
|
|
364
409
|
stateRef.current.containerSize = {
|
|
365
410
|
...containerSize
|
|
366
411
|
};
|
|
@@ -373,7 +418,7 @@ const DragResizeWindow = (props) => {
|
|
|
373
418
|
stateRef.current.height = newState.height;
|
|
374
419
|
stateRef.current.width = newState.width;
|
|
375
420
|
}
|
|
376
|
-
}, [currentState,
|
|
421
|
+
}, [currentState, wrapperRef.current, bounds?.left, bounds?.top, bounds?.right, bounds?.bottom, containerSize?.containerWidth, containerSize?.containerHeight]);
|
|
377
422
|
const mixinResizable = useCallback((child, position) => {
|
|
378
423
|
const minConstraints = [minWindowWidth, minWindowHeight];
|
|
379
424
|
return /* @__PURE__ */ jsx(
|
|
@@ -406,13 +451,13 @@ const DragResizeWindow = (props) => {
|
|
|
406
451
|
handle: draggableHandle,
|
|
407
452
|
cancel: ".react-resizable-handle" + (draggableCancel ? "," + draggableCancel : ""),
|
|
408
453
|
scale: transformScale,
|
|
409
|
-
nodeRef:
|
|
454
|
+
nodeRef: wrapperRef,
|
|
410
455
|
onMouseDown,
|
|
411
456
|
...others,
|
|
412
457
|
children: child
|
|
413
458
|
}
|
|
414
459
|
);
|
|
415
|
-
}, [
|
|
460
|
+
}, [wrapperRef, transformScale, draggableHandle, draggableCancel]);
|
|
416
461
|
const classNameFinal = clsx(draggableWindowClasses.root, className, {
|
|
417
462
|
"react-draggable": true
|
|
418
463
|
});
|
|
@@ -425,19 +470,19 @@ const DragResizeWindow = (props) => {
|
|
|
425
470
|
};
|
|
426
471
|
const memoChildren = useMemo(() => {
|
|
427
472
|
return children;
|
|
428
|
-
}, []);
|
|
429
|
-
const
|
|
473
|
+
}, [children]);
|
|
474
|
+
const wrapperRoot = /* @__PURE__ */ jsx(WrapperWindowRoot, {
|
|
430
475
|
className: classNameFinal,
|
|
431
|
-
ref:
|
|
476
|
+
ref: wrapperRef,
|
|
432
477
|
style: styleFinal,
|
|
433
478
|
role: "none",
|
|
434
479
|
children: memoChildren
|
|
435
480
|
});
|
|
436
|
-
const dragResizeWindow = mixinDraggable(mixinResizable(
|
|
481
|
+
const dragResizeWindow = mixinDraggable(mixinResizable(wrapperRoot, currentState));
|
|
437
482
|
return /* @__PURE__ */ jsx(React__default.Fragment, {
|
|
438
483
|
children: dragResizeWindow
|
|
439
484
|
});
|
|
440
|
-
};
|
|
485
|
+
});
|
|
441
486
|
export {
|
|
442
487
|
DragResizeWindow as D,
|
|
443
488
|
draggableWindowClasses as d
|
|
@@ -65,6 +65,28 @@ export declare type ResizeHandleComponente = React.ReactNode | ((resizeHandle: R
|
|
|
65
65
|
export interface PositionParams extends ContainerSize {
|
|
66
66
|
}
|
|
67
67
|
export declare type ContainerAction = 'equals' | 'shrinking' | 'expanding';
|
|
68
|
+
export declare type DraggableWindowRefProps = {
|
|
69
|
+
current: HTMLDivElement | null;
|
|
70
|
+
};
|
|
71
|
+
export interface DefaultPosition {
|
|
72
|
+
vertical: {
|
|
73
|
+
top: number;
|
|
74
|
+
bottom: number;
|
|
75
|
+
} | {
|
|
76
|
+
top: number;
|
|
77
|
+
height: number;
|
|
78
|
+
};
|
|
79
|
+
horizontal: {
|
|
80
|
+
left: number;
|
|
81
|
+
right: number;
|
|
82
|
+
} | {
|
|
83
|
+
left: number;
|
|
84
|
+
width: number;
|
|
85
|
+
} | {
|
|
86
|
+
right: number;
|
|
87
|
+
width: number;
|
|
88
|
+
};
|
|
89
|
+
}
|
|
68
90
|
export interface DraggableWindowProps extends Partial<Omit<DraggableCoreProps, 'onStart' | 'onDrag' | 'onStop' | 'disabled' | 'handle' | 'cancel'>> {
|
|
69
91
|
children: ReactNode;
|
|
70
92
|
/**
|
|
@@ -91,7 +113,7 @@ export interface DraggableWindowProps extends Partial<Omit<DraggableCoreProps, '
|
|
|
91
113
|
* defaultPosition permite definir la posición inicial de la ventana
|
|
92
114
|
* TODO: Debe tambien recibir anchorEl y anchorPosition y calcular la posición en base a este
|
|
93
115
|
*/
|
|
94
|
-
defaultPosition?:
|
|
116
|
+
defaultPosition?: DefaultPosition;
|
|
95
117
|
/**
|
|
96
118
|
* "bounds" permite definir los limites de movimiento de la ventana
|
|
97
119
|
*/
|
|
@@ -3,31 +3,31 @@ import { useModuleDictionary, useEnvironment, useModuleSkeleton, useFlagsPresent
|
|
|
3
3
|
import { useStore, createStore } from "zustand";
|
|
4
4
|
import { generateUtilityClasses, styled, alpha, Skeleton, MenuItem } from "@mui/material";
|
|
5
5
|
import { unstable_composeClasses } from "@mui/base";
|
|
6
|
-
import { g as getComponentUtilityClass, i as isValidDate } from "../../utils/index.
|
|
6
|
+
import { g as getComponentUtilityClass, i as isValidDate } from "../../utils/index.6469f148.js";
|
|
7
7
|
import { devtools } from "zustand/middleware";
|
|
8
8
|
import { immer } from "zustand/middleware/immer";
|
|
9
9
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
10
|
-
import { g as getCommonActionsDictionary, A as Actions } from "../CommonActions/components/Actions/index.
|
|
11
|
-
import { g as getRHFAutocompleteComponentsDictionary, R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.
|
|
10
|
+
import { g as getCommonActionsDictionary, A as Actions } from "../CommonActions/components/Actions/index.fa7ab18c.js";
|
|
11
|
+
import { g as getRHFAutocompleteComponentsDictionary, R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.1f2afb6b.js";
|
|
12
12
|
import { g as getNameDataTestId } from "../../test/getNameDataTestId.14875ec7.js";
|
|
13
13
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
14
14
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
15
15
|
import { shallow } from "zustand/shallow";
|
|
16
|
-
import { R as RHFDateTime } from "../hook-form/RHFDateTime/index.
|
|
17
|
-
import { R as RHFTextField } from "../hook-form/RHFTextField/index.
|
|
16
|
+
import { R as RHFDateTime } from "../hook-form/RHFDateTime/index.e554b068.js";
|
|
17
|
+
import { R as RHFTextField } from "../hook-form/RHFTextField/index.1bfa601f.js";
|
|
18
18
|
import * as Yup from "yup";
|
|
19
|
-
import { R as RHFAutocompleteAsync } from "../hook-form/RHFAutocompleteAsync/index.
|
|
19
|
+
import { R as RHFAutocompleteAsync } from "../hook-form/RHFAutocompleteAsync/index.bc278965.js";
|
|
20
20
|
import { useResponsiveDesktop, useFirstRender, useFormatter } from "@m4l/graphics";
|
|
21
21
|
import { S as ScrollBar } from "../ScrollBar/index.7dfc2f29.js";
|
|
22
22
|
import clsx from "clsx";
|
|
23
|
-
import { I as IconButton } from "../mui_extended/IconButton/index.
|
|
24
|
-
import { L as LabelMemuItem } from "../mui_extended/MenuActions/index.
|
|
23
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.f8a3021b.js";
|
|
24
|
+
import { L as LabelMemuItem } from "../mui_extended/MenuActions/index.90f53670.js";
|
|
25
25
|
import { P as Popover } from "../mui_extended/Popover/index.d85de73b.js";
|
|
26
|
-
import { I as Icon } from "../Icon/index.
|
|
26
|
+
import { I as Icon } from "../Icon/index.ad330e78.js";
|
|
27
27
|
import { useTheme } from "@mui/material/styles";
|
|
28
28
|
import { R as RHFormProvider } from "../../contexts/RHFormContext/index.7b2a8723.js";
|
|
29
|
-
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.
|
|
30
|
-
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.
|
|
29
|
+
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.416cbf9b.js";
|
|
30
|
+
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.094290fd.js";
|
|
31
31
|
import { T as Typography } from "../mui_extended/Typography/index.379dd374.js";
|
|
32
32
|
const COMPONENT_PREFIX = "M4LDynamicFilter";
|
|
33
33
|
const COMPONENT_CLASS_NAME = "M4LDynamicFilter";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useEnvironment, useModuleSkeleton } from "@m4l/core";
|
|
2
2
|
import { styled, generateUtilityClasses, Tooltip, Skeleton } from "@mui/material";
|
|
3
3
|
import { unstable_composeClasses } from "@mui/base";
|
|
4
|
-
import { g as getComponentUtilityClass } from "../../utils/index.
|
|
4
|
+
import { g as getComponentUtilityClass } from "../../utils/index.6469f148.js";
|
|
5
5
|
import clsx from "clsx";
|
|
6
6
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
7
7
|
import { T as Typography } from "../mui_extended/Typography/index.379dd374.js";
|
|
8
|
-
import { I as Icon } from "../Icon/index.
|
|
8
|
+
import { I as Icon } from "../Icon/index.ad330e78.js";
|
|
9
9
|
const FieldLabelRoot = styled("label")(({ theme }) => ({
|
|
10
10
|
...theme.components?.M4LFieldLabel?.styleOverrides
|
|
11
11
|
}));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useState, useRef, useEffect, useCallback } from "react";
|
|
2
2
|
import clsx from "clsx";
|
|
3
|
-
import { M as MemonizedGridItem } from "./subcomponents/Griditem/index.
|
|
3
|
+
import { M as MemonizedGridItem } from "./subcomponents/Griditem/index.30016fc1.js";
|
|
4
4
|
import { styled, alpha } from "@mui/material/styles";
|
|
5
|
-
import { r as react_resizable_css } from "../../react-resizable.
|
|
5
|
+
import { r as react_resizable_css } from "../../react-resizable.c07d63fb.js";
|
|
6
6
|
import { generateUtilityClasses } from "@mui/material";
|
|
7
7
|
import "@mui/base";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
package/components/GridLayout/subcomponents/Griditem/{index.9d65edbc.js → index.30016fc1.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { useRef, useEffect, useState, useCallback, useMemo } from "react";
|
|
2
|
-
import { D as DraggableCore_1 } from "../../../../react-draggable.
|
|
3
|
-
import { R as Resizable } from "../../../../react-resizable.
|
|
4
|
-
import { g as getH, c as calcXY, a as calcGridItemWHPx, b as calcGridColWidth, d as calcWH, e as clamp, f as calcGridItemPosition, h as gridLayoutClasses, D as DEFAULT_COLS, i as DEFAULT_ROW_HEIGHT, j as DEFAULT_CONTAINER_WIDTH, k as DEFAULT_CONTAINER_HEIGHT, l as DEFAULT_MARGIN, m as DEFAULT_CONTAINER_PADDING, n as DEFAULT_TRANSFORM_SCALE, o as DEFAULT_COLAPSED_HEIGHT, p as perc, s as setTransform, q as setTopLeft } from "../../index.
|
|
2
|
+
import { D as DraggableCore_1 } from "../../../../react-draggable.e4725f3a.js";
|
|
3
|
+
import { R as Resizable } from "../../../../react-resizable.c07d63fb.js";
|
|
4
|
+
import { g as getH, c as calcXY, a as calcGridItemWHPx, b as calcGridColWidth, d as calcWH, e as clamp, f as calcGridItemPosition, h as gridLayoutClasses, D as DEFAULT_COLS, i as DEFAULT_ROW_HEIGHT, j as DEFAULT_CONTAINER_WIDTH, k as DEFAULT_CONTAINER_HEIGHT, l as DEFAULT_MARGIN, m as DEFAULT_CONTAINER_PADDING, n as DEFAULT_TRANSFORM_SCALE, o as DEFAULT_COLAPSED_HEIGHT, p as perc, s as setTransform, q as setTopLeft } from "../../index.65470f01.js";
|
|
5
5
|
import clsx from "clsx";
|
|
6
6
|
import { deepEqual } from "fast-equals";
|
|
7
7
|
import { jsx, Fragment } from "react/jsx-runtime";
|
package/components/GridLayout/subcomponents/Responsive/{index.26128960.js → index.5b3e0521.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as cloneLayoutItem, t as cloneLayout, u as compact, v as correctBounds, w as isEqualLayout, o as DEFAULT_COLAPSED_HEIGHT, x as DEFAULT_RESPONSIVE_BREAKPOINTS, m as DEFAULT_CONTAINER_PADDING, l as DEFAULT_MARGIN, y as DEFAULT_RESPONSIVE_COLS, i as DEFAULT_ROW_HEIGHT, z as noop, A as isEqualLayouts, G as GridLayout } from "../../index.
|
|
1
|
+
import { r as cloneLayoutItem, t as cloneLayout, u as compact, v as correctBounds, w as isEqualLayout, o as DEFAULT_COLAPSED_HEIGHT, x as DEFAULT_RESPONSIVE_BREAKPOINTS, m as DEFAULT_CONTAINER_PADDING, l as DEFAULT_MARGIN, y as DEFAULT_RESPONSIVE_COLS, i as DEFAULT_ROW_HEIGHT, z as noop, A as isEqualLayouts, G as GridLayout } from "../../index.65470f01.js";
|
|
2
2
|
import { useState, useRef, useEffect, useCallback } from "react";
|
|
3
3
|
import { useFirstRender } from "@m4l/graphics";
|
|
4
4
|
import { deepEqual } from "fast-equals";
|
package/components/GridLayout/subcomponents/SizeProvider/{index.003027c6.js → index.0328ad0a.js}
RENAMED
|
@@ -2,7 +2,7 @@ import { useRef, useState, useMemo, useCallback, useEffect } from "react";
|
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { throttle } from "lodash";
|
|
4
4
|
import { useResizeObserver } from "@m4l/graphics";
|
|
5
|
-
import { j as DEFAULT_CONTAINER_WIDTH, k as DEFAULT_CONTAINER_HEIGHT, T as THROTTLE_RESIZE_TIMEOUT, C as COMPONENT_CLASS_NAME } from "../../index.
|
|
5
|
+
import { j as DEFAULT_CONTAINER_WIDTH, k as DEFAULT_CONTAINER_HEIGHT, T as THROTTLE_RESIZE_TIMEOUT, C as COMPONENT_CLASS_NAME } from "../../index.65470f01.js";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
function withSizeProvider(ComposedComponent) {
|
|
8
8
|
return (props) => {
|