@m4l/components 0.2.35 → 0.2.36
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 +274 -441
- package/@types/types.d.ts +25 -0
- package/assets/Logo/index.109a182d.js +38 -0
- package/components/AccountPopover/classes/types.d.ts +1 -1
- package/components/AccountPopover/index.a9dc9f92.js +332 -0
- package/components/AccountPopover/style.d.ts +2 -0
- package/components/AccountPopover/subcomponents/MyAvatar/types.d.ts +6 -6
- package/components/AccountPopover/subcomponents/PopOver/types.d.ts +8 -8
- package/components/AccountPopover/types.d.ts +3 -3
- package/components/AppBar/classes/types.d.ts +1 -1
- package/components/AppBar/index.7dee7427.js +93 -0
- package/components/AppBar/styles.d.ts +2 -0
- package/components/AppBar/tests/utils.d.ts +1 -1
- package/components/AppBar/types.d.ts +9 -9
- package/components/CommonActions/classes/types.d.ts +1 -1
- package/components/CommonActions/components/ActionCancel/{index.416cbf9b.js → index.46f636e9.js} +5 -13
- package/components/CommonActions/components/ActionFormCancel/{index.78267f7c.js → index.2b0bd50d.js} +30 -35
- package/components/CommonActions/components/ActionFormIntro/{index.dcb4d280.js → index.4f212c39.js} +19 -26
- package/components/CommonActions/components/ActionIntro/{index.094290fd.js → index.7406bd47.js} +16 -17
- package/components/CommonActions/components/Actions/{index.fa7ab18c.js → index.273645af.js} +30 -26
- package/components/CommonActions/components/Actions/index.d.ts +2 -1
- package/components/CommonActions/components/Actions/styles.d.ts +2 -0
- package/components/CommonActions/components/Actions/types.d.ts +2 -2
- package/components/CommonActions/tests/utils.d.ts +1 -1
- package/components/DataGrid/assets/icons/datagrid.svg +4 -4
- package/components/DataGrid/classes/types.d.ts +1 -1
- package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.cd6e553a.js → index.cee6b676.js} +11 -12
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.0c439ac3.js → index.708f3fb5.js} +4 -12
- package/components/DataGrid/formatters/ColumnDateFormatter/{index.704db1ca.js → index.e00d0cf2.js} +4 -12
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/index.c064bb07.js +23 -0
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/{index.925387d2.js → index.880e743b.js} +4 -9
- package/components/DataGrid/formatters/ColumnPointsFormatter/{index.4335c26b.js → index.226cc583.js} +2 -5
- package/components/DataGrid/formatters/ColumnPriceFormatter/{index.d717405e.js → index.bf9d9e60.js} +2 -5
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/{index.0b23ba88.js → index.4045b2f2.js} +13 -17
- package/components/DataGrid/formatters/ColumnUncertaintyFormatter/{index.aeea65aa.js → index.a87302d1.js} +2 -5
- package/components/DataGrid/{index.abe0f9b9.js → index.304437ee.js} +257 -319
- package/components/DataGrid/styles.d.ts +2 -0
- package/components/DataGrid/subcomponents/Actions/index.f14590d2.js +595 -0
- package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/styles.d.ts +8 -0
- package/components/DataGrid/subcomponents/Table/subcomponents/SkeletonFormatter/styles.d.ts +2 -0
- package/components/DataGrid/subcomponents/editors/TextEditor/{index.eac1749c.js → index.3f0d9e28.js} +26 -25
- package/components/DataGrid/subcomponents/editors/TextEditor/index.d.ts +6 -0
- package/components/DragResizeWindow/DragResizeWindow.d.ts +3 -3
- package/components/DragResizeWindow/classes/types.d.ts +1 -1
- package/components/DragResizeWindow/index.a9f25040.js +480 -0
- package/components/DragResizeWindow/styled.d.ts +2 -0
- package/components/DragResizeWindow/types.d.ts +4 -5
- package/components/DragResizeWindow/utils.d.ts +1 -1
- package/components/DynamicFilter/DynamicFilter.d.ts +1 -7
- package/components/DynamicFilter/constants.d.ts +3 -11
- package/components/DynamicFilter/dictionary.d.ts +1 -2
- package/components/DynamicFilter/dynamicFilterSlots.d.ts +112 -0
- package/components/DynamicFilter/helpers/formatToInitialFilters.d.ts +7 -0
- package/components/DynamicFilter/helpers/formatToRowFilter.d.ts +7 -0
- package/components/DynamicFilter/helpers/getPurgedInitialFiltersApplied.d.ts +11 -0
- package/components/DynamicFilter/index.48d809e2.js +2086 -0
- package/components/DynamicFilter/index.d.ts +1 -2
- package/components/DynamicFilter/store/DynamicFilterContext.d.ts +16 -0
- package/components/DynamicFilter/{contexts/DynamicFilterContext/store.d.ts → store/DynamicFilterStore.d.ts} +28 -60
- package/components/DynamicFilter/store/useDynamicFilterStore.d.ts +2 -0
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/AppliedFilterChip.d.ts +3 -0
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/index.d.ts +1 -0
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/useAppliedFilterChip.d.ts +10 -0
- package/components/DynamicFilter/subcomponents/AppliedFilters/AppliedFilters.d.ts +2 -0
- package/components/DynamicFilter/subcomponents/AppliedFilters/index.d.ts +1 -0
- package/components/DynamicFilter/subcomponents/AppliedFilters/useAppliedFilters.d.ts +5 -0
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/DynamicFilterBase.d.ts +2 -0
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/index.d.ts +1 -0
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/useDynamicFilterBase.d.ts +4 -0
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/helpers.d.ts +14 -0
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/index.d.ts +1 -0
- package/components/DynamicFilter/subcomponents/FieldTypes/DataTypeComponent.d.ts +7 -0
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/helpers.d.ts +14 -0
- package/components/DynamicFilter/subcomponents/FieldTypes/FieldTypeInterface.d.ts +21 -0
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/helpers.d.ts +14 -0
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/helpers.d.ts +21 -0
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/helpers.d.ts +14 -0
- package/components/DynamicFilter/subcomponents/FieldTypes/fieldFactory.d.ts +7 -0
- package/components/DynamicFilter/subcomponents/FilterActions/FilterActions.d.ts +2 -0
- package/components/DynamicFilter/subcomponents/FilterActions/FilterActionsSkeleton.d.ts +2 -0
- package/components/DynamicFilter/subcomponents/FilterActions/index.d.ts +1 -0
- package/components/DynamicFilter/subcomponents/FilterActions/useFilterActions.d.ts +18 -0
- package/components/DynamicFilter/subcomponents/InputFilter/InputFilter.d.ts +2 -0
- package/components/DynamicFilter/subcomponents/InputFilter/InputFilterSkeleton.d.ts +2 -0
- package/components/DynamicFilter/subcomponents/InputFilter/index.d.ts +1 -7
- package/components/DynamicFilter/subcomponents/InputFilter/useInputFilter.d.ts +40 -0
- package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.d.ts +2 -0
- package/components/DynamicFilter/subcomponents/PopoverFilter/index.d.ts +1 -14
- package/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.d.ts +24 -0
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/PopoverMenuFields.d.ts +7 -0
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/index.d.ts +1 -11
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/usePopoverMenuFields.d.ts +9 -0
- package/components/DynamicFilter/types.d.ts +101 -30
- package/components/FieldLabel/classes/types.d.ts +1 -1
- package/components/FieldLabel/index.2622ee40.js +54 -0
- package/components/FieldLabel/styles.d.ts +2 -0
- package/components/GridLayout/{index.65470f01.js → index.b9c47a4c.js} +516 -468
- package/components/GridLayout/styles.d.ts +2 -0
- package/components/GridLayout/subcomponents/Griditem/index.69bc14e5.js +397 -0
- package/components/GridLayout/subcomponents/Responsive/{index.5b3e0521.js → index.094c1d09.js} +50 -31
- package/components/GridLayout/subcomponents/SizeProvider/{index.0328ad0a.js → index.e1d2df80.js} +34 -31
- package/components/HelperText/{index.7d2afdb3.js → index.81c5d349.js} +12 -21
- package/components/HelperText/styles.d.ts +2 -0
- package/components/Icon/{index.ad330e78.js → index.ee7b85c9.js} +67 -59
- package/components/Icon/styles.d.ts +4 -0
- package/components/Image/{index.b799c514.js → index.8cc036b1.js} +40 -75
- package/components/Image/styles.d.ts +2 -0
- package/components/Image/tests/utils.d.ts +1 -1
- package/components/Image/utils/getRatioValues.d.ts +1 -1
- package/components/LanguagePopover/index.72f316fc.js +187 -0
- package/components/LanguagePopover/styles.d.ts +6 -0
- package/components/LanguagePopover/tests/utils.d.ts +1 -1
- package/components/LinearProgressIndeterminate/classes/types.d.ts +1 -1
- package/components/LinearProgressIndeterminate/{index.c46da124.js → index.2ecd571e.js} +31 -19
- package/components/LinearProgressIndeterminate/styles.d.ts +2 -0
- package/components/Loadable/{index.e994fc3e.js → index.97fe63f9.js} +3 -8
- package/components/LoadingError/classes/types.d.ts +1 -1
- package/components/LoadingError/{index.ee29dd48.js → index.7aaba1cf.js} +30 -47
- package/components/LoadingError/styles.d.ts +2 -0
- package/components/LoadingError/types.d.ts +1 -1
- package/components/MFLoader/classes/types.d.ts +1 -1
- package/components/MFLoader/{index.3a37407c.js → index.40c419c0.js} +53 -69
- package/components/MFLoader/styles.d.ts +2 -0
- package/components/MFLoader/types.d.ts +4 -4
- package/components/ModalDialog/index.42349189.js +77 -0
- package/components/NavLink/{index.b75c91e1.js → index.9e847eb5.js} +21 -25
- package/components/NavLink/styles.d.ts +2 -0
- package/components/NavLink/tests/utils.d.ts +1 -1
- package/components/NavLink/types.d.ts +2 -2
- package/components/NoItemSelected/classes/types.d.ts +1 -1
- package/components/NoItemSelected/{index.3a479c64.js → index.5a8160fd.js} +17 -43
- package/components/NoItemSelected/styles.d.ts +5 -0
- package/components/ObjectLogs/index.6955149e.js +253 -0
- package/components/ObjectLogs/styles.d.ts +4 -0
- package/components/PDFViewer/classes/types.d.ts +1 -1
- package/components/PDFViewer/{index.88c6ff6a.js → index.47bb0928.js} +7 -18
- package/components/PDFViewer/styles.d.ts +2 -0
- package/components/Page/index.c1d4a319.js +114 -0
- package/components/PaperForm/classes/types.d.ts +1 -1
- package/components/PaperForm/{index.d08b43f6.js → index.9f6fd02d.js} +20 -63
- package/components/PaperForm/styles.d.ts +7 -0
- package/components/PaperForm/types.d.ts +1 -2
- package/components/Period/classes/types.d.ts +1 -1
- package/components/Period/{index.3f89d8a4.js → index.c6d1a95a.js} +108 -125
- package/components/Period/styles.d.ts +7 -0
- package/components/PrintingSystem/classes/types.d.ts +1 -1
- package/components/PrintingSystem/{index.27f1f209.js → index.f51a00f8.js} +45 -57
- package/components/PrintingSystem/styles.d.ts +2 -0
- package/components/PrintingSystem/subcomponents/BodyNode/index.6792c353.js +49 -0
- package/components/PrintingSystem/subcomponents/BodyNode/types.d.ts +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.990e164c.js → index.eec6b4cd.js} +28 -32
- package/components/PrintingSystem/subcomponents/ChartNode/types.d.ts +1 -2
- package/components/PrintingSystem/subcomponents/DividerNode/index.e58467c9.js +20 -0
- package/components/PrintingSystem/subcomponents/DividerNode/types.d.ts +2 -3
- package/components/PrintingSystem/subcomponents/FooterNode/index.920b75c9.js +49 -0
- package/components/PrintingSystem/subcomponents/FooterNode/types.d.ts +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/index.6c1ad53c.js +70 -0
- package/components/PrintingSystem/subcomponents/GridNode/types.d.ts +2 -2
- package/components/PrintingSystem/subcomponents/HeaderNode/index.e8b151ad.js +49 -0
- package/components/PrintingSystem/subcomponents/HeaderNode/types.d.ts +1 -1
- package/components/PrintingSystem/subcomponents/ImageNode/types.d.ts +2 -3
- package/components/PrintingSystem/subcomponents/Pager/types.d.ts +2 -2
- package/components/PrintingSystem/subcomponents/PaperNode/index.bf199422.js +30 -0
- package/components/PrintingSystem/subcomponents/PaperNode/types.d.ts +2 -2
- package/components/PrintingSystem/subcomponents/PropertyValueNode/index.44d436b9.js +47 -0
- package/components/PrintingSystem/subcomponents/PropertyValueNode/types.d.ts +2 -2
- package/components/PrintingSystem/subcomponents/QRImageNode/types.d.ts +2 -3
- package/components/PrintingSystem/subcomponents/SectionNode/index.879cf13d.js +49 -0
- package/components/PrintingSystem/subcomponents/SectionNode/types.d.ts +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/index.eb6af0ca.js +24 -0
- package/components/PrintingSystem/subcomponents/TextBoxNode/types.d.ts +2 -3
- package/components/PrintingSystem/utils/FactoryRender/types.d.ts +1 -1
- package/components/PrintingSystem/utils/PageRender/types.d.ts +1 -1
- package/components/PropertyValue/classes/types.d.ts +1 -1
- package/components/PropertyValue/index.5e59580c.js +264 -0
- package/components/PropertyValue/styles.d.ts +2 -0
- package/components/Resizeable/{index.cb5aad75.js → index.5e8e48b1.js} +16 -23
- package/components/ResizeableWindow/styles.d.ts +5 -0
- package/components/ScrollBar/classes/types.d.ts +1 -1
- package/components/ScrollBar/{index.7dfc2f29.js → index.4b965665.js} +31 -51
- package/components/ScrollBar/styles.d.ts +9 -0
- package/components/SideBar/context/sideBarContext/index.d.ts +4 -4
- package/components/SideBar/index.5d1f4a23.js +851 -0
- package/components/SideBar/styles.d.ts +20 -0
- package/components/SideBar/subcomponents/ContentDesktop/subcomponents/CollapseButton/styles.d.ts +3 -0
- package/components/SideBar/subcomponents/ContentGroups/styles.d.ts +4 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/styles.d.ts +2 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/ArrowIcon/styles.d.ts +2 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/styles.d.ts +9 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/type.d.ts +2 -2
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/styles.d.ts +2 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/styles.d.ts +22 -0
- package/components/SideBar/subcomponents/ContentMobile/styles.d.ts +3 -0
- package/components/SideBar/subcomponents/ContentMobile/subcomponents/types.d.ts +4 -4
- package/components/SideBar/tests/constants.d.ts +1 -1
- package/components/SideBar/tests/utils.d.ts +1 -1
- package/components/SideBar/types.d.ts +2 -2
- package/components/SplitLayout/SplitLayout.d.ts +1 -1
- package/components/SplitLayout/classes/types.d.ts +1 -1
- package/components/SplitLayout/{index.7302ceb3.js → index.15756f0f.js} +40 -29
- package/components/SplitLayout/styles.d.ts +4 -0
- package/components/SplitLayout/tests/utils.d.ts +1 -1
- package/components/ToastContainer/ToastContainer.d.ts +1 -1
- package/components/ToastContainer/classes/types.d.ts +1 -1
- package/components/ToastContainer/{index.4d44ce53.js → index.dbd78941.js} +14 -30
- package/components/ToastContainer/styles.d.ts +2 -0
- package/components/ToastContainer/subcomponents/ToastMessage/index.d.ts +1 -1
- package/components/ToastContainer/subcomponents/ToastMessage/types.d.ts +1 -1
- package/components/ToastContainer/types.d.ts +1 -1
- package/components/WrapperComponent/index.57964195.js +14 -0
- package/components/animate/AnimatedScroll/styles.d.ts +6 -0
- package/components/animate/AnimatedScroll/types.d.ts +3 -3
- package/components/animate/LoadingScreen/{index.1d0c4307.js → index.1a83615a.js} +25 -39
- package/components/animate/LoadingScreen/styles.d.ts +7 -0
- package/components/animate/MotionContainer/index.3032bd8f.js +34 -0
- package/components/animate/MotionContainer/index.d.ts +9 -9
- package/components/animate/MotionLazyContainer/index.d.ts +2 -2
- package/components/animate/MotionLazyContainer/{index.572dd012.js → index.d2902a6c.js} +3 -9
- package/components/animate/PropagateLoader/{index.7fab43c8.js → index.76d7ea70.js} +4 -12
- package/components/animate/PropagateLoader/syles.d.ts +2 -0
- package/components/animate/{index.5d4575bc.js → index.87296638.js} +35 -56
- package/components/areas/components/AreasAdmin/index.f239c717.js +733 -0
- package/components/areas/components/AreasAdmin/styles.d.ts +5 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/styles.d.ts +4 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/types.d.ts +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/PanelWindowPopUp/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/index.61e0538b.js +1071 -0
- package/components/areas/components/AreasViewer/styles.d.ts +2 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/subcomponents/ResizeHandle/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/styles.d.ts +2 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowModal/styles.d.ts +3 -0
- package/components/areas/contexts/AreasContext/{index.c5a3b322.js → index.19c7b906.js} +32 -77
- package/components/areas/contexts/DynamicMFParmsContext/{index.1607c78e.js → index.3d9ad0ad.js} +3 -9
- package/components/areas/contexts/DynamicMFParmsContext/types.d.ts +2 -2
- package/components/areas/contexts/WindowToolsMFContext/{index.8f3e2a04.js → index.992ae7a3.js} +3 -11
- package/components/areas/contexts/WindowToolsMFContext/types.d.ts +29 -29
- package/components/areas/hooks/useAreas/{index.caa92660.js → index.cedd30ee.js} +1 -1
- package/components/areas/hooks/useDynamicMFParameters/{index.e52c5392.js → index.9e09e1e3.js} +2 -4
- package/components/areas/hooks/useWindowToolsMF/{index.b7afaf88.js → index.2fbae9dc.js} +1 -1
- package/components/areas/types.d.ts +17 -17
- package/components/commercial/AppBarCommercial/classes/types.d.ts +1 -1
- package/components/commercial/AppBarCommercial/{index.9cf586a2.js → index.9f654f8e.js} +10 -12
- package/components/commercial/AppBarCommercial/styles.d.ts +2 -0
- package/components/commercial/AppBarCommercial/types.d.ts +1 -1
- package/components/commercial/HamburgerMenu/classes/type.d.ts +1 -1
- package/components/commercial/HamburgerMenu/styles.d.ts +13 -0
- package/components/commercial/HamburgerMenu/test/utils.d.ts +1 -1
- package/components/commercial/HamburgerMenu/types.d.ts +1 -1
- package/components/commercial/SectionCommercial/classes/types.d.ts +1 -1
- package/components/commercial/SectionCommercial/{index.4dbfc0a7.js → index.3df4685b.js} +28 -19
- package/components/commercial/SectionCommercial/styles.d.ts +11 -0
- package/components/commercial/SectionCommercial/types.d.ts +3 -4
- package/components/commercial/TopBar/component/ConteinItem/subcomponets/NavItem/index.d.ts +1 -1
- package/components/commercial/TopBar/component/ConteinItem/subcomponets/NavItem/subcomponents/ArrowIcon/styles.d.ts +2 -0
- package/components/commercial/TopBar/component/ConteinItem/subcomponets/NavItem/types.d.ts +1 -1
- package/components/commercial/TopBar/context/index.d.ts +1 -1
- package/components/commercial/TopBar/context/type.d.ts +2 -2
- package/components/commercial/TopBar/index.7aeb6ec0.js +234 -0
- package/components/commercial/TopBar/style.d.ts +2 -0
- package/components/commercial/TopBar/type.d.ts +2 -2
- package/components/commercial/TopBar/utils/isActive/index.d.ts +1 -1
- package/components/commercial/{index.89ad149c.js → index.b90488db.js} +40 -38
- package/components/formatters/BooleanFormatter/{index.9ccf9298.js → index.0c2d8e35.js} +20 -30
- package/components/formatters/DateFormatter/{index.578a9f53.js → index.2ef6f261.js} +5 -14
- package/components/formatters/FormatterRoot/styles.d.ts +2 -0
- package/components/formatters/FormatterRoot/types.d.ts +1 -1
- package/components/formatters/PointsFormatter/{index.8a4fa393.js → index.d8a4ee54.js} +4 -11
- package/components/formatters/PriceFormatter/{index.83cbe7be.js → index.97f75b4b.js} +5 -13
- package/components/formatters/UncertaintyFormatter/{index.08e1b79f.js → index.c3ffdebc.js} +8 -13
- package/components/formatters/{index.03471e3f.js → index.b816c6b6.js} +11 -34
- package/components/hook-form/HelperError/index.c8b046b7.js +19 -0
- package/components/hook-form/RHFAutocomplete/index.ea2ac2b1.js +408 -0
- package/components/hook-form/RHFAutocomplete/styles.d.ts +2 -0
- package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/styles.d.ts +2 -0
- package/components/hook-form/RHFAutocompleteAsync/{index.bc278965.js → index.98dcf0de.js} +47 -45
- package/components/hook-form/RHFAutocompleteAsync/styles.d.ts +5 -0
- package/components/hook-form/RHFAutocompleteAsync/tests/utils.d.ts +1 -1
- package/components/hook-form/RHFCheckbox/index.c32278fa.js +142 -0
- package/components/hook-form/RHFCheckbox/styles.d.ts +15 -0
- package/components/hook-form/RHFCheckbox/test/utils.d.ts +1 -1
- package/components/hook-form/RHFColorPicker/classes/types.d.ts +1 -1
- package/components/hook-form/RHFColorPicker/index.8c939bfd.js +191 -0
- package/components/hook-form/RHFColorPicker/styles.d.ts +2 -0
- package/components/hook-form/RHFColorPicker/subcomponents/Skeleton/types.d.ts +2 -3
- package/components/hook-form/RHFColorPicker/types.d.ts +7 -7
- package/components/hook-form/RHFDateTime/classes/types.d.ts +1 -1
- package/components/hook-form/RHFDateTime/index.ac27deab.js +190 -0
- package/components/hook-form/RHFDateTime/styles.d.ts +2 -0
- package/components/hook-form/RHFDateTime/types.d.ts +1 -1
- package/components/hook-form/RHFMultiCheckbox/index.437e6ba3.js +34 -0
- package/components/hook-form/RHFPeriod/classes/types.d.ts +1 -1
- package/components/hook-form/RHFPeriod/index.70cfc422.js +104 -0
- package/components/hook-form/RHFPeriod/styles.d.ts +2 -0
- package/components/hook-form/RHFRadioGroup/index.11c0add8.js +35 -0
- package/components/hook-form/RHFRadioGroup/types.d.ts +1 -1
- package/components/hook-form/RHFSelect/index.c6c60ecc.js +29 -0
- package/components/hook-form/RHFTextField/index.fa97889a.js +325 -0
- package/components/hook-form/RHFTextField/styles.d.ts +3 -0
- package/components/hook-form/RHFTextField/subcomponents/Skeleton/styles.d.ts +3 -0
- package/components/hook-form/RHFTextField/tests/utils.d.ts +1 -1
- package/components/hook-form/RHFTextFieldPassword/styles.d.ts +2 -0
- package/components/hook-form/RHFTextFieldPassword/tests/utils.d.ts +1 -1
- package/components/hook-form/RHFTextFieldPassword/types.d.ts +1 -2
- package/components/hook-form/RHFUpload/RHFUploadImage/classes/types.d.ts +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/styles.d.ts +2 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/styles.d.ts +2 -0
- package/components/hook-form/RHFUpload/index.c5e5c61c.js +258 -0
- package/components/maps/components/GpsTools/constants.d.ts +1 -1
- package/components/maps/components/GpsTools/contexts/GpsToolsContext/types.d.ts +3 -3
- package/components/maps/components/GpsTools/{index.d93188ad.js → index.4ea69dd1.js} +748 -767
- package/components/maps/components/GpsTools/styles.d.ts +2 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/styles.d.ts +1 -0
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/types.d.ts +2 -2
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/types.d.ts +1 -1
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/types.d.ts +2 -2
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useColumns.d.ts +1 -1
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/styles.d.ts +11 -0
- package/components/maps/components/GpsTools/types.d.ts +1 -1
- package/components/maps/components/Map/contexts/MapContext/helper.d.ts +1 -1
- package/components/maps/components/Map/contexts/MapContext/index.d.ts +1 -1
- package/components/maps/components/Map/contexts/MapContext/types.d.ts +6 -6
- package/components/maps/components/Map/external/googleMutant/index.d.ts +94 -94
- package/components/maps/components/Map/featureRenders/CommonFeatureRender/index.d.ts +1 -1
- package/components/maps/components/Map/featureRenders/CommonFeatureRender/subcomponents/FeatureDivIconLabel/types.d.ts +1 -1
- package/components/maps/components/Map/featureRenders/CommonFeatureRender/subcomponents/MarkerIconLabel/types.d.ts +2 -2
- package/components/maps/components/Map/featureRenders/MarkerFeatureRender/index.d.ts +1 -1
- package/components/maps/components/Map/hooks/useAutoFocus/types.d.ts +2 -2
- package/components/maps/components/Map/{index.accb1f77.js → index.62b7d09b.js} +731 -770
- package/components/maps/components/Map/index.d.ts +1 -1
- package/components/maps/components/Map/styled.d.ts +2 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/bing.d.ts +1 -1
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/google.d.ts +1 -1
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/osm.d.ts +1 -1
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/helpers.d.ts +1 -1
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/types.d.ts +1 -1
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/types.d.ts +1 -1
- package/components/maps/components/Map/subcomponents/Controls/types.d.ts +1 -1
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/types.d.ts +2 -2
- package/components/maps/components/Map/types.d.ts +2 -2
- package/components/maps/{index.34ab6a68.js → index.13bb982c.js} +1 -1
- package/components/maps/index.d.ts +2 -2
- package/components/maps/leaflet-geoman.d.ts +1476 -1633
- package/components/modal/WindowBase.2414cd02.js +44 -0
- package/components/modal/WindowConfirm/types.d.ts +4 -4
- package/components/modal/WindowConfirm.48140481.js +66 -0
- package/components/modal/classes/types.d.ts +1 -1
- package/components/modal/{index.61389369.js → index.81eb6def.js} +7 -1
- package/components/mui_extended/Accordion/classes/types.d.ts +1 -1
- package/components/mui_extended/Accordion/index.d08a0361.js +142 -0
- package/components/mui_extended/Accordion/styles.d.ts +4 -0
- package/components/mui_extended/Avatar/classes/types.d.ts +1 -1
- package/components/mui_extended/Avatar/{index.75e6ed57.js → index.fb9ad158.js} +26 -34
- package/components/mui_extended/Avatar/styles.d.ts +2 -0
- package/components/mui_extended/Avatar/tests/utils.d.ts +1 -1
- package/components/mui_extended/Badge/Badge.d.ts +1 -1
- package/components/mui_extended/Badge/classes/types.d.ts +1 -1
- package/components/mui_extended/Badge/{index.09f5aee5.js → index.2a3aef2c.js} +10 -16
- package/components/mui_extended/Badge/styles.d.ts +2 -0
- package/components/mui_extended/Badge/types.d.ts +1 -1
- package/components/mui_extended/BoxIcon/index.d61e7ac5.js +22 -0
- package/components/mui_extended/Breadcrumbs/index.4a44883c.js +87 -0
- package/components/mui_extended/Button/classes/types.d.ts +2 -2
- package/components/mui_extended/Button/{index.c3084916.js → index.5395d101.js} +71 -79
- package/components/mui_extended/Button/styles.d.ts +13 -0
- package/components/mui_extended/CheckBox/classes/types.d.ts +1 -1
- package/components/mui_extended/CheckBox/styles.d.ts +2 -0
- package/components/mui_extended/CheckBox/subcomponents/Skeleton/types.d.ts +1 -1
- package/components/mui_extended/CheckBox/types.d.ts +2 -2
- package/components/mui_extended/{CheckBox.2a3b86c5.js → CheckBox.256169f0.js} +23 -33
- package/components/mui_extended/CircularProgress/{index.ad569afd.js → index.967e70b7.js} +2 -4
- package/components/mui_extended/IconButton/{index.f8a3021b.js → index.b0ee4965.js} +42 -48
- package/components/mui_extended/IconButton/styles.d.ts +2 -0
- package/components/mui_extended/ImageButton/styles.d.ts +2 -0
- package/components/mui_extended/ImageButton/tests/utils.d.ts +1 -1
- package/components/mui_extended/LinearProgress/{index.c92b9ba9.js → index.4092bb69.js} +3 -7
- package/components/mui_extended/LinkWithRoute/index.288c51f3.js +15 -0
- package/components/mui_extended/LoadingButton/styles.d.ts +2 -0
- package/components/mui_extended/LoadingButton/tests/utils.d.ts +1 -1
- package/components/mui_extended/MenuActions/classes/types.d.ts +1 -1
- package/components/mui_extended/MenuActions/{index.90f53670.js → index.d92ed0d6.js} +68 -68
- package/components/mui_extended/MenuActions/styles.d.ts +30 -0
- package/components/mui_extended/Pager/classes/types.d.ts +1 -1
- package/components/mui_extended/Pager/{index.ea2a4f3e.js → index.1ba2d52b.js} +114 -112
- package/components/mui_extended/Pager/styles.d.ts +2 -0
- package/components/mui_extended/Pager/subcomponents/CustomTablePagination/types.d.ts +2 -2
- package/components/mui_extended/Pager/subcomponents/PagerActions/types.d.ts +1 -1
- package/components/mui_extended/Popover/index.4e7340b4.js +142 -0
- package/components/mui_extended/Popover/styles.d.ts +1 -0
- package/components/mui_extended/Popover/subcomponts/ArrowIcon/index.d.ts +3 -0
- package/components/mui_extended/Stack/Stack.d.ts +1 -1
- package/components/mui_extended/Stack/classes/types.d.ts +1 -1
- package/components/mui_extended/Stack/{index.0e53197c.js → index.fe363ca5.js} +3 -11
- package/components/mui_extended/Stack/styles.d.ts +11 -0
- package/components/mui_extended/Stack/types.d.ts +1 -1
- package/components/mui_extended/Tab/classes/types.d.ts +1 -1
- package/components/mui_extended/Tab/{index.9214d9cc.js → index.c5ad86e2.js} +41 -63
- package/components/mui_extended/Tab/styles.d.ts +3 -0
- package/components/mui_extended/TabContent/TabContent.d.ts +1 -1
- package/components/mui_extended/TabContent/classes/types.d.ts +1 -1
- package/components/mui_extended/TabContent/styles.d.ts +2 -0
- package/components/mui_extended/TabContent/types.d.ts +1 -1
- package/components/mui_extended/Tabs/classes/types.d.ts +1 -1
- package/components/mui_extended/Tabs/styles.d.ts +59 -0
- package/components/mui_extended/ToggleButton/ToggleButton.d.ts +1 -1
- package/components/mui_extended/ToggleButton/index.7fbc8614.js +18 -0
- package/components/mui_extended/ToggleIconButton/ToggleIconButton.d.ts +1 -1
- package/components/mui_extended/ToggleIconButton/{index.d9dbf650.js → index.0cd347b4.js} +13 -8
- package/components/mui_extended/ToggleIconButton/types.d.ts +2 -2
- package/components/mui_extended/Tooltip/classes/types.d.ts +1 -1
- package/components/mui_extended/Tooltip/{index.24a2bc3f.js → index.49bb5ee1.js} +12 -15
- package/components/mui_extended/Tooltip/types.d.ts +3 -3
- package/components/mui_extended/Typography/{index.379dd374.js → index.a1e774a2.js} +12 -26
- package/components/mui_extended/Typography/styles.d.ts +2 -0
- package/components/mui_extended/Typography/tests/utils.d.ts +1 -1
- package/components/popups/PopupsProvider/{index.d7409f48.js → index.8fb6232a.js} +12 -26
- package/components/popups/PopupsViewer/index.813854e4.js +171 -0
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts +4 -4
- package/components/popups/components/PopupsViewer/classes/types.d.ts +1 -1
- package/components/popups/components/PopupsViewer/styled.d.ts +2 -0
- package/components/popups/components/PopupsViewer/subcomponents/Popup/types.d.ts +1 -1
- package/contexts/ModalContext/{index.2368bb19.js → index.45c275cd.js} +18 -19
- package/contexts/RHFormContext/classes/types.d.ts +1 -1
- package/contexts/RHFormContext/{index.7b2a8723.js → index.bf3a2812.js} +14 -20
- package/contexts/RHFormContext/styles.d.ts +2 -0
- package/hocs/index.d.ts +1 -0
- package/hocs/withToggle/{index.50aec5e4.js → index.548aeace.js} +3 -11
- package/hooks/useFormAddEdit/{index.000ce60b.js → index.9b27ca02.js} +37 -41
- package/hooks/useFormFocus/index.d.ts +2 -2
- package/hooks/useFormFocus/types.d.ts +1 -1
- package/hooks/useModal/{index.f73d7e42.js → index.30674bb7.js} +1 -1
- package/hooks/useSizeContainer/{index.62b4e0c4.js → index.3c48670c.js} +1 -1
- package/hooks/useTab/{index.976d5e1e.js → index.f7973779.js} +1 -1
- package/index.d.ts +2 -1
- package/index.js +136 -136
- package/package.json +11 -1
- package/{react-draggable.e4725f3a.js → react-draggable.79b4c69a.js} +1 -1
- package/{react-resizable.c07d63fb.js → react-resizable.af1f31c1.js} +2 -2
- package/styles/DynamicFilter.styles.d.ts +2 -0
- package/test/getNameDataTestId.0faeade8.js +10 -0
- package/test/getNameDataTestId.d.ts +10 -0
- package/utils/containerQuery.d.ts +2 -0
- package/utils/{index.6469f148.js → index.0718eeac.js} +4 -0
- package/utils/index.d.ts +1 -1
- package/vite-env.d.ts +4 -4
- package/assets/Logo/index.228dcb5a.js +0 -93
- package/components/AccountPopover/index.39efc8f0.js +0 -302
- package/components/AppBar/index.c8850b99.js +0 -109
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/index.867b8745.js +0 -26
- package/components/DataGrid/subcomponents/Actions/index.4f2071ee.js +0 -663
- package/components/DragResizeWindow/index.13ef022e.js +0 -489
- package/components/DynamicFilter/classes/index.d.ts +0 -5
- package/components/DynamicFilter/classes/types.d.ts +0 -35
- package/components/DynamicFilter/contexts/DynamicFilterContext/helpers.d.ts +0 -23
- package/components/DynamicFilter/contexts/DynamicFilterContext/index.d.ts +0 -18
- package/components/DynamicFilter/contexts/DynamicFilterContext/types.d.ts +0 -5
- package/components/DynamicFilter/hooks/useDynamicFilter.d.ts +0 -2
- package/components/DynamicFilter/index.c52a8e96.js +0 -1954
- package/components/DynamicFilter/subcomponents/ApplyedFilters/index.d.ts +0 -6
- package/components/DynamicFilter/subcomponents/ApplyedFilters/subcomponents/ApplyedFilter/index.d.ts +0 -2
- package/components/DynamicFilter/subcomponents/ClearFilters/index.d.ts +0 -1
- package/components/DynamicFilter/subcomponents/FilterButton/index.d.ts +0 -11
- package/components/DynamicFilter/subcomponents/InnerForHooks/index.d.ts +0 -5
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/types.d.ts +0 -6
- package/components/DynamicFilter/subcomponents/fieldstypes/BooleanFilter/helpers.d.ts +0 -39
- package/components/DynamicFilter/subcomponents/fieldstypes/BooleanFilter/index.d.ts +0 -5
- package/components/DynamicFilter/subcomponents/fieldstypes/DateTimeFilter/helpers.d.ts +0 -42
- package/components/DynamicFilter/subcomponents/fieldstypes/NumberFilter/helpers.d.ts +0 -36
- package/components/DynamicFilter/subcomponents/fieldstypes/SelectFilter/helpers.d.ts +0 -51
- package/components/DynamicFilter/subcomponents/fieldstypes/StringFilter/helpers.d.ts +0 -39
- package/components/DynamicFilter/subcomponents/fieldstypes/factory.d.ts +0 -82
- package/components/DynamicFilter/subcomponents/fieldstypes/validations.d.ts +0 -32
- package/components/DynamicFilter/tests/contants.d.ts +0 -5
- package/components/FieldLabel/index.0412576c.js +0 -82
- package/components/GridLayout/subcomponents/Griditem/index.30016fc1.js +0 -366
- package/components/LanguagePopover/index.93c48ec5.js +0 -196
- package/components/ModalDialog/index.78c9650a.js +0 -92
- package/components/ObjectLogs/index.1d85a021.js +0 -293
- package/components/Page/index.5d34dc4d.js +0 -127
- package/components/PrintingSystem/subcomponents/BodyNode/index.319a3bb9.js +0 -48
- package/components/PrintingSystem/subcomponents/DividerNode/index.e504dbd2.js +0 -19
- package/components/PrintingSystem/subcomponents/FooterNode/index.9a19a7cb.js +0 -48
- package/components/PrintingSystem/subcomponents/GridNode/index.8d14e1b6.js +0 -71
- package/components/PrintingSystem/subcomponents/HeaderNode/index.89e4eaab.js +0 -48
- package/components/PrintingSystem/subcomponents/PaperNode/index.dd4ca449.js +0 -46
- package/components/PrintingSystem/subcomponents/PropertyValueNode/index.048d7ebf.js +0 -41
- package/components/PrintingSystem/subcomponents/SectionNode/index.83f1efea.js +0 -48
- package/components/PrintingSystem/subcomponents/TextBoxNode/index.5427cb75.js +0 -28
- package/components/PropertyValue/index.15c61a4b.js +0 -209
- package/components/SideBar/index.b0359a2b.js +0 -916
- package/components/SplitLayout/index.d.ts +0 -2
- package/components/WrapperComponent/index.5e872594.js +0 -18
- package/components/animate/MotionContainer/index.8d9f9d80.js +0 -33
- package/components/areas/components/AreasAdmin/index.820a00ab.js +0 -737
- package/components/areas/components/AreasViewer/index.6d7194e2.js +0 -1086
- package/components/commercial/TopBar/index.93a7d26a.js +0 -275
- package/components/hook-form/HelperError/index.66bbcac3.js +0 -30
- package/components/hook-form/RHFAutocomplete/index.1f2afb6b.js +0 -429
- package/components/hook-form/RHFCheckbox/index.eca64469.js +0 -143
- package/components/hook-form/RHFColorPicker/index.dc13d5a3.js +0 -204
- package/components/hook-form/RHFDateTime/index.e554b068.js +0 -203
- package/components/hook-form/RHFMultiCheckbox/index.2680b3b6.js +0 -34
- package/components/hook-form/RHFPeriod/index.e4e4530f.js +0 -112
- package/components/hook-form/RHFRadioGroup/index.1ddb3d93.js +0 -45
- package/components/hook-form/RHFSelect/index.b6ca8bb2.js +0 -36
- package/components/hook-form/RHFTextField/index.1bfa601f.js +0 -358
- package/components/hook-form/RHFUpload/index.6e98b291.js +0 -242
- package/components/modal/WindowBase.fd86f575.js +0 -74
- package/components/modal/WindowConfirm.ee6de236.js +0 -105
- package/components/mui_extended/Accordion/index.7dcdfd3a.js +0 -126
- package/components/mui_extended/BoxIcon/index.e638ecc8.js +0 -22
- package/components/mui_extended/Breadcrumbs/index.5e37d903.js +0 -94
- package/components/mui_extended/LinkWithRoute/index.16436ab8.js +0 -30
- package/components/mui_extended/Popover/index.d85de73b.js +0 -179
- package/components/mui_extended/ToggleButton/index.191711f3.js +0 -19
- package/components/popups/PopupsViewer/index.1500ce72.js +0 -186
- package/test/getNameDataTestId.14875ec7.js +0 -6
- /package/components/DynamicFilter/subcomponents/{fieldstypes → FieldTypes}/DateTimeFilter/index.d.ts +0 -0
- /package/components/DynamicFilter/subcomponents/{fieldstypes → FieldTypes}/NumberFilter/index.d.ts +0 -0
- /package/components/DynamicFilter/subcomponents/{fieldstypes → FieldTypes}/SelectFilter/index.d.ts +0 -0
- /package/components/DynamicFilter/subcomponents/{fieldstypes → FieldTypes}/StringFilter/index.d.ts +0 -0
|
@@ -1,1086 +0,0 @@
|
|
|
1
|
-
import { generateUtilityClasses, styled, Skeleton, Dialog } from "@mui/material";
|
|
2
|
-
import { r as react_resizable_css } from "../../../../react-resizable.c07d63fb.js";
|
|
3
|
-
import { unstable_composeClasses } from "@mui/base";
|
|
4
|
-
import { g as getComponentUtilityClass } from "../../../../utils/index.6469f148.js";
|
|
5
|
-
import { a as AREAS_VIEWER_CLASS_NAME } from "../../constants.66529246.js";
|
|
6
|
-
import { shallow } from "zustand/shallow";
|
|
7
|
-
import React__default, { useMemo, useEffect } from "react";
|
|
8
|
-
import clsx from "clsx";
|
|
9
|
-
import { u as useAreasStore } from "../../hooks/useAreas/index.caa92660.js";
|
|
10
|
-
import { useModuleDictionary, useEnvironment, useModuleSkeleton } from "@m4l/core";
|
|
11
|
-
import { a as MemonizedMenuActions } from "../../../mui_extended/MenuActions/index.90f53670.js";
|
|
12
|
-
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
13
|
-
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
14
|
-
import { I as ICONS } from "../../icons.8266ccc8.js";
|
|
15
|
-
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.08cfc4c9.js";
|
|
16
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index.f8a3021b.js";
|
|
17
|
-
import { L as LinearProgressIndeterminate } from "../../../LinearProgressIndeterminate/index.c46da124.js";
|
|
18
|
-
import { I as Icon } from "../../../Icon/index.ad330e78.js";
|
|
19
|
-
import { T as Typography } from "../../../mui_extended/Typography/index.379dd374.js";
|
|
20
|
-
import { M as MFLoader } from "../../../MFLoader/index.3a37407c.js";
|
|
21
|
-
import { W as WindowToolsMFProvider } from "../../contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
22
|
-
import { D as DynamicMFParmsProvider } from "../../contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
23
|
-
import { L as LinearProgress } from "../../../mui_extended/LinearProgress/index.c92b9ba9.js";
|
|
24
|
-
import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.86c553a9.js";
|
|
25
|
-
import { g as getNameDataTestId } from "../../../../test/getNameDataTestId.14875ec7.js";
|
|
26
|
-
import { R as RESPONSIVE_COLAPSED_HEIGHTS, a as RESPONSIVE_ROW_HEIGHTS, M as MARGIN_GRIDLAYOUT, P as PADDING_GRIDLAYOUT } from "../../contexts/AreasContext/index.c5a3b322.js";
|
|
27
|
-
import { w as withSizeProvider } from "../../../GridLayout/subcomponents/SizeProvider/index.0328ad0a.js";
|
|
28
|
-
import { R as Responsive } from "../../../GridLayout/subcomponents/Responsive/index.5b3e0521.js";
|
|
29
|
-
import { useLocation } from "react-router-dom";
|
|
30
|
-
import { L as LoadingError } from "../../../LoadingError/index.ee29dd48.js";
|
|
31
|
-
import { c as cjs } from "../../../../react-draggable.e4725f3a.js";
|
|
32
|
-
import { R as ResizeableWindow } from "../../../Resizeable/index.cb5aad75.js";
|
|
33
|
-
const areasViewerClasses = generateUtilityClasses(AREAS_VIEWER_CLASS_NAME, [
|
|
34
|
-
"root",
|
|
35
|
-
"areaRoot",
|
|
36
|
-
"areaGridLayoutPanelContainer",
|
|
37
|
-
"areaGridLayout",
|
|
38
|
-
"areaGridLayoutPopupsContainer",
|
|
39
|
-
"areasWindowPopUpList",
|
|
40
|
-
"windowRoot",
|
|
41
|
-
"windowHeader",
|
|
42
|
-
"windowHeaderContent",
|
|
43
|
-
"windowHeaderTitle",
|
|
44
|
-
"windowHeaderMainActions",
|
|
45
|
-
"windowHeaderCancelHandle",
|
|
46
|
-
"windowContent",
|
|
47
|
-
"windowPopupRoot",
|
|
48
|
-
"windowModalRoot",
|
|
49
|
-
"windowLinearProgressRoot",
|
|
50
|
-
"windowLinearProgressBar",
|
|
51
|
-
"windowRootContainer",
|
|
52
|
-
"windowToastiesContainer",
|
|
53
|
-
"windowToastiesContainerTostys",
|
|
54
|
-
"windowToastyContainer",
|
|
55
|
-
"windowToastyMeesageButtonsContainer",
|
|
56
|
-
"windowToastyMessage",
|
|
57
|
-
"windowToastyButtonsContainer",
|
|
58
|
-
"windowToastyPin",
|
|
59
|
-
"windowToastyClose",
|
|
60
|
-
"panelWindowsRoot",
|
|
61
|
-
"panelWindowsButtonContainer",
|
|
62
|
-
"containerLinearProgress",
|
|
63
|
-
"resizeHandle",
|
|
64
|
-
"loaderContainer",
|
|
65
|
-
"containerComponent",
|
|
66
|
-
"selected",
|
|
67
|
-
"colapsed",
|
|
68
|
-
"selectedWindow",
|
|
69
|
-
"isMobile",
|
|
70
|
-
"loading",
|
|
71
|
-
"pinIn",
|
|
72
|
-
"success",
|
|
73
|
-
"info",
|
|
74
|
-
"warning",
|
|
75
|
-
"error"
|
|
76
|
-
], AREAS_VIEWER_CLASS_NAME);
|
|
77
|
-
const useAreasViewerUtilityClasses = (ownerState) => {
|
|
78
|
-
const slots = {
|
|
79
|
-
root: ["root", ownerState.status, ownerState.isMobile && "isMobile", ownerState.isSkeleton && "isSkeleton"],
|
|
80
|
-
areaRoot: ["areaRoot"],
|
|
81
|
-
areasLoadingErrorRoot: ["areasLoadingErrorRoot"],
|
|
82
|
-
areasLoadingErrorLoading: ["areasLoadingErrorLoading"],
|
|
83
|
-
areasLoadingError: ["areasLoadingError"],
|
|
84
|
-
areasLoadingErrorIcon: ["areasLoadingErrorIcon"],
|
|
85
|
-
areasLoadingErrorTitle: ["areasLoadingErrorTitle"],
|
|
86
|
-
areasLoadingErrorDescription: ["areasLoadingErrorDescription"],
|
|
87
|
-
areasLoadingErrorDivider: ["areasLoadingErrorDivider"],
|
|
88
|
-
areaGridLayoutPanelContainer: ["areaGridLayoutPanelContainer"],
|
|
89
|
-
areaGridLayout: ["areaGridLayout"],
|
|
90
|
-
areaGridLayoutPopupsContainer: ["areaGridLayoutPopupsContainer"],
|
|
91
|
-
areasWindowPopUpList: ["areasWindowPopUpList"],
|
|
92
|
-
windowRoot: ["windowRoot"],
|
|
93
|
-
windowRootContainer: ["windowRootContainer"],
|
|
94
|
-
windowHeader: ["windowHeader"],
|
|
95
|
-
windowHeaderTitle: ["windowHeaderTitle"],
|
|
96
|
-
windowHeaderMainActions: ["windowHeaderMainActions"],
|
|
97
|
-
windowHeaderCancelHandle: ["windowHeaderCancelHandle"],
|
|
98
|
-
windowContent: ["windowContent"],
|
|
99
|
-
windowLinearProgressRoot: ["windowLinearProgressRoot"],
|
|
100
|
-
windowLinearProgressBar: ["windowLinearProgressBar"],
|
|
101
|
-
windowPopupRoot: ["windowPopupRoot"],
|
|
102
|
-
windowModalRoot: ["windowModalRoot"],
|
|
103
|
-
selectedWindow: ["selectedWindow"],
|
|
104
|
-
windowToastiesContainer: ["windowToastiesContainer"],
|
|
105
|
-
windowToastiesContainerTostys: ["windowToastiesContainerTostys"],
|
|
106
|
-
windowToastyContainer: ["windowToastiesContainer"],
|
|
107
|
-
windowToastyMeesageButtonsContainer: ["windowToastyMeesageButtonsContainer"],
|
|
108
|
-
windowToastyMessage: ["windowToastyMessage"],
|
|
109
|
-
windowToastyButtonsContainer: ["windowToastyButtonsContainer"],
|
|
110
|
-
windowToastyPin: ["windowToastyPin"],
|
|
111
|
-
windowToastyClose: ["windowToastyClose"],
|
|
112
|
-
panelWindowsRoot: ["panelWindowsRoot"],
|
|
113
|
-
panelWindowsButtonContainer: ["panelWindowsButtonContainer"],
|
|
114
|
-
resizeHandle: ["resizeHandle"],
|
|
115
|
-
loaderContainer: ["loaderContainer"],
|
|
116
|
-
containerComponent: ["containerComponent"]
|
|
117
|
-
};
|
|
118
|
-
return unstable_composeClasses(slots, getComponentUtilityClass(AREAS_VIEWER_CLASS_NAME), {});
|
|
119
|
-
};
|
|
120
|
-
const AreasViewerRoot = styled("div")`
|
|
121
|
-
/* display: flex; */
|
|
122
|
-
width: 100%;
|
|
123
|
-
height: 100%;
|
|
124
|
-
overflow: hidden;
|
|
125
|
-
/* flex-grow: 1; */
|
|
126
|
-
position: relative;
|
|
127
|
-
|
|
128
|
-
//areaRoot
|
|
129
|
-
& .${areasViewerClasses.areaRoot} {
|
|
130
|
-
display: none;
|
|
131
|
-
position: absolute;
|
|
132
|
-
/* flex-grow: 1; */
|
|
133
|
-
flex-direction: row;
|
|
134
|
-
inset: 0;
|
|
135
|
-
/* width: 100%; */
|
|
136
|
-
overflow: hidden;
|
|
137
|
-
justify-content: top;
|
|
138
|
-
align-items: flex-start;
|
|
139
|
-
|
|
140
|
-
visibility: hidden;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
& .${areasViewerClasses.areaRoot}.${areasViewerClasses.selected} {
|
|
144
|
-
display: block;
|
|
145
|
-
visibility: visible;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
&.${areasViewerClasses.isMobile} .${areasViewerClasses.areaRoot} {
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
// areaGridLayoutPanelContainer
|
|
152
|
-
& .${areasViewerClasses.areaGridLayoutPanelContainer} {
|
|
153
|
-
display: flex;
|
|
154
|
-
flex-direction: row;
|
|
155
|
-
height: 100%;
|
|
156
|
-
width: 100%;
|
|
157
|
-
overflow: hidden;
|
|
158
|
-
}
|
|
159
|
-
&.${areasViewerClasses.isMobile} .${areasViewerClasses.areaGridLayoutPanelContainer} {
|
|
160
|
-
flex-direction: column-reverse;
|
|
161
|
-
}
|
|
162
|
-
// areaGridLayout
|
|
163
|
-
& .${areasViewerClasses.areaGridLayout} {
|
|
164
|
-
height: 100% !important;
|
|
165
|
-
overflow: auto;
|
|
166
|
-
flex-grow: 1;
|
|
167
|
-
}
|
|
168
|
-
&.${areasViewerClasses.isMobile} .${areasViewerClasses.areaGridLayout} {
|
|
169
|
-
flex-direction: column-reverse;
|
|
170
|
-
height: unset;
|
|
171
|
-
width: 100%;
|
|
172
|
-
}
|
|
173
|
-
// areaGridLayoutPopupsContainer
|
|
174
|
-
& .${areasViewerClasses.areaGridLayoutPopupsContainer} {
|
|
175
|
-
z-index: 1; //Garantizar q el contenedor de los popus este por encima de los layouts
|
|
176
|
-
// // ' .react-draggable': {
|
|
177
|
-
// // position: 'absolute',
|
|
178
|
-
// // },
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
// PanelWindowsRoot
|
|
182
|
-
& .${areasViewerClasses.panelWindowsRoot} {
|
|
183
|
-
display: flex;
|
|
184
|
-
flex-direction: column;
|
|
185
|
-
position: relative;
|
|
186
|
-
}
|
|
187
|
-
&.${areasViewerClasses.isMobile} .${areasViewerClasses.panelWindowsRoot} {
|
|
188
|
-
flex-direction: row;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
// windowRoot
|
|
192
|
-
& .${areasViewerClasses.windowRoot} {
|
|
193
|
-
inset: 0;
|
|
194
|
-
position: absolute;
|
|
195
|
-
display: flex;
|
|
196
|
-
flex-direction: column;
|
|
197
|
-
/* height: 100%; */
|
|
198
|
-
/* width: 100%; */
|
|
199
|
-
overflow: hidden;
|
|
200
|
-
border: 1px solid gray;
|
|
201
|
-
|
|
202
|
-
background-color: ${(props) => props.theme.palette.background.default};
|
|
203
|
-
padding: ${(props) => props.theme.spacing(0)};
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
& .${areasViewerClasses.windowRoot}.${areasViewerClasses.selected} {
|
|
207
|
-
border-top: 1px solid green;
|
|
208
|
-
}
|
|
209
|
-
// windowHeaderTitle
|
|
210
|
-
& .${areasViewerClasses.windowHeaderTitle} {
|
|
211
|
-
width: 100%;
|
|
212
|
-
max-width: 100%;
|
|
213
|
-
overflow: hidden;
|
|
214
|
-
white-space: nowrap;
|
|
215
|
-
color: ${(props) => props.theme.palette.text.primary};
|
|
216
|
-
text-overflow: ellipsis;
|
|
217
|
-
}
|
|
218
|
-
// windowHeaderMainActions
|
|
219
|
-
& .${areasViewerClasses.windowHeaderMainActions} {
|
|
220
|
-
display: flex;
|
|
221
|
-
|
|
222
|
-
gap: 4px;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
// windowHeaderMainActions
|
|
226
|
-
& .${areasViewerClasses.windowContent} {
|
|
227
|
-
flex-grow: 1;
|
|
228
|
-
position: relative;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
// windowModalRoot
|
|
232
|
-
& .${areasViewerClasses.windowModalRoot} {
|
|
233
|
-
padding: 16px;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
${react_resizable_css}
|
|
237
|
-
|
|
238
|
-
${(props) => props.theme.components?.M4LAreasViewer?.styleOverrides}
|
|
239
|
-
`;
|
|
240
|
-
function WindowHeaderSkeleton(props) {
|
|
241
|
-
const {
|
|
242
|
-
colapsed
|
|
243
|
-
} = props;
|
|
244
|
-
return /* @__PURE__ */ jsx("div", {
|
|
245
|
-
className: clsx(areasViewerClasses.windowHeader),
|
|
246
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
247
|
-
className: areasViewerClasses.windowHeaderContent,
|
|
248
|
-
children: [/* @__PURE__ */ jsx(Skeleton, {
|
|
249
|
-
variant: "circular",
|
|
250
|
-
sx: {
|
|
251
|
-
margin: "0 5px",
|
|
252
|
-
minWidth: "18px",
|
|
253
|
-
minHeight: "18px"
|
|
254
|
-
}
|
|
255
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
256
|
-
style: {
|
|
257
|
-
width: "100%"
|
|
258
|
-
},
|
|
259
|
-
children: /* @__PURE__ */ jsx(Skeleton, {
|
|
260
|
-
variant: "text",
|
|
261
|
-
width: 80,
|
|
262
|
-
height: 16
|
|
263
|
-
})
|
|
264
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
265
|
-
className: areasViewerClasses.windowHeaderCancelHandle,
|
|
266
|
-
children: !colapsed && /* @__PURE__ */ jsxs(Fragment, {
|
|
267
|
-
children: [/* @__PURE__ */ jsx(Skeleton, {
|
|
268
|
-
variant: "circular",
|
|
269
|
-
sx: {
|
|
270
|
-
margin: "0 5px",
|
|
271
|
-
minWidth: "16px",
|
|
272
|
-
minHeight: "16px"
|
|
273
|
-
}
|
|
274
|
-
}), /* @__PURE__ */ jsx(Skeleton, {
|
|
275
|
-
variant: "circular",
|
|
276
|
-
sx: {
|
|
277
|
-
margin: "0 5px",
|
|
278
|
-
minWidth: "16px",
|
|
279
|
-
minHeight: "16px"
|
|
280
|
-
}
|
|
281
|
-
}), /* @__PURE__ */ jsx(Skeleton, {
|
|
282
|
-
variant: "circular",
|
|
283
|
-
sx: {
|
|
284
|
-
margin: "0 5px",
|
|
285
|
-
minWidth: "16px",
|
|
286
|
-
minHeight: "16px"
|
|
287
|
-
}
|
|
288
|
-
})]
|
|
289
|
-
})
|
|
290
|
-
}), /* @__PURE__ */ jsx(Skeleton, {
|
|
291
|
-
variant: "circular",
|
|
292
|
-
sx: {
|
|
293
|
-
margin: "0 5px",
|
|
294
|
-
minWidth: "16px",
|
|
295
|
-
minHeight: "16px"
|
|
296
|
-
}
|
|
297
|
-
}), /* @__PURE__ */ jsx(Skeleton, {
|
|
298
|
-
variant: "circular",
|
|
299
|
-
sx: {
|
|
300
|
-
margin: "0 5px",
|
|
301
|
-
minWidth: "16px",
|
|
302
|
-
minHeight: "16px"
|
|
303
|
-
}
|
|
304
|
-
})]
|
|
305
|
-
})
|
|
306
|
-
});
|
|
307
|
-
}
|
|
308
|
-
function getMainActions(isDesktop, moduleActions) {
|
|
309
|
-
let mainActions = [];
|
|
310
|
-
if (isDesktop !== void 0 && isDesktop) {
|
|
311
|
-
mainActions = mainActions.concat(
|
|
312
|
-
moduleActions.filter((action) => action.visibility === "main")
|
|
313
|
-
);
|
|
314
|
-
}
|
|
315
|
-
mainActions = mainActions.concat(
|
|
316
|
-
moduleActions.filter((action) => action.visibility === "allways")
|
|
317
|
-
);
|
|
318
|
-
return mainActions;
|
|
319
|
-
}
|
|
320
|
-
function getMenuActions(options) {
|
|
321
|
-
const {
|
|
322
|
-
windowId,
|
|
323
|
-
isDesktop,
|
|
324
|
-
moduleActions,
|
|
325
|
-
urlPrefix,
|
|
326
|
-
saveModuleCookies,
|
|
327
|
-
resetModuleCookies,
|
|
328
|
-
version,
|
|
329
|
-
windowOptions = { allowPersistCookies: false },
|
|
330
|
-
getLabel
|
|
331
|
-
} = options;
|
|
332
|
-
let menuActions = [...moduleActions.filter((action) => action.visibility !== "allways")];
|
|
333
|
-
if (isDesktop !== void 0 && isDesktop) {
|
|
334
|
-
menuActions = menuActions.filter((action) => action.visibility === "normal");
|
|
335
|
-
}
|
|
336
|
-
if (windowOptions.allowPersistCookies) {
|
|
337
|
-
const saveCookiesAction = {
|
|
338
|
-
urlIcon: `${urlPrefix}/frontend/components/areas/assets/icons/${ICONS.SAVE_COOKIES}`,
|
|
339
|
-
onClick: () => saveModuleCookies(windowId),
|
|
340
|
-
disabled: false,
|
|
341
|
-
visibility: "normal",
|
|
342
|
-
label: getLabel(getAreasDictionary(DICCTIONARY.label_persist_module_cookies)),
|
|
343
|
-
key: "save_cookies"
|
|
344
|
-
};
|
|
345
|
-
menuActions.push(saveCookiesAction);
|
|
346
|
-
const resetCookiesAction = {
|
|
347
|
-
urlIcon: `${urlPrefix}/frontend/components/areas/assets/icons/${ICONS.RESET_COOKIES}`,
|
|
348
|
-
onClick: () => resetModuleCookies(windowId),
|
|
349
|
-
disabled: false,
|
|
350
|
-
visibility: "normal",
|
|
351
|
-
label: getLabel(getAreasDictionary(DICCTIONARY.label_reset_module_cookies)),
|
|
352
|
-
key: "reset_cookes"
|
|
353
|
-
};
|
|
354
|
-
menuActions.push(resetCookiesAction);
|
|
355
|
-
}
|
|
356
|
-
if (version) {
|
|
357
|
-
const versionAction = {
|
|
358
|
-
urlIcon: `${urlPrefix}/frontend/components/areas/assets/icons/${ICONS.VERSION}`,
|
|
359
|
-
onClick: () => {
|
|
360
|
-
},
|
|
361
|
-
disabled: true,
|
|
362
|
-
visibility: "normal",
|
|
363
|
-
label: version,
|
|
364
|
-
key: "version"
|
|
365
|
-
};
|
|
366
|
-
menuActions.push(versionAction);
|
|
367
|
-
}
|
|
368
|
-
return menuActions;
|
|
369
|
-
}
|
|
370
|
-
function MainActions(props) {
|
|
371
|
-
const {
|
|
372
|
-
windowId
|
|
373
|
-
} = props;
|
|
374
|
-
const moduleActions = useAreasStore((state) => {
|
|
375
|
-
const window = state.hashWindows[windowId];
|
|
376
|
-
return window?.moduleActions || [];
|
|
377
|
-
}, shallow);
|
|
378
|
-
const {
|
|
379
|
-
getLabel
|
|
380
|
-
} = useModuleDictionary();
|
|
381
|
-
const isDesktop = useResponsiveDesktop();
|
|
382
|
-
const mainActions = useMemo(() => {
|
|
383
|
-
return getMainActions(isDesktop, moduleActions);
|
|
384
|
-
}, [moduleActions, isDesktop]);
|
|
385
|
-
return /* @__PURE__ */ jsx("div", {
|
|
386
|
-
className: areasViewerClasses.windowHeaderMainActions,
|
|
387
|
-
children: mainActions.map((mainAction) => {
|
|
388
|
-
const tooltip = mainAction.label !== void 0 ? mainAction.label : getLabel(mainAction.dictionaryId || "");
|
|
389
|
-
const onClick = (e) => {
|
|
390
|
-
mainAction.onClick(e);
|
|
391
|
-
e.stopPropagation();
|
|
392
|
-
};
|
|
393
|
-
return /* @__PURE__ */ jsx(IconButton, {
|
|
394
|
-
src: mainAction.urlIcon || "",
|
|
395
|
-
className: clsx(mainAction.className, "m4l_draggableCancel"),
|
|
396
|
-
onClick,
|
|
397
|
-
"aria-label": mainAction.label,
|
|
398
|
-
disabled: mainAction.disabled,
|
|
399
|
-
tooltip
|
|
400
|
-
}, mainAction.key);
|
|
401
|
-
})
|
|
402
|
-
});
|
|
403
|
-
}
|
|
404
|
-
function Header(props) {
|
|
405
|
-
const {
|
|
406
|
-
areaId,
|
|
407
|
-
windowId,
|
|
408
|
-
emergeType
|
|
409
|
-
} = props;
|
|
410
|
-
const [url_icon, title, moduleActions, onClose, version, windowOptions, fnQueryClose] = useAreasStore((state) => {
|
|
411
|
-
const window = state.hashWindows[windowId];
|
|
412
|
-
return [
|
|
413
|
-
window.url_icon,
|
|
414
|
-
window.title,
|
|
415
|
-
window.moduleActions,
|
|
416
|
-
window.onClose,
|
|
417
|
-
window.version,
|
|
418
|
-
window.windowOptions,
|
|
419
|
-
window.fnQueryClose
|
|
420
|
-
];
|
|
421
|
-
}, shallow);
|
|
422
|
-
const {
|
|
423
|
-
saveModuleCookies,
|
|
424
|
-
resetModuleCookies
|
|
425
|
-
} = useAreasStore((state) => state.windowActions, shallow);
|
|
426
|
-
const maximizedId = useAreasStore((state) => state.hashAreas[areaId].maximizedId, shallow);
|
|
427
|
-
const colapsed = useAreasStore((state) => {
|
|
428
|
-
const currentBreakpoint = state.hashAreas[areaId].currentBreakpoint;
|
|
429
|
-
if (currentBreakpoint) {
|
|
430
|
-
return state.hashAreas[areaId].layouts[currentBreakpoint].find((li) => li.i === windowId)?.colapsed;
|
|
431
|
-
}
|
|
432
|
-
return false;
|
|
433
|
-
}, shallow);
|
|
434
|
-
const {
|
|
435
|
-
maximizeLayout,
|
|
436
|
-
normalizeLayouts,
|
|
437
|
-
colapseLayoutItem,
|
|
438
|
-
unColapseLayoutItem
|
|
439
|
-
} = useAreasStore((state) => state.areaActions, shallow);
|
|
440
|
-
const {
|
|
441
|
-
host_static_assets,
|
|
442
|
-
environment_assets
|
|
443
|
-
} = useEnvironment();
|
|
444
|
-
const isDesktop = useResponsiveDesktop();
|
|
445
|
-
const isSkeleton = useModuleSkeleton();
|
|
446
|
-
const {
|
|
447
|
-
getLabel
|
|
448
|
-
} = useModuleDictionary();
|
|
449
|
-
const urlPrefix = `${host_static_assets}/${environment_assets}`;
|
|
450
|
-
const menuActions = useMemo(() => {
|
|
451
|
-
return getMenuActions({
|
|
452
|
-
windowId,
|
|
453
|
-
isDesktop,
|
|
454
|
-
moduleActions,
|
|
455
|
-
urlPrefix,
|
|
456
|
-
saveModuleCookies,
|
|
457
|
-
resetModuleCookies,
|
|
458
|
-
version,
|
|
459
|
-
windowOptions,
|
|
460
|
-
getLabel
|
|
461
|
-
});
|
|
462
|
-
}, [moduleActions, isDesktop]);
|
|
463
|
-
const onCloseLocal = () => {
|
|
464
|
-
const fnClose = fnQueryClose || onClose;
|
|
465
|
-
fnClose && fnClose(windowId);
|
|
466
|
-
};
|
|
467
|
-
const maxNormalize = (e) => {
|
|
468
|
-
if (maximizedId === windowId) {
|
|
469
|
-
normalizeLayouts(areaId);
|
|
470
|
-
} else {
|
|
471
|
-
maximizeLayout(areaId, windowId);
|
|
472
|
-
}
|
|
473
|
-
e.stopPropagation();
|
|
474
|
-
};
|
|
475
|
-
const colapedToggle = (e) => {
|
|
476
|
-
if (!colapsed) {
|
|
477
|
-
colapseLayoutItem(areaId, windowId);
|
|
478
|
-
} else {
|
|
479
|
-
unColapseLayoutItem(areaId, windowId);
|
|
480
|
-
}
|
|
481
|
-
e.stopPropagation();
|
|
482
|
-
};
|
|
483
|
-
if (isSkeleton) {
|
|
484
|
-
return /* @__PURE__ */ jsx(WindowHeaderSkeleton, {});
|
|
485
|
-
}
|
|
486
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
487
|
-
className: clsx(areasViewerClasses.windowHeader, "m4l_draggable_handle"),
|
|
488
|
-
children: [/* @__PURE__ */ jsx(LinearProgressIndeterminate, {}), /* @__PURE__ */ jsxs("div", {
|
|
489
|
-
className: areasViewerClasses.windowHeaderContent,
|
|
490
|
-
children: [/* @__PURE__ */ jsx(Icon, {
|
|
491
|
-
src: url_icon,
|
|
492
|
-
size: "medium"
|
|
493
|
-
}), /* @__PURE__ */ jsx(Typography, {
|
|
494
|
-
className: areasViewerClasses.windowHeaderTitle,
|
|
495
|
-
variant: "h5",
|
|
496
|
-
children: `${title}`
|
|
497
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
498
|
-
className: areasViewerClasses.windowHeaderCancelHandle,
|
|
499
|
-
children: [!colapsed && /* @__PURE__ */ jsx(MainActions, {
|
|
500
|
-
windowId
|
|
501
|
-
}), !colapsed && menuActions.length > 0 && /* @__PURE__ */ jsx(MemonizedMenuActions, {
|
|
502
|
-
arrowType: "no-arrow",
|
|
503
|
-
marginTop: "12px!important",
|
|
504
|
-
marginLeft: "14px!important",
|
|
505
|
-
anchorOrigin: {
|
|
506
|
-
vertical: "bottom",
|
|
507
|
-
horizontal: "right"
|
|
508
|
-
},
|
|
509
|
-
transformOrigin: {
|
|
510
|
-
vertical: "top",
|
|
511
|
-
horizontal: "right"
|
|
512
|
-
},
|
|
513
|
-
menuActions,
|
|
514
|
-
toolTip: getLabel(getAreasDictionary(DICCTIONARY.label_module_actions))
|
|
515
|
-
}), !colapsed && (emergeType === "layout" || emergeType === "popup") && /* @__PURE__ */ jsx(IconButton, {
|
|
516
|
-
className: "m4l_draggableCancel",
|
|
517
|
-
onClick: maxNormalize,
|
|
518
|
-
"aria-label": "click",
|
|
519
|
-
src: maximizedId === windowId ? `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.NORMALIZE}` : `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.MAXIMIZE}`,
|
|
520
|
-
tooltip: getLabel(getAreasDictionary(maximizedId === windowId ? DICCTIONARY.label_minimize_window : DICCTIONARY.label_maximize_window))
|
|
521
|
-
}), !maximizedId && (emergeType === "layout" || emergeType === "popup") && /* @__PURE__ */ jsx(IconButton, {
|
|
522
|
-
className: "m4l_draggableCancel",
|
|
523
|
-
onClick: colapedToggle,
|
|
524
|
-
"aria-label": "click",
|
|
525
|
-
src: !colapsed ? `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.COLAPSE}` : `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.UNCOLPASE}`,
|
|
526
|
-
tooltip: getLabel(getAreasDictionary(!colapsed ? DICCTIONARY.label_collapse_window : DICCTIONARY.label_uncollapse_window))
|
|
527
|
-
}), onClose && /* @__PURE__ */ jsx(IconButton, {
|
|
528
|
-
className: "m4l_draggableCancel",
|
|
529
|
-
onPointerDown: onCloseLocal,
|
|
530
|
-
"aria-label": "click",
|
|
531
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.CLOSE}`,
|
|
532
|
-
tooltip: getLabel(getAreasDictionary(DICCTIONARY.label_close_window))
|
|
533
|
-
})]
|
|
534
|
-
})]
|
|
535
|
-
})]
|
|
536
|
-
});
|
|
537
|
-
}
|
|
538
|
-
const MicroFrontend = (props) => {
|
|
539
|
-
return /* @__PURE__ */ jsx(MFLoader, {
|
|
540
|
-
...props
|
|
541
|
-
});
|
|
542
|
-
};
|
|
543
|
-
const MemonizedMicroFrontend = React__default.memo(MicroFrontend);
|
|
544
|
-
const Component = (props) => {
|
|
545
|
-
const {
|
|
546
|
-
component,
|
|
547
|
-
dynamicMFStore,
|
|
548
|
-
windowTools
|
|
549
|
-
} = props;
|
|
550
|
-
return /* @__PURE__ */ jsx(WindowToolsMFProvider, {
|
|
551
|
-
...windowTools,
|
|
552
|
-
children: /* @__PURE__ */ jsx(DynamicMFParmsProvider, {
|
|
553
|
-
store: dynamicMFStore,
|
|
554
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
555
|
-
className: areasViewerClasses.containerComponent,
|
|
556
|
-
children: typeof component === "function" ? component({
|
|
557
|
-
windowTools,
|
|
558
|
-
dynamicMFStore
|
|
559
|
-
}) : component
|
|
560
|
-
})
|
|
561
|
-
})
|
|
562
|
-
});
|
|
563
|
-
};
|
|
564
|
-
React__default.memo(Component);
|
|
565
|
-
const WindowRoot = styled("div")`
|
|
566
|
-
inset: 0;
|
|
567
|
-
position: absolute;
|
|
568
|
-
display: flex;
|
|
569
|
-
flex-direction: column;
|
|
570
|
-
/* height: 100%; */
|
|
571
|
-
/* width: 100%; */
|
|
572
|
-
overflow: hidden;
|
|
573
|
-
border: 1px solid gray;
|
|
574
|
-
|
|
575
|
-
background-color: ${(props) => props.theme.palette.background.default};
|
|
576
|
-
padding: ${(props) => props.theme.spacing(0)};
|
|
577
|
-
&.${areasViewerClasses.selected} {
|
|
578
|
-
border-top: 1px solid green;
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
// windowHeader
|
|
582
|
-
/*
|
|
583
|
-
&.${areasViewerClasses.loading} .${areasViewerClasses.windowHeader} {
|
|
584
|
-
border-bottom: 2px solid red !important;
|
|
585
|
-
}
|
|
586
|
-
*/
|
|
587
|
-
// windowHeaderTitle
|
|
588
|
-
& .${areasViewerClasses.windowHeaderTitle} {
|
|
589
|
-
width: 100%;
|
|
590
|
-
max-width: 100%;
|
|
591
|
-
overflow: hidden;
|
|
592
|
-
white-space: nowrap;
|
|
593
|
-
color: ${(props) => props.theme.palette.text.primary};
|
|
594
|
-
text-overflow: ellipsis;
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
& .${areasViewerClasses.windowHeaderCancelHandle} {
|
|
598
|
-
display: flex;
|
|
599
|
-
cursor: default;
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
// windowHeaderMainActions
|
|
603
|
-
& .${areasViewerClasses.windowHeaderMainActions} {
|
|
604
|
-
display: flex;
|
|
605
|
-
|
|
606
|
-
gap: 4px;
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
// windowHeaderMainActions
|
|
610
|
-
& .${areasViewerClasses.windowContent} {
|
|
611
|
-
flex-grow: 1;
|
|
612
|
-
position: relative;
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
& .${areasViewerClasses.windowContent}.${areasViewerClasses.colapsed} {
|
|
616
|
-
display: none !important;
|
|
617
|
-
}
|
|
618
|
-
// windowModalRoot
|
|
619
|
-
& .${areasViewerClasses.windowModalRoot} {
|
|
620
|
-
padding: 16px;
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
// windowToastiesContainer
|
|
624
|
-
& .${areasViewerClasses.windowToastiesContainer} {
|
|
625
|
-
padding: 4px;
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
// windowToastyContainer
|
|
629
|
-
& .${areasViewerClasses.windowToastyContainer} {
|
|
630
|
-
display: flex;
|
|
631
|
-
flex-direction: column;
|
|
632
|
-
}
|
|
633
|
-
// windowToastyContainer
|
|
634
|
-
& .${areasViewerClasses.windowToastyContainer}.${areasViewerClasses.success} {
|
|
635
|
-
background-color: ${(props) => props.theme.palette.success.main};
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
// windowToastyMeesageButtonsContainer
|
|
639
|
-
& .${areasViewerClasses.windowToastyMeesageButtonsContainer} {
|
|
640
|
-
display: flex;
|
|
641
|
-
}
|
|
642
|
-
& .MuiLinearProgress-root {
|
|
643
|
-
width: 100%;
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
// windowToastyMessage
|
|
647
|
-
& .${areasViewerClasses.windowToastyMessage} {
|
|
648
|
-
flex-grow: 1;
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
// windowToastyContainer
|
|
652
|
-
& .${areasViewerClasses.windowToastyPin}.${areasViewerClasses.pinIn} {
|
|
653
|
-
border: 1px solid red;
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
${(props) => props.theme.components?.M4LAreasViewerWindow?.styleOverrides}
|
|
657
|
-
`;
|
|
658
|
-
function Toasty(props) {
|
|
659
|
-
const {
|
|
660
|
-
windowId,
|
|
661
|
-
toastyId
|
|
662
|
-
} = props;
|
|
663
|
-
const toasty = useAreasStore((state) => state.hashWindows[windowId].hashToasties[toastyId], shallow);
|
|
664
|
-
const {
|
|
665
|
-
pinToast: pinToasty,
|
|
666
|
-
closeToast: closeToasty
|
|
667
|
-
} = useAreasStore((state) => state.windowActions, shallow);
|
|
668
|
-
const {
|
|
669
|
-
host_static_assets,
|
|
670
|
-
environment_assets
|
|
671
|
-
} = useEnvironment();
|
|
672
|
-
return /* @__PURE__ */ jsx("div", {
|
|
673
|
-
className: clsx(areasViewerClasses.windowToastyContainer, areasViewerClasses[toasty.type]),
|
|
674
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
675
|
-
className: areasViewerClasses.windowToastyMeesageButtonsContainer,
|
|
676
|
-
children: [/* @__PURE__ */ jsxs("div", {
|
|
677
|
-
className: areasViewerClasses.windowToastyMessage,
|
|
678
|
-
children: [toasty.timer ? /* @__PURE__ */ jsx(LinearProgress, {
|
|
679
|
-
variant: "determinate",
|
|
680
|
-
value: toasty.percentExecuted
|
|
681
|
-
}) : null, toasty.message]
|
|
682
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
683
|
-
className: areasViewerClasses.windowToastyButtonsContainer,
|
|
684
|
-
children: [/* @__PURE__ */ jsx(IconButton, {
|
|
685
|
-
className: clsx(areasViewerClasses.windowToastyPin, toasty.timer ? null : areasViewerClasses.pinIn),
|
|
686
|
-
onClick: () => {
|
|
687
|
-
pinToasty(windowId, toastyId);
|
|
688
|
-
},
|
|
689
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.TOASTY_PIN}`
|
|
690
|
-
}), /* @__PURE__ */ jsx(IconButton, {
|
|
691
|
-
className: areasViewerClasses.windowToastyClose,
|
|
692
|
-
onClick: () => {
|
|
693
|
-
closeToasty(windowId, toastyId);
|
|
694
|
-
},
|
|
695
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.TOASTY_CLOSE}`
|
|
696
|
-
})]
|
|
697
|
-
})]
|
|
698
|
-
})
|
|
699
|
-
});
|
|
700
|
-
}
|
|
701
|
-
function Toasties(props) {
|
|
702
|
-
const {
|
|
703
|
-
windowId
|
|
704
|
-
} = props;
|
|
705
|
-
const tosties = useAreasStore((state) => state.hashWindows[windowId].toasties, shallow);
|
|
706
|
-
if (tosties.length === 0) {
|
|
707
|
-
return null;
|
|
708
|
-
}
|
|
709
|
-
return /* @__PURE__ */ jsx("div", {
|
|
710
|
-
className: areasViewerClasses.windowToastiesContainer,
|
|
711
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
712
|
-
className: areasViewerClasses.windowToastiesContainerTostys,
|
|
713
|
-
children: tosties.map((t) => {
|
|
714
|
-
return /* @__PURE__ */ jsx(Toasty, {
|
|
715
|
-
windowId,
|
|
716
|
-
toastyId: t.id
|
|
717
|
-
}, t.id);
|
|
718
|
-
})
|
|
719
|
-
})
|
|
720
|
-
});
|
|
721
|
-
}
|
|
722
|
-
const Window = (props) => {
|
|
723
|
-
const {
|
|
724
|
-
areaId,
|
|
725
|
-
windowId
|
|
726
|
-
} = props;
|
|
727
|
-
const [emergeType, moduleId, winType] = useAreasStore((state) => {
|
|
728
|
-
return [state.hashWindows[windowId]?.emergeType, state.hashWindows[windowId]?.moduleId, state.hashWindows[windowId]?.winType];
|
|
729
|
-
}, shallow);
|
|
730
|
-
const selected = useAreasStore((state) => {
|
|
731
|
-
return emergeType === "layout" ? state.hashAreas[areaId]?.currentLayoutId : state.hashAreas[areaId]?.currentPopUpId;
|
|
732
|
-
}) === windowId;
|
|
733
|
-
const mfProps = useAreasStore((state) => state.hashWindows[windowId]?.mfProps, shallow);
|
|
734
|
-
const component = useAreasStore((state) => state.hashWindows[windowId]?.component, shallow);
|
|
735
|
-
const loading = useAreasStore((state) => state.hashWindows[windowId]?.loading, shallow);
|
|
736
|
-
const status = useAreasStore((state) => state.hashWindows[windowId]?.status, shallow);
|
|
737
|
-
const dynamicMFStore = useAreasStore((state) => state.hashWindows[windowId]?.dynamicMFStore, shallow);
|
|
738
|
-
const {
|
|
739
|
-
setActions,
|
|
740
|
-
getCookie,
|
|
741
|
-
getCookies,
|
|
742
|
-
setCookie,
|
|
743
|
-
close,
|
|
744
|
-
startProgress,
|
|
745
|
-
stopProgress,
|
|
746
|
-
toast,
|
|
747
|
-
setFnQueryClose
|
|
748
|
-
} = useAreasStore((state) => state.windowActions, shallow);
|
|
749
|
-
const {
|
|
750
|
-
selectLayout
|
|
751
|
-
} = useAreasStore((state) => state.areaActions, shallow);
|
|
752
|
-
const {
|
|
753
|
-
loadCookiesFromApi
|
|
754
|
-
} = useAreasStore((state) => state.windowActions, shallow);
|
|
755
|
-
const onTouch = () => {
|
|
756
|
-
if (!selected) {
|
|
757
|
-
selectLayout(areaId, props.windowId);
|
|
758
|
-
}
|
|
759
|
-
};
|
|
760
|
-
const windowTools = useMemo(() => ({
|
|
761
|
-
getWindowId: () => windowId,
|
|
762
|
-
setActions: (newActions, version) => {
|
|
763
|
-
setActions(windowId, newActions, version);
|
|
764
|
-
},
|
|
765
|
-
getCookie: (id) => getCookie(windowId, id),
|
|
766
|
-
getCookies: (type) => getCookies(windowId, type),
|
|
767
|
-
setCookie: (id, type, cookie) => {
|
|
768
|
-
setCookie(windowId, id, type, cookie);
|
|
769
|
-
},
|
|
770
|
-
close: () => close(windowId),
|
|
771
|
-
startProgress: () => startProgress(windowId),
|
|
772
|
-
stopProgress: () => stopProgress(windowId),
|
|
773
|
-
setFnQueryClose: (fnQueryClose) => {
|
|
774
|
-
setFnQueryClose(windowId, fnQueryClose);
|
|
775
|
-
},
|
|
776
|
-
toast: (toastyOptions) => {
|
|
777
|
-
toast(windowId, toastyOptions);
|
|
778
|
-
}
|
|
779
|
-
}), []);
|
|
780
|
-
useEffect(() => {
|
|
781
|
-
if (status === "init") {
|
|
782
|
-
loadCookiesFromApi(windowId);
|
|
783
|
-
}
|
|
784
|
-
}, [status]);
|
|
785
|
-
if (status === void 0) {
|
|
786
|
-
return null;
|
|
787
|
-
}
|
|
788
|
-
return /* @__PURE__ */ jsx(WindowRoot, {
|
|
789
|
-
role: "presentation",
|
|
790
|
-
className: clsx(areasViewerClasses.windowRoot, selected ? areasViewerClasses.selectedWindow : null, loading ? areasViewerClasses.loading : null, emergeType === "popup" ? areasViewerClasses.windowPopupRoot : null, emergeType === "modal" ? areasViewerClasses.windowModalRoot : null),
|
|
791
|
-
onMouseDown: onTouch,
|
|
792
|
-
...process.env.NODE_ENV !== "production" ? {
|
|
793
|
-
[TEST_PROP_ID]: getNameDataTestId(AREAS_VIEWER_CLASS_NAME, "windowRoot", `${emergeType}`)
|
|
794
|
-
} : {},
|
|
795
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
796
|
-
className: areasViewerClasses.windowRootContainer,
|
|
797
|
-
children: [/* @__PURE__ */ jsx(Header, {
|
|
798
|
-
areaId,
|
|
799
|
-
windowId,
|
|
800
|
-
emergeType
|
|
801
|
-
}), /* @__PURE__ */ jsx(Toasties, {
|
|
802
|
-
windowId
|
|
803
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
804
|
-
className: clsx(
|
|
805
|
-
areasViewerClasses.windowContent
|
|
806
|
-
),
|
|
807
|
-
children: [status === "init" ? /* @__PURE__ */ jsx(Fragment, {
|
|
808
|
-
children: "Cargando..."
|
|
809
|
-
}) : null, status === "loaded" ? winType === "microfrontend" ? /* @__PURE__ */ jsx(MemonizedMicroFrontend, {
|
|
810
|
-
moduleId,
|
|
811
|
-
dynamicMFStore,
|
|
812
|
-
windowTools,
|
|
813
|
-
...mfProps
|
|
814
|
-
}) : /* @__PURE__ */ jsx(Component, {
|
|
815
|
-
moduleId,
|
|
816
|
-
dynamicMFStore,
|
|
817
|
-
windowTools,
|
|
818
|
-
component
|
|
819
|
-
}) : null]
|
|
820
|
-
})]
|
|
821
|
-
})
|
|
822
|
-
});
|
|
823
|
-
};
|
|
824
|
-
React__default.memo(Window);
|
|
825
|
-
const ResizeHandle = React__default.forwardRef((props, ref) => {
|
|
826
|
-
const {
|
|
827
|
-
handleAxis,
|
|
828
|
-
...restProps
|
|
829
|
-
} = props;
|
|
830
|
-
return /* @__PURE__ */ jsx("div", {
|
|
831
|
-
ref,
|
|
832
|
-
className: clsx(`react-resizable-handle react-resizable-handle-${handleAxis}`, areasViewerClasses.resizeHandle),
|
|
833
|
-
...restProps
|
|
834
|
-
});
|
|
835
|
-
});
|
|
836
|
-
const ResponsiveGridLayout = withSizeProvider(Responsive);
|
|
837
|
-
const AreaGridLayout = (props) => {
|
|
838
|
-
const {
|
|
839
|
-
areaId
|
|
840
|
-
} = props;
|
|
841
|
-
const hashLayoutItems = useAreasStore((state) => state.hashAreas[areaId].layoutItemsIds, shallow);
|
|
842
|
-
const layouts = useAreasStore((state) => state.hashAreas[areaId].layouts, shallow);
|
|
843
|
-
const breakpoints = useAreasStore((state) => state.hashAreas[areaId].breakpoints, shallow);
|
|
844
|
-
const maximizedId = useAreasStore((state) => state.hashAreas[areaId].maximizedId, shallow);
|
|
845
|
-
const cols = useAreasStore((state) => state.hashAreas[areaId].cols, shallow);
|
|
846
|
-
const {
|
|
847
|
-
onBreakpointsLayoutsChange,
|
|
848
|
-
onContainerChange
|
|
849
|
-
} = useAreasStore((state) => state.areaActions, shallow);
|
|
850
|
-
return /* @__PURE__ */ jsx(
|
|
851
|
-
ResponsiveGridLayout,
|
|
852
|
-
{
|
|
853
|
-
autoSize: false,
|
|
854
|
-
compactType: "vertical",
|
|
855
|
-
measureBeforeMount: true,
|
|
856
|
-
resizeHandles: ["nw", "se"],
|
|
857
|
-
className: clsx(areasViewerClasses.areaGridLayout, `${areasViewerClasses.areaGridLayout}-${areaId}`),
|
|
858
|
-
layouts,
|
|
859
|
-
onLayoutChange: (layout, newLayouts) => onBreakpointsLayoutsChange(areaId, layout, newLayouts),
|
|
860
|
-
draggableHandle: ".m4l_draggable_handle",
|
|
861
|
-
draggableCancel: `.${areasViewerClasses.windowHeaderCancelHandle}`,
|
|
862
|
-
layoutItemRender: (p) => {
|
|
863
|
-
if (hashLayoutItems.indexOf(p.i) === -1) {
|
|
864
|
-
console.debug("NO EXISTE window", hashLayoutItems, p.i);
|
|
865
|
-
return /* @__PURE__ */ jsx(Fragment, {});
|
|
866
|
-
}
|
|
867
|
-
if (p.type === "placeholder") {
|
|
868
|
-
return /* @__PURE__ */ jsx("div", {});
|
|
869
|
-
}
|
|
870
|
-
return /* @__PURE__ */ jsx(Window, {
|
|
871
|
-
windowId: p.i,
|
|
872
|
-
areaId
|
|
873
|
-
});
|
|
874
|
-
},
|
|
875
|
-
breakpoints,
|
|
876
|
-
colapsedHeight: RESPONSIVE_COLAPSED_HEIGHTS,
|
|
877
|
-
rowHeight: RESPONSIVE_ROW_HEIGHTS,
|
|
878
|
-
cols,
|
|
879
|
-
containerMargin: [MARGIN_GRIDLAYOUT, MARGIN_GRIDLAYOUT],
|
|
880
|
-
containerPadding: [PADDING_GRIDLAYOUT, PADDING_GRIDLAYOUT],
|
|
881
|
-
onContainerChange: (e) => {
|
|
882
|
-
onContainerChange(areaId, e);
|
|
883
|
-
},
|
|
884
|
-
preventCollision: false,
|
|
885
|
-
maximizeId: maximizedId,
|
|
886
|
-
resizeHandle: /* @__PURE__ */ jsx(ResizeHandle, {})
|
|
887
|
-
}
|
|
888
|
-
);
|
|
889
|
-
};
|
|
890
|
-
const PanelWindows = (props) => {
|
|
891
|
-
const {
|
|
892
|
-
areaId
|
|
893
|
-
} = props;
|
|
894
|
-
const status = useAreasStore((state) => state.hashAreas[areaId].status);
|
|
895
|
-
const maximizedId = useAreasStore((state) => state.hashAreas[areaId].maximizedId);
|
|
896
|
-
const maximizedIdParent = useAreasStore((state) => state.hashWindows[maximizedId || ""]?.parentLayoutId || void 0);
|
|
897
|
-
const hashLayoutItems = useAreasStore((state) => state.hashAreas[areaId].layoutItemsIds.filter((itemId) => state.hashWindows[itemId].emergeType === "layout").map((key) => ({
|
|
898
|
-
i: key,
|
|
899
|
-
url_icon: state.hashWindows[key].url_icon,
|
|
900
|
-
title: state.hashWindows[key].title,
|
|
901
|
-
moduleId: state.hashWindows[key].moduleId,
|
|
902
|
-
emergeType: state.hashWindows[key].emergeType,
|
|
903
|
-
windowId: state.hashWindows[key].windowId
|
|
904
|
-
})), shallow);
|
|
905
|
-
const {
|
|
906
|
-
maximizeLayout
|
|
907
|
-
} = useAreasStore((state) => state.areaActions);
|
|
908
|
-
const onTouched = (layoutId) => {
|
|
909
|
-
maximizeLayout(areaId, layoutId);
|
|
910
|
-
};
|
|
911
|
-
const location = useLocation();
|
|
912
|
-
const searchParams = new URLSearchParams(location.search);
|
|
913
|
-
const currentParam = searchParams.get("module");
|
|
914
|
-
if (status === "loaded") {
|
|
915
|
-
if (!maximizedId || hashLayoutItems.length < 2) {
|
|
916
|
-
return null;
|
|
917
|
-
}
|
|
918
|
-
return /* @__PURE__ */ jsx("div", {
|
|
919
|
-
className: areasViewerClasses.panelWindowsRoot,
|
|
920
|
-
children: hashLayoutItems.map((kl) => {
|
|
921
|
-
return /* @__PURE__ */ jsx("div", {
|
|
922
|
-
className: clsx(areasViewerClasses.panelWindowsButtonContainer, maximizedId === kl.i && kl.emergeType !== "popup" || maximizedIdParent === kl.windowId && kl.moduleId === currentParam ? areasViewerClasses.selected : null),
|
|
923
|
-
children: /* @__PURE__ */ jsx(IconButton, {
|
|
924
|
-
src: kl.url_icon,
|
|
925
|
-
size: "small",
|
|
926
|
-
onClick: () => onTouched(kl.i),
|
|
927
|
-
tooltip: maximizedId !== kl.i ? kl.title : void 0
|
|
928
|
-
})
|
|
929
|
-
}, kl.i);
|
|
930
|
-
})
|
|
931
|
-
});
|
|
932
|
-
} else {
|
|
933
|
-
return null;
|
|
934
|
-
}
|
|
935
|
-
};
|
|
936
|
-
const InnerForHooks = (props) => {
|
|
937
|
-
const {
|
|
938
|
-
areaId
|
|
939
|
-
} = props;
|
|
940
|
-
const isDesktop = useResponsiveDesktop();
|
|
941
|
-
const status = useAreasStore((state) => state.hashAreas[areaId].status);
|
|
942
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
943
|
-
className: clsx(areasViewerClasses.areaGridLayoutPanelContainer, `${areasViewerClasses.areaGridLayoutPanelContainer}-${areaId}`),
|
|
944
|
-
children: [
|
|
945
|
-
status === "loaded" ? /* @__PURE__ */ jsx(AreaGridLayout, {
|
|
946
|
-
areaId
|
|
947
|
-
}) : /* @__PURE__ */ jsx(LoadingError, {
|
|
948
|
-
status,
|
|
949
|
-
action: () => {
|
|
950
|
-
}
|
|
951
|
-
}),
|
|
952
|
-
isDesktop ? /* @__PURE__ */ jsx(PanelWindows, {
|
|
953
|
-
areaId
|
|
954
|
-
}) : null
|
|
955
|
-
]
|
|
956
|
-
});
|
|
957
|
-
};
|
|
958
|
-
const Area = (props) => {
|
|
959
|
-
const {
|
|
960
|
-
selected,
|
|
961
|
-
areaId
|
|
962
|
-
} = props;
|
|
963
|
-
const classesAreaRoot = useAreasStore((state) => state.viwerClasses.areaRoot);
|
|
964
|
-
const status = useAreasStore((state) => state.hashAreas[areaId].status);
|
|
965
|
-
if (status === "init") {
|
|
966
|
-
return null;
|
|
967
|
-
}
|
|
968
|
-
return /* @__PURE__ */ jsx("div", {
|
|
969
|
-
className: clsx(classesAreaRoot, selected ? areasViewerClasses.selected : null, status === "loading" ? areasViewerClasses.loading : null),
|
|
970
|
-
children: /* @__PURE__ */ jsx(InnerForHooks, {
|
|
971
|
-
areaId
|
|
972
|
-
})
|
|
973
|
-
});
|
|
974
|
-
};
|
|
975
|
-
Area.displayName = "Area";
|
|
976
|
-
styled("div")(({ theme }) => ({
|
|
977
|
-
display: "flex",
|
|
978
|
-
flexDirection: "column",
|
|
979
|
-
height: "100%",
|
|
980
|
-
overflow: "hidden",
|
|
981
|
-
padding: theme.spacing(3)
|
|
982
|
-
}));
|
|
983
|
-
const WrapperWindowModal = styled(Dialog)(({ theme }) => ({
|
|
984
|
-
hola: 1,
|
|
985
|
-
backgroundColor: theme.palette.background.paper,
|
|
986
|
-
"& .MuiDialog-container": {},
|
|
987
|
-
"&.m4l_selected": {
|
|
988
|
-
borderTop: "1px solid green"
|
|
989
|
-
},
|
|
990
|
-
...theme.components?.M4LAreasViewerModal?.styleOverrides
|
|
991
|
-
}));
|
|
992
|
-
const WindowModal = (props) => {
|
|
993
|
-
const {
|
|
994
|
-
windowId
|
|
995
|
-
} = props;
|
|
996
|
-
const {
|
|
997
|
-
onClose
|
|
998
|
-
} = useAreasStore((state) => state.hashWindowsModals[windowId]);
|
|
999
|
-
const {
|
|
1000
|
-
host_static_assets,
|
|
1001
|
-
environment_assets
|
|
1002
|
-
} = useEnvironment();
|
|
1003
|
-
const isDesktop = useResponsiveDesktop();
|
|
1004
|
-
const DragabblePaperComponent = (_props) => {
|
|
1005
|
-
return /* @__PURE__ */ jsx(cjs.exports, {
|
|
1006
|
-
handle: ".m4l_draggable_handle",
|
|
1007
|
-
bounds: "parent",
|
|
1008
|
-
children: /* @__PURE__ */ jsx(ResizeableWindow, {
|
|
1009
|
-
width: props.windowProps?.width || 400,
|
|
1010
|
-
height: props.windowProps?.height || 300,
|
|
1011
|
-
handle: (resizeHandle, ref) => /* @__PURE__ */ jsx("div", {
|
|
1012
|
-
ref,
|
|
1013
|
-
children: /* @__PURE__ */ jsx(Icon, {
|
|
1014
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.RESIZE}`,
|
|
1015
|
-
className: `custom-handle custom-handle-${resizeHandle}`
|
|
1016
|
-
})
|
|
1017
|
-
}, resizeHandle),
|
|
1018
|
-
children: /* @__PURE__ */ jsx(Window, {
|
|
1019
|
-
...props
|
|
1020
|
-
})
|
|
1021
|
-
})
|
|
1022
|
-
});
|
|
1023
|
-
};
|
|
1024
|
-
function PaperComponent(_props) {
|
|
1025
|
-
return /* @__PURE__ */ jsx(Window, {
|
|
1026
|
-
...props
|
|
1027
|
-
});
|
|
1028
|
-
}
|
|
1029
|
-
return /* @__PURE__ */ jsx(WrapperWindowModal, {
|
|
1030
|
-
className: areasViewerClasses.windowModalRoot,
|
|
1031
|
-
open: true,
|
|
1032
|
-
scroll: "paper",
|
|
1033
|
-
onKeyDown: (event) => {
|
|
1034
|
-
if (event.key === "Escape") {
|
|
1035
|
-
onClose && onClose(windowId);
|
|
1036
|
-
}
|
|
1037
|
-
},
|
|
1038
|
-
"aria-labelledby": "child-modal-title",
|
|
1039
|
-
"aria-describedby": "child-modal-description",
|
|
1040
|
-
PaperComponent: isDesktop ? DragabblePaperComponent : PaperComponent,
|
|
1041
|
-
maxWidth: false,
|
|
1042
|
-
fullWidth: !isDesktop,
|
|
1043
|
-
fullScreen: false,
|
|
1044
|
-
disableEnforceFocus: true
|
|
1045
|
-
});
|
|
1046
|
-
};
|
|
1047
|
-
const MemonizedWindowModal = React__default.memo(WindowModal);
|
|
1048
|
-
function AreasViewer() {
|
|
1049
|
-
const areas = useAreasStore((state) => state.areasIds, shallow);
|
|
1050
|
-
const windowsModals = useAreasStore((state) => state.windowsModals);
|
|
1051
|
-
const hashWindowsModals = useAreasStore((state) => state.hashWindowsModals);
|
|
1052
|
-
const currentArea = useAreasStore((state) => state.currentAreaId);
|
|
1053
|
-
const status = useAreasStore((state) => state.ownerState.status);
|
|
1054
|
-
const classesRoot = useAreasStore((state) => state.viwerClasses.root);
|
|
1055
|
-
const {
|
|
1056
|
-
init
|
|
1057
|
-
} = useAreasStore((state) => state.areasActions);
|
|
1058
|
-
return /* @__PURE__ */ jsxs(Fragment, {
|
|
1059
|
-
children: [/* @__PURE__ */ jsx(AreasViewerRoot, {
|
|
1060
|
-
className: classesRoot,
|
|
1061
|
-
...process.env.NODE_ENV !== "production" ? {
|
|
1062
|
-
[TEST_PROP_ID]: getNameDataTestId(AREAS_VIEWER_CLASS_NAME, "root", "")
|
|
1063
|
-
} : {},
|
|
1064
|
-
children: status === "loaded" ? areas.map((area) => {
|
|
1065
|
-
return /* @__PURE__ */ jsx(Area, {
|
|
1066
|
-
areaId: area,
|
|
1067
|
-
selected: currentArea === area
|
|
1068
|
-
}, area);
|
|
1069
|
-
}) : /* @__PURE__ */ jsx(LoadingError, {
|
|
1070
|
-
status,
|
|
1071
|
-
action: () => init()
|
|
1072
|
-
})
|
|
1073
|
-
}), windowsModals.map((wm) => {
|
|
1074
|
-
if (hashWindowsModals[wm]) {
|
|
1075
|
-
return /* @__PURE__ */ jsx(MemonizedWindowModal, {
|
|
1076
|
-
...hashWindowsModals[wm]
|
|
1077
|
-
}, wm);
|
|
1078
|
-
}
|
|
1079
|
-
return null;
|
|
1080
|
-
})]
|
|
1081
|
-
});
|
|
1082
|
-
}
|
|
1083
|
-
export {
|
|
1084
|
-
AreasViewer as A,
|
|
1085
|
-
useAreasViewerUtilityClasses as u
|
|
1086
|
-
};
|