@m4l/components 0.1.74 → 0.1.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/export.d.ts +123 -1
- package/components/AccountPopover/classes/constants.d.ts +1 -1
- package/components/AccountPopover/classes/index.d.ts +12 -1
- package/components/AccountPopover/classes/types.d.ts +14 -1
- package/components/AccountPopover/index.47cf6c43.js +273 -0
- package/components/{AppBar → AccountPopover}/subcomponents/MyAvatar/createAvatar.d.ts +1 -1
- package/components/AccountPopover/subcomponents/PopOver/types.d.ts +2 -5
- package/components/AccountPopover/types.d.ts +13 -0
- package/components/AppBar/classes/index.d.ts +4 -1
- package/components/AppBar/classes/types.d.ts +5 -0
- package/components/AppBar/index.f04f5e45.js +94 -0
- package/components/AppBar/tests/constants.d.ts +1 -1
- package/components/AppBar/types.d.ts +3 -2
- package/components/CommonActions/classes/index.d.ts +1 -1
- package/components/CommonActions/classes/types.d.ts +3 -2
- package/components/CommonActions/components/ActionCancel/{index.fad4a0dc.js → index.453c2d24.js} +3 -3
- package/components/CommonActions/components/ActionFormCancel/{index.a26820a9.js → index.c2a2fd55.js} +25 -22
- package/components/CommonActions/components/ActionFormIntro/{index.403d8952.js → index.25d33912.js} +4 -4
- package/components/CommonActions/components/ActionIntro/{index.0fb6efbe.js → index.c653a266.js} +4 -4
- package/components/CommonActions/components/Actions/{index.51b9c92a.js → index.e376a68e.js} +37 -26
- package/components/CommonActions/tests/constants.d.ts +1 -0
- package/components/CommonActions/tests/utils.d.ts +2 -0
- package/components/DataGrid/{index.dbae54dd.js → index.ffaf000e.js} +29 -21
- package/components/DraggableWindow/index.b08af1dc.js +39 -0
- package/components/DynamicFilter/{index.cb7fd1b6.js → index.d7c03a61.js} +35 -35
- package/components/HelperText/{index.d449d124.js → index.9864f773.js} +11 -10
- package/components/Icon/{index.d214a74d.js → index.9dae8337.js} +6 -63
- package/components/Image/{index.1af119da.js → index.c18ebf5a.js} +7 -8
- package/components/Image/types.d.ts +1 -4
- package/components/LanguagePopover/classes/index.d.ts +1 -1
- package/components/LanguagePopover/{index.4fef99ac.js → index.938c6675.js} +12 -11
- package/components/LinearProgressIndeterminate/LinearProgressIndeterminate.d.ts +2 -0
- package/components/LinearProgressIndeterminate/classes/constants.d.ts +1 -0
- package/components/LinearProgressIndeterminate/classes/index.d.ts +3 -0
- package/components/LinearProgressIndeterminate/classes/types.d.ts +7 -0
- package/components/LinearProgressIndeterminate/index.d.ts +1 -0
- package/components/LinearProgressIndeterminate/index.d34d398f.js +43 -0
- package/components/LinearProgressIndeterminate/tests/constants.d.ts +1 -0
- package/components/LinearProgressIndeterminate/tests/utils.d.ts +2 -0
- package/components/Loadable/{index.117eaced.js → index.e994fc3e.js} +1 -1
- package/components/ModalDialog/{index.6c35e653.js → index.d9c5d400.js} +21 -12
- package/components/NavLink/{index.9e56bcd3.js → index.21c8fd90.js} +12 -11
- package/components/NoItemSelected/{index.cd842b62.js → index.23dfc897.js} +1 -1
- package/components/ObjectLogs/{index.e1a1b27c.js → index.a2709fc2.js} +31 -21
- package/components/PaperForm/classes/constants.d.ts +1 -0
- package/components/PaperForm/classes/index.d.ts +11 -0
- package/components/PaperForm/classes/types.d.ts +10 -0
- package/components/PaperForm/{index.76bd3a6d.js → index.5e1bc99f.js} +58 -25
- package/components/PaperForm/types.d.ts +5 -2
- package/components/Period/Period.d.ts +3 -0
- package/components/Period/classes/constants.d.ts +1 -0
- package/components/Period/classes/index.d.ts +10 -0
- package/components/Period/classes/types.d.ts +13 -0
- package/components/Period/index.526791a3.js +322 -0
- package/components/Period/index.d.ts +2 -3
- package/components/Period/tests/constants.d.ts +1 -0
- package/components/Period/tests/utils.d.ts +2 -0
- package/components/Period/types.d.ts +3 -4
- package/components/PropertyValue/classes/constants.d.ts +1 -0
- package/components/PropertyValue/classes/index.d.ts +9 -0
- package/components/PropertyValue/classes/types.d.ts +9 -0
- package/components/PropertyValue/{index.dfcfe1ba.js → index.8a1adf3e.js} +60 -10
- package/components/PropertyValue/skeleton.d.ts +2 -1
- package/components/PropertyValue/tests/constants.d.ts +1 -0
- package/components/PropertyValue/tests/utils.d.ts +2 -0
- package/components/PropertyValue/types.d.ts +4 -0
- package/components/Resizeable/{index.834a9144.js → index.f6e48e56.js} +1 -1
- package/components/SideBar/classes/index.d.ts +1 -1
- package/components/SideBar/{index.ff7cbe91.js → index.9e1a5b96.js} +6 -6
- package/components/SplitLayout/SplitLayout.d.ts +3 -0
- package/components/SplitLayout/classes/constants.d.ts +1 -0
- package/components/SplitLayout/classes/index.d.ts +9 -0
- package/components/SplitLayout/classes/types.d.ts +10 -0
- package/components/SplitLayout/index.9ef430f6.js +99 -0
- package/components/SplitLayout/index.d.ts +2 -3
- package/components/SplitLayout/tests/constants.d.ts +1 -0
- package/components/SplitLayout/tests/utils.d.ts +2 -0
- package/components/SplitLayout/types.d.ts +2 -0
- package/components/animate/PropagateLoader/{index.be5b02c3.js → index.7fab43c8.js} +1 -1
- package/components/animate/index.1f8eadd4.js +66 -0
- package/components/areas/components/AreasAdmin/classes/index.d.ts +1 -1
- package/components/areas/components/AreasAdmin/classes/types.d.ts +4 -0
- package/components/areas/components/AreasAdmin/{index.1eda80b9.js → index.946eebb9.js} +147 -47
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/index.d.ts +3 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/types.d.ts +4 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/index.d.ts +2 -0
- package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/classes/types.d.ts +13 -0
- package/components/areas/components/AreasViewer/{index.eddc9945.js → index.bf4191ea.js} +439 -362
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/helper.d.ts +13 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/helper.d.ts +18 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/ProggessLoadingMF/index.d.ts +3 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/ProggessLoadingMF/types.d.ts +4 -0
- package/components/areas/components/AreasViewer/subcomponents/AreasLoadingError/index.d.ts +3 -0
- package/components/areas/components/AreasViewer/subcomponents/AreasLoadingError/types.d.ts +5 -0
- package/components/areas/components/index.2bb534cb.js +28 -0
- package/components/areas/contexts/AreasContext/{index.a88b73a6.js → index.f0397b7c.js} +130 -105
- package/components/areas/contexts/AreasContext/types.d.ts +5 -4
- package/components/areas/contexts/WindowToolsMFContext/types.d.ts +3 -2
- package/components/areas/contexts/{index.7dd01403.js → index.1809650a.js} +1 -1
- package/components/areas/{dictionary.e72db809.js → dictionary.3fabae50.js} +6 -1
- package/components/areas/dictionary.d.ts +5 -0
- package/components/areas/hooks/useAreas/{index.7a37ede8.js → index.40917e99.js} +1 -1
- package/components/areas/{icons.3ec589d3.js → icons.19cde4b4.js} +3 -0
- package/components/areas/icons.d.ts +3 -0
- package/components/areas/index.9bd48013.js +30 -0
- package/components/areas/types.d.ts +4 -0
- package/components/formatters/BooleanFormatter/{index.820a2130.js → index.431dc923.js} +1 -1
- package/components/formatters/{index.0c692a4b.js → index.e1af75e6.js} +2 -2
- package/components/hook-form/RHFAutocomplete/{index.72437d8a.js → index.a063dc44.js} +14 -13
- package/components/hook-form/RHFAutocompleteAsync/{index.2a84f2b2.js → index.ddfd9cc9.js} +2 -2
- package/components/hook-form/RHFCheckbox/classes/types.d.ts +1 -0
- package/components/hook-form/RHFCheckbox/{index.6e6389e7.js → index.7e7f220b.js} +22 -15
- package/components/hook-form/RHFCheckbox/subcomponents/Skeleton/types.d.ts +1 -0
- package/components/hook-form/RHFCheckbox/test/utils.d.ts +1 -1
- package/components/hook-form/RHFCheckbox/types.d.ts +3 -1
- package/components/hook-form/RHFDateTime/classes/index.d.ts +1 -1
- package/components/hook-form/RHFDateTime/{index.745b101b.js → index.d330709b.js} +67 -58
- package/components/hook-form/RHFDateTime/test/constants.d.ts +1 -0
- package/components/hook-form/RHFDateTime/test/utils.d.ts +2 -0
- package/components/hook-form/RHFPeriod/classes/constants.d.ts +1 -0
- package/components/hook-form/RHFPeriod/classes/index.d.ts +6 -0
- package/components/hook-form/RHFPeriod/classes/types.d.ts +6 -0
- package/components/hook-form/RHFPeriod/index.e2b1293b.js +77 -0
- package/components/hook-form/RHFPeriod/types.d.ts +2 -1
- package/components/hook-form/RHFTextField/index.d.ts +1 -0
- package/components/hook-form/RHFTextField/{index.ca7393a7.js → index.e5336d09.js} +11 -8
- package/components/hook-form/RHFUpload/RHFUploadImage/classes/constants.d.ts +1 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/classes/index.d.ts +19 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/classes/types.d.ts +18 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/subcomponents/Skeleton/index.d.ts +2 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/subcomponents/Skeleton/types.d.ts +3 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/types.d.ts +5 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/tests/constants.d.ts +1 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/tests/utils.d.ts +2 -0
- package/components/hook-form/RHFUpload/index.17e7f9eb.js +260 -0
- package/components/hook-form/RHFUpload/index.d.ts +1 -1
- package/components/index.d.ts +4 -4
- package/components/modal/WindowBase/subcomponents/Header/types.d.ts +4 -1
- package/components/modal/WindowBase/types.d.ts +0 -3
- package/components/modal/WindowBase.7acb9f1d.js +81 -0
- package/components/modal/WindowConfirm/subcomponents/MessageIlustration/types.d.ts +3 -5
- package/components/modal/WindowConfirm/types.d.ts +3 -2
- package/components/modal/WindowConfirm.9b829837.js +122 -0
- package/components/modal/classes/constants.d.ts +1 -0
- package/components/modal/classes/index.d.ts +18 -0
- package/components/modal/classes/types.d.ts +21 -0
- package/components/modal/index.1b25b61d.js +82 -0
- package/components/modal/index.d.ts +2 -1
- package/components/mui_extended/Accordion/classes/constants.d.ts +1 -0
- package/components/mui_extended/Accordion/classes/index.d.ts +10 -0
- package/components/mui_extended/Accordion/classes/types.d.ts +10 -0
- package/components/mui_extended/Accordion/index.3faafd8b.js +127 -0
- package/components/mui_extended/Accordion/tests/constants.d.ts +1 -0
- package/components/mui_extended/Accordion/tests/utils.d.ts +2 -0
- package/components/mui_extended/Accordion/types.d.ts +2 -1
- package/components/mui_extended/Avatar/{index.d.ts → Avatar.d.ts} +0 -1
- package/components/mui_extended/Avatar/classes/constants.d.ts +1 -0
- package/components/mui_extended/Avatar/classes/index.d.ts +7 -0
- package/components/mui_extended/Avatar/classes/types.d.ts +7 -0
- package/components/mui_extended/Avatar/index.75e6ed57.js +71 -0
- package/components/mui_extended/Avatar/subcomponents/SkeletonAvatar/index.d.ts +2 -1
- package/components/mui_extended/Avatar/subcomponents/SkeletonAvatar/types.d.ts +3 -0
- package/components/mui_extended/Avatar/tests/constants.d.ts +1 -0
- package/components/mui_extended/Avatar/tests/utils.d.ts +2 -0
- package/components/mui_extended/Avatar/types.d.ts +1 -5
- package/components/mui_extended/Button/{index.f9d54780.js → index.fdb5dcbd.js} +6 -5
- package/components/mui_extended/IconButton/{index.822cdaac.js → index.1a9d4fa5.js} +1 -1
- package/components/mui_extended/LoadingButton/tests/constants.d.ts +1 -1
- package/components/mui_extended/MenuActions/{index.03403529.js → index.ba1da3b3.js} +4 -4
- package/components/mui_extended/MenuActions/types.d.ts +2 -2
- package/components/mui_extended/Pager/{index.6428b07c.js → index.67bda2c5.js} +1 -1
- package/components/mui_extended/Tab/classes/constants.d.ts +1 -0
- package/components/mui_extended/Tab/classes/index.d.ts +7 -0
- package/components/mui_extended/Tab/classes/types.d.ts +7 -0
- package/components/mui_extended/Tab/index.9e2f6e34.js +71 -0
- package/components/mui_extended/Tab/tests/constants.d.ts +1 -0
- package/components/mui_extended/Tab/tests/utils.d.ts +2 -0
- package/components/mui_extended/Tooltip/Tooltip.d.ts +3 -0
- package/components/mui_extended/Tooltip/classes/constants.d.ts +1 -0
- package/components/mui_extended/Tooltip/classes/index.d.ts +6 -0
- package/components/mui_extended/Tooltip/classes/types.d.ts +6 -0
- package/components/mui_extended/Tooltip/index.5a795dcd.js +43 -0
- package/components/mui_extended/Tooltip/index.d.ts +2 -0
- package/components/mui_extended/Tooltip/types.d.ts +6 -0
- package/components/mui_extended/Typography/{index.e2d9e3f2.js → index.443590d6.js} +1 -1
- package/components/mui_extended/index.73e536de.js +21 -0
- package/components/mui_extended/index.d.ts +3 -2
- package/contexts/ModalContext/{index.0484ca54.js → index.699f95fa.js} +1 -1
- package/contexts/ModalContext/types.d.ts +2 -0
- package/contexts/RHFormContext/classes/constants.d.ts +1 -0
- package/contexts/RHFormContext/classes/index.d.ts +9 -0
- package/contexts/RHFormContext/classes/types.d.ts +6 -0
- package/contexts/RHFormContext/{index.a7511399.js → index.fe175bab.js} +33 -9
- package/hooks/useModal/{index.c6069beb.js → index.7b7d26ba.js} +1 -1
- package/index.js +219 -207
- package/package.json +1 -1
- package/{react-draggable.17b4ec8a.js → react-draggable.6d7949a3.js} +1 -1
- package/{react-resizable.ffd7c2aa.js → react-resizable.b6f8e04a.js} +2 -2
- package/test/constants_no_mock.86c553a9.js +4 -0
- package/utils/{index.aca80f3a.js → index.008b4c2a.js} +0 -17
- package/utils/types.d.ts +1 -1
- package/components/AccountPopover/style.d.ts +0 -2
- package/components/AccountPopover/subcomponents/PopOver/styles.d.ts +0 -8
- package/components/AppBar/styles.d.ts +0 -2
- package/components/CommonActions/components/Actions/styles.d.ts +0 -2
- package/components/DataGrid/styles.d.ts +0 -3
- package/components/DataGrid/subcomponents/Actions/styles.d.ts +0 -2
- package/components/DataGrid/subcomponents/Actions/subcomponents/Density/styles.d.ts +0 -3
- package/components/DataGrid/subcomponents/Actions/subcomponents/Filter/styles.d.ts +0 -2
- package/components/DataGrid/subcomponents/Actions/subcomponents/RowsCount/styles.d.ts +0 -4
- package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/styles.d.ts +0 -2
- package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/styles.d.ts +0 -8
- package/components/DataGrid/subcomponents/Table/styles.d.ts +0 -3
- package/components/DataGrid/subcomponents/Table/subcomponents/SkeletonFormatter/styles.d.ts +0 -2
- package/components/DataGrid/subcomponents/editors/TextEditor/index.d.ts +0 -6
- package/components/DynamicFilter/subcomponents/ApplyedFilters/styles.d.ts +0 -3
- package/components/DynamicFilter/subcomponents/ApplyedFilters/subcomponents/ApplyedFilter/styles.d.ts +0 -6
- package/components/DynamicFilter/subcomponents/ClearFilters/styles.d.ts +0 -3
- package/components/DynamicFilter/subcomponents/FilterButton/styles.d.ts +0 -3
- package/components/DynamicFilter/subcomponents/InnerForHooks/styles.d.ts +0 -3
- package/components/DynamicFilter/subcomponents/PopoverFilter/styles.d.ts +0 -2
- package/components/HelperText/styles.d.ts +0 -2
- package/components/Icon/styles.d.ts +0 -4
- package/components/Image/styles.d.ts +0 -3
- package/components/Image/subcomponents/LazyLoadComponent/styles.d.ts +0 -2
- package/components/Image/subcomponents/Skeleton/styles.d.ts +0 -2
- package/components/LanguagePopover/styles.d.ts +0 -6
- package/components/NavLink/styles.d.ts +0 -2
- package/components/NoItemSelected/styles.d.ts +0 -5
- package/components/ObjectLogs/components/DetailDialog/styles.d.ts +0 -3
- package/components/ObjectLogs/styles.d.ts +0 -4
- package/components/PaperForm/styles.d.ts +0 -7
- package/components/Period/index.b93d22fa.js +0 -280
- package/components/Period/styles.d.ts +0 -7
- package/components/PropertyValue/styles.d.ts +0 -6
- package/components/ResizeableWindow/styles.d.ts +0 -5
- package/components/ScrollBar/styles.d.ts +0 -8
- package/components/SideBar/styles.d.ts +0 -5
- package/components/SideBar/subcomponents/ContentDesktop/style.d.ts +0 -2
- package/components/SideBar/subcomponents/ContentDesktop/subcomponents/CollapseButton/styles.d.ts +0 -3
- package/components/SideBar/subcomponents/ContentGroups/styles.d.ts +0 -5
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/styles.d.ts +0 -2
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/ArrowIcon/styles.d.ts +0 -2
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/styles.d.ts +0 -9
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/subcomponents/NavItemRootContent/styles.d.ts +0 -3
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/styles.d.ts +0 -2
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/styles.d.ts +0 -22
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/Skeleton/styles.d.ts +0 -6
- package/components/SideBar/subcomponents/ContentMobile/styles.d.ts +0 -3
- package/components/SplitLayout/index.5a8355d8.js +0 -133
- package/components/SplitLayout/styles.d.ts +0 -4
- package/components/animate/LoadingScreen/styles.d.ts +0 -3
- package/components/animate/PropagateLoader/syles.d.ts +0 -2
- package/components/areas/components/AreasAdmin/styles.d.ts +0 -2
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/styles.d.ts +0 -4
- package/components/areas/components/AreasViewer/styles.d.ts +0 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/styles.d.ts +0 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/styles.d.ts +0 -9
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/index.d.ts +0 -3
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/styles.d.ts +0 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/subcomponents/NotFound/index.d.ts +0 -3
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/subcomponents/NotFound/styles.d.ts +0 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/subcomponents/NotFound/types.d.ts +0 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/types.d.ts +0 -6
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowModal/styles.d.ts +0 -3
- package/components/areas/components/index.f3a98b6d.js +0 -14
- package/components/areas/index.95c4ed37.js +0 -16
- package/components/hook-form/RHFAutocomplete/styles.d.ts +0 -2
- package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/styles.d.ts +0 -2
- package/components/hook-form/RHFAutocomplete/subcomponents/Skeleton/styles.d.ts +0 -4
- package/components/hook-form/RHFAutocompleteAsync/styles.d.ts +0 -5
- package/components/hook-form/RHFCheckbox/styles.d.ts +0 -15
- package/components/hook-form/RHFCheckbox/subcomponents/Skeleton/styles.d.ts +0 -3
- package/components/hook-form/RHFDateTime/styles.d.ts +0 -2
- package/components/hook-form/RHFDateTime/subcomponents/Skeleton/styles.d.ts +0 -2
- package/components/hook-form/RHFPeriod/index.6969af99.js +0 -55
- package/components/hook-form/RHFPeriod/styles.d.ts +0 -2
- package/components/hook-form/RHFTextField/styles.d.ts +0 -3
- package/components/hook-form/RHFTextField/subcomponents/Skeleton/styles.d.ts +0 -3
- package/components/hook-form/RHFTextFieldPassword/styles.d.ts +0 -2
- package/components/hook-form/RHFUpload/RHFUploadImage/styles.d.ts +0 -2
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/styles.d.ts +0 -12
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/subcomponents/Skeleton/styles.d.ts +0 -2
- package/components/hook-form/RHFUpload/index.d74ca00d.js +0 -283
- package/components/modal/ModalDialog/styles.d.ts +0 -9
- package/components/modal/WindowBase/styles.d.ts +0 -2
- package/components/modal/WindowBase/subcomponents/Header/styles.d.ts +0 -6
- package/components/modal/WindowBase.9b93578e.js +0 -126
- package/components/modal/WindowConfirm/subcomponents/MessageIlustration/styles.d.ts +0 -6
- package/components/modal/WindowConfirm.7ec9dcd3.js +0 -132
- package/components/modal/index.dba72820.js +0 -36
- package/components/mui_extended/Accordion/components/AccordionLabel.d.ts +0 -3
- package/components/mui_extended/Accordion/index.09a89d3d.js +0 -107
- package/components/mui_extended/Accordion/styles.d.ts +0 -4
- package/components/mui_extended/Avatar/index.fe06afd7.js +0 -51
- package/components/mui_extended/Button/styles.d.ts +0 -13
- package/components/mui_extended/IconButton/styles.d.ts +0 -2
- package/components/mui_extended/ImageButton/styles.d.ts +0 -2
- package/components/mui_extended/LoadingButton/styles.d.ts +0 -2
- package/components/mui_extended/MenuActions/styles.d.ts +0 -30
- package/components/mui_extended/Pager/components/PagerActions/styles.d.ts +0 -2
- package/components/mui_extended/Pager/styles.d.ts +0 -6
- package/components/mui_extended/Popover/styles.d.ts +0 -1
- package/components/mui_extended/Popover/subcomponts/ArrowIcon/index.d.ts +0 -3
- package/components/mui_extended/Tab/index.e0653a0a.js +0 -32
- package/components/mui_extended/Tab/styles.d.ts +0 -2
- package/components/mui_extended/Typography/styles.d.ts +0 -2
- package/components/mui_extended/index.b4ced9e3.js +0 -20
- package/contexts/RHFormContext/styles.d.ts +0 -2
- package/vendor.99e0c856.js +0 -456
- /package/components/{AppBar → AccountPopover}/subcomponents/MyAvatar/index.d.ts +0 -0
- /package/components/PaperForm/{index.d.ts → PaperForm.d.ts} +0 -0
- /package/components/PropertyValue/{index.d.ts → PropertyValue.d.ts} +0 -0
- /package/components/hook-form/RHFUpload/RHFUploadImage/{index.d.ts → RHFUploadImage.d.ts} +0 -0
- /package/components/mui_extended/Accordion/{index.d.ts → Accordion.d.ts} +0 -0
- /package/{node_modules.416f1da3.js → react-spinners.342a6578.js} +0 -0
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import { useCallback } from "react";
|
|
2
|
+
import { useFormContext, Controller } from "react-hook-form";
|
|
3
|
+
import isString from "lodash/isString";
|
|
4
|
+
import { useDropzone } from "react-dropzone";
|
|
5
|
+
import { I as Image } from "../../Image/index.c18ebf5a.js";
|
|
6
|
+
import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
7
|
+
import { Skeleton, generateUtilityClasses, generateUtilityClass, styled as styled$1 } from "@mui/material";
|
|
8
|
+
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
9
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
10
|
+
import { B as Button } from "../../mui_extended/Button/index.fdb5dcbd.js";
|
|
11
|
+
import { T as Typography } from "../../mui_extended/Typography/index.443590d6.js";
|
|
12
|
+
import { H as HelperText } from "../../HelperText/index.9864f773.js";
|
|
13
|
+
import "clsx";
|
|
14
|
+
import { styled } from "@mui/material/styles";
|
|
15
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
16
|
+
import "@mui/material/Button";
|
|
17
|
+
import "../../Icon/index.9dae8337.js";
|
|
18
|
+
import "../../mui_extended/IconButton/index.1a9d4fa5.js";
|
|
19
|
+
import "@m4l/graphics";
|
|
20
|
+
import "../../mui_extended/Accordion/index.3faafd8b.js";
|
|
21
|
+
import "../../mui_extended/Avatar/index.75e6ed57.js";
|
|
22
|
+
import "react-router-dom";
|
|
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
|
+
const UploadImageRoot = styled("div")(({
|
|
30
|
+
theme
|
|
31
|
+
}) => ({
|
|
32
|
+
...theme.components?.M4LRHFUploadImage?.styleOverrides
|
|
33
|
+
}));
|
|
34
|
+
const ICON_PREFIX = "M4LRHFUploadImage";
|
|
35
|
+
const getNameRHFUploadImageDataTestId = (KEY) => {
|
|
36
|
+
return `${ICON_PREFIX}-${KEY}`;
|
|
37
|
+
};
|
|
38
|
+
const SkeletonUploadImage = (props) => {
|
|
39
|
+
const {
|
|
40
|
+
classes
|
|
41
|
+
} = props;
|
|
42
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
43
|
+
className: classes,
|
|
44
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
45
|
+
[TEST_PROP_ID]: getNameRHFUploadImageDataTestId("skeleton")
|
|
46
|
+
} : {},
|
|
47
|
+
children: ["est\xE1 con skeleton", /* @__PURE__ */ jsx(Skeleton, {
|
|
48
|
+
variant: "rectangular",
|
|
49
|
+
width: "100%",
|
|
50
|
+
height: "100%"
|
|
51
|
+
})]
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
const componentName = "M4LRHFUploadImage";
|
|
55
|
+
generateUtilityClasses(componentName, [
|
|
56
|
+
"root",
|
|
57
|
+
"dropZoneStyle",
|
|
58
|
+
"containerFileImage",
|
|
59
|
+
"placeHolder",
|
|
60
|
+
"containerUploadBoddy",
|
|
61
|
+
"containerBodyImage",
|
|
62
|
+
"containerMessage",
|
|
63
|
+
"containerTitle",
|
|
64
|
+
"containerDescription",
|
|
65
|
+
"containerConditions",
|
|
66
|
+
"containerUploadImage",
|
|
67
|
+
"string",
|
|
68
|
+
"skeleton",
|
|
69
|
+
"inputDropZone",
|
|
70
|
+
"stateError"
|
|
71
|
+
]);
|
|
72
|
+
function getRHFUploadImagebUtilityClass(slot) {
|
|
73
|
+
return generateUtilityClass(componentName, slot);
|
|
74
|
+
}
|
|
75
|
+
const RHFUploadImageUtilityClasses = (ownerState) => {
|
|
76
|
+
const slots = {
|
|
77
|
+
root: ["root", ownerState.isDragReject && "stateError", ownerState.isDragActive && "stateActive", ownerState.hasFile && "hasFile"],
|
|
78
|
+
dropZoneStyle: ["dropZoneStyle"],
|
|
79
|
+
containerFileImage: ["containerFileImage"],
|
|
80
|
+
placeHolder: ["placeHolder"],
|
|
81
|
+
containerUploadBoddy: ["containerUploadBoddy"],
|
|
82
|
+
containerBodyImage: ["containerBodyImage"],
|
|
83
|
+
containerMessage: ["containerMessage"],
|
|
84
|
+
containerTitle: ["containerTitle"],
|
|
85
|
+
containerDescription: ["containerDescription"],
|
|
86
|
+
containerConditions: ["containerConditions"],
|
|
87
|
+
containerUploadImage: ["containerUploadImage"],
|
|
88
|
+
skeleton: ["skeleton"],
|
|
89
|
+
inputDropZone: ["inputDropZone"]
|
|
90
|
+
};
|
|
91
|
+
const composedClasses = unstable_composeClasses(slots, getRHFUploadImagebUtilityClass, {});
|
|
92
|
+
return {
|
|
93
|
+
...composedClasses
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
function UploadImage({
|
|
97
|
+
error,
|
|
98
|
+
file,
|
|
99
|
+
helperText,
|
|
100
|
+
sx,
|
|
101
|
+
...other
|
|
102
|
+
}) {
|
|
103
|
+
const {
|
|
104
|
+
getRootProps,
|
|
105
|
+
getInputProps,
|
|
106
|
+
isDragActive,
|
|
107
|
+
isDragReject,
|
|
108
|
+
open
|
|
109
|
+
} = useDropzone({
|
|
110
|
+
multiple: false,
|
|
111
|
+
...other
|
|
112
|
+
});
|
|
113
|
+
const {
|
|
114
|
+
host_static_assets,
|
|
115
|
+
environment_assets
|
|
116
|
+
} = useEnvironment();
|
|
117
|
+
const {
|
|
118
|
+
getLabel
|
|
119
|
+
} = useModuleDictionary();
|
|
120
|
+
const isSkeleton = useModuleSkeleton();
|
|
121
|
+
const ownerSate = {
|
|
122
|
+
isDragReject: isDragReject || error,
|
|
123
|
+
isDragActive,
|
|
124
|
+
hasFile: file
|
|
125
|
+
};
|
|
126
|
+
console.log("isSkeleton", isSkeleton);
|
|
127
|
+
console.log("file load", file);
|
|
128
|
+
console.log("ownerState", ownerSate);
|
|
129
|
+
const classes = RHFUploadImageUtilityClasses(ownerSate);
|
|
130
|
+
return /* @__PURE__ */ jsx(UploadImageRoot, {
|
|
131
|
+
className: classes.root,
|
|
132
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
133
|
+
[TEST_PROP_ID]: getNameRHFUploadImageDataTestId("root")
|
|
134
|
+
} : {},
|
|
135
|
+
children: !isSkeleton ? /* @__PURE__ */ jsxs(Fragment, {
|
|
136
|
+
children: ["est\xE1 sin skeleton", /* @__PURE__ */ jsx("div", {
|
|
137
|
+
className: classes.containerUploadImage,
|
|
138
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
139
|
+
[TEST_PROP_ID]: getNameRHFUploadImageDataTestId("containerUploadImage")
|
|
140
|
+
} : {},
|
|
141
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
142
|
+
className: classes.dropZoneStyle,
|
|
143
|
+
...getRootProps(),
|
|
144
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
145
|
+
[TEST_PROP_ID]: getNameRHFUploadImageDataTestId("dropZoneStyle")
|
|
146
|
+
} : {},
|
|
147
|
+
children: [/* @__PURE__ */ jsx("input", {
|
|
148
|
+
...getInputProps(),
|
|
149
|
+
className: classes.inputDropZone,
|
|
150
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
151
|
+
[TEST_PROP_ID]: getNameRHFUploadImageDataTestId("inputDropZone")
|
|
152
|
+
} : {}
|
|
153
|
+
}), file && /* @__PURE__ */ jsx("div", {
|
|
154
|
+
className: classes.containerFileImage,
|
|
155
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
156
|
+
[TEST_PROP_ID]: getNameRHFUploadImageDataTestId("containerFileImage")
|
|
157
|
+
} : {},
|
|
158
|
+
children: /* @__PURE__ */ jsx(Image, {
|
|
159
|
+
alt: "bgImageUploadImage",
|
|
160
|
+
src: isString(file) ? file : file.preview || "",
|
|
161
|
+
ratio: "1:1"
|
|
162
|
+
})
|
|
163
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
164
|
+
className: classes.placeHolder,
|
|
165
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
166
|
+
[TEST_PROP_ID]: getNameRHFUploadImageDataTestId("placeHolder")
|
|
167
|
+
} : {},
|
|
168
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
169
|
+
className: classes.containerUploadBoddy,
|
|
170
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
171
|
+
[TEST_PROP_ID]: getNameRHFUploadImageDataTestId("containerUploadBoddy")
|
|
172
|
+
} : {},
|
|
173
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
174
|
+
className: classes.containerBodyImage,
|
|
175
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
176
|
+
[TEST_PROP_ID]: getNameRHFUploadImageDataTestId("containerBodyImage")
|
|
177
|
+
} : {},
|
|
178
|
+
children: /* @__PURE__ */ jsx(Image, {
|
|
179
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/upload_image/assets/img/upload_image_illustration.svg`,
|
|
180
|
+
ratio: "1:1"
|
|
181
|
+
})
|
|
182
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
183
|
+
className: classes.containerMessage,
|
|
184
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
185
|
+
[TEST_PROP_ID]: getNameRHFUploadImageDataTestId("containerMessage")
|
|
186
|
+
} : {},
|
|
187
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
188
|
+
className: classes.containerTitle,
|
|
189
|
+
variant: "subtitle",
|
|
190
|
+
skeletonWidth: "150px",
|
|
191
|
+
children: getLabel("upload_image.title_upload")
|
|
192
|
+
}), /* @__PURE__ */ jsx(Typography, {
|
|
193
|
+
className: classes.containerDescription,
|
|
194
|
+
variant: "body",
|
|
195
|
+
children: getLabel("upload_image.description")
|
|
196
|
+
}), /* @__PURE__ */ jsx(Typography, {
|
|
197
|
+
className: classes.containerConditions,
|
|
198
|
+
variant: "body",
|
|
199
|
+
children: getLabel("upload_image.conditions")
|
|
200
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
201
|
+
onClick: open,
|
|
202
|
+
children: getLabel("upload_image.label_button")
|
|
203
|
+
})]
|
|
204
|
+
})]
|
|
205
|
+
})
|
|
206
|
+
})]
|
|
207
|
+
})
|
|
208
|
+
}), helperText && helperText]
|
|
209
|
+
}) : /* @__PURE__ */ jsx(SkeletonUploadImage, {
|
|
210
|
+
classes: classes.skeleton
|
|
211
|
+
})
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
const WrapperRHFUploadImage = styled$1("div")(() => ({
|
|
215
|
+
width: "inherit",
|
|
216
|
+
height: "inherit",
|
|
217
|
+
padding: "1px"
|
|
218
|
+
}));
|
|
219
|
+
function RHFUploadImage({
|
|
220
|
+
name,
|
|
221
|
+
...other
|
|
222
|
+
}) {
|
|
223
|
+
const {
|
|
224
|
+
control,
|
|
225
|
+
setValue
|
|
226
|
+
} = useFormContext();
|
|
227
|
+
const handleDrop = useCallback((acceptedFiles) => {
|
|
228
|
+
const file = acceptedFiles[0];
|
|
229
|
+
if (file) {
|
|
230
|
+
setValue(name, Object.assign(file, {
|
|
231
|
+
preview: URL.createObjectURL(file)
|
|
232
|
+
}));
|
|
233
|
+
}
|
|
234
|
+
}, [setValue]);
|
|
235
|
+
return /* @__PURE__ */ jsx(Controller, {
|
|
236
|
+
name,
|
|
237
|
+
control,
|
|
238
|
+
render: ({
|
|
239
|
+
field,
|
|
240
|
+
fieldState: {
|
|
241
|
+
error
|
|
242
|
+
}
|
|
243
|
+
}) => {
|
|
244
|
+
const checkError = !!error && !field.value;
|
|
245
|
+
return /* @__PURE__ */ jsxs(WrapperRHFUploadImage, {
|
|
246
|
+
children: [/* @__PURE__ */ jsx(UploadImage, {
|
|
247
|
+
onDrop: handleDrop,
|
|
248
|
+
error: checkError,
|
|
249
|
+
...other,
|
|
250
|
+
file: field.value
|
|
251
|
+
}), checkError && /* @__PURE__ */ jsx(HelperText, {
|
|
252
|
+
message: error.message
|
|
253
|
+
})]
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
export {
|
|
259
|
+
RHFUploadImage as R
|
|
260
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { RHFUploadImage } from './RHFUploadImage/';
|
|
1
|
+
export { RHFUploadImage } from './RHFUploadImage/RHFUploadImage';
|
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,15 +28,14 @@ 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';
|
|
38
|
-
export * from './SplitLayout';
|
|
38
|
+
export * from './SplitLayout/SplitLayout';
|
|
39
39
|
export * from './SideBar';
|
|
40
40
|
export * from './AppBar';
|
|
41
41
|
export * from './AccountPopover';
|
|
@@ -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';
|