@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
package/@types/export.d.ts
CHANGED
|
@@ -35,6 +35,24 @@ import { RHFDateTimeProps } from '../components/hook-form/RHFDateTime/types';
|
|
|
35
35
|
import { RHFDateTimeClassesKey } from '../components/hook-form/RHFDateTime/classes/types';
|
|
36
36
|
import { AreasAdminClassesKey } from '../components/areas/components/AreasAdmin/classes/types';
|
|
37
37
|
import { AreasViewerClassesKey } from '../components/areas/components/AreasViewer/classes/types';
|
|
38
|
+
import { AppBarProps } from 'src/components/AppBar/types';
|
|
39
|
+
import { AccountPopoverProps } from 'src/components/AccountPopover/types';
|
|
40
|
+
import { SplitLayoutProps } from 'src/components/SplitLayout';
|
|
41
|
+
import { LinearProgressIndeterminateClassesKey } from '../components/LinearProgressIndeterminate/classes/types';
|
|
42
|
+
import { PropertyValueProps } from '../components/PropertyValue/types';
|
|
43
|
+
import { TabClassesKey } from '../components/mui_extended/Tab/classes/types';
|
|
44
|
+
import { AccordionProps } from '../components/mui_extended/Accordion/types';
|
|
45
|
+
import { PropertyValueClassesKey } from '../components/PropertyValue/classes/types';
|
|
46
|
+
import { FormProviderProps } from '../contexts/RHFormContext/types';
|
|
47
|
+
import { RHFormProivderClassesKey } from '../contexts/RHFormContext/classes/types';
|
|
48
|
+
import { RHFUploadImageClassesKey } from '../components/hook-form/RHFUpload/RHFUploadImage/classes/types';
|
|
49
|
+
import { RHFUploadImageProps } from '../components/hook-form/RHFUpload/RHFUploadImage/types';
|
|
50
|
+
import { PeriodProps } from '../components/Period/types';
|
|
51
|
+
import { PeriodClassesKey } from '../components/Period/classes/types';
|
|
52
|
+
import { ModalClassesKey } from '..index/components/modal/classes/types';
|
|
53
|
+
import { PaperFormClassesKey } from '../components/PaperForm/classes/types';
|
|
54
|
+
import { TooltipClassesKey } from '../components/mui_extended/Tooltip/classes/types';
|
|
55
|
+
|
|
38
56
|
|
|
39
57
|
export {};
|
|
40
58
|
|
|
@@ -47,6 +65,7 @@ declare module '@mui/material/styles' {
|
|
|
47
65
|
M4LRHFTextFieldPassword: RHFTextFieldPasswordProps;
|
|
48
66
|
M4LRHFAutocomplete: RHFAutocompleteProps;
|
|
49
67
|
M4LRHFAutocompleteAsync: RHFAutocompleteAsyncProps;
|
|
68
|
+
M4LRHFDateTime: RHFDateTimeProps;
|
|
50
69
|
M4LIcon: IconProps;
|
|
51
70
|
M4LIconButton: IconButtonProps;
|
|
52
71
|
M4LanguagePopover: undefined;
|
|
@@ -60,7 +79,14 @@ declare module '@mui/material/styles' {
|
|
|
60
79
|
M4LoadingButton: MuiLabLoadingButtonProps;
|
|
61
80
|
M4LNavLink: NavLinkProps;
|
|
62
81
|
M4LSideBar: SideBarProps;
|
|
63
|
-
|
|
82
|
+
M4LAppBar: AppBarProps;
|
|
83
|
+
M4LAvatar: AvatarProps;
|
|
84
|
+
M4LAccountPopover: AccountPopoverProps;
|
|
85
|
+
M4LSplitLayout: SplitLayoutProps;
|
|
86
|
+
M4LPropertyValue: PropertyValueProps;
|
|
87
|
+
M4LRHFormProvider: FormProviderProps;
|
|
88
|
+
M4LRHFUploadImage: RHFUploadImageProps;
|
|
89
|
+
M4LPeriod: PeriodProps;
|
|
64
90
|
}
|
|
65
91
|
|
|
66
92
|
interface ComponentNameToClassKey {
|
|
@@ -84,14 +110,37 @@ declare module '@mui/material/styles' {
|
|
|
84
110
|
M4LoadingButton: LoadingbuttonClassesKey;
|
|
85
111
|
M4LNavLink: ButtonBaseClassKey;
|
|
86
112
|
M4LSideBar: SideBarClassesKey;
|
|
113
|
+
M4LAppBar: AppBarClassesKey;
|
|
87
114
|
M4LSideBarPopover: SideBarClassesKey;
|
|
88
115
|
M4LSideBarDrawer: SideBarClassesKey;
|
|
89
116
|
M4LRHFDateTime: RHFDateTimeClassesKey;
|
|
90
117
|
M4LAreasViewer: AreasViewerClassesKey;
|
|
91
118
|
M4LAreasAdmin: AreasAdminClassesKey;
|
|
119
|
+
M4LAreasAdminEditPopover: AreasAdminClassesKey;
|
|
120
|
+
M4LAvatar: AvatarClassesKey;
|
|
121
|
+
M4LAccountPopover: AccountPopoverClassesKey;
|
|
122
|
+
M4LAccountPopoverPopover: AccountPopoverClassesKey;
|
|
123
|
+
M4LModuleLayout: ModuleLayoutClassesKey;
|
|
124
|
+
M4LMasterDetailLayout: MasterDetailLayoutClassesKey;
|
|
125
|
+
M4LSplitLayout: SplitLayoutClassesKey;
|
|
126
|
+
M4LCommonActions: CommonActionsClassesKey;
|
|
127
|
+
M4LinearProgressIndeterminate: LinearProgressIndeterminateClassesKey;
|
|
128
|
+
M4LPropertyValue: PropertyValueClassesKey;
|
|
129
|
+
M4LTab: TabClassesKey;
|
|
130
|
+
M4LAccordion: AccordionClassesKey;
|
|
131
|
+
M4LRHFormProvider: RHFormProivderClassesKey;
|
|
132
|
+
M4LRHFUploadImage: RHFUploadImageClassesKey;
|
|
133
|
+
M4LModalDialog: ModalClassesKey;
|
|
134
|
+
M4LPaperForm: PaperFormClassesKey;
|
|
135
|
+
M4LTooltip: TooltipClassesKey;
|
|
136
|
+
|
|
92
137
|
}
|
|
93
138
|
|
|
94
139
|
interface Components {
|
|
140
|
+
M4LPeriod?: {
|
|
141
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LPeriod'];
|
|
142
|
+
defaultProps?: ComponentsProps['M4LPeriod'];
|
|
143
|
+
};
|
|
95
144
|
M4LAreasViewer?: {
|
|
96
145
|
styleOverrides?: ComponentsOverrides<Theme>['M4LAreasViewer'];
|
|
97
146
|
defaultProps?: ComponentsProps['M4LAreasViewer'];
|
|
@@ -132,6 +181,10 @@ declare module '@mui/material/styles' {
|
|
|
132
181
|
styleOverrides?: ComponentsOverrides<Theme>['M4LRHFDateTime'];
|
|
133
182
|
defaultProps?: ComponentsProps['M4LRHFDateTime'];
|
|
134
183
|
};
|
|
184
|
+
M4LRHFUploadImage?: {
|
|
185
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LRHFUploadImage'];
|
|
186
|
+
defaultProps?: ComponentsProps['M4LRHFUploadImage'];
|
|
187
|
+
};
|
|
135
188
|
M4LIcon?: {
|
|
136
189
|
styleOverrides?: ComponentsOverrides<Theme>['M4LIcon'];
|
|
137
190
|
defaultProps?: ComponentsProps['M4LIcon'];
|
|
@@ -184,6 +237,10 @@ declare module '@mui/material/styles' {
|
|
|
184
237
|
styleOverrides?: ComponentsOverrides<Theme>['M4LSideBar'];
|
|
185
238
|
defaultProps?: ComponentsProps['M4LSideBar'];
|
|
186
239
|
};
|
|
240
|
+
M4LAppBar?: {
|
|
241
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LAppBar'];
|
|
242
|
+
defaultProps?: ComponentsProps['M4LAppBar'];
|
|
243
|
+
};
|
|
187
244
|
M4LSideBarPopover?: {
|
|
188
245
|
styleOverrides?: ComponentsOverrides<Theme>['M4LSideBarPopover'];
|
|
189
246
|
defaultProps?: ComponentsProps['M4LSideBarPopover'];
|
|
@@ -204,5 +261,70 @@ declare module '@mui/material/styles' {
|
|
|
204
261
|
M4LAreasAdmin?: {
|
|
205
262
|
styleOverrides?: ComponentsOverrides<Theme>['M4LAreasAdmin'];
|
|
206
263
|
};
|
|
264
|
+
M4LAreasAdminEditPopover?: {
|
|
265
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LAreasAdminEditPopover'];
|
|
266
|
+
};
|
|
267
|
+
M4LAvatar?: {
|
|
268
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LAvatar'];
|
|
269
|
+
defaultProps?: ComponentsProps['M4LAvatar'];
|
|
270
|
+
};
|
|
271
|
+
M4LAccountPopover?: {
|
|
272
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LAccountPopover'];
|
|
273
|
+
defaultProps?: ComponentsProps['M4LAccountPopover'];
|
|
274
|
+
};
|
|
275
|
+
M4LAccountPopoverPopover?: {
|
|
276
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LAccountPopoverPopover'];
|
|
277
|
+
};
|
|
278
|
+
M4LModuleLayout?: {
|
|
279
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LModuleLayout'];
|
|
280
|
+
};
|
|
281
|
+
M4LMasterDetailLayout?: {
|
|
282
|
+
styleOverrides?: ComponentsOverrides<Theme>['MasterDetailLayout'];
|
|
283
|
+
};
|
|
284
|
+
M4LSplitLayout?: {
|
|
285
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LSplitLayout'];
|
|
286
|
+
defaultProps?: ComponentsProps['M4LSplitLayout'];
|
|
287
|
+
};
|
|
288
|
+
M4LCommonActions?: {
|
|
289
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LCommonActions'];
|
|
290
|
+
defaultProps?: ComponentsProps['M4LCommonActions'];
|
|
291
|
+
};
|
|
292
|
+
M4LinearProgressIndeterminate?: {
|
|
293
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LinearProgressIndeterminate'];
|
|
294
|
+
defaultProps?: ComponentsProps['M4LinearProgressIndeterminate'];
|
|
295
|
+
};
|
|
296
|
+
M4LPropertyValue?: {
|
|
297
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LPropertyValue'];
|
|
298
|
+
defaultProps?: ComponentsProps['M4LPropertyValue'];
|
|
299
|
+
};
|
|
300
|
+
M4LAccordion?: {
|
|
301
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LAccordion'];
|
|
302
|
+
defaultProps?: ComponentsProps['M4LAccordion'];
|
|
303
|
+
};
|
|
304
|
+
M4LTab?: {
|
|
305
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LTab'];
|
|
306
|
+
defaultProps?: ComponentsProps['M4LTab'];
|
|
307
|
+
};
|
|
308
|
+
M4LRHFormProvider?: {
|
|
309
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LRHFormProvider'];
|
|
310
|
+
defaultProps?: ComponentsProps['M4LRHFormProvider'];
|
|
311
|
+
};
|
|
312
|
+
M4LRHFPeriod?: {
|
|
313
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LRHFPeriod'];
|
|
314
|
+
defaultProps?: ComponentsProps['M4LRHFPeriod'];
|
|
315
|
+
};
|
|
316
|
+
M4LModalDialog?: {
|
|
317
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LModalDialog'];
|
|
318
|
+
defaultProps?: ComponentsProps['M4LModalDialog'];
|
|
319
|
+
};
|
|
320
|
+
M4LPaperForm?: {
|
|
321
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LPaperForm'];
|
|
322
|
+
defaultProps?: ComponentsProps['M4LPaperForm'];
|
|
323
|
+
};
|
|
324
|
+
M4LTooltip?: {
|
|
325
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LTooltip'];
|
|
326
|
+
defaultProps?: ComponentsProps['M4LTooltip'];
|
|
327
|
+
};
|
|
328
|
+
|
|
207
329
|
}
|
|
208
330
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const componentName = "
|
|
1
|
+
export declare const componentName = "M4LAccountPopover";
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
import { AccountPopoverClassesType } from './types';
|
|
2
2
|
export declare const accountPopoverClasses: AccountPopoverClassesType;
|
|
3
3
|
export declare function getAccountPopoverClassesUtilityClass(slot: string): string;
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const useAccountPopoverUtilityClasses: () => {
|
|
5
5
|
root: string;
|
|
6
6
|
containerUserInfo: string;
|
|
7
|
+
labelUserName: string;
|
|
8
|
+
labelUserEmail: string;
|
|
9
|
+
labelVersion: string;
|
|
10
|
+
myAvatar: string;
|
|
11
|
+
containerAvatarPopover: string;
|
|
12
|
+
popover: string;
|
|
13
|
+
containerAppVersion: string;
|
|
14
|
+
containerMenuItems: string;
|
|
15
|
+
containerProgress: string;
|
|
16
|
+
logOut: string;
|
|
17
|
+
menuItem: string;
|
|
7
18
|
};
|
|
@@ -1,5 +1,18 @@
|
|
|
1
|
+
import { useAccountPopoverUtilityClasses } from ".";
|
|
1
2
|
export interface AccountPopoverClassesType {
|
|
2
3
|
root: string;
|
|
3
4
|
containerUserInfo: string;
|
|
5
|
+
labelUserName: string;
|
|
6
|
+
labelUserEmail: string;
|
|
7
|
+
labelVersion: string;
|
|
8
|
+
containerAvatarPopover: string;
|
|
9
|
+
myAvatar: string;
|
|
10
|
+
popover: string;
|
|
11
|
+
containerAppVersion: string;
|
|
12
|
+
containerMenuItems: string;
|
|
13
|
+
containerProgress: string;
|
|
14
|
+
logOut: string;
|
|
15
|
+
menuItem: string;
|
|
4
16
|
}
|
|
5
|
-
export declare type
|
|
17
|
+
export declare type AccountPopoverClassesKey = keyof AccountPopoverClassesType;
|
|
18
|
+
export declare type Classes = ReturnType<typeof useAccountPopoverUtilityClasses>;
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
import { useModuleDictionary, useNetwork } from "@m4l/core";
|
|
2
|
+
import { useState, useEffect } from "react";
|
|
3
|
+
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
4
|
+
import { generateUtilityClasses, generateUtilityClass, styled, useTheme } from "@mui/material";
|
|
5
|
+
import "../Icon/index.9dae8337.js";
|
|
6
|
+
import "clsx";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import "../mui_extended/IconButton/index.1a9d4fa5.js";
|
|
9
|
+
import "@m4l/graphics";
|
|
10
|
+
import "../mui_extended/Accordion/index.3faafd8b.js";
|
|
11
|
+
import "../mui_extended/Typography/index.443590d6.js";
|
|
12
|
+
import { A as Avatar } from "../mui_extended/Avatar/index.75e6ed57.js";
|
|
13
|
+
import "react-router-dom";
|
|
14
|
+
import "@mui/material/Button";
|
|
15
|
+
import "../mui_extended/Button/index.fdb5dcbd.js";
|
|
16
|
+
import { C as CircularProgress } from "../mui_extended/CircularProgress/index.ad569afd.js";
|
|
17
|
+
import "../Image/index.c18ebf5a.js";
|
|
18
|
+
import "@mui/lab";
|
|
19
|
+
import { P as Popover } from "../mui_extended/Popover/index.9f35d0eb.js";
|
|
20
|
+
import "../mui_extended/MenuActions/index.ba1da3b3.js";
|
|
21
|
+
import "../mui_extended/Pager/index.67bda2c5.js";
|
|
22
|
+
import "../mui_extended/Tab/index.9e2f6e34.js";
|
|
23
|
+
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
24
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
25
|
+
const componentName = "M4LAccountPopover";
|
|
26
|
+
generateUtilityClasses(componentName, [
|
|
27
|
+
"root",
|
|
28
|
+
"containerUserInfo",
|
|
29
|
+
"labelUserName",
|
|
30
|
+
"labelUserEmail",
|
|
31
|
+
"labelVersion",
|
|
32
|
+
"containerAvatarPopover",
|
|
33
|
+
"myAvatar",
|
|
34
|
+
"popover",
|
|
35
|
+
"containerAppVersion",
|
|
36
|
+
"containerMenuItems",
|
|
37
|
+
"containerProgress",
|
|
38
|
+
"logOut",
|
|
39
|
+
"menuItem"
|
|
40
|
+
]);
|
|
41
|
+
function getAccountPopoverClassesUtilityClass(slot) {
|
|
42
|
+
return generateUtilityClass(componentName, slot);
|
|
43
|
+
}
|
|
44
|
+
const useAccountPopoverUtilityClasses = () => {
|
|
45
|
+
const slots = {
|
|
46
|
+
root: ["root"],
|
|
47
|
+
containerUserInfo: ["containerUserInfo"],
|
|
48
|
+
labelUserName: ["labelUserName"],
|
|
49
|
+
labelUserEmail: ["labelUserEmail"],
|
|
50
|
+
labelVersion: ["labelVersion"],
|
|
51
|
+
myAvatar: ["myAvatar"],
|
|
52
|
+
containerAvatarPopover: ["containerAvatarPopover"],
|
|
53
|
+
popover: ["popover"],
|
|
54
|
+
containerAppVersion: ["containerAppVersion"],
|
|
55
|
+
containerMenuItems: ["containerMenuItems"],
|
|
56
|
+
containerProgress: ["containerProgress"],
|
|
57
|
+
logOut: ["logOut"],
|
|
58
|
+
menuItem: ["menuItem"]
|
|
59
|
+
};
|
|
60
|
+
const composedClasses = unstable_composeClasses(slots, getAccountPopoverClassesUtilityClass, {});
|
|
61
|
+
return {
|
|
62
|
+
...composedClasses
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
const AcountPopOverRoot = styled("div")(({
|
|
66
|
+
theme
|
|
67
|
+
}) => ({
|
|
68
|
+
...theme.components?.M4LAccountPopover?.styleOverrides
|
|
69
|
+
}));
|
|
70
|
+
const PRIMARY_NAME = ["A", "N", "H", "L", "Q", "9", "8"];
|
|
71
|
+
const INFO_NAME = ["F", "G", "T", "I", "J", "1", "2", "3"];
|
|
72
|
+
const SUCCESS_NAME = ["K", "D", "Y", "B", "O", "4", "5"];
|
|
73
|
+
const WARNING_NAME = ["P", "E", "R", "S", "C", "U", "6", "7"];
|
|
74
|
+
const ERROR_NAME = ["V", "W", "X", "M", "Z"];
|
|
75
|
+
function getFirstCharacter(name) {
|
|
76
|
+
return name && name.charAt(0).toUpperCase();
|
|
77
|
+
}
|
|
78
|
+
function getAvatarColor(name) {
|
|
79
|
+
if (PRIMARY_NAME.includes(getFirstCharacter(name)))
|
|
80
|
+
return "primary";
|
|
81
|
+
if (INFO_NAME.includes(getFirstCharacter(name)))
|
|
82
|
+
return "info";
|
|
83
|
+
if (SUCCESS_NAME.includes(getFirstCharacter(name)))
|
|
84
|
+
return "success";
|
|
85
|
+
if (WARNING_NAME.includes(getFirstCharacter(name)))
|
|
86
|
+
return "warning";
|
|
87
|
+
if (ERROR_NAME.includes(getFirstCharacter(name)))
|
|
88
|
+
return "error";
|
|
89
|
+
return "default";
|
|
90
|
+
}
|
|
91
|
+
function createAvatar(name) {
|
|
92
|
+
return {
|
|
93
|
+
name: getFirstCharacter(name),
|
|
94
|
+
color: getAvatarColor(name)
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
function MyAvatar({
|
|
98
|
+
...other
|
|
99
|
+
}) {
|
|
100
|
+
return /* @__PURE__ */ jsx(
|
|
101
|
+
Avatar,
|
|
102
|
+
{
|
|
103
|
+
src: "",
|
|
104
|
+
alt: "full_name",
|
|
105
|
+
color: "default",
|
|
106
|
+
...other,
|
|
107
|
+
children: createAvatar("").name
|
|
108
|
+
}
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
const MenuPopOver = (props) => {
|
|
112
|
+
const {
|
|
113
|
+
data,
|
|
114
|
+
handleClick: onClick,
|
|
115
|
+
version,
|
|
116
|
+
handleLogOut,
|
|
117
|
+
classes,
|
|
118
|
+
userData
|
|
119
|
+
} = props;
|
|
120
|
+
const {
|
|
121
|
+
getLabel
|
|
122
|
+
} = useModuleDictionary();
|
|
123
|
+
const [open2, setOpen] = useState(null);
|
|
124
|
+
const theme = useTheme();
|
|
125
|
+
const handleClick = (item) => {
|
|
126
|
+
onClick(item);
|
|
127
|
+
handleClose();
|
|
128
|
+
};
|
|
129
|
+
const handleClose = () => {
|
|
130
|
+
setOpen(null);
|
|
131
|
+
};
|
|
132
|
+
const handleOpen = (event) => {
|
|
133
|
+
setOpen(event.currentTarget);
|
|
134
|
+
};
|
|
135
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
136
|
+
className: classes.containerAvatarPopover,
|
|
137
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
138
|
+
[TEST_PROP_ID]: getAccountPopoverClassesUtilityClass("containerAvatarPopover")
|
|
139
|
+
} : {},
|
|
140
|
+
onClick: handleOpen,
|
|
141
|
+
children: [/* @__PURE__ */ jsx(MyAvatar, {
|
|
142
|
+
className: classes.myAvatar
|
|
143
|
+
}), /* @__PURE__ */ jsxs(Popover, {
|
|
144
|
+
open: Boolean(open2),
|
|
145
|
+
anchorEl: open2,
|
|
146
|
+
onClose: handleClose,
|
|
147
|
+
onBlur: handleClose,
|
|
148
|
+
className: classes.popover,
|
|
149
|
+
arrowType: "no-arrow",
|
|
150
|
+
anchorOrigin: {
|
|
151
|
+
vertical: "bottom",
|
|
152
|
+
horizontal: "right"
|
|
153
|
+
},
|
|
154
|
+
transformOrigin: {
|
|
155
|
+
vertical: "top",
|
|
156
|
+
horizontal: "right"
|
|
157
|
+
},
|
|
158
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
159
|
+
[TEST_PROP_ID]: getAccountPopoverClassesUtilityClass("popover")
|
|
160
|
+
} : {},
|
|
161
|
+
sx: {
|
|
162
|
+
mt: "5px",
|
|
163
|
+
...theme.components?.M4LAccountPopoverPopover?.styleOverrides
|
|
164
|
+
},
|
|
165
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
166
|
+
className: classes.containerUserInfo,
|
|
167
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
168
|
+
[TEST_PROP_ID]: getAccountPopoverClassesUtilityClass("containerUserInfo")
|
|
169
|
+
} : {},
|
|
170
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
171
|
+
className: classes.labelUserName,
|
|
172
|
+
children: `${userData?.first_name} ${userData?.last_name}`
|
|
173
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
174
|
+
className: classes.labelUserEmail,
|
|
175
|
+
children: userData?.email
|
|
176
|
+
})]
|
|
177
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
178
|
+
className: classes.containerAppVersion,
|
|
179
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
180
|
+
[TEST_PROP_ID]: getAccountPopoverClassesUtilityClass("containerAppVersion")
|
|
181
|
+
} : {},
|
|
182
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
183
|
+
className: classes.labelVersion,
|
|
184
|
+
children: `${getLabel("version")} ${version}`
|
|
185
|
+
})
|
|
186
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
187
|
+
className: classes.containerMenuItems,
|
|
188
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
189
|
+
[TEST_PROP_ID]: getAccountPopoverClassesUtilityClass("containerMenuItems")
|
|
190
|
+
} : {},
|
|
191
|
+
children: data ? data.length !== 0 && data.map((option) => /* @__PURE__ */ jsx("div", {
|
|
192
|
+
onClick: () => handleClick(option),
|
|
193
|
+
className: classes.menuItem,
|
|
194
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
195
|
+
[TEST_PROP_ID]: getAccountPopoverClassesUtilityClass("menuItem")
|
|
196
|
+
} : {},
|
|
197
|
+
children: option.title
|
|
198
|
+
}, option.title)) : /* @__PURE__ */ jsx("div", {
|
|
199
|
+
className: classes.containerProgress,
|
|
200
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
201
|
+
[TEST_PROP_ID]: getAccountPopoverClassesUtilityClass("containerProgress")
|
|
202
|
+
} : {},
|
|
203
|
+
children: /* @__PURE__ */ jsx(CircularProgress, {
|
|
204
|
+
size: "20px"
|
|
205
|
+
})
|
|
206
|
+
})
|
|
207
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
208
|
+
onClick: handleLogOut,
|
|
209
|
+
className: classes.logOut,
|
|
210
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
211
|
+
[TEST_PROP_ID]: getAccountPopoverClassesUtilityClass("logOut")
|
|
212
|
+
} : {},
|
|
213
|
+
children: getLabel("logout")
|
|
214
|
+
})]
|
|
215
|
+
})]
|
|
216
|
+
});
|
|
217
|
+
};
|
|
218
|
+
const AccountPopover = (props) => {
|
|
219
|
+
const {
|
|
220
|
+
handleClick,
|
|
221
|
+
version,
|
|
222
|
+
handleLogOut,
|
|
223
|
+
userData
|
|
224
|
+
} = props;
|
|
225
|
+
const [asyncState, setAsyncState] = useState("unLoad");
|
|
226
|
+
const [menuData, setMenuData] = useState([]);
|
|
227
|
+
const {
|
|
228
|
+
networkOperation
|
|
229
|
+
} = useNetwork();
|
|
230
|
+
useEffect(() => {
|
|
231
|
+
let mounted = true;
|
|
232
|
+
if (asyncState === "unLoad") {
|
|
233
|
+
setAsyncState("loading");
|
|
234
|
+
networkOperation({
|
|
235
|
+
method: "GET",
|
|
236
|
+
endPoint: `menus`,
|
|
237
|
+
parms: {
|
|
238
|
+
position: 1
|
|
239
|
+
}
|
|
240
|
+
}).then((response) => {
|
|
241
|
+
if (mounted) {
|
|
242
|
+
setAsyncState("loaded");
|
|
243
|
+
setMenuData(response.data);
|
|
244
|
+
}
|
|
245
|
+
}).catch((_error) => {
|
|
246
|
+
console.error("AccountData network request error - get menus", _error);
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
return function cleanUp() {
|
|
250
|
+
mounted = false;
|
|
251
|
+
};
|
|
252
|
+
}, [open]);
|
|
253
|
+
const classes = useAccountPopoverUtilityClasses();
|
|
254
|
+
return /* @__PURE__ */ jsx("div", {
|
|
255
|
+
children: /* @__PURE__ */ jsx(AcountPopOverRoot, {
|
|
256
|
+
className: classes.root,
|
|
257
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
258
|
+
[TEST_PROP_ID]: getAccountPopoverClassesUtilityClass("root")
|
|
259
|
+
} : {},
|
|
260
|
+
children: /* @__PURE__ */ jsx(MenuPopOver, {
|
|
261
|
+
data: menuData,
|
|
262
|
+
handleClick,
|
|
263
|
+
version,
|
|
264
|
+
handleLogOut,
|
|
265
|
+
classes,
|
|
266
|
+
userData
|
|
267
|
+
})
|
|
268
|
+
})
|
|
269
|
+
});
|
|
270
|
+
};
|
|
271
|
+
export {
|
|
272
|
+
AccountPopover as A
|
|
273
|
+
};
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
+
import { Classes } from "../../classes/types";
|
|
1
2
|
import { AccountPopoverProps, UserMenuData } from "../../types";
|
|
2
|
-
declare type open = HTMLElement | null;
|
|
3
3
|
export interface PopOverProps extends AccountPopoverProps {
|
|
4
|
-
setOpen: (element: open) => void;
|
|
5
|
-
open: open;
|
|
6
4
|
data: Array<UserMenuData> | [];
|
|
7
|
-
classes:
|
|
5
|
+
classes: Classes;
|
|
8
6
|
}
|
|
9
|
-
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Maybe } from "@m4l/core";
|
|
1
2
|
import { DomainCountry } from "@m4l/core";
|
|
2
3
|
export declare type asyncTypes = 'unLoad' | 'loading' | 'loaded';
|
|
3
4
|
export interface UserMenuData {
|
|
@@ -21,8 +22,20 @@ export interface userData {
|
|
|
21
22
|
entry_application_id: number;
|
|
22
23
|
avatar_url: string;
|
|
23
24
|
}
|
|
25
|
+
interface User {
|
|
26
|
+
email: string;
|
|
27
|
+
id: number;
|
|
28
|
+
first_name: string;
|
|
29
|
+
last_name: string;
|
|
30
|
+
account_id: number;
|
|
31
|
+
domain_country: DomainCountry;
|
|
32
|
+
avatar_url?: Maybe<string>;
|
|
33
|
+
}
|
|
34
|
+
declare type AuthUser = Maybe<User>;
|
|
24
35
|
export interface AccountPopoverProps {
|
|
25
36
|
handleClick: (item: UserMenuData) => void;
|
|
26
37
|
handleLogOut: VoidFunction;
|
|
27
38
|
version: string;
|
|
39
|
+
userData: AuthUser;
|
|
28
40
|
}
|
|
41
|
+
export {};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { AppBarClassesType } from './types';
|
|
2
2
|
export declare const appBarClasses: AppBarClassesType;
|
|
3
3
|
export declare function getAppBarClassesUtilityClass(slot: string): string;
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const useAppBarUtilityClasses: () => {
|
|
5
5
|
root: string;
|
|
6
|
+
containerChilds: string;
|
|
7
|
+
containerIconMenuToggle: string;
|
|
8
|
+
iconMenuToggle: string;
|
|
6
9
|
};
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
+
import { useAppBarUtilityClasses } from ".";
|
|
1
2
|
export interface AppBarClassesType {
|
|
2
3
|
root: string;
|
|
4
|
+
containerChilds: string;
|
|
5
|
+
containerIconMenuToggle: string;
|
|
6
|
+
iconMenuToggle: string;
|
|
3
7
|
}
|
|
4
8
|
export declare type AppBarClassesKey = keyof AppBarClassesType;
|
|
9
|
+
export declare type Classes = ReturnType<typeof useAppBarUtilityClasses>;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
2
|
+
import { useEnvironment } from "@m4l/core";
|
|
3
|
+
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
4
|
+
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
5
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.1a9d4fa5.js";
|
|
6
|
+
import "../mui_extended/Accordion/index.3faafd8b.js";
|
|
7
|
+
import "../Icon/index.9dae8337.js";
|
|
8
|
+
import "react";
|
|
9
|
+
import "clsx";
|
|
10
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
11
|
+
import "../mui_extended/Typography/index.443590d6.js";
|
|
12
|
+
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
13
|
+
import "react-router-dom";
|
|
14
|
+
import "@mui/material/Button";
|
|
15
|
+
import "../mui_extended/Button/index.fdb5dcbd.js";
|
|
16
|
+
import "../Image/index.c18ebf5a.js";
|
|
17
|
+
import "@mui/lab";
|
|
18
|
+
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
19
|
+
import "../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";
|
|
23
|
+
import { styled } from "@mui/material/styles";
|
|
24
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
25
|
+
const AppBarRoot = styled("header")(({
|
|
26
|
+
theme
|
|
27
|
+
}) => ({
|
|
28
|
+
...theme.components?.M4LAppBar?.styleOverrides
|
|
29
|
+
}));
|
|
30
|
+
const APPBAR_PREFIX = "M4LAppBar";
|
|
31
|
+
const getNameDataTestId = (KEY) => {
|
|
32
|
+
return `${APPBAR_PREFIX}-${KEY}`;
|
|
33
|
+
};
|
|
34
|
+
const componentName = "M4LAppBar";
|
|
35
|
+
generateUtilityClasses(componentName, [
|
|
36
|
+
"root",
|
|
37
|
+
"containerChilds",
|
|
38
|
+
"containerIconMenuToggle",
|
|
39
|
+
"iconMenuToggle"
|
|
40
|
+
]);
|
|
41
|
+
function getAppBarClassesUtilityClass(slot) {
|
|
42
|
+
return generateUtilityClass(componentName, slot);
|
|
43
|
+
}
|
|
44
|
+
const useAppBarUtilityClasses = () => {
|
|
45
|
+
const slots = {
|
|
46
|
+
root: ["root"],
|
|
47
|
+
containerChilds: ["containerChilds"],
|
|
48
|
+
containerIconMenuToggle: ["containerIconMenuToggle"],
|
|
49
|
+
iconMenuToggle: ["iconMenuToggle"]
|
|
50
|
+
};
|
|
51
|
+
const composedClasses = unstable_composeClasses(slots, getAppBarClassesUtilityClass, {});
|
|
52
|
+
return {
|
|
53
|
+
...composedClasses
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
const AppBar = (props) => {
|
|
57
|
+
const {
|
|
58
|
+
onToggleVisible,
|
|
59
|
+
children
|
|
60
|
+
} = props;
|
|
61
|
+
const isDesktop = useResponsiveDesktop();
|
|
62
|
+
const {
|
|
63
|
+
host_static_assets,
|
|
64
|
+
environment_assets
|
|
65
|
+
} = useEnvironment();
|
|
66
|
+
const classes = useAppBarUtilityClasses();
|
|
67
|
+
return /* @__PURE__ */ jsxs(AppBarRoot, {
|
|
68
|
+
className: classes.root,
|
|
69
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
70
|
+
[TEST_PROP_ID]: getNameDataTestId("root")
|
|
71
|
+
} : {},
|
|
72
|
+
children: [!isDesktop ? /* @__PURE__ */ jsx("div", {
|
|
73
|
+
className: classes.containerIconMenuToggle,
|
|
74
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
75
|
+
[TEST_PROP_ID]: getNameDataTestId("containerIconMenuToggle")
|
|
76
|
+
} : {},
|
|
77
|
+
children: /* @__PURE__ */ jsx(IconButton, {
|
|
78
|
+
tooltip: "test",
|
|
79
|
+
className: classes.iconMenuToggle,
|
|
80
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/settings/assets/icons/options.svg`,
|
|
81
|
+
onClick: onToggleVisible
|
|
82
|
+
})
|
|
83
|
+
}) : null, /* @__PURE__ */ jsx("div", {
|
|
84
|
+
className: classes.containerChilds,
|
|
85
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
86
|
+
[TEST_PROP_ID]: getNameDataTestId("containerChilds")
|
|
87
|
+
} : {},
|
|
88
|
+
children
|
|
89
|
+
})]
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
export {
|
|
93
|
+
AppBar as A
|
|
94
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const APPBAR_PREFIX = "M4LAppBar";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
2
|
export declare type RootStyleProps = {
|
|
3
3
|
isCollapse: boolean;
|
|
4
4
|
isOffset: boolean;
|
|
5
5
|
isSideBarVisible: boolean;
|
|
6
6
|
};
|
|
7
|
-
export interface AppBarProps
|
|
7
|
+
export interface AppBarProps {
|
|
8
8
|
onToggleVisible: VoidFunction;
|
|
9
|
+
children: ReactNode;
|
|
9
10
|
}
|