@m4l/components 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/export.d.ts +266 -266
- package/@types/types.d.ts +47 -47
- package/components/AccountPopover/{index.af5aae0e.js → index-BJWLsxYq.js} +7 -5
- package/components/AppBar/{index.b8f22046.js → index-BdA-qQyV.js} +7 -5
- package/components/BaseModule/{index.f7a04fe7.js → index-Bl0GPyrz.js} +1 -1
- package/components/CommonActions/components/ActionCancel/{index.e67885bc.js → index-BlaMdPmp.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.92988013.js → index-C5ZI4ZPP.js} +5 -5
- package/components/CommonActions/components/ActionFormIntro/{index.f8867ae9.js → index-BbVMcr05.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.e58eb0c4.js → index-DGooFqVu.js} +3 -3
- package/components/CommonActions/components/Actions/{index.f674be30.js → index-B_vOmNZT.js} +5 -3
- package/components/DataGrid/assets/icons/datagrid.svg +4 -4
- package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.89a59c52.js → index-0wqcK8ML.js} +1 -1
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.d619d1db.js → index-Ozdfjlt2.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-D-98uXfl.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-B5SJg0Qq.js} +2 -2
- package/components/DataGrid/{index.b37d6cab.js → index-7vJWvQtu.js} +33 -26
- package/components/DataGrid/subcomponents/Actions/{index.c3b1c1e2.js → index-C-p5O-cU.js} +22 -26
- package/components/DataGrid/subcomponents/editors/TextEditor/{index.3f0d9e28.js → index-BIFm8akr.js} +4 -0
- package/components/DragResizeWindow/DragResizeWindow.d.ts +1 -1
- package/components/DragResizeWindow/{index.a4bcaab8.js → index-D2jLYExo.js} +25 -6
- package/components/DynamicFilter/{dictionary.94a74eb3.js → dictionary-DbRGLe8j.js} +2 -2
- package/components/DynamicFilter/{index.b07b567a.js → index-D2CmPq_i.js} +7 -8
- package/components/DynamicFilter/slots/{dynamicFilterSlots.dd5824d5.js → dynamicFilterSlots-BSCWv_Rw.js} +8 -8
- package/components/DynamicFilter/store/{index.49d1b77f.js → index-BcaPHLdk.js} +3 -3
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/{index.9e8fcc8c.js → index-BZAxYAp1.js} +3 -3
- package/components/DynamicFilter/subcomponents/AppliedFilters/{index.3e52c5d7.js → index-DIFUGgys.js} +4 -4
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/{index.68d855e9.js → index-D5BGKd5r.js} +8 -8
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/{index.11f588b4.js → index-DFHDm1e4.js} +4 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/{index.77555163.js → index-Hn2Rzovd.js} +10 -9
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/{index.1c8454db.js → index-B5F1Ji7m.js} +5 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/{index.cb31333a.js → index-BQlxIk_N.js} +6 -6
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/{index.0ae3d439.js → index-DF7EGeSx.js} +5 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/{index.5a0c7b12.js → index-B6WQUIl7.js} +5 -5
- package/components/DynamicFilter/subcomponents/FilterActions/{index.50c175e7.js → index-D5edNMdo.js} +3 -3
- package/components/DynamicFilter/subcomponents/InputFilter/{index.82d4ac5a.js → index-bbdBrHj0.js} +33 -13
- package/components/DynamicFilter/subcomponents/PopoverFilter/{index.fa62a6c3.js → index-CD3aGB5S.js} +7 -6
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/{index.e5e439f1.js → index-MiYNpAu0.js} +2 -2
- package/components/FieldLabel/{index.9a979def.js → index-BpW2AGJx.js} +6 -4
- package/components/GridLayout/{index.dd291886.js → index-HK_hTGnZ.js} +51 -72
- package/components/GridLayout/subcomponents/Griditem/{index.10278655.js → index-izY8S7ns.js} +11 -13
- package/components/GridLayout/subcomponents/Responsive/{index.24857a52.js → index-bpKDnaCd.js} +7 -7
- package/components/GridLayout/subcomponents/SizeProvider/{index.2f762118.js → index-OWN-RzRq.js} +15 -9
- package/components/HelperText/{index.6818980e.js → index-COWCXeJp.js} +10 -3
- package/components/Icon/{index.c06685f4.js → index-CedboS6y.js} +9 -4
- package/components/Image/{index.ae542f70.js → index-B7FhR9uF.js} +40 -31
- package/components/LanguagePopover/index-4kPWKmxk.js +179 -0
- package/components/LinearProgressIndeterminate/{index.ca78fd37.js → index-Do7CKcow.js} +5 -3
- package/components/Loadable/{index.e83cdb4e.js → index-BMbi9ISF.js} +1 -1
- package/components/LoadingError/{index.765ff885.js → index-CNh7b1ew.js} +8 -6
- package/components/MFIsolationApp/{index.677d9e93.js → index-DJ-MUHoQ.js} +5 -5
- package/components/MFLoader/{index.6af7729c.js → index-Bcg9TXnJ.js} +36 -15
- package/components/ModalDialog/{index.a57ee020.js → index-BuGRs967.js} +6 -6
- package/components/NavLink/{index.dd723dfd.js → index-B6Gmzyl0.js} +5 -3
- package/components/NoItemSelected/{index.b3e365b1.js → index-CMet73v_.js} +3 -1
- package/components/ObjectLogs/{index.54fdee14.js → index-_8l1PbEQ.js} +19 -12
- package/components/PDFViewer/{index.7932d07b.js → index-CV9x1XKR.js} +4 -2
- package/components/Page/{index.5f2963f3.js → index-DKQLs5le.js} +11 -8
- package/components/PaperForm/{index.cdb1f846.js → index-DciWfnML.js} +4 -2
- package/components/Period/{index.b0b2a03b.js → index-DxijnNw6.js} +20 -31
- package/components/PrintingSystem/{index.800a7957.js → index-sSZkZbrr.js} +16 -14
- package/components/PrintingSystem/subcomponents/BodyNode/{index.60ad80bd.js → index-CxYjxWxL.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.d4aa116e.js → index-D85qi4Qz.js} +3 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.142bbf1a.js → index-BA-IYLWh.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.d16d2c5e.js → index-Bn9eNtAi.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.044363bf.js → index-gNEGVptD.js} +6 -2
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.5581a84d.js → index-CiVr-jBF.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.2994c128.js → index-BGbvh0Xk.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.166d7264.js → index-DvhbyOo3.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index.642ab1b7.js → index-Cw8ZUwsm.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.d8a2a0af.js → index-l9SFQ11V.js} +1 -1
- package/components/PropertyValue/{index.d81eae0a.js → index-hcXIE6qk.js} +7 -5
- package/components/Resizeable/{index.df2f3bb8.js → index-ObbOlXFx.js} +1 -1
- package/components/ScrollBar/{index.11feff65.js → index-BpTjE7o3.js} +3 -1
- package/components/SideBar/{index.990e8667.js → index-Cg1bZn8y.js} +100 -74
- package/components/SplitLayout/{index.b247de95.js → index-CYnKlhi5.js} +5 -3
- package/components/ToastContainer/{index.c1657bde.js → index-B5VGIn45.js} +3 -3
- package/components/animate/LoadingScreen/{index.36a63311.js → index-CzDq3A0i.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-mH4o-crX.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-qqSduaty.js} +21 -19
- package/components/areas/components/AreasViewer/{index.d45bfcd2.js → index-D5If8gFK.js} +36 -25
- package/components/areas/contexts/AreasContext/{index.9edd84c3.js → index-Dyj8tCdG.js} +174 -15
- package/components/areas/hooks/useAreas/{index.5a57ab76.js → index-o0DvT3xZ.js} +2 -3
- package/components/areas/hooks/useDynamicMFParameters/{index.9e09e1e3.js → index-DhbcZPs9.js} +1 -1
- package/components/areas/hooks/useWindowToolsMF/{index.2fbae9dc.js → index-BECQfhbC.js} +2 -3
- package/components/commercial/AppBarCommercial/{index.b4f6147e.js → index-DvigwCQP.js} +4 -2
- package/components/commercial/SectionCommercial/{index.a250338c.js → index-CLHGooDg.js} +4 -2
- package/components/commercial/TopBar/{index.4fdd66e5.js → index-DJNYXgHq.js} +13 -11
- package/components/commercial/{index.be1af158.js → index-BLUHQfcA.js} +4 -4
- package/components/formatters/BooleanFormatter/{index.91435984.js → index-DpF0x_xp.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-CDt8LzvL.js} +13 -19
- package/components/hook-form/HelperError/{index.360f8fb7.js → index-D-_czK9n.js} +1 -1
- package/components/hook-form/RHFAutocomplete/{index.089af1b8.js → index-BhbgwNUz.js} +20 -20
- package/components/hook-form/RHFAutocompleteAsync/{index.f05b6fe3.js → index-BnUgdSnR.js} +5 -3
- package/components/hook-form/RHFCheckbox/{index.4cefbad2.js → index-ubHFuH1F.js} +53 -46
- package/components/hook-form/RHFColorPicker/{index.ed380b30.js → index-DBpi0Zhe.js} +8 -6
- package/components/hook-form/RHFDateTime/{index.118ebe6d.js → index-BtfOlX4T.js} +7 -5
- package/components/hook-form/RHFPeriod/{index.404ba4c6.js → index-BicAIry0.js} +6 -4
- package/components/hook-form/RHFRadioGroup/{index.591f779d.js → index-Di37rp0B.js} +1 -1
- package/components/hook-form/RHFTextField/index-Cz7BMTLe.js +337 -0
- package/components/hook-form/RHFUpload/{index.7b7ee732.js → index-D52JNxDh.js} +10 -8
- package/components/maps/components/GpsTools/{index.c1198f79.js → index-BP1dIwh6.js} +102 -32
- package/components/maps/components/Map/external/googleMutant/index.d.ts +159 -159
- package/components/maps/components/Map/{index.8c947175.js → index-CS6xr1Fl.js} +263 -73
- package/components/maps/leaflet-geoman.d.ts +1476 -1476
- package/components/modal/{WindowBase.00b9e5f1.js → WindowBase-CLBER1xc.js} +4 -4
- package/components/modal/{WindowConfirm.abf49573.js → WindowConfirm-DraflAKP.js} +8 -7
- package/components/modal/{index.81eb6def.js → index-CydPIpKZ.js} +2 -0
- package/components/mui_extended/Accordion/{index.26524ecd.js → index-ZFpEUCnw.js} +8 -6
- package/components/mui_extended/Avatar/{index.e7bcc850.js → index-Bk4Hq2nk.js} +5 -2
- package/components/mui_extended/Badge/{index.48948839.js → index-D6F1o3k2.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-DlzpoczE.js} +33 -13
- package/components/mui_extended/{CheckBox.5dc01b37.js → CheckBox-ByxYagHV.js} +4 -2
- package/components/mui_extended/IconButton/{index.7b6c1ee3.js → index-BfDbi0cC.js} +42 -22
- package/components/mui_extended/MenuActions/{index.11d777bb.js → index-CUz70BPj.js} +28 -24
- package/components/mui_extended/Pager/{index.b28a2103.js → index-CRgYDkV8.js} +8 -5
- package/components/mui_extended/Popover/{index.a7da93f1.js → index-C6_2t4L1.js} +39 -27
- package/components/mui_extended/Stack/{index.99de8138.js → index-CV2W-_eL.js} +3 -1
- package/components/mui_extended/Tab/{index.5c6a6801.js → index-PyZxxeDt.js} +9 -3
- package/components/mui_extended/ToggleButton/{index.86098567.js → index-X6htsgfF.js} +2 -2
- package/components/mui_extended/ToggleIconButton/{index.cbfe1cad.js → index-mT-xXWg9.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-DKPqV11f.js} +4 -2
- package/components/popups/PopupsProvider/{index.9a23e1d0.js → index-DhSxmtfJ.js} +1 -2
- package/components/popups/PopupsViewer/{index.52653047.js → index-D8iTb2JJ.js} +10 -7
- package/components/popups/PopupsViewer/slots/{popupsViewerSlots.69dd2614.js → popupsViewerSlots-DEQAZ8fq.js} +4 -4
- package/contexts/ModalContext/{index.799110fe.js → index-CMPcjPCy.js} +1 -1
- package/contexts/RHFormContext/{index.f9d41b99.js → index-B4a0h0fX.js} +3 -1
- package/hooks/useFormAddEdit/{index.8947ee59.js → index-DvRNtaub.js} +2 -2
- package/hooks/useModal/{index.eb857f6e.js → index-C9r1LQIz.js} +2 -3
- package/hooks/useSizeContainer/{index.3c48670c.js → index-D4hDjM1P.js} +2 -0
- package/hooks/useTab/{index.9ad15247.js → index-DTbLh_DH.js} +1 -1
- package/index.js +125 -237
- 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/{index.db9e7ddb.js → index-Cc9p_h7i.js} +51 -14
- package/utils/{index.f77cc2ab.js → index-DiMrtgIu.js} +26 -51
- package/vite-env.d.ts +4 -4
- package/components/LanguagePopover/index.2a7e40fc.js +0 -168
- package/components/hook-form/RHFTextField/index.80b98b98.js +0 -296
- /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
1
|
import { styled, alpha, Skeleton, Popover, IconButton, 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-HK_hTGnZ.js";
|
|
5
|
+
import { a as ResizableBox } from "../react-resizable-eBbFl2dX.js";
|
|
6
|
+
import { a as areasAdminClasses } from "../components/areas/components/AreasAdmin/index-qqSduaty.js";
|
|
7
|
+
import { a as areasViewerClasses } from "../components/areas/components/AreasViewer/index-D5If8gFK.js";
|
|
8
|
+
import { g as gpsToolsClasses } from "../components/maps/components/GpsTools/index-BP1dIwh6.js";
|
|
9
|
+
import { R as RHFormProvider } from "../contexts/RHFormContext/index-B4a0h0fX.js";
|
|
10
|
+
import { S as Stack$1 } from "../components/mui_extended/Stack/index-CV2W-_eL.js";
|
|
11
|
+
import { I as Image } from "../components/Image/index-B7FhR9uF.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,6 +297,7 @@ 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
|
}));
|
|
296
303
|
const PopoverRoot = styled$1(Popover)(({ theme }) => ({
|
|
@@ -301,6 +308,7 @@ const LabelMemuItem = styled$1("div")(({ theme }) => ({
|
|
|
301
308
|
height: "22px",
|
|
302
309
|
overflow: "hidden",
|
|
303
310
|
wordBreak: "break-all",
|
|
311
|
+
// padding: '0px',
|
|
304
312
|
marginLeft: theme.spacing(1.5),
|
|
305
313
|
display: "flex",
|
|
306
314
|
alignItems: "center"
|
|
@@ -324,6 +332,7 @@ const SKTTabWrapper = styled$1("div")(({ theme }) => ({
|
|
|
324
332
|
padding: theme.spacing(1.5, 2)
|
|
325
333
|
}));
|
|
326
334
|
const WrapperResizeable = styled$1(ResizableBox)(({ theme }) => ({
|
|
335
|
+
// variante desktop
|
|
327
336
|
"&.react-resizable": {
|
|
328
337
|
position: "relative",
|
|
329
338
|
width: "100%",
|
|
@@ -360,6 +369,7 @@ const WrapperResizeable = styled$1(ResizableBox)(({ theme }) => ({
|
|
|
360
369
|
backgroundRepeat: "no-repeat",
|
|
361
370
|
backgroundOrigin: "content-box",
|
|
362
371
|
boxSizing: "border-box",
|
|
372
|
+
/* background-image: url('data:image/svg+xml',base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+')', */
|
|
363
373
|
backgroundColor: theme.vars.palette.action.active,
|
|
364
374
|
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
375
|
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 +391,7 @@ const WrapperResizeable = styled$1(ResizableBox)(({ theme }) => ({
|
|
|
381
391
|
"& .M4LImage-img": {
|
|
382
392
|
opacity: "0.5",
|
|
383
393
|
filter: "invert(0.4) hue-rotate(20deg) saturate(1000%)"
|
|
394
|
+
// '-webkitUserDrag': 'none',
|
|
384
395
|
}
|
|
385
396
|
},
|
|
386
397
|
"& .M4LImage-root.custom-handle.custom-handle-nw": {
|
|
@@ -391,6 +402,7 @@ const WrapperResizeable = styled$1(ResizableBox)(({ theme }) => ({
|
|
|
391
402
|
"& .M4LImage-img": {
|
|
392
403
|
opacity: "0.5",
|
|
393
404
|
filter: "invert(0.4) hue-rotate(20deg) saturate(1000%)"
|
|
405
|
+
// '-webkitUserDrag': 'none',
|
|
394
406
|
}
|
|
395
407
|
},
|
|
396
408
|
"& .react-resizable-handle-ne": {
|
|
@@ -492,6 +504,13 @@ const ContainerCheckTypography = styled$1("div")(() => ({
|
|
|
492
504
|
alignItems: "center"
|
|
493
505
|
}));
|
|
494
506
|
const WrapperStandarActions = styled$1("div")(({ theme }) => ({
|
|
507
|
+
// paddingTop: theme.spacing(3),
|
|
508
|
+
// display: 'flex',
|
|
509
|
+
// flexDirection: 'row',
|
|
510
|
+
// justifyContent: 'flex-end',
|
|
511
|
+
// '& > button': {
|
|
512
|
+
// marginLeft: '10px',
|
|
513
|
+
// },
|
|
495
514
|
...theme.components?.M4LCommonActions?.styleOverrides
|
|
496
515
|
}));
|
|
497
516
|
const RHFDateTimeRoot = styled("div")(({ theme }) => ({
|
|
@@ -514,6 +533,7 @@ const WrapperSkeletonRHFTextField = styled$1("div")(({ theme }) => ({
|
|
|
514
533
|
gap: "4px"
|
|
515
534
|
}));
|
|
516
535
|
const RHFTextFieldRoot = styled$1("div")(({ theme }) => ({
|
|
536
|
+
/* Styles overrides of m4l_styles */
|
|
517
537
|
...theme.components?.M4LRHFTextField?.styleOverrides
|
|
518
538
|
}));
|
|
519
539
|
styled$1("div")(({ theme }) => ({
|
|
@@ -692,7 +712,6 @@ styled$1(SimpleBarReact)(({ theme }) => ({
|
|
|
692
712
|
}
|
|
693
713
|
}
|
|
694
714
|
}));
|
|
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
715
|
const AreasViewerRoot = styled$1("div")`
|
|
697
716
|
/* display: flex; */
|
|
698
717
|
width: 100%;
|
|
@@ -809,8 +828,6 @@ const AreasViewerRoot = styled$1("div")`
|
|
|
809
828
|
padding: 16px;
|
|
810
829
|
}
|
|
811
830
|
|
|
812
|
-
${react_resizable_css}
|
|
813
|
-
|
|
814
831
|
${(props) => props.theme.components?.M4LAreasViewer?.styleOverrides}
|
|
815
832
|
`;
|
|
816
833
|
const LinearProgressIndeterminateRoot = styled("div")(({ theme }) => ({
|
|
@@ -907,19 +924,24 @@ const toastStyles = {
|
|
|
907
924
|
"--toastify-z-index": "9999",
|
|
908
925
|
"--toastify-text-color-light": "#757575",
|
|
909
926
|
"--toastify-text-color-dark": "#fff",
|
|
927
|
+
//Used only for colored theme
|
|
910
928
|
"--toastify-text-color-info": "#fff",
|
|
911
929
|
"--toastify-text-color-success": "#fff",
|
|
912
930
|
"--toastify-text-color-warning": "#fff",
|
|
913
931
|
"--toastify-text-color-error": "#fff",
|
|
914
932
|
"--toastify-spinner-color": "#616161",
|
|
915
933
|
"--toastify-spinner-color-empty-area": "#e0e0e0",
|
|
934
|
+
// Used when no type is provided
|
|
935
|
+
// toast("**hello**")
|
|
916
936
|
"--toastify-color-progress-light": "var(--toastify-color-info)",
|
|
937
|
+
// Used when no type is provided
|
|
917
938
|
"--toastify-color-progress-dark": "var(--toastify-color-info)",
|
|
918
939
|
"--toastify-color-progress-info": "var(--toastify-color-info)",
|
|
919
940
|
"--toastify-color-progress-success": "var(--toastify-color-success)",
|
|
920
941
|
"--toastify-color-progress-warning": "var(--toastify-color-warning)",
|
|
921
942
|
"--toastify-color-progress-error": "var(--toastify-color-error)",
|
|
922
943
|
"--toastify-toast-bd-radius": "8px",
|
|
944
|
+
// used to control the opacity of the progress trail
|
|
923
945
|
"--toastify-color-progress-bgo": ".2",
|
|
924
946
|
...ownerState?.fixed === false ? {
|
|
925
947
|
top: 0,
|
|
@@ -948,6 +970,7 @@ const toastStyles = {
|
|
|
948
970
|
padding: "0"
|
|
949
971
|
}
|
|
950
972
|
},
|
|
973
|
+
/** Used to define the position of the ToastContainer **/
|
|
951
974
|
".Toastify__toast-container--top-left": {},
|
|
952
975
|
".Toastify__toast-container--top-center": {},
|
|
953
976
|
".Toastify__toast-container--top-right": {},
|
|
@@ -957,6 +980,7 @@ const toastStyles = {
|
|
|
957
980
|
"& .Toastify__toast--stacked[data-collapsed=true]:not(:last-child) > *": {
|
|
958
981
|
opacity: 0.2
|
|
959
982
|
},
|
|
983
|
+
/** Classes for the displayed toast **/
|
|
960
984
|
"& .Toastify__toast": {
|
|
961
985
|
minHeight: "min-content",
|
|
962
986
|
margin: "0",
|
|
@@ -974,7 +998,9 @@ const toastStyles = {
|
|
|
974
998
|
margin: "0px",
|
|
975
999
|
padding: "0px"
|
|
976
1000
|
},
|
|
1001
|
+
/** Used to position the icon **/
|
|
977
1002
|
"& .Toastify__toast-icon": {},
|
|
1003
|
+
/** handle the notification color and the text color based on the theme **/
|
|
978
1004
|
"& .Toastify__toast-theme--dark": {},
|
|
979
1005
|
"& .Toastify__toast-theme--light": {},
|
|
980
1006
|
"& .Toastify__toast-theme--colored.Toastify__toast--default": {},
|
|
@@ -1084,9 +1110,14 @@ styled$1("div")(({ theme }) => ({
|
|
|
1084
1110
|
padding: theme.spacing(3)
|
|
1085
1111
|
}));
|
|
1086
1112
|
const WrapperWindowModal = styled$1(Dialog)(({ theme }) => ({
|
|
1113
|
+
// height: '100%',
|
|
1087
1114
|
hola: 1,
|
|
1088
1115
|
backgroundColor: theme.vars.palette.background.paper,
|
|
1089
|
-
"& .MuiDialog-container": {
|
|
1116
|
+
"& .MuiDialog-container": {
|
|
1117
|
+
// justifyContent: 'start',
|
|
1118
|
+
// alignItems: 'start',
|
|
1119
|
+
},
|
|
1120
|
+
// position: 'absolute',
|
|
1090
1121
|
"&.m4l_selected": {
|
|
1091
1122
|
borderTop: "1px solid green"
|
|
1092
1123
|
},
|
|
@@ -1169,6 +1200,8 @@ const ContainerProgress = styled$1("div")(({ theme }) => ({
|
|
|
1169
1200
|
const ContainerMenuItems = styled$1("div")(() => ({
|
|
1170
1201
|
display: "flex",
|
|
1171
1202
|
flexDirection: "column"
|
|
1203
|
+
// marginBottom: theme.spacing(1),
|
|
1204
|
+
// paddingBottom: theme.spacing(1),
|
|
1172
1205
|
}));
|
|
1173
1206
|
const ContainerImage = styled$1("div")(() => ({
|
|
1174
1207
|
display: "flex",
|
|
@@ -1212,6 +1245,7 @@ const popupsViewerStyles = {
|
|
|
1212
1245
|
},
|
|
1213
1246
|
"& .fade-exit-active": {
|
|
1214
1247
|
opacity: 0
|
|
1248
|
+
//transition: 'opacity 10ms',
|
|
1215
1249
|
},
|
|
1216
1250
|
...ownerState?.status === "hidden" ? {
|
|
1217
1251
|
visibility: "hidden",
|
|
@@ -1352,6 +1386,7 @@ const HeaderContainer = styled$1("div")(({ theme }) => ({
|
|
|
1352
1386
|
display: "flex",
|
|
1353
1387
|
flexDirection: "row",
|
|
1354
1388
|
alignItems: "center",
|
|
1389
|
+
// height: theme.spacing(5),
|
|
1355
1390
|
borderBottom: `1px solid ${theme.vars.palette.divider}`,
|
|
1356
1391
|
paddingBottom: theme.spacing(3),
|
|
1357
1392
|
marginBottom: theme.spacing(2),
|
|
@@ -1366,6 +1401,8 @@ const IconTitleContainer = styled$1("div")(({ theme }) => ({
|
|
|
1366
1401
|
...theme.colorSchemes.finalTheme.typography.subtitle1
|
|
1367
1402
|
}));
|
|
1368
1403
|
const IconHeader = styled$1("div")(({ theme }) => ({
|
|
1404
|
+
// width: "24px",
|
|
1405
|
+
// height: "24px",
|
|
1369
1406
|
display: "flex",
|
|
1370
1407
|
alignItems: "center",
|
|
1371
1408
|
justifyContent: "center",
|
|
@@ -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);
|
package/vite-env.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
|
2
|
-
/// <reference types="vitest" />
|
|
3
|
-
/// <reference types="vitest/globals" />
|
|
4
|
-
/// <reference types="vitest/importMeta" />
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
/// <reference types="vitest" />
|
|
3
|
+
/// <reference types="vitest/globals" />
|
|
4
|
+
/// <reference types="vitest/importMeta" />
|
|
@@ -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
|
-
};
|