|
@@ -12,6 +12,7 @@
|
|
*/
|
|
*/
|
|
|
|
|
|
import React, { MouseEvent, useCallback, useEffect, useMemo, useState } from "react";
|
|
import React, { MouseEvent, useCallback, useEffect, useMemo, useState } from "react";
|
|
|
|
+import Box from "@mui/material/Box";
|
|
import Stack from "@mui/material/Stack";
|
|
import Stack from "@mui/material/Stack";
|
|
import ArrowDownward from "@mui/icons-material/ArrowDownward";
|
|
import ArrowDownward from "@mui/icons-material/ArrowDownward";
|
|
import ArrowUpward from "@mui/icons-material/ArrowUpward";
|
|
import ArrowUpward from "@mui/icons-material/ArrowUpward";
|
|
@@ -19,7 +20,7 @@ import Tooltip from "@mui/material/Tooltip";
|
|
import Popover, { PopoverOrigin } from "@mui/material/Popover";
|
|
import Popover, { PopoverOrigin } from "@mui/material/Popover";
|
|
|
|
|
|
import Status, { StatusType } from "./Status";
|
|
import Status, { StatusType } from "./Status";
|
|
-import { TaipyBaseProps, TaipyHoverProps } from "./utils";
|
|
|
|
|
|
+import { getSuffixedClassNames, TaipyBaseProps, TaipyHoverProps } from "./utils";
|
|
import { useClassNames, useDynamicProperty } from "../../utils/hooks";
|
|
import { useClassNames, useDynamicProperty } from "../../utils/hooks";
|
|
import { getComponentClassName } from "./TaipyStyle";
|
|
import { getComponentClassName } from "./TaipyStyle";
|
|
|
|
|
|
@@ -185,11 +186,11 @@ const StatusList = (props: StatusListProps) => {
|
|
|
|
|
|
return (
|
|
return (
|
|
<Tooltip title={hover || ""}>
|
|
<Tooltip title={hover || ""}>
|
|
- <>
|
|
|
|
|
|
+ <Box className={`${className} ${getComponentClassName(props.children)}`}>
|
|
<Status
|
|
<Status
|
|
id={props.id}
|
|
id={props.id}
|
|
value={globStatus}
|
|
value={globStatus}
|
|
- className={`${className} ${getComponentClassName(props.children)}`}
|
|
|
|
|
|
+ className={getSuffixedClassNames(className, "-main")}
|
|
{...globalProps}
|
|
{...globalProps}
|
|
icon={getIcon(icons, getStatusIntValue(globStatus.status))}
|
|
icon={getIcon(icons, getStatusIntValue(globStatus.status))}
|
|
/>
|
|
/>
|
|
@@ -204,7 +205,7 @@ const StatusList = (props: StatusListProps) => {
|
|
key={getId(props.id, idx)}
|
|
key={getId(props.id, idx)}
|
|
id={getId(props.id, idx)}
|
|
id={getId(props.id, idx)}
|
|
value={val}
|
|
value={val}
|
|
- className={`${className} ${getComponentClassName(props.children)}`}
|
|
|
|
|
|
+ className={getSuffixedClassNames(className, `-${idx}`)}
|
|
{...closeProp}
|
|
{...closeProp}
|
|
icon={getIcon(icons, getStatusIntValue(val.status))}
|
|
icon={getIcon(icons, getStatusIntValue(val.status))}
|
|
/>
|
|
/>
|
|
@@ -213,7 +214,7 @@ const StatusList = (props: StatusListProps) => {
|
|
</Stack>
|
|
</Stack>
|
|
</Popover>
|
|
</Popover>
|
|
{props.children}
|
|
{props.children}
|
|
- </>
|
|
|
|
|
|
+ </Box>
|
|
</Tooltip>
|
|
</Tooltip>
|
|
);
|
|
);
|
|
};
|
|
};
|