@m4l/components 0.1.83 → 0.1.85
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 +25 -4
- package/components/AccountPopover/classes/index.d.ts +4 -0
- package/components/AccountPopover/classes/types.d.ts +4 -0
- package/components/AccountPopover/dictionary.d.ts +1 -0
- package/components/AccountPopover/{index.2677fe77.js → index.35c29a55.js} +86 -36
- package/components/AccountPopover/index.d.ts +1 -0
- package/components/AccountPopover/types.d.ts +2 -0
- package/components/AppBar/dictionary.d.ts +1 -0
- package/components/AppBar/{index.ad2a6f0e.js → index.291da9fd.js} +19 -11
- package/components/AppBar/index.d.ts +1 -0
- package/components/CommonActions/components/ActionCancel/{index.b2fc495d.js → index.67b91376.js} +1 -1
- package/components/CommonActions/components/ActionFormCancel/{index.60d8963e.js → index.d4503410.js} +17 -16
- package/components/CommonActions/components/ActionFormIntro/{index.fde4ea51.js → index.01ed67de.js} +1 -1
- package/components/CommonActions/components/ActionIntro/{index.724d8e17.js → index.53e7fe2b.js} +1 -1
- package/components/CommonActions/components/Actions/{index.23a2d6ae.js → index.c91c27f9.js} +15 -14
- package/components/DataGrid/{index.d5d0d62f.js → index.37e14e83.js} +14 -12
- package/components/DataGrid/subcomponents/Actions/{index.201394f5.js → index.155c63af.js} +47 -31
- package/components/DynamicFilter/{index.7d134537.js → index.a8c2609c.js} +29 -28
- package/components/GridLayout/constants.d.ts +1 -1
- package/components/GridLayout/{index.70085b00.js → index.2383aaf9.js} +86 -23
- package/components/GridLayout/index.d.ts +1 -1
- package/components/GridLayout/subcomponents/Griditem/{index.c09681ff.js → index.58168132.js} +1 -6
- package/components/GridLayout/subcomponents/Responsive/{index.eb04fd5e.js → index.a6642437.js} +1 -2
- package/components/GridLayout/types.d.ts +2 -2
- package/components/HelperText/{index.28e9105d.js → index.8b5911d1.js} +9 -8
- package/components/Icon/{index.2414ff25.js → index.c3a579e7.js} +1 -1
- package/components/LanguagePopover/{index.065e0296.js → index.7681b08e.js} +9 -8
- package/components/ModalDialog/{index.fb148f76.js → index.b85ee3cb.js} +4 -6
- package/components/NavLink/{index.2ef07c44.js → index.bb879650.js} +9 -8
- package/components/NoItemSelected/classes/constants.d.ts +1 -0
- package/components/NoItemSelected/classes/index.d.ts +6 -0
- package/components/NoItemSelected/classes/types.d.ts +6 -0
- package/components/NoItemSelected/{index.23dfc897.js → index.a2807715.js} +46 -31
- package/components/NoItemSelected/index.d.ts +2 -1
- package/components/NoItemSelected/types.d.ts +4 -0
- package/components/ObjectLogs/{index.5d74dfe0.js → index.2ed38a84.js} +22 -19
- package/components/PaperForm/{index.f931dc02.js → index.989377a5.js} +1 -1
- package/components/Period/{index.0e6512b2.js → index.061c9b2f.js} +16 -15
- package/components/PropertyValue/{index.a67c9916.js → index.ac46f441.js} +1 -1
- package/components/ScrollBar/{index.d4410cb5.js → index.1247c1c5.js} +38 -9
- package/components/SideBar/classes/index.d.ts +0 -1
- package/components/SideBar/classes/types.d.ts +0 -1
- package/components/SideBar/{index.72564ef2.js → index.e0587639.js} +131 -75
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/type.d.ts +5 -0
- package/components/areas/components/AreasAdmin/classes/index.d.ts +1 -1
- package/components/areas/components/AreasAdmin/classes/types.d.ts +3 -0
- package/components/areas/components/AreasAdmin/index.d.ts +2 -2
- package/components/areas/components/AreasAdmin/index.f505897a.js +767 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/types.d.ts +2 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/types.d.ts +2 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.d.ts +6 -0
- package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/classes/types.d.ts +1 -0
- package/components/areas/components/AreasViewer/{index.9ed7dfd7.js → index.cacec884.js} +77 -52
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/index.d.ts +2 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/subcomponents/ResizeHandle/index.d.ts +4 -0
- package/components/areas/components/index.6d5dfeec.js +31 -0
- package/components/areas/contexts/AreasContext/helper.d.ts +10 -3
- package/components/areas/contexts/AreasContext/{index.36fe6953.js → index.6f56b1da.js} +103 -80
- package/components/areas/contexts/AreasContext/types.d.ts +28 -8
- package/components/areas/contexts/{index.68c53fc9.js → index.999e8b1e.js} +1 -1
- package/components/areas/hooks/useAreas/{index.a4c03e23.js → index.4baec91c.js} +1 -1
- package/components/areas/index.3088f99e.js +54 -0
- package/components/areas/utils/useOnClickOutside/index.d.ts +4 -0
- package/components/formatters/BooleanFormatter/{index.32de0803.js → index.e7f0b76a.js} +1 -1
- package/components/formatters/{index.d16d2331.js → index.d911949d.js} +2 -2
- package/components/hook-form/RHFAutocomplete/{index.42df8eb4.js → index.aca6984f.js} +11 -9
- package/components/hook-form/RHFAutocompleteAsync/{index.0441524c.js → index.8511bcf8.js} +1 -1
- package/components/hook-form/RHFCheckbox/{index.c66147f7.js → index.0f45e6b0.js} +10 -9
- package/components/hook-form/RHFDateTime/{index.4698ca29.js → index.07412ef0.js} +10 -9
- package/components/hook-form/RHFPeriod/{index.f653934b.js → index.15b8f11e.js} +2 -2
- package/components/hook-form/RHFTextField/{index.1fa07688.js → index.94c8c59b.js} +3 -3
- package/components/hook-form/RHFUpload/{index.93c2dcb5.js → index.7ef1e124.js} +10 -9
- package/components/modal/{WindowBase.92ce9b8f.js → WindowBase.d485315d.js} +17 -12
- package/components/modal/{WindowConfirm.4c3d2cd7.js → WindowConfirm.3d9cd6e1.js} +18 -17
- package/components/modal/{index.1bd35bd5.js → index.c7e4beba.js} +15 -14
- package/components/mui_extended/Accordion/{index.5111314b.js → index.854f4c90.js} +3 -3
- package/components/mui_extended/Badge/classes/constants.d.ts +1 -1
- package/components/mui_extended/Badge/{index.cad260fe.js → index.8c2b8b66.js} +1 -1
- package/components/mui_extended/CheckBox/CheckBox.d.ts +1 -1
- package/components/mui_extended/{CheckBox.5f6c78b0.js → CheckBox.38abccd8.js} +5 -3
- package/components/mui_extended/IconButton/{index.a318316e.js → index.be111a34.js} +2 -12
- package/components/mui_extended/MenuActions/{index.f6bfdd40.js → index.b16e84c1.js} +26 -8
- package/components/mui_extended/MenuActions/types.d.ts +3 -0
- package/components/mui_extended/Pager/{index.da26e9d4.js → index.5b77fa4c.js} +84 -82
- package/components/mui_extended/Pager/subcomponents/CustomTablePagination/index.d.ts +5 -0
- package/components/mui_extended/Pager/subcomponents/CustomTablePagination/types.d.ts +1 -4
- package/components/mui_extended/Stack/Stack.d.ts +3 -0
- package/components/mui_extended/Stack/classes/constants.d.ts +1 -0
- package/components/mui_extended/Stack/classes/index.d.ts +6 -0
- package/components/mui_extended/Stack/classes/types.d.ts +6 -0
- package/components/mui_extended/Stack/index.0e53197c.js +39 -0
- package/components/mui_extended/Stack/index.d.ts +2 -0
- package/components/mui_extended/Stack/types.d.ts +2 -0
- package/components/mui_extended/Tab/{index.0989d15d.js → index.c1dc7bbf.js} +42 -9
- package/components/mui_extended/Tabs/Tabs.d.ts +3 -0
- package/components/mui_extended/Tabs/classes/constants.d.ts +1 -0
- package/components/mui_extended/Tabs/classes/index.d.ts +6 -0
- package/components/mui_extended/Tabs/classes/types.d.ts +6 -0
- package/components/mui_extended/Tabs/index.d.ts +1 -0
- package/components/mui_extended/index.d.ts +2 -0
- package/components/mui_extended/{index.813723c5.js → index.d1ee9a6a.js} +9 -8
- package/contexts/ModalContext/{index.577bf36b.js → index.1ea79d7e.js} +1 -1
- package/contexts/RHFormContext/{index.b9266262.js → index.e019f87d.js} +1 -1
- package/hooks/useModal/{index.7a07c208.js → index.c906706c.js} +1 -1
- package/index.js +81 -75
- package/package.json +1 -1
- package/{vendor.5365cc7e.js → vendor.f27b86c9.js} +51 -51
- package/components/GridLayout/subcomponents/SizeProvider/index.9c5e80b2.js +0 -65
- package/components/areas/components/AreasAdmin/index.7bfec13f.js +0 -487
- package/components/areas/components/index.654b08aa.js +0 -30
- package/components/areas/index.ec4f088c.js +0 -32
- /package/components/GridLayout/subcomponents/{SizeProvider → WidthProvider}/index.d.ts +0 -0
- /package/components/areas/components/AreasAdmin/subcomponents/{AreaChipMobile/subcomponents/PanelWindowPopUp → PanelWindowPopUp}/index.d.ts +0 -0
- /package/components/areas/components/AreasAdmin/subcomponents/{AreaChipMobile/subcomponents/PanelWindowPopUp → PanelWindowPopUp}/types.d.ts +0 -0
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
2
|
-
import { useEnvironment } from "@m4l/core";
|
|
3
|
-
import { createContext, useContext, useState } from "react";
|
|
2
|
+
import { useEnvironment, useBase, BaseProvider } from "@m4l/core";
|
|
3
|
+
import { createContext, useContext, useState, useEffect } from "react";
|
|
4
4
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
5
5
|
import { I as Image } from "../Image/index.c18ebf5a.js";
|
|
6
|
-
import { I as IconButton } from "../mui_extended/IconButton/index.
|
|
6
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.be111a34.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.c3a579e7.js";
|
|
10
10
|
import { T as Typography } from "../mui_extended/Typography/index.443590d6.js";
|
|
11
11
|
import clsx from "clsx";
|
|
12
|
+
import { useLocation } from "react-router-dom";
|
|
12
13
|
import { P as Popover } from "../mui_extended/Popover/index.9f35d0eb.js";
|
|
13
|
-
import { S as ScrollBar } from "../ScrollBar/index.
|
|
14
|
+
import { S as ScrollBar } from "../ScrollBar/index.1247c1c5.js";
|
|
14
15
|
import { styled, alpha } from "@mui/material/styles";
|
|
15
16
|
import { unstable_composeClasses } from "@mui/base";
|
|
16
17
|
import { g as getComponentUtilityClass } from "../../utils/index.c43a95f4.js";
|
|
@@ -59,7 +60,7 @@ const WrapperContentDesktop = styled$1("div")(() => ({
|
|
|
59
60
|
const CollapseButtonRoot = styled$1("div")(() => ({
|
|
60
61
|
display: "flex"
|
|
61
62
|
}));
|
|
62
|
-
|
|
63
|
+
styled$1("div")(() => ({
|
|
63
64
|
display: "flex"
|
|
64
65
|
}));
|
|
65
66
|
const componentName = "M4LSideBar";
|
|
@@ -85,7 +86,6 @@ generateUtilityClasses(
|
|
|
85
86
|
"skeleton",
|
|
86
87
|
"lineLeft",
|
|
87
88
|
"wrapperSideBar",
|
|
88
|
-
"containerLogoButton",
|
|
89
89
|
"navItemMainTriangleTop",
|
|
90
90
|
"navItemMainTriangleBottom",
|
|
91
91
|
"navItemRootContentIconTypo",
|
|
@@ -126,7 +126,6 @@ const getSideBarClassesByState = (ownerState) => {
|
|
|
126
126
|
subItemActive: ["subItemActive"],
|
|
127
127
|
lineLeft: ["lineLeft"],
|
|
128
128
|
wrapperSideBar: ["wrapperSideBar"],
|
|
129
|
-
containerLogoButton: ["containerLogoButton"],
|
|
130
129
|
itemMainActive: ["itemMainActive"],
|
|
131
130
|
navItemMainTriangleTop: ["navItemMainTriangleTop"],
|
|
132
131
|
navItemMainTriangleBottom: ["navItemMainTriangleBottom"],
|
|
@@ -225,32 +224,29 @@ function CollapseButton(props) {
|
|
|
225
224
|
classes,
|
|
226
225
|
companyLogoNormalUrl
|
|
227
226
|
} = useSideBar();
|
|
228
|
-
return /* @__PURE__ */
|
|
227
|
+
return /* @__PURE__ */ jsxs(CollapseButtonRoot, {
|
|
229
228
|
className: classes.collapseButton,
|
|
230
229
|
...process.env.NODE_ENV !== "production" ? {
|
|
231
230
|
[TEST_PROP_ID]: getNameDataTestId("collapseButton")
|
|
232
231
|
} : {},
|
|
233
|
-
children: /* @__PURE__ */
|
|
234
|
-
className: classes.
|
|
235
|
-
children:
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
})
|
|
252
|
-
})]
|
|
253
|
-
})
|
|
232
|
+
children: [!collapsed && /* @__PURE__ */ jsx("div", {
|
|
233
|
+
className: classes.containerLogoButtonLogo,
|
|
234
|
+
children: /* @__PURE__ */ jsx(Image, {
|
|
235
|
+
width: "100%",
|
|
236
|
+
height: "100%",
|
|
237
|
+
src: companyLogoNormalUrl,
|
|
238
|
+
alt: "logo"
|
|
239
|
+
}, "Logo")
|
|
240
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
241
|
+
className: classes.containerLogoButtonIcon,
|
|
242
|
+
style: {
|
|
243
|
+
transform: `rotate(${collapsed ? 0 : 180}deg)`
|
|
244
|
+
},
|
|
245
|
+
children: /* @__PURE__ */ jsx(IconButton, {
|
|
246
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/sidebar/assets/icons/arrow_right.svg`,
|
|
247
|
+
onClick: onToggleCollapse
|
|
248
|
+
})
|
|
249
|
+
})]
|
|
254
250
|
});
|
|
255
251
|
}
|
|
256
252
|
const WrapperGroup = styled$1("ul")(({
|
|
@@ -503,30 +499,57 @@ function NavListSubItem(props) {
|
|
|
503
499
|
}
|
|
504
500
|
} = props;
|
|
505
501
|
const {
|
|
506
|
-
|
|
502
|
+
setAncestorActive
|
|
503
|
+
} = useBase();
|
|
504
|
+
const [internalItemActive, setInternalItemActive] = useState(false);
|
|
505
|
+
const {
|
|
506
|
+
classes,
|
|
507
|
+
isItemActive
|
|
507
508
|
} = useSideBar();
|
|
509
|
+
const active = isItemActive(list);
|
|
508
510
|
const [openSub, setOpenSub] = useState(false);
|
|
509
511
|
const hasChildren = list.children && Array.isArray(list.children) && list.children.length > 0;
|
|
512
|
+
const location = useLocation();
|
|
513
|
+
useEffect(() => {
|
|
514
|
+
let mounted = true;
|
|
515
|
+
if (mounted) {
|
|
516
|
+
if (active || internalItemActive) {
|
|
517
|
+
setAncestorActive(true);
|
|
518
|
+
} else {
|
|
519
|
+
setAncestorActive(false);
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
return function cleanUp() {
|
|
523
|
+
setAncestorActive(false);
|
|
524
|
+
mounted = false;
|
|
525
|
+
};
|
|
526
|
+
}, [active, internalItemActive, location.search]);
|
|
510
527
|
return /* @__PURE__ */ jsx(NavListSubItemRoot, {
|
|
511
|
-
className: classes.navListSubItemRoot,
|
|
528
|
+
className: clsx(classes.navListSubItemRoot, active || internalItemActive ? classes.subItemActive : null),
|
|
512
529
|
...process.env.NODE_ENV !== "production" ? {
|
|
513
530
|
[TEST_PROP_ID]: getNameDataTestId("navListSubItemRoot")
|
|
514
531
|
} : {},
|
|
515
|
-
children: hasChildren ? /* @__PURE__ */
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
children: (list.children || []).map((item) => /* @__PURE__ */ jsx(NavListSubItem, {
|
|
526
|
-
item,
|
|
532
|
+
children: hasChildren ? /* @__PURE__ */ jsx(BaseProvider, {
|
|
533
|
+
value: {
|
|
534
|
+
ancestorActive: internalItemActive,
|
|
535
|
+
setAncestorActive: setInternalItemActive
|
|
536
|
+
},
|
|
537
|
+
children: /* @__PURE__ */ jsxs(Fragment, {
|
|
538
|
+
children: [/* @__PURE__ */ jsx(NavSubItem, {
|
|
539
|
+
item: list,
|
|
540
|
+
openSub,
|
|
541
|
+
setOpenSub,
|
|
527
542
|
closePopover
|
|
528
|
-
},
|
|
529
|
-
|
|
543
|
+
}), /* @__PURE__ */ jsx(Collapse, {
|
|
544
|
+
in: openSub,
|
|
545
|
+
timeout: "auto",
|
|
546
|
+
unmountOnExit: true,
|
|
547
|
+
children: (list.children || []).map((item) => /* @__PURE__ */ jsx(NavListSubItem, {
|
|
548
|
+
item,
|
|
549
|
+
closePopover
|
|
550
|
+
}, item.title))
|
|
551
|
+
})]
|
|
552
|
+
})
|
|
530
553
|
}) : /* @__PURE__ */ jsx(NavSubItem, {
|
|
531
554
|
item: list,
|
|
532
555
|
openSub,
|
|
@@ -632,53 +655,86 @@ const ContainerListSubItem = styled$1("div")(({
|
|
|
632
655
|
}));
|
|
633
656
|
function ItemListMain(props) {
|
|
634
657
|
const {
|
|
635
|
-
list
|
|
636
|
-
setItemMainActive,
|
|
637
|
-
itemMainActive,
|
|
638
|
-
id
|
|
658
|
+
list
|
|
639
659
|
} = props;
|
|
640
660
|
const {
|
|
641
661
|
collapsed: isSideBarCollapsed,
|
|
642
662
|
isItemActive,
|
|
643
663
|
classes
|
|
644
664
|
} = useSideBar();
|
|
645
|
-
const
|
|
646
|
-
const [
|
|
665
|
+
const location = useLocation();
|
|
666
|
+
const [internalItemActive, setInternalItemActive] = useState(false);
|
|
667
|
+
const [active, setActive] = useState(false);
|
|
668
|
+
const childrens = [];
|
|
669
|
+
const findChildren = (list2) => {
|
|
670
|
+
const moduleId = list2.children ? list2.children[0].module_id : void 0;
|
|
671
|
+
if (moduleId) {
|
|
672
|
+
childrens.push(moduleId);
|
|
673
|
+
list2.children && findChildren(list2.children[0]);
|
|
674
|
+
}
|
|
675
|
+
};
|
|
676
|
+
useEffect(() => {
|
|
677
|
+
let mounted = true;
|
|
678
|
+
if (mounted) {
|
|
679
|
+
setActive(false);
|
|
680
|
+
setActive(isItemActive(list));
|
|
681
|
+
if (mounted && !active) {
|
|
682
|
+
findChildren(list);
|
|
683
|
+
for (let i = 0; i < childrens.length; i++) {
|
|
684
|
+
if (isItemActive({
|
|
685
|
+
title: "",
|
|
686
|
+
module_id: childrens[i]
|
|
687
|
+
})) {
|
|
688
|
+
setActive(true);
|
|
689
|
+
break;
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
return function cleanUp() {
|
|
695
|
+
mounted = false;
|
|
696
|
+
};
|
|
697
|
+
}, [location.search]);
|
|
698
|
+
const [open, setOpen] = useState(true);
|
|
647
699
|
const hasChildren = list.children && Array.isArray(list.children) && list.children.length > 0;
|
|
648
700
|
if (hasChildren) {
|
|
649
|
-
return /* @__PURE__ */
|
|
701
|
+
return /* @__PURE__ */ jsx("div", {
|
|
650
702
|
role: "presentation",
|
|
651
|
-
className: clsx(classes.itemListMainRoot,
|
|
703
|
+
className: clsx(classes.itemListMainRoot, active || internalItemActive ? classes.itemMainActive : null),
|
|
652
704
|
...process.env.NODE_ENV !== "production" ? {
|
|
653
705
|
[TEST_PROP_ID]: getNameDataTestId("itemListMainRoot")
|
|
654
706
|
} : {},
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
707
|
+
children: /* @__PURE__ */ jsxs(BaseProvider, {
|
|
708
|
+
value: {
|
|
709
|
+
ancestorActive: internalItemActive,
|
|
710
|
+
setAncestorActive: setInternalItemActive
|
|
711
|
+
},
|
|
712
|
+
children: [/* @__PURE__ */ jsx(NavItemMain, {
|
|
713
|
+
item: list,
|
|
714
|
+
open,
|
|
715
|
+
setOpen
|
|
716
|
+
}), !isSideBarCollapsed && /* @__PURE__ */ jsx(Collapse, {
|
|
717
|
+
in: open,
|
|
718
|
+
timeout: "auto",
|
|
719
|
+
unmountOnExit: true,
|
|
720
|
+
children: (list.children || []).map((item) => /* @__PURE__ */ jsx(ContainerListSubItem, {
|
|
721
|
+
className: classes.containerListSubItem,
|
|
722
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
723
|
+
[TEST_PROP_ID]: getNameDataTestId("containerListSubItem")
|
|
724
|
+
} : {},
|
|
725
|
+
children: /* @__PURE__ */ jsx(NavListSubItem, {
|
|
726
|
+
item
|
|
727
|
+
}, item.title)
|
|
728
|
+
}, item.title))
|
|
729
|
+
})]
|
|
730
|
+
})
|
|
674
731
|
});
|
|
675
732
|
}
|
|
676
733
|
return /* @__PURE__ */ jsx("div", {
|
|
677
|
-
className: clsx(classes.itemListMainRoot,
|
|
734
|
+
className: clsx(classes.itemListMainRoot, active ? classes.itemMainActive : null),
|
|
678
735
|
...process.env.NODE_ENV !== "production" ? {
|
|
679
736
|
[TEST_PROP_ID]: getNameDataTestId("itemListMainRoot")
|
|
680
737
|
} : {},
|
|
681
|
-
onClick: () => setItemMainActive(id),
|
|
682
738
|
children: /* @__PURE__ */ jsx(NavItemMain, {
|
|
683
739
|
item: list,
|
|
684
740
|
open,
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { MenuDataType } from "../../../../../../types";
|
|
2
3
|
import { OpenStateItem } from "../../types";
|
|
4
|
+
export interface AncestorItem {
|
|
5
|
+
ancestorActive: boolean;
|
|
6
|
+
setAncestorActive: React.Dispatch<React.SetStateAction<boolean>>;
|
|
7
|
+
}
|
|
3
8
|
export declare type NavListProps = MenuDataType;
|
|
4
9
|
export interface NavItemRootProps extends OpenStateItem {
|
|
5
10
|
item: NavListProps;
|
|
@@ -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" | "areaContainerChipsIcon" | "areaContainerChips" | "areaContainerContentChips" | "areaEditPopover" | "areaChipMobileRoot" | "areaChipMobileIconContainer" | "areaChipTitle" | "areaContainerChipEditButton" | "areaChipDeleteButton" | "areaChipEditButton" | "areasAddButton" | "areasPopoverMobileOptions" | "areasPopoverListWindows", string>;
|
|
4
|
+
export declare const useAreasAdminUtilityClasses: (ownerState: OwnerState) => Record<"root" | "rootContent" | "areaChipRoot" | "areaIconLayer" | "areaContainerChipsIcon" | "areaContainerChips" | "areaContainerContentChips" | "areaEditPopover" | "areaChipMobileRoot" | "areaChipMobileIconContainer" | "areaChipTitle" | "areaContainerChipEditButton" | "areaChipDeleteButton" | "areaChipEditButton" | "areasAddButton" | "areasPopoverMobileOptions" | "areasPopoverListWindows" | "areasPopoverListWindowsIcon", string>;
|
|
5
5
|
export declare type AdminClasses = ReturnType<typeof useAreasAdminUtilityClasses>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export interface AreasAdmninClasses {
|
|
2
2
|
root: string;
|
|
3
|
+
rootContent: string;
|
|
3
4
|
areaChipRoot: string;
|
|
4
5
|
areaChipTitle: string;
|
|
5
6
|
areaContainerChips: string;
|
|
@@ -16,8 +17,10 @@ export interface AreasAdmninClasses {
|
|
|
16
17
|
areasAddButton: string;
|
|
17
18
|
areasPopoverMobileOptions: string;
|
|
18
19
|
areasPopoverListWindows: string;
|
|
20
|
+
areasPopoverListWindowsIcon: string;
|
|
19
21
|
selected: string;
|
|
20
22
|
isMobile: string;
|
|
21
23
|
disabled: string;
|
|
24
|
+
isFocus: string;
|
|
22
25
|
}
|
|
23
26
|
export declare type AreasAdminClassesKey = keyof AreasAdmninClasses;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function AreasAdmin():
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare function AreasAdmin(): React.JSX.Element | null;
|