@gridsuite/commons-ui 0.260.0 → 0.261.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.
Files changed (165) hide show
  1. package/dist/components/composite/agGridTable/BottomTableButtons.js +5 -5
  2. package/dist/components/composite/customAGGrid/cell-renderers.js +1 -1
  3. package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-aggrid-text-filter.js +10 -8
  4. package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-filter-icon.js +2 -2
  5. package/dist/components/composite/customAGGrid/custom-aggrid-header.js +9 -9
  6. package/dist/components/composite/customAGGrid/custom-aggrid-menu.js +2 -2
  7. package/dist/components/composite/dnd-table/dnd-table-bottom-left-buttons.js +4 -4
  8. package/dist/components/composite/dnd-table/dnd-table-bottom-right-buttons.js +6 -6
  9. package/dist/components/composite/dnd-table/dnd-table.js +4 -4
  10. package/dist/components/composite/elementSearch/elementSearchInput/ElementSearchInput.js +4 -2
  11. package/dist/components/composite/filter/HeaderFilterForm.js +4 -4
  12. package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js +7 -7
  13. package/dist/components/composite/flatParameters/FlatParameters.js +17 -11
  14. package/dist/components/composite/grid/grid-item.d.ts +4 -4
  15. package/dist/components/composite/grid/grid-item.js +2 -2
  16. package/dist/components/composite/grid/grid-section.js +2 -2
  17. package/dist/components/composite/reactQueryBuilder/PropertyValueEditor.js +5 -5
  18. package/dist/components/composite/reactQueryBuilder/compositeRuleEditor/RuleValueEditor.js +5 -5
  19. package/dist/components/composite/report/QuickSearch.js +31 -29
  20. package/dist/components/composite/report/report-viewer/log-table/log-table.js +2 -2
  21. package/dist/components/ui/csvPicker/csv-picker.js +4 -4
  22. package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +8 -8
  23. package/dist/components/ui/dialogs/modifyElementSelection/ModifyElementSelection.js +3 -3
  24. package/dist/components/ui/dialogs/name-element-editor/name-element-editor-form.js +4 -4
  25. package/dist/components/ui/inputs/SelectClearable.js +3 -1
  26. package/dist/components/ui/inputs/checkbox-autocomplete/checkbox-autocomplete.js +7 -5
  27. package/dist/components/ui/reactHookForm/CheckboxNullableInput.js +4 -2
  28. package/dist/components/ui/reactHookForm/autocompleteInputs/AutocompleteInput.js +3 -1
  29. package/dist/components/ui/reactHookForm/autocompleteInputs/MultipleAutocompleteInput.js +1 -1
  30. package/dist/components/ui/reactHookForm/booleans/BooleanInput.js +1 -1
  31. package/dist/components/ui/reactHookForm/chip-items-input.js +11 -9
  32. package/dist/components/ui/reactHookForm/directory-item-input/directory-item-input.js +5 -5
  33. package/dist/components/ui/reactHookForm/errorManagement/FieldErrorAlert.js +2 -2
  34. package/dist/components/ui/reactHookForm/expandableInput/DeletableRow.js +3 -3
  35. package/dist/components/ui/reactHookForm/expandableInput/ExpandableInput.js +4 -4
  36. package/dist/components/ui/reactHookForm/numbers/RangeInput.js +5 -5
  37. package/dist/components/ui/reactHookForm/readOnly/ButtonReadOnlyInput.js +26 -24
  38. package/dist/components/ui/reactHookForm/readOnly/ReadOnlyInput.js +11 -9
  39. package/dist/components/ui/reactHookForm/selectInputs/CountriesInput.js +2 -2
  40. package/dist/components/ui/reactHookForm/tableInputs/table-numerical-input.js +30 -28
  41. package/dist/components/ui/reactHookForm/tableInputs/table-text-input.js +10 -8
  42. package/dist/components/ui/reactHookForm/text/ExpandingTextField.js +6 -4
  43. package/dist/components/ui/reactHookForm/text/TextInput.js +7 -5
  44. package/dist/components/ui/reactHookForm/text/UniqueNameInput.js +6 -4
  45. package/dist/components/ui/reactHookForm/utils/HelperPreviousValue.js +10 -8
  46. package/dist/components/ui/reactHookForm/utils/TextFieldWithAdornment.js +4 -2
  47. package/dist/components/ui/reactHookForm/utils/functions.js +2 -2
  48. package/dist/features/authentication/AuthenticationRouterErrorDisplay.js +3 -3
  49. package/dist/features/global-filter/ui/global-filter-dropdown-panel.js +8 -8
  50. package/dist/features/global-filter/ui/global-filter-panel.js +35 -29
  51. package/dist/features/network-modification-table/network-modification-table-styles.js +2 -3
  52. package/dist/features/network-modifications/battery/creation/BatteryCreationForm.js +5 -5
  53. package/dist/features/network-modifications/battery/modification/BatteryDialogHeader.js +8 -6
  54. package/dist/features/network-modifications/battery/modification/BatteryDialogTabs.js +4 -2
  55. package/dist/features/network-modifications/battery/modification/BatteryDialogTabsContent.js +6 -6
  56. package/dist/features/network-modifications/battery/modification/BatteryModificationForm.js +4 -4
  57. package/dist/features/network-modifications/by-filter/assignment/modification-by-assignment-form.js +3 -3
  58. package/dist/features/network-modifications/by-filter/deletion/ByFilterDeletionForm.js +4 -4
  59. package/dist/features/network-modifications/by-filter/formula/formula/formula-form.js +2 -2
  60. package/dist/features/network-modifications/by-filter/formula/modification-by-formula-form.js +3 -3
  61. package/dist/features/network-modifications/common/connectivity/ConnectivityForm.js +7 -7
  62. package/dist/features/network-modifications/common/connectivity/PositionForm.js +4 -4
  63. package/dist/features/network-modifications/common/connectivity/VoltageLevelConnectivityForm.js +4 -4
  64. package/dist/features/network-modifications/common/currentLimits/LimitsPane.js +10 -10
  65. package/dist/features/network-modifications/common/currentLimits/limitsEditor/LimitsEditor.js +5 -5
  66. package/dist/features/network-modifications/common/currentLimits/limitsEditor/TemporaryLimitsTable.js +2 -2
  67. package/dist/features/network-modifications/common/currentLimits/operationalLimitsGroups/OperationalLimitsGroups.js +2 -2
  68. package/dist/features/network-modifications/common/measurements/BusbarSectionVoltageMeasurementsForm.js +6 -6
  69. package/dist/features/network-modifications/common/measurements/PowerMeasurementsForm.js +3 -3
  70. package/dist/features/network-modifications/common/measurements/PowerWithValidityForm.js +4 -4
  71. package/dist/features/network-modifications/common/properties/PropertyForm.js +5 -5
  72. package/dist/features/network-modifications/common/reactiveLimits/ReactiveLimitsForm.js +2 -2
  73. package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.js +7 -7
  74. package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.js +4 -4
  75. package/dist/features/network-modifications/common/setpoints/SetPointsForm.js +4 -4
  76. package/dist/features/network-modifications/common/shortCircuit/ShortCircuitForm.js +2 -2
  77. package/dist/features/network-modifications/common/voltageRegulation/VoltageRegulationForm.js +2 -2
  78. package/dist/features/network-modifications/equipmentDeletion/EquipmentDeletionForm.js +5 -5
  79. package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/HvdcLccDeletionSpecificForm.js +4 -4
  80. package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.js +4 -4
  81. package/dist/features/network-modifications/generator/creation/GeneratorCreationForm.js +7 -7
  82. package/dist/features/network-modifications/generator/modification/GeneratorDialogHeader.js +9 -7
  83. package/dist/features/network-modifications/generator/modification/GeneratorDialogTabs.js +4 -2
  84. package/dist/features/network-modifications/generator/modification/GeneratorDialogTabsContent.js +7 -7
  85. package/dist/features/network-modifications/generator/modification/GeneratorModificationForm.js +4 -4
  86. package/dist/features/network-modifications/line/characteristics/LineCharacteristicsPane.js +4 -4
  87. package/dist/features/network-modifications/line/common/LineDialogHeader.js +2 -2
  88. package/dist/features/network-modifications/load/common/LoadDialogHeader.js +9 -7
  89. package/dist/features/network-modifications/load/common/LoadDialogTabs.js +4 -2
  90. package/dist/features/network-modifications/load/common/LoadForm.js +4 -4
  91. package/dist/features/network-modifications/shunt-compensator/common/CharacteristicsForm.js +13 -13
  92. package/dist/features/network-modifications/shunt-compensator/creation/ShuntCompensatorCreationForm.js +9 -9
  93. package/dist/features/network-modifications/shunt-compensator/modification/ShuntCompensatorModificationForm.js +11 -11
  94. package/dist/features/network-modifications/substation/creation/SubstationCreationForm.js +6 -6
  95. package/dist/features/network-modifications/substation/modification/SubstationModificationForm.js +10 -8
  96. package/dist/features/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +10 -8
  97. package/dist/features/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.js +8 -8
  98. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.js +4 -4
  99. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/couplingOmnibus/CouplingOmnibusCreation.js +3 -3
  100. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js +2 -2
  101. package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationCreationSection.js +6 -6
  102. package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.js +5 -5
  103. package/dist/features/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js +23 -19
  104. package/dist/features/parameters/common/line-separator.js +2 -2
  105. package/dist/features/parameters/common/parameter-field.js +6 -6
  106. package/dist/features/parameters/common/parameter-layout/parameter-layout.js +7 -7
  107. package/dist/features/parameters/common/parameter-table-field/parameter-table-field.js +3 -3
  108. package/dist/features/parameters/common/parameters.js +6 -4
  109. package/dist/features/parameters/common/provider-param.js +4 -4
  110. package/dist/features/parameters/common/widget/parameter-float.js +4 -4
  111. package/dist/features/parameters/common/widget/parameter-group.js +2 -2
  112. package/dist/features/parameters/common/widget/parameter-line-directory-items-input.js +4 -4
  113. package/dist/features/parameters/common/widget/parameter-line-slider.d.ts +4 -3
  114. package/dist/features/parameters/common/widget/parameter-line-slider.js +4 -4
  115. package/dist/features/parameters/common/widget/parameter-switch.js +2 -2
  116. package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +4 -4
  117. package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.js +2 -2
  118. package/dist/features/parameters/dynamic-margin-calculation/time-delay-parameters.js +2 -2
  119. package/dist/features/parameters/dynamic-security-analysis/contingency-parameters.js +2 -2
  120. package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +4 -4
  121. package/dist/features/parameters/dynamic-security-analysis/scenario-parameters.js +2 -2
  122. package/dist/features/parameters/dynamic-simulation/curve/common/checkbox-treeview.js +2 -2
  123. package/dist/features/parameters/dynamic-simulation/curve/common/grid-buttons.js +4 -4
  124. package/dist/features/parameters/dynamic-simulation/curve/common/grid-search.js +7 -5
  125. package/dist/features/parameters/dynamic-simulation/curve/curve-parameters.js +5 -5
  126. package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector-dialog.js +5 -5
  127. package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector.js +3 -3
  128. package/dist/features/parameters/dynamic-simulation/curve/dialog/equipment-filter.js +13 -13
  129. package/dist/features/parameters/dynamic-simulation/curve/dialog/model-filter.js +4 -4
  130. package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +4 -4
  131. package/dist/features/parameters/dynamic-simulation/mapping/mapping-parameters.js +2 -2
  132. package/dist/features/parameters/dynamic-simulation/network/network-parameters.js +2 -2
  133. package/dist/features/parameters/dynamic-simulation/solver/solver-parameters.js +2 -2
  134. package/dist/features/parameters/dynamic-simulation/time-delay/time-delay-parameters.js +2 -2
  135. package/dist/features/parameters/loadflow/load-flow-parameters-content.js +3 -3
  136. package/dist/features/parameters/loadflow/load-flow-parameters-dialog.js +2 -2
  137. package/dist/features/parameters/loadflow/load-flow-parameters-form.js +4 -4
  138. package/dist/features/parameters/network-visualizations/map-parameters.js +8 -8
  139. package/dist/features/parameters/network-visualizations/network-area-diagram-parameters.js +4 -4
  140. package/dist/features/parameters/network-visualizations/network-visualizations-parameters-dialog.js +8 -6
  141. package/dist/features/parameters/network-visualizations/single-line-diagram-parameters.js +8 -8
  142. package/dist/features/parameters/pcc-min/pcc-min-parameters-dialog.js +8 -6
  143. package/dist/features/parameters/pcc-min/pcc-min-parameters-form.js +2 -2
  144. package/dist/features/parameters/security-analysis/security-analysis-parameters-dialog.js +8 -6
  145. package/dist/features/parameters/security-analysis/security-analysis-violations-hiding.js +6 -6
  146. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-dialog.js +2 -2
  147. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.js +2 -2
  148. package/dist/features/parameters/sensi/sensitivity-parameters-fields.js +7 -7
  149. package/dist/features/parameters/sensi/sensitivity-parameters-selector.js +2 -2
  150. package/dist/features/parameters/short-circuit/short-circuit-general-tab-panel.js +11 -11
  151. package/dist/features/parameters/short-circuit/short-circuit-parameters-content.js +3 -3
  152. package/dist/features/parameters/short-circuit/short-circuit-parameters-dialog.js +2 -2
  153. package/dist/features/parameters/short-circuit/short-circuit-parameters-form.js +2 -2
  154. package/dist/features/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +5 -5
  155. package/dist/features/parameters/short-circuit/short-circuit-study-area-tab-panel.js +2 -2
  156. package/dist/features/parameters/voltage-init/equipment-selection-parameters.js +4 -4
  157. package/dist/features/parameters/voltage-init/general-parameters.js +2 -2
  158. package/dist/features/parameters/voltage-init/voltage-init-parameters-dialog.js +8 -6
  159. package/dist/features/parameters/voltage-init/voltage-init-parameters-form.js +2 -2
  160. package/dist/features/parameters/voltage-init/voltage-limits-parameters.js +2 -2
  161. package/dist/features/topBar/AboutDialog.js +40 -28
  162. package/dist/features/topBar/TopBar.js +2 -2
  163. package/dist/features/topBar/UserInformationDialog.js +34 -34
  164. package/dist/features/topBar/UserSettingsDialog.js +3 -1
  165. package/package.json +7 -7
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid2 } from "@mui/material";
2
+ import { Grid } from "@mui/material";
3
3
  import { useState, useRef, useCallback, useMemo, useEffect } from "react";
4
4
  import { useWatch } from "react-hook-form";
5
5
  import "@mui/icons-material";
@@ -107,8 +107,8 @@ function VoltageLevelConnectivityForm({
107
107
  setBusOrBusbarSectionOptions([]);
108
108
  }
109
109
  }, [fetchBusesOrBusbarSections, voltageLevelOptions, watchVoltageLevelId]);
110
- return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
111
- /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
110
+ return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
111
+ /* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(
112
112
  AutocompleteInput,
113
113
  {
114
114
  isOptionEqualToValue: areIdsEqual,
@@ -131,7 +131,7 @@ function VoltageLevelConnectivityForm({
131
131
  size: "small"
132
132
  }
133
133
  ) }),
134
- /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
134
+ /* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(
135
135
  AutocompleteInput,
136
136
  {
137
137
  allowNewValue: true,
@@ -1,5 +1,5 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { Grid2, Box, IconButton, lighten } from "@mui/material";
2
+ import { Grid, Box, IconButton } from "@mui/material";
3
3
  import { useState, useMemo, useCallback } from "react";
4
4
  import { useFormContext, useWatch, useFieldArray } from "react-hook-form";
5
5
  import { ControlPoint } from "@mui/icons-material";
@@ -67,7 +67,7 @@ import "../../../../components/composite/report/report-treeview/treeview-item.js
67
67
  import "../../../../components/composite/report/report-viewer/context/report-viewer-context.js";
68
68
  const limitsStyles = {
69
69
  parametersBox: (theme) => ({
70
- backgroundColor: theme.palette.mode === "light" ? theme.palette.background.paper : lighten(theme.palette.background.paper, 0.2),
70
+ backgroundColor: theme.palette.mode === "light" ? theme.palette.background.paper : theme.lighten(theme.palette.background.paper, 0.2),
71
71
  height: "100%",
72
72
  position: "relative",
73
73
  padding: 0
@@ -145,10 +145,10 @@ function LimitsPane({
145
145
  setIndexSelectedLimitSet(0);
146
146
  }, [watchedOperationalLimitsGroups, prependEmptyOperationalLimitsGroup]);
147
147
  return /* @__PURE__ */ jsxs(Fragment, { children: [
148
- /* @__PURE__ */ jsxs(Grid2, { container: true, columns: 6, spacing: 1, sx: { maxWidth: "600px" }, children: [
149
- /* @__PURE__ */ jsx(Grid2, { size: 3, children: /* @__PURE__ */ jsx(GridSection, { title: "SelectedOperationalLimitGroups" }) }),
148
+ /* @__PURE__ */ jsxs(Grid, { container: true, columns: 6, spacing: 1, sx: { maxWidth: "600px" }, children: [
149
+ /* @__PURE__ */ jsx(Grid, { size: 3, children: /* @__PURE__ */ jsx(GridSection, { title: "SelectedOperationalLimitGroups" }) }),
150
150
  /* @__PURE__ */ jsx(
151
- Grid2,
151
+ Grid,
152
152
  {
153
153
  size: 3,
154
154
  sx: {
@@ -169,7 +169,7 @@ function LimitsPane({
169
169
  )
170
170
  }
171
171
  ),
172
- /* @__PURE__ */ jsx(Grid2, { size: 3, children: /* @__PURE__ */ jsx(
172
+ /* @__PURE__ */ jsx(Grid, { size: 3, children: /* @__PURE__ */ jsx(
173
173
  SelectedOperationalLimitGroup,
174
174
  {
175
175
  selectedFormName: `${id}.${FieldConstants.SELECTED_OPERATIONAL_LIMITS_GROUP_ID1}`,
@@ -180,7 +180,7 @@ function LimitsPane({
180
180
  isABranchModif: !!equipmentToModify
181
181
  }
182
182
  ) }),
183
- /* @__PURE__ */ jsx(Grid2, { size: 3, children: /* @__PURE__ */ jsx(
183
+ /* @__PURE__ */ jsx(Grid, { size: 3, children: /* @__PURE__ */ jsx(
184
184
  SelectedOperationalLimitGroup,
185
185
  {
186
186
  selectedFormName: `${id}.${FieldConstants.SELECTED_OPERATIONAL_LIMITS_GROUP_ID2}`,
@@ -192,8 +192,8 @@ function LimitsPane({
192
192
  }
193
193
  ) })
194
194
  ] }),
195
- /* @__PURE__ */ jsxs(Grid2, { container: true, size: 12, columns: 10.25, children: [
196
- /* @__PURE__ */ jsxs(Grid2, { size: 4, children: [
195
+ /* @__PURE__ */ jsxs(Grid, { container: true, size: 12, columns: 10.25, children: [
196
+ /* @__PURE__ */ jsxs(Grid, { size: 4, children: [
197
197
  /* @__PURE__ */ jsxs(
198
198
  Box,
199
199
  {
@@ -220,7 +220,7 @@ function LimitsPane({
220
220
  }
221
221
  )
222
222
  ] }),
223
- /* @__PURE__ */ jsx(Grid2, { size: 6, sx: limitsStyles.parametersBox, marginLeft: 2, children: indexSelectedLimitSet !== null && operationalLimitsGroups.map(
223
+ /* @__PURE__ */ jsx(Grid, { size: 6, sx: limitsStyles.parametersBox, marginLeft: 2, children: indexSelectedLimitSet !== null && operationalLimitsGroups.map(
224
224
  (operationalLimitsGroup, index) => index === indexSelectedLimitSet && /* @__PURE__ */ jsx(
225
225
  LimitsEditor,
226
226
  {
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Box, Grid2 } from "@mui/material";
2
+ import { Box, Grid } from "@mui/material";
3
3
  import { useIntl, FormattedMessage } from "react-intl";
4
4
  import { useMemo, useCallback, useEffect } from "react";
5
5
  import { useFormContext, useController } from "react-hook-form";
@@ -217,7 +217,7 @@ function LimitsEditor({
217
217
  ),
218
218
  name && /* @__PURE__ */ jsxs(Box, { children: [
219
219
  /* @__PURE__ */ jsxs(
220
- Grid2,
220
+ Grid,
221
221
  {
222
222
  container: true,
223
223
  justifyContent: "flex-start",
@@ -225,7 +225,7 @@ function LimitsEditor({
225
225
  spacing: 2,
226
226
  sx: { paddingBottom: 1, paddingTop: 3 },
227
227
  children: [
228
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
228
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
229
229
  TextInput,
230
230
  {
231
231
  name: `${name}.${FieldConstants.NAME}`,
@@ -234,7 +234,7 @@ function LimitsEditor({
234
234
  disabled
235
235
  }
236
236
  ) }),
237
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
237
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
238
238
  SelectInput,
239
239
  {
240
240
  label: "Applicability",
@@ -248,7 +248,7 @@ function LimitsEditor({
248
248
  formProps: { error: !!error?.message }
249
249
  }
250
250
  ) }),
251
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
251
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
252
252
  FloatInput,
253
253
  {
254
254
  name: `${limitsGroupFormName}.${FieldConstants.PERMANENT_LIMIT}`,
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useState, useCallback } from "react";
3
3
  import { useFieldArray } from "react-hook-form";
4
- import { Grid2, TableContainer, Table, TableHead, TableRow, TableCell, Box, IconButton, TableBody } from "@mui/material";
4
+ import { Grid, TableContainer, Table, TableHead, TableRow, TableCell, Box, IconButton, TableBody } from "@mui/material";
5
5
  import { AddCircle, Delete } from "@mui/icons-material";
6
6
  import "react-intl";
7
7
  import "../../../../../components/ui/overflowableText/OverflowableText.js";
@@ -153,7 +153,7 @@ function TemporaryLimitsTable({
153
153
  function renderTableBody() {
154
154
  return /* @__PURE__ */ jsx(TableBody, { children: fields.map((value, index) => renderTableRow(value.id, index)) });
155
155
  }
156
- return /* @__PURE__ */ jsx(Grid2, { container: true, spacing: 1, children: /* @__PURE__ */ jsxs(Grid2, { container: true, size: 12, children: [
156
+ return /* @__PURE__ */ jsx(Grid, { container: true, spacing: 1, children: /* @__PURE__ */ jsxs(Grid, { container: true, size: 12, children: [
157
157
  /* @__PURE__ */ jsx(TableContainer, { children: /* @__PURE__ */ jsxs(Table, { stickyHeader: true, size: "small", padding: "none", children: [
158
158
  renderTableHead(),
159
159
  renderTableBody()
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid2, Tabs, Tab } from "@mui/material";
2
+ import { Grid, Tabs, Tab } from "@mui/material";
3
3
  import { useState, useCallback, useEffect } from "react";
4
4
  import { useWatch } from "react-hook-form";
5
5
  import { LimitsGroupsContextualMenu } from "./LimitsGroupsContextualMenu.js";
@@ -67,7 +67,7 @@ function OperationalLimitsGroups({
67
67
  },
68
68
  [setIndexSelectedLimitSet]
69
69
  );
70
- return /* @__PURE__ */ jsxs(Grid2, { children: [
70
+ return /* @__PURE__ */ jsxs(Grid, { children: [
71
71
  /* @__PURE__ */ jsx(
72
72
  Tabs,
73
73
  {
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useFieldArray } from "react-hook-form";
3
- import { Stack, Grid2 } from "@mui/material";
3
+ import { Stack, Grid } from "@mui/material";
4
4
  import { useIntl, FormattedMessage } from "react-intl";
5
5
  import { VoltageAdornment } from "../../../../utils/constants/adornments.js";
6
6
  import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
@@ -70,7 +70,7 @@ function BusbarSectionVoltageMeasurementsForm({
70
70
  const intl = useIntl();
71
71
  const sortedFields = fields.map((field, i) => ({ ...field, originalIndex: i })).sort((a, b) => a.busbarSectionId.localeCompare(b.busbarSectionId));
72
72
  return /* @__PURE__ */ jsxs(Stack, { spacing: 1, children: [
73
- fields.length === 0 && /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "NoBusbarSectionFound" }) }),
73
+ fields.length === 0 && /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "NoBusbarSectionFound" }) }),
74
74
  sortedFields.map((field) => {
75
75
  const { busbarSectionId: bbsId, originalIndex } = field;
76
76
  const networkBbs = busbarSections.find((b) => b.id === bbsId);
@@ -80,9 +80,9 @@ function BusbarSectionVoltageMeasurementsForm({
80
80
  if (validity != null) {
81
81
  previousValidity = intl.formatMessage({ id: validity ? "ValidMeasurement" : "InvalidMeasurement" });
82
82
  }
83
- return /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, alignItems: "center", children: [
84
- /* @__PURE__ */ jsx(Grid2, { size: 3, children: bbsId }),
85
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
83
+ return /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, alignItems: "center", children: [
84
+ /* @__PURE__ */ jsx(Grid, { size: 3, children: bbsId }),
85
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
86
86
  FloatInput,
87
87
  {
88
88
  name: `${BUSBAR_SECTION_V_MEASUREMENTS}.${originalIndex}.${FieldConstants.VALUE}`,
@@ -92,7 +92,7 @@ function BusbarSectionVoltageMeasurementsForm({
92
92
  clearable: true
93
93
  }
94
94
  ) }),
95
- /* @__PURE__ */ jsx(Grid2, { size: 3, children: /* @__PURE__ */ jsx(
95
+ /* @__PURE__ */ jsx(Grid, { size: 3, children: /* @__PURE__ */ jsx(
96
96
  CheckboxNullableInput,
97
97
  {
98
98
  name: `${BUSBAR_SECTION_V_MEASUREMENTS}.${originalIndex}.${FieldConstants.VALIDITY}`,
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Stack, Grid2 } from "@mui/material";
2
+ import { Stack, Grid } from "@mui/material";
3
3
  import { PowerWithValidityForm } from "./PowerWithValidityForm.js";
4
4
  import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
5
5
  import "../../../../utils/conversionUtils.js";
@@ -32,7 +32,7 @@ function PowerMeasurementsForm({
32
32
  reactivePowerId = `${idPrefix}.${reactivePowerId}`;
33
33
  }
34
34
  return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
35
- !reactivePowerOnly && /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
35
+ !reactivePowerOnly && /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(
36
36
  PowerWithValidityForm,
37
37
  {
38
38
  id: activePowerId,
@@ -40,7 +40,7 @@ function PowerMeasurementsForm({
40
40
  measurement: activePowerMeasurement
41
41
  }
42
42
  ) }),
43
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
43
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(
44
44
  PowerWithValidityForm,
45
45
  {
46
46
  id: reactivePowerId,
@@ -1,7 +1,7 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useMemo } from "react";
3
3
  import { useIntl } from "react-intl";
4
- import { Grid2 } from "@mui/material";
4
+ import { Grid } from "@mui/material";
5
5
  import { CheckboxNullableInput } from "../../../../components/ui/reactHookForm/CheckboxNullableInput.js";
6
6
  import "@mui/icons-material";
7
7
  import "../../../../components/ui/overflowableText/OverflowableText.js";
@@ -42,8 +42,8 @@ function PowerWithValidityForm({ id, field, measurement }) {
42
42
  }
43
43
  return measurement.validity ? intl.formatMessage({ id: "ValidMeasurement" }) : intl.formatMessage({ id: "InvalidMeasurement" });
44
44
  }, [intl, measurement?.validity]);
45
- return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
46
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
45
+ return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
46
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
47
47
  FloatInput,
48
48
  {
49
49
  name: `${id}.${FieldConstants.VALUE}`,
@@ -53,7 +53,7 @@ function PowerWithValidityForm({ id, field, measurement }) {
53
53
  clearable: true
54
54
  }
55
55
  ) }),
56
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
56
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(
57
57
  CheckboxNullableInput,
58
58
  {
59
59
  name: `${id}.${FieldConstants.VALIDITY}`,
@@ -1,7 +1,7 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useMemo } from "react";
3
3
  import { useWatch } from "react-hook-form";
4
- import { Grid2 } from "@mui/material";
4
+ import { Grid } from "@mui/material";
5
5
  import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
6
6
  import "../../../../utils/conversionUtils.js";
7
7
  import "../../../../utils/types/equipmentType.js";
@@ -53,14 +53,14 @@ function PropertyForm({ name, index, predefinedProperties }) {
53
53
  return values.sort((a, b) => a.localeCompare(b));
54
54
  }, [watchPropertyName, predefinedProperties]);
55
55
  return /* @__PURE__ */ jsxs(Fragment, { children: [
56
- watchPropertyDeletionMark || watchPropertyAdded === false && watchPropertyPreviousValue ? /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
56
+ watchPropertyDeletionMark || watchPropertyAdded === false && watchPropertyPreviousValue ? /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
57
57
  TextInput,
58
58
  {
59
59
  name: `${name}.${index}.${FieldConstants.NAME}`,
60
60
  label: "PropertyName",
61
61
  formProps: { disabled: true, ...italicFontTextField }
62
62
  }
63
- ) }) : /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
63
+ ) }) : /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
64
64
  AutocompleteInput,
65
65
  {
66
66
  name: `${name}.${index}.${FieldConstants.NAME}`,
@@ -70,7 +70,7 @@ function PropertyForm({ name, index, predefinedProperties }) {
70
70
  allowNewValue: true
71
71
  }
72
72
  ) }),
73
- watchPropertyDeletionMark ? /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
73
+ watchPropertyDeletionMark ? /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
74
74
  TextInput,
75
75
  {
76
76
  name: `${name}.${index}.${FieldConstants.VALUE}`,
@@ -78,7 +78,7 @@ function PropertyForm({ name, index, predefinedProperties }) {
78
78
  previousValue: watchPropertyPreviousValue,
79
79
  formProps: { disabled: true, ...italicFontTextField }
80
80
  }
81
- ) }) : /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
81
+ ) }) : /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
82
82
  AutocompleteInput,
83
83
  {
84
84
  name: `${name}.${index}.${FieldConstants.VALUE}`,
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useWatch } from "react-hook-form";
3
- import { Grid2 } from "@mui/material";
3
+ import { Grid } from "@mui/material";
4
4
  import { ReactiveCapabilityCurveTableForm } from "./reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.js";
5
5
  import { ReactivePowerAdornment } from "../../../../utils/constants/adornments.js";
6
6
  import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
@@ -85,7 +85,7 @@ function ReactiveLimitsForm({
85
85
  disabled: !isReactiveCapabilityCurveOn
86
86
  }
87
87
  );
88
- return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
88
+ return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
89
89
  /* @__PURE__ */ jsx(GridItem, { size: 12, children: reactiveCapabilityCurveChoiceRadioField }),
90
90
  !isReactiveCapabilityCurveOn && /* @__PURE__ */ jsx(GridItem, { size: 4, children: minimumReactivePowerField }),
91
91
  !isReactiveCapabilityCurveOn && /* @__PURE__ */ jsx(GridItem, { size: 4, children: maximumReactivePowerField }),
@@ -1,7 +1,7 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useFieldArray } from "react-hook-form";
3
3
  import { useCallback, useEffect } from "react";
4
- import { Grid2, IconButton } from "@mui/material";
4
+ import { Grid, IconButton } from "@mui/material";
5
5
  import { Delete, ControlPoint } from "@mui/icons-material";
6
6
  import { FormattedMessage } from "react-intl";
7
7
  import { INSERT, REMOVE } from "./reactiveCapability.utils.js";
@@ -72,9 +72,9 @@ function ReactiveCapabilityCurveTableForm({
72
72
  }
73
73
  }
74
74
  }, [insertRow, rows]);
75
- return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
76
- /* @__PURE__ */ jsx(Grid2, { container: true, children: /* @__PURE__ */ jsx(ErrorInput, { name: id, InputField: MidFormError }) }),
77
- tableHeadersIds.map((header) => /* @__PURE__ */ jsx(Grid2, { size: 3, children: /* @__PURE__ */ jsx(FormattedMessage, { id: header }) }, header)),
75
+ return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
76
+ /* @__PURE__ */ jsx(Grid, { container: true, children: /* @__PURE__ */ jsx(ErrorInput, { name: id, InputField: MidFormError }) }),
77
+ tableHeadersIds.map((header) => /* @__PURE__ */ jsx(Grid, { size: 3, children: /* @__PURE__ */ jsx(FormattedMessage, { id: header }) }, header)),
78
78
  rows.map((value, index, displayedValues) => {
79
79
  let labelSuffix;
80
80
  if (index === 0) {
@@ -84,9 +84,9 @@ function ReactiveCapabilityCurveTableForm({
84
84
  } else {
85
85
  labelSuffix = index - 1;
86
86
  }
87
- return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 3, width: "100%", children: [
87
+ return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 3, width: "100%", children: [
88
88
  /* @__PURE__ */ jsx(ReactiveCapabilityCurveRowForm, { id, index, labelSuffix }),
89
- /* @__PURE__ */ jsx(Grid2, { size: 1, children: /* @__PURE__ */ jsx(
89
+ /* @__PURE__ */ jsx(Grid, { size: 1, children: /* @__PURE__ */ jsx(
90
90
  IconButton,
91
91
  {
92
92
  onClick: () => handleRemoveRow(index),
@@ -95,7 +95,7 @@ function ReactiveCapabilityCurveTableForm({
95
95
  },
96
96
  value.id
97
97
  ) }),
98
- index === displayedValues.length - 1 && /* @__PURE__ */ jsx(Grid2, { size: 1, children: /* @__PURE__ */ jsx(
98
+ index === displayedValues.length - 1 && /* @__PURE__ */ jsx(Grid, { size: 1, children: /* @__PURE__ */ jsx(
99
99
  IconButton,
100
100
  {
101
101
  onClick: () => handleInsertRow(),
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { createFilterOptions, Grid2, Box, Popper } from "@mui/material";
2
+ import { createFilterOptions, Grid, Box, Popper } from "@mui/material";
3
3
  import { useState, useMemo, useEffect, useCallback } from "react";
4
4
  import { useFormContext, useWatch } from "react-hook-form";
5
5
  import "@mui/icons-material";
@@ -77,8 +77,8 @@ function RegulatingTerminalForm({
77
77
  const resetEquipment = useCallback(() => {
78
78
  setValue(`${id}.${FieldConstants.EQUIPMENT}`, null);
79
79
  }, [id, setValue]);
80
- return /* @__PURE__ */ jsxs(Grid2, { container: true, direction: direction ?? "row", spacing: 1, children: [
81
- /* @__PURE__ */ jsx(Grid2, { size: itemSize, children: /* @__PURE__ */ jsx(
80
+ return /* @__PURE__ */ jsxs(Grid, { container: true, direction: direction ?? "row", spacing: 1, children: [
81
+ /* @__PURE__ */ jsx(Grid, { size: itemSize, children: /* @__PURE__ */ jsx(
82
82
  AutocompleteInput,
83
83
  {
84
84
  name: `${id}.${FieldConstants.VOLTAGE_LEVEL}`,
@@ -110,7 +110,7 @@ function RegulatingTerminalForm({
110
110
  allowNewValue: true
111
111
  }
112
112
  ) }),
113
- /* @__PURE__ */ jsx(Grid2, { size: itemSize, children: /* @__PURE__ */ jsx(
113
+ /* @__PURE__ */ jsx(Grid, { size: itemSize, children: /* @__PURE__ */ jsx(
114
114
  AutocompleteInput,
115
115
  {
116
116
  name: `${id}.${FieldConstants.EQUIPMENT}`,
@@ -1,5 +1,5 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { Grid2 } from "@mui/material";
2
+ import { Grid } from "@mui/material";
3
3
  import { GridSection } from "../../../../components/composite/grid/grid-section.js";
4
4
  import { ActivePowerAdornment, ReactivePowerAdornment } from "../../../../utils/constants/adornments.js";
5
5
  import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
@@ -36,8 +36,8 @@ import "react-papaparse";
36
36
  function SetPointsForm({ previousValues, isModification = false }) {
37
37
  return /* @__PURE__ */ jsxs(Fragment, { children: [
38
38
  /* @__PURE__ */ jsx(GridSection, { title: "Setpoints" }),
39
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
40
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
39
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
40
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
41
41
  FloatInput,
42
42
  {
43
43
  name: FieldConstants.ACTIVE_POWER_SET_POINT,
@@ -47,7 +47,7 @@ function SetPointsForm({ previousValues, isModification = false }) {
47
47
  clearable: isModification
48
48
  }
49
49
  ) }),
50
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
50
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
51
51
  FloatInput,
52
52
  {
53
53
  name: FieldConstants.REACTIVE_POWER_SET_POINT,
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { Grid2 } from "@mui/material";
2
+ import { Grid } from "@mui/material";
3
3
  import "@mui/icons-material";
4
4
  import "react-intl";
5
5
  import "../../../../components/ui/overflowableText/OverflowableText.js";
@@ -54,7 +54,7 @@ function ShortCircuitForm({ previousValues }) {
54
54
  clearable: true
55
55
  }
56
56
  );
57
- return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
57
+ return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
58
58
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: transientReactanceField }),
59
59
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: transformerReactanceField })
60
60
  ] });
@@ -1,5 +1,5 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { Grid2 } from "@mui/material";
2
+ import { Grid } from "@mui/material";
3
3
  import { useMemo } from "react";
4
4
  import { useWatch } from "react-hook-form";
5
5
  import { useIntl, FormattedMessage } from "react-intl";
@@ -83,7 +83,7 @@ function VoltageRegulationForm({
83
83
  previousValue: translatedPreviousRegulationLabel ?? void 0
84
84
  }
85
85
  ) }),
86
- isDistantRegulation && /* @__PURE__ */ jsxs(Grid2, { container: true, size: 12, spacing: 2, children: [
86
+ isDistantRegulation && /* @__PURE__ */ jsxs(Grid, { container: true, size: 12, spacing: 2, children: [
87
87
  /* @__PURE__ */ jsx(GridItem, { size: 4, sx: { alignSelf: "center", justifyContent: "end" }, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "RegulatingTerminalGenerator" }) }),
88
88
  /* @__PURE__ */ jsx(GridItem, { size: 8, children: /* @__PURE__ */ jsx(
89
89
  RegulatingTerminalForm,
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Stack, Grid2 } from "@mui/material";
2
+ import { Stack, Grid } from "@mui/material";
3
3
  import { useRef, useState, useMemo, useEffect, useCallback } from "react";
4
4
  import { useWatch, useFormContext } from "react-hook-form";
5
5
  import { useHvdcLccDeletion } from "./hvdcLccDeletion/useHvdcLccDeletion.js";
@@ -158,8 +158,8 @@ function EquipmentDeletionForm({
158
158
  setValue(FieldConstants.EQUIPMENT_ID, null);
159
159
  }, [setValue]);
160
160
  return /* @__PURE__ */ jsxs(Stack, { children: [
161
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
162
- /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
161
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
162
+ /* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(
163
163
  AutocompleteInput,
164
164
  {
165
165
  isOptionEqualToValue: richTypeEquals,
@@ -173,7 +173,7 @@ function EquipmentDeletionForm({
173
173
  formProps: filledTextField
174
174
  }
175
175
  ) }),
176
- /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
176
+ /* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(
177
177
  AutocompleteInput,
178
178
  {
179
179
  isOptionEqualToValue: areIdsEqual,
@@ -190,7 +190,7 @@ function EquipmentDeletionForm({
190
190
  }
191
191
  ) })
192
192
  ] }) }),
193
- /* @__PURE__ */ jsx(Grid2, { children: watchSpecificData?.specificType === FieldConstants.HVDC_LINE_LCC_DELETION_SPECIFIC_TYPE && /* @__PURE__ */ jsx(HvdcLccDeletionSpecificForm, {}) })
193
+ /* @__PURE__ */ jsx(Grid, { children: watchSpecificData?.specificType === FieldConstants.HVDC_LINE_LCC_DELETION_SPECIFIC_TYPE && /* @__PURE__ */ jsx(HvdcLccDeletionSpecificForm, {}) })
194
194
  ] });
195
195
  }
196
196
  export {
@@ -1,5 +1,5 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { Grid2 } from "@mui/material";
2
+ import { Grid } from "@mui/material";
3
3
  import { useFieldArray } from "react-hook-form";
4
4
  import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
5
5
  import "../../../../utils/conversionUtils.js";
@@ -16,8 +16,8 @@ function HvdcLccDeletionSpecificForm() {
16
16
  });
17
17
  return /* @__PURE__ */ jsxs(Fragment, { children: [
18
18
  /* @__PURE__ */ jsx(GridSection, { title: "LCCConverterStationShuntCompensators" }),
19
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
20
- /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
19
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
20
+ /* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(
21
21
  ShuntCompensatorSelectionForm,
22
22
  {
23
23
  title: "Side1",
@@ -25,7 +25,7 @@ function HvdcLccDeletionSpecificForm() {
25
25
  mcsRows: mcsRows1
26
26
  }
27
27
  ) }),
28
- /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
28
+ /* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(
29
29
  ShuntCompensatorSelectionForm,
30
30
  {
31
31
  title: "Side2",
@@ -1,5 +1,5 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { Grid2 } from "@mui/material";
2
+ import { Grid } from "@mui/material";
3
3
  import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
4
4
  import "../../../../utils/conversionUtils.js";
5
5
  import "../../../../utils/types/equipmentType.js";
@@ -40,14 +40,14 @@ function ShuntCompensatorSelectionForm({
40
40
  }) {
41
41
  return /* @__PURE__ */ jsxs(Fragment, { children: [
42
42
  /* @__PURE__ */ jsx(GridSection, { title, heading: 4 }),
43
- mcsRows.map((field, index) => /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 1, alignItems: "center", children: [
44
- /* @__PURE__ */ jsx(Grid2, { size: 1, children: /* @__PURE__ */ jsx(
43
+ mcsRows.map((field, index) => /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, alignItems: "center", children: [
44
+ /* @__PURE__ */ jsx(Grid, { size: 1, children: /* @__PURE__ */ jsx(
45
45
  CheckboxInput,
46
46
  {
47
47
  name: `${arrayFormName}[${index}].${FieldConstants.SHUNT_COMPENSATOR_SELECTED}`
48
48
  }
49
49
  ) }),
50
- /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(ReadOnlyInput, { name: `${arrayFormName}[${index}].${FieldConstants.ID}` }) })
50
+ /* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(ReadOnlyInput, { name: `${arrayFormName}[${index}].${FieldConstants.ID}` }) })
51
51
  ] }, field.id))
52
52
  ] });
53
53
  }
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { Box, Grid2, Stack } from "@mui/material";
2
+ import { Box, Grid, Stack } from "@mui/material";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  import { useWatch } from "react-hook-form";
5
5
  import { filledTextField, italicFontTextField } from "../../common/form.utils.js";
@@ -152,15 +152,15 @@ function GeneratorCreationForm({
152
152
  }
153
153
  );
154
154
  return /* @__PURE__ */ jsxs(Fragment, { children: [
155
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
155
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
156
156
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: generatorIdField }),
157
157
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: generatorNameField }),
158
158
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: energySourceField })
159
159
  ] }),
160
160
  /* @__PURE__ */ jsx(GridSection, { title: "Connectivity" }),
161
- /* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: connectivityForm }) }),
161
+ /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: connectivityForm }) }),
162
162
  /* @__PURE__ */ jsx(GridSection, { title: "ActiveLimits" }),
163
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
163
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
164
164
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: minimumActivePowerField }),
165
165
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: maximumActivePowerField }),
166
166
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: ratedNominalPowerField })
@@ -168,7 +168,7 @@ function GeneratorCreationForm({
168
168
  /* @__PURE__ */ jsx(GridSection, { title: "ReactiveLimits" }),
169
169
  /* @__PURE__ */ jsx(ReactiveLimitsForm, {}),
170
170
  /* @__PURE__ */ jsx(SetPointsForm, {}),
171
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, paddingTop: 2, children: [
171
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, paddingTop: 2, children: [
172
172
  /* @__PURE__ */ jsx(
173
173
  GridItem,
174
174
  {
@@ -184,11 +184,11 @@ function GeneratorCreationForm({
184
184
  /* @__PURE__ */ jsx(ShortCircuitForm, {}),
185
185
  /* @__PURE__ */ jsx(GridSection, { title: "GenerationDispatch" }),
186
186
  /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
187
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
187
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
188
188
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: plannedActivePowerSetPointField }),
189
189
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: marginalCostField })
190
190
  ] }),
191
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
191
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
192
192
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: plannedOutageRateField }),
193
193
  /* @__PURE__ */ jsx(GridItem, { size: 4, children: forcedOutageRateField })
194
194
  ] })
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { TextField, Grid2 } from "@mui/material";
2
+ import { TextField, Grid } from "@mui/material";
3
3
  import { useIntl } from "react-intl";
4
4
  import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
5
5
  import "../../../../utils/conversionUtils.js";
@@ -78,8 +78,10 @@ function GeneratorDialogHeader({ generatorToModify, equipmentId }) {
78
78
  fullWidth: true,
79
79
  label: "ID",
80
80
  value: equipmentId ?? "",
81
- InputProps: {
82
- readOnly: true
81
+ slotProps: {
82
+ input: {
83
+ readOnly: true
84
+ }
83
85
  },
84
86
  disabled: true,
85
87
  ...filledTextField
@@ -107,10 +109,10 @@ function GeneratorDialogHeader({ generatorToModify, equipmentId }) {
107
109
  previousValue: previousEnergySourceLabel
108
110
  }
109
111
  );
110
- return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
111
- /* @__PURE__ */ jsx(Grid2, { size: "grow", children: generatorIdField }),
112
- /* @__PURE__ */ jsx(Grid2, { size: "grow", children: generatorNameField }),
113
- /* @__PURE__ */ jsx(Grid2, { size: "grow", children: energySourceField })
112
+ return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
113
+ /* @__PURE__ */ jsx(Grid, { size: "grow", children: generatorIdField }),
114
+ /* @__PURE__ */ jsx(Grid, { size: "grow", children: generatorNameField }),
115
+ /* @__PURE__ */ jsx(Grid, { size: "grow", children: energySourceField })
114
116
  ] });
115
117
  }
116
118
  export {