@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,38 +1,39 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { a8 as WindowRoot, a9 as WrapperWindowModal, aa as AreasViewerRoot } from "../../../../styles/index.
|
|
2
|
+
import { a8 as WindowRoot, a9 as WrapperWindowModal, aa as AreasViewerRoot } from "../../../../styles/index-C-MsxWtr.js";
|
|
3
3
|
import { shallow } from "zustand/shallow";
|
|
4
4
|
import React__default, { useMemo, useEffect } from "react";
|
|
5
5
|
import clsx from "clsx";
|
|
6
|
-
import { u as useAreasStore } from "../../hooks/useAreas/index.
|
|
6
|
+
import { u as useAreasStore } from "../../hooks/useAreas/index-D6DaWBIP.js";
|
|
7
7
|
import { generateUtilityClasses, Skeleton } from "@mui/material";
|
|
8
8
|
import { unstable_composeClasses } from "@mui/base";
|
|
9
|
-
import { g as getComponentUtilityClass } from "../../../../utils/index.
|
|
10
|
-
import { a as AREAS_VIEWER_CLASS_NAME } from "../../constants.
|
|
9
|
+
import { g as getComponentUtilityClass } from "../../../../utils/index-DiMrtgIu.js";
|
|
10
|
+
import { a as AREAS_VIEWER_CLASS_NAME } from "../../constants-rqODZNZe.js";
|
|
11
11
|
import { useModuleDictionary, useEnvironment, useModuleSkeleton } from "@m4l/core";
|
|
12
|
-
import { a as MemonizedMenuActions } from "../../../mui_extended/MenuActions/index.11d777bb.js";
|
|
13
12
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
14
|
-
import { I as ICONS } from "../../icons.
|
|
15
|
-
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.
|
|
16
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index.
|
|
17
|
-
import { L as LinearProgressIndeterminate } from "../../../LinearProgressIndeterminate/index.
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
13
|
+
import { I as ICONS } from "../../icons-CwFr-alN.js";
|
|
14
|
+
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary-YUsP9beq.js";
|
|
15
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index-OMq0pPK0.js";
|
|
16
|
+
import { L as LinearProgressIndeterminate } from "../../../LinearProgressIndeterminate/index-CTlvokQp.js";
|
|
17
|
+
import { a as MemonizedMenuActions } from "../../../mui_extended/MenuActions/index-De7dpdBH.js";
|
|
18
|
+
import { I as Icon } from "../../../Icon/index-CueLDD9j.js";
|
|
19
|
+
import { T as Typography } from "../../../mui_extended/Typography/index-W88rbpsJ.js";
|
|
20
|
+
import { M as MFLoader } from "../../../MFLoader/index-CCtU6zwR.js";
|
|
21
|
+
import { W as WindowToolsMFProvider } from "../../contexts/WindowToolsMFContext/index-DkE30fhm.js";
|
|
22
|
+
import { D as DynamicMFParmsProvider } from "../../contexts/DynamicMFParmsContext/index-22c6E7vK.js";
|
|
23
|
+
import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock-CF-669v-.js";
|
|
24
|
+
import { g as getNameDataTestId } from "../../../../test/getNameDataTestId-BaBTWhBr.js";
|
|
25
|
+
import { c as createToaster, T as ToastContainer } from "../../../ToastContainer/index-DN3ZHpBT.js";
|
|
26
|
+
import { R as RESPONSIVE_COLAPSED_HEIGHTS, a as RESPONSIVE_ROW_HEIGHTS, M as MARGIN_GRIDLAYOUT, P as PADDING_GRIDLAYOUT } from "../../contexts/AreasContext/index-spCQnOlk.js";
|
|
27
|
+
import { w as withSizeProvider } from "../../../GridLayout/subcomponents/SizeProvider/index-BsKaLKRl.js";
|
|
28
|
+
import { R as Responsive } from "../../../GridLayout/subcomponents/Responsive/index-B7v5X9un.js";
|
|
29
29
|
import { useLocation } from "react-router-dom";
|
|
30
|
-
import { L as LoadingError } from "../../../LoadingError/index.
|
|
31
|
-
import {
|
|
32
|
-
import { R as ResizeableWindow } from "../../../Resizeable/index.
|
|
30
|
+
import { L as LoadingError } from "../../../LoadingError/index-CXVOiscg.js";
|
|
31
|
+
import { a as Draggable } from "../../../../react-draggable-DsCPdgQP.js";
|
|
32
|
+
import { R as ResizeableWindow } from "../../../Resizeable/index-BwQ6EKCK.js";
|
|
33
33
|
const areasViewerClasses = generateUtilityClasses(
|
|
34
34
|
AREAS_VIEWER_CLASS_NAME,
|
|
35
35
|
[
|
|
36
|
+
/* elements */
|
|
36
37
|
"root",
|
|
37
38
|
"areaRoot",
|
|
38
39
|
"areaGridLayoutPanelContainer",
|
|
@@ -58,6 +59,8 @@ const areasViewerClasses = generateUtilityClasses(
|
|
|
58
59
|
"resizeHandle",
|
|
59
60
|
"loaderContainer",
|
|
60
61
|
"containerComponent",
|
|
62
|
+
/* states or variants of elements */
|
|
63
|
+
// 'active',
|
|
61
64
|
"selected",
|
|
62
65
|
"colapsed",
|
|
63
66
|
"selectedWindow",
|
|
@@ -192,6 +195,7 @@ function getMenuActions(options) {
|
|
|
192
195
|
onClick: () => saveModuleCookies(windowId),
|
|
193
196
|
disabled: false,
|
|
194
197
|
visibility: "normal",
|
|
198
|
+
/* dictionaryId: getAreasDictionary(DICCTIONARY.label_persist_module_cookies), */
|
|
195
199
|
label: getLabel(getAreasDictionary(DICCTIONARY.label_persist_module_cookies)),
|
|
196
200
|
key: "save_cookies"
|
|
197
201
|
};
|
|
@@ -202,6 +206,7 @@ function getMenuActions(options) {
|
|
|
202
206
|
disabled: false,
|
|
203
207
|
visibility: "normal",
|
|
204
208
|
label: getLabel(getAreasDictionary(DICCTIONARY.label_reset_module_cookies)),
|
|
209
|
+
/* dictionaryId: getAreasDictionary(DICCTIONARY.label_reset_module_cookies), */
|
|
205
210
|
key: "reset_cookes"
|
|
206
211
|
};
|
|
207
212
|
menuActions.push(resetCookiesAction);
|
|
@@ -270,7 +275,7 @@ function Header(props) {
|
|
|
270
275
|
shallow
|
|
271
276
|
);
|
|
272
277
|
const maximizedId = useAreasStore((state) => state.hashAreas[areaId].maximizedId, shallow);
|
|
273
|
-
const
|
|
278
|
+
const collapsed = useAreasStore((state) => {
|
|
274
279
|
const currentBreakpoint = state.hashAreas[areaId].currentBreakpoint;
|
|
275
280
|
if (currentBreakpoint) {
|
|
276
281
|
return state.hashAreas[areaId].layouts[currentBreakpoint].find((li) => li.i === windowId)?.colapsed;
|
|
@@ -308,8 +313,8 @@ function Header(props) {
|
|
|
308
313
|
}
|
|
309
314
|
e.stopPropagation();
|
|
310
315
|
};
|
|
311
|
-
const
|
|
312
|
-
if (!
|
|
316
|
+
const collapsedToggle = (e) => {
|
|
317
|
+
if (!collapsed) {
|
|
313
318
|
colapseLayoutItem(areaId, windowId);
|
|
314
319
|
} else {
|
|
315
320
|
unColapseLayoutItem(areaId, windowId);
|
|
@@ -323,10 +328,10 @@ function Header(props) {
|
|
|
323
328
|
/* @__PURE__ */ jsx(LinearProgressIndeterminate, {}),
|
|
324
329
|
/* @__PURE__ */ jsxs("div", { className: areasViewerClasses.windowHeaderContent, children: [
|
|
325
330
|
/* @__PURE__ */ jsx(Icon, { src: url_icon, size: "medium" }),
|
|
326
|
-
/* @__PURE__ */ jsx(Typography, { className: areasViewerClasses.windowHeaderTitle, variant: "h5", children:
|
|
331
|
+
/* @__PURE__ */ jsx(Typography, { className: areasViewerClasses.windowHeaderTitle, variant: "h5", children: title }),
|
|
327
332
|
/* @__PURE__ */ jsxs("div", { className: areasViewerClasses.windowHeaderCancelHandle, children: [
|
|
328
|
-
!
|
|
329
|
-
!
|
|
333
|
+
!collapsed && /* @__PURE__ */ jsx(MainActions, { windowId }),
|
|
334
|
+
!collapsed && menuActions.length > 0 && /* @__PURE__ */ jsx(
|
|
330
335
|
MemonizedMenuActions,
|
|
331
336
|
{
|
|
332
337
|
arrowType: "no-arrow",
|
|
@@ -338,7 +343,7 @@ function Header(props) {
|
|
|
338
343
|
toolTip: getLabel(getAreasDictionary(DICCTIONARY.label_module_actions))
|
|
339
344
|
}
|
|
340
345
|
),
|
|
341
|
-
!
|
|
346
|
+
!collapsed && (emergeType === "layout" || emergeType === "popup") && /* @__PURE__ */ jsx(
|
|
342
347
|
IconButton,
|
|
343
348
|
{
|
|
344
349
|
className: "m4l_draggableCancel",
|
|
@@ -356,12 +361,12 @@ function Header(props) {
|
|
|
356
361
|
IconButton,
|
|
357
362
|
{
|
|
358
363
|
className: "m4l_draggableCancel",
|
|
359
|
-
onClick:
|
|
364
|
+
onClick: collapsedToggle,
|
|
360
365
|
"aria-label": "click",
|
|
361
|
-
src: !
|
|
366
|
+
src: !collapsed ? `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.COLAPSE}` : `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.UNCOLPASE}`,
|
|
362
367
|
tooltip: getLabel(
|
|
363
368
|
getAreasDictionary(
|
|
364
|
-
!
|
|
369
|
+
!collapsed ? DICCTIONARY.label_collapse_window : DICCTIONARY.label_uncollapse_window
|
|
365
370
|
)
|
|
366
371
|
)
|
|
367
372
|
}
|
|
@@ -420,7 +425,8 @@ const Window = (props) => {
|
|
|
420
425
|
close,
|
|
421
426
|
startProgress,
|
|
422
427
|
stopProgress,
|
|
423
|
-
setFnQueryClose
|
|
428
|
+
setFnQueryClose,
|
|
429
|
+
setWindowTitle
|
|
424
430
|
} = useAreasStore((state) => state.windowActions, shallow);
|
|
425
431
|
const { selectLayout } = useAreasStore((state) => state.areaActions, shallow);
|
|
426
432
|
const { loadCookiesFromApi } = useAreasStore((state) => state.windowActions, shallow);
|
|
@@ -446,7 +452,8 @@ const Window = (props) => {
|
|
|
446
452
|
setFnQueryClose: (fnQueryClose) => {
|
|
447
453
|
setFnQueryClose(windowId, fnQueryClose);
|
|
448
454
|
},
|
|
449
|
-
toast: createToaster(windowId)
|
|
455
|
+
toast: createToaster(windowId),
|
|
456
|
+
setWindowTitle: (title) => setWindowTitle(windowId, title)
|
|
450
457
|
}),
|
|
451
458
|
[]
|
|
452
459
|
);
|
|
@@ -480,34 +487,30 @@ const Window = (props) => {
|
|
|
480
487
|
children: /* @__PURE__ */ jsxs("div", { className: areasViewerClasses.windowRootContainer, children: [
|
|
481
488
|
/* @__PURE__ */ jsx(Header, { areaId, windowId, emergeType }),
|
|
482
489
|
/* @__PURE__ */ jsx(ToastContainer, { fixed: false, position: "top-center", containerId: windowId }),
|
|
483
|
-
/* @__PURE__ */ jsxs(
|
|
484
|
-
"
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
) : null
|
|
508
|
-
]
|
|
509
|
-
}
|
|
510
|
-
)
|
|
490
|
+
/* @__PURE__ */ jsxs("div", { className: clsx(areasViewerClasses.windowContent), children: [
|
|
491
|
+
status === "init" ? (
|
|
492
|
+
/* validar uso */
|
|
493
|
+
/* Todo: Validar agregar nuevo componente de carga. */
|
|
494
|
+
/* @__PURE__ */ jsx(Fragment, { children: "Cargando..." })
|
|
495
|
+
) : null,
|
|
496
|
+
status === "loaded" ? winType === "microfrontend" ? /* @__PURE__ */ jsx(
|
|
497
|
+
MemonizedMicroFrontend,
|
|
498
|
+
{
|
|
499
|
+
moduleId,
|
|
500
|
+
dynamicMFStore,
|
|
501
|
+
windowTools,
|
|
502
|
+
...mfProps
|
|
503
|
+
}
|
|
504
|
+
) : /* @__PURE__ */ jsx(
|
|
505
|
+
Component,
|
|
506
|
+
{
|
|
507
|
+
moduleId,
|
|
508
|
+
dynamicMFStore,
|
|
509
|
+
windowTools,
|
|
510
|
+
component
|
|
511
|
+
}
|
|
512
|
+
) : null
|
|
513
|
+
] })
|
|
511
514
|
] })
|
|
512
515
|
}
|
|
513
516
|
);
|
|
@@ -715,7 +718,7 @@ const WindowModal = (props) => {
|
|
|
715
718
|
const isDesktop = useResponsiveDesktop();
|
|
716
719
|
const DragabblePaperComponent = (_props) => {
|
|
717
720
|
return /* @__PURE__ */ jsx(
|
|
718
|
-
|
|
721
|
+
Draggable,
|
|
719
722
|
{
|
|
720
723
|
handle: ".m4l_draggable_handle",
|
|
721
724
|
bounds: "parent",
|
|
@@ -6,13 +6,13 @@ import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
|
|
|
6
6
|
import { useHostTools, useModuleDictionary, useNetwork, useModuleSkeleton, EmitEvents } from "@m4l/core";
|
|
7
7
|
import { devtools } from "zustand/middleware";
|
|
8
8
|
import { immer } from "zustand/middleware/immer";
|
|
9
|
-
import { u as useAreasViewerUtilityClasses } from "../../components/AreasViewer/index.
|
|
10
|
-
import { u as useAreasAdminUtilityClasses } from "../../components/AreasAdmin/index.
|
|
11
|
-
import { c as createDynamicMFStore } from "../DynamicMFParmsContext/index.
|
|
12
|
-
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.
|
|
13
|
-
import { a as addLayoutItemToBreakPointIfNoExists, b as addLayoutItemToBreakPoints, c as cloneLayouts } from "../../../GridLayout/subcomponents/Responsive/index.
|
|
9
|
+
import { u as useAreasViewerUtilityClasses } from "../../components/AreasViewer/index-DfcpQwSl.js";
|
|
10
|
+
import { u as useAreasAdminUtilityClasses } from "../../components/AreasAdmin/index-Y6S0Q7TN.js";
|
|
11
|
+
import { c as createDynamicMFStore } from "../DynamicMFParmsContext/index-22c6E7vK.js";
|
|
12
|
+
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary-YUsP9beq.js";
|
|
13
|
+
import { a as addLayoutItemToBreakPointIfNoExists, b as addLayoutItemToBreakPoints, c as cloneLayouts } from "../../../GridLayout/subcomponents/Responsive/index-B7v5X9un.js";
|
|
14
14
|
import { debounce, cloneDeep } from "lodash";
|
|
15
|
-
import {
|
|
15
|
+
import { z as isEqualLayouts } from "../../../GridLayout/index-DUfp2sP_.js";
|
|
16
16
|
const PADDING_GRIDLAYOUT = 11;
|
|
17
17
|
const MARGIN_GRIDLAYOUT = 11;
|
|
18
18
|
const DEBOUCED_SAVE_TIME = 500;
|
|
@@ -33,6 +33,8 @@ const DEFAULT_AREA = {
|
|
|
33
33
|
status: "init",
|
|
34
34
|
zPopUpIndex: 0,
|
|
35
35
|
layouts: DEFAULT_LAYOUTS,
|
|
36
|
+
// colapsedItems: {},
|
|
37
|
+
// windowsLayoutIds: [],
|
|
36
38
|
layoutItemsIds: [],
|
|
37
39
|
currentLayoutId: "",
|
|
38
40
|
currentPopUpId: "",
|
|
@@ -41,7 +43,7 @@ const DEFAULT_AREA = {
|
|
|
41
43
|
loadWindows: false
|
|
42
44
|
};
|
|
43
45
|
const addArea = (state) => {
|
|
44
|
-
const areaId = `area_${new Date().getTime()}_${(Math.random() * 1e3).toFixed(0)}`;
|
|
46
|
+
const areaId = `area_${(/* @__PURE__ */ new Date()).getTime()}_${(Math.random() * 1e3).toFixed(0)}`;
|
|
45
47
|
const labelNewArea = state.getLabel(getAreasDictionary(DICCTIONARY.label_new_area));
|
|
46
48
|
let isFree;
|
|
47
49
|
let name = `${labelNewArea} 1`;
|
|
@@ -139,7 +141,9 @@ function getDataFromResponse(data, state, areaId) {
|
|
|
139
141
|
if (windows) {
|
|
140
142
|
for (const key in windows) {
|
|
141
143
|
const element = windows[key];
|
|
142
|
-
if (element && element[
|
|
144
|
+
if (element && // element['layoutProps'] && //Garantizar que venga con los LayoutProps de la venta
|
|
145
|
+
element["mfProps"] && //Garantizar que venga con los mfProps de la venta
|
|
146
|
+
element["emergeType"] === "layout" && element["winType"] === "microfrontend") {
|
|
143
147
|
newWindowsLayoutsIds.push(key);
|
|
144
148
|
const onClose = state.areaActions.closeLayout;
|
|
145
149
|
state.hashWindows[key] = {
|
|
@@ -181,6 +185,7 @@ function getDataFromResponse(data, state, areaId) {
|
|
|
181
185
|
return {
|
|
182
186
|
newBreakPointsLayouts,
|
|
183
187
|
newHashLayoutItems
|
|
188
|
+
// baseResponsiveLayoutItems,
|
|
184
189
|
};
|
|
185
190
|
}
|
|
186
191
|
function getCookiesContainer(data, containerId) {
|
|
@@ -244,6 +249,7 @@ const createAreasStore = (initProps) => {
|
|
|
244
249
|
...DEFAULT_AREA,
|
|
245
250
|
...response.data[i],
|
|
246
251
|
loadWindows: true
|
|
252
|
+
//Se indica que si se carguen las ventas debido a que viene de la API
|
|
247
253
|
};
|
|
248
254
|
state.hashAreas[newArea.id] = newArea;
|
|
249
255
|
state.areasIds.push(newArea.id);
|
|
@@ -338,8 +344,7 @@ const createAreasStore = (initProps) => {
|
|
|
338
344
|
});
|
|
339
345
|
}
|
|
340
346
|
}
|
|
341
|
-
if (get().hashAreas[areaId].maximizedId !== void 0)
|
|
342
|
-
;
|
|
347
|
+
if (get().hashAreas[areaId].maximizedId !== void 0) ;
|
|
343
348
|
},
|
|
344
349
|
setHandlerGetLabel: (newHandler) => {
|
|
345
350
|
set((state) => {
|
|
@@ -355,7 +360,7 @@ const createAreasStore = (initProps) => {
|
|
|
355
360
|
},
|
|
356
361
|
areaActions: {
|
|
357
362
|
addWindow: (newWindowProps) => {
|
|
358
|
-
const windowId = `${get().currentAreaId}_window_${new Date().getTime()}_${(Math.random() * 1e3).toFixed(0)}`;
|
|
363
|
+
const windowId = `${get().currentAreaId}_window_${(/* @__PURE__ */ new Date()).getTime()}_${(Math.random() * 1e3).toFixed(0)}`;
|
|
359
364
|
if (newWindowProps.emergeType === "layout" || newWindowProps.emergeType === "popup") {
|
|
360
365
|
get().areaActions.addLayout(get().currentAreaId, windowId, newWindowProps);
|
|
361
366
|
} else if (newWindowProps.emergeType === "modal") {
|
|
@@ -364,7 +369,7 @@ const createAreasStore = (initProps) => {
|
|
|
364
369
|
},
|
|
365
370
|
addLayout: (areaId, windowId, newWindowProps) => {
|
|
366
371
|
let previousId = windowId;
|
|
367
|
-
const freeMove = newWindowProps.emergeType === "popup"
|
|
372
|
+
const freeMove = newWindowProps.emergeType === "popup";
|
|
368
373
|
const newLayoutItem = {
|
|
369
374
|
...newWindowProps.layoutProps,
|
|
370
375
|
i: windowId,
|
|
@@ -472,6 +477,7 @@ const createAreasStore = (initProps) => {
|
|
|
472
477
|
title: true,
|
|
473
478
|
url_icon: true,
|
|
474
479
|
windowOptions: true,
|
|
480
|
+
// layoutProps: false,
|
|
475
481
|
moduleId: true,
|
|
476
482
|
windowId: true,
|
|
477
483
|
mfProps: true
|
|
@@ -626,8 +632,7 @@ const createAreasStore = (initProps) => {
|
|
|
626
632
|
maximizeLayout: (areaId, layoutId) => {
|
|
627
633
|
set((state) => {
|
|
628
634
|
const area = state.hashAreas[areaId];
|
|
629
|
-
if (!area)
|
|
630
|
-
return;
|
|
635
|
+
if (!area) return;
|
|
631
636
|
area.maximizedId = layoutId;
|
|
632
637
|
const index = area.layouts["xxs"]?.findIndex((li) => li.i === area.maximizedId);
|
|
633
638
|
if (index !== void 0 && index > -1 && layoutId && state.hashWindows[layoutId].emergeType === "popup") {
|
|
@@ -642,8 +647,7 @@ const createAreasStore = (initProps) => {
|
|
|
642
647
|
normalizeLayouts: (areaId) => {
|
|
643
648
|
set((state) => {
|
|
644
649
|
const area = state.hashAreas[areaId];
|
|
645
|
-
if (!area)
|
|
646
|
-
return;
|
|
650
|
+
if (!area) return;
|
|
647
651
|
if (area.maximizedId) {
|
|
648
652
|
const index = area.layouts["xxs"]?.findIndex((li) => li.i === area.maximizedId);
|
|
649
653
|
if (index !== void 0 && index > -1 && state.hashWindows[area.maximizedId].emergeType === "popup") {
|
|
@@ -676,6 +680,7 @@ const createAreasStore = (initProps) => {
|
|
|
676
680
|
parms: { f: [{ n: "container_id", o: "e", o1: areaId }] },
|
|
677
681
|
toastSuccess: false,
|
|
678
682
|
toastError: false
|
|
683
|
+
// isRemote: false
|
|
679
684
|
}).then((response) => {
|
|
680
685
|
const area2 = get().hashAreas[areaId];
|
|
681
686
|
if (!area2) {
|
|
@@ -698,6 +703,158 @@ const createAreasStore = (initProps) => {
|
|
|
698
703
|
});
|
|
699
704
|
});
|
|
700
705
|
}
|
|
706
|
+
// addWindowLayoutPendiente: (
|
|
707
|
+
// areaId: string,
|
|
708
|
+
// windowId: string,
|
|
709
|
+
// newWindow: NewLayoutMagnetizableProps,
|
|
710
|
+
// ) => {
|
|
711
|
+
// const newLayoutItem: WinLayoutItem = {
|
|
712
|
+
// ...newWindow.layoutProps,
|
|
713
|
+
// i: windowId,
|
|
714
|
+
// isDraggable: true,
|
|
715
|
+
// isResizable: true,
|
|
716
|
+
// winType: newWindow.winType,
|
|
717
|
+
// freeMove: false,
|
|
718
|
+
// };
|
|
719
|
+
// set(state => {
|
|
720
|
+
// const area = state.hashAreas[areaId];
|
|
721
|
+
// if (!area) {
|
|
722
|
+
// return;
|
|
723
|
+
// }
|
|
724
|
+
// const dynamicMFStore = createDynamicMFStore({
|
|
725
|
+
// dynamicMFParameters: newWindow.dynamicParams,
|
|
726
|
+
// windowId,
|
|
727
|
+
// });
|
|
728
|
+
// area.windowsLayouts.push(newLayoutItem);
|
|
729
|
+
// area.hashWindowsLayouts[windowId] = {
|
|
730
|
+
// ...newWindow,
|
|
731
|
+
// areaId,
|
|
732
|
+
// windowId,
|
|
733
|
+
// emergeType: 'layout',
|
|
734
|
+
// onClose: (removeLayoutId: string) => {
|
|
735
|
+
// get().areaActions.closeWindowLayout(areaId, removeLayoutId);
|
|
736
|
+
// },
|
|
737
|
+
// ...DEFAULT_WINDOW,
|
|
738
|
+
// dynamicMFStore,
|
|
739
|
+
// };
|
|
740
|
+
// area.baseResponsivelayoutItems.push({ i: windowId });
|
|
741
|
+
// //Agregar la ventana al hash general de todas las ventanas
|
|
742
|
+
// state.hashWindows[windowId] = area.hashWindowsLayouts[windowId];
|
|
743
|
+
// setAddBreakPoints(area, newLayoutItem);
|
|
744
|
+
// });
|
|
745
|
+
// get().areaActions.selectLayout(areaId, windowId);
|
|
746
|
+
// if (
|
|
747
|
+
// get().hashAreas[areaId].viewMode === 'single' ||
|
|
748
|
+
// newWindow?.openType === 'maximized'
|
|
749
|
+
// ) {
|
|
750
|
+
// get().areaActions.maximizeLayout(areaId, windowId);
|
|
751
|
+
// }
|
|
752
|
+
// get().areaActions.saveLayouts(areaId);
|
|
753
|
+
// get().areaActions.bouncedSaveBreakpointsLayouts(areaId);
|
|
754
|
+
// },
|
|
755
|
+
// closeLayout: (areaId: string, removePopUpId: string) => {
|
|
756
|
+
// set(state => {
|
|
757
|
+
// const area = state.hashAreas[areaId];
|
|
758
|
+
// if (!area) {
|
|
759
|
+
// return;
|
|
760
|
+
// }
|
|
761
|
+
// const removeIndex = area.windowsPopUps.findIndex(
|
|
762
|
+
// wpId => wpId === removePopUpId,
|
|
763
|
+
// );
|
|
764
|
+
// if (removeIndex > -1) {
|
|
765
|
+
// area.windowsPopUps.splice(removeIndex, 1);
|
|
766
|
+
// }
|
|
767
|
+
// delete area.hashWindowsPopups[removePopUpId];
|
|
768
|
+
// delete state.hashWindows[removePopUpId];
|
|
769
|
+
// });
|
|
770
|
+
// },
|
|
771
|
+
// selectWindowPopUp: (areaId: string, popUpId: string) => {
|
|
772
|
+
// set(state => {
|
|
773
|
+
// state.hashAreas[areaId].zPopUpIndex++;
|
|
774
|
+
// state.hashAreas[areaId].currentPopUpId = popUpId;
|
|
775
|
+
// state.hashAreas[areaId].zPopUpIndex++;
|
|
776
|
+
// state.hashAreas[areaId].currentPopUpId = popUpId;
|
|
777
|
+
// state.hashAreas[areaId].hashWindowsPopups[popUpId].zIndex =
|
|
778
|
+
// state.hashAreas[areaId].zPopUpIndex;
|
|
779
|
+
// //Seleccionar el layout padre si lo tiene
|
|
780
|
+
// if (
|
|
781
|
+
// state.hashAreas[areaId].hashWindowsPopups[popUpId].parentLayoutId &&
|
|
782
|
+
// state.hashAreas[areaId].hashWindowsPopups[popUpId]
|
|
783
|
+
// .parentLayoutId !== ''
|
|
784
|
+
// ) {
|
|
785
|
+
// state.hashAreas[areaId].currentLayoutId =
|
|
786
|
+
// state.hashAreas[areaId].hashWindowsPopups[
|
|
787
|
+
// popUpId
|
|
788
|
+
// ].parentLayoutId;
|
|
789
|
+
// } else {
|
|
790
|
+
// state.hashAreas[areaId].currentLayoutId = '';
|
|
791
|
+
// }
|
|
792
|
+
// });
|
|
793
|
+
// //Enfocar el componente despues de la renderización.
|
|
794
|
+
// setTimeout(() => {
|
|
795
|
+
// //Asegurar visibilidad si es un reemplazo
|
|
796
|
+
// const container = document.getElementsByClassName(
|
|
797
|
+
// `${areasViewerClasses.areaGridLayoutPanelContainer}-${areaId}`,
|
|
798
|
+
// )[0];
|
|
799
|
+
// const element = document.getElementsByClassName(
|
|
800
|
+
// `${areasViewerClasses.windowPopupRoot}-${popUpId}`,
|
|
801
|
+
// )[0]; //`M4L_WindowPopUp_${popUpId}`,
|
|
802
|
+
// //TODO: Proteeccion de los vectores
|
|
803
|
+
// if (element && container) {
|
|
804
|
+
// const { top, left } = element.getBoundingClientRect();
|
|
805
|
+
// const { top: containerTop, left: containerLeft } =
|
|
806
|
+
// container.getBoundingClientRect();
|
|
807
|
+
// container.scrollTop = container.scrollTop + top - containerTop;
|
|
808
|
+
// container.scrollLeft = container.scrollLeft + left - containerLeft;
|
|
809
|
+
// }
|
|
810
|
+
// }, 100);
|
|
811
|
+
// // windowsPopUps.findIndex(wp => wp.container_id === lookForThisId) > -1) {
|
|
812
|
+
// // setSelectedWindow(newSeletectedId);
|
|
813
|
+
// },
|
|
814
|
+
// resizeMaximixedLayout: (areaId: string) => {
|
|
815
|
+
// set(state => {
|
|
816
|
+
// const area = state.hashAreas[areaId];
|
|
817
|
+
// if (!area) return;
|
|
818
|
+
// if (areaId !== state.currentAreaId) {
|
|
819
|
+
// return;
|
|
820
|
+
// }
|
|
821
|
+
// if (area.viewMode === 'single' && area.currentLayoutId !== '') {
|
|
822
|
+
// console.log('Rezigning', areaId);
|
|
823
|
+
// const layoutsBreakPoints = area.layouts;
|
|
824
|
+
// const container = document.getElementsByClassName(
|
|
825
|
+
// `${areasViewerClasses.areaGridLayout}-${area.id}`,
|
|
826
|
+
// )[0];
|
|
827
|
+
// window.dispatchEvent(new Event('resize'));
|
|
828
|
+
// for (const key in layoutsBreakPoints) {
|
|
829
|
+
// const layoutBreakpoint = layoutsBreakPoints[key];
|
|
830
|
+
// if (layoutBreakpoint) {
|
|
831
|
+
// const clientHeight = container.clientHeight;
|
|
832
|
+
// //Formula que sale de despejar de acuerdo al grid layout en el codigo fuente: heigthpx = colOrRowSize * gridUnits + Math.max(0, gridUnits - 1) * marginPx
|
|
833
|
+
// const heigthUnits =
|
|
834
|
+
// (clientHeight +
|
|
835
|
+
// MARGIN_GRIDLAYOUT -
|
|
836
|
+
// 2 * PADDING_GRIDLAYOUT) /
|
|
837
|
+
// (ROW_HEIGTH_GRIDLAYOUT + MARGIN_GRIDLAYOUT);
|
|
838
|
+
// for (
|
|
839
|
+
// let index = 0;
|
|
840
|
+
// index < layoutBreakpoint.length;
|
|
841
|
+
// index++
|
|
842
|
+
// ) {
|
|
843
|
+
// const l = layoutBreakpoint[index];
|
|
844
|
+
// if (l.i === area.currentLayoutId) {
|
|
845
|
+
// l.h = heigthUnits;
|
|
846
|
+
// l.maxH = heigthUnits;
|
|
847
|
+
// }
|
|
848
|
+
// }
|
|
849
|
+
// }
|
|
850
|
+
// }
|
|
851
|
+
// }
|
|
852
|
+
// //TODO: Corregir cuando arranca en celular,
|
|
853
|
+
// // no se han cargado las ventanas y no se puede encontrar
|
|
854
|
+
// // Adicionalmente no se ha posicionado el panelWindows, y calcula
|
|
855
|
+
// // state.cols = MAXIMIZED_COLS;
|
|
856
|
+
// });
|
|
857
|
+
// },
|
|
701
858
|
},
|
|
702
859
|
windowActions: {
|
|
703
860
|
setActions: (windowId, newActions, version) => {
|
|
@@ -786,6 +943,7 @@ const createAreasStore = (initProps) => {
|
|
|
786
943
|
},
|
|
787
944
|
toastSuccess: false,
|
|
788
945
|
toastError: false
|
|
946
|
+
// isRemote: false
|
|
789
947
|
}).then((response) => {
|
|
790
948
|
set((state) => {
|
|
791
949
|
const hWs = state.hashWindows[windowId];
|
|
@@ -849,6 +1007,11 @@ const createAreasStore = (initProps) => {
|
|
|
849
1007
|
set((state) => {
|
|
850
1008
|
state.hashWindows[windowId].fnQueryClose = fnQueryClose;
|
|
851
1009
|
});
|
|
1010
|
+
},
|
|
1011
|
+
setWindowTitle: (windowId, title) => {
|
|
1012
|
+
set((state) => {
|
|
1013
|
+
state.hashWindows[windowId].title = title;
|
|
1014
|
+
});
|
|
852
1015
|
}
|
|
853
1016
|
},
|
|
854
1017
|
areaAdminActions: {
|
|
@@ -886,6 +1049,7 @@ function AreasProvider(props) {
|
|
|
886
1049
|
isSkeleton,
|
|
887
1050
|
focus: false
|
|
888
1051
|
}
|
|
1052
|
+
// onLoad,
|
|
889
1053
|
});
|
|
890
1054
|
areasStoreRef.current?.getState().areasActions.init();
|
|
891
1055
|
}
|
|
@@ -205,6 +205,7 @@ export interface AreasStateWithActions extends AreasState {
|
|
|
205
205
|
saveModuleCookies: (windowId: string) => void;
|
|
206
206
|
resetModuleCookies: (windowId: string) => void;
|
|
207
207
|
setFnQueryClose: (windowId: string, fnQueryClose: () => void) => void;
|
|
208
|
+
setWindowTitle: (windowId: string, title: string) => void;
|
|
208
209
|
};
|
|
209
210
|
areaAdminActions: {
|
|
210
211
|
setFocus: (value: boolean) => void;
|
|
@@ -57,6 +57,11 @@ export interface WindowToolsMF {
|
|
|
57
57
|
* @param fnQueryClose La función de consulta de cierre de la ventana que se desea establecer.
|
|
58
58
|
*/
|
|
59
59
|
setFnQueryClose: (fnQueryClose: () => void) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Método para setear el titulo de la ventana y que pueda cambiar de idioma
|
|
62
|
+
* @param {string} title Titulo que se visulizará en la ventana del módulo
|
|
63
|
+
*/
|
|
64
|
+
setWindowTitle: (title: string) => void;
|
|
60
65
|
}
|
|
61
66
|
/**
|
|
62
67
|
* Props del componente WindowToolsMFProvider que incluyen las herramientas de ventana proporcionadas por la interfaz WindowToolsMF.
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
2
|
import { useStore } from "zustand";
|
|
3
|
-
import { b as AreasContext } from "../../contexts/AreasContext/index.
|
|
3
|
+
import { b as AreasContext } from "../../contexts/AreasContext/index-spCQnOlk.js";
|
|
4
4
|
function useAreasStore(selector, equalityFn) {
|
|
5
5
|
const context = useContext(AreasContext);
|
|
6
|
-
if (!context)
|
|
7
|
-
throw new Error("useAreasStore context must be use inside AreasContext");
|
|
6
|
+
if (!context) throw new Error("useAreasStore context must be use inside AreasContext");
|
|
8
7
|
return useStore(context, selector, equalityFn);
|
|
9
8
|
}
|
|
10
9
|
export {
|
package/components/areas/hooks/useDynamicMFParameters/{index.9e09e1e3.js → index-DhbcZPs9.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
2
|
import { useStore } from "zustand";
|
|
3
|
-
import { a as DynamicMFParmsContext } from "../../contexts/DynamicMFParmsContext/index.
|
|
3
|
+
import { a as DynamicMFParmsContext } from "../../contexts/DynamicMFParmsContext/index-22c6E7vK.js";
|
|
4
4
|
function useDynamicMFParametersStore(selector, equalityFn) {
|
|
5
5
|
const store = useContext(DynamicMFParmsContext);
|
|
6
6
|
if (!store)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useSetWindowsTitle';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { useEffect } from "react";
|
|
2
|
+
import { shallow } from "zustand/shallow";
|
|
3
|
+
import { useFlagsPresent, CommonFlags, useModuleDictionary } from "@m4l/core";
|
|
4
|
+
import { u as useWindowToolsMF } from "../useWindowToolsMF/index-BECQfhbC.js";
|
|
5
|
+
import { u as useDynamicMFParametersStore } from "../useDynamicMFParameters/index-DhbcZPs9.js";
|
|
6
|
+
const titleLabels = {
|
|
7
|
+
moduleName: "module_name",
|
|
8
|
+
moduleNameAdd: "module_name_add",
|
|
9
|
+
moduleNameEdit: "module_name_edit"
|
|
10
|
+
};
|
|
11
|
+
function useSetWindowsTitle({
|
|
12
|
+
isAddEditModule = false
|
|
13
|
+
} = {}) {
|
|
14
|
+
const isFlagPresent = useFlagsPresent([CommonFlags.FLAG_DICTIONARY_LOADED]);
|
|
15
|
+
const { getLabel } = useModuleDictionary();
|
|
16
|
+
const { setWindowTitle } = useWindowToolsMF();
|
|
17
|
+
const id = useDynamicMFParametersStore(
|
|
18
|
+
// objectId or id puede ser el nombre del parametro del con el Id que se está editando en los modulos add/edit
|
|
19
|
+
(state) => state.dynamicMFParameters?.objectId || state.dynamicMFParameters?.id,
|
|
20
|
+
shallow
|
|
21
|
+
);
|
|
22
|
+
useEffect(() => {
|
|
23
|
+
if (isFlagPresent) {
|
|
24
|
+
const labelKey = isAddEditModule ? id ? titleLabels.moduleNameEdit : titleLabels.moduleNameAdd : titleLabels.moduleName;
|
|
25
|
+
setWindowTitle(getLabel(labelKey));
|
|
26
|
+
}
|
|
27
|
+
}, [getLabel, isFlagPresent]);
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
useSetWindowsTitle as u
|
|
31
|
+
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
|
-
import { a as WindowToolsMFContext } from "../../contexts/WindowToolsMFContext/index.
|
|
2
|
+
import { a as WindowToolsMFContext } from "../../contexts/WindowToolsMFContext/index-DkE30fhm.js";
|
|
3
3
|
const useWindowToolsMF = () => {
|
|
4
4
|
const context = useContext(WindowToolsMFContext);
|
|
5
|
-
if (!context)
|
|
6
|
-
throw new Error("useWindowToolsMF context must be use inside WindowToolsMFContext");
|
|
5
|
+
if (!context) throw new Error("useWindowToolsMF context must be use inside WindowToolsMFContext");
|
|
7
6
|
return context;
|
|
8
7
|
};
|
|
9
8
|
export {
|