@m4l/components 0.1.74 → 0.1.76
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 +123 -1
- package/components/AccountPopover/classes/constants.d.ts +1 -1
- package/components/AccountPopover/classes/index.d.ts +12 -1
- package/components/AccountPopover/classes/types.d.ts +14 -1
- package/components/AccountPopover/index.47cf6c43.js +273 -0
- package/components/{AppBar → AccountPopover}/subcomponents/MyAvatar/createAvatar.d.ts +1 -1
- package/components/AccountPopover/subcomponents/PopOver/types.d.ts +2 -5
- package/components/AccountPopover/types.d.ts +13 -0
- package/components/AppBar/classes/index.d.ts +4 -1
- package/components/AppBar/classes/types.d.ts +5 -0
- package/components/AppBar/index.f04f5e45.js +94 -0
- package/components/AppBar/tests/constants.d.ts +1 -1
- package/components/AppBar/types.d.ts +3 -2
- package/components/CommonActions/classes/index.d.ts +1 -1
- package/components/CommonActions/classes/types.d.ts +3 -2
- package/components/CommonActions/components/ActionCancel/{index.fad4a0dc.js → index.453c2d24.js} +3 -3
- package/components/CommonActions/components/ActionFormCancel/{index.a26820a9.js → index.c2a2fd55.js} +25 -22
- package/components/CommonActions/components/ActionFormIntro/{index.403d8952.js → index.25d33912.js} +4 -4
- package/components/CommonActions/components/ActionIntro/{index.0fb6efbe.js → index.c653a266.js} +4 -4
- package/components/CommonActions/components/Actions/{index.51b9c92a.js → index.e376a68e.js} +37 -26
- package/components/CommonActions/tests/constants.d.ts +1 -0
- package/components/CommonActions/tests/utils.d.ts +2 -0
- package/components/DataGrid/{index.dbae54dd.js → index.ffaf000e.js} +29 -21
- package/components/DraggableWindow/index.b08af1dc.js +39 -0
- package/components/DynamicFilter/{index.cb7fd1b6.js → index.d7c03a61.js} +35 -35
- package/components/HelperText/{index.d449d124.js → index.9864f773.js} +11 -10
- package/components/Icon/{index.d214a74d.js → index.9dae8337.js} +6 -63
- package/components/Image/{index.1af119da.js → index.c18ebf5a.js} +7 -8
- package/components/Image/types.d.ts +1 -4
- package/components/LanguagePopover/classes/index.d.ts +1 -1
- package/components/LanguagePopover/{index.4fef99ac.js → index.938c6675.js} +12 -11
- package/components/LinearProgressIndeterminate/LinearProgressIndeterminate.d.ts +2 -0
- package/components/LinearProgressIndeterminate/classes/constants.d.ts +1 -0
- package/components/LinearProgressIndeterminate/classes/index.d.ts +3 -0
- package/components/LinearProgressIndeterminate/classes/types.d.ts +7 -0
- package/components/LinearProgressIndeterminate/index.d.ts +1 -0
- package/components/LinearProgressIndeterminate/index.d34d398f.js +43 -0
- package/components/LinearProgressIndeterminate/tests/constants.d.ts +1 -0
- package/components/LinearProgressIndeterminate/tests/utils.d.ts +2 -0
- package/components/Loadable/{index.117eaced.js → index.e994fc3e.js} +1 -1
- package/components/ModalDialog/{index.6c35e653.js → index.d9c5d400.js} +21 -12
- package/components/NavLink/{index.9e56bcd3.js → index.21c8fd90.js} +12 -11
- package/components/NoItemSelected/{index.cd842b62.js → index.23dfc897.js} +1 -1
- package/components/ObjectLogs/{index.e1a1b27c.js → index.a2709fc2.js} +31 -21
- package/components/PaperForm/classes/constants.d.ts +1 -0
- package/components/PaperForm/classes/index.d.ts +11 -0
- package/components/PaperForm/classes/types.d.ts +10 -0
- package/components/PaperForm/{index.76bd3a6d.js → index.5e1bc99f.js} +58 -25
- package/components/PaperForm/types.d.ts +5 -2
- package/components/Period/Period.d.ts +3 -0
- package/components/Period/classes/constants.d.ts +1 -0
- package/components/Period/classes/index.d.ts +10 -0
- package/components/Period/classes/types.d.ts +13 -0
- package/components/Period/index.526791a3.js +322 -0
- package/components/Period/index.d.ts +2 -3
- package/components/Period/tests/constants.d.ts +1 -0
- package/components/Period/tests/utils.d.ts +2 -0
- package/components/Period/types.d.ts +3 -4
- package/components/PropertyValue/classes/constants.d.ts +1 -0
- package/components/PropertyValue/classes/index.d.ts +9 -0
- package/components/PropertyValue/classes/types.d.ts +9 -0
- package/components/PropertyValue/{index.dfcfe1ba.js → index.8a1adf3e.js} +60 -10
- package/components/PropertyValue/skeleton.d.ts +2 -1
- package/components/PropertyValue/tests/constants.d.ts +1 -0
- package/components/PropertyValue/tests/utils.d.ts +2 -0
- package/components/PropertyValue/types.d.ts +4 -0
- package/components/Resizeable/{index.834a9144.js → index.f6e48e56.js} +1 -1
- package/components/SideBar/classes/index.d.ts +1 -1
- package/components/SideBar/{index.ff7cbe91.js → index.9e1a5b96.js} +6 -6
- package/components/SplitLayout/SplitLayout.d.ts +3 -0
- package/components/SplitLayout/classes/constants.d.ts +1 -0
- package/components/SplitLayout/classes/index.d.ts +9 -0
- package/components/SplitLayout/classes/types.d.ts +10 -0
- package/components/SplitLayout/index.9ef430f6.js +99 -0
- package/components/SplitLayout/index.d.ts +2 -3
- package/components/SplitLayout/tests/constants.d.ts +1 -0
- package/components/SplitLayout/tests/utils.d.ts +2 -0
- package/components/SplitLayout/types.d.ts +2 -0
- package/components/animate/PropagateLoader/{index.be5b02c3.js → index.7fab43c8.js} +1 -1
- package/components/animate/index.1f8eadd4.js +66 -0
- package/components/areas/components/AreasAdmin/classes/index.d.ts +1 -1
- package/components/areas/components/AreasAdmin/classes/types.d.ts +4 -0
- package/components/areas/components/AreasAdmin/{index.1eda80b9.js → index.946eebb9.js} +147 -47
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/index.d.ts +3 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/types.d.ts +4 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/index.d.ts +2 -0
- package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/classes/types.d.ts +13 -0
- package/components/areas/components/AreasViewer/{index.eddc9945.js → index.bf4191ea.js} +439 -362
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/helper.d.ts +13 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/helper.d.ts +18 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/ProggessLoadingMF/index.d.ts +3 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/ProggessLoadingMF/types.d.ts +4 -0
- package/components/areas/components/AreasViewer/subcomponents/AreasLoadingError/index.d.ts +3 -0
- package/components/areas/components/AreasViewer/subcomponents/AreasLoadingError/types.d.ts +5 -0
- package/components/areas/components/index.2bb534cb.js +28 -0
- package/components/areas/contexts/AreasContext/{index.a88b73a6.js → index.f0397b7c.js} +130 -105
- package/components/areas/contexts/AreasContext/types.d.ts +5 -4
- package/components/areas/contexts/WindowToolsMFContext/types.d.ts +3 -2
- package/components/areas/contexts/{index.7dd01403.js → index.1809650a.js} +1 -1
- package/components/areas/{dictionary.e72db809.js → dictionary.3fabae50.js} +6 -1
- package/components/areas/dictionary.d.ts +5 -0
- package/components/areas/hooks/useAreas/{index.7a37ede8.js → index.40917e99.js} +1 -1
- package/components/areas/{icons.3ec589d3.js → icons.19cde4b4.js} +3 -0
- package/components/areas/icons.d.ts +3 -0
- package/components/areas/index.9bd48013.js +30 -0
- package/components/areas/types.d.ts +4 -0
- package/components/formatters/BooleanFormatter/{index.820a2130.js → index.431dc923.js} +1 -1
- package/components/formatters/{index.0c692a4b.js → index.e1af75e6.js} +2 -2
- package/components/hook-form/RHFAutocomplete/{index.72437d8a.js → index.a063dc44.js} +14 -13
- package/components/hook-form/RHFAutocompleteAsync/{index.2a84f2b2.js → index.ddfd9cc9.js} +2 -2
- package/components/hook-form/RHFCheckbox/classes/types.d.ts +1 -0
- package/components/hook-form/RHFCheckbox/{index.6e6389e7.js → index.7e7f220b.js} +22 -15
- package/components/hook-form/RHFCheckbox/subcomponents/Skeleton/types.d.ts +1 -0
- package/components/hook-form/RHFCheckbox/test/utils.d.ts +1 -1
- package/components/hook-form/RHFCheckbox/types.d.ts +3 -1
- package/components/hook-form/RHFDateTime/classes/index.d.ts +1 -1
- package/components/hook-form/RHFDateTime/{index.745b101b.js → index.d330709b.js} +67 -58
- package/components/hook-form/RHFDateTime/test/constants.d.ts +1 -0
- package/components/hook-form/RHFDateTime/test/utils.d.ts +2 -0
- package/components/hook-form/RHFPeriod/classes/constants.d.ts +1 -0
- package/components/hook-form/RHFPeriod/classes/index.d.ts +6 -0
- package/components/hook-form/RHFPeriod/classes/types.d.ts +6 -0
- package/components/hook-form/RHFPeriod/index.e2b1293b.js +77 -0
- package/components/hook-form/RHFPeriod/types.d.ts +2 -1
- package/components/hook-form/RHFTextField/index.d.ts +1 -0
- package/components/hook-form/RHFTextField/{index.ca7393a7.js → index.e5336d09.js} +11 -8
- package/components/hook-form/RHFUpload/RHFUploadImage/classes/constants.d.ts +1 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/classes/index.d.ts +19 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/classes/types.d.ts +18 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/subcomponents/Skeleton/index.d.ts +2 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/subcomponents/Skeleton/types.d.ts +3 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/types.d.ts +5 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/tests/constants.d.ts +1 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/tests/utils.d.ts +2 -0
- package/components/hook-form/RHFUpload/index.17e7f9eb.js +260 -0
- package/components/hook-form/RHFUpload/index.d.ts +1 -1
- package/components/index.d.ts +4 -4
- package/components/modal/WindowBase/subcomponents/Header/types.d.ts +4 -1
- package/components/modal/WindowBase/types.d.ts +0 -3
- package/components/modal/WindowBase.7acb9f1d.js +81 -0
- package/components/modal/WindowConfirm/subcomponents/MessageIlustration/types.d.ts +3 -5
- package/components/modal/WindowConfirm/types.d.ts +3 -2
- package/components/modal/WindowConfirm.9b829837.js +122 -0
- package/components/modal/classes/constants.d.ts +1 -0
- package/components/modal/classes/index.d.ts +18 -0
- package/components/modal/classes/types.d.ts +21 -0
- package/components/modal/index.1b25b61d.js +82 -0
- package/components/modal/index.d.ts +2 -1
- package/components/mui_extended/Accordion/classes/constants.d.ts +1 -0
- package/components/mui_extended/Accordion/classes/index.d.ts +10 -0
- package/components/mui_extended/Accordion/classes/types.d.ts +10 -0
- package/components/mui_extended/Accordion/index.3faafd8b.js +127 -0
- package/components/mui_extended/Accordion/tests/constants.d.ts +1 -0
- package/components/mui_extended/Accordion/tests/utils.d.ts +2 -0
- package/components/mui_extended/Accordion/types.d.ts +2 -1
- package/components/mui_extended/Avatar/{index.d.ts → Avatar.d.ts} +0 -1
- package/components/mui_extended/Avatar/classes/constants.d.ts +1 -0
- package/components/mui_extended/Avatar/classes/index.d.ts +7 -0
- package/components/mui_extended/Avatar/classes/types.d.ts +7 -0
- package/components/mui_extended/Avatar/index.75e6ed57.js +71 -0
- package/components/mui_extended/Avatar/subcomponents/SkeletonAvatar/index.d.ts +2 -1
- package/components/mui_extended/Avatar/subcomponents/SkeletonAvatar/types.d.ts +3 -0
- package/components/mui_extended/Avatar/tests/constants.d.ts +1 -0
- package/components/mui_extended/Avatar/tests/utils.d.ts +2 -0
- package/components/mui_extended/Avatar/types.d.ts +1 -5
- package/components/mui_extended/Button/{index.f9d54780.js → index.fdb5dcbd.js} +6 -5
- package/components/mui_extended/IconButton/{index.822cdaac.js → index.1a9d4fa5.js} +1 -1
- package/components/mui_extended/LoadingButton/tests/constants.d.ts +1 -1
- package/components/mui_extended/MenuActions/{index.03403529.js → index.ba1da3b3.js} +4 -4
- package/components/mui_extended/MenuActions/types.d.ts +2 -2
- package/components/mui_extended/Pager/{index.6428b07c.js → index.67bda2c5.js} +1 -1
- package/components/mui_extended/Tab/classes/constants.d.ts +1 -0
- package/components/mui_extended/Tab/classes/index.d.ts +7 -0
- package/components/mui_extended/Tab/classes/types.d.ts +7 -0
- package/components/mui_extended/Tab/index.9e2f6e34.js +71 -0
- package/components/mui_extended/Tab/tests/constants.d.ts +1 -0
- package/components/mui_extended/Tab/tests/utils.d.ts +2 -0
- package/components/mui_extended/Tooltip/Tooltip.d.ts +3 -0
- package/components/mui_extended/Tooltip/classes/constants.d.ts +1 -0
- package/components/mui_extended/Tooltip/classes/index.d.ts +6 -0
- package/components/mui_extended/Tooltip/classes/types.d.ts +6 -0
- package/components/mui_extended/Tooltip/index.5a795dcd.js +43 -0
- package/components/mui_extended/Tooltip/index.d.ts +2 -0
- package/components/mui_extended/Tooltip/types.d.ts +6 -0
- package/components/mui_extended/Typography/{index.e2d9e3f2.js → index.443590d6.js} +1 -1
- package/components/mui_extended/index.73e536de.js +21 -0
- package/components/mui_extended/index.d.ts +3 -2
- package/contexts/ModalContext/{index.0484ca54.js → index.699f95fa.js} +1 -1
- package/contexts/ModalContext/types.d.ts +2 -0
- package/contexts/RHFormContext/classes/constants.d.ts +1 -0
- package/contexts/RHFormContext/classes/index.d.ts +9 -0
- package/contexts/RHFormContext/classes/types.d.ts +6 -0
- package/contexts/RHFormContext/{index.a7511399.js → index.fe175bab.js} +33 -9
- package/hooks/useModal/{index.c6069beb.js → index.7b7d26ba.js} +1 -1
- package/index.js +219 -207
- package/package.json +1 -1
- package/{react-draggable.17b4ec8a.js → react-draggable.6d7949a3.js} +1 -1
- package/{react-resizable.ffd7c2aa.js → react-resizable.b6f8e04a.js} +2 -2
- package/test/constants_no_mock.86c553a9.js +4 -0
- package/utils/{index.aca80f3a.js → index.008b4c2a.js} +0 -17
- package/utils/types.d.ts +1 -1
- package/components/AccountPopover/style.d.ts +0 -2
- package/components/AccountPopover/subcomponents/PopOver/styles.d.ts +0 -8
- package/components/AppBar/styles.d.ts +0 -2
- package/components/CommonActions/components/Actions/styles.d.ts +0 -2
- package/components/DataGrid/styles.d.ts +0 -3
- package/components/DataGrid/subcomponents/Actions/styles.d.ts +0 -2
- package/components/DataGrid/subcomponents/Actions/subcomponents/Density/styles.d.ts +0 -3
- package/components/DataGrid/subcomponents/Actions/subcomponents/Filter/styles.d.ts +0 -2
- package/components/DataGrid/subcomponents/Actions/subcomponents/RowsCount/styles.d.ts +0 -4
- package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/styles.d.ts +0 -2
- package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/styles.d.ts +0 -8
- package/components/DataGrid/subcomponents/Table/styles.d.ts +0 -3
- package/components/DataGrid/subcomponents/Table/subcomponents/SkeletonFormatter/styles.d.ts +0 -2
- package/components/DataGrid/subcomponents/editors/TextEditor/index.d.ts +0 -6
- package/components/DynamicFilter/subcomponents/ApplyedFilters/styles.d.ts +0 -3
- package/components/DynamicFilter/subcomponents/ApplyedFilters/subcomponents/ApplyedFilter/styles.d.ts +0 -6
- package/components/DynamicFilter/subcomponents/ClearFilters/styles.d.ts +0 -3
- package/components/DynamicFilter/subcomponents/FilterButton/styles.d.ts +0 -3
- package/components/DynamicFilter/subcomponents/InnerForHooks/styles.d.ts +0 -3
- package/components/DynamicFilter/subcomponents/PopoverFilter/styles.d.ts +0 -2
- package/components/HelperText/styles.d.ts +0 -2
- package/components/Icon/styles.d.ts +0 -4
- package/components/Image/styles.d.ts +0 -3
- package/components/Image/subcomponents/LazyLoadComponent/styles.d.ts +0 -2
- package/components/Image/subcomponents/Skeleton/styles.d.ts +0 -2
- package/components/LanguagePopover/styles.d.ts +0 -6
- package/components/NavLink/styles.d.ts +0 -2
- package/components/NoItemSelected/styles.d.ts +0 -5
- package/components/ObjectLogs/components/DetailDialog/styles.d.ts +0 -3
- package/components/ObjectLogs/styles.d.ts +0 -4
- package/components/PaperForm/styles.d.ts +0 -7
- package/components/Period/index.b93d22fa.js +0 -280
- package/components/Period/styles.d.ts +0 -7
- package/components/PropertyValue/styles.d.ts +0 -6
- package/components/ResizeableWindow/styles.d.ts +0 -5
- package/components/ScrollBar/styles.d.ts +0 -8
- package/components/SideBar/styles.d.ts +0 -5
- package/components/SideBar/subcomponents/ContentDesktop/style.d.ts +0 -2
- package/components/SideBar/subcomponents/ContentDesktop/subcomponents/CollapseButton/styles.d.ts +0 -3
- package/components/SideBar/subcomponents/ContentGroups/styles.d.ts +0 -5
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/styles.d.ts +0 -2
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/ArrowIcon/styles.d.ts +0 -2
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/styles.d.ts +0 -9
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/subcomponents/NavItemRootContent/styles.d.ts +0 -3
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/styles.d.ts +0 -2
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/styles.d.ts +0 -22
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/Skeleton/styles.d.ts +0 -6
- package/components/SideBar/subcomponents/ContentMobile/styles.d.ts +0 -3
- package/components/SplitLayout/index.5a8355d8.js +0 -133
- package/components/SplitLayout/styles.d.ts +0 -4
- package/components/animate/LoadingScreen/styles.d.ts +0 -3
- package/components/animate/PropagateLoader/syles.d.ts +0 -2
- package/components/areas/components/AreasAdmin/styles.d.ts +0 -2
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/styles.d.ts +0 -4
- package/components/areas/components/AreasViewer/styles.d.ts +0 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/styles.d.ts +0 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/styles.d.ts +0 -9
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/index.d.ts +0 -3
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/styles.d.ts +0 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/subcomponents/NotFound/index.d.ts +0 -3
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/subcomponents/NotFound/styles.d.ts +0 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/subcomponents/NotFound/types.d.ts +0 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/types.d.ts +0 -6
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowModal/styles.d.ts +0 -3
- package/components/areas/components/index.f3a98b6d.js +0 -14
- package/components/areas/index.95c4ed37.js +0 -16
- package/components/hook-form/RHFAutocomplete/styles.d.ts +0 -2
- package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/styles.d.ts +0 -2
- package/components/hook-form/RHFAutocomplete/subcomponents/Skeleton/styles.d.ts +0 -4
- package/components/hook-form/RHFAutocompleteAsync/styles.d.ts +0 -5
- package/components/hook-form/RHFCheckbox/styles.d.ts +0 -15
- package/components/hook-form/RHFCheckbox/subcomponents/Skeleton/styles.d.ts +0 -3
- package/components/hook-form/RHFDateTime/styles.d.ts +0 -2
- package/components/hook-form/RHFDateTime/subcomponents/Skeleton/styles.d.ts +0 -2
- package/components/hook-form/RHFPeriod/index.6969af99.js +0 -55
- package/components/hook-form/RHFPeriod/styles.d.ts +0 -2
- package/components/hook-form/RHFTextField/styles.d.ts +0 -3
- package/components/hook-form/RHFTextField/subcomponents/Skeleton/styles.d.ts +0 -3
- package/components/hook-form/RHFTextFieldPassword/styles.d.ts +0 -2
- package/components/hook-form/RHFUpload/RHFUploadImage/styles.d.ts +0 -2
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/styles.d.ts +0 -12
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/subcomponents/Skeleton/styles.d.ts +0 -2
- package/components/hook-form/RHFUpload/index.d74ca00d.js +0 -283
- package/components/modal/ModalDialog/styles.d.ts +0 -9
- package/components/modal/WindowBase/styles.d.ts +0 -2
- package/components/modal/WindowBase/subcomponents/Header/styles.d.ts +0 -6
- package/components/modal/WindowBase.9b93578e.js +0 -126
- package/components/modal/WindowConfirm/subcomponents/MessageIlustration/styles.d.ts +0 -6
- package/components/modal/WindowConfirm.7ec9dcd3.js +0 -132
- package/components/modal/index.dba72820.js +0 -36
- package/components/mui_extended/Accordion/components/AccordionLabel.d.ts +0 -3
- package/components/mui_extended/Accordion/index.09a89d3d.js +0 -107
- package/components/mui_extended/Accordion/styles.d.ts +0 -4
- package/components/mui_extended/Avatar/index.fe06afd7.js +0 -51
- package/components/mui_extended/Button/styles.d.ts +0 -13
- package/components/mui_extended/IconButton/styles.d.ts +0 -2
- package/components/mui_extended/ImageButton/styles.d.ts +0 -2
- package/components/mui_extended/LoadingButton/styles.d.ts +0 -2
- package/components/mui_extended/MenuActions/styles.d.ts +0 -30
- package/components/mui_extended/Pager/components/PagerActions/styles.d.ts +0 -2
- package/components/mui_extended/Pager/styles.d.ts +0 -6
- package/components/mui_extended/Popover/styles.d.ts +0 -1
- package/components/mui_extended/Popover/subcomponts/ArrowIcon/index.d.ts +0 -3
- package/components/mui_extended/Tab/index.e0653a0a.js +0 -32
- package/components/mui_extended/Tab/styles.d.ts +0 -2
- package/components/mui_extended/Typography/styles.d.ts +0 -2
- package/components/mui_extended/index.b4ced9e3.js +0 -20
- package/contexts/RHFormContext/styles.d.ts +0 -2
- package/vendor.99e0c856.js +0 -456
- /package/components/{AppBar → AccountPopover}/subcomponents/MyAvatar/index.d.ts +0 -0
- /package/components/PaperForm/{index.d.ts → PaperForm.d.ts} +0 -0
- /package/components/PropertyValue/{index.d.ts → PropertyValue.d.ts} +0 -0
- /package/components/hook-form/RHFUpload/RHFUploadImage/{index.d.ts → RHFUploadImage.d.ts} +0 -0
- /package/components/mui_extended/Accordion/{index.d.ts → Accordion.d.ts} +0 -0
- /package/{node_modules.416f1da3.js → react-spinners.342a6578.js} +0 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { styled } from "@mui/material/styles";
|
|
2
|
+
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
3
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
4
|
+
import clsx from "clsx";
|
|
5
|
+
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
6
|
+
import { S as SplitterLayout } from "../../react-splitter-layout.8b1655c8.js";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
const SplitLayoutRoot = styled("div")(({
|
|
9
|
+
theme
|
|
10
|
+
}) => ({
|
|
11
|
+
...theme.components?.M4LSplitLayout?.styleOverrides
|
|
12
|
+
}));
|
|
13
|
+
const SplitMaster = styled("div")(() => ({
|
|
14
|
+
display: "flex",
|
|
15
|
+
flexDirection: "column",
|
|
16
|
+
position: "relative",
|
|
17
|
+
width: "100%",
|
|
18
|
+
height: "100%",
|
|
19
|
+
overflow: "hidden"
|
|
20
|
+
}));
|
|
21
|
+
const SplitDetail = styled("div")(() => ({
|
|
22
|
+
display: "flex",
|
|
23
|
+
flexDirection: "column",
|
|
24
|
+
justifyContent: "center",
|
|
25
|
+
alignItems: "center",
|
|
26
|
+
overflow: "hidden",
|
|
27
|
+
position: "absolute",
|
|
28
|
+
left: "0px",
|
|
29
|
+
right: "0px",
|
|
30
|
+
top: "0px",
|
|
31
|
+
bottom: "0px"
|
|
32
|
+
}));
|
|
33
|
+
const componentName = "M4LSplitLayout";
|
|
34
|
+
generateUtilityClasses(componentName, [
|
|
35
|
+
"root",
|
|
36
|
+
"firstPart",
|
|
37
|
+
"secondPart",
|
|
38
|
+
"stateVertical",
|
|
39
|
+
"stateHorizontal"
|
|
40
|
+
]);
|
|
41
|
+
function getSplitLayoutUtilityClass(slot) {
|
|
42
|
+
return generateUtilityClass(componentName, slot);
|
|
43
|
+
}
|
|
44
|
+
const useSplitLayoutUtilityClasses = (ownerState) => {
|
|
45
|
+
const slots = {
|
|
46
|
+
root: ["root", ownerState.splitPosition === "vertical" && "stateVertical", ownerState.splitPosition === "horizontal" && "stateHorizontal"],
|
|
47
|
+
firstPart: ["firstPart"],
|
|
48
|
+
secondPart: ["secondPart"]
|
|
49
|
+
};
|
|
50
|
+
const composedClasses = unstable_composeClasses(slots, getSplitLayoutUtilityClass, {});
|
|
51
|
+
return {
|
|
52
|
+
...composedClasses
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
const SPLITLAYOUT_PREFIX = "M4LSplitLayout";
|
|
56
|
+
const getNameSplitLayoutDataTestId = (KEY) => {
|
|
57
|
+
return `${SPLITLAYOUT_PREFIX}-${KEY}`;
|
|
58
|
+
};
|
|
59
|
+
function SplitLayout(props) {
|
|
60
|
+
const {
|
|
61
|
+
splitPosition,
|
|
62
|
+
firstPart,
|
|
63
|
+
secondPart,
|
|
64
|
+
secondParrtInitialSize = 50,
|
|
65
|
+
percentage = true,
|
|
66
|
+
className
|
|
67
|
+
} = props;
|
|
68
|
+
const ownerState = {
|
|
69
|
+
splitPosition
|
|
70
|
+
};
|
|
71
|
+
const classes = useSplitLayoutUtilityClasses(ownerState);
|
|
72
|
+
return /* @__PURE__ */ jsx(SplitLayoutRoot, {
|
|
73
|
+
className: clsx(classes.root, className),
|
|
74
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
75
|
+
[TEST_PROP_ID]: getNameSplitLayoutDataTestId("root")
|
|
76
|
+
} : {},
|
|
77
|
+
children: SplitterLayout ? /* @__PURE__ */ jsxs(SplitterLayout, {
|
|
78
|
+
vertical: splitPosition === "vertical",
|
|
79
|
+
percentage,
|
|
80
|
+
secondaryInitialSize: secondParrtInitialSize,
|
|
81
|
+
children: [/* @__PURE__ */ jsx(SplitMaster, {
|
|
82
|
+
className: classes.firstPart,
|
|
83
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
84
|
+
[TEST_PROP_ID]: getNameSplitLayoutDataTestId("firstPart")
|
|
85
|
+
} : {},
|
|
86
|
+
children: typeof firstPart === "function" ? firstPart() : firstPart
|
|
87
|
+
}), splitPosition !== "none" && /* @__PURE__ */ jsx(SplitDetail, {
|
|
88
|
+
className: classes.secondPart,
|
|
89
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
90
|
+
[TEST_PROP_ID]: getNameSplitLayoutDataTestId("secondPart")
|
|
91
|
+
} : {},
|
|
92
|
+
children: typeof secondPart === "function" ? secondPart() : secondPart
|
|
93
|
+
})]
|
|
94
|
+
}) : null
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
export {
|
|
98
|
+
SplitLayout as S
|
|
99
|
+
};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare function SplitLayout(props: SplitLayoutProps): import("react").JSX.Element;
|
|
1
|
+
export { SplitLayout } from './SplitLayout';
|
|
2
|
+
export type { SplitLayoutProps } from './types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SPLITLAYOUT_PREFIX = "M4LSplitLayout";
|
|
@@ -6,4 +6,6 @@ export interface SplitLayoutProps {
|
|
|
6
6
|
secondParrtInitialSize?: number;
|
|
7
7
|
firstPart: ((props?: any) => JSX.Element) | ReactNode;
|
|
8
8
|
secondPart: ((props?: any) => JSX.Element) | ReactNode;
|
|
9
|
+
className?: string;
|
|
9
10
|
}
|
|
11
|
+
export declare type OwnerState = Pick<SplitLayoutProps, 'splitPosition'>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { styled, useTheme } from "@mui/material";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { P as PropagateLoader$1 } from "../../../
|
|
3
|
+
import { P as PropagateLoader$1 } from "../../../react-spinners.342a6578.js";
|
|
4
4
|
const WrapperPropageteLoader = styled("div")(({
|
|
5
5
|
theme
|
|
6
6
|
}) => ({
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { m } from "framer-motion";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { IconButton, Box } from "@mui/material";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import "@mui/material/styles";
|
|
6
|
+
import "react-router-dom";
|
|
7
|
+
import "./LoadingScreen/index.1d0c4307.js";
|
|
8
|
+
import "./PropagateLoader/index.7fab43c8.js";
|
|
9
|
+
const varSmall = {
|
|
10
|
+
hover: {
|
|
11
|
+
scale: 1.1
|
|
12
|
+
},
|
|
13
|
+
tap: {
|
|
14
|
+
scale: 0.95
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
const varMedium = {
|
|
18
|
+
hover: {
|
|
19
|
+
scale: 1.09
|
|
20
|
+
},
|
|
21
|
+
tap: {
|
|
22
|
+
scale: 0.97
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
const varLarge = {
|
|
26
|
+
hover: {
|
|
27
|
+
scale: 1.08
|
|
28
|
+
},
|
|
29
|
+
tap: {
|
|
30
|
+
scale: 0.99
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
function AnimateWrap({
|
|
34
|
+
size,
|
|
35
|
+
children
|
|
36
|
+
}) {
|
|
37
|
+
const isSmall = size === "small";
|
|
38
|
+
const isLarge = size === "large";
|
|
39
|
+
return /* @__PURE__ */ jsx(Box, {
|
|
40
|
+
component: m.div,
|
|
41
|
+
whileTap: "tap",
|
|
42
|
+
whileHover: "hover",
|
|
43
|
+
variants: isSmall && varSmall || isLarge && varLarge || varMedium,
|
|
44
|
+
sx: {
|
|
45
|
+
display: "inline-flex"
|
|
46
|
+
},
|
|
47
|
+
children
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
const IconButtonAnimate = forwardRef(({
|
|
51
|
+
children,
|
|
52
|
+
size = "medium",
|
|
53
|
+
...other
|
|
54
|
+
}, ref) => /* @__PURE__ */ jsx(AnimateWrap, {
|
|
55
|
+
size,
|
|
56
|
+
children: /* @__PURE__ */ jsx(IconButton, {
|
|
57
|
+
size,
|
|
58
|
+
ref,
|
|
59
|
+
...other,
|
|
60
|
+
children
|
|
61
|
+
})
|
|
62
|
+
}));
|
|
63
|
+
IconButtonAnimate.displayName = "IconButtonAnimate";
|
|
64
|
+
export {
|
|
65
|
+
IconButtonAnimate as I
|
|
66
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AreasAdmninClasses } from './types';
|
|
2
2
|
import { OwnerState } from '../../../contexts/AreasContext/types';
|
|
3
3
|
export declare const areasAdminClasses: AreasAdmninClasses;
|
|
4
|
-
export declare const useAreasAdminUtilityClasses: (ownerState: OwnerState) => Record<"root" | "areaChipRoot" | "areaIconLayer" | "areaContainerChips" | "areaChipTitle" | "areaChipDeleteButton" | "areaChipEditButton" | "areasAddButton", string>;
|
|
4
|
+
export declare const useAreasAdminUtilityClasses: (ownerState: OwnerState) => Record<"root" | "areaChipRoot" | "areaIconLayer" | "areaContainerChips" | "areaEditPopover" | "areaChipMobileRoot" | "areaChipMobileIconContainer" | "areaChipTitle" | "areaContainerChipEditButton" | "areaChipDeleteButton" | "areaChipEditButton" | "areasAddButton", string>;
|
|
5
5
|
export declare type AdminClasses = ReturnType<typeof useAreasAdminUtilityClasses>;
|
|
@@ -3,7 +3,11 @@ export interface AreasAdmninClasses {
|
|
|
3
3
|
areaChipRoot: string;
|
|
4
4
|
areaChipTitle: string;
|
|
5
5
|
areaContainerChips: string;
|
|
6
|
+
areaChipMobileRoot: string;
|
|
7
|
+
areaEditPopover: string;
|
|
8
|
+
areaChipMobileIconContainer: string;
|
|
6
9
|
areaIconLayer: string;
|
|
10
|
+
areaContainerChipEditButton: string;
|
|
7
11
|
areaChipDeleteButton: string;
|
|
8
12
|
areaChipEditButton: string;
|
|
9
13
|
areasAddButton: string;
|
|
@@ -1,69 +1,74 @@
|
|
|
1
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index.
|
|
2
|
-
import { u as useAreasStore } from "../../hooks/useAreas/index.
|
|
1
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.1a9d4fa5.js";
|
|
2
|
+
import { u as useAreasStore } from "../../hooks/useAreas/index.40917e99.js";
|
|
3
3
|
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
4
4
|
import { useState, useRef, useMemo } from "react";
|
|
5
5
|
import * as Yup from "yup";
|
|
6
|
-
import { generateUtilityClasses } from "@mui/material";
|
|
7
|
-
import
|
|
6
|
+
import { generateUtilityClasses, useTheme } from "@mui/material";
|
|
7
|
+
import "../../../mui_extended/Accordion/index.3faafd8b.js";
|
|
8
|
+
import { I as Icon } from "../../../Icon/index.9dae8337.js";
|
|
8
9
|
import clsx from "clsx";
|
|
9
|
-
import {
|
|
10
|
-
import "../../../mui_extended/
|
|
11
|
-
import "../../../mui_extended/Avatar/index.
|
|
10
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
11
|
+
import { T as Typography } from "../../../mui_extended/Typography/index.443590d6.js";
|
|
12
|
+
import "../../../mui_extended/Avatar/index.75e6ed57.js";
|
|
12
13
|
import "react-router-dom";
|
|
13
14
|
import "@mui/material/Button";
|
|
14
|
-
import "../../../mui_extended/Button/index.
|
|
15
|
-
import "../../../Image/index.
|
|
15
|
+
import "../../../mui_extended/Button/index.fdb5dcbd.js";
|
|
16
|
+
import "../../../Image/index.c18ebf5a.js";
|
|
16
17
|
import "@mui/lab";
|
|
17
|
-
import { T as Typography } from "../../../mui_extended/Typography/index.e2d9e3f2.js";
|
|
18
18
|
import { P as Popover } from "../../../mui_extended/Popover/index.9f35d0eb.js";
|
|
19
|
-
import "../../../mui_extended/MenuActions/index.
|
|
20
|
-
import "../../../mui_extended/Pager/index.
|
|
21
|
-
import "../../../mui_extended/Tab/index.
|
|
19
|
+
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.ba1da3b3.js";
|
|
20
|
+
import "../../../mui_extended/Pager/index.67bda2c5.js";
|
|
21
|
+
import "../../../mui_extended/Tab/index.9e2f6e34.js";
|
|
22
|
+
import "../../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
22
23
|
import { unstable_composeClasses } from "@mui/base";
|
|
23
|
-
import { g as getComponentUtilityClass } from "../../../../utils/index.
|
|
24
|
+
import { g as getComponentUtilityClass } from "../../../../utils/index.008b4c2a.js";
|
|
24
25
|
import { A as AREAS_ADMIN_CLASS_NAME } from "../../constants.66529246.js";
|
|
25
|
-
import { I as ICONS } from "../../icons.
|
|
26
|
+
import { I as ICONS } from "../../icons.19cde4b4.js";
|
|
26
27
|
import "../../contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
27
|
-
import "../../../../contexts/ModalContext/index.
|
|
28
|
-
import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.
|
|
28
|
+
import "../../../../contexts/ModalContext/index.699f95fa.js";
|
|
29
|
+
import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.fe175bab.js";
|
|
29
30
|
import "react-hook-form";
|
|
30
|
-
import "../../../hook-form/RHFAutocomplete/index.
|
|
31
|
-
import "../../../HelperText/index.
|
|
31
|
+
import "../../../hook-form/RHFAutocomplete/index.a063dc44.js";
|
|
32
|
+
import "../../../HelperText/index.9864f773.js";
|
|
32
33
|
import "lodash/debounce";
|
|
33
|
-
import "../../../hook-form/RHFAutocompleteAsync/index.
|
|
34
|
-
import "../../../hook-form/RHFCheckbox/index.
|
|
34
|
+
import "../../../hook-form/RHFAutocompleteAsync/index.ddfd9cc9.js";
|
|
35
|
+
import "../../../hook-form/RHFCheckbox/index.7e7f220b.js";
|
|
35
36
|
import "@mui/x-date-pickers";
|
|
36
|
-
import "../../../hook-form/RHFDateTime/index.
|
|
37
|
-
import "@m4l/graphics";
|
|
38
|
-
import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.
|
|
39
|
-
import "../../../hook-form/RHFPeriod/index.
|
|
40
|
-
import "../../../Period/index.
|
|
41
|
-
import { A as Actions } from "../../../CommonActions/components/Actions/index.
|
|
42
|
-
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.
|
|
43
|
-
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.
|
|
44
|
-
import "../../../../react-draggable.
|
|
45
|
-
import "../../../ModalDialog/index.
|
|
46
|
-
import "../../../Resizeable/index.
|
|
47
|
-
import "../../../modal/
|
|
48
|
-
import "../../../modal/WindowBase.9b93578e.js";
|
|
37
|
+
import "../../../hook-form/RHFDateTime/index.d330709b.js";
|
|
38
|
+
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
39
|
+
import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.e5336d09.js";
|
|
40
|
+
import "../../../hook-form/RHFPeriod/index.e2b1293b.js";
|
|
41
|
+
import "../../../Period/index.526791a3.js";
|
|
42
|
+
import { A as Actions } from "../../../CommonActions/components/Actions/index.e376a68e.js";
|
|
43
|
+
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.453c2d24.js";
|
|
44
|
+
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.c653a266.js";
|
|
45
|
+
import "../../../../react-draggable.6d7949a3.js";
|
|
46
|
+
import "../../../ModalDialog/index.d9c5d400.js";
|
|
47
|
+
import "../../../Resizeable/index.f6e48e56.js";
|
|
48
|
+
import "../../../modal/index.1b25b61d.js";
|
|
49
49
|
import { shallow } from "zustand/shallow";
|
|
50
50
|
import { styled } from "@mui/material/styles";
|
|
51
51
|
import { S as ScrollBar } from "../../../ScrollBar/index.bbe48f4d.js";
|
|
52
|
-
import "../AreasViewer/index.
|
|
53
|
-
import "
|
|
52
|
+
import "../AreasViewer/index.bf4191ea.js";
|
|
53
|
+
import "../../../LinearProgressIndeterminate/index.d34d398f.js";
|
|
54
|
+
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.3fabae50.js";
|
|
55
|
+
import "../../contexts/AreasContext/index.f0397b7c.js";
|
|
54
56
|
import "../../contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
55
57
|
import "zustand";
|
|
56
|
-
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.e72db809.js";
|
|
57
58
|
import "lodash/isString";
|
|
58
59
|
import "react-dropzone";
|
|
59
|
-
import "../../../hook-form/RHFUpload/index.
|
|
60
|
+
import "../../../hook-form/RHFUpload/index.17e7f9eb.js";
|
|
60
61
|
const areasAdminClasses = generateUtilityClasses(AREAS_ADMIN_CLASS_NAME, [
|
|
61
62
|
"root",
|
|
62
63
|
"areaChipRoot",
|
|
63
64
|
"areaChipTitle",
|
|
64
65
|
"areaChipDeleteButton",
|
|
65
66
|
"areasAddButton",
|
|
67
|
+
"areaContainerChipEditButton",
|
|
66
68
|
"areaContainerChips",
|
|
69
|
+
"areaEditPopover",
|
|
70
|
+
"areaChipMobileRoot",
|
|
71
|
+
"areaChipMobileIconContainer",
|
|
67
72
|
"areaIconLayer",
|
|
68
73
|
"areaChipEditButton",
|
|
69
74
|
"selected",
|
|
@@ -76,7 +81,11 @@ const useAreasAdminUtilityClasses = (ownerState) => {
|
|
|
76
81
|
areaChipRoot: ["areaChipRoot"],
|
|
77
82
|
areaIconLayer: ["areaIconLayer"],
|
|
78
83
|
areaContainerChips: ["areaContainerChips"],
|
|
84
|
+
areaEditPopover: ["areaEditPopover"],
|
|
85
|
+
areaChipMobileRoot: ["areaChipMobileRoot"],
|
|
86
|
+
areaChipMobileIconContainer: ["areaChipMobileIconContainer"],
|
|
79
87
|
areaChipTitle: ["areaChipTitle"],
|
|
88
|
+
areaContainerChipEditButton: ["areaContainerChipEditButton"],
|
|
80
89
|
areaChipDeleteButton: ["areaChipDeleteButton"],
|
|
81
90
|
areaChipEditButton: ["areaChipEditButton"],
|
|
82
91
|
areasAddButton: ["areasAddButton"]
|
|
@@ -112,6 +121,45 @@ const EditAreaHeader = styled("div")(({
|
|
|
112
121
|
justifyContent: "space-between",
|
|
113
122
|
alignItems: "center"
|
|
114
123
|
}));
|
|
124
|
+
const ChipActionsMobile = (props) => {
|
|
125
|
+
const {
|
|
126
|
+
handlerOpenPopoverEditArea,
|
|
127
|
+
areaId
|
|
128
|
+
} = props;
|
|
129
|
+
const {
|
|
130
|
+
deleteArea
|
|
131
|
+
} = useAreasStore((state) => state.areasActions);
|
|
132
|
+
const {
|
|
133
|
+
host_static_assets,
|
|
134
|
+
environment_assets
|
|
135
|
+
} = useEnvironment();
|
|
136
|
+
const {
|
|
137
|
+
getLabel
|
|
138
|
+
} = useModuleDictionary();
|
|
139
|
+
const menuActions = [{
|
|
140
|
+
urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.EDIT_AREA}`,
|
|
141
|
+
onClick: handlerOpenPopoverEditArea,
|
|
142
|
+
label: getLabel(getAreasDictionary(DICCTIONARY.label_edit_area))
|
|
143
|
+
}, {
|
|
144
|
+
urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.DELETE_AREA}`,
|
|
145
|
+
onClick: () => deleteArea(areaId),
|
|
146
|
+
label: getLabel(getAreasDictionary(DICCTIONARY.label_delete_area))
|
|
147
|
+
}];
|
|
148
|
+
return /* @__PURE__ */ jsx(MenuActions, {
|
|
149
|
+
urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.SHOW_OPTIONS}`,
|
|
150
|
+
arrowType: "no-arrow",
|
|
151
|
+
marginTop: "12px",
|
|
152
|
+
anchorOrigin: {
|
|
153
|
+
vertical: "bottom",
|
|
154
|
+
horizontal: "right"
|
|
155
|
+
},
|
|
156
|
+
transformOrigin: {
|
|
157
|
+
vertical: "top",
|
|
158
|
+
horizontal: "right"
|
|
159
|
+
},
|
|
160
|
+
menuActions
|
|
161
|
+
});
|
|
162
|
+
};
|
|
115
163
|
const AreaChip = (props) => {
|
|
116
164
|
const {
|
|
117
165
|
areaId,
|
|
@@ -132,7 +180,9 @@ const AreaChip = (props) => {
|
|
|
132
180
|
const {
|
|
133
181
|
getLabel
|
|
134
182
|
} = useModuleDictionary();
|
|
183
|
+
const isDesktop = useResponsiveDesktop();
|
|
135
184
|
const anchorRef = useRef(null);
|
|
185
|
+
const theme = useTheme();
|
|
136
186
|
const onClickDeleteArea = (e) => {
|
|
137
187
|
e.stopPropagation();
|
|
138
188
|
deleteArea(areaId);
|
|
@@ -142,7 +192,7 @@ const AreaChip = (props) => {
|
|
|
142
192
|
editArea(areaId, data.inputEditArea);
|
|
143
193
|
setOpen(false);
|
|
144
194
|
};
|
|
145
|
-
const
|
|
195
|
+
const handlerOpenPopoverEditArea = () => {
|
|
146
196
|
setOpen(true);
|
|
147
197
|
};
|
|
148
198
|
const initialValues = {
|
|
@@ -161,24 +211,26 @@ const AreaChip = (props) => {
|
|
|
161
211
|
children: [/* @__PURE__ */ jsx("div", {
|
|
162
212
|
className: areasAdminClasses.areaChipTitle,
|
|
163
213
|
children: areaName
|
|
164
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
165
|
-
|
|
166
|
-
display: "flex"
|
|
167
|
-
},
|
|
214
|
+
}), isDesktop ? /* @__PURE__ */ jsxs("div", {
|
|
215
|
+
className: areasAdminClasses.areaContainerChipEditButton,
|
|
168
216
|
children: [/* @__PURE__ */ jsx(IconButton, {
|
|
169
217
|
className: areasAdminClasses.areaChipEditButton,
|
|
170
218
|
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.EDIT_AREA}`,
|
|
171
219
|
size: "extraSmall",
|
|
172
|
-
onClick:
|
|
220
|
+
onClick: handlerOpenPopoverEditArea
|
|
173
221
|
}), /* @__PURE__ */ jsx(IconButton, {
|
|
174
222
|
className: areasAdminClasses.areaChipDeleteButton,
|
|
175
223
|
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.DELETE_AREA}`,
|
|
176
224
|
size: "extraSmall",
|
|
177
225
|
onClick: onClickDeleteArea
|
|
178
226
|
})]
|
|
227
|
+
}) : /* @__PURE__ */ jsx(ChipActionsMobile, {
|
|
228
|
+
areaId,
|
|
229
|
+
handlerOpenPopoverEditArea
|
|
179
230
|
}), /* @__PURE__ */ jsx(Popover, {
|
|
180
231
|
arrowType: "top-center",
|
|
181
232
|
open,
|
|
233
|
+
className: areasAdminClasses.areaEditPopover,
|
|
182
234
|
anchorEl: anchorRef.current,
|
|
183
235
|
anchorOrigin: {
|
|
184
236
|
vertical: "bottom",
|
|
@@ -190,7 +242,8 @@ const AreaChip = (props) => {
|
|
|
190
242
|
},
|
|
191
243
|
onClose: () => setOpen(false),
|
|
192
244
|
sx: {
|
|
193
|
-
mt: "10px"
|
|
245
|
+
mt: "10px",
|
|
246
|
+
...theme.components?.M4LAreasAdminEditPopover?.styleOverrides
|
|
194
247
|
},
|
|
195
248
|
children: /* @__PURE__ */ jsxs(RHFormProvider, {
|
|
196
249
|
onSubmit,
|
|
@@ -239,12 +292,59 @@ const AreasAdminRoot = styled("div")`
|
|
|
239
292
|
|
|
240
293
|
|
|
241
294
|
`;
|
|
295
|
+
const AreaChipMobile = () => {
|
|
296
|
+
const areas = useAreasStore((state) => state.areas, shallow);
|
|
297
|
+
const {
|
|
298
|
+
selectArea
|
|
299
|
+
} = useAreasStore((state) => state.areasActions);
|
|
300
|
+
const currentAreaId = useAreasStore((state) => state.currentAreaId, shallow);
|
|
301
|
+
const currentArea = areas.find((area) => area.id === currentAreaId);
|
|
302
|
+
const {
|
|
303
|
+
host_static_assets,
|
|
304
|
+
environment_assets
|
|
305
|
+
} = useEnvironment();
|
|
306
|
+
const menuActions = useMemo(() => areas.filter((area) => area.id !== currentAreaId).map((area) => {
|
|
307
|
+
return {
|
|
308
|
+
urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.LAYERS}`,
|
|
309
|
+
onClick: () => selectArea(area.id),
|
|
310
|
+
label: area.name
|
|
311
|
+
};
|
|
312
|
+
}), [areas, currentAreaId]);
|
|
313
|
+
console.log("currentAreaId", currentArea);
|
|
314
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
315
|
+
className: areasAdminClasses.areaChipMobileRoot,
|
|
316
|
+
children: [currentArea ? /* @__PURE__ */ jsx(AreaChip, {
|
|
317
|
+
areaId: currentArea.id,
|
|
318
|
+
selected: true,
|
|
319
|
+
areaName: currentArea.name,
|
|
320
|
+
disabled: true
|
|
321
|
+
}, currentArea.id) : null, menuActions.length > 0 ? /* @__PURE__ */ jsx("div", {
|
|
322
|
+
className: areasAdminClasses.areaChipMobileIconContainer,
|
|
323
|
+
children: /* @__PURE__ */ jsx(MenuActions, {
|
|
324
|
+
urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.CHEVRON_DOWN}`,
|
|
325
|
+
arrowType: "no-arrow",
|
|
326
|
+
marginTop: "12px!important",
|
|
327
|
+
marginLeft: "14px!important",
|
|
328
|
+
anchorOrigin: {
|
|
329
|
+
vertical: "bottom",
|
|
330
|
+
horizontal: "right"
|
|
331
|
+
},
|
|
332
|
+
transformOrigin: {
|
|
333
|
+
vertical: "top",
|
|
334
|
+
horizontal: "right"
|
|
335
|
+
},
|
|
336
|
+
menuActions
|
|
337
|
+
})
|
|
338
|
+
}) : null]
|
|
339
|
+
});
|
|
340
|
+
};
|
|
242
341
|
function AreasAdmin() {
|
|
243
342
|
const areas = useAreasStore((state) => state.areas, shallow);
|
|
244
343
|
const currentArea = useAreasStore((state) => state.currentAreaId, shallow);
|
|
245
344
|
const status = useAreasStore((state) => state.ownerState.status);
|
|
246
345
|
const classesRoot = useAreasStore((state) => state.adminClasses.root);
|
|
247
346
|
const areasLength = useAreasStore((state) => state.areas.length);
|
|
347
|
+
const isDesktop = useResponsiveDesktop();
|
|
248
348
|
const {
|
|
249
349
|
addArea
|
|
250
350
|
} = useAreasStore((state) => state.areasActions, shallow);
|
|
@@ -265,7 +365,7 @@ function AreasAdmin() {
|
|
|
265
365
|
})
|
|
266
366
|
}), /* @__PURE__ */ jsx("div", {
|
|
267
367
|
className: areasAdminClasses.areaContainerChips,
|
|
268
|
-
children: /* @__PURE__ */ jsx(ScrollBar, {
|
|
368
|
+
children: isDesktop ? /* @__PURE__ */ jsx(ScrollBar, {
|
|
269
369
|
children: /* @__PURE__ */ jsx(Fragment, {
|
|
270
370
|
children: areas.map((area) => /* @__PURE__ */ jsx(AreaChip, {
|
|
271
371
|
areaId: area.id,
|
|
@@ -274,7 +374,7 @@ function AreasAdmin() {
|
|
|
274
374
|
disabled: areasLength === 1
|
|
275
375
|
}, area.id))
|
|
276
376
|
})
|
|
277
|
-
})
|
|
377
|
+
}) : /* @__PURE__ */ jsx(AreaChipMobile, {})
|
|
278
378
|
}), /* @__PURE__ */ jsx(IconButton, {
|
|
279
379
|
className: areasAdminClasses.areasAddButton,
|
|
280
380
|
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.ADD_AREA}`,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AreasViewerClasses } from './types';
|
|
2
2
|
import { OwnerState } from '../../../contexts/AreasContext/types';
|
|
3
3
|
export declare const areasViewerClasses: AreasViewerClasses;
|
|
4
|
-
export declare const useAreasViewerUtilityClasses: (ownerState: OwnerState) => Record<"root" | "areaRoot" | "areaGridLayoutPanelContainer" | "areaGridLayout" | "areaGridLayoutPopupsContainer" | "windowRoot" | "windowRootContainer" | "windowHeader" | "windowHeaderTitle" | "windowHeaderMainActions" | "windowContent" | "windowPopupRoot" | "windowModalRoot" | "selectedWindow" | "windowToastiesContainer" | "windowToastyMeesageButtonsContainer" | "windowToastyMessage" | "windowToastyButtonsContainer" | "windowToastyPin" | "windowToastyClose" | "panelWindowsRoot" | "panelWindowsButtonContainer" | "windowToastyContainer", string>;
|
|
4
|
+
export declare const useAreasViewerUtilityClasses: (ownerState: OwnerState) => Record<"root" | "windowLinearProgressBar" | "areaRoot" | "areasLoadingErrorRoot" | "areasLoadingErrorLoading" | "areasLoadingError" | "areasLoadingErrorIcon" | "areasLoadingErrorTitle" | "areasLoadingErrorDescription" | "areasLoadingErrorDivider" | "areaGridLayoutPanelContainer" | "areaGridLayout" | "areaGridLayoutPopupsContainer" | "windowRoot" | "windowRootContainer" | "windowHeader" | "windowHeaderTitle" | "windowHeaderMainActions" | "windowContent" | "windowLinearProgressRoot" | "windowPopupRoot" | "windowModalRoot" | "selectedWindow" | "windowToastiesContainer" | "windowToastiesContainerTostys" | "windowToastyMeesageButtonsContainer" | "windowToastyMessage" | "windowToastyButtonsContainer" | "windowToastyPin" | "windowToastyClose" | "panelWindowsRoot" | "panelWindowsButtonContainer" | "windowToastyContainer", string>;
|
|
5
5
|
export declare type ViwerClasses = ReturnType<typeof useAreasViewerUtilityClasses>;
|
|
@@ -1,18 +1,30 @@
|
|
|
1
1
|
export interface AreasViewerClasses {
|
|
2
2
|
root: string;
|
|
3
3
|
areaRoot: string;
|
|
4
|
+
areasLoadingErrorRoot: string;
|
|
5
|
+
areasLoadingErrorLoading: string;
|
|
6
|
+
areasLoadingError: string;
|
|
7
|
+
areasLoadingErrorIcon: string;
|
|
8
|
+
areasLoadingErrorTitle: string;
|
|
9
|
+
areasLoadingErrorDescription: string;
|
|
10
|
+
areasLoadingErrorDivider: string;
|
|
11
|
+
areasLoadingErrorTextAction: string;
|
|
4
12
|
areaGridLayoutPanelContainer: string;
|
|
5
13
|
areaGridLayout: string;
|
|
6
14
|
areaGridLayoutPopupsContainer: string;
|
|
7
15
|
windowRoot: string;
|
|
8
16
|
windowHeader: string;
|
|
17
|
+
windowHeaderContent: string;
|
|
9
18
|
windowHeaderTitle: string;
|
|
10
19
|
windowHeaderMainActions: string;
|
|
11
20
|
windowContent: string;
|
|
12
21
|
windowRootContainer: string;
|
|
22
|
+
windowLinearProgressRoot: string;
|
|
23
|
+
windowLinearProgressBar: string;
|
|
13
24
|
windowPopupRoot: string;
|
|
14
25
|
windowModalRoot: string;
|
|
15
26
|
windowToastiesContainer: string;
|
|
27
|
+
windowToastiesContainerTostys: string;
|
|
16
28
|
windowToastyContainer: string;
|
|
17
29
|
windowToastyMeesageButtonsContainer: string;
|
|
18
30
|
windowToastyMessage: string;
|
|
@@ -30,5 +42,6 @@ export interface AreasViewerClasses {
|
|
|
30
42
|
info: string;
|
|
31
43
|
warning: string;
|
|
32
44
|
error: string;
|
|
45
|
+
containerLinearProgress: string;
|
|
33
46
|
}
|
|
34
47
|
export declare type AreasViewerClassesKey = keyof AreasViewerClasses;
|