@m4l/components 0.1.92 → 0.1.93
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 +12 -15
- package/components/AccountPopover/AccountPopover.d.ts +2 -1
- package/components/AccountPopover/{index.eebea1c5.js → index.2ef0bf6d.js} +20 -31
- package/components/AccountPopover/index.d.ts +0 -1
- package/components/AccountPopover/subcomponents/PopOver/types.d.ts +4 -3
- package/components/AccountPopover/types.d.ts +50 -26
- package/components/AppBar/{index.90cceb7d.js → index.16fe42a1.js} +3 -22
- package/components/CommonActions/components/ActionCancel/{index.54588e5b.js → index.c3e23ad4.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.7907e6f4.js → index.6da52418.js} +4 -34
- package/components/CommonActions/components/ActionFormIntro/{index.f7cd515b.js → index.c3af6d1d.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.f20cffae.js → index.49631fcb.js} +2 -2
- package/components/CommonActions/components/Actions/{index.7a196c44.js → index.ccf731c1.js} +2 -38
- package/components/DataGrid/classes/index.d.ts +1 -0
- package/components/DataGrid/classes/types.d.ts +1 -0
- package/components/DataGrid/formatters/columnConcatenatedValueFormatter/index.d.ts +2 -2
- package/components/DataGrid/{index.95cea2ca.js → index.abedf2c0.js} +44 -14
- package/components/DataGrid/subcomponents/Actions/{index.5b0b1fbf.js → index.c8408b73.js} +9 -38
- package/components/DraggableWindow/{index.c702d3f2.js → index.8f423ed7.js} +1 -1
- package/components/DynamicFilter/{index.e9192ebd.js → index.cb1402aa.js} +23 -56
- package/components/DynamicFilter/index.d.ts +1 -1
- package/components/GridLayout/classes/index.d.ts +1 -1
- package/components/GridLayout/{index.5e43414d.js → index.1421f0d4.js} +7 -7
- package/components/GridLayout/subcomponents/Griditem/{index.d6f326d2.js → index.b2342897.js} +4 -4
- package/components/GridLayout/subcomponents/Responsive/{index.d41e31ca.js → index.f459804c.js} +2 -2
- package/components/HelperText/{index.191348cc.js → index.7d2afdb3.js} +2 -23
- package/components/Icon/{index.a70c4729.js → index.3211023d.js} +8 -6
- package/components/Image/{index.c18ebf5a.js → index.611cd930.js} +43 -14
- package/components/LanguagePopover/{index.a74f2065.js → index.b6dc03d0.js} +4 -20
- package/components/LinearProgressIndeterminate/{index.60dabc06.js → index.c46da124.js} +1 -1
- package/components/LoadingError/LoadingError.d.ts +3 -0
- package/components/LoadingError/classes/constants.d.ts +1 -0
- package/components/LoadingError/classes/index.d.ts +14 -0
- package/components/LoadingError/classes/types.d.ts +14 -0
- package/components/LoadingError/dictionary.d.ts +1 -0
- package/components/LoadingError/index.96bdc803.js +106 -0
- package/components/LoadingError/index.d.ts +2 -0
- package/components/LoadingError/types.d.ts +10 -0
- package/components/MFLoader/classes/constants.d.ts +1 -0
- package/components/MFLoader/classes/index.d.ts +7 -0
- package/components/MFLoader/classes/types.d.ts +7 -0
- package/components/MFLoader/dictionary.d.ts +1 -0
- package/components/MFLoader/index.caee87dd.js +296 -0
- package/components/MFLoader/index.d.ts +2 -0
- package/components/MFLoader/types.d.ts +7 -0
- package/components/ModalDialog/{index.99745527.js → index.ec55087e.js} +5 -5
- package/components/NavLink/{index.f12bba32.js → index.b75c91e1.js} +2 -22
- package/components/NoItemSelected/{index.1eaf72d8.js → index.3e29c208.js} +1 -1
- package/components/ObjectLogs/{index.9bbac2a0.js → index.38fd657f.js} +12 -38
- package/components/Page/index.c4642a29.js +127 -0
- package/components/PaperForm/{index.e02c772c.js → index.cce9ed39.js} +1 -1
- package/components/Period/{index.ebd5e3b7.js → index.c35c6a6c.js} +5 -37
- package/components/PrintingSystem/PrintingSystem.d.ts +3 -0
- package/components/PrintingSystem/classes/constants.d.ts +1 -0
- package/components/PrintingSystem/classes/index.d.ts +32 -0
- package/components/PrintingSystem/classes/types.d.ts +33 -0
- package/components/PrintingSystem/index.d.ts +2 -0
- package/components/PrintingSystem/index.e18a2fa8.js +634 -0
- package/components/PrintingSystem/subcomponents/BodyNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/BodyNode/types.d.ts +5 -0
- package/components/PrintingSystem/subcomponents/ChartNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/ChartNode/types.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/DividerNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/DividerNode/types.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/FooterNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/FooterNode/types.d.ts +5 -0
- package/components/PrintingSystem/subcomponents/GridNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/GridNode/types.d.ts +5 -0
- package/components/PrintingSystem/subcomponents/HeaderNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/HeaderNode/types.d.ts +5 -0
- package/components/PrintingSystem/subcomponents/ImageNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/ImageNode/types.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/PageNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/PageNode/types.d.ts +5 -0
- package/components/PrintingSystem/subcomponents/Pager/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/Pager/types.d.ts +5 -0
- package/components/PrintingSystem/subcomponents/PaperNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/PaperNode/types.d.ts +5 -0
- package/components/PrintingSystem/subcomponents/PropertyValueNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/PropertyValueNode/types.d.ts +5 -0
- package/components/PrintingSystem/subcomponents/SectionNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/SectionNode/types.d.ts +5 -0
- package/components/PrintingSystem/subcomponents/TextBoxNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/TextBoxNode/types.d.ts +3 -0
- package/components/PrintingSystem/types.d.ts +214 -0
- package/components/PrintingSystem/utils/FactoryRender/index.d.ts +3 -0
- package/components/PrintingSystem/utils/FactoryRender/types.d.ts +4 -0
- package/components/PrintingSystem/utils/PageRender/index.d.ts +3 -0
- package/components/PrintingSystem/utils/PageRender/types.d.ts +13 -0
- package/components/PrintingSystem/utils/getEvalValue/index.d.ts +1 -0
- package/components/PrintingSystem/utils/getSize/index.d.ts +1 -0
- package/components/PropertyValue/classes/index.d.ts +3 -2
- package/components/PropertyValue/classes/types.d.ts +2 -0
- package/components/PropertyValue/{index.76fa6a12.js → index.3ee95452.js} +25 -9
- package/components/PropertyValue/types.d.ts +4 -0
- package/components/Resizeable/{index.676c96fe.js → index.8c53c1fa.js} +1 -1
- package/components/SideBar/{index.2dfc5445.js → index.5fd648d2.js} +44 -39
- package/components/animate/{index.4e9774a6.js → index.5d4575bc.js} +2 -6
- package/components/areas/components/AreasAdmin/{index.cd054608.js → index.ddb384a1.js} +29 -62
- package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/classes/types.d.ts +2 -8
- package/components/areas/components/AreasViewer/{index.62abf0bb.js → index.625bf23b.js} +68 -437
- package/components/areas/components/index.558684b3.js +1 -0
- package/components/areas/components/index.d.ts +0 -1
- package/components/areas/contexts/AreasContext/{index.d528f6e7.js → index.646f3c8f.js} +9 -7
- package/components/areas/contexts/index.24025b97.js +1 -0
- package/components/areas/contexts/index.d.ts +1 -0
- package/components/areas/hooks/index.d9dc1e21.js +1 -0
- package/components/areas/hooks/useAreas/{index.d417e4b2.js → index.ee66240b.js} +1 -1
- package/components/areas/index.4cc6a221.js +22 -0
- package/components/areas/index.d.ts +1 -1
- package/components/formatters/BooleanFormatter/{index.a013b080.js → index.3c2df7a8.js} +10 -4
- package/components/formatters/FormatterRoot/index.d.ts +3 -0
- package/components/formatters/FormatterRoot/types.d.ts +4 -0
- package/components/formatters/classes/index.d.ts +4 -0
- package/components/formatters/classes/types.d.ts +6 -0
- package/components/formatters/constants.d.ts +1 -0
- package/components/formatters/{index.576922c9.js → index.dc77adb7.js} +25 -8
- package/components/hook-form/RHFAutocomplete/{index.29a4c62c.js → index.52387f0f.js} +7 -22
- package/components/hook-form/RHFAutocompleteAsync/{index.647c3f9c.js → index.638bd2ae.js} +3 -2
- package/components/hook-form/RHFCheckbox/{index.0b89ea5c.js → index.a38715e3.js} +2 -22
- package/components/hook-form/RHFDateTime/{index.1adc88ad.js → index.66e334b0.js} +23 -23
- package/components/hook-form/RHFPeriod/{index.a4476d23.js → index.23099265.js} +2 -2
- package/components/hook-form/RHFTextField/{index.a1a240b1.js → index.25b3627e.js} +6 -8
- package/components/hook-form/RHFUpload/{index.a4582341.js → index.65588e08.js} +5 -22
- package/components/index.d.ts +3 -0
- package/components/modal/{WindowBase.a4752aa1.js → WindowBase.161ec78a.js} +5 -37
- package/components/modal/{WindowConfirm.7a9c12c0.js → WindowConfirm.7eed7c35.js} +8 -40
- package/components/modal/{index.b434146b.js → index.61389369.js} +0 -37
- package/components/mui_extended/Accordion/{index.cdedddba.js → index.92aae1a4.js} +4 -4
- package/components/mui_extended/Button/{index.f79eb74e.js → index.94fec33c.js} +3 -3
- package/components/mui_extended/{CheckBox.38abccd8.js → CheckBox.e662d20c.js} +1 -1
- package/components/mui_extended/IconButton/{index.76624519.js → index.53cd6388.js} +2 -2
- package/components/mui_extended/MenuActions/{index.7669b8af.js → index.dd9f65a2.js} +5 -19
- package/components/mui_extended/Pager/{index.ac2a21f0.js → index.de0bd62c.js} +2 -2
- package/components/mui_extended/Tab/{index.5f09e16a.js → index.1fcabba2.js} +2 -2
- package/components/mui_extended/index.b606cd9d.js +1 -0
- package/contexts/ModalContext/{index.347f6738.js → index.436c2938.js} +1 -1
- package/contexts/RHFormContext/classes/index.d.ts +1 -1
- package/hooks/useFormAddEdit/{index.e8e7f758.js → index.3584a29f.js} +2 -26
- package/hooks/useModal/{index.fa6dfaa1.js → index.05d1821e.js} +1 -1
- package/index.js +196 -187
- package/node_modules.b55d04d9.js +15267 -0
- package/package.json +5 -1
- package/react-data-grid.d46d625e.js +2 -2
- package/react-draggable.e4725f3a.js +630 -0
- package/{react-resizable.ba08699a.js → react-resizable.c07d63fb.js} +2 -2
- package/utils/{index.c43a95f4.js → index.6469f148.js} +75 -107
- package/vendor.71883626.js +104 -0
- package/components/Page/index.4237c241.js +0 -27
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/types.d.ts +0 -8
- package/components/areas/components/AreasViewer/subcomponents/AreasLoadingError/index.d.ts +0 -3
- package/components/areas/components/AreasViewer/subcomponents/AreasLoadingError/types.d.ts +0 -5
- package/components/areas/components/index.ea2f9914.js +0 -31
- package/components/areas/contexts/index.6e9bbc64.js +0 -2
- package/components/areas/hooks/index.0184c6f7.js +0 -4
- package/components/areas/index.8d6d8969.js +0 -54
- package/components/mui_extended/index.fe189e7d.js +0 -24
- package/node_modules.d73a220d.js +0 -363
- package/react-draggable.7abb5d0a.js +0 -962
- package/vendor.e14dec76.js +0 -128
- package/components/{areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/index.d.ts → MFLoader/MFLoader.d.ts} +0 -0
- package/components/{areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader → MFLoader}/helper.d.ts +0 -0
- package/components/{areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader → MFLoader}/subcomponents/ProggessLoadingMF/index.d.ts +0 -0
- package/components/{areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader → MFLoader}/subcomponents/ProggessLoadingMF/types.d.ts +0 -0
- package/components/mui_extended/Badge/{index.b09524fe.js → index.09f5aee5.js} +1 -1
- package/components/mui_extended/Popover/{index.9f35d0eb.js → index.b3eca6b1.js} +2 -2
- package/components/mui_extended/Tooltip/{index.5a795dcd.js → index.24a2bc3f.js} +1 -1
- package/components/mui_extended/Typography/{index.443590d6.js → index.379dd374.js} +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
2
|
+
import { styled, alpha } from "@mui/material/styles";
|
|
3
|
+
import { styled as styled$1, generateUtilityClasses, ListItemText, Tooltip, ListItemButton, Collapse, useTheme, Skeleton, Drawer as Drawer$1 } from "@mui/material";
|
|
2
4
|
import { useEnvironment, useBase, BaseProvider } from "@m4l/core";
|
|
3
5
|
import { createContext, useContext, useState, useEffect } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { I as IconButton } from "../mui_extended/IconButton/index.76624519.js";
|
|
6
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
7
|
+
import { g as getComponentUtilityClass } from "../../utils/index.6469f148.js";
|
|
7
8
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
8
|
-
import {
|
|
9
|
-
import { I as
|
|
10
|
-
import {
|
|
9
|
+
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
10
|
+
import { I as Image } from "../Image/index.611cd930.js";
|
|
11
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.53cd6388.js";
|
|
12
|
+
import { I as Icon, A as ArrowIcon } from "../Icon/index.3211023d.js";
|
|
13
|
+
import { T as Typography } from "../mui_extended/Typography/index.379dd374.js";
|
|
11
14
|
import clsx from "clsx";
|
|
12
15
|
import { useLocation } from "react-router-dom";
|
|
13
|
-
import { P as Popover } from "../mui_extended/Popover/index.
|
|
16
|
+
import { P as Popover } from "../mui_extended/Popover/index.b3eca6b1.js";
|
|
14
17
|
import { S as ScrollBar } from "../ScrollBar/index.65bb2930.js";
|
|
15
|
-
import { styled, alpha } from "@mui/material/styles";
|
|
16
|
-
import { unstable_composeClasses } from "@mui/base";
|
|
17
|
-
import { g as getComponentUtilityClass } from "../../utils/index.c43a95f4.js";
|
|
18
18
|
const SideBarRoot = styled("div")(({
|
|
19
19
|
theme
|
|
20
20
|
}) => ({
|
|
@@ -207,6 +207,7 @@ const SideBarProvider = (props) => {
|
|
|
207
207
|
});
|
|
208
208
|
};
|
|
209
209
|
const useSideBar = () => useContext(SideBarContext);
|
|
210
|
+
const useSideBar$1 = useSideBar;
|
|
210
211
|
const SIDEBAR_PREFIX = "M4LSideBar";
|
|
211
212
|
const getNameDataTestId = (KEY) => {
|
|
212
213
|
return `${SIDEBAR_PREFIX}-${KEY}`;
|
|
@@ -223,7 +224,7 @@ function CollapseButton(props) {
|
|
|
223
224
|
const {
|
|
224
225
|
classes,
|
|
225
226
|
companyLogoNormalUrl
|
|
226
|
-
} = useSideBar();
|
|
227
|
+
} = useSideBar$1();
|
|
227
228
|
return /* @__PURE__ */ jsxs(CollapseButtonRoot, {
|
|
228
229
|
className: classes.collapseButton,
|
|
229
230
|
...process.env.NODE_ENV !== "production" ? {
|
|
@@ -353,30 +354,34 @@ const NavItemMainContent = (props) => {
|
|
|
353
354
|
const {
|
|
354
355
|
collapsed,
|
|
355
356
|
classes
|
|
356
|
-
} = useSideBar();
|
|
357
|
+
} = useSideBar$1();
|
|
357
358
|
const isDesktop = useResponsiveDesktop();
|
|
358
359
|
const handlerClick = (event) => {
|
|
359
360
|
onClick && onClick(item);
|
|
360
361
|
handlerOpen && handlerOpen(event);
|
|
361
362
|
!isDesktop && changeVisible && changeVisible();
|
|
362
363
|
};
|
|
363
|
-
return /* @__PURE__ */
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
364
|
+
return /* @__PURE__ */ jsx(Tooltip, {
|
|
365
|
+
title,
|
|
366
|
+
placement: "right",
|
|
367
|
+
children: /* @__PURE__ */ jsxs(NavItemMainContentRoot, {
|
|
368
|
+
className: classes.navItemRootContent,
|
|
369
|
+
collapsed,
|
|
370
|
+
id: "WrapperNavItemRootContent",
|
|
371
|
+
onClick: handlerClick,
|
|
372
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
373
|
+
className: classes.navItemRootContentIconTypo,
|
|
374
|
+
children: [icon ? /* @__PURE__ */ jsx(Icon, {
|
|
375
|
+
src: `${host_static_assets}/${environment_assets}/frontend/domain/microfrontends/${icon}`
|
|
376
|
+
}) : null, /* @__PURE__ */ jsx(Typography, {
|
|
377
|
+
variant: "paragraph",
|
|
378
|
+
color: "text.secondary",
|
|
379
|
+
children: !collapsed ? title : " "
|
|
380
|
+
})]
|
|
381
|
+
}), !collapsed && children ? /* @__PURE__ */ jsx(ArrowIcon, {
|
|
382
|
+
openState: open
|
|
383
|
+
}) : null]
|
|
384
|
+
})
|
|
380
385
|
});
|
|
381
386
|
};
|
|
382
387
|
const NavListSubItemRoot = styled$1("div")(() => ({
|
|
@@ -439,7 +444,7 @@ const NavSubItemContent = (props) => {
|
|
|
439
444
|
isItemActive,
|
|
440
445
|
onToggleVisible,
|
|
441
446
|
classes
|
|
442
|
-
} = useSideBar();
|
|
447
|
+
} = useSideBar$1();
|
|
443
448
|
const active = isItemActive(item);
|
|
444
449
|
const isDesktop = useResponsiveDesktop();
|
|
445
450
|
const hasChildren = item.children && Array.isArray(item.children) && item.children.length > 0;
|
|
@@ -483,7 +488,7 @@ function NavSubItem(props) {
|
|
|
483
488
|
} = props;
|
|
484
489
|
const {
|
|
485
490
|
onClick
|
|
486
|
-
} = useSideBar();
|
|
491
|
+
} = useSideBar$1();
|
|
487
492
|
return /* @__PURE__ */ jsx(NavSubItemContent, {
|
|
488
493
|
item,
|
|
489
494
|
onClick: () => onClick(item),
|
|
@@ -505,7 +510,7 @@ function NavListSubItem(props) {
|
|
|
505
510
|
const {
|
|
506
511
|
classes,
|
|
507
512
|
isItemActive
|
|
508
|
-
} = useSideBar();
|
|
513
|
+
} = useSideBar$1();
|
|
509
514
|
const active = isItemActive(list);
|
|
510
515
|
const [openSub, setOpenSub] = useState(false);
|
|
511
516
|
const hasChildren = list.children && Array.isArray(list.children) && list.children.length > 0;
|
|
@@ -573,7 +578,7 @@ function NavItemMain(props) {
|
|
|
573
578
|
isItemActive,
|
|
574
579
|
onToggleVisible,
|
|
575
580
|
classes
|
|
576
|
-
} = useSideBar();
|
|
581
|
+
} = useSideBar$1();
|
|
577
582
|
const [popoverStatus, setPopoverStatus] = useState(null);
|
|
578
583
|
const theme = useTheme();
|
|
579
584
|
const active = isItemActive(item);
|
|
@@ -661,7 +666,7 @@ function ItemListMain(props) {
|
|
|
661
666
|
collapsed: isSideBarCollapsed,
|
|
662
667
|
isItemActive,
|
|
663
668
|
classes
|
|
664
|
-
} = useSideBar();
|
|
669
|
+
} = useSideBar$1();
|
|
665
670
|
const location = useLocation();
|
|
666
671
|
const [internalItemActive, setInternalItemActive] = useState(false);
|
|
667
672
|
const [active, setActive] = useState(false);
|
|
@@ -778,7 +783,7 @@ const SkeletonNavSectionVertical = () => {
|
|
|
778
783
|
const {
|
|
779
784
|
collapsed,
|
|
780
785
|
classes
|
|
781
|
-
} = useSideBar();
|
|
786
|
+
} = useSideBar$1();
|
|
782
787
|
return /* @__PURE__ */ jsxs(WrapperSKTNavSectionVertical, {
|
|
783
788
|
collapse: collapsed,
|
|
784
789
|
className: classes.skeleton,
|
|
@@ -839,7 +844,7 @@ const ContentGroups = () => {
|
|
|
839
844
|
collapsed,
|
|
840
845
|
menuData,
|
|
841
846
|
classes
|
|
842
|
-
} = useSideBar();
|
|
847
|
+
} = useSideBar$1();
|
|
843
848
|
const [itemMainActive, setItemMainActive] = useState(-1);
|
|
844
849
|
if (menuData && menuData.length > 0) {
|
|
845
850
|
return /* @__PURE__ */ jsxs(ContentGroupsRoot, {
|
|
@@ -894,7 +899,7 @@ const ContentDesktop = () => {
|
|
|
894
899
|
companyLogoSmallUrl,
|
|
895
900
|
classes,
|
|
896
901
|
companyName
|
|
897
|
-
} = useSideBar();
|
|
902
|
+
} = useSideBar$1();
|
|
898
903
|
return /* @__PURE__ */ jsxs(WrapperContentDesktop, {
|
|
899
904
|
className: classes.contentDesktop,
|
|
900
905
|
...process.env.NODE_ENV !== "production" ? {
|
|
@@ -966,7 +971,7 @@ const ContentMobile = () => {
|
|
|
966
971
|
collapsed,
|
|
967
972
|
classes,
|
|
968
973
|
companyName
|
|
969
|
-
} = useSideBar();
|
|
974
|
+
} = useSideBar$1();
|
|
970
975
|
const theme = useTheme();
|
|
971
976
|
return /* @__PURE__ */ jsx(Drawer, {
|
|
972
977
|
open: visible,
|
|
@@ -1071,5 +1076,5 @@ const SideBar = (props) => {
|
|
|
1071
1076
|
export {
|
|
1072
1077
|
SideBar as S,
|
|
1073
1078
|
getNameDataTestId as g,
|
|
1074
|
-
useSideBar as u
|
|
1079
|
+
useSideBar$1 as u
|
|
1075
1080
|
};
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import { forwardRef, useRef } from "react";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
1
|
import { m } from "framer-motion";
|
|
2
|
+
import { forwardRef, useRef } from "react";
|
|
4
3
|
import { IconButton, Box, styled, alpha } from "@mui/material";
|
|
5
|
-
import "
|
|
6
|
-
import "react-router-dom";
|
|
7
|
-
import "./LoadingScreen/index.1d0c4307.js";
|
|
8
|
-
import "./PropagateLoader/index.7fab43c8.js";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
5
|
import SimpleBarReact from "simplebar-react";
|
|
10
6
|
const varSmall = {
|
|
11
7
|
hover: {
|
|
@@ -1,67 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as useAreasStore } from "../../hooks/useAreas/index.d417e4b2.js";
|
|
1
|
+
import { u as useAreasStore } from "../../hooks/useAreas/index.ee66240b.js";
|
|
3
2
|
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
4
3
|
import { useState, useRef, useMemo } from "react";
|
|
5
4
|
import * as Yup from "yup";
|
|
6
|
-
import { generateUtilityClasses, useTheme } from "@mui/material";
|
|
7
|
-
import "../../../mui_extended/Accordion/index.cdedddba.js";
|
|
8
|
-
import { I as Icon } from "../../../Icon/index.a70c4729.js";
|
|
9
5
|
import clsx from "clsx";
|
|
10
|
-
import {
|
|
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.f79eb74e.js";
|
|
16
|
-
import "../../../mui_extended/CheckBox.38abccd8.js";
|
|
17
|
-
import "../../../mui_extended/Badge/index.b09524fe.js";
|
|
18
|
-
import "../../../Image/index.c18ebf5a.js";
|
|
19
|
-
import "@mui/lab";
|
|
20
|
-
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.7669b8af.js";
|
|
21
|
-
import { P as Popover } from "../../../mui_extended/Popover/index.9f35d0eb.js";
|
|
22
|
-
import "../../../mui_extended/Stack/index.0e53197c.js";
|
|
23
|
-
import "../../../mui_extended/Tab/index.5f09e16a.js";
|
|
24
|
-
import "../../../mui_extended/Pager/index.ac2a21f0.js";
|
|
25
|
-
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
26
|
-
import "../../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
6
|
+
import { generateUtilityClasses, useTheme } from "@mui/material";
|
|
27
7
|
import { unstable_composeClasses } from "@mui/base";
|
|
28
|
-
import { g as getComponentUtilityClass } from "../../../../utils/index.
|
|
8
|
+
import { g as getComponentUtilityClass } from "../../../../utils/index.6469f148.js";
|
|
29
9
|
import { A as AREAS_ADMIN_CLASS_NAME } from "../../constants.66529246.js";
|
|
30
10
|
import { I as ICONS } from "../../icons.8266ccc8.js";
|
|
31
|
-
import "../../
|
|
32
|
-
import "../../../../contexts/ModalContext/index.347f6738.js";
|
|
33
|
-
import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.1755b324.js";
|
|
34
|
-
import "react-hook-form";
|
|
35
|
-
import "../../../hook-form/RHFAutocomplete/index.29a4c62c.js";
|
|
36
|
-
import "../../../HelperText/index.191348cc.js";
|
|
37
|
-
import "lodash/debounce";
|
|
38
|
-
import "../../../hook-form/RHFAutocompleteAsync/index.647c3f9c.js";
|
|
39
|
-
import "../../../hook-form/RHFCheckbox/index.0b89ea5c.js";
|
|
40
|
-
import "@mui/x-date-pickers";
|
|
41
|
-
import "../../../hook-form/RHFDateTime/index.1adc88ad.js";
|
|
42
|
-
import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.a1a240b1.js";
|
|
43
|
-
import "../../../hook-form/RHFPeriod/index.a4476d23.js";
|
|
44
|
-
import "../../../Period/index.ebd5e3b7.js";
|
|
45
|
-
import { A as Actions } from "../../../CommonActions/components/Actions/index.7a196c44.js";
|
|
46
|
-
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.54588e5b.js";
|
|
47
|
-
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.f20cffae.js";
|
|
48
|
-
import "../../../../react-draggable.7abb5d0a.js";
|
|
49
|
-
import "../../../Resizeable/index.676c96fe.js";
|
|
50
|
-
import "../../../modal/index.b434146b.js";
|
|
51
|
-
import { shallow } from "zustand/shallow";
|
|
11
|
+
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.08cfc4c9.js";
|
|
52
12
|
import { styled } from "@mui/material/styles";
|
|
13
|
+
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
14
|
+
import { shallow } from "zustand/shallow";
|
|
15
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
16
|
+
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.dd9f65a2.js";
|
|
17
|
+
import { P as Popover } from "../../../mui_extended/Popover/index.b3eca6b1.js";
|
|
18
|
+
import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.1755b324.js";
|
|
19
|
+
import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.25b3627e.js";
|
|
20
|
+
import { A as Actions } from "../../../CommonActions/components/Actions/index.ccf731c1.js";
|
|
21
|
+
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.c3e23ad4.js";
|
|
22
|
+
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.49631fcb.js";
|
|
23
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.53cd6388.js";
|
|
24
|
+
import { T as Typography } from "../../../mui_extended/Typography/index.379dd374.js";
|
|
53
25
|
import { S as ScrollBar } from "../../../ScrollBar/index.65bb2930.js";
|
|
54
|
-
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.08cfc4c9.js";
|
|
55
26
|
import TouchRipple from "@mui/material/ButtonBase/TouchRipple";
|
|
56
|
-
import "
|
|
57
|
-
import "../../../
|
|
58
|
-
import "../../
|
|
59
|
-
import "../../contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
60
|
-
import "zustand";
|
|
61
|
-
import "lodash/isString";
|
|
62
|
-
import "react-dropzone";
|
|
63
|
-
import "../../../hook-form/RHFUpload/index.a4582341.js";
|
|
64
|
-
import { u as useOnClickOutside } from "../../index.8d6d8969.js";
|
|
27
|
+
import { B as Button } from "../../../mui_extended/Button/index.94fec33c.js";
|
|
28
|
+
import { I as Icon } from "../../../Icon/index.3211023d.js";
|
|
29
|
+
import { u as useOnClickOutside } from "../../index.4cc6a221.js";
|
|
65
30
|
const areasAdminClasses = generateUtilityClasses(AREAS_ADMIN_CLASS_NAME, [
|
|
66
31
|
"root",
|
|
67
32
|
"rootContent",
|
|
@@ -685,19 +650,21 @@ const PanelWindowPopUp = (props) => {
|
|
|
685
650
|
});
|
|
686
651
|
};
|
|
687
652
|
function AreasAdmin() {
|
|
688
|
-
const areas = useAreasStore((
|
|
689
|
-
const currentArea = useAreasStore((
|
|
690
|
-
const status = useAreasStore((
|
|
653
|
+
const areas = useAreasStore((state2) => state2.areasIds, shallow);
|
|
654
|
+
const currentArea = useAreasStore((state2) => state2.currentAreaId, shallow);
|
|
655
|
+
const status = useAreasStore((state2) => state2.ownerState.status);
|
|
691
656
|
const {
|
|
692
657
|
setFocus
|
|
693
|
-
} = useAreasStore((
|
|
694
|
-
const classesRoot = useAreasStore((
|
|
695
|
-
const areasLength = useAreasStore((
|
|
658
|
+
} = useAreasStore((state2) => state2.areaAdminActions, shallow);
|
|
659
|
+
const classesRoot = useAreasStore((state2) => state2.adminClasses.root);
|
|
660
|
+
const areasLength = useAreasStore((state2) => state2.areasIds.length);
|
|
696
661
|
const isDesktop = useResponsiveDesktop();
|
|
697
662
|
const {
|
|
698
663
|
addArea
|
|
699
|
-
} = useAreasStore((
|
|
700
|
-
const maximizedId = useAreasStore((
|
|
664
|
+
} = useAreasStore((state2) => state2.areasActions, shallow);
|
|
665
|
+
const maximizedId = useAreasStore((state2) => state2.hashAreas[currentArea] ? state2.hashAreas[currentArea].maximizedId : false, shallow);
|
|
666
|
+
const state = useAreasStore((state2) => state2, shallow);
|
|
667
|
+
console.log("store state", state);
|
|
701
668
|
const {
|
|
702
669
|
host_static_assets,
|
|
703
670
|
environment_assets
|
|
@@ -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" | "resizeHandle" | "windowLinearProgressBar" | "windowContent" | "areaRoot" | "areasLoadingErrorRoot" | "areasLoadingErrorLoading" | "areasLoadingError" | "areasLoadingErrorIcon" | "areasLoadingErrorTitle" | "areasLoadingErrorDescription" | "areasLoadingErrorDivider" | "areaGridLayoutPanelContainer" | "areaGridLayout" | "areaGridLayoutPopupsContainer" | "areasWindowPopUpList" | "windowRoot" | "windowRootContainer" | "windowHeader" | "windowHeaderTitle" | "windowHeaderMainActions" | "windowHeaderCancelHandle" | "windowLinearProgressRoot" | "windowPopupRoot" | "windowModalRoot" | "selectedWindow" | "windowToastiesContainer" | "windowToastiesContainerTostys" | "windowToastyMeesageButtonsContainer" | "windowToastyMessage" | "windowToastyButtonsContainer" | "windowToastyPin" | "windowToastyClose" | "panelWindowsRoot" | "panelWindowsButtonContainer" | "windowToastyContainer", string>;
|
|
4
|
+
export declare const useAreasViewerUtilityClasses: (ownerState: OwnerState) => Record<"root" | "resizeHandle" | "windowLinearProgressBar" | "windowContent" | "areaRoot" | "areasLoadingErrorRoot" | "areasLoadingErrorLoading" | "areasLoadingError" | "areasLoadingErrorIcon" | "areasLoadingErrorTitle" | "areasLoadingErrorDescription" | "areasLoadingErrorDivider" | "areaGridLayoutPanelContainer" | "areaGridLayout" | "areaGridLayoutPopupsContainer" | "areasWindowPopUpList" | "windowRoot" | "windowRootContainer" | "windowHeader" | "windowHeaderTitle" | "windowHeaderMainActions" | "windowHeaderCancelHandle" | "windowLinearProgressRoot" | "windowPopupRoot" | "windowModalRoot" | "selectedWindow" | "windowToastiesContainer" | "windowToastiesContainerTostys" | "windowToastyMeesageButtonsContainer" | "windowToastyMessage" | "windowToastyButtonsContainer" | "windowToastyPin" | "windowToastyClose" | "panelWindowsRoot" | "panelWindowsButtonContainer" | "loaderContainer" | "containerComponent" | "windowToastyContainer", string>;
|
|
5
5
|
export declare type ViwerClasses = ReturnType<typeof useAreasViewerUtilityClasses>;
|
|
@@ -1,14 +1,6 @@
|
|
|
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;
|
|
12
4
|
areaGridLayoutPanelContainer: string;
|
|
13
5
|
areaGridLayout: string;
|
|
14
6
|
areaGridLayoutPopupsContainer: string;
|
|
@@ -36,6 +28,8 @@ export interface AreasViewerClasses {
|
|
|
36
28
|
panelWindowsRoot: string;
|
|
37
29
|
panelWindowsButtonContainer: string;
|
|
38
30
|
resizeHandle: string;
|
|
31
|
+
loaderContainer: string;
|
|
32
|
+
containerComponent: string;
|
|
39
33
|
selected: string;
|
|
40
34
|
selectedWindow: string;
|
|
41
35
|
colapsed: string;
|