@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,14 +1,14 @@
|
|
|
1
|
-
import { styled, alpha, Skeleton, Popover,
|
|
1
|
+
import { styled, alpha, Skeleton, Popover, Stack, Tabs, Dialog, ListItemText, ListItemButton } from "@mui/material";
|
|
2
2
|
import { styled as styled$1, alpha as alpha$1 } from "@mui/material/styles";
|
|
3
3
|
import SimpleBarReact from "simplebar-react";
|
|
4
|
-
import { h as gridLayoutClasses } from "../components/GridLayout/index.
|
|
5
|
-
import { a as ResizableBox } from "../react-resizable.
|
|
6
|
-
import { a as areasAdminClasses } from "../components/areas/components/AreasAdmin/index.
|
|
7
|
-
import { a as areasViewerClasses } from "../components/areas/components/AreasViewer/index.
|
|
8
|
-
import { g as gpsToolsClasses } from "../components/maps/components/GpsTools/index.
|
|
9
|
-
import { R as RHFormProvider } from "../contexts/RHFormContext/index.
|
|
10
|
-
import { S as Stack$1 } from "../components/mui_extended/Stack/index.
|
|
11
|
-
import { I as Image } from "../components/Image/index.
|
|
4
|
+
import { h as gridLayoutClasses } from "../components/GridLayout/index-DUfp2sP_.js";
|
|
5
|
+
import { a as ResizableBox } from "../react-resizable-eBbFl2dX.js";
|
|
6
|
+
import { a as areasAdminClasses } from "../components/areas/components/AreasAdmin/index-Y6S0Q7TN.js";
|
|
7
|
+
import { a as areasViewerClasses } from "../components/areas/components/AreasViewer/index-DfcpQwSl.js";
|
|
8
|
+
import { g as gpsToolsClasses } from "../components/maps/components/GpsTools/index-DPY-BjB8.js";
|
|
9
|
+
import { R as RHFormProvider } from "../contexts/RHFormContext/index-Ct48jRjb.js";
|
|
10
|
+
import { S as Stack$1 } from "../components/mui_extended/Stack/index-C9YEChZB.js";
|
|
11
|
+
import { I as Image } from "../components/Image/index-By5vsRzf.js";
|
|
12
12
|
const RootStyle$1 = styled("div", {
|
|
13
13
|
shouldForwardProp: (props) => props !== "variant"
|
|
14
14
|
})(({ theme, variant }) => ({
|
|
@@ -57,6 +57,7 @@ const AnimatedScrollRoot = styled$1("div")(() => ({
|
|
|
57
57
|
overflowX: "auto",
|
|
58
58
|
overflowY: "hidden",
|
|
59
59
|
transition: "scroll-behavior 0.5s",
|
|
60
|
+
/* Otras propiedades CSS aquí */
|
|
60
61
|
scrollbarWidth: "none",
|
|
61
62
|
msOverflowStyle: "none",
|
|
62
63
|
"&::-webkit-scrollbar": {
|
|
@@ -79,11 +80,15 @@ const DivIcon = styled$1("div", {
|
|
|
79
80
|
...rotationAngle && {
|
|
80
81
|
transform: `rotate(${rotationAngle}deg)`
|
|
81
82
|
}
|
|
83
|
+
/* ...(angleTransition &&
|
|
84
|
+
rotationAngle && {
|
|
85
|
+
transition: `transform ${angleTransition}s ease-in-out`,
|
|
86
|
+
}), */
|
|
82
87
|
}));
|
|
83
88
|
const IconButtonRoot = styled$1("div")(({ theme }) => ({
|
|
84
89
|
...theme.components?.M4LIconButton?.styleOverrides
|
|
85
90
|
}));
|
|
86
|
-
const react_resizable_css
|
|
91
|
+
const react_resizable_css = {};
|
|
87
92
|
const GridLayoutRoot = styled$1("div")`
|
|
88
93
|
overflow: auto;
|
|
89
94
|
position: relative;
|
|
@@ -238,7 +243,7 @@ const GridLayoutRoot = styled$1("div")`
|
|
|
238
243
|
display: none;
|
|
239
244
|
}
|
|
240
245
|
|
|
241
|
-
${react_resizable_css
|
|
246
|
+
${react_resizable_css}
|
|
242
247
|
${(props) => props.theme.components?.M4LGridLayout?.styleOverrides}
|
|
243
248
|
`;
|
|
244
249
|
styled$1("div")(({ theme }) => ({
|
|
@@ -269,6 +274,7 @@ const AvatarRoot = styled("div")(({ theme }) => ({
|
|
|
269
274
|
...theme.components?.M4LAvatar?.styleOverrides
|
|
270
275
|
}));
|
|
271
276
|
const ButtonRoot = styled$1("div")(({ theme }) => ({
|
|
277
|
+
/* Styles overrides of m4l_styles */
|
|
272
278
|
...theme.components?.M4LButton?.styleOverrides
|
|
273
279
|
}));
|
|
274
280
|
styled$1(Skeleton)(({ theme }) => ({
|
|
@@ -291,20 +297,50 @@ const WrapperImageButton = styled$1("div")(({ theme }) => ({
|
|
|
291
297
|
...theme.components?.M4LImageButton?.styleOverrides
|
|
292
298
|
}));
|
|
293
299
|
const LoadingButtonRoot = styled("div")(({ theme }) => ({
|
|
300
|
+
/* Styles overrides of m4l_styles */
|
|
294
301
|
...theme.components?.M4LLoadingButton?.styleOverrides
|
|
295
302
|
}));
|
|
303
|
+
const CONTAINER_QUERY_NAME$1 = "menuActions";
|
|
304
|
+
const menuActionsStyles = {
|
|
305
|
+
root: ({ theme }) => ({
|
|
306
|
+
containerName: CONTAINER_QUERY_NAME$1,
|
|
307
|
+
"& .MuiPaper-root": {
|
|
308
|
+
display: "flex",
|
|
309
|
+
flexDirection: "column",
|
|
310
|
+
background: theme.palette.background.default,
|
|
311
|
+
gap: "8px",
|
|
312
|
+
maxWidth: 300
|
|
313
|
+
}
|
|
314
|
+
}),
|
|
315
|
+
badge: {},
|
|
316
|
+
menuItem: ({ theme, ownerState }) => ({
|
|
317
|
+
display: "flex",
|
|
318
|
+
justifyContent: "center",
|
|
319
|
+
minHeight: "24px",
|
|
320
|
+
minWidth: "24px",
|
|
321
|
+
padding: "0",
|
|
322
|
+
gap: "0px",
|
|
323
|
+
...ownerState.variant === "delete" ? {
|
|
324
|
+
color: theme.palette.state.error.normal
|
|
325
|
+
} : {}
|
|
326
|
+
}),
|
|
327
|
+
menuItemLabel: {},
|
|
328
|
+
menuItemIcon: ({ theme, ownerState }) => ({
|
|
329
|
+
"&.M4LIcon-root": {
|
|
330
|
+
minHeight: "24px",
|
|
331
|
+
minWidth: "24px",
|
|
332
|
+
"& > .M4LIcon-icon": {
|
|
333
|
+
backgroundColor: ownerState.variant === "delete" ? theme.palette.state.error.normal : ""
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}),
|
|
337
|
+
labelEmpty: () => ({
|
|
338
|
+
zIndex: 1
|
|
339
|
+
})
|
|
340
|
+
};
|
|
296
341
|
const PopoverRoot = styled$1(Popover)(({ theme }) => ({
|
|
297
342
|
...theme.components?.M4LPopover?.styleOverrides
|
|
298
343
|
}));
|
|
299
|
-
styled$1(IconButton)(() => ({}));
|
|
300
|
-
const LabelMemuItem = styled$1("div")(({ theme }) => ({
|
|
301
|
-
height: "22px",
|
|
302
|
-
overflow: "hidden",
|
|
303
|
-
wordBreak: "break-all",
|
|
304
|
-
marginLeft: theme.spacing(1.5),
|
|
305
|
-
display: "flex",
|
|
306
|
-
alignItems: "center"
|
|
307
|
-
}));
|
|
308
344
|
const MUISTack = styled(Stack)(({ theme }) => ({
|
|
309
345
|
...theme.components?.M4LStack?.styleOverrides
|
|
310
346
|
}));
|
|
@@ -324,6 +360,7 @@ const SKTTabWrapper = styled$1("div")(({ theme }) => ({
|
|
|
324
360
|
padding: theme.spacing(1.5, 2)
|
|
325
361
|
}));
|
|
326
362
|
const WrapperResizeable = styled$1(ResizableBox)(({ theme }) => ({
|
|
363
|
+
// variante desktop
|
|
327
364
|
"&.react-resizable": {
|
|
328
365
|
position: "relative",
|
|
329
366
|
width: "100%",
|
|
@@ -360,6 +397,7 @@ const WrapperResizeable = styled$1(ResizableBox)(({ theme }) => ({
|
|
|
360
397
|
backgroundRepeat: "no-repeat",
|
|
361
398
|
backgroundOrigin: "content-box",
|
|
362
399
|
boxSizing: "border-box",
|
|
400
|
+
/* background-image: url('data:image/svg+xml',base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+')', */
|
|
363
401
|
backgroundColor: theme.vars.palette.action.active,
|
|
364
402
|
mask: `url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 26.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Capa_1' focusable='false' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 24 24' style='enable-background:new 0 0 24 24;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:none;%7D%0A%3C/style%3E%3Cg id='Grupo_5256'%3E%3C/g%3E%3Cpath class='st0' d='z'/%3E%3Cg%3E%3Cpolygon points='21.9,21.9 15.8,21.9 15.8,19.9 19.9,19.9 19.9,15.9 21.9,15.9 '/%3E%3C/g%3E%3C/svg%3E%0A")`,
|
|
365
403
|
backgroundImage: `url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 26.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Capa_1' focusable='false' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 24 24' style='enable-background:new 0 0 24 24;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:none;%7D%0A%3C/style%3E%3Cg id='Grupo_5256'%3E%3C/g%3E%3Cpath class='st0' d='z'/%3E%3Cg%3E%3Cpolygon points='21.9,21.9 15.8,21.9 15.8,19.9 19.9,19.9 19.9,15.9 21.9,15.9 '/%3E%3C/g%3E%3C/svg%3E%0A")`,
|
|
@@ -381,6 +419,7 @@ const WrapperResizeable = styled$1(ResizableBox)(({ theme }) => ({
|
|
|
381
419
|
"& .M4LImage-img": {
|
|
382
420
|
opacity: "0.5",
|
|
383
421
|
filter: "invert(0.4) hue-rotate(20deg) saturate(1000%)"
|
|
422
|
+
// '-webkitUserDrag': 'none',
|
|
384
423
|
}
|
|
385
424
|
},
|
|
386
425
|
"& .M4LImage-root.custom-handle.custom-handle-nw": {
|
|
@@ -391,6 +430,7 @@ const WrapperResizeable = styled$1(ResizableBox)(({ theme }) => ({
|
|
|
391
430
|
"& .M4LImage-img": {
|
|
392
431
|
opacity: "0.5",
|
|
393
432
|
filter: "invert(0.4) hue-rotate(20deg) saturate(1000%)"
|
|
433
|
+
// '-webkitUserDrag': 'none',
|
|
394
434
|
}
|
|
395
435
|
},
|
|
396
436
|
"& .react-resizable-handle-ne": {
|
|
@@ -492,6 +532,13 @@ const ContainerCheckTypography = styled$1("div")(() => ({
|
|
|
492
532
|
alignItems: "center"
|
|
493
533
|
}));
|
|
494
534
|
const WrapperStandarActions = styled$1("div")(({ theme }) => ({
|
|
535
|
+
// paddingTop: theme.spacing(3),
|
|
536
|
+
// display: 'flex',
|
|
537
|
+
// flexDirection: 'row',
|
|
538
|
+
// justifyContent: 'flex-end',
|
|
539
|
+
// '& > button': {
|
|
540
|
+
// marginLeft: '10px',
|
|
541
|
+
// },
|
|
495
542
|
...theme.components?.M4LCommonActions?.styleOverrides
|
|
496
543
|
}));
|
|
497
544
|
const RHFDateTimeRoot = styled("div")(({ theme }) => ({
|
|
@@ -514,6 +561,7 @@ const WrapperSkeletonRHFTextField = styled$1("div")(({ theme }) => ({
|
|
|
514
561
|
gap: "4px"
|
|
515
562
|
}));
|
|
516
563
|
const RHFTextFieldRoot = styled$1("div")(({ theme }) => ({
|
|
564
|
+
/* Styles overrides of m4l_styles */
|
|
517
565
|
...theme.components?.M4LRHFTextField?.styleOverrides
|
|
518
566
|
}));
|
|
519
567
|
styled$1("div")(({ theme }) => ({
|
|
@@ -692,7 +740,6 @@ styled$1(SimpleBarReact)(({ theme }) => ({
|
|
|
692
740
|
}
|
|
693
741
|
}
|
|
694
742
|
}));
|
|
695
|
-
const react_resizable_css = ".react-resizable {\n position: relative;\n}\n.react-resizable-handle {\n position: absolute;\n width: 20px;\n height: 20px;\n background-repeat: no-repeat;\n background-origin: content-box;\n box-sizing: border-box;\n background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+');\n background-position: bottom right;\n padding: 0 3px 3px 0;\n}\n.react-resizable-handle-sw {\n bottom: 0;\n left: 0;\n cursor: sw-resize;\n transform: rotate(90deg);\n}\n.react-resizable-handle-se {\n bottom: 0;\n right: 0;\n cursor: se-resize;\n}\n.react-resizable-handle-nw {\n top: 0;\n left: 0;\n cursor: nw-resize;\n transform: rotate(180deg);\n}\n.react-resizable-handle-ne {\n top: 0;\n right: 0;\n cursor: ne-resize;\n transform: rotate(270deg);\n}\n.react-resizable-handle-w,\n.react-resizable-handle-e {\n top: 50%;\n margin-top: -10px;\n cursor: ew-resize;\n}\n.react-resizable-handle-w {\n left: 0;\n transform: rotate(135deg);\n}\n.react-resizable-handle-e {\n right: 0;\n transform: rotate(315deg);\n}\n.react-resizable-handle-n,\n.react-resizable-handle-s {\n left: 50%;\n margin-left: -10px;\n cursor: ns-resize;\n}\n.react-resizable-handle-n {\n top: 0;\n transform: rotate(225deg);\n}\n.react-resizable-handle-s {\n bottom: 0;\n transform: rotate(45deg);\n}";
|
|
696
743
|
const AreasViewerRoot = styled$1("div")`
|
|
697
744
|
/* display: flex; */
|
|
698
745
|
width: 100%;
|
|
@@ -809,8 +856,6 @@ const AreasViewerRoot = styled$1("div")`
|
|
|
809
856
|
padding: 16px;
|
|
810
857
|
}
|
|
811
858
|
|
|
812
|
-
${react_resizable_css}
|
|
813
|
-
|
|
814
859
|
${(props) => props.theme.components?.M4LAreasViewer?.styleOverrides}
|
|
815
860
|
`;
|
|
816
861
|
const LinearProgressIndeterminateRoot = styled("div")(({ theme }) => ({
|
|
@@ -907,19 +952,24 @@ const toastStyles = {
|
|
|
907
952
|
"--toastify-z-index": "9999",
|
|
908
953
|
"--toastify-text-color-light": "#757575",
|
|
909
954
|
"--toastify-text-color-dark": "#fff",
|
|
955
|
+
//Used only for colored theme
|
|
910
956
|
"--toastify-text-color-info": "#fff",
|
|
911
957
|
"--toastify-text-color-success": "#fff",
|
|
912
958
|
"--toastify-text-color-warning": "#fff",
|
|
913
959
|
"--toastify-text-color-error": "#fff",
|
|
914
960
|
"--toastify-spinner-color": "#616161",
|
|
915
961
|
"--toastify-spinner-color-empty-area": "#e0e0e0",
|
|
962
|
+
// Used when no type is provided
|
|
963
|
+
// toast("**hello**")
|
|
916
964
|
"--toastify-color-progress-light": "var(--toastify-color-info)",
|
|
965
|
+
// Used when no type is provided
|
|
917
966
|
"--toastify-color-progress-dark": "var(--toastify-color-info)",
|
|
918
967
|
"--toastify-color-progress-info": "var(--toastify-color-info)",
|
|
919
968
|
"--toastify-color-progress-success": "var(--toastify-color-success)",
|
|
920
969
|
"--toastify-color-progress-warning": "var(--toastify-color-warning)",
|
|
921
970
|
"--toastify-color-progress-error": "var(--toastify-color-error)",
|
|
922
971
|
"--toastify-toast-bd-radius": "8px",
|
|
972
|
+
// used to control the opacity of the progress trail
|
|
923
973
|
"--toastify-color-progress-bgo": ".2",
|
|
924
974
|
...ownerState?.fixed === false ? {
|
|
925
975
|
top: 0,
|
|
@@ -948,6 +998,7 @@ const toastStyles = {
|
|
|
948
998
|
padding: "0"
|
|
949
999
|
}
|
|
950
1000
|
},
|
|
1001
|
+
/** Used to define the position of the ToastContainer **/
|
|
951
1002
|
".Toastify__toast-container--top-left": {},
|
|
952
1003
|
".Toastify__toast-container--top-center": {},
|
|
953
1004
|
".Toastify__toast-container--top-right": {},
|
|
@@ -957,6 +1008,7 @@ const toastStyles = {
|
|
|
957
1008
|
"& .Toastify__toast--stacked[data-collapsed=true]:not(:last-child) > *": {
|
|
958
1009
|
opacity: 0.2
|
|
959
1010
|
},
|
|
1011
|
+
/** Classes for the displayed toast **/
|
|
960
1012
|
"& .Toastify__toast": {
|
|
961
1013
|
minHeight: "min-content",
|
|
962
1014
|
margin: "0",
|
|
@@ -974,7 +1026,9 @@ const toastStyles = {
|
|
|
974
1026
|
margin: "0px",
|
|
975
1027
|
padding: "0px"
|
|
976
1028
|
},
|
|
1029
|
+
/** Used to position the icon **/
|
|
977
1030
|
"& .Toastify__toast-icon": {},
|
|
1031
|
+
/** handle the notification color and the text color based on the theme **/
|
|
978
1032
|
"& .Toastify__toast-theme--dark": {},
|
|
979
1033
|
"& .Toastify__toast-theme--light": {},
|
|
980
1034
|
"& .Toastify__toast-theme--colored.Toastify__toast--default": {},
|
|
@@ -1084,9 +1138,14 @@ styled$1("div")(({ theme }) => ({
|
|
|
1084
1138
|
padding: theme.spacing(3)
|
|
1085
1139
|
}));
|
|
1086
1140
|
const WrapperWindowModal = styled$1(Dialog)(({ theme }) => ({
|
|
1141
|
+
// height: '100%',
|
|
1087
1142
|
hola: 1,
|
|
1088
1143
|
backgroundColor: theme.vars.palette.background.paper,
|
|
1089
|
-
"& .MuiDialog-container": {
|
|
1144
|
+
"& .MuiDialog-container": {
|
|
1145
|
+
// justifyContent: 'start',
|
|
1146
|
+
// alignItems: 'start',
|
|
1147
|
+
},
|
|
1148
|
+
// position: 'absolute',
|
|
1090
1149
|
"&.m4l_selected": {
|
|
1091
1150
|
borderTop: "1px solid green"
|
|
1092
1151
|
},
|
|
@@ -1169,6 +1228,8 @@ const ContainerProgress = styled$1("div")(({ theme }) => ({
|
|
|
1169
1228
|
const ContainerMenuItems = styled$1("div")(() => ({
|
|
1170
1229
|
display: "flex",
|
|
1171
1230
|
flexDirection: "column"
|
|
1231
|
+
// marginBottom: theme.spacing(1),
|
|
1232
|
+
// paddingBottom: theme.spacing(1),
|
|
1172
1233
|
}));
|
|
1173
1234
|
const ContainerImage = styled$1("div")(() => ({
|
|
1174
1235
|
display: "flex",
|
|
@@ -1212,6 +1273,7 @@ const popupsViewerStyles = {
|
|
|
1212
1273
|
},
|
|
1213
1274
|
"& .fade-exit-active": {
|
|
1214
1275
|
opacity: 0
|
|
1276
|
+
//transition: 'opacity 10ms',
|
|
1215
1277
|
},
|
|
1216
1278
|
...ownerState?.status === "hidden" ? {
|
|
1217
1279
|
visibility: "hidden",
|
|
@@ -1352,6 +1414,7 @@ const HeaderContainer = styled$1("div")(({ theme }) => ({
|
|
|
1352
1414
|
display: "flex",
|
|
1353
1415
|
flexDirection: "row",
|
|
1354
1416
|
alignItems: "center",
|
|
1417
|
+
// height: theme.spacing(5),
|
|
1355
1418
|
borderBottom: `1px solid ${theme.vars.palette.divider}`,
|
|
1356
1419
|
paddingBottom: theme.spacing(3),
|
|
1357
1420
|
marginBottom: theme.spacing(2),
|
|
@@ -1366,6 +1429,8 @@ const IconTitleContainer = styled$1("div")(({ theme }) => ({
|
|
|
1366
1429
|
...theme.colorSchemes.finalTheme.typography.subtitle1
|
|
1367
1430
|
}));
|
|
1368
1431
|
const IconHeader = styled$1("div")(({ theme }) => ({
|
|
1432
|
+
// width: "24px",
|
|
1433
|
+
// height: "24px",
|
|
1369
1434
|
display: "flex",
|
|
1370
1435
|
alignItems: "center",
|
|
1371
1436
|
justifyContent: "center",
|
|
@@ -1602,7 +1667,7 @@ export {
|
|
|
1602
1667
|
LoadingButtonRoot as aC,
|
|
1603
1668
|
CheckBoxRoot as aD,
|
|
1604
1669
|
IconButtonRoot as aE,
|
|
1605
|
-
|
|
1670
|
+
menuActionsStyles as aF,
|
|
1606
1671
|
PagerRoot as aG,
|
|
1607
1672
|
PopoverRoot as aH,
|
|
1608
1673
|
MUISTack as aI,
|
|
@@ -18,8 +18,7 @@ shims.isFunction = isFunction;
|
|
|
18
18
|
shims.isNum = isNum;
|
|
19
19
|
function findInArray(array, callback) {
|
|
20
20
|
for (let i = 0, length = array.length; i < length; i++) {
|
|
21
|
-
if (callback.apply(callback, [array[i], i, array]))
|
|
22
|
-
return array[i];
|
|
21
|
+
if (callback.apply(callback, [array[i], i, array])) return array[i];
|
|
23
22
|
}
|
|
24
23
|
}
|
|
25
24
|
function isFunction(func) {
|
|
@@ -48,16 +47,12 @@ const prefixes = ["Moz", "Webkit", "O", "ms"];
|
|
|
48
47
|
function getPrefix() {
|
|
49
48
|
var _window$document;
|
|
50
49
|
let prop = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "transform";
|
|
51
|
-
if (typeof window === "undefined")
|
|
52
|
-
return "";
|
|
50
|
+
if (typeof window === "undefined") return "";
|
|
53
51
|
const style = (_window$document = window.document) === null || _window$document === void 0 || (_window$document = _window$document.documentElement) === null || _window$document === void 0 ? void 0 : _window$document.style;
|
|
54
|
-
if (!style)
|
|
55
|
-
|
|
56
|
-
if (prop in style)
|
|
57
|
-
return "";
|
|
52
|
+
if (!style) return "";
|
|
53
|
+
if (prop in style) return "";
|
|
58
54
|
for (let i = 0; i < prefixes.length; i++) {
|
|
59
|
-
if (browserPrefixToKey(prop, prefixes[i]) in style)
|
|
60
|
-
return prefixes[i];
|
|
55
|
+
if (browserPrefixToKey(prop, prefixes[i]) in style) return prefixes[i];
|
|
61
56
|
}
|
|
62
57
|
return "";
|
|
63
58
|
}
|
|
@@ -107,8 +102,7 @@ domFns.removeUserSelectStyles = removeUserSelectStyles;
|
|
|
107
102
|
var _shims$1 = shims;
|
|
108
103
|
var _getPrefix = _interopRequireWildcard(getPrefix$1);
|
|
109
104
|
function _getRequireWildcardCache(nodeInterop) {
|
|
110
|
-
if (typeof WeakMap !== "function")
|
|
111
|
-
return null;
|
|
105
|
+
if (typeof WeakMap !== "function") return null;
|
|
112
106
|
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
113
107
|
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
114
108
|
return (_getRequireWildcardCache = function(nodeInterop2) {
|
|
@@ -116,7 +110,7 @@ function _getRequireWildcardCache(nodeInterop) {
|
|
|
116
110
|
})(nodeInterop);
|
|
117
111
|
}
|
|
118
112
|
function _interopRequireWildcard(obj, nodeInterop) {
|
|
119
|
-
if (
|
|
113
|
+
if (obj && obj.__esModule) {
|
|
120
114
|
return obj;
|
|
121
115
|
}
|
|
122
116
|
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
@@ -151,24 +145,20 @@ function matchesSelector(el, selector) {
|
|
|
151
145
|
return (0, _shims$1.isFunction)(el[method]);
|
|
152
146
|
});
|
|
153
147
|
}
|
|
154
|
-
if (!(0, _shims$1.isFunction)(el[matchesSelectorFunc]))
|
|
155
|
-
return false;
|
|
148
|
+
if (!(0, _shims$1.isFunction)(el[matchesSelectorFunc])) return false;
|
|
156
149
|
return el[matchesSelectorFunc](selector);
|
|
157
150
|
}
|
|
158
151
|
function matchesSelectorAndParentsTo(el, selector, baseNode) {
|
|
159
152
|
let node = el;
|
|
160
153
|
do {
|
|
161
|
-
if (matchesSelector(node, selector))
|
|
162
|
-
|
|
163
|
-
if (node === baseNode)
|
|
164
|
-
return false;
|
|
154
|
+
if (matchesSelector(node, selector)) return true;
|
|
155
|
+
if (node === baseNode) return false;
|
|
165
156
|
node = node.parentNode;
|
|
166
157
|
} while (node);
|
|
167
158
|
return false;
|
|
168
159
|
}
|
|
169
160
|
function addEvent(el, event, handler, inputOptions) {
|
|
170
|
-
if (!el)
|
|
171
|
-
return;
|
|
161
|
+
if (!el) return;
|
|
172
162
|
const options = {
|
|
173
163
|
capture: true,
|
|
174
164
|
...inputOptions
|
|
@@ -182,8 +172,7 @@ function addEvent(el, event, handler, inputOptions) {
|
|
|
182
172
|
}
|
|
183
173
|
}
|
|
184
174
|
function removeEvent(el, event, handler, inputOptions) {
|
|
185
|
-
if (!el)
|
|
186
|
-
return;
|
|
175
|
+
if (!el) return;
|
|
187
176
|
const options = {
|
|
188
177
|
capture: true,
|
|
189
178
|
...inputOptions
|
|
@@ -264,14 +253,11 @@ function getTouch(e, identifier) {
|
|
|
264
253
|
return e.targetTouches && (0, _shims$1.findInArray)(e.targetTouches, (t) => identifier === t.identifier) || e.changedTouches && (0, _shims$1.findInArray)(e.changedTouches, (t) => identifier === t.identifier);
|
|
265
254
|
}
|
|
266
255
|
function getTouchIdentifier(e) {
|
|
267
|
-
if (e.targetTouches && e.targetTouches[0])
|
|
268
|
-
|
|
269
|
-
if (e.changedTouches && e.changedTouches[0])
|
|
270
|
-
return e.changedTouches[0].identifier;
|
|
256
|
+
if (e.targetTouches && e.targetTouches[0]) return e.targetTouches[0].identifier;
|
|
257
|
+
if (e.changedTouches && e.changedTouches[0]) return e.changedTouches[0].identifier;
|
|
271
258
|
}
|
|
272
259
|
function addUserSelectStyles(doc) {
|
|
273
|
-
if (!doc)
|
|
274
|
-
return;
|
|
260
|
+
if (!doc) return;
|
|
275
261
|
let styleEl = doc.getElementById("react-draggable-style-el");
|
|
276
262
|
if (!styleEl) {
|
|
277
263
|
styleEl = doc.createElement("style");
|
|
@@ -281,15 +267,12 @@ function addUserSelectStyles(doc) {
|
|
|
281
267
|
styleEl.innerHTML += ".react-draggable-transparent-selection *::selection {all: inherit;}\n";
|
|
282
268
|
doc.getElementsByTagName("head")[0].appendChild(styleEl);
|
|
283
269
|
}
|
|
284
|
-
if (doc.body)
|
|
285
|
-
addClassName(doc.body, "react-draggable-transparent-selection");
|
|
270
|
+
if (doc.body) addClassName(doc.body, "react-draggable-transparent-selection");
|
|
286
271
|
}
|
|
287
272
|
function removeUserSelectStyles(doc) {
|
|
288
|
-
if (!doc)
|
|
289
|
-
return;
|
|
273
|
+
if (!doc) return;
|
|
290
274
|
try {
|
|
291
|
-
if (doc.body)
|
|
292
|
-
removeClassName(doc.body, "react-draggable-transparent-selection");
|
|
275
|
+
if (doc.body) removeClassName(doc.body, "react-draggable-transparent-selection");
|
|
293
276
|
if (doc.selection) {
|
|
294
277
|
doc.selection.empty();
|
|
295
278
|
} else {
|
|
@@ -331,8 +314,7 @@ positionFns.snapToGrid = snapToGrid;
|
|
|
331
314
|
var _shims = shims;
|
|
332
315
|
var _domFns = domFns;
|
|
333
316
|
function getBoundPosition(draggable, x, y) {
|
|
334
|
-
if (!draggable.props.bounds)
|
|
335
|
-
return [x, y];
|
|
317
|
+
if (!draggable.props.bounds) return [x, y];
|
|
336
318
|
let {
|
|
337
319
|
bounds
|
|
338
320
|
} = draggable.props;
|
|
@@ -362,14 +344,10 @@ function getBoundPosition(draggable, x, y) {
|
|
|
362
344
|
bottom: (0, _domFns.innerHeight)(boundNodeEl) - (0, _domFns.outerHeight)(node) - node.offsetTop + (0, _shims.int)(boundNodeStyle.paddingBottom) - (0, _shims.int)(nodeStyle.marginBottom)
|
|
363
345
|
};
|
|
364
346
|
}
|
|
365
|
-
if ((0, _shims.isNum)(bounds.right))
|
|
366
|
-
|
|
367
|
-
if ((0, _shims.isNum)(bounds.
|
|
368
|
-
|
|
369
|
-
if ((0, _shims.isNum)(bounds.left))
|
|
370
|
-
x = Math.max(x, bounds.left);
|
|
371
|
-
if ((0, _shims.isNum)(bounds.top))
|
|
372
|
-
y = Math.max(y, bounds.top);
|
|
347
|
+
if ((0, _shims.isNum)(bounds.right)) x = Math.min(x, bounds.right);
|
|
348
|
+
if ((0, _shims.isNum)(bounds.bottom)) y = Math.min(y, bounds.bottom);
|
|
349
|
+
if ((0, _shims.isNum)(bounds.left)) x = Math.max(x, bounds.left);
|
|
350
|
+
if ((0, _shims.isNum)(bounds.top)) y = Math.max(y, bounds.top);
|
|
373
351
|
return [x, y];
|
|
374
352
|
}
|
|
375
353
|
function snapToGrid(grid, pendingX, pendingY) {
|
|
@@ -385,8 +363,7 @@ function canDragY(draggable) {
|
|
|
385
363
|
}
|
|
386
364
|
function getControlPosition(e, touchIdentifier, draggableCore) {
|
|
387
365
|
const touchObj = typeof touchIdentifier === "number" ? (0, _domFns.getTouch)(e, touchIdentifier) : null;
|
|
388
|
-
if (typeof touchIdentifier === "number" && !touchObj)
|
|
389
|
-
return null;
|
|
366
|
+
if (typeof touchIdentifier === "number" && !touchObj) return null;
|
|
390
367
|
const node = findDOMNode(draggableCore);
|
|
391
368
|
const offsetParent = draggableCore.props.offsetParent || node.offsetParent || node.ownerDocument.body;
|
|
392
369
|
return (0, _domFns.offsetXYFromParent)(touchObj || e, offsetParent, draggableCore.props.scale);
|
|
@@ -492,13 +469,11 @@ function _toPropertyKey(arg) {
|
|
|
492
469
|
return typeof key === "symbol" ? key : String(key);
|
|
493
470
|
}
|
|
494
471
|
function _toPrimitive(input, hint) {
|
|
495
|
-
if (typeof input !== "object" || input === null)
|
|
496
|
-
return input;
|
|
472
|
+
if (typeof input !== "object" || input === null) return input;
|
|
497
473
|
var prim = input[Symbol.toPrimitive];
|
|
498
474
|
if (prim !== void 0) {
|
|
499
475
|
var res = prim.call(input, hint || "default");
|
|
500
|
-
if (typeof res !== "object")
|
|
501
|
-
return res;
|
|
476
|
+
if (typeof res !== "object") return res;
|
|
502
477
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
503
478
|
}
|
|
504
479
|
return (hint === "string" ? String : Number)(input);
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useState, useEffect } from "react";
|
|
3
|
-
import { generateUtilityClasses, generateUtilityClass, Stack, MenuItem } from "@mui/material";
|
|
4
|
-
import { I as Image } from "../Image/index.ae542f70.js";
|
|
5
|
-
import { useLocales } from "@m4l/graphics";
|
|
6
|
-
import { L as LanguagePopoverRoot, h as ContainerMenuItems, i as ContainerProgress, j as ContainerImage, k as LabelItem } from "../../styles/index.db9e7ddb.js";
|
|
7
|
-
import { I as ImageButton } from "../mui_extended/Button/index.3d14e3e9.js";
|
|
8
|
-
import { useEnvironment, useNetwork } from "@m4l/core";
|
|
9
|
-
import { unstable_composeClasses } from "@mui/base";
|
|
10
|
-
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
11
|
-
import { C as CircularProgress } from "../mui_extended/CircularProgress/index.967e70b7.js";
|
|
12
|
-
import { P as Popover } from "../mui_extended/Popover/index.a7da93f1.js";
|
|
13
|
-
const componentName = "M4LanguagePopover";
|
|
14
|
-
generateUtilityClasses(
|
|
15
|
-
componentName,
|
|
16
|
-
[
|
|
17
|
-
"root",
|
|
18
|
-
"containerItems",
|
|
19
|
-
"containerProgress",
|
|
20
|
-
"labelItem",
|
|
21
|
-
"imageButton"
|
|
22
|
-
]
|
|
23
|
-
);
|
|
24
|
-
function getM4LanguagePopoverClassesUtilityClass(slot) {
|
|
25
|
-
return generateUtilityClass(componentName, slot);
|
|
26
|
-
}
|
|
27
|
-
const useUtilityClasses = () => {
|
|
28
|
-
const slots = {
|
|
29
|
-
root: ["root"],
|
|
30
|
-
containerItems: ["containerItems"],
|
|
31
|
-
containerProgress: ["containerProgress"],
|
|
32
|
-
labelItem: ["labelItem"]
|
|
33
|
-
};
|
|
34
|
-
const composedClasses = unstable_composeClasses(slots, getM4LanguagePopoverClassesUtilityClass, {});
|
|
35
|
-
return {
|
|
36
|
-
...composedClasses
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
const LANGUAGEPOPOVER_PREFIX = "LanguagePopover";
|
|
40
|
-
const getNameDataTestId = (KEY) => {
|
|
41
|
-
return `${LANGUAGEPOPOVER_PREFIX}-${KEY}`;
|
|
42
|
-
};
|
|
43
|
-
function LanguagePopover(props) {
|
|
44
|
-
const { testingProps } = props;
|
|
45
|
-
const { currentLocale, onChangeLocale } = useLocales();
|
|
46
|
-
const { domain_token } = useEnvironment();
|
|
47
|
-
const { networkOperation } = useNetwork();
|
|
48
|
-
const [open, setOpen] = useState(testingProps?.open || null);
|
|
49
|
-
const [loading, setLoading] = useState(testingProps?.loading || false);
|
|
50
|
-
const [allLocales, setAllLocales] = useState(
|
|
51
|
-
testingProps?.allLocales || []
|
|
52
|
-
);
|
|
53
|
-
const handleOpen = (event) => {
|
|
54
|
-
setOpen(event.currentTarget);
|
|
55
|
-
};
|
|
56
|
-
const handleClose = () => {
|
|
57
|
-
setOpen(null);
|
|
58
|
-
};
|
|
59
|
-
useEffect(() => {
|
|
60
|
-
let mounted = true;
|
|
61
|
-
if (open === null || loading || allLocales.length > 0) {
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
setLoading(true);
|
|
65
|
-
networkOperation({
|
|
66
|
-
method: "GET",
|
|
67
|
-
endPoint: `na/locales`,
|
|
68
|
-
parms: { domain_token }
|
|
69
|
-
}).then((response) => {
|
|
70
|
-
if (mounted) {
|
|
71
|
-
!testingProps && setAllLocales(response.data);
|
|
72
|
-
}
|
|
73
|
-
}).finally(() => {
|
|
74
|
-
setLoading(false);
|
|
75
|
-
});
|
|
76
|
-
return function cleanUp() {
|
|
77
|
-
mounted = false;
|
|
78
|
-
};
|
|
79
|
-
}, [open]);
|
|
80
|
-
const classes = useUtilityClasses();
|
|
81
|
-
return /* @__PURE__ */ jsxs(
|
|
82
|
-
LanguagePopoverRoot,
|
|
83
|
-
{
|
|
84
|
-
className: classes.root,
|
|
85
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId("root") } : {},
|
|
86
|
-
children: [
|
|
87
|
-
/* @__PURE__ */ jsx(
|
|
88
|
-
ImageButton,
|
|
89
|
-
{
|
|
90
|
-
className: classes.imageButton,
|
|
91
|
-
onClick: handleOpen,
|
|
92
|
-
sx: {
|
|
93
|
-
width: 28,
|
|
94
|
-
height: 28,
|
|
95
|
-
...open && { bgcolor: "action.selected" }
|
|
96
|
-
},
|
|
97
|
-
src: currentLocale?.url_icon || "",
|
|
98
|
-
alt: currentLocale?.name,
|
|
99
|
-
width: "24px",
|
|
100
|
-
height: "24px",
|
|
101
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId("imageButton") } : {}
|
|
102
|
-
}
|
|
103
|
-
),
|
|
104
|
-
/* @__PURE__ */ jsx(
|
|
105
|
-
Popover,
|
|
106
|
-
{
|
|
107
|
-
arrowType: "top-right",
|
|
108
|
-
open: Boolean(open),
|
|
109
|
-
anchorEl: open,
|
|
110
|
-
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
111
|
-
onClose: handleClose,
|
|
112
|
-
sx: {
|
|
113
|
-
mt: 1.5,
|
|
114
|
-
ml: 0.75,
|
|
115
|
-
width: 180,
|
|
116
|
-
rowGap: "100px",
|
|
117
|
-
"& .MuiMenuItem-root": { px: 1, typography: "body2", borderRadius: 0.75 }
|
|
118
|
-
},
|
|
119
|
-
children: /* @__PURE__ */ jsxs(
|
|
120
|
-
ContainerMenuItems,
|
|
121
|
-
{
|
|
122
|
-
className: classes.containerItems,
|
|
123
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId("containerItems") } : {},
|
|
124
|
-
children: [
|
|
125
|
-
allLocales.length === 0 && /* @__PURE__ */ jsx(
|
|
126
|
-
ContainerProgress,
|
|
127
|
-
{
|
|
128
|
-
className: classes.containerProgress,
|
|
129
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId("containerProgress") } : {},
|
|
130
|
-
children: /* @__PURE__ */ jsx(CircularProgress, { size: "20px" })
|
|
131
|
-
}
|
|
132
|
-
),
|
|
133
|
-
allLocales.length > 0 && /* @__PURE__ */ jsx(Stack, { spacing: 0.75, children: allLocales.map((option) => /* @__PURE__ */ jsxs(
|
|
134
|
-
MenuItem,
|
|
135
|
-
{
|
|
136
|
-
selected: option.lang === currentLocale?.lang && option?.script === currentLocale?.script && option?.region === currentLocale?.region,
|
|
137
|
-
onClick: () => {
|
|
138
|
-
onChangeLocale(option);
|
|
139
|
-
handleClose();
|
|
140
|
-
},
|
|
141
|
-
children: [
|
|
142
|
-
/* @__PURE__ */ jsx(ContainerImage, { children: /* @__PURE__ */ jsx(Image, { alt: option.name, src: option.url_icon, ratio: "1:1" }) }),
|
|
143
|
-
/* @__PURE__ */ jsx(
|
|
144
|
-
LabelItem,
|
|
145
|
-
{
|
|
146
|
-
className: classes.labelItem,
|
|
147
|
-
...process.env.NODE_ENV !== "production" ? {
|
|
148
|
-
[TEST_PROP_ID]: getNameDataTestId("labelItem")
|
|
149
|
-
} : {},
|
|
150
|
-
children: option.name
|
|
151
|
-
}
|
|
152
|
-
)
|
|
153
|
-
]
|
|
154
|
-
},
|
|
155
|
-
option.lang || option.script || option.region
|
|
156
|
-
)) })
|
|
157
|
-
]
|
|
158
|
-
}
|
|
159
|
-
)
|
|
160
|
-
}
|
|
161
|
-
)
|
|
162
|
-
]
|
|
163
|
-
}
|
|
164
|
-
);
|
|
165
|
-
}
|
|
166
|
-
export {
|
|
167
|
-
LanguagePopover as L
|
|
168
|
-
};
|