@gridsuite/commons-ui 0.204.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/dialogs/elementSaveDialog/ElementSaveDialog.js +1 -0
- package/dist/components/dnd-table/dnd-table-add-rows-dialog.js +1 -0
- 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 +4 -3
- package/dist/components/dnd-table-v2/deletable-table-row.js +3 -2
- package/dist/components/dnd-table-v2/dnd-table-add-rows-dialog.js +1 -0
- 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 -2
- package/dist/components/filter/HeaderFilterForm.js +1 -0
- package/dist/components/filter/expert/ExpertFilterForm.js +1 -0
- package/dist/components/filter/explicitNaming/ExplicitNamingFilterForm.js +1 -0
- package/dist/components/flatParameters/FlatParameters.js +3 -3
- package/dist/components/grid/grid-item.d.ts +2 -2
- package/dist/components/grid/grid-item.js +3 -2
- package/dist/components/icons/ArrowsInputIcon.d.ts +2 -0
- package/dist/components/icons/ArrowsInputIcon.js +9 -0
- package/dist/components/icons/index.d.ts +1 -0
- package/dist/components/icons/index.js +2 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +4 -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 +4 -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-modification-table/row/modification-row.js +7 -17
- package/dist/components/network-modifications/by-filter/assignment/assignment/assignment-form.js +1 -0
- package/dist/components/network-modifications/by-filter/assignment/modification-by-assignment-form.js +1 -0
- package/dist/components/network-modifications/by-filter/deletion/ByFilterDeletionForm.js +1 -0
- package/dist/components/network-modifications/common/activePowerControl/ActivePowerControlForm.js +4 -2
- package/dist/components/network-modifications/common/connectivity/ConnectivityForm.js +1 -0
- package/dist/components/network-modifications/common/connectivity/PositionForm.js +4 -2
- package/dist/components/network-modifications/common/connectivity/VoltageLevelConnectivityForm.js +1 -0
- package/dist/components/network-modifications/common/measurements/PowerWithValidityForm.js +1 -0
- package/dist/components/network-modifications/common/properties/PropertiesForm.js +1 -0
- package/dist/components/network-modifications/common/properties/PropertyForm.js +1 -0
- package/dist/components/network-modifications/common/reactiveLimits/ReactiveLimitsForm.js +1 -0
- package/dist/components/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveRowForm.js +1 -0
- package/dist/components/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.js +1 -0
- package/dist/components/network-modifications/common/setpoints/SetPointsForm.js +1 -0
- package/dist/components/network-modifications/common/shortCircuit/ShortCircuitForm.js +1 -0
- package/dist/components/network-modifications/equipmentDeletion/EquipmentDeletionForm.js +1 -0
- package/dist/components/network-modifications/equipmentDeletion/equipmentDeletion.utils.js +1 -0
- package/dist/components/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.js +1 -0
- package/dist/components/network-modifications/generator/generatorDialog.type.d.ts +9 -1
- package/dist/components/network-modifications/generator/modification/generatorModification.types.d.ts +4 -0
- package/dist/components/network-modifications/index.js +1 -0
- package/dist/components/network-modifications/load/common/LoadDialogHeader.js +1 -0
- package/dist/components/network-modifications/load/creation/loadCreation.utils.js +1 -0
- package/dist/components/network-modifications/load/modification/loadModification.utils.js +1 -0
- package/dist/components/network-modifications/substation/creation/SubstationCreationForm.js +1 -0
- package/dist/components/network-modifications/substation/modification/SubstationModificationForm.js +1 -0
- package/dist/components/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +1 -0
- package/dist/components/network-modifications/voltageLevel/creation/index.js +1 -0
- package/dist/components/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.js +1 -0
- package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.js +1 -0
- package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/couplingOmnibus/CouplingOmnibusForm.js +1 -0
- package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js +1 -0
- package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/creation/CreateSwitchesDialog.js +1 -0
- package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/creation/CreateSwitchesForm.js +1 -0
- package/dist/components/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationCreationSection.js +4 -2
- package/dist/components/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.js +1 -0
- package/dist/components/network-modifications/voltageLevel/creation/voltageLevelCreation.utils.js +1 -0
- package/dist/components/network-modifications/voltageLevel/index.js +1 -0
- package/dist/components/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js +1 -0
- package/dist/components/overflowableText/OverflowableText.js +3 -2
- package/dist/components/parameters/common/ProviderParam.js +1 -0
- package/dist/components/parameters/common/contingency-table/columns-definitions.js +1 -0
- package/dist/components/parameters/common/limitreductions/limit-reduction-table-cell.js +4 -2
- package/dist/components/parameters/common/limitreductions/limit-reductions-table-form.js +1 -0
- package/dist/components/parameters/common/name-element-editor/name-element-editor-utils.js +1 -0
- package/dist/components/parameters/common/parameter-field.js +4 -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 +4 -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-cell.js +1 -0
- package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table.js +3 -2
- package/dist/components/parameters/common/widget/parameter-float.js +4 -2
- package/dist/components/parameters/common/widget/parameter-line-directory-items-input.js +1 -0
- package/dist/components/parameters/common/widget/parameter-line-slider.js +1 -0
- package/dist/components/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +1 -0
- package/dist/components/parameters/dynamic-margin-calculation/dynamic-margin-calculation-inline.js +1 -0
- package/dist/components/parameters/dynamic-margin-calculation/loads-variations-parameters.js +1 -0
- package/dist/components/parameters/dynamic-margin-calculation/use-dynamic-margin-calculation-parameters-form.js +1 -0
- package/dist/components/parameters/dynamic-security-analysis/contingency-parameters.js +1 -0
- package/dist/components/parameters/dynamic-security-analysis/dynamic-security-analysis-inline.js +1 -0
- package/dist/components/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +1 -0
- package/dist/components/parameters/dynamic-security-analysis/use-dynamic-security-analysis-parameters-form.js +1 -0
- 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/dynamic-simulation/dynamic-simulation-inline.js +1 -0
- package/dist/components/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +1 -0
- package/dist/components/parameters/dynamic-simulation/use-dynamic-simulation-parameters-form.js +1 -0
- package/dist/components/parameters/loadflow/load-flow-general-parameters.js +1 -0
- package/dist/components/parameters/loadflow/load-flow-parameters-content.js +1 -0
- package/dist/components/parameters/loadflow/load-flow-parameters-dialog.js +1 -0
- package/dist/components/parameters/loadflow/load-flow-parameters-form.js +1 -0
- package/dist/components/parameters/loadflow/load-flow-parameters-header.js +1 -0
- package/dist/components/parameters/loadflow/load-flow-parameters-inline.js +1 -0
- package/dist/components/parameters/loadflow/load-flow-parameters-utils.js +1 -0
- package/dist/components/parameters/loadflow/use-load-flow-parameters-form.js +1 -0
- package/dist/components/parameters/network-visualizations/map-parameters.js +1 -0
- package/dist/components/parameters/network-visualizations/network-area-diagram-parameters.js +1 -0
- package/dist/components/parameters/network-visualizations/network-visualizations-form.d.ts +1 -1
- package/dist/components/parameters/network-visualizations/network-visualizations-form.js +1 -0
- package/dist/components/parameters/network-visualizations/network-visualizations-parameters-dialog.js +1 -0
- package/dist/components/parameters/network-visualizations/network-visualizations-parameters-inline.d.ts +1 -1
- package/dist/components/parameters/network-visualizations/network-visualizations-parameters-inline.js +1 -0
- package/dist/components/parameters/network-visualizations/single-line-diagram-parameters.js +1 -0
- package/dist/components/parameters/network-visualizations/use-network-visualizations-parameters-form.js +1 -0
- package/dist/components/parameters/pcc-min/pcc-min-form-utils.js +1 -0
- package/dist/components/parameters/pcc-min/pcc-min-parameters-dialog.js +1 -0
- package/dist/components/parameters/pcc-min/pcc-min-parameters-form.js +1 -0
- package/dist/components/parameters/pcc-min/pcc-min-parameters-inline.js +1 -0
- package/dist/components/parameters/pcc-min/use-pcc-min-parameters-form.js +1 -0
- package/dist/components/parameters/security-analysis/columns-definitions.js +1 -0
- package/dist/components/parameters/security-analysis/security-analysis-parameters-dialog.js +1 -0
- package/dist/components/parameters/security-analysis/security-analysis-parameters-form.js +1 -0
- package/dist/components/parameters/security-analysis/security-analysis-parameters-inline.js +1 -0
- package/dist/components/parameters/security-analysis/security-analysis-parameters-selector.js +1 -0
- package/dist/components/parameters/security-analysis/security-analysis-violations-hiding.js +5 -4
- package/dist/components/parameters/security-analysis/use-security-analysis-parameters-form.js +1 -0
- package/dist/components/parameters/sensi/columns-definitions.js +1 -0
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-dialog.js +1 -0
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-form.js +1 -0
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-inline.js +1 -0
- package/dist/components/parameters/sensi/sensitivity-parameters-fields.js +1 -0
- package/dist/components/parameters/sensi/sensitivity-parameters-selector.js +1 -0
- package/dist/components/parameters/sensi/use-sensitivity-analysis-parameters.js +1 -0
- package/dist/components/parameters/sensi/utils.js +1 -0
- package/dist/components/parameters/short-circuit/short-circuit-general-tab-panel.js +1 -0
- package/dist/components/parameters/short-circuit/short-circuit-icc-cluster-table-cell.js +1 -0
- 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-cell.js +1 -0
- package/dist/components/parameters/short-circuit/short-circuit-icc-material-table.js +3 -2
- package/dist/components/parameters/short-circuit/short-circuit-parameters-content.js +1 -0
- package/dist/components/parameters/short-circuit/short-circuit-parameters-dialog.js +1 -0
- package/dist/components/parameters/short-circuit/short-circuit-parameters-form.js +1 -0
- package/dist/components/parameters/short-circuit/short-circuit-parameters-inline.js +1 -0
- package/dist/components/parameters/short-circuit/short-circuit-parameters-utils.js +1 -0
- package/dist/components/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +1 -0
- package/dist/components/parameters/short-circuit/short-circuit-study-area-tab-panel.js +1 -0
- package/dist/components/parameters/short-circuit/use-short-circuit-parameters-form.js +1 -0
- package/dist/components/parameters/voltage-init/equipment-selection-parameters.js +1 -0
- package/dist/components/parameters/voltage-init/general-parameters.js +1 -0
- package/dist/components/parameters/voltage-init/use-voltage-init-parameters-form.js +1 -0
- package/dist/components/parameters/voltage-init/voltage-init-form-utils.js +1 -0
- package/dist/components/parameters/voltage-init/voltage-init-parameters-dialog.js +1 -0
- package/dist/components/parameters/voltage-init/voltage-init-parameters-form.js +1 -0
- package/dist/components/parameters/voltage-init/voltage-init-parameters-inline.js +1 -0
- package/dist/components/parameters/voltage-init/voltage-limits-parameters.js +4 -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.d.ts +1 -1
- package/dist/components/topBar/AboutDialog.js +18 -12
- 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 +6 -1
- package/dist/redux/actions/authActions.d.ts +1 -1
- package/dist/redux/commonStore.d.ts +1 -1
- package/dist/utils/constants/notificationsProvider.d.ts +3 -1
- package/dist/utils/constants/notificationsProvider.js +3 -0
- package/dist/utils/index.js +2 -1
- package/package.json +8 -8
|
@@ -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";
|
|
@@ -32,6 +33,7 @@ import "react-csv-downloader";
|
|
|
32
33
|
import "../inputs/reactHookForm/numbers/RangeInput.js";
|
|
33
34
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
34
35
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
36
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
35
37
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
36
38
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
37
39
|
import "../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
@@ -264,7 +266,7 @@ function DndTable(props) {
|
|
|
264
266
|
column.dataKey
|
|
265
267
|
)),
|
|
266
268
|
!disableAddingRows && !multiselect && /* @__PURE__ */ jsx(TableCell, { sx: { width: "5rem", textAlign: "center" }, children: /* @__PURE__ */ jsx(
|
|
267
|
-
|
|
269
|
+
CustomTooltip,
|
|
268
270
|
{
|
|
269
271
|
title: intl.formatMessage({
|
|
270
272
|
id: "AddRows"
|
|
@@ -28,6 +28,7 @@ import { DescriptionField } from "../inputs/reactHookForm/text/DescriptionField.
|
|
|
28
28
|
import { UniqueNameInput } from "../inputs/reactHookForm/text/UniqueNameInput.js";
|
|
29
29
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
30
30
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
31
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
31
32
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
32
33
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
33
34
|
import "../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
@@ -38,6 +38,7 @@ import "react-csv-downloader";
|
|
|
38
38
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
39
39
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
40
40
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
41
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
41
42
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
42
43
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
43
44
|
import "../../inputs/reactHookForm/expandableInput/ExpandableInput.js";
|
|
@@ -40,6 +40,7 @@ import "react-csv-downloader";
|
|
|
40
40
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
41
41
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
42
42
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
43
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
43
44
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
44
45
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
45
46
|
import "../../inputs/reactHookForm/expandableInput/ExpandableInput.js";
|
|
@@ -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,7 @@
|
|
|
1
1
|
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { GridProps } from '@mui/material';
|
|
3
3
|
export interface GridItemProps extends PropsWithChildren {
|
|
4
|
-
size?:
|
|
4
|
+
size?: GridProps['xs'];
|
|
5
5
|
alignItem?: string;
|
|
6
6
|
tooltip?: ReactNode;
|
|
7
7
|
}
|
|
@@ -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
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import ArrowsInput from "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
3
|
+
import { SvgIcon } from "@mui/material";
|
|
4
|
+
function ArrowsInputIcon(props) {
|
|
5
|
+
return /* @__PURE__ */ jsx(SvgIcon, { component: ArrowsInput, inheritViewBox: true, ...props });
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
ArrowsInputIcon
|
|
9
|
+
};
|
|
@@ -6,5 +6,6 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export { LeftPanelOpenIcon } from './LeftPanelOpenIcon';
|
|
8
8
|
export { ArrowsOutputIcon } from './ArrowsOutputIcon';
|
|
9
|
+
export { ArrowsInputIcon } from './ArrowsInputIcon';
|
|
9
10
|
export { LeftPanelCloseIcon } from './LeftPanelCloseIcon';
|
|
10
11
|
export { EditNoteIcon } from './EditNoteIcon';
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { LeftPanelOpenIcon } from "./LeftPanelOpenIcon.js";
|
|
2
2
|
import { ArrowsOutputIcon } from "./ArrowsOutputIcon.js";
|
|
3
|
+
import { ArrowsInputIcon } from "./ArrowsInputIcon.js";
|
|
3
4
|
import { LeftPanelCloseIcon } from "./LeftPanelCloseIcon.js";
|
|
4
5
|
import { EditNoteIcon } from "./EditNoteIcon.js";
|
|
5
6
|
export {
|
|
7
|
+
ArrowsInputIcon,
|
|
6
8
|
ArrowsOutputIcon,
|
|
7
9
|
EditNoteIcon,
|
|
8
10
|
LeftPanelCloseIcon,
|
|
@@ -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";
|
|
@@ -138,6 +139,7 @@ import { useNotificationsListener } from "./notifications/hooks/useNotifications
|
|
|
138
139
|
import { useListenerManager } from "./notifications/hooks/useListenerManager.js";
|
|
139
140
|
import { LeftPanelOpenIcon } from "./icons/LeftPanelOpenIcon.js";
|
|
140
141
|
import { ArrowsOutputIcon } from "./icons/ArrowsOutputIcon.js";
|
|
142
|
+
import { ArrowsInputIcon } from "./icons/ArrowsInputIcon.js";
|
|
141
143
|
import { LeftPanelCloseIcon } from "./icons/LeftPanelCloseIcon.js";
|
|
142
144
|
import { EditNoteIcon } from "./icons/EditNoteIcon.js";
|
|
143
145
|
import { ComputingType, formatComputingTypeLabel, isValidComputingType } from "./parameters/common/computing-type.js";
|
|
@@ -278,6 +280,7 @@ export {
|
|
|
278
280
|
AddButtonMode,
|
|
279
281
|
AnnouncementBanner,
|
|
280
282
|
AnnouncementNotification,
|
|
283
|
+
ArrowsInputIcon,
|
|
281
284
|
ArrowsOutputIcon,
|
|
282
285
|
DataType2 as AssignmentDataType,
|
|
283
286
|
AuthenticationRouter,
|
|
@@ -345,6 +348,7 @@ export {
|
|
|
345
348
|
CustomMuiDialog,
|
|
346
349
|
CustomNestedMenuItem,
|
|
347
350
|
CustomReactQueryBuilder,
|
|
351
|
+
CustomTooltip,
|
|
348
352
|
CustomVoltageLevelTable,
|
|
349
353
|
CustomVoltageLevelTableCell,
|
|
350
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,9 +1,11 @@
|
|
|
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";
|
|
8
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
7
9
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
8
10
|
import { EditNoteIcon } from "../../../icons/EditNoteIcon.js";
|
|
9
11
|
import "../provider/CustomFormProvider.js";
|
|
@@ -54,7 +56,7 @@ function DescriptionInput({ name }) {
|
|
|
54
56
|
descriptionLines?.join("\n"),
|
|
55
57
|
" "
|
|
56
58
|
] }) : void 0;
|
|
57
|
-
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 }) }) });
|
|
58
60
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
59
61
|
openDescModificationDialog && /* @__PURE__ */ jsx(
|
|
60
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(
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback } from "react";
|
|
3
3
|
import { flexRender } from "@tanstack/react-table";
|
|
4
|
-
import { useTheme, TableRow, TableCell,
|
|
4
|
+
import { useTheme, TableRow, TableCell, Box } from "@mui/material";
|
|
5
5
|
import { Draggable } from "@hello-pangea/dnd";
|
|
6
|
-
import {
|
|
6
|
+
import { useIntl } from "react-intl";
|
|
7
7
|
import { BASE_MODIFICATION_TABLE_COLUMNS, AUTO_EXTENSIBLE_COLUMNS } from "../columns-definition.js";
|
|
8
8
|
import { COLUMNS_WITHOUT_BORDER, createCellStyle, createCellContentWrapperSx, createRowSx, networkModificationTableStyles } from "../network-modification-table-styles.js";
|
|
9
9
|
import { isCompositeModification } from "../utils.js";
|
|
@@ -21,6 +21,7 @@ function ModificationRow({
|
|
|
21
21
|
}) {
|
|
22
22
|
const isHighlighted = row.original.uuid === highlightedModificationUuid;
|
|
23
23
|
const theme = useTheme();
|
|
24
|
+
const intl = useIntl();
|
|
24
25
|
const isExpanded = row.getIsExpanded() && row.subRows.length > 0;
|
|
25
26
|
const handleCellClickCallback = useCallback(
|
|
26
27
|
(columnId) => {
|
|
@@ -60,14 +61,15 @@ function ModificationRow({
|
|
|
60
61
|
TableCell,
|
|
61
62
|
{
|
|
62
63
|
sx: createCellStyle(cell, AUTO_EXTENSIBLE_COLUMNS.includes(cell.column.id)),
|
|
63
|
-
children: /* @__PURE__ */ jsx(
|
|
64
|
+
children: /* @__PURE__ */ jsx(
|
|
64
65
|
Box,
|
|
65
66
|
{
|
|
66
67
|
sx: createCellContentWrapperSx(theme, cellWithoutBorders),
|
|
67
68
|
...provided.dragHandleProps,
|
|
69
|
+
"aria-label": intl.formatMessage({ id: "moveModification" }),
|
|
68
70
|
children: cellContent
|
|
69
71
|
}
|
|
70
|
-
)
|
|
72
|
+
)
|
|
71
73
|
},
|
|
72
74
|
cell.id
|
|
73
75
|
);
|
|
@@ -78,19 +80,7 @@ function ModificationRow({
|
|
|
78
80
|
{
|
|
79
81
|
sx: createCellStyle(cell, AUTO_EXTENSIBLE_COLUMNS.includes(cell.column.id)),
|
|
80
82
|
onClick: () => handleCellClickCallback(cell.column.id),
|
|
81
|
-
children: /* @__PURE__ */ jsx(
|
|
82
|
-
Tooltip,
|
|
83
|
-
{
|
|
84
|
-
title: /* @__PURE__ */ jsx(
|
|
85
|
-
FormattedMessage,
|
|
86
|
-
{
|
|
87
|
-
id: row.getIsSelected() ? "deselectModification" : "selectModification"
|
|
88
|
-
}
|
|
89
|
-
),
|
|
90
|
-
arrow: true,
|
|
91
|
-
children: /* @__PURE__ */ jsx(Box, { sx: createCellContentWrapperSx(theme, cellWithoutBorders), children: cellContent })
|
|
92
|
-
}
|
|
93
|
-
)
|
|
83
|
+
children: /* @__PURE__ */ jsx(Box, { sx: createCellContentWrapperSx(theme, cellWithoutBorders), children: cellContent })
|
|
94
84
|
},
|
|
95
85
|
cell.id
|
|
96
86
|
);
|
package/dist/components/network-modifications/by-filter/assignment/assignment/assignment-form.js
CHANGED
|
@@ -35,6 +35,7 @@ import { SelectInput } from "../../../../inputs/reactHookForm/selectInputs/Selec
|
|
|
35
35
|
import { TextInput } from "../../../../inputs/reactHookForm/text/TextInput.js";
|
|
36
36
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
37
37
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
38
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
38
39
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
39
40
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
40
41
|
import "../../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
@@ -27,6 +27,7 @@ import "../../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
|
27
27
|
import { SelectWithConfirmationInput } from "../../../inputs/reactHookForm/selectInputs/SelectWithConfirmationInput.js";
|
|
28
28
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
29
29
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
30
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
30
31
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
31
32
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
32
33
|
import "../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
@@ -28,6 +28,7 @@ import { AutocompleteInput } from "../../../inputs/reactHookForm/autocompleteInp
|
|
|
28
28
|
import "../../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
29
29
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
30
30
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
31
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
31
32
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
32
33
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
33
34
|
import "../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
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";
|
|
@@ -27,6 +28,7 @@ import { FloatInput } from "../../../inputs/reactHookForm/numbers/FloatInput.js"
|
|
|
27
28
|
import "../../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
28
29
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
29
30
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
31
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
30
32
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
31
33
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
32
34
|
import "../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
@@ -76,7 +78,7 @@ function ActivePowerControlForm({
|
|
|
76
78
|
}
|
|
77
79
|
);
|
|
78
80
|
const descriptionTooltip = useMemo(
|
|
79
|
-
() => /* @__PURE__ */ jsx(
|
|
81
|
+
() => /* @__PURE__ */ jsx(CustomTooltip, { title: intl.formatMessage({ id: "activePowerControlTooltip" }), children: /* @__PURE__ */ jsx(InfoOutlined, { color: "info", fontSize: "medium" }) }),
|
|
80
82
|
[intl]
|
|
81
83
|
);
|
|
82
84
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -27,6 +27,7 @@ import "../../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
|
27
27
|
import { SelectInput } from "../../../inputs/reactHookForm/selectInputs/SelectInput.js";
|
|
28
28
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
29
29
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
30
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
30
31
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
31
32
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
32
33
|
import "../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
@@ -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";
|
|
@@ -26,6 +27,7 @@ import { IntegerInput } from "../../../inputs/reactHookForm/numbers/IntegerInput
|
|
|
26
27
|
import "../../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
27
28
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
28
29
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
30
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
29
31
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
30
32
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
31
33
|
import "../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
@@ -85,7 +87,7 @@ function PositionForm({
|
|
|
85
87
|
disableRipple: !isNodeBuilt || !voltageLevelForPositionIcon,
|
|
86
88
|
edge: "start",
|
|
87
89
|
children: /* @__PURE__ */ jsx(
|
|
88
|
-
|
|
90
|
+
CustomTooltip,
|
|
89
91
|
{
|
|
90
92
|
title: intl.formatMessage({
|
|
91
93
|
id: getPositionIconTooltipMessageId
|
package/dist/components/network-modifications/common/connectivity/VoltageLevelConnectivityForm.js
CHANGED
|
@@ -28,6 +28,7 @@ import { AutocompleteInput } from "../../../inputs/reactHookForm/autocompleteInp
|
|
|
28
28
|
import "../../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
29
29
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
30
30
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
31
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
31
32
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
32
33
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
33
34
|
import "../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
@@ -28,6 +28,7 @@ import { FloatInput } from "../../../inputs/reactHookForm/numbers/FloatInput.js"
|
|
|
28
28
|
import "../../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
29
29
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
30
30
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
31
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
31
32
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
32
33
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
33
34
|
import "../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
@@ -27,6 +27,7 @@ import "react-csv-downloader";
|
|
|
27
27
|
import "../../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
28
28
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
29
29
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
30
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
30
31
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
31
32
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
32
33
|
import "../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
@@ -26,6 +26,7 @@ import { TextInput } from "../../../inputs/reactHookForm/text/TextInput.js";
|
|
|
26
26
|
import "../../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
27
27
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
28
28
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
29
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
29
30
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
30
31
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
31
32
|
import "../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|