@gridsuite/commons-ui 0.205.0 → 0.206.0
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/dist/components/announcement/AnnouncementBanner.d.ts +1 -1
- package/dist/components/announcement/AnnouncementBanner.js +3 -2
- package/dist/components/announcement/AnnouncementNotification.d.ts +1 -1
- package/dist/components/announcement/useGlobalAnnouncement.d.ts +1 -1
- package/dist/components/authentication/SignInCallbackHandler.d.ts +1 -1
- package/dist/components/authentication/SilentRenewCallbackHandler.d.ts +1 -1
- package/dist/components/authentication/authenticationType.d.ts +1 -1
- package/dist/components/authentication/utils/authService.d.ts +1 -6
- package/dist/components/authentication/utils/authService.js +18 -9
- package/dist/components/authentication/utils/userManagerMock.d.ts +7 -9
- package/dist/components/authentication/utils/userManagerMock.js +23 -27
- package/dist/components/customAGGrid/cell-renderers.js +7 -6
- package/dist/components/dnd-table/dnd-table-bottom-left-buttons.js +4 -5
- package/dist/components/dnd-table/dnd-table-bottom-right-buttons.js +6 -9
- package/dist/components/dnd-table/dnd-table.js +3 -3
- package/dist/components/dnd-table-v2/deletable-table-row.js +3 -2
- package/dist/components/dnd-table-v2/dnd-table-bottom-left-buttons.js +4 -5
- package/dist/components/dnd-table-v2/dnd-table-bottom-right-buttons.js +6 -9
- package/dist/components/dnd-table-v2/dnd-table-row.js +3 -3
- package/dist/components/dnd-table-v2/dnd-table.js +3 -2
- package/dist/components/flatParameters/FlatParameters.js +3 -3
- package/dist/components/grid/grid-item.js +3 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +2 -0
- package/dist/components/inputs/ActivableChip.js +3 -2
- package/dist/components/inputs/reactHookForm/DirectoryItemsInput.js +3 -2
- package/dist/components/inputs/reactHookForm/agGridTable/BottomRightButtons.js +3 -3
- package/dist/components/inputs/reactHookForm/expandableInput/DeletableRow.js +3 -2
- package/dist/components/inputs/reactHookForm/text/DescriptionInput.js +3 -2
- package/dist/components/inputs/reactHookForm/utils/HelperPreviousValue.js +3 -4
- package/dist/components/network-modification-table/renderers/name-cell.js +3 -2
- package/dist/components/network-modifications/common/activePowerControl/ActivePowerControlForm.js +3 -2
- package/dist/components/network-modifications/common/connectivity/PositionForm.js +3 -2
- package/dist/components/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationCreationSection.js +3 -2
- package/dist/components/overflowableText/OverflowableText.js +3 -2
- package/dist/components/parameters/common/limitreductions/limit-reduction-table-cell.js +3 -2
- package/dist/components/parameters/common/parameter-field.js +3 -2
- package/dist/components/parameters/common/parameter-table/parameter-table.js +3 -2
- package/dist/components/parameters/common/parameter-table/table-row.js +3 -2
- package/dist/components/parameters/common/parameter-table-field/parameter-table-field.js +3 -3
- package/dist/components/parameters/common/parameters-edition-dialog-props.d.ts +1 -1
- package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table.js +3 -2
- package/dist/components/parameters/common/widget/parameter-float.js +3 -2
- package/dist/components/parameters/dynamic-simulation/curve/common/grid-buttons.js +4 -5
- package/dist/components/parameters/dynamic-simulation/curve/dialog/curve-selector-dialog.js +4 -5
- package/dist/components/parameters/network-visualizations/network-visualizations-form.d.ts +1 -1
- package/dist/components/parameters/network-visualizations/network-visualizations-parameters-inline.d.ts +1 -1
- package/dist/components/parameters/security-analysis/security-analysis-violations-hiding.js +4 -4
- package/dist/components/parameters/short-circuit/short-circuit-icc-cluster-table-row.js +3 -2
- package/dist/components/parameters/short-circuit/short-circuit-icc-cluster-table.js +4 -3
- package/dist/components/parameters/short-circuit/short-circuit-icc-material-table.js +3 -2
- package/dist/components/parameters/voltage-init/voltage-limits-parameters.js +3 -3
- package/dist/components/tooltip/CustomTooltip.d.ts +2 -0
- package/dist/components/tooltip/CustomTooltip.js +9 -0
- package/dist/components/tooltip/index.d.ts +1 -0
- package/dist/components/tooltip/index.js +4 -0
- package/dist/components/topBar/AboutDialog.js +3 -5
- package/dist/components/topBar/TopBar.d.ts +1 -1
- package/dist/components/topBar/UserInformationDialog.d.ts +1 -1
- package/dist/hooks/use-parameters-backend.d.ts +1 -1
- package/dist/index.js +2 -0
- package/dist/redux/actions/authActions.d.ts +1 -1
- package/dist/redux/commonStore.d.ts +1 -1
- package/package.json +2 -2
|
@@ -2,10 +2,11 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { createPortal } from "react-dom";
|
|
3
3
|
import { useState, useCallback, useRef, useMemo } from "react";
|
|
4
4
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
5
|
-
import { Grid, TableContainer, Table, TableHead, TableRow, TableCell, Box,
|
|
5
|
+
import { Grid, TableContainer, Table, TableHead, TableRow, TableCell, Box, IconButton, TableBody, Checkbox } from "@mui/material";
|
|
6
6
|
import { DragDropContext, Droppable, Draggable } from "@hello-pangea/dnd";
|
|
7
7
|
import { useIntl } from "react-intl";
|
|
8
8
|
import { AddCircle } from "@mui/icons-material";
|
|
9
|
+
import { CustomTooltip } from "../tooltip/CustomTooltip.js";
|
|
9
10
|
import { MAX_ROWS_NUMBER, SELECTED } from "./dnd-table.type.js";
|
|
10
11
|
import { DndTableBottomLeftButtons } from "./dnd-table-bottom-left-buttons.js";
|
|
11
12
|
import { DndTableBottomRightButtons } from "./dnd-table-bottom-right-buttons.js";
|
|
@@ -265,7 +266,7 @@ function DndTable(props) {
|
|
|
265
266
|
column.dataKey
|
|
266
267
|
)),
|
|
267
268
|
!disableAddingRows && !multiselect && /* @__PURE__ */ jsx(TableCell, { sx: { width: "5rem", textAlign: "center" }, children: /* @__PURE__ */ jsx(
|
|
268
|
-
|
|
269
|
+
CustomTooltip,
|
|
269
270
|
{
|
|
270
271
|
title: intl.formatMessage({
|
|
271
272
|
id: "AddRows"
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useCallback, Fragment, createElement } from "react";
|
|
3
|
-
import { List, ListItem,
|
|
3
|
+
import { List, ListItem, Typography, Divider, Select, MenuItem, TextField, IconButton, Autocomplete, Chip, Switch } from "@mui/material";
|
|
4
4
|
import { Tune } from "@mui/icons-material";
|
|
5
5
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
6
|
+
import { CustomTooltip } from "../tooltip/CustomTooltip.js";
|
|
6
7
|
import { MultipleSelectionDialog } from "../multipleSelectionDialog/MultipleSelectionDialog.js";
|
|
7
8
|
const styles = {
|
|
8
9
|
paramList: {
|
|
@@ -347,10 +348,9 @@ function FlatParameters({
|
|
|
347
348
|
return /* @__PURE__ */ jsx(List, { sx: styles.paramList, children: paramsAsArray.map((param, index) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
348
349
|
/* @__PURE__ */ jsxs(ListItem, { sx: styles.paramListItem, children: [
|
|
349
350
|
/* @__PURE__ */ jsx(
|
|
350
|
-
|
|
351
|
+
CustomTooltip,
|
|
351
352
|
{
|
|
352
353
|
title: /* @__PURE__ */ jsx(FormattedMessage, { id: `${param.name}.desc`, defaultMessage: param.description }),
|
|
353
|
-
enterDelay: 1200,
|
|
354
354
|
children: /* @__PURE__ */ jsx(Typography, { sx: styles.paramName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: param.name, defaultMessage: param.name.slice(prefix.length) }) })
|
|
355
355
|
},
|
|
356
356
|
param.name
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Grid
|
|
2
|
+
import { Grid } from "@mui/material";
|
|
3
|
+
import { CustomTooltip } from "../tooltip/CustomTooltip.js";
|
|
3
4
|
function GridItem({ children, size = 6, alignItem = "flex-start", tooltip }) {
|
|
4
|
-
return /* @__PURE__ */ jsx(Grid, { item: true, xs: size, alignItems: alignItem, children: children && (tooltip ? /* @__PURE__ */ jsx(
|
|
5
|
+
return /* @__PURE__ */ jsx(Grid, { item: true, xs: size, alignItems: alignItem, children: children && (tooltip ? /* @__PURE__ */ jsx(CustomTooltip, { title: tooltip, children: /* @__PURE__ */ jsx("div", { children }) }) : children) });
|
|
5
6
|
}
|
|
6
7
|
export {
|
|
7
8
|
GridItem as default
|
|
@@ -22,6 +22,7 @@ export * from './inputs';
|
|
|
22
22
|
export * from './multipleSelectionDialog';
|
|
23
23
|
export * from './overflowableText';
|
|
24
24
|
export * from './snackbarProvider';
|
|
25
|
+
export * from './tooltip';
|
|
25
26
|
export * from './topBar';
|
|
26
27
|
export * from './treeViewFinder';
|
|
27
28
|
export * from './notifications';
|
package/dist/components/index.js
CHANGED
|
@@ -55,6 +55,7 @@ import { CONTINGENCY_LIST_EQUIPMENTS, FILTER_EQUIPMENTS } from "./filter/utils/f
|
|
|
55
55
|
import { FlatParameters, extractDefault } from "./flatParameters/FlatParameters.js";
|
|
56
56
|
import "react/jsx-runtime";
|
|
57
57
|
import "@mui/material";
|
|
58
|
+
import { CustomTooltip } from "./tooltip/CustomTooltip.js";
|
|
58
59
|
import "react-intl";
|
|
59
60
|
import { SelectClearable } from "./inputs/SelectClearable.js";
|
|
60
61
|
import { OverflowableChip } from "./inputs/reactHookForm/OverflowableChip.js";
|
|
@@ -347,6 +348,7 @@ export {
|
|
|
347
348
|
CustomMuiDialog,
|
|
348
349
|
CustomNestedMenuItem,
|
|
349
350
|
CustomReactQueryBuilder,
|
|
351
|
+
CustomTooltip,
|
|
350
352
|
CustomVoltageLevelTable,
|
|
351
353
|
CustomVoltageLevelTableCell,
|
|
352
354
|
CustomVoltageLevelTableRow,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Chip } from "@mui/material";
|
|
3
3
|
import { CheckCircleOutline, Cancel } from "@mui/icons-material";
|
|
4
|
+
import { CustomTooltip } from "../tooltip/CustomTooltip.js";
|
|
4
5
|
function ActivableChip(props) {
|
|
5
6
|
const { isActivated, label, tooltipMessage, onClick, isDisabled } = props;
|
|
6
|
-
return /* @__PURE__ */ jsx(
|
|
7
|
+
return /* @__PURE__ */ jsx(CustomTooltip, { title: tooltipMessage, children: /* @__PURE__ */ jsx(
|
|
7
8
|
Chip,
|
|
8
9
|
{
|
|
9
10
|
label,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Box, FormControl, InputLabel, Select,
|
|
2
|
+
import { Box, FormControl, InputLabel, Select, IconButton, OutlinedInput } from "@mui/material";
|
|
3
3
|
import { DriveFolderUpload } from "@mui/icons-material";
|
|
4
4
|
import { useState, useMemo, useCallback, useEffect } from "react";
|
|
5
5
|
import { useFieldArray, useWatch, useController } from "react-hook-form";
|
|
6
6
|
import { useIntl } from "react-intl";
|
|
7
|
+
import { CustomTooltip } from "../../tooltip/CustomTooltip.js";
|
|
7
8
|
import "./provider/CustomFormProvider.js";
|
|
8
9
|
import { useCustomFormContext } from "./provider/useCustomFormContext.js";
|
|
9
10
|
import { ErrorInput } from "./errorManagement/ErrorInput.js";
|
|
@@ -230,7 +231,7 @@ function DirectoryItemsInput({
|
|
|
230
231
|
}
|
|
231
232
|
),
|
|
232
233
|
renderValue: (directoryElements) => /* @__PURE__ */ jsxs(Box, { sx: styles.renderDirectoryElements, children: [
|
|
233
|
-
/* @__PURE__ */ jsx(
|
|
234
|
+
/* @__PURE__ */ jsx(CustomTooltip, { title: intl.formatMessage({ id: titleId }), children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(IconButton, { size: "small", disabled: disable, children: /* @__PURE__ */ jsx(DriveFolderUpload, {}) }) }) }),
|
|
234
235
|
directoryElements?.map((item, index) => {
|
|
235
236
|
const elementName = watchedElements?.[index]?.[NAME] ?? getValues(`${name}.${index}.${NAME}`) ?? item?.[NAME];
|
|
236
237
|
const equipmentTypeShortLabel = getEquipmentTypeShortLabel(
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { styled, IconButton, Grid,
|
|
2
|
+
import { styled, IconButton, Grid, Box } from "@mui/material";
|
|
3
3
|
import { Upload, ControlPoint, Delete, ArrowCircleUp, ArrowCircleDown } from "@mui/icons-material";
|
|
4
4
|
import { useState } from "react";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
|
+
import { CustomTooltip } from "../../../tooltip/CustomTooltip.js";
|
|
6
7
|
import { ErrorInput } from "../errorManagement/ErrorInput.js";
|
|
7
8
|
import { FieldErrorAlert } from "../errorManagement/FieldErrorAlert.js";
|
|
8
9
|
import { CsvUploader } from "./csvUploader/CsvUploader.js";
|
|
@@ -28,12 +29,11 @@ function BottomRightButtons({
|
|
|
28
29
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
29
30
|
/* @__PURE__ */ jsxs(Grid, { container: true, paddingTop: 1, paddingLeft: 2, children: [
|
|
30
31
|
/* @__PURE__ */ jsx(Grid, { item: true, xs: 1, children: csvProps && /* @__PURE__ */ jsx(InnerColoredButton, { onClick: () => setUploaderOpen(true), children: /* @__PURE__ */ jsx(
|
|
31
|
-
|
|
32
|
+
CustomTooltip,
|
|
32
33
|
{
|
|
33
34
|
title: intl.formatMessage({
|
|
34
35
|
id: "ImportCSV"
|
|
35
36
|
}),
|
|
36
|
-
placement: "bottom",
|
|
37
37
|
children: /* @__PURE__ */ jsx(Upload, {})
|
|
38
38
|
}
|
|
39
39
|
) }) }),
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
|
-
import { Grid,
|
|
4
|
+
import { Grid, IconButton } from "@mui/material";
|
|
5
5
|
import { RestoreFromTrash, Delete } from "@mui/icons-material";
|
|
6
|
+
import { CustomTooltip } from "../../../tooltip/CustomTooltip.js";
|
|
6
7
|
function DeletableRow({
|
|
7
8
|
alignItems,
|
|
8
9
|
onClick,
|
|
@@ -24,7 +25,7 @@ function DeletableRow({
|
|
|
24
25
|
children: [
|
|
25
26
|
children,
|
|
26
27
|
/* @__PURE__ */ jsx(Grid, { item: true, xs: 1, children: isMouseHover && !disabledDeletion && /* @__PURE__ */ jsx(
|
|
27
|
-
|
|
28
|
+
CustomTooltip,
|
|
28
29
|
{
|
|
29
30
|
title: intl.formatMessage({
|
|
30
31
|
id: deletionMark ? "button.restore" : "DeleteRows"
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Box,
|
|
2
|
+
import { Box, IconButton } from "@mui/material";
|
|
3
3
|
import { useController } from "react-hook-form";
|
|
4
4
|
import { useState, useCallback } from "react";
|
|
5
|
+
import { CustomTooltip } from "../../../tooltip/CustomTooltip.js";
|
|
5
6
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
6
7
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
7
8
|
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
@@ -55,7 +56,7 @@ function DescriptionInput({ name }) {
|
|
|
55
56
|
descriptionLines?.join("\n"),
|
|
56
57
|
" "
|
|
57
58
|
] }) : void 0;
|
|
58
|
-
const icon = /* @__PURE__ */ jsx(
|
|
59
|
+
const icon = /* @__PURE__ */ jsx(CustomTooltip, { title: tooltipBox, children: /* @__PURE__ */ jsx(IconButton, { onClick: handleModifyDescription, sx: styles.coloredButton, children: /* @__PURE__ */ jsx(EditNoteIcon, { empty: !value }) }) });
|
|
59
60
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
60
61
|
openDescModificationDialog && /* @__PURE__ */ jsx(
|
|
61
62
|
DescriptionModificationDialog,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useIntl } from "react-intl";
|
|
3
|
-
import { FormHelperText, Stack,
|
|
3
|
+
import { FormHelperText, Stack, Typography } from "@mui/material";
|
|
4
4
|
import { InfoOutlined, WarningAmberRounded } from "@mui/icons-material";
|
|
5
|
+
import { CustomTooltip } from "../../../tooltip/CustomTooltip.js";
|
|
5
6
|
function HelperPreviousValue({
|
|
6
7
|
previousValue,
|
|
7
8
|
isNodeBuilt,
|
|
@@ -14,11 +15,9 @@ function HelperPreviousValue({
|
|
|
14
15
|
}
|
|
15
16
|
return /* @__PURE__ */ jsx(FormHelperText, { error: false, sx: { marginLeft: 0 }, children: !disabledTooltip ? /* @__PURE__ */ jsxs(Stack, { direction: "row", spacing: 1, sx: { alignItems: "center" }, children: [
|
|
16
17
|
/* @__PURE__ */ jsx(
|
|
17
|
-
|
|
18
|
+
CustomTooltip,
|
|
18
19
|
{
|
|
19
20
|
title: intl.formatMessage({ id: isNodeBuilt ? "builtNodeTooltip" : "notBuiltNodeTooltip" }),
|
|
20
|
-
placement: "right",
|
|
21
|
-
arrow: true,
|
|
22
21
|
PopperProps: {
|
|
23
22
|
modifiers: [
|
|
24
23
|
{
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback, useMemo } from "react";
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
|
-
import { useTheme, Box, IconButton
|
|
4
|
+
import { useTheme, Box, IconButton } from "@mui/material";
|
|
5
5
|
import { KeyboardArrowDown, KeyboardArrowRight } from "@mui/icons-material";
|
|
6
|
+
import { CustomTooltip } from "../../tooltip/CustomTooltip.js";
|
|
6
7
|
import { networkModificationTableStyles, createNameCellLabelBoxSx, createModificationNameCellStyle, createNameCellRootStyle } from "../network-modification-table-styles.js";
|
|
7
8
|
import { DepthBox } from "./depth-box.js";
|
|
8
9
|
import { isCompositeModification } from "../utils.js";
|
|
@@ -64,7 +65,7 @@ function NameCell({ row }) {
|
|
|
64
65
|
children: row.getIsExpanded() ? /* @__PURE__ */ jsx(KeyboardArrowDown, { fontSize: "small" }) : /* @__PURE__ */ jsx(KeyboardArrowRight, { fontSize: "small" })
|
|
65
66
|
}
|
|
66
67
|
) }),
|
|
67
|
-
/* @__PURE__ */ jsx(Box, { sx: createNameCellLabelBoxSx(row.getIsExpanded(), depth), children: /* @__PURE__ */ jsx(
|
|
68
|
+
/* @__PURE__ */ jsx(Box, { sx: createNameCellLabelBoxSx(row.getIsExpanded(), depth), children: /* @__PURE__ */ jsx(CustomTooltip, { disableFocusListener: true, disableTouchListener: true, title: label, children: /* @__PURE__ */ jsx(
|
|
68
69
|
Box,
|
|
69
70
|
{
|
|
70
71
|
sx: mergeSx(
|
package/dist/components/network-modifications/common/activePowerControl/ActivePowerControlForm.js
CHANGED
|
@@ -2,8 +2,9 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import { useWatch } from "react-hook-form";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
5
|
-
import { Box
|
|
5
|
+
import { Box } from "@mui/material";
|
|
6
6
|
import { InfoOutlined } from "@mui/icons-material";
|
|
7
|
+
import { CustomTooltip } from "../../../tooltip/CustomTooltip.js";
|
|
7
8
|
import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
|
|
8
9
|
import "../../../../utils/conversionUtils.js";
|
|
9
10
|
import "../../../../utils/types/equipmentType.js";
|
|
@@ -77,7 +78,7 @@ function ActivePowerControlForm({
|
|
|
77
78
|
}
|
|
78
79
|
);
|
|
79
80
|
const descriptionTooltip = useMemo(
|
|
80
|
-
() => /* @__PURE__ */ jsx(
|
|
81
|
+
() => /* @__PURE__ */ jsx(CustomTooltip, { title: intl.formatMessage({ id: "activePowerControlTooltip" }), children: /* @__PURE__ */ jsx(InfoOutlined, { color: "info", fontSize: "medium" }) }),
|
|
81
82
|
[intl]
|
|
82
83
|
);
|
|
83
84
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Grid, IconButton
|
|
2
|
+
import { Grid, IconButton } from "@mui/material";
|
|
3
3
|
import { ExploreOutlined, ExploreOffOutlined } from "@mui/icons-material";
|
|
4
4
|
import { useState, useCallback, useMemo } from "react";
|
|
5
5
|
import { useWatch } from "react-hook-form";
|
|
6
6
|
import { useIntl } from "react-intl";
|
|
7
|
+
import { CustomTooltip } from "../../../tooltip/CustomTooltip.js";
|
|
7
8
|
import "../../../overflowableText/OverflowableText.js";
|
|
8
9
|
import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
|
|
9
10
|
import "../../../../utils/conversionUtils.js";
|
|
@@ -86,7 +87,7 @@ function PositionForm({
|
|
|
86
87
|
disableRipple: !isNodeBuilt || !voltageLevelForPositionIcon,
|
|
87
88
|
edge: "start",
|
|
88
89
|
children: /* @__PURE__ */ jsx(
|
|
89
|
-
|
|
90
|
+
CustomTooltip,
|
|
90
91
|
{
|
|
91
92
|
title: intl.formatMessage({
|
|
92
93
|
id: getPositionIconTooltipMessageId
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useIntl } from "react-intl";
|
|
3
|
-
import { Grid,
|
|
3
|
+
import { Grid, IconButton } from "@mui/material";
|
|
4
4
|
import { Delete } from "@mui/icons-material";
|
|
5
|
+
import { CustomTooltip } from "../../../../../tooltip/CustomTooltip.js";
|
|
5
6
|
import "../../../../../overflowableText/OverflowableText.js";
|
|
6
7
|
import { FieldConstants } from "../../../../../../utils/constants/fieldConstants.js";
|
|
7
8
|
import "../../../../../../utils/conversionUtils.js";
|
|
@@ -51,7 +52,7 @@ function SubstationCreationSection({
|
|
|
51
52
|
/* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.SUBSTATION_CREATION_ID, label: "SubstationId" }) }),
|
|
52
53
|
/* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.SUBSTATION_NAME, label: "substationName" }) }),
|
|
53
54
|
/* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(CountrySelectionInput, { name: FieldConstants.COUNTRY, label: "Country", size: "small" }) }),
|
|
54
|
-
showDeleteButton && onDelete && /* @__PURE__ */ jsx(Grid, { item: true, xs: 1, children: /* @__PURE__ */ jsx(
|
|
55
|
+
showDeleteButton && onDelete && /* @__PURE__ */ jsx(Grid, { item: true, xs: 1, children: /* @__PURE__ */ jsx(CustomTooltip, { title: intl.formatMessage({ id: "DeleteRows" }), children: /* @__PURE__ */ jsx(IconButton, { onClick: onDelete, children: /* @__PURE__ */ jsx(Delete, {}) }) }) })
|
|
55
56
|
] }),
|
|
56
57
|
/* @__PURE__ */ jsx(PropertiesForm, { id: FieldConstants.SUBSTATION_CREATION, networkElementType: "substation" })
|
|
57
58
|
] });
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useRef, useMemo, useState, useCallback, useLayoutEffect } from "react";
|
|
3
|
-
import { styled,
|
|
3
|
+
import { styled, Box } from "@mui/material";
|
|
4
|
+
import { CustomTooltip } from "../tooltip/CustomTooltip.js";
|
|
4
5
|
import "../../utils/conversionUtils.js";
|
|
5
6
|
import "../../utils/types/equipmentType.js";
|
|
6
7
|
import "@mui/icons-material";
|
|
@@ -81,7 +82,7 @@ const OverflowableText = styled(
|
|
|
81
82
|
};
|
|
82
83
|
const boxSx = mergeSx(isMultiLine ? multilineOverflowStyle(maxLineCount) : overflowStyle.overflow, sx);
|
|
83
84
|
return /* @__PURE__ */ jsx(
|
|
84
|
-
|
|
85
|
+
CustomTooltip,
|
|
85
86
|
{
|
|
86
87
|
title: text || "",
|
|
87
88
|
disableHoverListener: !overflowed,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { TableCell } from "@mui/material";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
|
+
import { CustomTooltip } from "../../../tooltip/CustomTooltip.js";
|
|
4
5
|
import { VOLTAGE_LEVELS_FORM, LIMIT_REDUCTIONS_FORM } from "./columns-definitions.js";
|
|
5
6
|
import "../../../overflowableText/OverflowableText.js";
|
|
6
7
|
import "../../../../utils/conversionUtils.js";
|
|
@@ -43,7 +44,7 @@ function LimitReductionTableCell({
|
|
|
43
44
|
limits
|
|
44
45
|
}) {
|
|
45
46
|
return column.dataKey === VOLTAGE_LEVELS_FORM && limits[rowIndex] ? /* @__PURE__ */ jsx(
|
|
46
|
-
|
|
47
|
+
CustomTooltip,
|
|
47
48
|
{
|
|
48
49
|
title: /* @__PURE__ */ jsx(
|
|
49
50
|
FormattedMessage,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Grid,
|
|
2
|
+
import { Grid, Typography, Chip } from "@mui/material";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
|
+
import { CustomTooltip } from "../../tooltip/CustomTooltip.js";
|
|
4
5
|
import { parametersStyles } from "../parameters-style.js";
|
|
5
6
|
import { ParameterType } from "../../../utils/types/parameters.type.js";
|
|
6
7
|
import "../../overflowableText/OverflowableText.js";
|
|
@@ -103,7 +104,7 @@ function ParameterField({ id, name, type, label, description, possibleValues, sx
|
|
|
103
104
|
}
|
|
104
105
|
};
|
|
105
106
|
return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, paddingTop: 1, justifyContent: "space-between", children: [
|
|
106
|
-
/* @__PURE__ */ jsx(Grid, { item: true, xs: 8, children: /* @__PURE__ */ jsx(
|
|
107
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: 8, children: /* @__PURE__ */ jsx(CustomTooltip, { title: description, children: /* @__PURE__ */ jsx(Typography, { sx: parametersStyles.parameterName, children: label ? /* @__PURE__ */ jsx(FormattedMessage, { id: label }) : name }) }, name) }),
|
|
107
108
|
/* @__PURE__ */ jsx(Grid, { item: true, container: true, xs: 4, sx: parametersStyles.controlItem, children: renderField() }),
|
|
108
109
|
/* @__PURE__ */ jsx(LineSeparator, {})
|
|
109
110
|
] }, name);
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { TableContainer, Table, TableHead, TableRow, TableCell, Box,
|
|
2
|
+
import { TableContainer, Table, TableHead, TableRow, TableCell, Box, IconButton, TableBody } from "@mui/material";
|
|
3
3
|
import { AddCircle } from "@mui/icons-material";
|
|
4
4
|
import { useRef, useCallback } from "react";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
6
|
import { useFormContext } from "react-hook-form";
|
|
7
|
+
import { CustomTooltip } from "../../../tooltip/CustomTooltip.js";
|
|
7
8
|
import { TableRowComponent } from "./table-row.js";
|
|
8
9
|
import { MAX_ROWS_NUMBER } from "./constants.js";
|
|
9
10
|
function ParameterTable({
|
|
@@ -67,7 +68,7 @@ function ParameterTable({
|
|
|
67
68
|
/* @__PURE__ */ jsx(TableHead, { children: /* @__PURE__ */ jsxs(TableRow, { children: [
|
|
68
69
|
columnsDefinition.map((column) => /* @__PURE__ */ jsx(TableCell, { sx: { width: column.width, textAlign: "center" }, children: /* @__PURE__ */ jsx(Box, { children: column.label }) }, column.dataKey)),
|
|
69
70
|
/* @__PURE__ */ jsx(TableCell, { sx: { width: "5rem", textAlign: "center" }, children: /* @__PURE__ */ jsx(
|
|
70
|
-
|
|
71
|
+
CustomTooltip,
|
|
71
72
|
{
|
|
72
73
|
title: intl.formatMessage({
|
|
73
74
|
id: "AddRows"
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { TableRow, TableCell,
|
|
2
|
+
import { TableRow, TableCell, IconButton } from "@mui/material";
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { useIntl } from "react-intl";
|
|
5
5
|
import { Delete } from "@mui/icons-material";
|
|
6
|
+
import { CustomTooltip } from "../../../tooltip/CustomTooltip.js";
|
|
6
7
|
import EditableTableCell from "./table-cell.js";
|
|
7
8
|
function TableRowComponent({
|
|
8
9
|
arrayFormName,
|
|
@@ -25,7 +26,7 @@ function TableRowComponent({
|
|
|
25
26
|
(column) => EditableTableCell(arrayFormName, index, column, handleCellChanged)
|
|
26
27
|
),
|
|
27
28
|
!disableDelete && /* @__PURE__ */ jsx(TableCell, { sx: { width: "5rem", textAlign: "center" }, children: isHover && /* @__PURE__ */ jsx(
|
|
28
|
-
|
|
29
|
+
CustomTooltip,
|
|
29
30
|
{
|
|
30
31
|
title: intl.formatMessage({
|
|
31
32
|
id: "DeleteRows"
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Grid, Typography
|
|
2
|
+
import { Grid, Typography } from "@mui/material";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
4
|
import { useFieldArray, useFormContext } from "react-hook-form";
|
|
5
5
|
import { Info } from "@mui/icons-material";
|
|
6
6
|
import { useRef, useMemo, useCallback } from "react";
|
|
7
|
+
import { CustomTooltip } from "../../../tooltip/CustomTooltip.js";
|
|
7
8
|
import { DndTable } from "../../../dnd-table-v2/dnd-table.js";
|
|
8
9
|
import { getDefaultRowData } from "../../../dnd-table-v2/dnd-table-utils.js";
|
|
9
10
|
import "../../../overflowableText/OverflowableText.js";
|
|
@@ -92,10 +93,9 @@ function ParameterTableField({
|
|
|
92
93
|
label && /* @__PURE__ */ jsxs(Grid, { container: true, alignItems: "center", paddingBottom: 2, paddingTop: 2, children: [
|
|
93
94
|
/* @__PURE__ */ jsx(Typography, { component: "span", variant: "h6", children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
|
|
94
95
|
tooltipProps && /* @__PURE__ */ jsx(
|
|
95
|
-
|
|
96
|
+
CustomTooltip,
|
|
96
97
|
{
|
|
97
98
|
title: typeof title === "string" ? /* @__PURE__ */ jsx(FormattedMessage, { id: title }) : title,
|
|
98
|
-
placement: "right-start",
|
|
99
99
|
sx: { marginLeft: 1 },
|
|
100
100
|
...otherTooltipProps,
|
|
101
101
|
children: /* @__PURE__ */ jsx(Info, {})
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { TableContainer, Table, TableHead, TableRow,
|
|
2
|
+
import { TableContainer, Table, TableHead, TableRow, TableCell, TableBody } from "@mui/material";
|
|
3
3
|
import { useFieldArray } from "react-hook-form";
|
|
4
|
+
import { CustomTooltip } from "../../../tooltip/CustomTooltip.js";
|
|
4
5
|
import { LIMIT_REDUCTIONS_FORM } from "../limitreductions/columns-definitions.js";
|
|
5
6
|
import { LimitReductionTableRow } from "../limitreductions/limit-reduction-table-row.js";
|
|
6
7
|
import { CustomVoltageLevelTableRow } from "./custom-voltage-level-table-row.js";
|
|
@@ -22,7 +23,7 @@ function CustomVoltageLevelTable({
|
|
|
22
23
|
border: "solid 0px rgba(0,0,0,0.1)"
|
|
23
24
|
},
|
|
24
25
|
children: /* @__PURE__ */ jsxs(Table, { stickyHeader: true, size: "small", sx: { tableLayout: "fixed" }, children: [
|
|
25
|
-
/* @__PURE__ */ jsx(TableHead, { children: /* @__PURE__ */ jsx(TableRow, { children: columnsDefinition.map((column) => /* @__PURE__ */ jsx(
|
|
26
|
+
/* @__PURE__ */ jsx(TableHead, { children: /* @__PURE__ */ jsx(TableRow, { children: columnsDefinition.map((column) => /* @__PURE__ */ jsx(CustomTooltip, { title: column.tooltip, children: /* @__PURE__ */ jsx(
|
|
26
27
|
TableCell,
|
|
27
28
|
{
|
|
28
29
|
sx: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid } from "@mui/material";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
|
+
import { CustomTooltip } from "../../../tooltip/CustomTooltip.js";
|
|
4
5
|
import "../../../overflowableText/OverflowableText.js";
|
|
5
6
|
import "../../../../utils/conversionUtils.js";
|
|
6
7
|
import "../../../../utils/types/equipmentType.js";
|
|
@@ -49,7 +50,7 @@ function ParameterFloat({
|
|
|
49
50
|
/* @__PURE__ */ jsx(Grid, { item: true, xs: inputSize, children: /* @__PURE__ */ jsx(FloatInput, { name, adornment }) })
|
|
50
51
|
] });
|
|
51
52
|
if (tooltip) {
|
|
52
|
-
return /* @__PURE__ */ jsx(
|
|
53
|
+
return /* @__PURE__ */ jsx(CustomTooltip, { title: /* @__PURE__ */ jsx(FormattedMessage, { id: tooltip }), children: content });
|
|
53
54
|
}
|
|
54
55
|
return content;
|
|
55
56
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Grid,
|
|
2
|
+
import { Grid, IconButton } from "@mui/material";
|
|
3
3
|
import { AddCircle, Delete } from "@mui/icons-material";
|
|
4
4
|
import { useCallback } from "react";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
|
+
import { CustomTooltip } from "../../../../tooltip/CustomTooltip.js";
|
|
6
7
|
function GridButtons({ onAddButton, onDeleteButton, disabledAdd, disabledDelete }) {
|
|
7
8
|
const intl = useIntl();
|
|
8
9
|
const handleAddButton = useCallback(() => {
|
|
@@ -13,22 +14,20 @@ function GridButtons({ onAddButton, onDeleteButton, disabledAdd, disabledDelete
|
|
|
13
14
|
}, [onDeleteButton]);
|
|
14
15
|
return /* @__PURE__ */ jsxs(Grid, { container: true, item: true, xs: true, spacing: 1, sx: { justifyContent: "flex-end", alignItems: "flex-end" }, children: [
|
|
15
16
|
/* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
|
|
16
|
-
|
|
17
|
+
CustomTooltip,
|
|
17
18
|
{
|
|
18
19
|
title: intl.formatMessage({
|
|
19
20
|
id: "AddRows"
|
|
20
21
|
}),
|
|
21
|
-
placement: "top",
|
|
22
22
|
children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(IconButton, { color: "primary", onClick: () => handleAddButton(), disabled: disabledAdd, children: /* @__PURE__ */ jsx(AddCircle, {}) }) })
|
|
23
23
|
}
|
|
24
24
|
) }),
|
|
25
25
|
/* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
|
|
26
|
-
|
|
26
|
+
CustomTooltip,
|
|
27
27
|
{
|
|
28
28
|
title: intl.formatMessage({
|
|
29
29
|
id: "DeleteRows"
|
|
30
30
|
}),
|
|
31
|
-
placement: "top",
|
|
32
31
|
children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(IconButton, { color: "primary", onClick: () => handleDeleteButton(), disabled: disabledDelete, children: /* @__PURE__ */ jsx(Delete, {}) }) })
|
|
33
32
|
}
|
|
34
33
|
) })
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useTheme, Dialog, DialogTitle, Typography, DialogContent, Grid,
|
|
2
|
+
import { useTheme, Dialog, DialogTitle, Typography, DialogContent, Grid, IconButton, DialogActions, Button } from "@mui/material";
|
|
3
3
|
import { useRef, useCallback } from "react";
|
|
4
4
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
5
5
|
import { ArrowCircleRight, ArrowCircleLeft } from "@mui/icons-material";
|
|
6
|
+
import { CustomTooltip } from "../../../../tooltip/CustomTooltip.js";
|
|
6
7
|
import CurvePreview from "./curve-preview.js";
|
|
7
8
|
import CurveSelector from "./curve-selector.js";
|
|
8
9
|
import { mergeSx } from "../../../../../utils/styles.js";
|
|
@@ -75,12 +76,11 @@ function CurveSelectorDialog({
|
|
|
75
76
|
) }),
|
|
76
77
|
/* @__PURE__ */ jsxs(Grid, { item: true, container: true, direction: "column", justifyContent: "center", alignItems: "center", xs: 0.5, children: [
|
|
77
78
|
/* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
|
|
78
|
-
|
|
79
|
+
CustomTooltip,
|
|
79
80
|
{
|
|
80
81
|
title: intl.formatMessage({
|
|
81
82
|
id: "AddRows"
|
|
82
83
|
}),
|
|
83
|
-
placement: "top",
|
|
84
84
|
children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(
|
|
85
85
|
IconButton,
|
|
86
86
|
{
|
|
@@ -93,12 +93,11 @@ function CurveSelectorDialog({
|
|
|
93
93
|
}
|
|
94
94
|
) }),
|
|
95
95
|
/* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
|
|
96
|
-
|
|
96
|
+
CustomTooltip,
|
|
97
97
|
{
|
|
98
98
|
title: intl.formatMessage({
|
|
99
99
|
id: "DeleteRows"
|
|
100
100
|
}),
|
|
101
|
-
placement: "top",
|
|
102
101
|
children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(
|
|
103
102
|
IconButton,
|
|
104
103
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { User } from 'oidc-client';
|
|
2
|
+
import { User } from 'oidc-client-ts';
|
|
3
3
|
import { UseNetworkVisualizationParametersFormReturn } from './use-network-visualizations-parameters-form';
|
|
4
4
|
interface NetworkVisualizationParametersFormProps {
|
|
5
5
|
networkVisuMethods: UseNetworkVisualizationParametersFormReturn;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UUID } from 'node:crypto';
|
|
2
|
-
import { User } from 'oidc-client';
|
|
2
|
+
import { User } from 'oidc-client-ts';
|
|
3
3
|
import { NetworkVisualizationParameters } from './network-visualizations.types';
|
|
4
4
|
export declare function NetworkVisualizationParametersInline({ studyUuid, setHaveDirtyFields, user, parameters, }: Readonly<{
|
|
5
5
|
studyUuid: UUID | null;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Grid, Typography
|
|
2
|
+
import { Grid, Typography } from "@mui/material";
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
4
|
import { Info } from "@mui/icons-material";
|
|
5
|
+
import { CustomTooltip } from "../../tooltip/CustomTooltip.js";
|
|
5
6
|
import { parametersStyles } from "../parameters-style.js";
|
|
6
7
|
import "../../overflowableText/OverflowableText.js";
|
|
7
8
|
import "../../../utils/conversionUtils.js";
|
|
@@ -84,7 +85,7 @@ function SecurityAnalysisFields({
|
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
87
|
) }),
|
|
87
|
-
/* @__PURE__ */ jsx(
|
|
88
|
+
/* @__PURE__ */ jsx(CustomTooltip, { title: intl.formatMessage({ id: tooltipInfoId }), children: /* @__PURE__ */ jsx(Info, {}) })
|
|
88
89
|
] });
|
|
89
90
|
}
|
|
90
91
|
const fieldsToShow = [
|
|
@@ -130,11 +131,10 @@ function ViolationsHidingParameters() {
|
|
|
130
131
|
id: "securityAnalysis.violationsHiding"
|
|
131
132
|
}) }),
|
|
132
133
|
/* @__PURE__ */ jsx(
|
|
133
|
-
|
|
134
|
+
CustomTooltip,
|
|
134
135
|
{
|
|
135
136
|
sx: parametersStyles.tooltip,
|
|
136
137
|
title: intl.formatMessage({ id: "securityAnalysis.toolTip.violationsHiding" }),
|
|
137
|
-
placement: "left-start",
|
|
138
138
|
children: /* @__PURE__ */ jsx(Info, {})
|
|
139
139
|
}
|
|
140
140
|
)
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { TableRow, TableCell,
|
|
2
|
+
import { TableRow, TableCell, IconButton } from "@mui/material";
|
|
3
3
|
import { Delete } from "@mui/icons-material";
|
|
4
4
|
import { useWatch } from "react-hook-form";
|
|
5
5
|
import { useState } from "react";
|
|
6
6
|
import { FormattedMessage } from "react-intl";
|
|
7
|
+
import { CustomTooltip } from "../../tooltip/CustomTooltip.js";
|
|
7
8
|
import { SHORT_CIRCUIT_ICC_CLUSTER_ACTIVE } from "./columns-definition.js";
|
|
8
9
|
import { ShortCircuitIccClusterTableCell } from "./short-circuit-icc-cluster-table-cell.js";
|
|
9
10
|
function ShortCircuitIccClusterTableRow({
|
|
@@ -27,7 +28,7 @@ function ShortCircuitIccClusterTableRow({
|
|
|
27
28
|
},
|
|
28
29
|
`${column.dataKey}`
|
|
29
30
|
)),
|
|
30
|
-
/* @__PURE__ */ jsx(TableCell, { align: "center", children: isHover && /* @__PURE__ */ jsx(
|
|
31
|
+
/* @__PURE__ */ jsx(TableCell, { align: "center", children: isHover && /* @__PURE__ */ jsx(CustomTooltip, { title: /* @__PURE__ */ jsx(FormattedMessage, { id: "DeleteRows" }), children: /* @__PURE__ */ jsx(IconButton, { size: "small", onClick: () => onDeleteButton(index), children: /* @__PURE__ */ jsx(Delete, { fontSize: "small" }) }) }) })
|
|
31
32
|
] });
|
|
32
33
|
}
|
|
33
34
|
export {
|