@m4l/components 3.0.0 → 3.0.2
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/types.d.ts +31 -8
- package/components/AccountPopover/{index.af5aae0e.js → index-vXlaw69C.js} +7 -5
- package/components/AppBar/{index.b8f22046.js → index-3gXtikUI.js} +7 -5
- package/components/BaseModule/{index.f7a04fe7.js → index-CtN6b__U.js} +1 -1
- package/components/CommonActions/components/ActionCancel/{index.e67885bc.js → index-D_42VfUR.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.92988013.js → index-DL7fDBi6.js} +5 -5
- package/components/CommonActions/components/ActionFormIntro/{index.f8867ae9.js → index-i3HmOpoU.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.e58eb0c4.js → index-i5875EXe.js} +3 -3
- package/components/CommonActions/components/Actions/{index.f674be30.js → index-ChW1FuFf.js} +5 -3
- package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.89a59c52.js → index-BjkuIa7y.js} +1 -1
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.d619d1db.js → index-CWQp1KWU.js} +1 -1
- package/components/DataGrid/formatters/ColumnDateFormatter/{index.e00d0cf2.js → index-CKg8CJ6A.js} +1 -1
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.557bc8a5.js → index-DggW8-4n.js} +1 -1
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/{index.880e743b.js → index-BslXGK-A.js} +1 -1
- package/components/DataGrid/formatters/ColumnPointsFormatter/{index.ab152484.js → index-BXGW2CsK.js} +1 -1
- package/components/DataGrid/formatters/ColumnPriceFormatter/{index.bf9d9e60.js → index-O11tBykn.js} +1 -1
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/{index.4045b2f2.js → index-BaCawLr1.js} +1 -1
- package/components/DataGrid/formatters/ColumnUncertaintyFormatter/{index.a87302d1.js → index-Cq7a-jnE.js} +1 -1
- package/components/DataGrid/formatters/{index.06c18753.js → index-B3AsHKeD.js} +2 -2
- package/components/DataGrid/{index.b37d6cab.js → index-EgaRUtbL.js} +33 -26
- package/components/DataGrid/subcomponents/Actions/{index.c3b1c1e2.js → index-BF4pV_-K.js} +22 -26
- package/components/DataGrid/subcomponents/editors/TextEditor/{index.3f0d9e28.js → index-BIFm8akr.js} +4 -0
- package/components/DragResizeWindow/{index.a4bcaab8.js → index-D2jLYExo.js} +25 -6
- package/components/DynamicFilter/{dictionary.94a74eb3.js → dictionary-B2qYGLOx.js} +2 -2
- package/components/DynamicFilter/{index.b07b567a.js → index-BLjn97jC.js} +7 -8
- package/components/DynamicFilter/slots/{dynamicFilterSlots.dd5824d5.js → dynamicFilterSlots-CaFVu7xW.js} +8 -8
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +1 -1
- package/components/DynamicFilter/store/{index.49d1b77f.js → index-EW1sL9gf.js} +3 -3
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/{index.9e8fcc8c.js → index-DjgwIwH9.js} +3 -3
- package/components/DynamicFilter/subcomponents/AppliedFilters/{index.3e52c5d7.js → index-Cfcgzcw7.js} +4 -4
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/{index.68d855e9.js → index-BFcVswNb.js} +8 -8
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/{index.11f588b4.js → index-B4mhUk9e.js} +4 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/{index.77555163.js → index-CA3JDlD0.js} +10 -9
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/{index.1c8454db.js → index-B4R83Pyi.js} +5 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/{index.cb31333a.js → index-1XC3u2dm.js} +6 -6
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/{index.0ae3d439.js → index-BEMRO3Ng.js} +5 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/{index.5a0c7b12.js → index-Cfs28hud.js} +5 -5
- package/components/DynamicFilter/subcomponents/FilterActions/{index.50c175e7.js → index-CYY3cjbX.js} +3 -3
- package/components/DynamicFilter/subcomponents/InputFilter/{index.82d4ac5a.js → index-CAdtxARw.js} +33 -13
- package/components/DynamicFilter/subcomponents/PopoverFilter/{index.fa62a6c3.js → index-COoNIh4L.js} +7 -6
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/{index.e5e439f1.js → index-Kz-jfM3o.js} +2 -2
- package/components/FieldLabel/{index.9a979def.js → index-DCAMDJoJ.js} +6 -4
- package/components/GridLayout/{index.dd291886.js → index-DUfp2sP_.js} +51 -72
- package/components/GridLayout/subcomponents/Griditem/{index.10278655.js → index-DEi0Ai1D.js} +11 -13
- package/components/GridLayout/subcomponents/Responsive/{index.24857a52.js → index-B7v5X9un.js} +7 -7
- package/components/GridLayout/subcomponents/SizeProvider/{index.2f762118.js → index-BsKaLKRl.js} +15 -9
- package/components/HelperText/{index.6818980e.js → index-DVV5Jfc8.js} +10 -3
- package/components/Icon/{index.c06685f4.js → index-CueLDD9j.js} +9 -4
- package/components/Image/{index.ae542f70.js → index-By5vsRzf.js} +40 -31
- package/components/LanguagePopover/index-Dn2JPzf1.js +179 -0
- package/components/LinearProgressIndeterminate/{index.ca78fd37.js → index-CTlvokQp.js} +5 -3
- package/components/Loadable/{index.e83cdb4e.js → index-BMbi9ISF.js} +1 -1
- package/components/LoadingError/{index.765ff885.js → index-CXVOiscg.js} +8 -6
- package/components/MFIsolationApp/{index.677d9e93.js → index-BfFMo2Q2.js} +5 -5
- package/components/MFLoader/{index.6af7729c.js → index-CCtU6zwR.js} +36 -15
- package/components/ModalDialog/{index.a57ee020.js → index-KryIxH_j.js} +6 -6
- package/components/NavLink/{index.dd723dfd.js → index-D6eiKlc0.js} +5 -3
- package/components/NoItemSelected/{index.b3e365b1.js → index-DKhhgTAH.js} +3 -1
- package/components/ObjectLogs/{index.54fdee14.js → index-CpBmanv0.js} +19 -12
- package/components/PDFViewer/{index.7932d07b.js → index-3PBUibum.js} +4 -2
- package/components/Page/{index.5f2963f3.js → index-PXQkJn7v.js} +11 -8
- package/components/PaperForm/{index.cdb1f846.js → index-B6a3-CZt.js} +4 -2
- package/components/Period/{index.b0b2a03b.js → index-DtFWU3y5.js} +20 -31
- package/components/PrintingSystem/{index.800a7957.js → index-DJmGF2SQ.js} +16 -14
- package/components/PrintingSystem/subcomponents/BodyNode/{index.60ad80bd.js → index-DorXm6AO.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.d4aa116e.js → index-Cd9H-_3i.js} +3 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.142bbf1a.js → index-Dm-RAH_l.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.d16d2c5e.js → index-BPg-NpDf.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.044363bf.js → index-u0ZSP6s4.js} +6 -2
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.5581a84d.js → index-C7eFFsTN.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.2994c128.js → index-D7M4YL4C.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.166d7264.js → index-Drjfhq-n.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index.642ab1b7.js → index-Banh4UxX.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.d8a2a0af.js → index-OBnZLPEc.js} +1 -1
- package/components/PropertyValue/{index.d81eae0a.js → index-Cc7y20oI.js} +7 -5
- package/components/Resizeable/{index.df2f3bb8.js → index-BwQ6EKCK.js} +1 -1
- package/components/ScrollBar/{index.11feff65.js → index-P3SkjYOy.js} +3 -1
- package/components/SideBar/{index.990e8667.js → index-Ddxe1VvL.js} +100 -74
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/styles.d.ts +1 -1
- package/components/SplitLayout/{index.b247de95.js → index-CwmZT1x6.js} +5 -3
- package/components/ToastContainer/{index.c1657bde.js → index-DN3ZHpBT.js} +3 -3
- package/components/animate/LoadingScreen/{index.36a63311.js → index-CcjW-mkl.js} +1 -1
- package/components/animate/MotionContainer/{index.3032bd8f.js → index-eartnWyO.js} +1 -1
- package/components/animate/MotionLazyContainer/{index.d2902a6c.js → index-Be8osTiG.js} +1 -1
- package/components/animate/PropagateLoader/{index.a9da8d00.js → index-Bkq8V2SN.js} +1 -1
- package/components/animate/{index.ceb7669a.js → index-DsolrzTC.js} +1 -1
- package/components/animate/variants/{bounce.784aaaaa.js → bounce-DanQqHAX.js} +3 -1
- package/components/animate/variants/{fade.b561c0fc.js → fade-CAOJNn06.js} +3 -1
- package/components/areas/components/AreasAdmin/{index.b232384d.js → index-Y6S0Q7TN.js} +21 -19
- package/components/areas/components/AreasViewer/{index.d45bfcd2.js → index-DfcpQwSl.js} +67 -64
- package/components/areas/contexts/AreasContext/{index.9edd84c3.js → index-spCQnOlk.js} +180 -16
- package/components/areas/contexts/AreasContext/types.d.ts +1 -0
- package/components/areas/contexts/WindowToolsMFContext/types.d.ts +5 -0
- package/components/areas/hooks/index.d.ts +1 -0
- package/components/areas/hooks/useAreas/{index.5a57ab76.js → index-D6DaWBIP.js} +2 -3
- package/components/areas/hooks/useDynamicMFParameters/{index.9e09e1e3.js → index-DhbcZPs9.js} +1 -1
- package/components/areas/hooks/useSetWindowsTitle/index.d.ts +1 -0
- package/components/areas/hooks/useSetWindowsTitle/useSetWindowsTitle-BzPD-miW.js +31 -0
- package/components/areas/hooks/useSetWindowsTitle/useSetWindowsTitle.d.ts +3 -0
- package/components/areas/hooks/useWindowToolsMF/{index.2fbae9dc.js → index-BECQfhbC.js} +2 -3
- package/components/commercial/AppBarCommercial/{index.b4f6147e.js → index-D1jIOw7M.js} +4 -2
- package/components/commercial/SectionCommercial/{index.a250338c.js → index-C9THYik8.js} +4 -2
- package/components/commercial/TopBar/{index.4fdd66e5.js → index-DLn3yEcX.js} +13 -11
- package/components/commercial/{index.be1af158.js → index-D1bCIF7p.js} +4 -4
- package/components/formatters/BooleanFormatter/{index.91435984.js → index-Bc2l6GTX.js} +3 -3
- package/components/formatters/DateFormatter/{index.2ef6f261.js → index-CGcRZ8BA.js} +1 -1
- package/components/formatters/PointsFormatter/{index.51cd6774.js → index-C7sR8iqk.js} +1 -1
- package/components/formatters/PriceFormatter/{index.97f75b4b.js → index-CsvRawmc.js} +1 -1
- package/components/formatters/UncertaintyFormatter/{index.c3ffdebc.js → index-B9ESVEVp.js} +4 -4
- package/components/formatters/{index.64017cc1.js → index-Botdzyt2.js} +13 -19
- package/components/hook-form/HelperError/{index.360f8fb7.js → index-J-C5u9AH.js} +1 -1
- package/components/hook-form/RHFAutocomplete/{index.089af1b8.js → index-erpzYu8W.js} +20 -20
- package/components/hook-form/RHFAutocompleteAsync/{index.f05b6fe3.js → index-BV0f25eK.js} +5 -3
- package/components/hook-form/RHFCheckbox/{index.4cefbad2.js → index-Duf51-pS.js} +53 -46
- package/components/hook-form/RHFCheckbox/styles.d.ts +1 -1
- package/components/hook-form/RHFColorPicker/{index.ed380b30.js → index-C-tITRAx.js} +8 -6
- package/components/hook-form/RHFDateTime/{index.118ebe6d.js → index-OdXKdhJS.js} +7 -5
- package/components/hook-form/RHFInputNumberSpinner/constants.d.ts +1 -0
- package/components/hook-form/RHFInputNumberSpinner/slots/RHFInputNumberSpinnnerEnum.d.ts +9 -0
- package/components/hook-form/RHFInputNumberSpinner/types.d.ts +21 -0
- package/components/hook-form/RHFPeriod/{index.404ba4c6.js → index-CjkIGYUY.js} +6 -4
- package/components/hook-form/RHFRadioGroup/{index.591f779d.js → index-Da_2zFu3.js} +1 -1
- package/components/hook-form/RHFTextField/index-BWZWPFn5.js +337 -0
- package/components/hook-form/RHFUpload/{index.7b7ee732.js → index-D4nrnFFT.js} +10 -8
- package/components/maps/components/GpsTools/{index.c1198f79.js → index-DPY-BjB8.js} +102 -32
- package/components/maps/components/Map/{index.8c947175.js → index-BRrVIyA-.js} +263 -73
- package/components/modal/{WindowBase.00b9e5f1.js → WindowBase-Ce6yRLcN.js} +4 -4
- package/components/modal/{WindowConfirm.abf49573.js → WindowConfirm-BaB3Ojgu.js} +8 -7
- package/components/modal/{index.81eb6def.js → index-CydPIpKZ.js} +2 -0
- package/components/mui_extended/Accordion/{index.26524ecd.js → index-D1775s1J.js} +8 -6
- package/components/mui_extended/Avatar/{index.e7bcc850.js → index-n5hK7nJD.js} +5 -2
- package/components/mui_extended/Badge/{index.48948839.js → index-Dfdw5Iaq.js} +4 -2
- package/components/mui_extended/Breadcrumbs/{index.4a44883c.js → index-DTS7rOZH.js} +1 -2
- package/components/mui_extended/Button/{index.3d14e3e9.js → index-CksGG1B8.js} +33 -13
- package/components/mui_extended/Button/styles.d.ts +1 -1
- package/components/mui_extended/{CheckBox.5dc01b37.js → CheckBox-CjxjIrmN.js} +4 -2
- package/components/mui_extended/IconButton/{index.7b6c1ee3.js → index-OMq0pPK0.js} +42 -22
- package/components/mui_extended/IconButton/types.d.ts +18 -0
- package/components/mui_extended/MenuActions/MenuActions.d.ts +5 -0
- package/components/mui_extended/MenuActions/constant.d.ts +5 -0
- package/components/mui_extended/MenuActions/dictionary.d.ts +7 -0
- package/components/mui_extended/MenuActions/index-De7dpdBH.js +202 -0
- package/components/mui_extended/MenuActions/index.d.ts +2 -5
- package/components/mui_extended/MenuActions/slots/MenuActionsEnum.d.ts +9 -0
- package/components/mui_extended/MenuActions/slots/MenuActionsSlots.d.ts +24 -0
- package/components/mui_extended/MenuActions/slots/index.d.ts +2 -0
- package/components/mui_extended/MenuActions/types.d.ts +11 -2
- package/components/mui_extended/Pager/{index.b28a2103.js → index-k7SRq6Jo.js} +8 -5
- package/components/mui_extended/Popover/{index.a7da93f1.js → index-BnKsmvtw.js} +39 -27
- package/components/mui_extended/Stack/{index.99de8138.js → index-C9YEChZB.js} +3 -1
- package/components/mui_extended/Tab/{index.5c6a6801.js → index-CpdHav0V.js} +9 -3
- package/components/mui_extended/Tabs/styles.d.ts +1 -1
- package/components/mui_extended/ToggleButton/{index.86098567.js → index-CS1mz-lH.js} +2 -2
- package/components/mui_extended/ToggleIconButton/{index.cbfe1cad.js → index-BNQrQ6-b.js} +3 -2
- package/components/mui_extended/Tooltip/{index.49bb5ee1.js → index-B8QUytCK.js} +2 -0
- package/components/mui_extended/Typography/{index.8c0801e4.js → index-W88rbpsJ.js} +4 -2
- package/components/popups/PopupsProvider/{index.9a23e1d0.js → index-DhSxmtfJ.js} +1 -2
- package/components/popups/PopupsViewer/{index.52653047.js → index-Dn0XOI6q.js} +10 -7
- package/components/popups/PopupsViewer/slots/{popupsViewerSlots.69dd2614.js → popupsViewerSlots-Db8QAmEE.js} +4 -4
- package/contexts/ModalContext/{index.799110fe.js → index-DkUBXDpR.js} +1 -1
- package/contexts/RHFormContext/{index.f9d41b99.js → index-Ct48jRjb.js} +3 -1
- package/hooks/index.d.ts +1 -0
- package/hooks/useFormAddEdit/{index.8947ee59.js → index-BkBJNq8b.js} +2 -2
- package/hooks/useInterval/index.d.ts +7 -0
- package/hooks/useModal/{index.eb857f6e.js → index-CTAwKk5D.js} +2 -3
- package/hooks/useSizeContainer/{index.3c48670c.js → index-D4hDjM1P.js} +2 -0
- package/hooks/useTab/{index.9ad15247.js → index-PXnpiLMx.js} +1 -1
- package/index.js +153 -244
- package/package.json +1 -1
- package/{react-data-grid.c5377916.js → react-data-grid-BfYuZ6AK.js} +59 -110
- package/{react-draggable.079122b0.js → react-draggable-DsCPdgQP.js} +238 -57
- package/{react-json-view.57125fcf.js → react-json-view-bhqIAaNg.js} +277 -467
- package/{react-resizable.330f1499.js → react-resizable-eBbFl2dX.js} +75 -37
- package/{react-spinners.342a6578.js → react-spinners-TpKN9lZg.js} +6 -8
- package/{react-splitter-layout.8b1655c8.js → react-splitter-layout-C-JTsNGs.js} +14 -23
- package/style.css +1 -65
- package/styles/{DynamicFilter.0713a406.js → DynamicFilter-CJFsIegc.js} +1 -1
- package/styles/MenuActions.styles.d.ts +2 -0
- package/styles/{index.db9e7ddb.js → index-C-MsxWtr.js} +90 -25
- package/utils/{index.f77cc2ab.js → index-DiMrtgIu.js} +26 -51
- package/components/LanguagePopover/index.2a7e40fc.js +0 -168
- package/components/hook-form/RHFTextField/index.80b98b98.js +0 -296
- package/components/mui_extended/MenuActions/classes/constants.d.ts +0 -1
- package/components/mui_extended/MenuActions/classes/index.d.ts +0 -7
- package/components/mui_extended/MenuActions/classes/types.d.ts +0 -7
- package/components/mui_extended/MenuActions/icons.d.ts +0 -3
- package/components/mui_extended/MenuActions/index.11d777bb.js +0 -167
- package/components/mui_extended/MenuActions/styles.d.ts +0 -5
- /package/{commonjs.565e6834.js → commonjs-BfYxJMv3.js} +0 -0
- /package/components/DataGrid/{constants.e334cd50.js → constants-8L7QgBKi.js} +0 -0
- /package/components/DynamicFilter/{constants.095f1dbb.js → constants-ByqmFATV.js} +0 -0
- /package/components/DynamicFilter/slots/{SlotsEnum.104a03d4.js → SlotsEnum-cawFeNzx.js} +0 -0
- /package/components/DynamicFilter/slots/{index.36b12be1.js → index-l0sNRNKZ.js} +0 -0
- /package/components/ScrollToTop/{index.e06f98f6.js → index-TxORk5dB.js} +0 -0
- /package/components/WrapperComponent/{index.57964195.js → index-BHV-CsDU.js} +0 -0
- /package/components/animate/{features.0fbf41e1.js → features-BbnE33u3.js} +0 -0
- /package/components/animate/variants/{container.11f82b76.js → container-Dmpr6tg5.js} +0 -0
- /package/components/animate/variants/{index.7a912140.js → index-l0sNRNKZ.js} +0 -0
- /package/components/animate/variants/{transition.bd46b9ce.js → transition-B9W5SWTa.js} +0 -0
- /package/components/areas/components/{index.558684b3.js → index-l0sNRNKZ.js} +0 -0
- /package/components/areas/{constants.66529246.js → constants-rqODZNZe.js} +0 -0
- /package/components/areas/contexts/DynamicMFParmsContext/{index.3d9ad0ad.js → index-22c6E7vK.js} +0 -0
- /package/components/areas/contexts/WindowToolsMFContext/{index.992ae7a3.js → index-DkE30fhm.js} +0 -0
- /package/components/areas/contexts/{index.24025b97.js → index-l0sNRNKZ.js} +0 -0
- /package/components/areas/{dictionary.08cfc4c9.js → dictionary-YUsP9beq.js} +0 -0
- /package/components/areas/hooks/{index.d9dc1e21.js → index-l0sNRNKZ.js} +0 -0
- /package/components/areas/{icons.01fa3bcc.js → icons-CwFr-alN.js} +0 -0
- /package/components/areas/{index.4cc6a221.js → index-B_Odny9h.js} +0 -0
- /package/components/hook-form/RHFMultiCheckbox/{index.437e6ba3.js → index-BARudV1A.js} +0 -0
- /package/components/hook-form/RHFSelect/{index.c6c60ecc.js → index-LdwRuFz-.js} +0 -0
- /package/components/maps/{index.13bb982c.js → index-Ci-7-FHg.js} +0 -0
- /package/components/mui_extended/BoxIcon/{index.d61e7ac5.js → index-BUTJ2tKw.js} +0 -0
- /package/components/mui_extended/CircularProgress/{index.967e70b7.js → index-Bnnti_G6.js} +0 -0
- /package/components/mui_extended/LinearProgress/{index.4092bb69.js → index-CGgW8jq2.js} +0 -0
- /package/components/mui_extended/LinkWithRoute/{index.288c51f3.js → index-BC2miUjR.js} +0 -0
- /package/components/mui_extended/{index.b606cd9d.js → index-l0sNRNKZ.js} +0 -0
- /package/components/popups/PopupsViewer/{constants.29247547.js → constants-DuyD7aCn.js} +0 -0
- /package/components/popups/PopupsViewer/{icons.066abd43.js → icons-BUujqqbu.js} +0 -0
- /package/components/popups/PopupsViewer/slots/{index.37ef2263.js → index-B98CiRLa.js} +0 -0
- /package/components/popups/{index.c5eae682.js → index-l0sNRNKZ.js} +0 -0
- /package/hocs/withToggle/{index.548aeace.js → index-C1_DMZD3.js} +0 -0
- /package/hooks/useFormReadyForUpdate/{index.f60f500e.js → index-B3HygFCM.js} +0 -0
- /package/hooks/useStateRef/{index.538edb89.js → index-C3P6ZK3m.js} +0 -0
- /package/test/{constants_no_mock.86c553a9.js → constants_no_mock-CF-669v-.js} +0 -0
- /package/test/{getNameDataTestId.0faeade8.js → getNameDataTestId-BaBTWhBr.js} +0 -0
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useEnvironment, useModuleSkeleton } from "@m4l/core";
|
|
3
|
-
import { F as FieldLabelRoot } from "../../styles/index.
|
|
3
|
+
import { F as FieldLabelRoot } from "../../styles/index-C-MsxWtr.js";
|
|
4
4
|
import { generateUtilityClasses, Tooltip, Skeleton } from "@mui/material";
|
|
5
5
|
import { unstable_composeClasses } from "@mui/base";
|
|
6
|
-
import { g as getComponentUtilityClass } from "../../utils/index.
|
|
6
|
+
import { g as getComponentUtilityClass } from "../../utils/index-DiMrtgIu.js";
|
|
7
7
|
import clsx from "clsx";
|
|
8
|
-
import { T as Typography } from "../mui_extended/Typography/index.
|
|
9
|
-
import { I as Icon } from "../Icon/index.
|
|
8
|
+
import { T as Typography } from "../mui_extended/Typography/index-W88rbpsJ.js";
|
|
9
|
+
import { I as Icon } from "../Icon/index-CueLDD9j.js";
|
|
10
10
|
const componentName = "M4LFieldLabel";
|
|
11
11
|
generateUtilityClasses(componentName, [
|
|
12
|
+
/* elements */
|
|
12
13
|
"root",
|
|
13
14
|
"label",
|
|
14
15
|
"tooltip",
|
|
15
16
|
"tooltipIcon",
|
|
16
17
|
"containerIcon",
|
|
17
18
|
"mandatory"
|
|
19
|
+
/* states or variants of elements */
|
|
18
20
|
]);
|
|
19
21
|
const useUtilityClasses = () => {
|
|
20
22
|
const slots = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useRef, useEffect, useCallback } from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import { M as MemonizedGridItem } from "./subcomponents/Griditem/index.
|
|
5
|
-
import { G as GridLayoutRoot } from "../../styles/index.
|
|
4
|
+
import { M as MemonizedGridItem } from "./subcomponents/Griditem/index-DEi0Ai1D.js";
|
|
5
|
+
import { G as GridLayoutRoot } from "../../styles/index-C-MsxWtr.js";
|
|
6
6
|
import { generateUtilityClasses } from "@mui/material";
|
|
7
7
|
import "@mui/base";
|
|
8
8
|
const COMPONENT_CLASS_NAME = "M4LGridLayout";
|
|
@@ -23,8 +23,7 @@ function bottom(layout, colapsedHeight, rowHeight) {
|
|
|
23
23
|
let max = 0, bottomY;
|
|
24
24
|
for (let i = 0, len = layout.length; i < len; i++) {
|
|
25
25
|
bottomY = layout[i].y + getLayoutItemH(layout[i], colapsedHeight, rowHeight);
|
|
26
|
-
if (bottomY > max)
|
|
27
|
-
max = bottomY;
|
|
26
|
+
if (bottomY > max) max = bottomY;
|
|
28
27
|
}
|
|
29
28
|
return max;
|
|
30
29
|
}
|
|
@@ -41,6 +40,7 @@ function cloneLayoutItem(layoutItem, layoutItemReplaceProps) {
|
|
|
41
40
|
maxH: layoutItem.maxH,
|
|
42
41
|
moved: Boolean(layoutItem.moved),
|
|
43
42
|
static: Boolean(layoutItem.static),
|
|
43
|
+
// These can be null/undefined
|
|
44
44
|
isDraggable: layoutItem.isDraggable,
|
|
45
45
|
isResizable: layoutItem.isResizable,
|
|
46
46
|
resizeHandles: layoutItem.resizeHandles,
|
|
@@ -59,16 +59,11 @@ function cloneLayout(layout, layoutItemReplaceProps) {
|
|
|
59
59
|
return newLayout;
|
|
60
60
|
}
|
|
61
61
|
function collides(l1, l2, colapsedHeight, rowHeight) {
|
|
62
|
-
if (l1.i === l2.i)
|
|
63
|
-
|
|
64
|
-
if (l1.x
|
|
65
|
-
|
|
66
|
-
if (l1.
|
|
67
|
-
return false;
|
|
68
|
-
if (l1.y + getLayoutItemH(l1, colapsedHeight, rowHeight) <= l2.y)
|
|
69
|
-
return false;
|
|
70
|
-
if (l1.y >= l2.y + getLayoutItemH(l2, colapsedHeight, rowHeight))
|
|
71
|
-
return false;
|
|
62
|
+
if (l1.i === l2.i) return false;
|
|
63
|
+
if (l1.x + l1.w <= l2.x) return false;
|
|
64
|
+
if (l1.x >= l2.x + l2.w) return false;
|
|
65
|
+
if (l1.y + getLayoutItemH(l1, colapsedHeight, rowHeight) <= l2.y) return false;
|
|
66
|
+
if (l1.y >= l2.y + getLayoutItemH(l2, colapsedHeight, rowHeight)) return false;
|
|
72
67
|
return true;
|
|
73
68
|
}
|
|
74
69
|
function compactItem(compareWith, l, compactType, cols, fullLayout, colapsedHeight, rowHeight, allowOverlap) {
|
|
@@ -145,8 +140,7 @@ function compact(layout, compactType, cols, colapsedHeight, rowHeight, allowOver
|
|
|
145
140
|
}
|
|
146
141
|
function getLayoutItem(layout, id) {
|
|
147
142
|
for (let i = 0, len = layout.length; i < len; i++) {
|
|
148
|
-
if (layout[i].i === id)
|
|
149
|
-
return layout[i];
|
|
143
|
+
if (layout[i].i === id) return layout[i];
|
|
150
144
|
}
|
|
151
145
|
return void 0;
|
|
152
146
|
}
|
|
@@ -158,8 +152,7 @@ function getAllCollisions(layout, layoutItem, colapsedHeight, rowHeight) {
|
|
|
158
152
|
}
|
|
159
153
|
function getFirstCollision(layout, layoutItem, colapsedHeight, rowHeight) {
|
|
160
154
|
for (let i = 0, len = layout.length; i < len; i++) {
|
|
161
|
-
if (collides(layout[i], layoutItem, colapsedHeight, rowHeight))
|
|
162
|
-
return layout[i];
|
|
155
|
+
if (collides(layout[i], layoutItem, colapsedHeight, rowHeight)) return layout[i];
|
|
163
156
|
}
|
|
164
157
|
return void 0;
|
|
165
158
|
}
|
|
@@ -218,21 +211,16 @@ function moveElementAwayFromCollision(layout, collidesWith, itemToMove, isUserAc
|
|
|
218
211
|
);
|
|
219
212
|
}
|
|
220
213
|
function moveElement(layout, l, x, y, isUserAction, preventCollision, compactType, cols, colapsedHeight, rowHeight, allowOverlap) {
|
|
221
|
-
if (l.static && l.isDraggable !== true)
|
|
222
|
-
|
|
223
|
-
if (l.y === y && l.x === x)
|
|
224
|
-
return layout;
|
|
214
|
+
if (l.static && l.isDraggable !== true) return layout;
|
|
215
|
+
if (l.y === y && l.x === x) return layout;
|
|
225
216
|
const oldX = l.x;
|
|
226
217
|
const oldY = l.y;
|
|
227
|
-
if (typeof x === "number")
|
|
228
|
-
|
|
229
|
-
if (typeof y === "number")
|
|
230
|
-
l.y = y;
|
|
218
|
+
if (typeof x === "number") l.x = x;
|
|
219
|
+
if (typeof y === "number") l.y = y;
|
|
231
220
|
l.moved = true;
|
|
232
221
|
let sorted = sortLayoutItems(layout, compactType);
|
|
233
222
|
const movingUp = compactType === "vertical" && typeof y === "number" ? oldY >= y : compactType === "horizontal" && typeof x === "number" ? oldX >= x : false;
|
|
234
|
-
if (movingUp)
|
|
235
|
-
sorted = sorted.reverse();
|
|
223
|
+
if (movingUp) sorted = sorted.reverse();
|
|
236
224
|
const collisions = getAllCollisions(sorted, l, colapsedHeight, rowHeight);
|
|
237
225
|
const hasCollisions = collisions.length > 0;
|
|
238
226
|
if (hasCollisions && allowOverlap) {
|
|
@@ -245,8 +233,7 @@ function moveElement(layout, l, x, y, isUserAction, preventCollision, compactTyp
|
|
|
245
233
|
}
|
|
246
234
|
for (let i = 0, len = collisions.length; i < len; i++) {
|
|
247
235
|
const collision = collisions[i];
|
|
248
|
-
if (collision.moved)
|
|
249
|
-
continue;
|
|
236
|
+
if (collision.moved) continue;
|
|
250
237
|
if (collision.static) {
|
|
251
238
|
layout = moveElementAwayFromCollision(
|
|
252
239
|
layout,
|
|
@@ -283,10 +270,8 @@ function resolveCompactionCollision(layout, item, moveToCoord, axis, colapsedHei
|
|
|
283
270
|
}).indexOf(item.i);
|
|
284
271
|
for (let i = itemIndex + 1; i < layout.length; i++) {
|
|
285
272
|
const otherItem = layout[i];
|
|
286
|
-
if (otherItem.static)
|
|
287
|
-
|
|
288
|
-
if (otherItem.y > item.y + getLayoutItemH(item, colapsedHeight, rowHeight))
|
|
289
|
-
break;
|
|
273
|
+
if (otherItem.static) continue;
|
|
274
|
+
if (otherItem.y > item.y + getLayoutItemH(item, colapsedHeight, rowHeight)) break;
|
|
290
275
|
if (collides(item, otherItem, colapsedHeight, rowHeight)) {
|
|
291
276
|
resolveCompactionCollision(
|
|
292
277
|
layout,
|
|
@@ -302,6 +287,11 @@ function resolveCompactionCollision(layout, item, moveToCoord, axis, colapsedHei
|
|
|
302
287
|
}
|
|
303
288
|
function setTransform({ top, left, width, height }) {
|
|
304
289
|
return {
|
|
290
|
+
/* transform: translate,
|
|
291
|
+
WebkitTransform: translate,
|
|
292
|
+
MozTransform: translate,
|
|
293
|
+
msTransform: translate,
|
|
294
|
+
OTransform: translate, */
|
|
305
295
|
width: `${width}px`,
|
|
306
296
|
height: `${height}px`,
|
|
307
297
|
position: "absolute",
|
|
@@ -337,17 +327,13 @@ function sortLayoutItemsByColRow(layout) {
|
|
|
337
327
|
});
|
|
338
328
|
}
|
|
339
329
|
function sortLayoutItems(layout, compactType) {
|
|
340
|
-
if (compactType === "horizontal")
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
return sortLayoutItemsByRowCol(layout);
|
|
344
|
-
else
|
|
345
|
-
return layout;
|
|
330
|
+
if (compactType === "horizontal") return sortLayoutItemsByColRow(layout);
|
|
331
|
+
if (compactType === "vertical") return sortLayoutItemsByRowCol(layout);
|
|
332
|
+
else return layout;
|
|
346
333
|
}
|
|
347
334
|
function withLayoutItem(layout, itemKey, cb) {
|
|
348
335
|
let item = getLayoutItem(layout, itemKey);
|
|
349
|
-
if (!item)
|
|
350
|
-
return [layout, void 0];
|
|
336
|
+
if (!item) return [layout, void 0];
|
|
351
337
|
item = cb(cloneLayoutItem(item));
|
|
352
338
|
layout = modifyLayout(layout, item);
|
|
353
339
|
return [layout, item];
|
|
@@ -356,14 +342,12 @@ function correctBounds(layout, bounds, colapsedHeight, rowHeight) {
|
|
|
356
342
|
const collidesWith = getStatics(layout);
|
|
357
343
|
for (let i = 0, len = layout.length; i < len; i++) {
|
|
358
344
|
const l = layout[i];
|
|
359
|
-
if (l.x + l.w > bounds.cols)
|
|
360
|
-
l.x = bounds.cols - l.w;
|
|
345
|
+
if (l.x + l.w > bounds.cols) l.x = bounds.cols - l.w;
|
|
361
346
|
if (l.x < 0) {
|
|
362
347
|
l.x = 0;
|
|
363
348
|
l.w = bounds.cols;
|
|
364
349
|
}
|
|
365
|
-
if (!l.static)
|
|
366
|
-
collidesWith.push(l);
|
|
350
|
+
if (!l.static) collidesWith.push(l);
|
|
367
351
|
else {
|
|
368
352
|
while (getFirstCollision(collidesWith, l, colapsedHeight, rowHeight)) {
|
|
369
353
|
l.y++;
|
|
@@ -426,8 +410,7 @@ function calcGridColWidth(positionParams) {
|
|
|
426
410
|
return (containerWidth - margin[0] * (cols - 1) - containerPadding[0] * 2) / cols;
|
|
427
411
|
}
|
|
428
412
|
function calcGridItemWHPx(gridUnits, colOrRowSize, marginPx) {
|
|
429
|
-
if (!Number.isFinite(gridUnits))
|
|
430
|
-
return gridUnits;
|
|
413
|
+
if (!Number.isFinite(gridUnits)) return gridUnits;
|
|
431
414
|
return Math.round(colOrRowSize * gridUnits + Math.max(0, gridUnits - 1) * marginPx);
|
|
432
415
|
}
|
|
433
416
|
function calcGridItemPosition(positionParams, x, y, w, h, maximize, state) {
|
|
@@ -486,11 +469,13 @@ function clamp(num, lowerBound, upperBound) {
|
|
|
486
469
|
return Math.max(Math.min(num, upperBound), lowerBound);
|
|
487
470
|
}
|
|
488
471
|
const gridLayoutClasses = generateUtilityClasses(COMPONENT_CLASS_NAME, [
|
|
472
|
+
/* elements */
|
|
489
473
|
"root",
|
|
490
474
|
"gridItemRoot",
|
|
491
475
|
"gridItemType",
|
|
492
476
|
"gridItemPlaceholder",
|
|
493
477
|
"gridItemFreeMove",
|
|
478
|
+
/* states or variants of elements */
|
|
494
479
|
"maximizeMe",
|
|
495
480
|
"maximizeOther",
|
|
496
481
|
"colapsed",
|
|
@@ -505,6 +490,7 @@ function GridLayout(props) {
|
|
|
505
490
|
const {
|
|
506
491
|
layoutItemRender,
|
|
507
492
|
innerRef,
|
|
493
|
+
//Referencia requerida por el provedor WidthProvider para detectar los cambios de tamaño
|
|
508
494
|
autoSize = true,
|
|
509
495
|
cols = DEFAULT_COLS,
|
|
510
496
|
containerPadding = DEFAULT_CONTAINER_PADDING,
|
|
@@ -519,6 +505,7 @@ function GridLayout(props) {
|
|
|
519
505
|
draggableHandle = "",
|
|
520
506
|
draggableCancel = "",
|
|
521
507
|
maxRows = Infinity,
|
|
508
|
+
// infinite vertical growth
|
|
522
509
|
layout = [],
|
|
523
510
|
isBounded = false,
|
|
524
511
|
isDraggable = true,
|
|
@@ -596,12 +583,12 @@ function GridLayout(props) {
|
|
|
596
583
|
const { layout: layout2 } = refState.current;
|
|
597
584
|
const { e, node } = gridDragEvent;
|
|
598
585
|
const li = getLayoutItem(layout2, i);
|
|
599
|
-
if (!li)
|
|
600
|
-
return;
|
|
586
|
+
if (!li) return;
|
|
601
587
|
refState.current = {
|
|
602
588
|
...refState.current,
|
|
603
589
|
oldDragItem: cloneLayoutItem(li),
|
|
604
590
|
oldLayout: layout2
|
|
591
|
+
//Punto de arranque, layout actual
|
|
605
592
|
};
|
|
606
593
|
if (li && li.freeMove) {
|
|
607
594
|
onClickSetOnTopFreeMove(li.i, "onDragStart");
|
|
@@ -619,8 +606,7 @@ function GridLayout(props) {
|
|
|
619
606
|
const { oldDragItem, layout: layout2 } = refState.current;
|
|
620
607
|
const { e, node } = gridDragEvent;
|
|
621
608
|
const li = getLayoutItem(layout2, i);
|
|
622
|
-
if (!li)
|
|
623
|
-
return;
|
|
609
|
+
if (!li) return;
|
|
624
610
|
const newPlaceholder = {
|
|
625
611
|
w: li.w,
|
|
626
612
|
h: getLayoutItemH(li, refState.current.colapsedHeight, refState.current.rowHeight),
|
|
@@ -689,8 +675,7 @@ function GridLayout(props) {
|
|
|
689
675
|
}
|
|
690
676
|
const { oldDragItem, layout: layout2, oldLayout } = refState.current;
|
|
691
677
|
const li = getLayoutItem(layout2, i);
|
|
692
|
-
if (!li)
|
|
693
|
-
return;
|
|
678
|
+
if (!li) return;
|
|
694
679
|
let newLayout;
|
|
695
680
|
const isUserAction = true;
|
|
696
681
|
if (!li.freeMove) {
|
|
@@ -745,12 +730,12 @@ function GridLayout(props) {
|
|
|
745
730
|
(i, _w, _h, { e, node }) => {
|
|
746
731
|
const { layout: layout2 } = refState.current;
|
|
747
732
|
const li = getLayoutItem(layout2, i);
|
|
748
|
-
if (!li)
|
|
749
|
-
return;
|
|
733
|
+
if (!li) return;
|
|
750
734
|
refState.current = {
|
|
751
735
|
...refState.current,
|
|
752
736
|
oldResizeItem: cloneLayoutItem(li),
|
|
753
737
|
oldLayout: refState.current.layout
|
|
738
|
+
//Punto de arranque, layout actual
|
|
754
739
|
};
|
|
755
740
|
onResizeStart(layout2, li, li, void 0, e, node);
|
|
756
741
|
if (li && li.freeMove) {
|
|
@@ -778,15 +763,11 @@ function GridLayout(props) {
|
|
|
778
763
|
if (hasCollisions) {
|
|
779
764
|
let leastX = Infinity, leastY = Infinity;
|
|
780
765
|
collisions.forEach((layoutItem) => {
|
|
781
|
-
if (layoutItem.x > cbLi.x)
|
|
782
|
-
|
|
783
|
-
if (layoutItem.y > cbLi.y)
|
|
784
|
-
leastY = Math.min(leastY, layoutItem.y);
|
|
766
|
+
if (layoutItem.x > cbLi.x) leastX = Math.min(leastX, layoutItem.x);
|
|
767
|
+
if (layoutItem.y > cbLi.y) leastY = Math.min(leastY, layoutItem.y);
|
|
785
768
|
});
|
|
786
|
-
if (Number.isFinite(leastX))
|
|
787
|
-
|
|
788
|
-
if (Number.isFinite(leastY))
|
|
789
|
-
cbLi.h = leastY - cbLi.y;
|
|
769
|
+
if (Number.isFinite(leastX)) cbLi.w = leastX - cbLi.x;
|
|
770
|
+
if (Number.isFinite(leastY)) cbLi.h = leastY - cbLi.y;
|
|
790
771
|
}
|
|
791
772
|
}
|
|
792
773
|
if (!hasCollisions) {
|
|
@@ -806,8 +787,7 @@ function GridLayout(props) {
|
|
|
806
787
|
li.h = h;
|
|
807
788
|
}
|
|
808
789
|
}
|
|
809
|
-
if (!li)
|
|
810
|
-
return;
|
|
790
|
+
if (!li) return;
|
|
811
791
|
const newPlaceholder = {
|
|
812
792
|
w: li.w,
|
|
813
793
|
h: li.h,
|
|
@@ -851,6 +831,7 @@ function GridLayout(props) {
|
|
|
851
831
|
const l = getLayoutItem(layout2, i);
|
|
852
832
|
refState.current = {
|
|
853
833
|
...refState.current,
|
|
834
|
+
// layout: finalLayout,
|
|
854
835
|
oldResizeItem: void 0,
|
|
855
836
|
oldLayout: void 0,
|
|
856
837
|
activeDrag: void 0
|
|
@@ -881,8 +862,7 @@ function GridLayout(props) {
|
|
|
881
862
|
}, []);
|
|
882
863
|
const placeholder = () => {
|
|
883
864
|
const { activeDrag } = currentState;
|
|
884
|
-
if (!activeDrag)
|
|
885
|
-
return null;
|
|
865
|
+
if (!activeDrag) return null;
|
|
886
866
|
return /* @__PURE__ */ jsx(
|
|
887
867
|
MemonizedGridItem,
|
|
888
868
|
{
|
|
@@ -1007,8 +987,7 @@ function GridLayout(props) {
|
|
|
1007
987
|
]
|
|
1008
988
|
);
|
|
1009
989
|
const containerAutoSizeHeight = useCallback(() => {
|
|
1010
|
-
if (!autoSize)
|
|
1011
|
-
return;
|
|
990
|
+
if (!autoSize) return;
|
|
1012
991
|
const nbRow = bottom(finalLayoutRender, colapsedHeight, rowHeight);
|
|
1013
992
|
const containerPaddingY = containerPadding ? containerPadding[1] : margin[1];
|
|
1014
993
|
return nbRow * rowHeight + (nbRow - 1) * margin[1] + containerPaddingY * 2 + "px";
|
|
@@ -1031,7 +1010,7 @@ function GridLayout(props) {
|
|
|
1031
1010
|
);
|
|
1032
1011
|
}
|
|
1033
1012
|
export {
|
|
1034
|
-
|
|
1013
|
+
noop as A,
|
|
1035
1014
|
COMPONENT_CLASS_NAME as C,
|
|
1036
1015
|
DEFAULT_COLS as D,
|
|
1037
1016
|
GridLayout as G,
|
|
@@ -1061,5 +1040,5 @@ export {
|
|
|
1061
1040
|
isEqualLayout as w,
|
|
1062
1041
|
DEFAULT_RESPONSIVE_BREAKPOINTS as x,
|
|
1063
1042
|
DEFAULT_RESPONSIVE_COLS as y,
|
|
1064
|
-
|
|
1043
|
+
isEqualLayouts as z
|
|
1065
1044
|
};
|
package/components/GridLayout/subcomponents/Griditem/{index.10278655.js → index-DEi0Ai1D.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import React__default, { useRef, useEffect, useState, useCallback, useMemo } from "react";
|
|
3
|
-
import { D as DraggableCore_1 } from "../../../../react-draggable.
|
|
4
|
-
import { R as Resizable } from "../../../../react-resizable.
|
|
5
|
-
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.
|
|
3
|
+
import { D as DraggableCore_1 } from "../../../../react-draggable-DsCPdgQP.js";
|
|
4
|
+
import { R as Resizable } from "../../../../react-resizable-eBbFl2dX.js";
|
|
5
|
+
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-DUfp2sP_.js";
|
|
6
6
|
import clsx from "clsx";
|
|
7
7
|
import { deepEqual } from "fast-equals";
|
|
8
8
|
function GridItem(props) {
|
|
@@ -140,12 +140,10 @@ function GridItem(props) {
|
|
|
140
140
|
return newStyle;
|
|
141
141
|
};
|
|
142
142
|
const gridItemOnDragStart = useCallback((e, { node }) => {
|
|
143
|
-
if (!onDragStart)
|
|
144
|
-
return;
|
|
143
|
+
if (!onDragStart) return;
|
|
145
144
|
const newPosition = { top: 0, left: 0 };
|
|
146
145
|
const { offsetParent } = node;
|
|
147
|
-
if (!offsetParent)
|
|
148
|
-
return;
|
|
146
|
+
if (!offsetParent) return;
|
|
149
147
|
const parentRect = offsetParent.getBoundingClientRect();
|
|
150
148
|
const clientRect = node.getBoundingClientRect();
|
|
151
149
|
const cLeft = clientRect.left / transformScale;
|
|
@@ -171,8 +169,7 @@ function GridItem(props) {
|
|
|
171
169
|
}, []);
|
|
172
170
|
const gridItemOnDrag = useCallback(
|
|
173
171
|
(e, { node, deltaX, deltaY }) => {
|
|
174
|
-
if (!onDrag)
|
|
175
|
-
return;
|
|
172
|
+
if (!onDrag) return;
|
|
176
173
|
if (!refState.current.dragging) {
|
|
177
174
|
return;
|
|
178
175
|
}
|
|
@@ -212,8 +209,7 @@ function GridItem(props) {
|
|
|
212
209
|
[]
|
|
213
210
|
);
|
|
214
211
|
const gridItemOnDragStop = useCallback((e, { node }) => {
|
|
215
|
-
if (!onDragStop)
|
|
216
|
-
return;
|
|
212
|
+
if (!onDragStop) return;
|
|
217
213
|
if (!refState.current.dragging) {
|
|
218
214
|
return;
|
|
219
215
|
}
|
|
@@ -271,8 +267,7 @@ function GridItem(props) {
|
|
|
271
267
|
onResizeHandler(e, callbackData, "onResizeStart");
|
|
272
268
|
}, []);
|
|
273
269
|
const localFreeMoveOnClick = useCallback(() => {
|
|
274
|
-
if (!onFreeMoveClick)
|
|
275
|
-
return;
|
|
270
|
+
if (!onFreeMoveClick) return;
|
|
276
271
|
onFreeMoveClick(i);
|
|
277
272
|
}, []);
|
|
278
273
|
const mixinResizable = useCallback(
|
|
@@ -367,10 +362,13 @@ function GridItem(props) {
|
|
|
367
362
|
[gridLayoutClasses.invisible]: !visible,
|
|
368
363
|
[gridLayoutClasses.cssTransforms]: useCSSTransforms,
|
|
369
364
|
"react-draggable": isDraggable
|
|
365
|
+
//Requerido para el componente Draggable
|
|
366
|
+
// dropping: Boolean(droppingPosition),
|
|
370
367
|
});
|
|
371
368
|
const styleFinal = {
|
|
372
369
|
...style,
|
|
373
370
|
...createStyle(pos)
|
|
371
|
+
//TODO: Delegar el estilo en el ItemRender
|
|
374
372
|
};
|
|
375
373
|
const memoLayouItemRender = useMemo(() => {
|
|
376
374
|
return /* @__PURE__ */ jsx(ComponentItemRender, { type, i });
|
package/components/GridLayout/subcomponents/Responsive/{index.24857a52.js → index-B7v5X9un.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
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
|
|
2
|
+
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 isEqualLayouts, G as GridLayout, A as noop } from "../../index-DUfp2sP_.js";
|
|
3
3
|
import { useState, useRef, useEffect, useCallback } from "react";
|
|
4
4
|
import { useFirstRender } from "@m4l/graphics";
|
|
5
5
|
import { deepEqual } from "fast-equals";
|
|
@@ -8,8 +8,7 @@ function getBreakpointFromWidth(breakpoints, width) {
|
|
|
8
8
|
let matching = sorted[0];
|
|
9
9
|
for (let i = 1, len = sorted.length; i < len; i++) {
|
|
10
10
|
const breakpointName = sorted[i];
|
|
11
|
-
if (width > breakpoints[breakpointName])
|
|
12
|
-
matching = breakpointName;
|
|
11
|
+
if (width > breakpoints[breakpointName]) matching = breakpointName;
|
|
13
12
|
}
|
|
14
13
|
return matching;
|
|
15
14
|
}
|
|
@@ -76,13 +75,11 @@ function sortBreakpoints(breakpoints) {
|
|
|
76
75
|
});
|
|
77
76
|
}
|
|
78
77
|
function getIndentationValue(param, breakpoint) {
|
|
79
|
-
if (!param)
|
|
80
|
-
return [0, 0];
|
|
78
|
+
if (!param) return [0, 0];
|
|
81
79
|
return Array.isArray(param) ? param : param[breakpoint];
|
|
82
80
|
}
|
|
83
81
|
function addLayoutItemToBreakPointIfNoExists(layouts, breakpoint, layoutItem, cols, margin, containerPadding, rowHeight, containerHeight, currentBreakpoint) {
|
|
84
|
-
if (!layouts[breakpoint])
|
|
85
|
-
return;
|
|
82
|
+
if (!layouts[breakpoint]) return;
|
|
86
83
|
if (layouts[breakpoint].findIndex((l) => l.i === layoutItem.i) === -1) {
|
|
87
84
|
const l = cloneLayoutItem(layoutItem);
|
|
88
85
|
const rowHeightBreakpoint = typeof rowHeight === "number" ? rowHeight : rowHeight[breakpoint];
|
|
@@ -207,6 +204,7 @@ function Responsive(props) {
|
|
|
207
204
|
containerPadding = DEFAULT_CONTAINER_PADDING,
|
|
208
205
|
containerMargin = DEFAULT_MARGIN,
|
|
209
206
|
layouts = {},
|
|
207
|
+
// onBreakpointChange = noop,
|
|
210
208
|
onLayoutChange = noop,
|
|
211
209
|
onContainerChange = noop,
|
|
212
210
|
colapsedHeight = DEFAULT_COLAPSED_HEIGHT,
|
|
@@ -309,6 +307,8 @@ function Responsive(props) {
|
|
|
309
307
|
onContainerChange({
|
|
310
308
|
containerWidth,
|
|
311
309
|
containerHeight,
|
|
310
|
+
// containerMargin: newContainerMargin,
|
|
311
|
+
// containerPadding: newContainerPadding,
|
|
312
312
|
breakpoint: newBreakpoint,
|
|
313
313
|
cols: newCols
|
|
314
314
|
});
|
package/components/GridLayout/subcomponents/SizeProvider/{index.2f762118.js → index-BsKaLKRl.js}
RENAMED
|
@@ -3,7 +3,7 @@ import { useRef, useState, useMemo, useCallback, useEffect } from "react";
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { throttle } from "lodash";
|
|
5
5
|
import { useResizeObserver } from "@m4l/graphics";
|
|
6
|
-
import { j as DEFAULT_CONTAINER_WIDTH, k as DEFAULT_CONTAINER_HEIGHT, T as THROTTLE_RESIZE_TIMEOUT, C as COMPONENT_CLASS_NAME } from "../../index.
|
|
6
|
+
import { j as DEFAULT_CONTAINER_WIDTH, k as DEFAULT_CONTAINER_HEIGHT, T as THROTTLE_RESIZE_TIMEOUT, C as COMPONENT_CLASS_NAME } from "../../index-DUfp2sP_.js";
|
|
7
7
|
function withSizeProvider(ComposedComponent) {
|
|
8
8
|
return (props) => {
|
|
9
9
|
const { measureBeforeMount = true, ...rest } = props;
|
|
@@ -20,6 +20,7 @@ function withSizeProvider(ComposedComponent) {
|
|
|
20
20
|
setCurrentState((prev) => ({
|
|
21
21
|
...prev,
|
|
22
22
|
width: node.clientWidth,
|
|
23
|
+
//
|
|
23
24
|
height: node.offsetHeight
|
|
24
25
|
}));
|
|
25
26
|
}
|
|
@@ -28,7 +29,9 @@ function withSizeProvider(ComposedComponent) {
|
|
|
28
29
|
);
|
|
29
30
|
const throttleResize = throttle(onWindowResizeMemo, THROTTLE_RESIZE_TIMEOUT, {
|
|
30
31
|
leading: false,
|
|
32
|
+
// No enviar el primer evento de resizing
|
|
31
33
|
trailing: true
|
|
34
|
+
// Incluir siempre el ultimo evento en la cola, para que no quede se quedee a la mitad de resizing
|
|
32
35
|
});
|
|
33
36
|
const onResize = useCallback((_target) => {
|
|
34
37
|
throttleResize();
|
|
@@ -49,14 +52,17 @@ function withSizeProvider(ComposedComponent) {
|
|
|
49
52
|
}
|
|
50
53
|
);
|
|
51
54
|
}
|
|
52
|
-
return
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
55
|
+
return (
|
|
56
|
+
//@ts-expect-error
|
|
57
|
+
/* @__PURE__ */ jsx(
|
|
58
|
+
ComposedComponent,
|
|
59
|
+
{
|
|
60
|
+
innerRef: elementRef,
|
|
61
|
+
containerWidth: currentState.width,
|
|
62
|
+
containerHeight: currentState.height,
|
|
63
|
+
...rest
|
|
64
|
+
}
|
|
65
|
+
)
|
|
60
66
|
);
|
|
61
67
|
};
|
|
62
68
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { H as HelperTextRoot } from "../../styles/index.
|
|
2
|
+
import { H as HelperTextRoot } from "../../styles/index-C-MsxWtr.js";
|
|
3
3
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
4
4
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
|
-
import { T as Typography } from "../mui_extended/Typography/index.
|
|
5
|
+
import { T as Typography } from "../mui_extended/Typography/index-W88rbpsJ.js";
|
|
6
6
|
const componentName = "M4LHelperText";
|
|
7
7
|
const errorLabelClasses = generateUtilityClasses(componentName, [
|
|
8
|
+
/* elements */
|
|
8
9
|
"root",
|
|
10
|
+
/* states or variants of elements */
|
|
9
11
|
"variantInfo",
|
|
10
12
|
"variantSuccess",
|
|
11
13
|
"variantWarning",
|
|
@@ -35,7 +37,12 @@ const HelperText = (props) => {
|
|
|
35
37
|
variant
|
|
36
38
|
};
|
|
37
39
|
const classes = useUtilityClasses(ownerSate);
|
|
38
|
-
return
|
|
40
|
+
return (
|
|
41
|
+
/* ErrorLabelRoot: Contenedor principal del componente, es usado para aplicar los estilos css de los overrides
|
|
42
|
+
que provienen del objeto del tema. Se usa para garantizar de que estos estilos no se propaguen a otros
|
|
43
|
+
componentes de la plataforna web. */
|
|
44
|
+
/* @__PURE__ */ jsx(HelperTextRoot, { className: classes.root, children: /* @__PURE__ */ jsx(Typography, { variant: "body", skeletonWidth, skeletongHeight, children: message }) })
|
|
45
|
+
);
|
|
39
46
|
};
|
|
40
47
|
export {
|
|
41
48
|
HelperText as H,
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Marker } from "react-leaflet";
|
|
3
3
|
import L__default from "leaflet";
|
|
4
|
-
import { m as mapClasses, L as LABEL_BK_COLOR_DEFAULT, a as LABEL_COLOR_DEFAULT } from "../maps/components/Map/index
|
|
4
|
+
import { m as mapClasses, L as LABEL_BK_COLOR_DEFAULT, a as LABEL_COLOR_DEFAULT } from "../maps/components/Map/index-BRrVIyA-.js";
|
|
5
5
|
import clsx from "clsx";
|
|
6
6
|
import { useEnvironment } from "@m4l/core";
|
|
7
|
-
import { I as IconRoot, e as DivIcon, f as ArrowIconRoot } from "../../styles/index.
|
|
8
|
-
import { u as useSideBar, g as getNameDataTestId$1 } from "../SideBar/index.
|
|
9
|
-
import { T as TEST_PROP_ID } from "../../test/constants_no_mock
|
|
7
|
+
import { I as IconRoot, e as DivIcon, f as ArrowIconRoot } from "../../styles/index-C-MsxWtr.js";
|
|
8
|
+
import { u as useSideBar, g as getNameDataTestId$1 } from "../SideBar/index-Ddxe1VvL.js";
|
|
9
|
+
import { T as TEST_PROP_ID } from "../../test/constants_no_mock-CF-669v-.js";
|
|
10
10
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
11
11
|
import { unstable_composeClasses } from "@mui/base";
|
|
12
12
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
13
13
|
const componentName = "M4LIcon";
|
|
14
14
|
generateUtilityClasses(componentName, [
|
|
15
|
+
/* elements */
|
|
15
16
|
"root",
|
|
16
17
|
"icon",
|
|
17
18
|
"variantSkeleton",
|
|
19
|
+
/* states or variants of elements */
|
|
18
20
|
"sizeExtraSmall",
|
|
19
21
|
"sizeSmall",
|
|
20
22
|
"sizeMedium",
|
|
@@ -102,6 +104,7 @@ const FeatureDivIconLabel = (props) => {
|
|
|
102
104
|
return L__default.divIcon({
|
|
103
105
|
className: clsx(mapClasses.markerLayerRoot, ""),
|
|
104
106
|
iconSize: [iconWidth, iconHeight],
|
|
107
|
+
// iconAnchor: [-width, height/2],
|
|
105
108
|
html
|
|
106
109
|
});
|
|
107
110
|
};
|
|
@@ -112,8 +115,10 @@ const MarkerIconLabel = (props) => {
|
|
|
112
115
|
iconSrc,
|
|
113
116
|
iconRotate,
|
|
114
117
|
iconScale: scale,
|
|
118
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
115
119
|
className,
|
|
116
120
|
label,
|
|
121
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
117
122
|
markerColor,
|
|
118
123
|
labelBkColor: bkColor,
|
|
119
124
|
labelColor: color,
|