@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,322 @@
|
|
|
1
|
+
import { useModuleDictionary, useModuleSkeleton, useEnvironment } from "@m4l/core";
|
|
2
|
+
import { styled, generateUtilityClasses, generateUtilityClass, Autocomplete, TextField, Skeleton } from "@mui/material";
|
|
3
|
+
import { useMemo } from "react";
|
|
4
|
+
import { I as Icon } from "../Icon/index.9dae8337.js";
|
|
5
|
+
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.e376a68e.js";
|
|
6
|
+
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import "@mui/material/Button";
|
|
8
|
+
import "../mui_extended/Button/index.fdb5dcbd.js";
|
|
9
|
+
import "clsx";
|
|
10
|
+
import "react-hook-form";
|
|
11
|
+
import "../../contexts/ModalContext/index.699f95fa.js";
|
|
12
|
+
import "../../react-draggable.6d7949a3.js";
|
|
13
|
+
import "../ModalDialog/index.d9c5d400.js";
|
|
14
|
+
import "../Resizeable/index.f6e48e56.js";
|
|
15
|
+
import "@m4l/graphics";
|
|
16
|
+
import "../modal/index.1b25b61d.js";
|
|
17
|
+
import "../Image/index.c18ebf5a.js";
|
|
18
|
+
import "../mui_extended/IconButton/index.1a9d4fa5.js";
|
|
19
|
+
import "../mui_extended/Accordion/index.3faafd8b.js";
|
|
20
|
+
import { T as Typography } from "../mui_extended/Typography/index.443590d6.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
|
+
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
|
+
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
39
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
40
|
+
const ContainerPeriod = styled("div")(({
|
|
41
|
+
theme
|
|
42
|
+
}) => ({
|
|
43
|
+
...theme.components?.M4LPeriod?.styleOverrides
|
|
44
|
+
}));
|
|
45
|
+
const Gap = styled("div")(({
|
|
46
|
+
theme
|
|
47
|
+
}) => ({
|
|
48
|
+
width: "1px",
|
|
49
|
+
height: "20px",
|
|
50
|
+
backgroundColor: theme.palette.divider
|
|
51
|
+
}));
|
|
52
|
+
const SKTWrapper = styled("div", {
|
|
53
|
+
shouldForwardProp: (props) => props !== "readOnly"
|
|
54
|
+
})(({
|
|
55
|
+
theme,
|
|
56
|
+
readOnly
|
|
57
|
+
}) => ({
|
|
58
|
+
display: "flex",
|
|
59
|
+
width: "100%",
|
|
60
|
+
height: "37.5px",
|
|
61
|
+
alignItems: "center",
|
|
62
|
+
gap: theme.spacing(1),
|
|
63
|
+
border: `1px solid ${theme.palette.divider}`,
|
|
64
|
+
...readOnly && {
|
|
65
|
+
border: "0px"
|
|
66
|
+
},
|
|
67
|
+
padding: theme.spacing(0.5, 1),
|
|
68
|
+
borderRadius: "4px"
|
|
69
|
+
}));
|
|
70
|
+
styled("div")(({
|
|
71
|
+
theme
|
|
72
|
+
}) => ({
|
|
73
|
+
...theme.typography.body2,
|
|
74
|
+
width: "100%",
|
|
75
|
+
display: "flex",
|
|
76
|
+
textOverflow: "elipsis",
|
|
77
|
+
overflow: "hidden",
|
|
78
|
+
padding: "5px",
|
|
79
|
+
textAlign: "left"
|
|
80
|
+
}));
|
|
81
|
+
styled("div")(({
|
|
82
|
+
theme
|
|
83
|
+
}) => ({
|
|
84
|
+
...theme.typography.body2,
|
|
85
|
+
width: "70px",
|
|
86
|
+
display: "flex",
|
|
87
|
+
textOverflow: "elipsis",
|
|
88
|
+
overflow: "hidden",
|
|
89
|
+
padding: "5px",
|
|
90
|
+
textAlign: "left"
|
|
91
|
+
}));
|
|
92
|
+
var ETimePeriods = /* @__PURE__ */ ((ETimePeriods2) => {
|
|
93
|
+
ETimePeriods2[ETimePeriods2["YEARS"] = 0] = "YEARS";
|
|
94
|
+
ETimePeriods2[ETimePeriods2["MONTHS"] = 1] = "MONTHS";
|
|
95
|
+
ETimePeriods2[ETimePeriods2["DAYS"] = 2] = "DAYS";
|
|
96
|
+
return ETimePeriods2;
|
|
97
|
+
})(ETimePeriods || {});
|
|
98
|
+
const PERIOD_FORMATTER_DICTIONARY_KEY = `period_formatter`;
|
|
99
|
+
const dictionary = {
|
|
100
|
+
LABEL_YEARS: `${PERIOD_FORMATTER_DICTIONARY_KEY}.label_years`,
|
|
101
|
+
LABEL_MONTHS: `${PERIOD_FORMATTER_DICTIONARY_KEY}.label_months`,
|
|
102
|
+
LABEL_DAYS: `${PERIOD_FORMATTER_DICTIONARY_KEY}.label_days`
|
|
103
|
+
};
|
|
104
|
+
function getPeriodComponetsDictionary() {
|
|
105
|
+
return ["dictionary"].concat(getCommonActionsDictionary());
|
|
106
|
+
}
|
|
107
|
+
const componentName = "M4LPeriod";
|
|
108
|
+
generateUtilityClasses(componentName, [
|
|
109
|
+
"root",
|
|
110
|
+
"gap",
|
|
111
|
+
"containerDateLabel",
|
|
112
|
+
"containerDateValue",
|
|
113
|
+
"stateError",
|
|
114
|
+
"stateReadOnly",
|
|
115
|
+
"variantMonoperiod",
|
|
116
|
+
"variantMultiperiod"
|
|
117
|
+
]);
|
|
118
|
+
function getPeriodUtilityClass(slot) {
|
|
119
|
+
return generateUtilityClass(componentName, slot);
|
|
120
|
+
}
|
|
121
|
+
const periodUtilityClasses = (ownerState) => {
|
|
122
|
+
const slots = {
|
|
123
|
+
root: ["root", ownerState.state === "error" && "stateError", ownerState.state === "success" && "stateSuccess", ownerState.state === "warning" && "stateWarning", ownerState.state === "info" && "stateInfo", ownerState.readOnly && "stateReadOnly", ownerState.variant === "monoperiod" ? "variantMonoperiod" : null, ownerState.variant === "multiperiod" ? "variantMultiperiod" : null],
|
|
124
|
+
gap: ["gap"],
|
|
125
|
+
containerDateLabel: ["containerDateLabel"],
|
|
126
|
+
containerDateValue: ["containerDateValue"]
|
|
127
|
+
};
|
|
128
|
+
const composedClasses = unstable_composeClasses(slots, getPeriodUtilityClass, {});
|
|
129
|
+
return {
|
|
130
|
+
...composedClasses
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
const PERIOD_PREFIX = "M4LPeriod";
|
|
134
|
+
const getNamePeriodDataTestId = (KEY) => {
|
|
135
|
+
return `${PERIOD_PREFIX}-${KEY}`;
|
|
136
|
+
};
|
|
137
|
+
const getSelPeriodTime = (period) => {
|
|
138
|
+
if (!period)
|
|
139
|
+
return ETimePeriods.YEARS;
|
|
140
|
+
if (period.selPeriodTime)
|
|
141
|
+
return period.selPeriodTime;
|
|
142
|
+
if (period.years && period.years > 0)
|
|
143
|
+
return ETimePeriods.YEARS;
|
|
144
|
+
if (period.months && period.months > 0)
|
|
145
|
+
return ETimePeriods.MONTHS;
|
|
146
|
+
if (period.days && period.days > 0)
|
|
147
|
+
return ETimePeriods.DAYS;
|
|
148
|
+
return ETimePeriods.YEARS;
|
|
149
|
+
};
|
|
150
|
+
const getSingleValue = (period) => {
|
|
151
|
+
if (!period)
|
|
152
|
+
return "";
|
|
153
|
+
if (period.singleValue !== void 0)
|
|
154
|
+
return period.singleValue;
|
|
155
|
+
if (period.years && period.years > 0)
|
|
156
|
+
return period.years;
|
|
157
|
+
if (period.months && period.months > 0)
|
|
158
|
+
return period.months;
|
|
159
|
+
if (period.days && period.days > 0)
|
|
160
|
+
return period.days;
|
|
161
|
+
return "";
|
|
162
|
+
};
|
|
163
|
+
const Period = (props) => {
|
|
164
|
+
const {
|
|
165
|
+
value,
|
|
166
|
+
onChange,
|
|
167
|
+
state,
|
|
168
|
+
readOnly = false,
|
|
169
|
+
skeletonWidth = "100%",
|
|
170
|
+
skeletonHeight = "18px",
|
|
171
|
+
variant = "monoperiod"
|
|
172
|
+
} = props;
|
|
173
|
+
const {
|
|
174
|
+
getLabel
|
|
175
|
+
} = useModuleDictionary();
|
|
176
|
+
const isSkeleton = useModuleSkeleton();
|
|
177
|
+
const selPeriodTime = getSelPeriodTime(value);
|
|
178
|
+
const singleValue = getSingleValue(value);
|
|
179
|
+
const onTotalChange = (newPeriodTime, newValue) => {
|
|
180
|
+
const newPeriod = {
|
|
181
|
+
selPeriodTime: newPeriodTime,
|
|
182
|
+
singleValue: newValue
|
|
183
|
+
};
|
|
184
|
+
if (newValue !== "" && newValue > 0) {
|
|
185
|
+
newPeriod.years = 0;
|
|
186
|
+
newPeriod.months = 0;
|
|
187
|
+
newPeriod.days = 0;
|
|
188
|
+
if (newPeriodTime === ETimePeriods.YEARS)
|
|
189
|
+
newPeriod.years = newValue;
|
|
190
|
+
if (newPeriodTime === ETimePeriods.MONTHS)
|
|
191
|
+
newPeriod.months = newValue;
|
|
192
|
+
if (newPeriodTime === ETimePeriods.DAYS)
|
|
193
|
+
newPeriod.days = newValue;
|
|
194
|
+
}
|
|
195
|
+
onChange(newPeriod);
|
|
196
|
+
};
|
|
197
|
+
const onChangeTime = (newPeriodTime) => {
|
|
198
|
+
if (newPeriodTime) {
|
|
199
|
+
onTotalChange(newPeriodTime.id, singleValue);
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
const {
|
|
203
|
+
host_static_assets,
|
|
204
|
+
environment_assets
|
|
205
|
+
} = useEnvironment();
|
|
206
|
+
const options = useMemo(() => [{
|
|
207
|
+
id: 0,
|
|
208
|
+
label: getLabel(dictionary.LABEL_DAYS)
|
|
209
|
+
}, {
|
|
210
|
+
id: 1,
|
|
211
|
+
label: getLabel(dictionary.LABEL_MONTHS)
|
|
212
|
+
}, {
|
|
213
|
+
id: 2,
|
|
214
|
+
label: getLabel(dictionary.LABEL_YEARS)
|
|
215
|
+
}], [getLabel]);
|
|
216
|
+
const ownerState = {
|
|
217
|
+
readOnly,
|
|
218
|
+
state,
|
|
219
|
+
variant
|
|
220
|
+
};
|
|
221
|
+
const classes = periodUtilityClasses(ownerState);
|
|
222
|
+
return /* @__PURE__ */ jsx(ContainerPeriod, {
|
|
223
|
+
className: classes.root,
|
|
224
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
225
|
+
[TEST_PROP_ID]: getNamePeriodDataTestId("root")
|
|
226
|
+
} : {},
|
|
227
|
+
children: !isSkeleton ? /* @__PURE__ */ jsx(Fragment, {
|
|
228
|
+
children: readOnly ? /* @__PURE__ */ jsxs(Fragment, {
|
|
229
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
230
|
+
className: classes.containerDateLabel,
|
|
231
|
+
children: /* @__PURE__ */ jsx(Typography, {
|
|
232
|
+
variant: "body",
|
|
233
|
+
skeletonWidth: "50%",
|
|
234
|
+
children: value.selPeriodTime
|
|
235
|
+
})
|
|
236
|
+
}), /* @__PURE__ */ jsx(Gap, {
|
|
237
|
+
className: classes.gap,
|
|
238
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
239
|
+
[TEST_PROP_ID]: getNamePeriodDataTestId("gap")
|
|
240
|
+
} : {}
|
|
241
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
242
|
+
className: classes.containerDateValue,
|
|
243
|
+
children: /* @__PURE__ */ jsx(Typography, {
|
|
244
|
+
variant: "body",
|
|
245
|
+
skeletonWidth: "80%",
|
|
246
|
+
children: value.singleValue
|
|
247
|
+
})
|
|
248
|
+
}), /* @__PURE__ */ jsx(Icon, {
|
|
249
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/period/assets/icons/clock.svg`
|
|
250
|
+
})]
|
|
251
|
+
}) : /* @__PURE__ */ jsxs(Fragment, {
|
|
252
|
+
children: [/* @__PURE__ */ jsx(Autocomplete, {
|
|
253
|
+
options,
|
|
254
|
+
value: options[selPeriodTime],
|
|
255
|
+
disableClearable: true,
|
|
256
|
+
onChange: (_event, autcValue) => {
|
|
257
|
+
onChangeTime(autcValue);
|
|
258
|
+
},
|
|
259
|
+
renderInput: (params) => {
|
|
260
|
+
return /* @__PURE__ */ jsx(TextField, {
|
|
261
|
+
...params,
|
|
262
|
+
fullWidth: true,
|
|
263
|
+
variant: "standard",
|
|
264
|
+
SelectProps: {
|
|
265
|
+
native: true
|
|
266
|
+
},
|
|
267
|
+
InputProps: {
|
|
268
|
+
disableUnderline: true,
|
|
269
|
+
...params.InputProps
|
|
270
|
+
},
|
|
271
|
+
autoComplete: "off"
|
|
272
|
+
}, `tx_async_${params.id}`);
|
|
273
|
+
}
|
|
274
|
+
}), /* @__PURE__ */ jsx(Gap, {
|
|
275
|
+
className: classes.gap,
|
|
276
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
277
|
+
[TEST_PROP_ID]: getNamePeriodDataTestId("gap")
|
|
278
|
+
} : {}
|
|
279
|
+
}), /* @__PURE__ */ jsx(TextField, {
|
|
280
|
+
type: "number",
|
|
281
|
+
variant: "standard",
|
|
282
|
+
value: singleValue,
|
|
283
|
+
InputProps: {
|
|
284
|
+
disableUnderline: true
|
|
285
|
+
},
|
|
286
|
+
onChange: (e) => {
|
|
287
|
+
onTotalChange(selPeriodTime, e.target.value === "" ? "" : parseInt(e.target.value));
|
|
288
|
+
}
|
|
289
|
+
}), /* @__PURE__ */ jsx(Icon, {
|
|
290
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/period/assets/icons/clock.svg`
|
|
291
|
+
})]
|
|
292
|
+
})
|
|
293
|
+
}) : /* @__PURE__ */ jsxs(SKTWrapper, {
|
|
294
|
+
readOnly,
|
|
295
|
+
children: [/* @__PURE__ */ jsx(Skeleton, {
|
|
296
|
+
variant: "text",
|
|
297
|
+
width: "50%",
|
|
298
|
+
height: skeletonHeight
|
|
299
|
+
}), /* @__PURE__ */ jsx(Gap, {
|
|
300
|
+
className: classes.gap,
|
|
301
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
302
|
+
[TEST_PROP_ID]: getNamePeriodDataTestId("gap")
|
|
303
|
+
} : {}
|
|
304
|
+
}), /* @__PURE__ */ jsx(Skeleton, {
|
|
305
|
+
variant: "text",
|
|
306
|
+
width: skeletonWidth,
|
|
307
|
+
height: skeletonHeight
|
|
308
|
+
}), /* @__PURE__ */ jsx(Skeleton, {
|
|
309
|
+
variant: "circular",
|
|
310
|
+
width: 20,
|
|
311
|
+
sx: {
|
|
312
|
+
minWidth: "20px",
|
|
313
|
+
minHeight: "20px"
|
|
314
|
+
}
|
|
315
|
+
})]
|
|
316
|
+
})
|
|
317
|
+
});
|
|
318
|
+
};
|
|
319
|
+
export {
|
|
320
|
+
Period as P,
|
|
321
|
+
getPeriodComponetsDictionary as g
|
|
322
|
+
};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const Period: (props: PeriodProps) => import("react").JSX.Element;
|
|
1
|
+
export { Period } from './Period';
|
|
2
|
+
export type { PeriodType } from './types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PERIOD_PREFIX = "M4LPeriod";
|
|
@@ -8,10 +8,8 @@ export declare type PeriodTime = {
|
|
|
8
8
|
id: number;
|
|
9
9
|
label: string;
|
|
10
10
|
};
|
|
11
|
-
export interface WrapperProps extends Pick<PeriodProps, 'readOnly'> {
|
|
12
|
-
error: boolean;
|
|
13
|
-
}
|
|
14
11
|
export declare type SKTWrapperProps = Pick<PeriodProps, 'readOnly'>;
|
|
12
|
+
export declare type PeriodState = 'error' | 'success' | 'warning' | 'info' | undefined;
|
|
15
13
|
export declare type PeriodType = {
|
|
16
14
|
selPeriodTime: ETimePeriods;
|
|
17
15
|
singleValue: number | '';
|
|
@@ -22,7 +20,7 @@ export declare type PeriodType = {
|
|
|
22
20
|
export interface PeriodProps {
|
|
23
21
|
value: PeriodType;
|
|
24
22
|
onChange: (newValue: PeriodType) => void;
|
|
25
|
-
|
|
23
|
+
state?: PeriodState;
|
|
26
24
|
readOnly?: boolean;
|
|
27
25
|
variant?: PeriodVariant;
|
|
28
26
|
skeletonWidth?: string | number;
|
|
@@ -31,3 +29,4 @@ export interface PeriodProps {
|
|
|
31
29
|
export interface WrapperProps {
|
|
32
30
|
error: boolean;
|
|
33
31
|
}
|
|
32
|
+
export declare type OwnerState = Pick<PeriodProps, 'state' | 'readOnly' | 'variant'>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const componentName = "M4LPropertyValue";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PropertyValueClassesType } from './types';
|
|
2
|
+
export declare const propertyValueClasses: PropertyValueClassesType;
|
|
3
|
+
export declare function getPropertyValueUtilityClass(slot: string): string;
|
|
4
|
+
export declare const propertyValueUtilityClasses: () => {
|
|
5
|
+
value: string;
|
|
6
|
+
root: string;
|
|
7
|
+
property: string;
|
|
8
|
+
skeletonProperty: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { propertyValueUtilityClasses } from ".";
|
|
2
|
+
export interface PropertyValueClassesType {
|
|
3
|
+
root: string;
|
|
4
|
+
property: string;
|
|
5
|
+
value: string;
|
|
6
|
+
skeletonProperty: string;
|
|
7
|
+
}
|
|
8
|
+
export declare type PropertyValueClassesKey = keyof PropertyValueClassesType;
|
|
9
|
+
export declare type Classes = ReturnType<typeof propertyValueUtilityClasses>;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
|
-
import { Skeleton } from "@mui/material";
|
|
2
|
+
import { Skeleton, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
3
|
+
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
3
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
5
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
5
6
|
import { useModuleSkeleton } from "@m4l/core";
|
|
6
|
-
|
|
7
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
8
|
+
import clsx from "clsx";
|
|
9
|
+
const PropertyValueRoot = styled("div", {
|
|
7
10
|
shouldForwardProp: (prop) => prop !== "propertyWidth" && prop !== "propertyHeight" && prop !== "isForm"
|
|
8
11
|
})(({
|
|
9
12
|
propertyWidth,
|
|
@@ -24,7 +27,8 @@ const WrapperPropertyValue = styled("div", {
|
|
|
24
27
|
gridTemplateColumns: propertyWidth ? `${propertyWidth}px 1fr` : "150px 1fr",
|
|
25
28
|
gap: theme.spacing(2),
|
|
26
29
|
alignItems: "center"
|
|
27
|
-
}
|
|
30
|
+
},
|
|
31
|
+
...theme.components?.M4LPropertyValue?.styleOverrides
|
|
28
32
|
}));
|
|
29
33
|
const Property = styled("div", {
|
|
30
34
|
shouldForwardProp: (prop) => prop !== "propertyWidth" && prop !== "propertyHeight" && prop !== "isForm"
|
|
@@ -79,8 +83,19 @@ const SKTWrapperProperty = styled("div")(() => ({
|
|
|
79
83
|
display: "flex",
|
|
80
84
|
justifyContent: "flex-end"
|
|
81
85
|
}));
|
|
82
|
-
|
|
86
|
+
const ICON_PREFIX = "M4LPropertyValue";
|
|
87
|
+
const getNamePropertyValueDataTestId = (KEY) => {
|
|
88
|
+
return `${ICON_PREFIX}-${KEY}`;
|
|
89
|
+
};
|
|
90
|
+
function SKTProperty(props) {
|
|
91
|
+
const {
|
|
92
|
+
className
|
|
93
|
+
} = props;
|
|
83
94
|
return /* @__PURE__ */ jsx(SKTWrapperProperty, {
|
|
95
|
+
className,
|
|
96
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
97
|
+
[TEST_PROP_ID]: getNamePropertyValueDataTestId("skeletonProperty")
|
|
98
|
+
} : {},
|
|
84
99
|
children: /* @__PURE__ */ jsx(Skeleton, {
|
|
85
100
|
variant: "text",
|
|
86
101
|
width: 68,
|
|
@@ -88,6 +103,28 @@ function SKTProperty() {
|
|
|
88
103
|
})
|
|
89
104
|
});
|
|
90
105
|
}
|
|
106
|
+
const componentName = "M4LPropertyValue";
|
|
107
|
+
generateUtilityClasses(componentName, [
|
|
108
|
+
"root",
|
|
109
|
+
"property",
|
|
110
|
+
"value",
|
|
111
|
+
"skeletonProperty"
|
|
112
|
+
]);
|
|
113
|
+
function getPropertyValueUtilityClass(slot) {
|
|
114
|
+
return generateUtilityClass(componentName, slot);
|
|
115
|
+
}
|
|
116
|
+
const propertyValueUtilityClasses = () => {
|
|
117
|
+
const slots = {
|
|
118
|
+
root: ["root"],
|
|
119
|
+
property: ["property"],
|
|
120
|
+
value: ["value"],
|
|
121
|
+
skeletonProperty: ["skeletonProperty"]
|
|
122
|
+
};
|
|
123
|
+
const composedClasses = unstable_composeClasses(slots, getPropertyValueUtilityClass, {});
|
|
124
|
+
return {
|
|
125
|
+
...composedClasses
|
|
126
|
+
};
|
|
127
|
+
};
|
|
91
128
|
function PropertyValue(props) {
|
|
92
129
|
const {
|
|
93
130
|
property,
|
|
@@ -96,7 +133,8 @@ function PropertyValue(props) {
|
|
|
96
133
|
valueHeight = "auto",
|
|
97
134
|
valueWidth = "100",
|
|
98
135
|
valueWidthMobile,
|
|
99
|
-
isForm
|
|
136
|
+
isForm,
|
|
137
|
+
className
|
|
100
138
|
} = props;
|
|
101
139
|
const isDesktop = useResponsiveDesktop();
|
|
102
140
|
const isSkeleton = useModuleSkeleton();
|
|
@@ -125,19 +163,31 @@ function PropertyValue(props) {
|
|
|
125
163
|
}
|
|
126
164
|
return 100;
|
|
127
165
|
};
|
|
128
|
-
|
|
129
|
-
|
|
166
|
+
const classes = propertyValueUtilityClasses();
|
|
167
|
+
return /* @__PURE__ */ jsxs(PropertyValueRoot, {
|
|
168
|
+
className: clsx(classes.root, className),
|
|
130
169
|
isForm,
|
|
131
170
|
propertyWidth,
|
|
171
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
172
|
+
[TEST_PROP_ID]: getNamePropertyValueDataTestId("root")
|
|
173
|
+
} : {},
|
|
132
174
|
children: [/* @__PURE__ */ jsx(Property, {
|
|
133
|
-
|
|
175
|
+
className: classes.property,
|
|
134
176
|
isForm,
|
|
135
177
|
propertyWidth,
|
|
136
|
-
|
|
178
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
179
|
+
[TEST_PROP_ID]: getNamePropertyValueDataTestId("property")
|
|
180
|
+
} : {},
|
|
181
|
+
children: isSkeleton ? /* @__PURE__ */ jsx(SKTProperty, {
|
|
182
|
+
className: classes.skeletonProperty
|
|
183
|
+
}) : property
|
|
137
184
|
}), /* @__PURE__ */ jsx(Value, {
|
|
138
|
-
|
|
185
|
+
className: classes.value,
|
|
139
186
|
valueWidth: getValueW(),
|
|
140
187
|
valueHeight,
|
|
188
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
189
|
+
[TEST_PROP_ID]: getNamePropertyValueDataTestId("value")
|
|
190
|
+
} : {},
|
|
141
191
|
children: value
|
|
142
192
|
})]
|
|
143
193
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ICON_PREFIX = "M4LPropertyValue";
|
|
@@ -11,7 +11,11 @@ export interface PropertyValueProps extends PropertyProps, ValueProps {
|
|
|
11
11
|
property: string;
|
|
12
12
|
value: number | string | ReactNode;
|
|
13
13
|
isForm?: boolean;
|
|
14
|
+
className?: string;
|
|
14
15
|
}
|
|
15
16
|
export declare type WrapperProps = PropertyProps & Pick<PropertyValueProps, 'isForm'>;
|
|
16
17
|
export declare type WrapperPropertyProps = WrapperProps;
|
|
17
18
|
export declare type WrapperValueProps = Omit<ValueProps, 'valueWidthMobile'>;
|
|
19
|
+
export interface SKTPropertyProps {
|
|
20
|
+
className: string;
|
|
21
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
|
-
import { R as ResizableBox } from "../../react-resizable.
|
|
2
|
+
import { R as ResizableBox } from "../../react-resizable.b6f8e04a.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
const WrapperResizeable = styled(ResizableBox)(({
|
|
5
5
|
theme
|
|
@@ -4,6 +4,7 @@ export declare const SideBarClasses: SideBarClassesType;
|
|
|
4
4
|
export declare const getSideBarClassesByState: (ownerState: SideBarState) => {
|
|
5
5
|
root: string;
|
|
6
6
|
drawer: string;
|
|
7
|
+
popover: string;
|
|
7
8
|
containerSideBarLogo: string;
|
|
8
9
|
contentDesktop: string;
|
|
9
10
|
contentMobile: string;
|
|
@@ -35,5 +36,4 @@ export declare const getSideBarClassesByState: (ownerState: SideBarState) => {
|
|
|
35
36
|
collapseButtontriangleBottom: string;
|
|
36
37
|
subItemCollapseActive: string;
|
|
37
38
|
contentGroupsLine: string;
|
|
38
|
-
popover: string;
|
|
39
39
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
2
2
|
import { useEnvironment } from "@m4l/core";
|
|
3
3
|
import { createContext, useContext, useState } from "react";
|
|
4
|
-
import { T as TEST_PROP_ID } from "../../
|
|
5
|
-
import { I as Image } from "../Image/index.
|
|
6
|
-
import { I as IconButton } from "../mui_extended/IconButton/index.
|
|
4
|
+
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
5
|
+
import { I as Image } from "../Image/index.c18ebf5a.js";
|
|
6
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.1a9d4fa5.js";
|
|
7
7
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
8
8
|
import { styled as styled$1, generateUtilityClasses, ListItemText, ListItemButton, Collapse, useTheme, Skeleton, Drawer as Drawer$1 } from "@mui/material";
|
|
9
|
-
import { I as Icon, A as ArrowIcon } from "../Icon/index.
|
|
10
|
-
import { T as Typography } from "../mui_extended/Typography/index.
|
|
9
|
+
import { I as Icon, A as ArrowIcon } from "../Icon/index.9dae8337.js";
|
|
10
|
+
import { T as Typography } from "../mui_extended/Typography/index.443590d6.js";
|
|
11
11
|
import clsx from "clsx";
|
|
12
12
|
import { P as Popover } from "../mui_extended/Popover/index.9f35d0eb.js";
|
|
13
13
|
import { S as ScrollBar } from "../ScrollBar/index.bbe48f4d.js";
|
|
14
14
|
import { styled, alpha } from "@mui/material/styles";
|
|
15
15
|
import { unstable_composeClasses } from "@mui/base";
|
|
16
|
-
import { g as getComponentUtilityClass } from "../../utils/index.
|
|
16
|
+
import { g as getComponentUtilityClass } from "../../utils/index.008b4c2a.js";
|
|
17
17
|
const SideBarRoot = styled("div")(({
|
|
18
18
|
theme
|
|
19
19
|
}) => ({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const componentName = "M4LSplitLayout";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SplitLayoutClassesType } from './types';
|
|
2
|
+
import { OwnerState } from '../types';
|
|
3
|
+
export declare const splitLayoutClasses: SplitLayoutClassesType;
|
|
4
|
+
export declare function getSplitLayoutUtilityClass(slot: string): string;
|
|
5
|
+
export declare const useSplitLayoutUtilityClasses: (ownerState: OwnerState) => {
|
|
6
|
+
root: string;
|
|
7
|
+
firstPart: string;
|
|
8
|
+
secondPart: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useSplitLayoutUtilityClasses } from "./index";
|
|
2
|
+
export interface SplitLayoutClassesType {
|
|
3
|
+
root: string;
|
|
4
|
+
firstPart: string;
|
|
5
|
+
secondPart: string;
|
|
6
|
+
stateVertical: string;
|
|
7
|
+
stateHorizontal: string;
|
|
8
|
+
}
|
|
9
|
+
export declare type SplitLayoutClassesKey = keyof SplitLayoutClassesType;
|
|
10
|
+
export declare type Classes = ReturnType<typeof useSplitLayoutUtilityClasses>;
|