@m4l/components 0.1.75 → 0.1.77
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 +97 -1
- package/components/AccountPopover/classes/index.d.ts +5 -0
- package/components/AccountPopover/classes/types.d.ts +5 -0
- package/components/AccountPopover/{index.93aefccd.js → index.3a79c395.js} +151 -142
- package/components/AccountPopover/subcomponents/MyAvatar/createAvatar.d.ts +1 -1
- package/components/AccountPopover/subcomponents/PopOver/types.d.ts +0 -4
- package/components/AppBar/classes/index.d.ts +1 -0
- package/components/AppBar/classes/types.d.ts +1 -0
- package/components/AppBar/{index.cc974d56.js → index.71b38ee9.js} +25 -15
- package/components/CommonActions/components/ActionCancel/{index.574ea031.js → index.b748a38e.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.e62db5d3.js → index.27ad09e1.js} +25 -22
- package/components/CommonActions/components/ActionFormIntro/{index.304da410.js → index.2556f054.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.d635cbc4.js → index.a7d92e66.js} +2 -2
- package/components/CommonActions/components/Actions/{index.37ffde59.js → index.3eba9d91.js} +20 -20
- package/components/DataGrid/{index.c0c626cd.js → index.545b492f.js} +50 -30
- package/components/DataGrid/types.d.ts +5 -1
- package/components/DraggableWindow/{index.b95a678e.js → index.c702d3f2.js} +1 -1
- package/components/DynamicFilter/{index.3034c6ba.js → index.d7be0f37.js} +46 -39
- package/components/DynamicFilter/subcomponents/InnerForHooks/index.d.ts +2 -1
- package/components/DynamicFilter/subcomponents/InnerForHooks/types.d.ts +2 -0
- package/components/DynamicFilter/tests/contants.d.ts +1 -1
- package/components/DynamicFilter/types.d.ts +4 -0
- package/components/GridLayout/GridLayout.d.ts +6 -0
- package/components/GridLayout/Responsive/index.a12a8cec.js +335 -0
- package/components/GridLayout/WidthProvider/index.8ff65909.js +67 -0
- package/components/GridLayout/calculateUtils.d.ts +42 -0
- package/components/GridLayout/index.4ba3767a.js +1400 -0
- package/components/GridLayout/index.d.ts +6 -0
- package/components/GridLayout/subcomponents/GridItem/index.d.ts +25 -0
- package/components/GridLayout/subcomponents/GridItem/types.d.ts +76 -0
- package/components/GridLayout/subcomponents/Responsive/index.d.ts +3 -0
- package/components/GridLayout/subcomponents/Responsive/responsiveUtils.d.ts +61 -0
- package/components/GridLayout/subcomponents/Responsive/types.d.ts +71 -0
- package/components/GridLayout/subcomponents/WidthProvider/index.d.ts +16 -0
- package/components/GridLayout/types.d.ts +355 -0
- package/components/GridLayout/utils.d.ts +123 -0
- package/components/HelperText/{index.ec9b3e6a.js → index.ef31df1f.js} +12 -10
- package/components/Icon/{index.f9119f5e.js → index.ecb63e65.js} +1 -1
- package/components/Image/{index.8aae9322.js → index.c18ebf5a.js} +6 -7
- package/components/Image/types.d.ts +1 -4
- package/components/LanguagePopover/{index.491e1306.js → index.0023d069.js} +12 -10
- package/components/LinearProgressIndeterminate/LinearProgressIndeterminate.d.ts +2 -0
- package/components/LinearProgressIndeterminate/classes/constants.d.ts +1 -0
- package/components/LinearProgressIndeterminate/classes/index.d.ts +3 -0
- package/components/LinearProgressIndeterminate/classes/types.d.ts +7 -0
- package/components/LinearProgressIndeterminate/index.60dabc06.js +43 -0
- package/components/LinearProgressIndeterminate/index.d.ts +1 -0
- package/components/LinearProgressIndeterminate/tests/constants.d.ts +1 -0
- package/components/LinearProgressIndeterminate/tests/utils.d.ts +2 -0
- package/components/ModalDialog/{index.f652ea12.js → index.d880e685.js} +21 -60
- package/components/NavLink/{index.f8aee9f4.js → index.cd92eceb.js} +12 -10
- package/components/NoItemSelected/{index.cce86db4.js → index.23dfc897.js} +1 -1
- package/components/ObjectLogs/{index.c31b3f8b.js → index.f174c542.js} +31 -21
- package/components/PaperForm/classes/constants.d.ts +1 -0
- package/components/PaperForm/classes/index.d.ts +11 -0
- package/components/PaperForm/classes/types.d.ts +10 -0
- package/components/PaperForm/{index.d79c6f76.js → index.1bd86ee5.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.711db043.js +321 -0
- package/components/Period/index.d.ts +2 -3
- package/components/Period/tests/constants.d.ts +1 -0
- package/components/Period/tests/utils.d.ts +2 -0
- package/components/Period/types.d.ts +3 -4
- package/components/PropertyValue/classes/constants.d.ts +1 -0
- package/components/PropertyValue/classes/index.d.ts +9 -0
- package/components/PropertyValue/classes/types.d.ts +9 -0
- package/components/PropertyValue/{index.dfcfe1ba.js → index.8a1adf3e.js} +60 -10
- package/components/PropertyValue/skeleton.d.ts +2 -1
- package/components/PropertyValue/tests/constants.d.ts +1 -0
- package/components/PropertyValue/tests/utils.d.ts +2 -0
- package/components/PropertyValue/types.d.ts +4 -0
- package/components/Resizeable/{index.41a8048b.js → index.9a9c79a4.js} +1 -1
- package/components/SideBar/{index.1ae13a73.js → index.c5ce0bad.js} +6 -6
- package/components/areas/components/AreasAdmin/classes/index.d.ts +1 -1
- package/components/areas/components/AreasAdmin/classes/types.d.ts +6 -0
- package/components/areas/components/AreasAdmin/index.cc4cbf56.js +463 -0
- 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/AreaChip/types.d.ts +0 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/index.d.ts +2 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/PanelWindowPopUp/index.d.ts +3 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/PanelWindowPopUp/types.d.ts +3 -0
- package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/classes/types.d.ts +15 -0
- package/components/areas/components/AreasViewer/{index.621c0de4.js → index.9c2aaaeb.js} +611 -541
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/{GridLayout → AreaGridLayout}/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/index.d.ts +2 -2
- 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/Header/index.d.ts +1 -7
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowPopUpsList/index.d.ts +3 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowPopUpsList/types.d.ts +2 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/types.d.ts +6 -0
- 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/Area/subcomponents/Window/types.d.ts +1 -1
- 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.0f7ac464.js +29 -0
- package/components/areas/contexts/AreasContext/helper.d.ts +6 -16
- package/components/areas/contexts/AreasContext/{index.d98b89fc.js → index.c8147e8e.js} +282 -352
- package/components/areas/contexts/AreasContext/types.d.ts +28 -24
- package/components/areas/contexts/WindowToolsMFContext/types.d.ts +3 -2
- package/components/areas/contexts/{index.79d1912d.js → index.02336412.js} +1 -1
- package/components/areas/{dictionary.e72db809.js → dictionary.afb7e3d9.js} +10 -2
- package/components/areas/dictionary.d.ts +9 -1
- package/components/areas/hooks/useAreas/{index.a7b597fb.js → index.3406a6cb.js} +1 -1
- package/components/areas/{icons.3ec589d3.js → icons.8266ccc8.js} +8 -1
- package/components/areas/icons.d.ts +7 -0
- package/components/areas/index.6f2e5dab.js +31 -0
- package/components/areas/types.d.ts +34 -22
- package/components/formatters/BooleanFormatter/{index.60aa1c9d.js → index.5268b024.js} +1 -1
- package/components/formatters/{index.1f0efb32.js → index.137169d8.js} +2 -2
- package/components/hook-form/RHFAutocomplete/{index.af3296ac.js → index.ac2b1fae.js} +13 -11
- package/components/hook-form/RHFAutocompleteAsync/{index.76864056.js → index.8b4ccc8d.js} +1 -1
- package/components/hook-form/RHFCheckbox/classes/types.d.ts +1 -0
- package/components/hook-form/RHFCheckbox/{index.865ba239.js → index.acef119c.js} +20 -13
- package/components/hook-form/RHFCheckbox/subcomponents/Skeleton/types.d.ts +1 -0
- package/components/hook-form/RHFCheckbox/test/utils.d.ts +1 -1
- package/components/hook-form/RHFCheckbox/types.d.ts +3 -1
- package/components/hook-form/RHFDateTime/{index.fd9c5aca.js → index.5b080342.js} +14 -12
- 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.5304e3bd.js +77 -0
- package/components/hook-form/RHFPeriod/types.d.ts +2 -1
- package/components/hook-form/RHFTextField/index.d.ts +1 -0
- package/components/hook-form/RHFTextField/{index.abcbc2d3.js → index.e751dca7.js} +9 -6
- package/components/hook-form/RHFUpload/RHFUploadImage/classes/constants.d.ts +1 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/classes/index.d.ts +19 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/classes/types.d.ts +18 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/subcomponents/Skeleton/index.d.ts +2 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/subcomponents/Skeleton/types.d.ts +3 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/types.d.ts +5 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/tests/constants.d.ts +1 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/tests/utils.d.ts +2 -0
- package/components/hook-form/RHFUpload/index.25db0511.js +261 -0
- package/components/hook-form/RHFUpload/index.d.ts +1 -1
- package/components/index.d.ts +4 -3
- package/components/modal/WindowBase/subcomponents/Header/types.d.ts +4 -1
- package/components/modal/WindowBase/types.d.ts +0 -3
- package/components/modal/WindowBase.850ea31a.js +82 -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.cb37bc58.js +122 -0
- package/components/modal/classes/constants.d.ts +1 -0
- package/components/modal/classes/index.d.ts +19 -0
- package/components/modal/classes/types.d.ts +22 -0
- package/components/modal/index.a0978193.js +84 -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.12b1339a.js +127 -0
- package/components/mui_extended/Accordion/tests/constants.d.ts +1 -0
- package/components/mui_extended/Accordion/tests/utils.d.ts +2 -0
- package/components/mui_extended/Accordion/types.d.ts +2 -1
- package/components/mui_extended/Avatar/{index.1e1a91a3.js → index.75e6ed57.js} +3 -1
- package/components/mui_extended/Badge/Badge.d.ts +3 -0
- package/components/mui_extended/Badge/classes/constants.d.ts +1 -0
- package/components/mui_extended/Badge/classes/index.d.ts +6 -0
- package/components/mui_extended/Badge/classes/types.d.ts +6 -0
- package/components/mui_extended/Badge/index.8c2b8b66.js +36 -0
- package/components/mui_extended/Badge/index.d.ts +2 -0
- package/components/mui_extended/Badge/tests/constants.d.ts +1 -0
- package/components/mui_extended/Badge/tests/utils.d.ts +2 -0
- package/components/mui_extended/Badge/types.d.ts +4 -0
- package/components/mui_extended/Button/{index.aebbab34.js → index.4288f9fc.js} +10 -5
- package/components/mui_extended/IconButton/{index.3b05af71.js → index.fc5b7c2d.js} +1 -1
- package/components/mui_extended/LoadingButton/tests/constants.d.ts +1 -1
- package/components/mui_extended/MenuActions/{index.ca5ce35a.js → index.f5b1c022.js} +30 -11
- package/components/mui_extended/MenuActions/types.d.ts +10 -2
- package/components/mui_extended/Pager/{index.80ec975a.js → index.435af0df.js} +1 -1
- package/components/mui_extended/Tab/classes/constants.d.ts +1 -0
- package/components/mui_extended/Tab/classes/index.d.ts +7 -0
- package/components/mui_extended/Tab/classes/types.d.ts +7 -0
- package/components/mui_extended/Tab/index.9e2f6e34.js +71 -0
- package/components/mui_extended/Tab/tests/constants.d.ts +1 -0
- package/components/mui_extended/Tab/tests/utils.d.ts +2 -0
- package/components/mui_extended/Tooltip/Tooltip.d.ts +3 -0
- package/components/mui_extended/Tooltip/classes/constants.d.ts +1 -0
- package/components/mui_extended/Tooltip/classes/index.d.ts +6 -0
- package/components/mui_extended/Tooltip/classes/types.d.ts +6 -0
- package/components/mui_extended/Tooltip/index.5a795dcd.js +43 -0
- package/components/mui_extended/Tooltip/index.d.ts +2 -0
- package/components/mui_extended/Tooltip/types.d.ts +6 -0
- package/components/mui_extended/index.83979b6a.js +22 -0
- package/components/mui_extended/index.d.ts +3 -1
- package/contexts/ModalContext/{index.a0de81f0.js → index.dee85a61.js} +1 -1
- package/contexts/ModalContext/types.d.ts +2 -0
- package/contexts/RHFormContext/classes/constants.d.ts +1 -0
- package/contexts/RHFormContext/classes/index.d.ts +9 -0
- package/contexts/RHFormContext/classes/types.d.ts +6 -0
- package/contexts/RHFormContext/{index.a7511399.js → index.fe175bab.js} +33 -9
- package/hooks/useModal/{index.26075cdd.js → index.de522a10.js} +1 -1
- package/index.js +138 -119
- package/node_modules.d73a220d.js +363 -0
- package/package.json +4 -3
- package/{react-draggable.e625b0d1.js → react-draggable.7abb5d0a.js} +3 -2
- package/{react-resizable.24367d77.js → react-resizable.ba08699a.js} +13 -12
- package/utils/{index.b61dccbe.js → index.c43a95f4.js} +0 -27
- package/utils/types.d.ts +1 -1
- package/components/AccountPopover/style.d.ts +0 -2
- package/components/AppBar/styles.d.ts +0 -2
- package/components/CommonActions/components/Actions/styles.d.ts +0 -2
- package/components/DataGrid/styles.d.ts +0 -3
- package/components/DataGrid/subcomponents/Actions/styles.d.ts +0 -2
- package/components/DataGrid/subcomponents/Actions/subcomponents/Density/styles.d.ts +0 -3
- package/components/DataGrid/subcomponents/Actions/subcomponents/Filter/styles.d.ts +0 -2
- package/components/DataGrid/subcomponents/Actions/subcomponents/RowsCount/styles.d.ts +0 -4
- package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/styles.d.ts +0 -2
- package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/styles.d.ts +0 -8
- package/components/DataGrid/subcomponents/Table/styles.d.ts +0 -3
- package/components/DataGrid/subcomponents/Table/subcomponents/SkeletonFormatter/styles.d.ts +0 -2
- package/components/DataGrid/subcomponents/editors/TextEditor/index.d.ts +0 -6
- package/components/DynamicFilter/subcomponents/ApplyedFilters/styles.d.ts +0 -3
- package/components/DynamicFilter/subcomponents/ApplyedFilters/subcomponents/ApplyedFilter/styles.d.ts +0 -6
- package/components/DynamicFilter/subcomponents/ClearFilters/styles.d.ts +0 -3
- package/components/DynamicFilter/subcomponents/FilterButton/styles.d.ts +0 -3
- package/components/DynamicFilter/subcomponents/InnerForHooks/styles.d.ts +0 -3
- package/components/DynamicFilter/subcomponents/PopoverFilter/styles.d.ts +0 -2
- package/components/HelperText/styles.d.ts +0 -2
- package/components/Icon/styles.d.ts +0 -4
- package/components/Image/styles.d.ts +0 -3
- package/components/Image/subcomponents/LazyLoadComponent/styles.d.ts +0 -2
- package/components/Image/subcomponents/Skeleton/styles.d.ts +0 -2
- package/components/LanguagePopover/styles.d.ts +0 -6
- package/components/NavLink/styles.d.ts +0 -2
- package/components/NoItemSelected/styles.d.ts +0 -5
- package/components/ObjectLogs/components/DetailDialog/styles.d.ts +0 -3
- package/components/ObjectLogs/styles.d.ts +0 -4
- package/components/PaperForm/styles.d.ts +0 -7
- package/components/Period/index.ff110093.js +0 -280
- package/components/Period/styles.d.ts +0 -7
- package/components/PropertyValue/styles.d.ts +0 -6
- package/components/ResizeableWindow/styles.d.ts +0 -5
- package/components/ScrollBar/styles.d.ts +0 -8
- package/components/SideBar/styles.d.ts +0 -5
- package/components/SideBar/subcomponents/ContentDesktop/style.d.ts +0 -2
- package/components/SideBar/subcomponents/ContentDesktop/subcomponents/CollapseButton/styles.d.ts +0 -3
- package/components/SideBar/subcomponents/ContentGroups/styles.d.ts +0 -5
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/styles.d.ts +0 -2
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/ArrowIcon/styles.d.ts +0 -2
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/styles.d.ts +0 -9
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/subcomponents/NavItemRootContent/styles.d.ts +0 -3
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/styles.d.ts +0 -2
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/styles.d.ts +0 -22
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/Skeleton/styles.d.ts +0 -6
- package/components/SideBar/subcomponents/ContentMobile/styles.d.ts +0 -3
- package/components/SplitLayout/styles.d.ts +0 -4
- package/components/animate/LoadingScreen/styles.d.ts +0 -3
- package/components/animate/PropagateLoader/syles.d.ts +0 -2
- package/components/areas/components/AreasAdmin/index.158621e0.js +0 -289
- 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/AreasViewer/subcomponents/Area/subcomponents/WindowPopUp/index.d.ts +0 -4
- package/components/areas/components/index.2ed9d60b.js +0 -14
- package/components/areas/index.d6b8e205.js +0 -16
- package/components/hook-form/RHFAutocomplete/styles.d.ts +0 -2
- package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/styles.d.ts +0 -2
- package/components/hook-form/RHFAutocomplete/subcomponents/Skeleton/styles.d.ts +0 -4
- package/components/hook-form/RHFAutocompleteAsync/styles.d.ts +0 -5
- package/components/hook-form/RHFCheckbox/styles.d.ts +0 -15
- package/components/hook-form/RHFCheckbox/subcomponents/Skeleton/styles.d.ts +0 -3
- package/components/hook-form/RHFDateTime/styles.d.ts +0 -2
- package/components/hook-form/RHFDateTime/subcomponents/Skeleton/styles.d.ts +0 -2
- package/components/hook-form/RHFPeriod/index.77486f61.js +0 -55
- package/components/hook-form/RHFPeriod/styles.d.ts +0 -2
- package/components/hook-form/RHFTextField/styles.d.ts +0 -3
- package/components/hook-form/RHFTextField/subcomponents/Skeleton/styles.d.ts +0 -3
- package/components/hook-form/RHFTextFieldPassword/styles.d.ts +0 -2
- package/components/hook-form/RHFUpload/RHFUploadImage/styles.d.ts +0 -2
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/styles.d.ts +0 -12
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/subcomponents/Skeleton/styles.d.ts +0 -2
- package/components/hook-form/RHFUpload/index.522bcad5.js +0 -283
- package/components/modal/ModalDialog/styles.d.ts +0 -9
- package/components/modal/ModalDialog/types.d.ts +0 -7
- package/components/modal/WindowBase/styles.d.ts +0 -2
- package/components/modal/WindowBase/subcomponents/Header/styles.d.ts +0 -6
- package/components/modal/WindowBase.c223e4da.js +0 -126
- package/components/modal/WindowConfirm/subcomponents/MessageIlustration/styles.d.ts +0 -6
- package/components/modal/WindowConfirm.023e293f.js +0 -132
- package/components/modal/index.dbce0cab.js +0 -36
- package/components/mui_extended/Accordion/components/AccordionLabel.d.ts +0 -3
- package/components/mui_extended/Accordion/index.03bd0e2a.js +0 -107
- package/components/mui_extended/Accordion/styles.d.ts +0 -4
- package/components/mui_extended/Avatar/styles.d.ts +0 -2
- package/components/mui_extended/Button/styles.d.ts +0 -13
- package/components/mui_extended/IconButton/styles.d.ts +0 -2
- package/components/mui_extended/ImageButton/styles.d.ts +0 -2
- package/components/mui_extended/LoadingButton/styles.d.ts +0 -2
- package/components/mui_extended/MenuActions/styles.d.ts +0 -30
- package/components/mui_extended/Pager/components/PagerActions/styles.d.ts +0 -2
- package/components/mui_extended/Pager/styles.d.ts +0 -6
- package/components/mui_extended/Popover/styles.d.ts +0 -1
- package/components/mui_extended/Popover/subcomponts/ArrowIcon/index.d.ts +0 -3
- package/components/mui_extended/Tab/index.e0653a0a.js +0 -32
- package/components/mui_extended/Tab/styles.d.ts +0 -2
- package/components/mui_extended/Typography/styles.d.ts +0 -2
- package/components/mui_extended/index.6dcdbb1f.js +0 -20
- package/contexts/RHFormContext/styles.d.ts +0 -2
- /package/components/PaperForm/{index.d.ts → PaperForm.d.ts} +0 -0
- /package/components/PropertyValue/{index.d.ts → PropertyValue.d.ts} +0 -0
- /package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/{GridLayout → AreaGridLayout}/types.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
|
@@ -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 {
|
|
2
|
+
import { a as ResizableBox } from "../../react-resizable.ba08699a.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
const WrapperResizeable = styled(ResizableBox)(({
|
|
5
5
|
theme
|
|
@@ -2,18 +2,18 @@ import { useResponsiveDesktop } from "@m4l/graphics";
|
|
|
2
2
|
import { useEnvironment } from "@m4l/core";
|
|
3
3
|
import { createContext, useContext, useState } from "react";
|
|
4
4
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
5
|
-
import { I as Image } from "../Image/index.
|
|
6
|
-
import { I as IconButton } from "../mui_extended/IconButton/index.
|
|
5
|
+
import { I as Image } from "../Image/index.c18ebf5a.js";
|
|
6
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.fc5b7c2d.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.
|
|
9
|
+
import { I as Icon, A as ArrowIcon } from "../Icon/index.ecb63e65.js";
|
|
10
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.c43a95f4.js";
|
|
17
17
|
const SideBarRoot = styled("div")(({
|
|
18
18
|
theme
|
|
19
19
|
}) => ({
|
|
@@ -850,8 +850,8 @@ const ContentDesktop = () => {
|
|
|
850
850
|
[TEST_PROP_ID]: getNameDataTestId("containerLogo")
|
|
851
851
|
} : {},
|
|
852
852
|
children: [/* @__PURE__ */ jsx(Image, {
|
|
853
|
-
width: "
|
|
854
|
-
height: "
|
|
853
|
+
width: "60px",
|
|
854
|
+
height: "60px",
|
|
855
855
|
src: companyLogoSmallUrl,
|
|
856
856
|
alt: "logo"
|
|
857
857
|
}, "Logo"), /* @__PURE__ */ jsx(Typography, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AreasAdmninClasses } from './types';
|
|
2
2
|
import { OwnerState } from '../../../contexts/AreasContext/types';
|
|
3
3
|
export declare const areasAdminClasses: AreasAdmninClasses;
|
|
4
|
-
export declare const useAreasAdminUtilityClasses: (ownerState: OwnerState) => Record<"root" | "areaChipRoot" | "areaIconLayer" | "areaContainerChips" | "areaChipTitle" | "areaChipDeleteButton" | "areaChipEditButton" | "areasAddButton", string>;
|
|
4
|
+
export declare const useAreasAdminUtilityClasses: (ownerState: OwnerState) => Record<"root" | "areaChipRoot" | "areaIconLayer" | "areaContainerChips" | "areaEditPopover" | "areaChipMobileRoot" | "areaChipMobileIconContainer" | "areaChipTitle" | "areaContainerChipEditButton" | "areaChipDeleteButton" | "areaChipEditButton" | "areasAddButton" | "areasPopoverMobileOptions" | "areasPopoverListWindows", string>;
|
|
5
5
|
export declare type AdminClasses = ReturnType<typeof useAreasAdminUtilityClasses>;
|
|
@@ -3,10 +3,16 @@ export interface AreasAdmninClasses {
|
|
|
3
3
|
areaChipRoot: string;
|
|
4
4
|
areaChipTitle: string;
|
|
5
5
|
areaContainerChips: string;
|
|
6
|
+
areaChipMobileRoot: string;
|
|
7
|
+
areaEditPopover: string;
|
|
8
|
+
areaChipMobileIconContainer: string;
|
|
6
9
|
areaIconLayer: string;
|
|
10
|
+
areaContainerChipEditButton: string;
|
|
7
11
|
areaChipDeleteButton: string;
|
|
8
12
|
areaChipEditButton: string;
|
|
9
13
|
areasAddButton: string;
|
|
14
|
+
areasPopoverMobileOptions: string;
|
|
15
|
+
areasPopoverListWindows: string;
|
|
10
16
|
selected: string;
|
|
11
17
|
isMobile: string;
|
|
12
18
|
disabled: string;
|
|
@@ -0,0 +1,463 @@
|
|
|
1
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.fc5b7c2d.js";
|
|
2
|
+
import { u as useAreasStore } from "../../hooks/useAreas/index.3406a6cb.js";
|
|
3
|
+
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
4
|
+
import { useState, useRef, useMemo } from "react";
|
|
5
|
+
import * as Yup from "yup";
|
|
6
|
+
import { generateUtilityClasses, useTheme } from "@mui/material";
|
|
7
|
+
import "../../../mui_extended/Accordion/index.12b1339a.js";
|
|
8
|
+
import { I as Icon } from "../../../Icon/index.ecb63e65.js";
|
|
9
|
+
import clsx from "clsx";
|
|
10
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
11
|
+
import { T as Typography } from "../../../mui_extended/Typography/index.443590d6.js";
|
|
12
|
+
import "../../../mui_extended/Avatar/index.75e6ed57.js";
|
|
13
|
+
import "react-router-dom";
|
|
14
|
+
import "@mui/material/Button";
|
|
15
|
+
import { B as Button } from "../../../mui_extended/Button/index.4288f9fc.js";
|
|
16
|
+
import "../../../mui_extended/Badge/index.8c2b8b66.js";
|
|
17
|
+
import "../../../Image/index.c18ebf5a.js";
|
|
18
|
+
import "@mui/lab";
|
|
19
|
+
import { P as Popover } from "../../../mui_extended/Popover/index.9f35d0eb.js";
|
|
20
|
+
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.f5b1c022.js";
|
|
21
|
+
import "../../../mui_extended/Pager/index.435af0df.js";
|
|
22
|
+
import "../../../mui_extended/Tab/index.9e2f6e34.js";
|
|
23
|
+
import "../../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
24
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
25
|
+
import { g as getComponentUtilityClass } from "../../../../utils/index.c43a95f4.js";
|
|
26
|
+
import { A as AREAS_ADMIN_CLASS_NAME } from "../../constants.66529246.js";
|
|
27
|
+
import { I as ICONS } from "../../icons.8266ccc8.js";
|
|
28
|
+
import "../../contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
29
|
+
import "../../../../contexts/ModalContext/index.dee85a61.js";
|
|
30
|
+
import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.fe175bab.js";
|
|
31
|
+
import "react-hook-form";
|
|
32
|
+
import "../../../hook-form/RHFAutocomplete/index.ac2b1fae.js";
|
|
33
|
+
import "../../../HelperText/index.ef31df1f.js";
|
|
34
|
+
import "lodash/debounce";
|
|
35
|
+
import "../../../hook-form/RHFAutocompleteAsync/index.8b4ccc8d.js";
|
|
36
|
+
import "../../../hook-form/RHFCheckbox/index.acef119c.js";
|
|
37
|
+
import "@mui/x-date-pickers";
|
|
38
|
+
import "../../../hook-form/RHFDateTime/index.5b080342.js";
|
|
39
|
+
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
40
|
+
import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.e751dca7.js";
|
|
41
|
+
import "../../../hook-form/RHFPeriod/index.5304e3bd.js";
|
|
42
|
+
import "../../../Period/index.711db043.js";
|
|
43
|
+
import { A as Actions } from "../../../CommonActions/components/Actions/index.3eba9d91.js";
|
|
44
|
+
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.b748a38e.js";
|
|
45
|
+
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.a7d92e66.js";
|
|
46
|
+
import "../../../../react-draggable.7abb5d0a.js";
|
|
47
|
+
import "../../../Resizeable/index.9a9c79a4.js";
|
|
48
|
+
import "../../../modal/index.a0978193.js";
|
|
49
|
+
import { shallow } from "zustand/shallow";
|
|
50
|
+
import { styled } from "@mui/material/styles";
|
|
51
|
+
import { S as ScrollBar } from "../../../ScrollBar/index.bbe48f4d.js";
|
|
52
|
+
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.afb7e3d9.js";
|
|
53
|
+
import "../AreasViewer/index.9c2aaaeb.js";
|
|
54
|
+
import "../../../LinearProgressIndeterminate/index.60dabc06.js";
|
|
55
|
+
import "../../contexts/AreasContext/index.c8147e8e.js";
|
|
56
|
+
import "../../contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
57
|
+
import "zustand";
|
|
58
|
+
import "lodash/isString";
|
|
59
|
+
import "react-dropzone";
|
|
60
|
+
import "../../../hook-form/RHFUpload/index.25db0511.js";
|
|
61
|
+
const areasAdminClasses = generateUtilityClasses(AREAS_ADMIN_CLASS_NAME, [
|
|
62
|
+
"root",
|
|
63
|
+
"areaChipRoot",
|
|
64
|
+
"areaChipTitle",
|
|
65
|
+
"areaChipDeleteButton",
|
|
66
|
+
"areasAddButton",
|
|
67
|
+
"areaContainerChipEditButton",
|
|
68
|
+
"areaContainerChips",
|
|
69
|
+
"areaEditPopover",
|
|
70
|
+
"areaChipMobileRoot",
|
|
71
|
+
"areaChipMobileIconContainer",
|
|
72
|
+
"areaIconLayer",
|
|
73
|
+
"areaChipEditButton",
|
|
74
|
+
"areasPopoverMobileOptions",
|
|
75
|
+
"areasPopoverListWindows",
|
|
76
|
+
"selected",
|
|
77
|
+
"isMobile",
|
|
78
|
+
"disabled"
|
|
79
|
+
], AREAS_ADMIN_CLASS_NAME);
|
|
80
|
+
const useAreasAdminUtilityClasses = (ownerState) => {
|
|
81
|
+
const slots = {
|
|
82
|
+
root: ["root", ownerState.status, ownerState.isMobile && "isMobile", ownerState.isSkeleton && "isSkeleton"],
|
|
83
|
+
areaChipRoot: ["areaChipRoot"],
|
|
84
|
+
areaIconLayer: ["areaIconLayer"],
|
|
85
|
+
areaContainerChips: ["areaContainerChips"],
|
|
86
|
+
areaEditPopover: ["areaEditPopover"],
|
|
87
|
+
areaChipMobileRoot: ["areaChipMobileRoot"],
|
|
88
|
+
areaChipMobileIconContainer: ["areaChipMobileIconContainer"],
|
|
89
|
+
areaChipTitle: ["areaChipTitle"],
|
|
90
|
+
areaContainerChipEditButton: ["areaContainerChipEditButton"],
|
|
91
|
+
areaChipDeleteButton: ["areaChipDeleteButton"],
|
|
92
|
+
areaChipEditButton: ["areaChipEditButton"],
|
|
93
|
+
areasAddButton: ["areasAddButton"],
|
|
94
|
+
areasPopoverMobileOptions: ["areasPopoverMobileOptions"],
|
|
95
|
+
areasPopoverListWindows: ["areasPopoverListWindows"]
|
|
96
|
+
};
|
|
97
|
+
return unstable_composeClasses(slots, getComponentUtilityClass(AREAS_ADMIN_CLASS_NAME), {});
|
|
98
|
+
};
|
|
99
|
+
styled("div")(() => ({
|
|
100
|
+
display: "flex",
|
|
101
|
+
flexDirection: "row",
|
|
102
|
+
border: "1px solid gray",
|
|
103
|
+
"&.active": {
|
|
104
|
+
border: "1px solid red"
|
|
105
|
+
}
|
|
106
|
+
}));
|
|
107
|
+
styled("div")(({
|
|
108
|
+
theme
|
|
109
|
+
}) => ({
|
|
110
|
+
height: "100%",
|
|
111
|
+
width: theme.spacing(1),
|
|
112
|
+
backgroundColor: theme.palette.background.default,
|
|
113
|
+
"&.active": {
|
|
114
|
+
backgroundColor: theme.palette.primary.main
|
|
115
|
+
}
|
|
116
|
+
}));
|
|
117
|
+
const EditAreaHeader = styled("div")(({
|
|
118
|
+
theme
|
|
119
|
+
}) => ({
|
|
120
|
+
display: "flex",
|
|
121
|
+
width: "100%",
|
|
122
|
+
height: "25px",
|
|
123
|
+
borderBottom: "1px solid",
|
|
124
|
+
borderColor: theme.palette.state.default,
|
|
125
|
+
justifyContent: "space-between",
|
|
126
|
+
alignItems: "center"
|
|
127
|
+
}));
|
|
128
|
+
const ChipActionsMobile = (props) => {
|
|
129
|
+
const {
|
|
130
|
+
handlerOpenPopoverEditArea,
|
|
131
|
+
areaId
|
|
132
|
+
} = props;
|
|
133
|
+
const {
|
|
134
|
+
deleteArea
|
|
135
|
+
} = useAreasStore((state) => state.areasActions);
|
|
136
|
+
const {
|
|
137
|
+
host_static_assets,
|
|
138
|
+
environment_assets
|
|
139
|
+
} = useEnvironment();
|
|
140
|
+
const {
|
|
141
|
+
getLabel
|
|
142
|
+
} = useModuleDictionary();
|
|
143
|
+
const menuActions = [{
|
|
144
|
+
urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.EDIT_AREA}`,
|
|
145
|
+
onClick: handlerOpenPopoverEditArea,
|
|
146
|
+
label: getLabel(getAreasDictionary(DICCTIONARY.label_edit_area))
|
|
147
|
+
}, {
|
|
148
|
+
urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.DELETE_AREA}`,
|
|
149
|
+
onClick: () => deleteArea(areaId),
|
|
150
|
+
label: getLabel(getAreasDictionary(DICCTIONARY.label_delete_area))
|
|
151
|
+
}];
|
|
152
|
+
return /* @__PURE__ */ jsx(MenuActions, {
|
|
153
|
+
urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.SHOW_OPTIONS}`,
|
|
154
|
+
arrowType: "no-arrow",
|
|
155
|
+
marginTop: "12px",
|
|
156
|
+
anchorOrigin: {
|
|
157
|
+
vertical: "bottom",
|
|
158
|
+
horizontal: "right"
|
|
159
|
+
},
|
|
160
|
+
transformOrigin: {
|
|
161
|
+
vertical: "top",
|
|
162
|
+
horizontal: "right"
|
|
163
|
+
},
|
|
164
|
+
menuActions
|
|
165
|
+
});
|
|
166
|
+
};
|
|
167
|
+
const AreaChip = (props) => {
|
|
168
|
+
const {
|
|
169
|
+
areaId,
|
|
170
|
+
selected,
|
|
171
|
+
disabled
|
|
172
|
+
} = props;
|
|
173
|
+
const {
|
|
174
|
+
host_static_assets,
|
|
175
|
+
environment_assets
|
|
176
|
+
} = useEnvironment();
|
|
177
|
+
const {
|
|
178
|
+
deleteArea,
|
|
179
|
+
selectArea,
|
|
180
|
+
editArea
|
|
181
|
+
} = useAreasStore((state) => state.areasActions);
|
|
182
|
+
const areaName = useAreasStore((state) => state.hashAreas[areaId].name, shallow);
|
|
183
|
+
const [open, setOpen] = useState(false);
|
|
184
|
+
const {
|
|
185
|
+
getLabel
|
|
186
|
+
} = useModuleDictionary();
|
|
187
|
+
const isDesktop = useResponsiveDesktop();
|
|
188
|
+
const anchorRef = useRef(null);
|
|
189
|
+
const theme = useTheme();
|
|
190
|
+
const onClickDeleteArea = (e) => {
|
|
191
|
+
e.stopPropagation();
|
|
192
|
+
deleteArea(areaId);
|
|
193
|
+
};
|
|
194
|
+
const onSubmit = (data) => {
|
|
195
|
+
console.log("data areachip", data);
|
|
196
|
+
editArea(areaId, data.inputEditArea);
|
|
197
|
+
setOpen(false);
|
|
198
|
+
};
|
|
199
|
+
const handlerOpenPopoverEditArea = () => {
|
|
200
|
+
setOpen(true);
|
|
201
|
+
};
|
|
202
|
+
const initialValues = {
|
|
203
|
+
inputEditArea: areaName
|
|
204
|
+
};
|
|
205
|
+
const validationSchema = useMemo(() => Yup.object().shape({
|
|
206
|
+
inputEditArea: Yup.string().required(getLabel(getAreasDictionary(DICCTIONARY.validation_edit_area)))
|
|
207
|
+
}), [getLabel]);
|
|
208
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
209
|
+
role: "presentation",
|
|
210
|
+
className: clsx(areasAdminClasses.areaChipRoot, selected ? areasAdminClasses.selected : null, disabled ? areasAdminClasses.disabled : null),
|
|
211
|
+
onClick: () => {
|
|
212
|
+
selectArea(areaId);
|
|
213
|
+
},
|
|
214
|
+
ref: anchorRef,
|
|
215
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
216
|
+
className: areasAdminClasses.areaChipTitle,
|
|
217
|
+
children: areaName
|
|
218
|
+
}), isDesktop ? /* @__PURE__ */ jsxs("div", {
|
|
219
|
+
className: areasAdminClasses.areaContainerChipEditButton,
|
|
220
|
+
children: [/* @__PURE__ */ jsx(IconButton, {
|
|
221
|
+
className: areasAdminClasses.areaChipEditButton,
|
|
222
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.EDIT_AREA}`,
|
|
223
|
+
size: "extraSmall",
|
|
224
|
+
onClick: handlerOpenPopoverEditArea
|
|
225
|
+
}), /* @__PURE__ */ jsx(IconButton, {
|
|
226
|
+
className: areasAdminClasses.areaChipDeleteButton,
|
|
227
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.DELETE_AREA}`,
|
|
228
|
+
size: "extraSmall",
|
|
229
|
+
onClick: onClickDeleteArea
|
|
230
|
+
})]
|
|
231
|
+
}) : /* @__PURE__ */ jsx(ChipActionsMobile, {
|
|
232
|
+
areaId,
|
|
233
|
+
handlerOpenPopoverEditArea
|
|
234
|
+
}), /* @__PURE__ */ jsx(Popover, {
|
|
235
|
+
arrowType: "top-center",
|
|
236
|
+
open,
|
|
237
|
+
className: areasAdminClasses.areaEditPopover,
|
|
238
|
+
anchorEl: anchorRef.current,
|
|
239
|
+
anchorOrigin: {
|
|
240
|
+
vertical: "bottom",
|
|
241
|
+
horizontal: "center"
|
|
242
|
+
},
|
|
243
|
+
transformOrigin: {
|
|
244
|
+
vertical: "top",
|
|
245
|
+
horizontal: "center"
|
|
246
|
+
},
|
|
247
|
+
onClose: () => setOpen(false),
|
|
248
|
+
sx: {
|
|
249
|
+
mt: "10px",
|
|
250
|
+
...theme.components?.M4LAreasAdminEditPopover?.styleOverrides
|
|
251
|
+
},
|
|
252
|
+
children: /* @__PURE__ */ jsxs(RHFormProvider, {
|
|
253
|
+
onSubmit,
|
|
254
|
+
values: initialValues,
|
|
255
|
+
validationSchema,
|
|
256
|
+
children: [/* @__PURE__ */ jsxs(EditAreaHeader, {
|
|
257
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
258
|
+
children: getLabel(DICCTIONARY.label_edit_area)
|
|
259
|
+
}), /* @__PURE__ */ jsx(IconButton, {
|
|
260
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.CLOSE}`,
|
|
261
|
+
size: "small",
|
|
262
|
+
onClick: () => setOpen(false)
|
|
263
|
+
})]
|
|
264
|
+
}), /* @__PURE__ */ jsx(RHFTextField, {
|
|
265
|
+
name: "inputEditArea",
|
|
266
|
+
skeletonWidth: "70%",
|
|
267
|
+
skeletonHeight: "18px",
|
|
268
|
+
sx: {
|
|
269
|
+
mt: "20px"
|
|
270
|
+
}
|
|
271
|
+
}), /* @__PURE__ */ jsxs(Actions, {
|
|
272
|
+
children: [/* @__PURE__ */ jsx(ActionCancel, {
|
|
273
|
+
onClick: () => setOpen(false),
|
|
274
|
+
variant: "outlined",
|
|
275
|
+
skeletonWidth: "100%"
|
|
276
|
+
}), /* @__PURE__ */ jsx(ActionIntro, {
|
|
277
|
+
skeletonWidth: "100%"
|
|
278
|
+
})]
|
|
279
|
+
})]
|
|
280
|
+
})
|
|
281
|
+
})]
|
|
282
|
+
});
|
|
283
|
+
};
|
|
284
|
+
AreaChip.displayName = "AreaButtons";
|
|
285
|
+
const AreasAdminRoot = styled("div")`
|
|
286
|
+
display: flex;
|
|
287
|
+
position: relative;
|
|
288
|
+
|
|
289
|
+
//areaRoot
|
|
290
|
+
& .${areasAdminClasses.areaChipRoot} {
|
|
291
|
+
display: flex;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
${(props) => props.theme.components?.M4LAreasAdmin?.styleOverrides}
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
`;
|
|
299
|
+
const PanelWindowPopUp = (props) => {
|
|
300
|
+
const {
|
|
301
|
+
currentAreaId
|
|
302
|
+
} = props;
|
|
303
|
+
const {
|
|
304
|
+
host_static_assets,
|
|
305
|
+
environment_assets
|
|
306
|
+
} = useEnvironment();
|
|
307
|
+
const windowsLayouts = useAreasStore((state) => state.hashAreas[currentAreaId].hashLayoutItems.filter((li) => state.hashWindows[li].emergeType === "layout").map((lim) => {
|
|
308
|
+
const w = state.hashWindows[lim];
|
|
309
|
+
return {
|
|
310
|
+
i: w.windowId,
|
|
311
|
+
url_icon: w.url_icon,
|
|
312
|
+
title: w.title
|
|
313
|
+
};
|
|
314
|
+
}), shallow);
|
|
315
|
+
const theme = useTheme();
|
|
316
|
+
const {
|
|
317
|
+
maximizeLayout
|
|
318
|
+
} = useAreasStore((state) => state.areaActions);
|
|
319
|
+
const onTouched = (layoutId) => {
|
|
320
|
+
maximizeLayout(currentAreaId, layoutId);
|
|
321
|
+
};
|
|
322
|
+
const menuActions = windowsLayouts.map((element) => {
|
|
323
|
+
return {
|
|
324
|
+
onClick: () => onTouched(element.i),
|
|
325
|
+
label: element.title,
|
|
326
|
+
urlIcon: element.url_icon
|
|
327
|
+
};
|
|
328
|
+
});
|
|
329
|
+
return /* @__PURE__ */ jsx(MenuActions, {
|
|
330
|
+
urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.MODULE}`,
|
|
331
|
+
arrowType: "no-arrow",
|
|
332
|
+
marginTop: "12px!important",
|
|
333
|
+
marginLeft: "14px!important",
|
|
334
|
+
anchorOrigin: {
|
|
335
|
+
vertical: "bottom",
|
|
336
|
+
horizontal: "right"
|
|
337
|
+
},
|
|
338
|
+
transformOrigin: {
|
|
339
|
+
vertical: "top",
|
|
340
|
+
horizontal: "right"
|
|
341
|
+
},
|
|
342
|
+
menuActions,
|
|
343
|
+
className: areasAdminClasses.areasPopoverListWindows,
|
|
344
|
+
menuActionSx: theme.components?.M4LAreasAdminMobilePopoverOptions?.styleOverrides
|
|
345
|
+
});
|
|
346
|
+
};
|
|
347
|
+
const AreaChipMobile = () => {
|
|
348
|
+
const areas = useAreasStore((state) => state.areas.map((a) => ({
|
|
349
|
+
id: a,
|
|
350
|
+
name: state.hashAreas[a].name
|
|
351
|
+
})), shallow);
|
|
352
|
+
const {
|
|
353
|
+
selectArea
|
|
354
|
+
} = useAreasStore((state) => state.areasActions);
|
|
355
|
+
const currentAreaId = useAreasStore((state) => state.currentAreaId, shallow);
|
|
356
|
+
const {
|
|
357
|
+
addArea
|
|
358
|
+
} = useAreasStore((state) => state.areasActions, shallow);
|
|
359
|
+
const {
|
|
360
|
+
getLabel
|
|
361
|
+
} = useModuleDictionary();
|
|
362
|
+
const theme = useTheme();
|
|
363
|
+
const currentArea = areas.find((area) => area.id === currentAreaId);
|
|
364
|
+
const {
|
|
365
|
+
host_static_assets,
|
|
366
|
+
environment_assets
|
|
367
|
+
} = useEnvironment();
|
|
368
|
+
const menuActions = useMemo(() => areas.filter((area) => area.id !== currentAreaId).map((area) => {
|
|
369
|
+
return {
|
|
370
|
+
urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.LAYERS}`,
|
|
371
|
+
onClick: () => selectArea(area.id),
|
|
372
|
+
label: area.name
|
|
373
|
+
};
|
|
374
|
+
}), [areas, currentAreaId]);
|
|
375
|
+
console.log("currentAreaId", currentArea);
|
|
376
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
377
|
+
className: areasAdminClasses.areaChipMobileRoot,
|
|
378
|
+
children: [currentArea ? /* @__PURE__ */ jsx(AreaChip, {
|
|
379
|
+
areaId: currentArea.id,
|
|
380
|
+
selected: true,
|
|
381
|
+
disabled: true
|
|
382
|
+
}, currentArea.id) : null, menuActions.length > 0 ? /* @__PURE__ */ jsxs("div", {
|
|
383
|
+
className: areasAdminClasses.areaChipMobileIconContainer,
|
|
384
|
+
children: [currentArea ? /* @__PURE__ */ jsx(PanelWindowPopUp, {
|
|
385
|
+
currentAreaId: currentArea.id
|
|
386
|
+
}) : null, /* @__PURE__ */ jsx(MenuActions, {
|
|
387
|
+
urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.CHEVRON_DOWN}`,
|
|
388
|
+
arrowType: "no-arrow",
|
|
389
|
+
marginTop: "12px!important",
|
|
390
|
+
marginLeft: "14px!important",
|
|
391
|
+
anchorOrigin: {
|
|
392
|
+
vertical: "bottom",
|
|
393
|
+
horizontal: "right"
|
|
394
|
+
},
|
|
395
|
+
transformOrigin: {
|
|
396
|
+
vertical: "top",
|
|
397
|
+
horizontal: "right"
|
|
398
|
+
},
|
|
399
|
+
menuActions,
|
|
400
|
+
className: areasAdminClasses.areasPopoverMobileOptions,
|
|
401
|
+
menuActionSx: theme.components?.M4LAreasAdminMobilePopoverOptions?.styleOverrides,
|
|
402
|
+
endListElement: /* @__PURE__ */ jsx(Button, {
|
|
403
|
+
onClick: addArea,
|
|
404
|
+
variant: "outlined",
|
|
405
|
+
startIcon: /* @__PURE__ */ jsx(Icon, {
|
|
406
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.ADD_AREA}`
|
|
407
|
+
}),
|
|
408
|
+
children: getLabel(getAreasDictionary(DICCTIONARY.area_add_new))
|
|
409
|
+
})
|
|
410
|
+
})]
|
|
411
|
+
}) : null]
|
|
412
|
+
});
|
|
413
|
+
};
|
|
414
|
+
function AreasAdmin() {
|
|
415
|
+
const areas = useAreasStore((state) => state.areas, shallow);
|
|
416
|
+
const currentArea = useAreasStore((state) => state.currentAreaId, shallow);
|
|
417
|
+
const status = useAreasStore((state) => state.ownerState.status);
|
|
418
|
+
const testStore = useAreasStore((state) => state);
|
|
419
|
+
const classesRoot = useAreasStore((state) => state.adminClasses.root);
|
|
420
|
+
const areasLength = useAreasStore((state) => state.areas.length);
|
|
421
|
+
const isDesktop = useResponsiveDesktop();
|
|
422
|
+
const {
|
|
423
|
+
addArea
|
|
424
|
+
} = useAreasStore((state) => state.areasActions, shallow);
|
|
425
|
+
const {
|
|
426
|
+
host_static_assets,
|
|
427
|
+
environment_assets
|
|
428
|
+
} = useEnvironment();
|
|
429
|
+
console.log("test areas estore bruce", testStore);
|
|
430
|
+
console.log("Render AreasAdmin", areas);
|
|
431
|
+
if (status !== "loaded") {
|
|
432
|
+
return null;
|
|
433
|
+
}
|
|
434
|
+
return /* @__PURE__ */ jsxs(AreasAdminRoot, {
|
|
435
|
+
className: classesRoot,
|
|
436
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
437
|
+
className: areasAdminClasses.areaIconLayer,
|
|
438
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
439
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.LAYERS}`
|
|
440
|
+
})
|
|
441
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
442
|
+
className: areasAdminClasses.areaContainerChips,
|
|
443
|
+
children: isDesktop ? /* @__PURE__ */ jsx(ScrollBar, {
|
|
444
|
+
children: /* @__PURE__ */ jsx(Fragment, {
|
|
445
|
+
children: areas.map((area) => /* @__PURE__ */ jsx(AreaChip, {
|
|
446
|
+
areaId: area,
|
|
447
|
+
selected: area === currentArea,
|
|
448
|
+
disabled: areasLength === 1
|
|
449
|
+
}, area))
|
|
450
|
+
})
|
|
451
|
+
}) : /* @__PURE__ */ jsx(AreaChipMobile, {})
|
|
452
|
+
}), isDesktop ? /* @__PURE__ */ jsx(IconButton, {
|
|
453
|
+
className: areasAdminClasses.areasAddButton,
|
|
454
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.ADD_AREA}`,
|
|
455
|
+
size: "small",
|
|
456
|
+
onClick: addArea
|
|
457
|
+
}) : null]
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
export {
|
|
461
|
+
AreasAdmin as A,
|
|
462
|
+
useAreasAdminUtilityClasses as u
|
|
463
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AreasViewerClasses } from './types';
|
|
2
2
|
import { OwnerState } from '../../../contexts/AreasContext/types';
|
|
3
3
|
export declare const areasViewerClasses: AreasViewerClasses;
|
|
4
|
-
export declare const useAreasViewerUtilityClasses: (ownerState: OwnerState) => Record<"root" | "areaRoot" | "areaGridLayoutPanelContainer" | "areaGridLayout" | "areaGridLayoutPopupsContainer" | "windowRoot" | "windowRootContainer" | "windowHeader" | "windowHeaderTitle" | "windowHeaderMainActions" | "windowContent" | "windowPopupRoot" | "windowModalRoot" | "selectedWindow" | "windowToastiesContainer" | "windowToastyMeesageButtonsContainer" | "windowToastyMessage" | "windowToastyButtonsContainer" | "windowToastyPin" | "windowToastyClose" | "panelWindowsRoot" | "panelWindowsButtonContainer" | "windowToastyContainer", string>;
|
|
4
|
+
export declare const useAreasViewerUtilityClasses: (ownerState: OwnerState) => Record<"root" | "windowLinearProgressBar" | "areaRoot" | "areasLoadingErrorRoot" | "areasLoadingErrorLoading" | "areasLoadingError" | "areasLoadingErrorIcon" | "areasLoadingErrorTitle" | "areasLoadingErrorDescription" | "areasLoadingErrorDivider" | "areaGridLayoutPanelContainer" | "areaGridLayout" | "areaGridLayoutPopupsContainer" | "areasWindowPopUpList" | "windowRoot" | "windowRootContainer" | "windowHeader" | "windowHeaderTitle" | "windowHeaderMainActions" | "windowContent" | "windowLinearProgressRoot" | "windowPopupRoot" | "windowModalRoot" | "selectedWindow" | "windowToastiesContainer" | "windowToastiesContainerTostys" | "windowToastyMeesageButtonsContainer" | "windowToastyMessage" | "windowToastyButtonsContainer" | "windowToastyPin" | "windowToastyClose" | "panelWindowsRoot" | "panelWindowsButtonContainer" | "windowToastyContainer", string>;
|
|
5
5
|
export declare type ViwerClasses = ReturnType<typeof useAreasViewerUtilityClasses>;
|
|
@@ -1,18 +1,31 @@
|
|
|
1
1
|
export interface AreasViewerClasses {
|
|
2
2
|
root: string;
|
|
3
3
|
areaRoot: string;
|
|
4
|
+
areasLoadingErrorRoot: string;
|
|
5
|
+
areasLoadingErrorLoading: string;
|
|
6
|
+
areasLoadingError: string;
|
|
7
|
+
areasLoadingErrorIcon: string;
|
|
8
|
+
areasLoadingErrorTitle: string;
|
|
9
|
+
areasLoadingErrorDescription: string;
|
|
10
|
+
areasLoadingErrorDivider: string;
|
|
11
|
+
areasLoadingErrorTextAction: string;
|
|
4
12
|
areaGridLayoutPanelContainer: string;
|
|
5
13
|
areaGridLayout: string;
|
|
6
14
|
areaGridLayoutPopupsContainer: string;
|
|
15
|
+
areasWindowPopUpList: string;
|
|
7
16
|
windowRoot: string;
|
|
8
17
|
windowHeader: string;
|
|
18
|
+
windowHeaderContent: string;
|
|
9
19
|
windowHeaderTitle: string;
|
|
10
20
|
windowHeaderMainActions: string;
|
|
11
21
|
windowContent: string;
|
|
12
22
|
windowRootContainer: string;
|
|
23
|
+
windowLinearProgressRoot: string;
|
|
24
|
+
windowLinearProgressBar: string;
|
|
13
25
|
windowPopupRoot: string;
|
|
14
26
|
windowModalRoot: string;
|
|
15
27
|
windowToastiesContainer: string;
|
|
28
|
+
windowToastiesContainerTostys: string;
|
|
16
29
|
windowToastyContainer: string;
|
|
17
30
|
windowToastyMeesageButtonsContainer: string;
|
|
18
31
|
windowToastyMessage: string;
|
|
@@ -23,6 +36,7 @@ export interface AreasViewerClasses {
|
|
|
23
36
|
panelWindowsButtonContainer: string;
|
|
24
37
|
selected: string;
|
|
25
38
|
selectedWindow: string;
|
|
39
|
+
colapsed: string;
|
|
26
40
|
isMobile: string;
|
|
27
41
|
loading: string;
|
|
28
42
|
pinIn: string;
|
|
@@ -30,5 +44,6 @@ export interface AreasViewerClasses {
|
|
|
30
44
|
info: string;
|
|
31
45
|
warning: string;
|
|
32
46
|
error: string;
|
|
47
|
+
containerLinearProgress: string;
|
|
33
48
|
}
|
|
34
49
|
export declare type AreasViewerClassesKey = keyof AreasViewerClasses;
|