@m4l/components 0.1.75 → 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 +78 -1
- package/components/AccountPopover/classes/index.d.ts +5 -0
- package/components/AccountPopover/classes/types.d.ts +5 -0
- package/components/AccountPopover/{index.93aefccd.js → index.47cf6c43.js} +150 -142
- package/components/AccountPopover/subcomponents/MyAvatar/createAvatar.d.ts +1 -1
- package/components/AccountPopover/subcomponents/PopOver/types.d.ts +0 -4
- package/components/AppBar/classes/index.d.ts +1 -0
- package/components/AppBar/classes/types.d.ts +1 -0
- package/components/AppBar/{index.cc974d56.js → index.f04f5e45.js} +24 -15
- package/components/CommonActions/components/ActionCancel/{index.574ea031.js → index.453c2d24.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.e62db5d3.js → index.c2a2fd55.js} +24 -21
- package/components/CommonActions/components/ActionFormIntro/{index.304da410.js → index.25d33912.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.d635cbc4.js → index.c653a266.js} +2 -2
- package/components/CommonActions/components/Actions/{index.37ffde59.js → index.e376a68e.js} +20 -19
- package/components/DataGrid/{index.c0c626cd.js → index.ffaf000e.js} +29 -21
- package/components/DraggableWindow/{index.b95a678e.js → index.b08af1dc.js} +1 -1
- package/components/DynamicFilter/{index.3034c6ba.js → index.d7c03a61.js} +34 -34
- package/components/HelperText/{index.ec9b3e6a.js → index.9864f773.js} +11 -10
- package/components/Icon/{index.f9119f5e.js → index.9dae8337.js} +1 -1
- package/components/Image/{index.8aae9322.js → index.c18ebf5a.js} +6 -7
- package/components/Image/types.d.ts +1 -4
- package/components/LanguagePopover/{index.491e1306.js → index.938c6675.js} +11 -10
- 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/ModalDialog/{index.f652ea12.js → index.d9c5d400.js} +21 -12
- package/components/NavLink/{index.f8aee9f4.js → index.21c8fd90.js} +11 -10
- package/components/NoItemSelected/{index.cce86db4.js → index.23dfc897.js} +1 -1
- package/components/ObjectLogs/{index.c31b3f8b.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.d79c6f76.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.41a8048b.js → index.f6e48e56.js} +1 -1
- package/components/SideBar/{index.1ae13a73.js → index.9e1a5b96.js} +4 -4
- 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.158621e0.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.621c0de4.js → index.bf4191ea.js} +431 -360
- 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.d98b89fc.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.79d1912d.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.a7b597fb.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.60aa1c9d.js → index.431dc923.js} +1 -1
- package/components/formatters/{index.1f0efb32.js → index.e1af75e6.js} +2 -2
- package/components/hook-form/RHFAutocomplete/{index.af3296ac.js → index.a063dc44.js} +12 -11
- package/components/hook-form/RHFAutocompleteAsync/{index.76864056.js → index.ddfd9cc9.js} +1 -1
- package/components/hook-form/RHFCheckbox/classes/types.d.ts +1 -0
- package/components/hook-form/RHFCheckbox/{index.865ba239.js → index.7e7f220b.js} +20 -13
- 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/{index.fd9c5aca.js → index.d330709b.js} +12 -11
- 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.abcbc2d3.js → index.e5336d09.js} +9 -6
- 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 +3 -3
- 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.1e1a91a3.js → index.75e6ed57.js} +3 -1
- package/components/mui_extended/Button/{index.aebbab34.js → index.fdb5dcbd.js} +2 -2
- package/components/mui_extended/IconButton/{index.3b05af71.js → index.1a9d4fa5.js} +1 -1
- package/components/mui_extended/LoadingButton/tests/constants.d.ts +1 -1
- package/components/mui_extended/MenuActions/{index.ca5ce35a.js → index.ba1da3b3.js} +4 -4
- package/components/mui_extended/MenuActions/types.d.ts +2 -2
- package/components/mui_extended/Pager/{index.80ec975a.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/index.73e536de.js +21 -0
- package/components/mui_extended/index.d.ts +2 -1
- package/contexts/ModalContext/{index.a0de81f0.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.26075cdd.js → index.7b7d26ba.js} +1 -1
- package/index.js +103 -95
- package/package.json +1 -1
- package/{react-draggable.e625b0d1.js → react-draggable.6d7949a3.js} +1 -1
- package/{react-resizable.24367d77.js → react-resizable.b6f8e04a.js} +2 -2
- package/utils/{index.b61dccbe.js → index.008b4c2a.js} +0 -12
- package/utils/types.d.ts +1 -1
- package/components/AccountPopover/style.d.ts +0 -2
- 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.ff110093.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/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.2ed9d60b.js +0 -14
- package/components/areas/index.d6b8e205.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.77486f61.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.522bcad5.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.c223e4da.js +0 -126
- package/components/modal/WindowConfirm/subcomponents/MessageIlustration/styles.d.ts +0 -6
- package/components/modal/WindowConfirm.023e293f.js +0 -132
- package/components/modal/index.dbce0cab.js +0 -36
- package/components/mui_extended/Accordion/components/AccordionLabel.d.ts +0 -3
- package/components/mui_extended/Accordion/index.03bd0e2a.js +0 -107
- package/components/mui_extended/Accordion/styles.d.ts +0 -4
- package/components/mui_extended/Avatar/styles.d.ts +0 -2
- 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.6dcdbb1f.js +0 -20
- package/contexts/RHFormContext/styles.d.ts +0 -2
- /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/components/index.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export * from './CommonActions/dictionary';
|
|
|
19
19
|
export * from './DraggableWindow';
|
|
20
20
|
export * from './Icon';
|
|
21
21
|
export * from './LanguagePopover';
|
|
22
|
+
export * from './LinearProgressIndeterminate';
|
|
22
23
|
export * from './Image/Image';
|
|
23
24
|
export * from './Loadable';
|
|
24
25
|
export * from './modal';
|
|
@@ -27,11 +28,10 @@ export * from './NoItemSelected';
|
|
|
27
28
|
export * from './NoItemSelected/dictionary';
|
|
28
29
|
export * from './ObjectLogs';
|
|
29
30
|
export * from './ObjectLogs/dictionary';
|
|
30
|
-
export * from './PaperForm';
|
|
31
|
+
export * from './PaperForm/PaperForm';
|
|
31
32
|
export * from './Period';
|
|
32
|
-
export type { PeriodType } from './Period/types';
|
|
33
33
|
export * from './HelmetPage';
|
|
34
|
-
export * from './PropertyValue';
|
|
34
|
+
export * from './PropertyValue/PropertyValue';
|
|
35
35
|
export * from './ResizeableWindow';
|
|
36
36
|
export * from './ScrollBar';
|
|
37
37
|
export { ScrollToTop } from './ScrollToTop';
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
+
import { Classes } from '../../../classes/types';
|
|
1
2
|
import { WindowBaseProps } from '../../types';
|
|
2
|
-
export
|
|
3
|
+
export interface HeaderProps extends Pick<WindowBaseProps, 'title' | 'onClickCancel' | 'urlIcon'> {
|
|
4
|
+
classes: Classes;
|
|
5
|
+
}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { VariantColor } from '../../../utils/types';
|
|
3
2
|
export interface WindowBaseProps {
|
|
4
3
|
title: string;
|
|
5
|
-
variant?: VariantColor;
|
|
6
4
|
children: ReactNode;
|
|
7
5
|
urlIcon?: string;
|
|
8
6
|
onClickCancel?: () => void;
|
|
9
7
|
}
|
|
10
|
-
export declare type VariantProps = Pick<WindowBaseProps, 'variant'>;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { useEnvironment } from "@m4l/core";
|
|
2
|
+
import "react";
|
|
3
|
+
import { u as useModal } from "../../hooks/useModal/index.7b7d26ba.js";
|
|
4
|
+
import { m as modalUtilityClasses } from "./index.1b25b61d.js";
|
|
5
|
+
import { I as Icon } from "../Icon/index.9dae8337.js";
|
|
6
|
+
import "@mui/material";
|
|
7
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.1a9d4fa5.js";
|
|
8
|
+
import "../mui_extended/Accordion/index.3faafd8b.js";
|
|
9
|
+
import "../mui_extended/Typography/index.443590d6.js";
|
|
10
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
11
|
+
import clsx from "clsx";
|
|
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
|
+
const Header = (props) => {
|
|
24
|
+
const {
|
|
25
|
+
title,
|
|
26
|
+
onClickCancel,
|
|
27
|
+
urlIcon,
|
|
28
|
+
classes
|
|
29
|
+
} = props;
|
|
30
|
+
const {
|
|
31
|
+
host_static_assets,
|
|
32
|
+
environment_assets
|
|
33
|
+
} = useEnvironment();
|
|
34
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
35
|
+
id: "Header",
|
|
36
|
+
className: clsx(classes.headerContainer, "m4l_draggable_handle"),
|
|
37
|
+
children: [urlIcon && /* @__PURE__ */ jsx("div", {
|
|
38
|
+
className: classes.iconHeader,
|
|
39
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
40
|
+
src: urlIcon
|
|
41
|
+
})
|
|
42
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
43
|
+
className: classes.titleHeader,
|
|
44
|
+
children: title
|
|
45
|
+
}), /* @__PURE__ */ jsx(IconButton, {
|
|
46
|
+
className: classes.iconCloseHeader,
|
|
47
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/close.svg`,
|
|
48
|
+
onClick: onClickCancel,
|
|
49
|
+
"aria-label": "click"
|
|
50
|
+
})]
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
const WindowBase = (props) => {
|
|
54
|
+
const {
|
|
55
|
+
children,
|
|
56
|
+
onClickCancel,
|
|
57
|
+
...other
|
|
58
|
+
} = props;
|
|
59
|
+
const {
|
|
60
|
+
closeModal,
|
|
61
|
+
variant
|
|
62
|
+
} = useModal();
|
|
63
|
+
const onCloseCancel = () => {
|
|
64
|
+
onClickCancel && onClickCancel();
|
|
65
|
+
closeModal();
|
|
66
|
+
};
|
|
67
|
+
const classes = modalUtilityClasses({
|
|
68
|
+
variant
|
|
69
|
+
});
|
|
70
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
71
|
+
className: classes.windowBaseRoot,
|
|
72
|
+
children: [/* @__PURE__ */ jsx(Header, {
|
|
73
|
+
...other,
|
|
74
|
+
onClickCancel: onCloseCancel,
|
|
75
|
+
classes
|
|
76
|
+
}), children]
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
export {
|
|
80
|
+
WindowBase as W
|
|
81
|
+
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Classes } from '../../../classes/types';
|
|
2
2
|
export interface ModalConfirmProps {
|
|
3
|
-
variant?: VariantColor;
|
|
4
3
|
msg?: string;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
variant?: VariantColor;
|
|
4
|
+
title?: string;
|
|
5
|
+
classes: Classes;
|
|
8
6
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
export declare type StateColors = 'warning' | 'delete' | 'info' | 'success' | undefined;
|
|
2
2
|
export interface WindowConfirmProps {
|
|
3
3
|
title: string;
|
|
4
|
-
variant?:
|
|
4
|
+
variant?: StateColors;
|
|
5
5
|
titleAccept?: string;
|
|
6
6
|
msg: string;
|
|
7
7
|
onClickIntro?: () => void;
|
|
8
8
|
onClickCancel?: () => void;
|
|
9
9
|
}
|
|
10
10
|
export declare type VariantProps = Pick<WindowConfirmProps, 'variant'>;
|
|
11
|
+
export declare type OwnerStateWindowConfim = VariantProps;
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
2
|
+
import "react";
|
|
3
|
+
import { u as useModal } from "../../hooks/useModal/index.7b7d26ba.js";
|
|
4
|
+
import { A as Actions } from "../CommonActions/components/Actions/index.e376a68e.js";
|
|
5
|
+
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.453c2d24.js";
|
|
6
|
+
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.c653a266.js";
|
|
7
|
+
import "react-hook-form";
|
|
8
|
+
import { Typography } from "@mui/material";
|
|
9
|
+
import "@mui/material/Button";
|
|
10
|
+
import "../mui_extended/Button/index.fdb5dcbd.js";
|
|
11
|
+
import "clsx";
|
|
12
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
13
|
+
import "../../react-draggable.6d7949a3.js";
|
|
14
|
+
import "../ModalDialog/index.d9c5d400.js";
|
|
15
|
+
import "../Resizeable/index.f6e48e56.js";
|
|
16
|
+
import "@m4l/graphics";
|
|
17
|
+
import "../Icon/index.9dae8337.js";
|
|
18
|
+
import { m as modalUtilityClasses } from "./index.1b25b61d.js";
|
|
19
|
+
import { I as Image } from "../Image/index.c18ebf5a.js";
|
|
20
|
+
import "../mui_extended/IconButton/index.1a9d4fa5.js";
|
|
21
|
+
import "../mui_extended/Accordion/index.3faafd8b.js";
|
|
22
|
+
import "../mui_extended/Typography/index.443590d6.js";
|
|
23
|
+
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
24
|
+
import "react-router-dom";
|
|
25
|
+
import "@mui/lab";
|
|
26
|
+
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
27
|
+
import "../mui_extended/MenuActions/index.ba1da3b3.js";
|
|
28
|
+
import "../mui_extended/Pager/index.67bda2c5.js";
|
|
29
|
+
import "../mui_extended/Tab/index.9e2f6e34.js";
|
|
30
|
+
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
31
|
+
import "zustand";
|
|
32
|
+
import "../areas/contexts/AreasContext/index.f0397b7c.js";
|
|
33
|
+
import "../areas/components/AreasAdmin/index.946eebb9.js";
|
|
34
|
+
import "zustand/shallow";
|
|
35
|
+
import "../ScrollBar/index.bbe48f4d.js";
|
|
36
|
+
import "../areas/components/AreasViewer/index.bf4191ea.js";
|
|
37
|
+
import "../LinearProgressIndeterminate/index.d34d398f.js";
|
|
38
|
+
import "../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
39
|
+
import "../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
40
|
+
const dictionary = {
|
|
41
|
+
MESSAGE: "common_actions.confirm_quit_msg"
|
|
42
|
+
};
|
|
43
|
+
const MessageIlustration = (props) => {
|
|
44
|
+
const {
|
|
45
|
+
getLabel
|
|
46
|
+
} = useModuleDictionary();
|
|
47
|
+
const {
|
|
48
|
+
variant
|
|
49
|
+
} = useModal();
|
|
50
|
+
const {
|
|
51
|
+
msg = getLabel(dictionary.MESSAGE),
|
|
52
|
+
classes,
|
|
53
|
+
title
|
|
54
|
+
} = props;
|
|
55
|
+
const {
|
|
56
|
+
host_static_assets,
|
|
57
|
+
environment_assets
|
|
58
|
+
} = useEnvironment();
|
|
59
|
+
const illustrationWarning = `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/illustrator_confirm_warning.svg`;
|
|
60
|
+
const illustrationDanger = `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/illustrator_confirm_danger.svg`;
|
|
61
|
+
const illustrationSuccess = `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/illustrator_confirm_success.svg`;
|
|
62
|
+
const illustrationInfo = `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/illustrator_confirm_info.svg`;
|
|
63
|
+
return /* @__PURE__ */ jsx("div", {
|
|
64
|
+
className: classes.containerMassageIlustration,
|
|
65
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
66
|
+
className: classes.modalContent,
|
|
67
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
68
|
+
className: classes.illustrationContainer,
|
|
69
|
+
children: /* @__PURE__ */ jsx(Image, {
|
|
70
|
+
className: classes.illustration,
|
|
71
|
+
src: variant === "warning" ? illustrationWarning : variant === "delete" ? illustrationDanger : variant === "success" ? illustrationSuccess : illustrationInfo
|
|
72
|
+
})
|
|
73
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
74
|
+
children: /* @__PURE__ */ jsx(Typography, {
|
|
75
|
+
variant: "subtitle",
|
|
76
|
+
children: title
|
|
77
|
+
})
|
|
78
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
79
|
+
className: classes.messageContainer,
|
|
80
|
+
children: /* @__PURE__ */ jsx(Typography, {
|
|
81
|
+
variant: "body",
|
|
82
|
+
children: msg
|
|
83
|
+
})
|
|
84
|
+
})]
|
|
85
|
+
})
|
|
86
|
+
});
|
|
87
|
+
};
|
|
88
|
+
const WindowConfirm = (props) => {
|
|
89
|
+
const {
|
|
90
|
+
variant,
|
|
91
|
+
title,
|
|
92
|
+
onClickCancel,
|
|
93
|
+
onClickIntro,
|
|
94
|
+
msg
|
|
95
|
+
} = props;
|
|
96
|
+
const {
|
|
97
|
+
closeModal
|
|
98
|
+
} = useModal();
|
|
99
|
+
const onCloseCancel = () => {
|
|
100
|
+
onClickCancel && onClickCancel();
|
|
101
|
+
closeModal();
|
|
102
|
+
};
|
|
103
|
+
const classes = modalUtilityClasses({
|
|
104
|
+
variant
|
|
105
|
+
});
|
|
106
|
+
return /* @__PURE__ */ jsxs(Fragment, {
|
|
107
|
+
children: [/* @__PURE__ */ jsx(MessageIlustration, {
|
|
108
|
+
classes,
|
|
109
|
+
msg,
|
|
110
|
+
title
|
|
111
|
+
}), /* @__PURE__ */ jsxs(Actions, {
|
|
112
|
+
children: [/* @__PURE__ */ jsx(ActionCancel, {
|
|
113
|
+
onClick: onCloseCancel
|
|
114
|
+
}), /* @__PURE__ */ jsx(ActionIntro, {
|
|
115
|
+
onClick: onClickIntro
|
|
116
|
+
})]
|
|
117
|
+
})]
|
|
118
|
+
});
|
|
119
|
+
};
|
|
120
|
+
export {
|
|
121
|
+
WindowConfirm as W
|
|
122
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const componentName = "M4LModal";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ModalClassesType } from './types';
|
|
2
|
+
import { OwnerStateWindowConfim } from '../WindowConfirm/types';
|
|
3
|
+
export declare const modalClasses: ModalClassesType;
|
|
4
|
+
export declare function getModalUtilityClass(slot: string): string;
|
|
5
|
+
export declare const modalUtilityClasses: (ownerState: OwnerStateWindowConfim) => {
|
|
6
|
+
root: string;
|
|
7
|
+
headerContainer: string;
|
|
8
|
+
windowBaseRoot: string;
|
|
9
|
+
containerWindow: string;
|
|
10
|
+
iconHeader: string;
|
|
11
|
+
titleHeader: string;
|
|
12
|
+
iconCloseHeader: string;
|
|
13
|
+
containerMassageIlustration: string;
|
|
14
|
+
modalContent: string;
|
|
15
|
+
illustrationContainer: string;
|
|
16
|
+
messageContainer: string;
|
|
17
|
+
illustration: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { modalUtilityClasses } from ".";
|
|
2
|
+
export interface ModalClassesType {
|
|
3
|
+
root: string;
|
|
4
|
+
windowBaseRoot: string;
|
|
5
|
+
containerWindow: string;
|
|
6
|
+
headerContainer: string;
|
|
7
|
+
iconHeader: string;
|
|
8
|
+
titleHeader: string;
|
|
9
|
+
iconCloseHeader: string;
|
|
10
|
+
containerMassageIlustration: string;
|
|
11
|
+
modalContent: string;
|
|
12
|
+
illustrationContainer: string;
|
|
13
|
+
messageContainer: string;
|
|
14
|
+
illustration: string;
|
|
15
|
+
variantDelete: string;
|
|
16
|
+
variantWarning: string;
|
|
17
|
+
variantInfo: string;
|
|
18
|
+
variantPrimary: string;
|
|
19
|
+
}
|
|
20
|
+
export declare type ModalClassesKey = keyof ModalClassesType;
|
|
21
|
+
export declare type Classes = ReturnType<typeof modalUtilityClasses>;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
2
|
+
import "../../react-draggable.6d7949a3.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../../contexts/ModalContext/index.699f95fa.js";
|
|
5
|
+
import "../ModalDialog/index.d9c5d400.js";
|
|
6
|
+
import "../Resizeable/index.f6e48e56.js";
|
|
7
|
+
import "react/jsx-runtime";
|
|
8
|
+
import "@m4l/graphics";
|
|
9
|
+
import "../Icon/index.9dae8337.js";
|
|
10
|
+
import "clsx";
|
|
11
|
+
import "@m4l/core";
|
|
12
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
13
|
+
import "../CommonActions/components/Actions/index.e376a68e.js";
|
|
14
|
+
import "@mui/material/Button";
|
|
15
|
+
import "../mui_extended/Button/index.fdb5dcbd.js";
|
|
16
|
+
import "react-hook-form";
|
|
17
|
+
import "../mui_extended/IconButton/index.1a9d4fa5.js";
|
|
18
|
+
import "../mui_extended/Accordion/index.3faafd8b.js";
|
|
19
|
+
import "../mui_extended/Typography/index.443590d6.js";
|
|
20
|
+
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
21
|
+
import "react-router-dom";
|
|
22
|
+
import "../Image/index.c18ebf5a.js";
|
|
23
|
+
import "@mui/lab";
|
|
24
|
+
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
25
|
+
import "../mui_extended/MenuActions/index.ba1da3b3.js";
|
|
26
|
+
import "../mui_extended/Pager/index.67bda2c5.js";
|
|
27
|
+
import "../mui_extended/Tab/index.9e2f6e34.js";
|
|
28
|
+
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
29
|
+
import "zustand";
|
|
30
|
+
import "../areas/contexts/AreasContext/index.f0397b7c.js";
|
|
31
|
+
import "../areas/components/AreasAdmin/index.946eebb9.js";
|
|
32
|
+
import "zustand/shallow";
|
|
33
|
+
import "../ScrollBar/index.bbe48f4d.js";
|
|
34
|
+
import "../areas/components/AreasViewer/index.bf4191ea.js";
|
|
35
|
+
import "../LinearProgressIndeterminate/index.d34d398f.js";
|
|
36
|
+
import "../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
37
|
+
import "../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
38
|
+
const componentName = "M4LModal";
|
|
39
|
+
generateUtilityClasses(componentName, [
|
|
40
|
+
"root",
|
|
41
|
+
"windowBaseRoot",
|
|
42
|
+
"containerWindow",
|
|
43
|
+
"headerContainer",
|
|
44
|
+
"iconHeader",
|
|
45
|
+
"titleHeader",
|
|
46
|
+
"iconCloseHeader",
|
|
47
|
+
"containerMassageIlustration",
|
|
48
|
+
"modalContent",
|
|
49
|
+
"illustrationContainer",
|
|
50
|
+
"messageContainer",
|
|
51
|
+
"illustration",
|
|
52
|
+
"variantDelete",
|
|
53
|
+
"variantWarning",
|
|
54
|
+
"variantInfo",
|
|
55
|
+
"variantPrimary"
|
|
56
|
+
]);
|
|
57
|
+
function getModalUtilityClass(slot) {
|
|
58
|
+
return generateUtilityClass(componentName, slot);
|
|
59
|
+
}
|
|
60
|
+
const modalUtilityClasses = (ownerState) => {
|
|
61
|
+
const slots = {
|
|
62
|
+
root: ["root", ownerState?.variant === "delete" && "variantDelete", ownerState.variant === "warning" && "variantWarning", ownerState.variant === "info" && "variantInfo", ownerState.variant === "success" && "variantSuccess"],
|
|
63
|
+
windowBaseRoot: ["windowBaseRoot"],
|
|
64
|
+
containerWindow: ["containerWindow"],
|
|
65
|
+
headerContainer: ["headerContainer"],
|
|
66
|
+
iconHeader: ["iconHeader"],
|
|
67
|
+
titleHeader: ["titleHeader"],
|
|
68
|
+
iconCloseHeader: ["iconCloseHeader"],
|
|
69
|
+
containerMassageIlustration: ["containerMassageIlustration"],
|
|
70
|
+
modalContent: ["modalContent"],
|
|
71
|
+
illustrationContainer: ["illustrationContainer"],
|
|
72
|
+
messageContainer: ["messageContainer"],
|
|
73
|
+
illustration: ["illustration"]
|
|
74
|
+
};
|
|
75
|
+
const composedClasses = unstable_composeClasses(slots, getModalUtilityClass, {});
|
|
76
|
+
return {
|
|
77
|
+
...composedClasses
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
export {
|
|
81
|
+
modalUtilityClasses as m
|
|
82
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { ModalDialog } from './ModalDialog';
|
|
2
2
|
export * from './ModalDialog/dictionary';
|
|
3
|
-
export
|
|
3
|
+
export { WindowConfirm } from './WindowConfirm';
|
|
4
|
+
export type { WindowConfirmProps } from './WindowConfirm/types';
|
|
4
5
|
export * from './WindowBase';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const componentName = "M4LAccordion";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AccordionClassesType } from './types';
|
|
2
|
+
export declare const accordionClasses: AccordionClassesType;
|
|
3
|
+
export declare function getAccordionUtilityClass(slot: string): string;
|
|
4
|
+
export declare const accordionUtilityClasses: () => {
|
|
5
|
+
label: string;
|
|
6
|
+
root: string;
|
|
7
|
+
content: string;
|
|
8
|
+
endIcon: string;
|
|
9
|
+
labelIcon: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { accordionUtilityClasses } from ".";
|
|
2
|
+
export interface AccordionClassesType {
|
|
3
|
+
root: string;
|
|
4
|
+
endIcon: string;
|
|
5
|
+
labelIcon: string;
|
|
6
|
+
label: string;
|
|
7
|
+
content: string;
|
|
8
|
+
}
|
|
9
|
+
export declare type AccordionClassesKey = keyof AccordionClassesType;
|
|
10
|
+
export declare type Classes = ReturnType<typeof accordionUtilityClasses>;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { generateUtilityClasses, generateUtilityClass, styled, Accordion as Accordion$1, AccordionSummary, AccordionDetails } from "@mui/material";
|
|
2
|
+
import { I as IconButton } from "../IconButton/index.1a9d4fa5.js";
|
|
3
|
+
import { useEnvironment } from "@m4l/core";
|
|
4
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
5
|
+
import { I as Icon } from "../../Icon/index.9dae8337.js";
|
|
6
|
+
import { T as Typography } from "../Typography/index.443590d6.js";
|
|
7
|
+
import clsx from "clsx";
|
|
8
|
+
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
const componentName = "M4LAccordion";
|
|
11
|
+
generateUtilityClasses(componentName, [
|
|
12
|
+
"root",
|
|
13
|
+
"endIcon",
|
|
14
|
+
"labelIcon",
|
|
15
|
+
"label",
|
|
16
|
+
"content"
|
|
17
|
+
]);
|
|
18
|
+
function getAccordionUtilityClass(slot) {
|
|
19
|
+
return generateUtilityClass(componentName, slot);
|
|
20
|
+
}
|
|
21
|
+
const accordionUtilityClasses = () => {
|
|
22
|
+
const slots = {
|
|
23
|
+
root: ["root"],
|
|
24
|
+
endIcon: ["endIcon"],
|
|
25
|
+
labelIcon: ["labelIcon"],
|
|
26
|
+
label: ["label"],
|
|
27
|
+
content: ["content"]
|
|
28
|
+
};
|
|
29
|
+
const composedClasses = unstable_composeClasses(slots, getAccordionUtilityClass, {});
|
|
30
|
+
return {
|
|
31
|
+
...composedClasses
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
styled("div")(({
|
|
35
|
+
theme
|
|
36
|
+
}) => ({
|
|
37
|
+
display: "flex",
|
|
38
|
+
justifyContent: "space-between",
|
|
39
|
+
alignItems: "center",
|
|
40
|
+
borderRadius: theme.spacing(0.5),
|
|
41
|
+
height: theme.spacing(4.5),
|
|
42
|
+
minHeight: theme.spacing(4.5),
|
|
43
|
+
backgroundColor: theme.palette.background.header,
|
|
44
|
+
paddingLeft: theme.spacing(2),
|
|
45
|
+
paddingRight: theme.spacing(2),
|
|
46
|
+
marginBottom: "0px"
|
|
47
|
+
}));
|
|
48
|
+
styled("div")(({
|
|
49
|
+
theme
|
|
50
|
+
}) => ({
|
|
51
|
+
display: "flex",
|
|
52
|
+
justifyContent: "flex-start",
|
|
53
|
+
alignItems: "center",
|
|
54
|
+
gap: theme.spacing(2)
|
|
55
|
+
}));
|
|
56
|
+
const AccordionRoot = styled("div")(({
|
|
57
|
+
theme
|
|
58
|
+
}) => ({
|
|
59
|
+
...theme.components?.M4LAccordion?.styleOverrides
|
|
60
|
+
}));
|
|
61
|
+
const ICON_PREFIX = "M4LAccordion";
|
|
62
|
+
const getNameAccordionDataTestId = (KEY) => {
|
|
63
|
+
return `${ICON_PREFIX}-${KEY}`;
|
|
64
|
+
};
|
|
65
|
+
function Accordion(props) {
|
|
66
|
+
const {
|
|
67
|
+
label,
|
|
68
|
+
SKTWidht,
|
|
69
|
+
SKTHeight,
|
|
70
|
+
children,
|
|
71
|
+
accordionProps,
|
|
72
|
+
summaryProps,
|
|
73
|
+
labelIcon,
|
|
74
|
+
className
|
|
75
|
+
} = props;
|
|
76
|
+
const {
|
|
77
|
+
host_static_assets,
|
|
78
|
+
environment_assets
|
|
79
|
+
} = useEnvironment();
|
|
80
|
+
const classes = accordionUtilityClasses();
|
|
81
|
+
return /* @__PURE__ */ jsx(AccordionRoot, {
|
|
82
|
+
className: clsx(classes.root, className),
|
|
83
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
84
|
+
[TEST_PROP_ID]: getNameAccordionDataTestId("root")
|
|
85
|
+
} : {},
|
|
86
|
+
children: /* @__PURE__ */ jsxs(Accordion$1, {
|
|
87
|
+
variant: "outlined",
|
|
88
|
+
square: true,
|
|
89
|
+
TransitionProps: {
|
|
90
|
+
unmountOnExit: true
|
|
91
|
+
},
|
|
92
|
+
defaultExpanded: true,
|
|
93
|
+
...accordionProps,
|
|
94
|
+
children: [/* @__PURE__ */ jsx(AccordionSummary, {
|
|
95
|
+
"aria-controls": "expanded-content",
|
|
96
|
+
disableTouchRipple: false,
|
|
97
|
+
expandIcon: /* @__PURE__ */ jsx(IconButton, {
|
|
98
|
+
"aria-label": "settings",
|
|
99
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/accordion/assets/icons/expanded.svg`,
|
|
100
|
+
className: classes.endIcon
|
|
101
|
+
}),
|
|
102
|
+
...summaryProps,
|
|
103
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
104
|
+
className: classes.labelIcon,
|
|
105
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
106
|
+
[TEST_PROP_ID]: getNameAccordionDataTestId("labelIcon")
|
|
107
|
+
} : {},
|
|
108
|
+
children: [labelIcon && /* @__PURE__ */ jsx(Icon, {
|
|
109
|
+
src: labelIcon
|
|
110
|
+
}), /* @__PURE__ */ jsx(Typography, {
|
|
111
|
+
className: classes.label,
|
|
112
|
+
variant: "subtitle",
|
|
113
|
+
skeletonWidth: SKTWidht,
|
|
114
|
+
skeletongHeight: SKTHeight,
|
|
115
|
+
children: label
|
|
116
|
+
})]
|
|
117
|
+
})
|
|
118
|
+
}), /* @__PURE__ */ jsx(AccordionDetails, {
|
|
119
|
+
className: classes.content,
|
|
120
|
+
children
|
|
121
|
+
})]
|
|
122
|
+
})
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
export {
|
|
126
|
+
Accordion as A
|
|
127
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ICON_PREFIX = "M4LAccordion";
|
|
@@ -2,8 +2,9 @@ import { AccordionProps as MUIAccordionProps, AccordionSummaryProps } from '@mui
|
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
3
|
export declare type AccordionProps = {
|
|
4
4
|
label: string;
|
|
5
|
+
className?: string;
|
|
5
6
|
children: ReactNode;
|
|
6
|
-
accordionProps?: MUIAccordionProps
|
|
7
|
+
accordionProps?: Omit<MUIAccordionProps, 'sx'>;
|
|
7
8
|
summaryProps?: AccordionSummaryProps;
|
|
8
9
|
labelIcon?: string;
|
|
9
10
|
SKTWidht?: string | number;
|
|
@@ -4,6 +4,7 @@ import { useModuleSkeleton } from "@m4l/core";
|
|
|
4
4
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { unstable_composeClasses } from "@mui/base";
|
|
7
|
+
import clsx from "clsx";
|
|
7
8
|
const AVATAR_PREFIX = "M4LAvatar";
|
|
8
9
|
const getNameAvatarDataTestId = (KEY) => {
|
|
9
10
|
return `${AVATAR_PREFIX}-${KEY}`;
|
|
@@ -46,12 +47,13 @@ const AvatarRoot = styled("div")(({ theme }) => ({
|
|
|
46
47
|
const Avatar = forwardRef(({
|
|
47
48
|
color = "default",
|
|
48
49
|
sx,
|
|
50
|
+
className,
|
|
49
51
|
...other
|
|
50
52
|
}, ref) => {
|
|
51
53
|
const isSkeleton = useModuleSkeleton();
|
|
52
54
|
const classes = useAvatarUtilityClasses();
|
|
53
55
|
return /* @__PURE__ */ jsx(AvatarRoot, {
|
|
54
|
-
className: classes.root,
|
|
56
|
+
className: clsx(classes.root, className),
|
|
55
57
|
...process.env.NODE_ENV !== "production" ? {
|
|
56
58
|
[TEST_PROP_ID]: getNameAvatarDataTestId("root")
|
|
57
59
|
} : {},
|
|
@@ -4,7 +4,7 @@ import MuiButton from "@mui/material/Button";
|
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { useMemo } from "react";
|
|
7
|
-
import { I as Image } from "../../Image/index.
|
|
7
|
+
import { I as Image } from "../../Image/index.c18ebf5a.js";
|
|
8
8
|
import { unstable_composeClasses } from "@mui/base";
|
|
9
9
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
10
10
|
import { LoadingButton as LoadingButton$1 } from "@mui/lab";
|
|
@@ -165,7 +165,7 @@ const useUtilityClasses = (onwerState) => {
|
|
|
165
165
|
const LoadingButtonRoot = styled("div")(({ theme }) => ({
|
|
166
166
|
...theme.components?.M4LoadingButton?.styleOverrides
|
|
167
167
|
}));
|
|
168
|
-
const LOADINGBUTTON_PREFIX = "
|
|
168
|
+
const LOADINGBUTTON_PREFIX = "M4LoadingButton";
|
|
169
169
|
const getNameDataTestId = (KEY) => {
|
|
170
170
|
return `${LOADINGBUTTON_PREFIX}-${KEY}`;
|
|
171
171
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMemo, useState } from "react";
|
|
2
2
|
import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
3
3
|
import { Skeleton, styled, generateUtilityClasses, generateUtilityClass, Tooltip, IconButton as IconButton$1 } from "@mui/material";
|
|
4
|
-
import { I as Icon } from "../../Icon/index.
|
|
4
|
+
import { I as Icon } from "../../Icon/index.9dae8337.js";
|
|
5
5
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
6
6
|
import clsx from "clsx";
|
|
7
7
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const LOADINGBUTTON_PREFIX = "
|
|
1
|
+
export declare const LOADINGBUTTON_PREFIX = "M4LoadingButton";
|
|
@@ -3,8 +3,8 @@ import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
|
3
3
|
import { IconButton, MenuItem } from "@mui/material";
|
|
4
4
|
import { P as Popover } from "../Popover/index.9f35d0eb.js";
|
|
5
5
|
import { styled } from "@mui/material/styles";
|
|
6
|
-
import { I as Icon } from "../../Icon/index.
|
|
7
|
-
import { I as IconButton$1 } from "../IconButton/index.
|
|
6
|
+
import { I as Icon } from "../../Icon/index.9dae8337.js";
|
|
7
|
+
import { I as IconButton$1 } from "../IconButton/index.1a9d4fa5.js";
|
|
8
8
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
9
9
|
styled(IconButton)(() => ({}));
|
|
10
10
|
const LabelMemuItem = styled("div")(({
|
|
@@ -98,9 +98,9 @@ function MenuActions(props) {
|
|
|
98
98
|
color: menuAction.color ?? "text.main"
|
|
99
99
|
},
|
|
100
100
|
disabled: menuAction.disabled,
|
|
101
|
-
children: [/* @__PURE__ */ jsx(Icon, {
|
|
101
|
+
children: [menuAction.urlIcon ? /* @__PURE__ */ jsx(Icon, {
|
|
102
102
|
src: menuAction.urlIcon
|
|
103
|
-
}), /* @__PURE__ */ jsx(LabelMemuItem, {
|
|
103
|
+
}) : null, /* @__PURE__ */ jsx(LabelMemuItem, {
|
|
104
104
|
children: menuAction.label || menuAction.dictionaryId && getLabel(menuAction.dictionaryId)
|
|
105
105
|
})]
|
|
106
106
|
}, `menu_action_${index}`))
|