@gridsuite/commons-ui 0.259.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 (175) 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/expert/expertFilterConstants.js +3 -1
  13. package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js +7 -7
  14. package/dist/components/composite/flatParameters/FlatParameters.js +17 -11
  15. package/dist/components/composite/grid/grid-item.d.ts +4 -4
  16. package/dist/components/composite/grid/grid-item.js +2 -2
  17. package/dist/components/composite/grid/grid-section.js +2 -2
  18. package/dist/components/composite/reactQueryBuilder/PropertyValueEditor.js +5 -5
  19. package/dist/components/composite/reactQueryBuilder/compositeRuleEditor/RuleValueEditor.js +5 -5
  20. package/dist/components/composite/report/QuickSearch.js +31 -29
  21. package/dist/components/composite/report/report-viewer/log-table/log-table.js +2 -2
  22. package/dist/components/ui/csvPicker/csv-picker.js +4 -4
  23. package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +8 -8
  24. package/dist/components/ui/dialogs/modifyElementSelection/ModifyElementSelection.js +3 -3
  25. package/dist/components/ui/dialogs/name-element-editor/name-element-editor-form.js +4 -4
  26. package/dist/components/ui/inputs/SelectClearable.js +3 -1
  27. package/dist/components/ui/inputs/checkbox-autocomplete/checkbox-autocomplete.js +7 -5
  28. package/dist/components/ui/reactHookForm/CheckboxNullableInput.js +4 -2
  29. package/dist/components/ui/reactHookForm/autocompleteInputs/AutocompleteInput.js +3 -1
  30. package/dist/components/ui/reactHookForm/autocompleteInputs/MultipleAutocompleteInput.js +1 -1
  31. package/dist/components/ui/reactHookForm/booleans/BooleanInput.js +1 -1
  32. package/dist/components/ui/reactHookForm/chip-items-input.js +11 -9
  33. package/dist/components/ui/reactHookForm/directory-item-input/directory-item-input.js +5 -5
  34. package/dist/components/ui/reactHookForm/errorManagement/FieldErrorAlert.js +2 -2
  35. package/dist/components/ui/reactHookForm/expandableInput/DeletableRow.js +3 -3
  36. package/dist/components/ui/reactHookForm/expandableInput/ExpandableInput.js +4 -4
  37. package/dist/components/ui/reactHookForm/numbers/RangeInput.js +5 -5
  38. package/dist/components/ui/reactHookForm/readOnly/ButtonReadOnlyInput.js +26 -24
  39. package/dist/components/ui/reactHookForm/readOnly/ReadOnlyInput.js +11 -9
  40. package/dist/components/ui/reactHookForm/selectInputs/CountriesInput.js +2 -2
  41. package/dist/components/ui/reactHookForm/tableInputs/table-numerical-input.js +30 -28
  42. package/dist/components/ui/reactHookForm/tableInputs/table-text-input.js +10 -8
  43. package/dist/components/ui/reactHookForm/text/ExpandingTextField.js +6 -4
  44. package/dist/components/ui/reactHookForm/text/TextInput.js +7 -5
  45. package/dist/components/ui/reactHookForm/text/UniqueNameInput.js +6 -4
  46. package/dist/components/ui/reactHookForm/utils/HelperPreviousValue.js +10 -8
  47. package/dist/components/ui/reactHookForm/utils/TextFieldWithAdornment.js +4 -2
  48. package/dist/components/ui/reactHookForm/utils/functions.js +2 -2
  49. package/dist/features/authentication/AuthenticationRouterErrorDisplay.js +3 -3
  50. package/dist/features/global-filter/ui/global-filter-dropdown-panel.js +8 -8
  51. package/dist/features/global-filter/ui/global-filter-panel.js +35 -29
  52. package/dist/features/network-modification-table/network-modification-table-styles.js +2 -3
  53. package/dist/features/network-modifications/battery/creation/BatteryCreationForm.js +18 -8
  54. package/dist/features/network-modifications/battery/modification/BatteryDialogHeader.js +8 -6
  55. package/dist/features/network-modifications/battery/modification/BatteryDialogTabs.js +4 -2
  56. package/dist/features/network-modifications/battery/modification/BatteryDialogTabsContent.js +6 -6
  57. package/dist/features/network-modifications/battery/modification/BatteryModificationForm.js +4 -4
  58. package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-constants.d.ts +1 -1
  59. package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-constants.js +4 -2
  60. package/dist/features/network-modifications/by-filter/assignment/modification-by-assignment-form.js +3 -3
  61. package/dist/features/network-modifications/by-filter/deletion/ByFilterDeletionForm.js +4 -4
  62. package/dist/features/network-modifications/by-filter/formula/formula/formula-form.js +2 -2
  63. package/dist/features/network-modifications/by-filter/formula/formula/formula-utils.js +2 -1
  64. package/dist/features/network-modifications/by-filter/formula/modification-by-formula-form.js +3 -3
  65. package/dist/features/network-modifications/common/connectivity/ConnectivityForm.js +7 -7
  66. package/dist/features/network-modifications/common/connectivity/PositionForm.js +4 -4
  67. package/dist/features/network-modifications/common/connectivity/VoltageLevelConnectivityForm.js +4 -4
  68. package/dist/features/network-modifications/common/currentLimits/LimitsPane.js +10 -10
  69. package/dist/features/network-modifications/common/currentLimits/limitsEditor/LimitsEditor.js +5 -5
  70. package/dist/features/network-modifications/common/currentLimits/limitsEditor/TemporaryLimitsTable.js +2 -2
  71. package/dist/features/network-modifications/common/currentLimits/operationalLimitsGroups/OperationalLimitsGroups.js +2 -2
  72. package/dist/features/network-modifications/common/measurements/BusbarSectionVoltageMeasurementsForm.js +6 -6
  73. package/dist/features/network-modifications/common/measurements/PowerMeasurementsForm.js +3 -3
  74. package/dist/features/network-modifications/common/measurements/PowerWithValidityForm.js +4 -4
  75. package/dist/features/network-modifications/common/properties/PropertyForm.js +5 -5
  76. package/dist/features/network-modifications/common/reactiveLimits/ReactiveLimitsForm.js +2 -2
  77. package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.js +7 -7
  78. package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.js +4 -4
  79. package/dist/features/network-modifications/common/setpoints/SetPointsForm.js +4 -4
  80. package/dist/features/network-modifications/common/shortCircuit/ShortCircuitForm.js +2 -2
  81. package/dist/features/network-modifications/common/voltageRegulation/VoltageRegulationForm.js +2 -2
  82. package/dist/features/network-modifications/equipmentDeletion/EquipmentDeletionForm.js +5 -5
  83. package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/HvdcLccDeletionSpecificForm.js +4 -4
  84. package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.js +4 -4
  85. package/dist/features/network-modifications/generator/creation/GeneratorCreationForm.js +7 -7
  86. package/dist/features/network-modifications/generator/modification/GeneratorDialogHeader.js +9 -7
  87. package/dist/features/network-modifications/generator/modification/GeneratorDialogTabs.js +4 -2
  88. package/dist/features/network-modifications/generator/modification/GeneratorDialogTabsContent.js +7 -7
  89. package/dist/features/network-modifications/generator/modification/GeneratorModificationForm.js +4 -4
  90. package/dist/features/network-modifications/line/characteristics/LineCharacteristicsPane.js +4 -4
  91. package/dist/features/network-modifications/line/common/LineDialogHeader.js +2 -2
  92. package/dist/features/network-modifications/load/common/LoadDialogHeader.js +9 -7
  93. package/dist/features/network-modifications/load/common/LoadDialogTabs.js +4 -2
  94. package/dist/features/network-modifications/load/common/LoadForm.js +4 -4
  95. package/dist/features/network-modifications/shunt-compensator/common/CharacteristicsForm.js +13 -13
  96. package/dist/features/network-modifications/shunt-compensator/creation/ShuntCompensatorCreationForm.js +9 -9
  97. package/dist/features/network-modifications/shunt-compensator/modification/ShuntCompensatorModificationForm.js +11 -11
  98. package/dist/features/network-modifications/substation/creation/SubstationCreationForm.js +6 -6
  99. package/dist/features/network-modifications/substation/modification/SubstationModificationForm.js +10 -8
  100. package/dist/features/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +10 -8
  101. package/dist/features/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.js +8 -8
  102. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.js +4 -4
  103. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/couplingOmnibus/CouplingOmnibusCreation.js +3 -3
  104. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js +2 -2
  105. package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationCreationSection.js +6 -6
  106. package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.js +5 -5
  107. package/dist/features/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js +23 -19
  108. package/dist/features/parameters/common/line-separator.js +2 -2
  109. package/dist/features/parameters/common/parameter-field.js +6 -6
  110. package/dist/features/parameters/common/parameter-layout/parameter-layout.js +7 -7
  111. package/dist/features/parameters/common/parameter-table-field/parameter-table-field.js +3 -3
  112. package/dist/features/parameters/common/parameters.js +6 -4
  113. package/dist/features/parameters/common/provider-param.js +4 -4
  114. package/dist/features/parameters/common/widget/parameter-float.js +4 -4
  115. package/dist/features/parameters/common/widget/parameter-group.js +2 -2
  116. package/dist/features/parameters/common/widget/parameter-line-directory-items-input.js +4 -4
  117. package/dist/features/parameters/common/widget/parameter-line-slider.d.ts +4 -3
  118. package/dist/features/parameters/common/widget/parameter-line-slider.js +4 -4
  119. package/dist/features/parameters/common/widget/parameter-switch.js +2 -2
  120. package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +4 -4
  121. package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.js +2 -2
  122. package/dist/features/parameters/dynamic-margin-calculation/time-delay-parameters.js +2 -2
  123. package/dist/features/parameters/dynamic-security-analysis/contingency-parameters.js +2 -2
  124. package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +4 -4
  125. package/dist/features/parameters/dynamic-security-analysis/scenario-parameters.js +2 -2
  126. package/dist/features/parameters/dynamic-simulation/curve/common/checkbox-treeview.js +2 -2
  127. package/dist/features/parameters/dynamic-simulation/curve/common/grid-buttons.js +4 -4
  128. package/dist/features/parameters/dynamic-simulation/curve/common/grid-search.js +7 -5
  129. package/dist/features/parameters/dynamic-simulation/curve/curve-parameters.js +5 -5
  130. package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector-dialog.js +5 -5
  131. package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector.js +3 -3
  132. package/dist/features/parameters/dynamic-simulation/curve/dialog/equipment-filter.js +13 -13
  133. package/dist/features/parameters/dynamic-simulation/curve/dialog/model-filter.js +4 -4
  134. package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +4 -4
  135. package/dist/features/parameters/dynamic-simulation/mapping/mapping-parameters.js +2 -2
  136. package/dist/features/parameters/dynamic-simulation/network/network-parameters.js +2 -2
  137. package/dist/features/parameters/dynamic-simulation/solver/solver-parameters.js +2 -2
  138. package/dist/features/parameters/dynamic-simulation/time-delay/time-delay-parameters.js +2 -2
  139. package/dist/features/parameters/loadflow/load-flow-parameters-content.js +3 -3
  140. package/dist/features/parameters/loadflow/load-flow-parameters-dialog.js +2 -2
  141. package/dist/features/parameters/loadflow/load-flow-parameters-form.js +4 -4
  142. package/dist/features/parameters/network-visualizations/map-parameters.js +8 -8
  143. package/dist/features/parameters/network-visualizations/network-area-diagram-parameters.js +4 -4
  144. package/dist/features/parameters/network-visualizations/network-visualizations-parameters-dialog.js +8 -6
  145. package/dist/features/parameters/network-visualizations/single-line-diagram-parameters.js +8 -8
  146. package/dist/features/parameters/pcc-min/pcc-min-parameters-dialog.js +8 -6
  147. package/dist/features/parameters/pcc-min/pcc-min-parameters-form.js +2 -2
  148. package/dist/features/parameters/security-analysis/security-analysis-parameters-dialog.js +8 -6
  149. package/dist/features/parameters/security-analysis/security-analysis-violations-hiding.js +6 -6
  150. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-dialog.js +2 -2
  151. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.js +2 -2
  152. package/dist/features/parameters/sensi/sensitivity-parameters-fields.js +7 -7
  153. package/dist/features/parameters/sensi/sensitivity-parameters-selector.js +2 -2
  154. package/dist/features/parameters/short-circuit/short-circuit-general-tab-panel.js +11 -11
  155. package/dist/features/parameters/short-circuit/short-circuit-parameters-content.js +3 -3
  156. package/dist/features/parameters/short-circuit/short-circuit-parameters-dialog.js +2 -2
  157. package/dist/features/parameters/short-circuit/short-circuit-parameters-form.js +2 -2
  158. package/dist/features/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +5 -5
  159. package/dist/features/parameters/short-circuit/short-circuit-study-area-tab-panel.js +2 -2
  160. package/dist/features/parameters/voltage-init/equipment-selection-parameters.js +4 -4
  161. package/dist/features/parameters/voltage-init/general-parameters.js +2 -2
  162. package/dist/features/parameters/voltage-init/voltage-init-parameters-dialog.js +8 -6
  163. package/dist/features/parameters/voltage-init/voltage-init-parameters-form.js +2 -2
  164. package/dist/features/parameters/voltage-init/voltage-limits-parameters.js +2 -2
  165. package/dist/features/topBar/AboutDialog.js +40 -28
  166. package/dist/features/topBar/TopBar.js +2 -2
  167. package/dist/features/topBar/UserInformationDialog.js +34 -34
  168. package/dist/features/topBar/UserSettingsDialog.js +3 -1
  169. package/dist/translations/en/networkModificationsEn.d.ts +1 -1
  170. package/dist/translations/en/networkModificationsEn.js +1 -1
  171. package/dist/translations/fr/networkModificationsFr.d.ts +1 -1
  172. package/dist/translations/fr/networkModificationsFr.js +1 -1
  173. package/dist/utils/types/types.d.ts +1 -0
  174. package/dist/utils/types/types.js +1 -0
  175. package/package.json +7 -7
@@ -1,5 +1,5 @@
1
1
  import { DataType } from "./assignment.type.js";
2
- import { MEGA_VAR, SIEMENS, MEGA_WATT, PERCENTAGE, OHM, MEGA_VOLT_AMPERE, KILO_VOLT, MICRO_SIEMENS, KILO_AMPERE } from "../../../../../utils/constants/unitsConstants.js";
2
+ import { MEGA_VAR, SIEMENS, MEGA_WATT, KILO_VOLT, PERCENTAGE, OHM, MEGA_VOLT_AMPERE, MICRO_SIEMENS, KILO_AMPERE } from "../../../../../utils/constants/unitsConstants.js";
3
3
  import "../../../../../utils/conversionUtils.js";
4
4
  import { EquipmentType, LOAD_TYPES } from "../../../../../utils/types/equipmentType.js";
5
5
  import { FieldType } from "../../../../../utils/types/fieldType.js";
@@ -55,7 +55,7 @@ const FIELD_OPTIONS = {
55
55
  },
56
56
  VOLTAGE_SET_POINT: {
57
57
  id: FieldType.VOLTAGE_SET_POINT,
58
- label: "GeneratorTargetV",
58
+ label: "TargetV",
59
59
  unit: KILO_VOLT,
60
60
  dataType: DataType.DOUBLE
61
61
  },
@@ -382,6 +382,8 @@ const EQUIPMENTS_FIELDS = {
382
382
  ],
383
383
  [EquipmentType.BATTERY]: [
384
384
  FIELD_OPTIONS.PROPERTY,
385
+ FIELD_OPTIONS.VOLTAGE_REGULATOR_ON,
386
+ FIELD_OPTIONS.VOLTAGE_SET_POINT,
385
387
  FIELD_OPTIONS.MINIMUM_ACTIVE_POWER,
386
388
  FIELD_OPTIONS.MAXIMUM_ACTIVE_POWER,
387
389
  FIELD_OPTIONS.ACTIVE_POWER_SET_POINT,
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { Box, Grid2 } from "@mui/material";
2
+ import { Box, Grid } from "@mui/material";
3
3
  import { useFormContext } from "react-hook-form";
4
4
  import "@mui/icons-material";
5
5
  import "react-intl";
@@ -75,8 +75,8 @@ function ModificationByAssignmentForm() {
75
75
  }
76
76
  );
77
77
  return /* @__PURE__ */ jsxs(Box, { sx: mergeSx(unscrollableDialogStyles.unscrollableContainer, { height: "100%" }), children: [
78
- /* @__PURE__ */ jsx(Grid2, { container: true, sx: unscrollableDialogStyles.unscrollableHeader, children: /* @__PURE__ */ jsx(GridItem, { size: 3.15, children: equipmentTypeField }) }),
79
- /* @__PURE__ */ jsx(Grid2, { container: true, sx: unscrollableDialogStyles.scrollableContent, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: assignmentsField }) })
78
+ /* @__PURE__ */ jsx(Grid, { container: true, sx: unscrollableDialogStyles.unscrollableHeader, children: /* @__PURE__ */ jsx(GridItem, { size: 3.15, children: equipmentTypeField }) }),
79
+ /* @__PURE__ */ jsx(Grid, { container: true, sx: unscrollableDialogStyles.scrollableContent, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: assignmentsField }) })
80
80
  ] });
81
81
  }
82
82
  export {
@@ -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 { useCallback } from "react";
4
4
  import { useWatch, useFormContext } from "react-hook-form";
5
5
  import "@mui/icons-material";
@@ -45,8 +45,8 @@ function ByFilterDeletionForm() {
45
45
  const handleEquipmentTypeChange = useCallback(() => {
46
46
  setValue(FieldConstants.FILTERS, []);
47
47
  }, [setValue]);
48
- return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, pt: 1, children: [
49
- /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
48
+ return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, pt: 1, children: [
49
+ /* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(
50
50
  AutocompleteInput,
51
51
  {
52
52
  isOptionEqualToValue: richTypeEquals,
@@ -58,7 +58,7 @@ function ByFilterDeletionForm() {
58
58
  size: "small"
59
59
  }
60
60
  ) }),
61
- /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
61
+ /* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(
62
62
  DirectoryItemsInput,
63
63
  {
64
64
  name: FieldConstants.FILTERS,
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs, Fragment } 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 { DragHandle } from "@mui/icons-material";
5
5
  import { EQUIPMENTS_FIELDS } from "./formula-utils.js";
6
6
  import ReferenceAutocompleteInput from "./reference-autocomplete-input.js";
@@ -128,7 +128,7 @@ function FormulaForm({ name, index }) {
128
128
  return /* @__PURE__ */ jsxs(Fragment, { children: [
129
129
  /* @__PURE__ */ jsx(GridItem, { size: 2.25, children: filtersField }),
130
130
  /* @__PURE__ */ jsx(GridItem, { size: 2.25, children: editedField }),
131
- /* @__PURE__ */ jsx(Grid2, { size: 0.25, sx: { marginTop: 0.75 }, children: /* @__PURE__ */ jsx(DragHandle, {}) }),
131
+ /* @__PURE__ */ jsx(Grid, { size: 0.25, sx: { marginTop: 0.75 }, children: /* @__PURE__ */ jsx(DragHandle, {}) }),
132
132
  /* @__PURE__ */ jsx(GridItem, { size: 2.5, children: referenceField1 }),
133
133
  /* @__PURE__ */ jsx(GridItem, { size: 1.25, children: operatorField }),
134
134
  /* @__PURE__ */ jsx(GridItem, { size: 2.5, children: referenceField2 })
@@ -15,7 +15,7 @@ const EQUIPMENTS_FIELDS = {
15
15
  { id: "MAXIMUM_ACTIVE_POWER", label: "MaximumActivePowerText", unit: MEGA_WATT },
16
16
  { id: "ACTIVE_POWER_SET_POINT", label: "ActivePowerSetPointText", unit: MEGA_WATT },
17
17
  { id: "REACTIVE_POWER_SET_POINT", label: "ReactivePowerSetPointText", unit: MEGA_VAR },
18
- { id: "VOLTAGE_SET_POINT", label: "GeneratorTargetV", unit: KILO_VOLT },
18
+ { id: "VOLTAGE_SET_POINT", label: "TargetV", unit: KILO_VOLT },
19
19
  {
20
20
  id: "PLANNED_ACTIVE_POWER_SET_POINT",
21
21
  label: "PlannedActivePowerSetPointForm",
@@ -38,6 +38,7 @@ const EQUIPMENTS_FIELDS = {
38
38
  { id: "MAXIMUM_ACTIVE_POWER", label: "MaximumActivePowerText", unit: MEGA_WATT },
39
39
  { id: "ACTIVE_POWER_SET_POINT", label: "ActivePowerSetPointText", unit: MEGA_WATT },
40
40
  { id: "REACTIVE_POWER_SET_POINT", label: "ReactivePowerSetPointText", unit: MEGA_VAR },
41
+ { id: "VOLTAGE_SET_POINT", label: "TargetV", unit: KILO_VOLT },
41
42
  { id: "DROOP", label: "Droop", unit: PERCENTAGE },
42
43
  { id: "TRANSIENT_REACTANCE", label: "TransientReactanceForm", unit: OHM },
43
44
  {
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useFormContext } from "react-hook-form";
3
- import { Box, Grid2 } from "@mui/material";
3
+ import { Box, Grid } from "@mui/material";
4
4
  import FormulaForm from "./formula/formula-form.js";
5
5
  import { getFormulaInitialValue } from "./formula/formula-utils.js";
6
6
  import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
@@ -101,8 +101,8 @@ function ModificationByFormulaForm() {
101
101
  }
102
102
  );
103
103
  return /* @__PURE__ */ jsxs(Box, { sx: mergeSx(unscrollableDialogStyles.unscrollableContainer, { height: "100%" }), children: [
104
- /* @__PURE__ */ jsx(Grid2, { container: true, sx: unscrollableDialogStyles.unscrollableHeader, children: /* @__PURE__ */ jsx(GridItem, { size: 2.15, children: equipmentTypeField }) }),
105
- /* @__PURE__ */ jsx(Grid2, { container: true, sx: unscrollableDialogStyles.scrollableContent, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: formulasField }) })
104
+ /* @__PURE__ */ jsx(Grid, { container: true, sx: unscrollableDialogStyles.unscrollableHeader, children: /* @__PURE__ */ jsx(GridItem, { size: 2.15, children: equipmentTypeField }) }),
105
+ /* @__PURE__ */ jsx(Grid, { container: true, sx: unscrollableDialogStyles.scrollableContent, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: formulasField }) })
106
106
  ] });
107
107
  }
108
108
  export {
@@ -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 { useMemo } from "react";
4
4
  import { useIntl } from "react-intl";
5
5
  import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
@@ -54,8 +54,8 @@ function ConnectivityForm({
54
54
  return previousValues.terminalConnected ? intl.formatMessage({ id: "connected" }) : intl.formatMessage({ id: "disconnected" });
55
55
  }, [intl, previousValues, isEquipmentModification]);
56
56
  const previousConnectionDirectionLabel = isEquipmentModification ? getConnectionDirectionLabel(previousValues?.connectablePosition?.connectionDirection) ?? null : null;
57
- return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
58
- /* @__PURE__ */ jsx(Grid2, { size: 8, children: /* @__PURE__ */ jsx(
57
+ return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
58
+ /* @__PURE__ */ jsx(Grid, { size: 8, children: /* @__PURE__ */ jsx(
59
59
  VoltageLevelConnectivityForm,
60
60
  {
61
61
  id,
@@ -67,7 +67,7 @@ function ConnectivityForm({
67
67
  fetchBusesOrBusbarSections
68
68
  }
69
69
  ) }),
70
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: isEquipmentModification ? /* @__PURE__ */ jsx(
70
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: isEquipmentModification ? /* @__PURE__ */ jsx(
71
71
  CheckboxNullableInput,
72
72
  {
73
73
  name: `${id}.${FieldConstants.CONNECTED}`,
@@ -75,7 +75,7 @@ function ConnectivityForm({
75
75
  previousValue: previousConnectedField ?? void 0
76
76
  }
77
77
  ) : /* @__PURE__ */ jsx(SwitchInput, { name: `${id}.${FieldConstants.CONNECTED}`, label: "connected" }) }),
78
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
78
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
79
79
  TextInput,
80
80
  {
81
81
  name: `${id}.${FieldConstants.CONNECTION_NAME}`,
@@ -83,7 +83,7 @@ function ConnectivityForm({
83
83
  previousValue: isEquipmentModification ? previousValues?.connectablePosition?.connectionName ?? void 0 : void 0
84
84
  }
85
85
  ) }),
86
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
86
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
87
87
  SelectInput,
88
88
  {
89
89
  name: `${id}.${FieldConstants.CONNECTION_DIRECTION}`,
@@ -96,7 +96,7 @@ function ConnectivityForm({
96
96
  size: "small"
97
97
  }
98
98
  ) }),
99
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
99
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
100
100
  PositionForm,
101
101
  {
102
102
  id,
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
- import { Grid2, IconButton } from "@mui/material";
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";
@@ -64,8 +64,8 @@ function PositionForm({
64
64
  }
65
65
  return "NoVoltageLevelPositionMessage";
66
66
  }, [isNodeBuilt, voltageLevelForPositionIcon]);
67
- return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
68
- /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
67
+ return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
68
+ /* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(
69
69
  IntegerInput,
70
70
  {
71
71
  name: `${id}.${FieldConstants.CONNECTION_POSITION}`,
@@ -75,7 +75,7 @@ function PositionForm({
75
75
  }
76
76
  ) }),
77
77
  PositionDiagramPane && /* @__PURE__ */ jsxs(Fragment, { children: [
78
- /* @__PURE__ */ jsx(Grid2, { size: 1, children: /* @__PURE__ */ jsx(
78
+ /* @__PURE__ */ jsx(Grid, { size: 1, children: /* @__PURE__ */ jsx(
79
79
  IconButton,
80
80
  {
81
81
  ...isNodeBuilt && voltageLevelForPositionIcon && { onClick: handleClickOpenDiagramPane },
@@ -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,