@gridsuite/commons-ui 0.205.0 → 0.207.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/index.d.ts +1 -5
- package/dist/components/dnd-table/index.js +8 -6
- 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 +4 -3
- 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 +9 -5
- 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/contingency-table/columns-definitions.d.ts +1 -1
- package/dist/components/parameters/common/contingency-table/types.d.ts +1 -1
- 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.d.ts +1 -1
- 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/sensi/columns-definitions.d.ts +1 -1
- 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/use-voltage-init-parameters-form.js +1 -1
- package/dist/components/parameters/voltage-init/voltage-init-form-utils.js +1 -1
- 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 +9 -5
- package/dist/redux/actions/authActions.d.ts +1 -1
- package/dist/redux/commonStore.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Grid,
|
|
2
|
+
import { Grid, IconButton } from "@mui/material";
|
|
3
3
|
import { AddCircle, Delete, ArrowUpward, ArrowDownward } from "@mui/icons-material";
|
|
4
4
|
import { useWatch } from "react-hook-form";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
|
+
import { CustomTooltip } from "../tooltip/CustomTooltip.js";
|
|
6
7
|
import { SELECTED } from "./dnd-table.type.js";
|
|
7
8
|
function DndTableBottomRightButtons({
|
|
8
9
|
arrayFormName,
|
|
@@ -23,12 +24,11 @@ function DndTableBottomRightButtons({
|
|
|
23
24
|
const lastRowSelected = noRowsSelected ? void 0 : currentRows[currentRows.length - 1]?.[SELECTED];
|
|
24
25
|
return /* @__PURE__ */ jsxs(Grid, { container: true, item: true, xs: true, spacing: 1, sx: { justifyContent: "flex-end" }, children: [
|
|
25
26
|
/* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
|
|
26
|
-
|
|
27
|
+
CustomTooltip,
|
|
27
28
|
{
|
|
28
29
|
title: intl.formatMessage({
|
|
29
30
|
id: "DndAddRows"
|
|
30
31
|
}),
|
|
31
|
-
placement: "top",
|
|
32
32
|
children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(
|
|
33
33
|
IconButton,
|
|
34
34
|
{
|
|
@@ -41,12 +41,11 @@ function DndTableBottomRightButtons({
|
|
|
41
41
|
}
|
|
42
42
|
) }),
|
|
43
43
|
/* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
|
|
44
|
-
|
|
44
|
+
CustomTooltip,
|
|
45
45
|
{
|
|
46
46
|
title: intl.formatMessage({
|
|
47
47
|
id: "DndDeleteRows"
|
|
48
48
|
}),
|
|
49
|
-
placement: "top",
|
|
50
49
|
children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(
|
|
51
50
|
IconButton,
|
|
52
51
|
{
|
|
@@ -60,12 +59,11 @@ function DndTableBottomRightButtons({
|
|
|
60
59
|
) }),
|
|
61
60
|
showMoveArrow && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
62
61
|
/* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
|
|
63
|
-
|
|
62
|
+
CustomTooltip,
|
|
64
63
|
{
|
|
65
64
|
title: intl.formatMessage({
|
|
66
65
|
id: "MoveUpRows"
|
|
67
66
|
}),
|
|
68
|
-
placement: "top",
|
|
69
67
|
children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(
|
|
70
68
|
IconButton,
|
|
71
69
|
{
|
|
@@ -78,12 +76,11 @@ function DndTableBottomRightButtons({
|
|
|
78
76
|
}
|
|
79
77
|
) }),
|
|
80
78
|
/* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
|
|
81
|
-
|
|
79
|
+
CustomTooltip,
|
|
82
80
|
{
|
|
83
81
|
title: intl.formatMessage({
|
|
84
82
|
id: "MoveDownRows"
|
|
85
83
|
}),
|
|
86
|
-
placement: "top",
|
|
87
84
|
children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(
|
|
88
85
|
IconButton,
|
|
89
86
|
{
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { TableCell } from "@mui/material";
|
|
3
3
|
import { DragIndicator } from "@mui/icons-material";
|
|
4
4
|
import { useIntl } from "react-intl";
|
|
5
|
+
import { CustomTooltip } from "../tooltip/CustomTooltip.js";
|
|
5
6
|
import { CheckboxInput } from "../inputs/reactHookForm/booleans/CheckboxInput.js";
|
|
6
7
|
import { SELECTED, DndColumnType } from "./dnd-table.type.js";
|
|
7
8
|
import "../overflowableText/OverflowableText.js";
|
|
@@ -140,12 +141,11 @@ function DndTableRow({
|
|
|
140
141
|
disabledDeletion: disabledDeletion || multiselect,
|
|
141
142
|
children: [
|
|
142
143
|
!disableDragAndDrop && /* @__PURE__ */ jsx(
|
|
143
|
-
|
|
144
|
+
CustomTooltip,
|
|
144
145
|
{
|
|
145
146
|
title: intl.formatMessage({
|
|
146
147
|
id: "DragAndDrop"
|
|
147
148
|
}),
|
|
148
|
-
placement: "right",
|
|
149
149
|
children: /* @__PURE__ */ jsx(
|
|
150
150
|
TableCell,
|
|
151
151
|
{
|
|
@@ -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";
|
|
@@ -49,7 +50,7 @@ const styles = {
|
|
|
49
50
|
display: "inline-flex",
|
|
50
51
|
justifyContent: "space-between",
|
|
51
52
|
alignItems: "center",
|
|
52
|
-
|
|
53
|
+
marginLeft: 1,
|
|
53
54
|
textTransform: "none"
|
|
54
55
|
}
|
|
55
56
|
};
|
|
@@ -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
|
@@ -29,11 +29,12 @@ import { initializeDirectory } from "./dialogs/elementSaveDialog/utils.js";
|
|
|
29
29
|
import { ModifyElementSelection } from "./dialogs/modifyElementSelection/ModifyElementSelection.js";
|
|
30
30
|
import { PopupConfirmationDialog } from "./dialogs/popupConfirmationDialog/PopupConfirmationDialog.js";
|
|
31
31
|
import { DirectoryItemSelector } from "./directoryItemSelector/DirectoryItemSelector.js";
|
|
32
|
-
import { DndTable } from "./dnd-table/dnd-table.js";
|
|
33
|
-
import { DndColumnType, MAX_ROWS_NUMBER, SELECTED } from "./dnd-table/dnd-table.type.js";
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
32
|
+
import { DndTable } from "./dnd-table-v2/dnd-table.js";
|
|
33
|
+
import { DndColumnType, MAX_ROWS_NUMBER, SELECTED } from "./dnd-table-v2/dnd-table.type.js";
|
|
34
|
+
import { getDefaultRowData } from "./dnd-table-v2/dnd-table-utils.js";
|
|
35
|
+
import { DndTableAddRowsDialog } from "./dnd-table-v2/dnd-table-add-rows-dialog.js";
|
|
36
|
+
import { DndTableBottomLeftButtons } from "./dnd-table-v2/dnd-table-bottom-left-buttons.js";
|
|
37
|
+
import { DndTableBottomRightButtons } from "./dnd-table-v2/dnd-table-bottom-right-buttons.js";
|
|
37
38
|
import { EquipmentItem } from "./elementSearch/elementItem/EquipmentItem.js";
|
|
38
39
|
import { ElementSearchDialog } from "./elementSearch/elementSearchDialog/ElementSearchDialog.js";
|
|
39
40
|
import { ElementSearchInput } from "./elementSearch/elementSearchInput/ElementSearchInput.js";
|
|
@@ -55,6 +56,7 @@ import { CONTINGENCY_LIST_EQUIPMENTS, FILTER_EQUIPMENTS } from "./filter/utils/f
|
|
|
55
56
|
import { FlatParameters, extractDefault } from "./flatParameters/FlatParameters.js";
|
|
56
57
|
import "react/jsx-runtime";
|
|
57
58
|
import "@mui/material";
|
|
59
|
+
import { CustomTooltip } from "./tooltip/CustomTooltip.js";
|
|
58
60
|
import "react-intl";
|
|
59
61
|
import { SelectClearable } from "./inputs/SelectClearable.js";
|
|
60
62
|
import { OverflowableChip } from "./inputs/reactHookForm/OverflowableChip.js";
|
|
@@ -347,6 +349,7 @@ export {
|
|
|
347
349
|
CustomMuiDialog,
|
|
348
350
|
CustomNestedMenuItem,
|
|
349
351
|
CustomReactQueryBuilder,
|
|
352
|
+
CustomTooltip,
|
|
350
353
|
CustomVoltageLevelTable,
|
|
351
354
|
CustomVoltageLevelTableCell,
|
|
352
355
|
CustomVoltageLevelTableRow,
|
|
@@ -745,6 +748,7 @@ export {
|
|
|
745
748
|
getContingencyListsInfosFormSchema,
|
|
746
749
|
getCreateSwitchesEmptyFormData,
|
|
747
750
|
getCreateSwitchesValidationSchema,
|
|
751
|
+
getDefaultRowData,
|
|
748
752
|
getExpertFilterEmptyFormData,
|
|
749
753
|
getExplicitNamingFilterEmptyFormData,
|
|
750
754
|
getFilledPropertiesFromModification,
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
import { FieldValues } from 'react-hook-form';
|
|
2
2
|
import { default as yup } from '../../../../utils/yupConfig';
|
|
3
3
|
import { ContingencyListsInfos } from './types';
|
|
4
|
-
import { DndColumn } from '../../../dnd-table
|
|
4
|
+
import { DndColumn } from '../../../dnd-table';
|
|
5
5
|
export declare const COLUMNS_DEFINITIONS_CONTINGENCY_LISTS_INFOS: DndColumn[];
|
|
6
6
|
export declare const getContingencyListsInfosFormSchema: () => yup.ObjectSchema<{
|
|
7
7
|
contingencyListsInfos: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UUID } from 'node:crypto';
|
|
2
|
-
import { ACTIVATED, DESCRIPTION, ID, NAME } from '../parameter-table/constants';
|
|
2
|
+
import { ACTIVATED, DESCRIPTION, ID, NAME } from '../parameter-table-field/constants';
|
|
3
3
|
import { CONTINGENCY_LISTS } from '../constants';
|
|
4
4
|
export interface IdName {
|
|
5
5
|
[ID]: UUID;
|
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
import { SxProps, TooltipProps } from '@mui/material';
|
|
2
2
|
import { FieldValues } from 'react-hook-form';
|
|
3
|
-
import { DndTableProps } from '../../../dnd-table
|
|
3
|
+
import { DndTableProps } from '../../../dnd-table';
|
|
4
4
|
export type ParameterDndTableFieldProps = {
|
|
5
5
|
label?: string;
|
|
6
6
|
tooltipProps?: Omit<TooltipProps, 'children'>;
|
|
@@ -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
|
}
|