@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
@@ -46,11 +46,13 @@ const GridSearch = forwardRef(({ gridRef, disabled }, ref) => {
46
46
  onChange: handleChangeFilter,
47
47
  inputRef,
48
48
  fullWidth: true,
49
- InputProps: {
50
- sx: {
51
- input: styles.searchSection
52
- },
53
- startAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "start", children: /* @__PURE__ */ jsx(Search, { color: disabled ? "disabled" : "inherit" }) })
49
+ slotProps: {
50
+ input: {
51
+ sx: {
52
+ input: styles.searchSection
53
+ },
54
+ startAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "start", children: /* @__PURE__ */ jsx(Search, { color: disabled ? "disabled" : "inherit" }) })
55
+ }
54
56
  }
55
57
  }
56
58
  );
@@ -1,5 +1,5 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { useTheme, Stack, Grid2, Typography, Box } from "@mui/material";
2
+ import { useTheme, Stack, Grid, Typography, Box } from "@mui/material";
3
3
  import { useState, useRef, useCallback, useMemo } from "react";
4
4
  import { useIntl } from "react-intl";
5
5
  import { useFormContext, useFieldArray } from "react-hook-form";
@@ -122,10 +122,10 @@ function CurveParameters({
122
122
  }, [getValues, mappingPath]);
123
123
  return /* @__PURE__ */ jsxs(Fragment, { children: [
124
124
  /* @__PURE__ */ jsxs(Stack, { sx: { height: 600 }, children: [
125
- /* @__PURE__ */ jsxs(Grid2, { container: true, sx: { marginBottom: theme.spacing(1) }, children: [
126
- /* @__PURE__ */ jsx(Grid2, { container: true, size: "auto", children: /* @__PURE__ */ jsx(GridSearch, { ref: quickFilterRef, gridRef }, "curve-quick-filter") }),
125
+ /* @__PURE__ */ jsxs(Grid, { container: true, sx: { marginBottom: theme.spacing(1) }, children: [
126
+ /* @__PURE__ */ jsx(Grid, { container: true, size: "auto", children: /* @__PURE__ */ jsx(GridSearch, { ref: quickFilterRef, gridRef }, "curve-quick-filter") }),
127
127
  /* @__PURE__ */ jsx(
128
- Grid2,
128
+ Grid,
129
129
  {
130
130
  container: true,
131
131
  size: "auto",
@@ -148,7 +148,7 @@ function CurveParameters({
148
148
  }
149
149
  )
150
150
  ] }),
151
- /* @__PURE__ */ jsx(Grid2, { sx: { flexGrow: 1, minHeight: 0 }, children: /* @__PURE__ */ jsx(Box, { sx: styles.grid, children: /* @__PURE__ */ jsx(
151
+ /* @__PURE__ */ jsx(Grid, { sx: { flexGrow: 1, minHeight: 0 }, children: /* @__PURE__ */ jsx(Box, { sx: styles.grid, children: /* @__PURE__ */ jsx(
152
152
  CustomAGGrid,
153
153
  {
154
154
  ref: gridRef,
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { useTheme, Dialog, DialogTitle, Typography, DialogContent, Grid2, Stack, IconButton, DialogActions, Button } from "@mui/material";
2
+ import { useTheme, Dialog, DialogTitle, Typography, DialogContent, Grid, Stack, IconButton, DialogActions, Button } from "@mui/material";
3
3
  import { useRef, useCallback } from "react";
4
4
  import { useIntl, FormattedMessage } from "react-intl";
5
5
  import { ArrowCircleRight, ArrowCircleLeft } from "@mui/icons-material";
@@ -55,7 +55,7 @@ function CurveSelectorDialog({
55
55
  return /* @__PURE__ */ jsxs(Dialog, { open, "aria-labelledby": "curve-selector-dialog-title", maxWidth: "xl", fullWidth: true, children: [
56
56
  /* @__PURE__ */ jsx(DialogTitle, { id: "curve-selector-dialog-title", children: /* @__PURE__ */ jsx(Typography, { component: "span", variant: "h5", sx: parametersStyles.title, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "DynamicSimulationCurveSelectorDialogTitle" }) }) }),
57
57
  /* @__PURE__ */ jsx(DialogContent, { style: { overflowY: "hidden", height: "60vh" }, children: /* @__PURE__ */ jsxs(
58
- Grid2,
58
+ Grid,
59
59
  {
60
60
  container: true,
61
61
  sx: mergeSx(parametersStyles.scrollableGrid, {
@@ -64,7 +64,7 @@ function CurveSelectorDialog({
64
64
  maxHeight: "100%"
65
65
  }),
66
66
  children: [
67
- /* @__PURE__ */ jsx(Grid2, { container: true, size: 8, spacing: theme.spacing(1), children: /* @__PURE__ */ jsx(
67
+ /* @__PURE__ */ jsx(Grid, { container: true, size: 8, spacing: theme.spacing(1), children: /* @__PURE__ */ jsx(
68
68
  CurveSelector,
69
69
  {
70
70
  ref: selectorRef,
@@ -74,7 +74,7 @@ function CurveSelectorDialog({
74
74
  modelsFetcher
75
75
  }
76
76
  ) }),
77
- /* @__PURE__ */ jsx(Grid2, { size: 0.5, display: "flex", justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ jsxs(Stack, { children: [
77
+ /* @__PURE__ */ jsx(Grid, { size: 0.5, display: "flex", justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ jsxs(Stack, { children: [
78
78
  /* @__PURE__ */ jsx(
79
79
  CustomTooltip,
80
80
  {
@@ -110,7 +110,7 @@ function CurveSelectorDialog({
110
110
  }
111
111
  )
112
112
  ] }) }),
113
- /* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(CurvePreview, { ref: previewRef }) })
113
+ /* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(CurvePreview, { ref: previewRef }) })
114
114
  ]
115
115
  }
116
116
  ) }),
@@ -1,5 +1,5 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { Grid2, Stack, Typography } from "@mui/material";
2
+ import { Grid, Stack, Typography } from "@mui/material";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  import { forwardRef, useRef, useState, useCallback, useImperativeHandle } from "react";
5
5
  import { getReferencedEquipmentTypeForModel } from "./curve-selector-utils.js";
@@ -39,7 +39,7 @@ const CurveSelector = forwardRef(
39
39
  []
40
40
  );
41
41
  return /* @__PURE__ */ jsxs(Fragment, { children: [
42
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsxs(Stack, { alignItems: "flex-start", justifyContent: "flex-start", spacing: 1, sx: { height: "100%" }, children: [
42
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsxs(Stack, { alignItems: "flex-start", justifyContent: "flex-start", spacing: 1, sx: { height: "100%" }, children: [
43
43
  /* @__PURE__ */ jsx(Typography, { sx: styles.h6, variant: "h6", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "DynamicSimulationCurveEquipmentFilter" }) }),
44
44
  /* @__PURE__ */ jsx(
45
45
  EquipmentFilter,
@@ -53,7 +53,7 @@ const CurveSelector = forwardRef(
53
53
  }
54
54
  )
55
55
  ] }) }),
56
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsxs(Stack, { alignItems: "flex-start", justifyContent: "flex-start", spacing: 1, sx: { height: "100%" }, children: [
56
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsxs(Stack, { alignItems: "flex-start", justifyContent: "flex-start", spacing: 1, sx: { height: "100%" }, children: [
57
57
  /* @__PURE__ */ jsx(Typography, { sx: styles.h6, variant: "h6", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "DynamicSimulationCurveCurveFilter" }) }),
58
58
  /* @__PURE__ */ jsx(
59
59
  ModelFilter,
@@ -1,5 +1,5 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { Grid2, Typography, Select, MenuItem, Stack, Box } from "@mui/material";
2
+ import { Grid, Typography, Select, MenuItem, Stack, Box } from "@mui/material";
3
3
  import { useIntl, FormattedMessage } from "react-intl";
4
4
  import { forwardRef, useState, useRef, useCallback, useEffect, useMemo, useImperativeHandle } from "react";
5
5
  import { buildExpertFilter, CURVE_EQUIPMENT_TYPES, NOMINAL_VOLTAGE_UNIT } from "./curve-selector-utils.js";
@@ -156,9 +156,9 @@ const EquipmentFilter = forwardRef(
156
156
  []
157
157
  );
158
158
  return /* @__PURE__ */ jsxs(Fragment, { children: [
159
- /* @__PURE__ */ jsxs(Grid2, { container: true, sx: styles.criteria, children: [
160
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(Typography, { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "DynamicSimulationCurveEquipmentType" }) }) }),
161
- /* @__PURE__ */ jsx(Grid2, { size: 8, children: /* @__PURE__ */ jsx(
159
+ /* @__PURE__ */ jsxs(Grid, { container: true, sx: styles.criteria, children: [
160
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(Typography, { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "DynamicSimulationCurveEquipmentType" }) }) }),
161
+ /* @__PURE__ */ jsx(Grid, { size: 8, children: /* @__PURE__ */ jsx(
162
162
  Select,
163
163
  {
164
164
  labelId: "DynamicSimulationCurveEquipmentType",
@@ -170,9 +170,9 @@ const EquipmentFilter = forwardRef(
170
170
  }
171
171
  ) })
172
172
  ] }),
173
- /* @__PURE__ */ jsxs(Grid2, { container: true, sx: styles.criteria, children: [
174
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(Typography, { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "DynamicSimulationCurvePost" }) }) }),
175
- /* @__PURE__ */ jsx(Grid2, { size: 8, children: /* @__PURE__ */ jsx(
173
+ /* @__PURE__ */ jsxs(Grid, { container: true, sx: styles.criteria, children: [
174
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(Typography, { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "DynamicSimulationCurvePost" }) }) }),
175
+ /* @__PURE__ */ jsx(Grid, { size: 8, children: /* @__PURE__ */ jsx(
176
176
  CheckboxAutocomplete,
177
177
  {
178
178
  id: "voltage-level",
@@ -185,9 +185,9 @@ const EquipmentFilter = forwardRef(
185
185
  }
186
186
  ) })
187
187
  ] }),
188
- /* @__PURE__ */ jsxs(Grid2, { container: true, sx: styles.criteria, children: [
189
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(Typography, { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "DynamicSimulationCurveCountry" }) }) }),
190
- /* @__PURE__ */ jsx(Grid2, { size: 8, children: /* @__PURE__ */ jsx(
188
+ /* @__PURE__ */ jsxs(Grid, { container: true, sx: styles.criteria, children: [
189
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(Typography, { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "DynamicSimulationCurveCountry" }) }) }),
190
+ /* @__PURE__ */ jsx(Grid, { size: 8, children: /* @__PURE__ */ jsx(
191
191
  CheckboxAutocomplete,
192
192
  {
193
193
  id: "country",
@@ -198,9 +198,9 @@ const EquipmentFilter = forwardRef(
198
198
  }
199
199
  ) })
200
200
  ] }),
201
- /* @__PURE__ */ jsxs(Grid2, { container: true, sx: styles.criteria, children: [
202
- /* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(Typography, { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "DynamicSimulationCurveTension" }) }) }),
203
- /* @__PURE__ */ jsx(Grid2, { size: 8, children: /* @__PURE__ */ jsx(
201
+ /* @__PURE__ */ jsxs(Grid, { container: true, sx: styles.criteria, children: [
202
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(Typography, { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "DynamicSimulationCurveTension" }) }) }),
203
+ /* @__PURE__ */ jsx(Grid, { size: 8, children: /* @__PURE__ */ jsx(
204
204
  CheckboxAutocomplete,
205
205
  {
206
206
  id: "nominal-voltage",
@@ -1,7 +1,7 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useIntl, FormattedMessage } from "react-intl";
3
3
  import { forwardRef, useState, useRef, useMemo, useCallback, useEffect, useImperativeHandle } from "react";
4
- import { Grid2, Typography, Stack, Box } from "@mui/material";
4
+ import { Grid, Typography, Stack, Box } from "@mui/material";
5
5
  import CheckboxSelect from "../common/checkbox-select.js";
6
6
  import CheckboxTreeview from "../common/checkbox-treeview.js";
7
7
  import { EquipmentType } from "../../../../../utils/types/equipmentType.js";
@@ -115,9 +115,9 @@ const ModelFilter = forwardRef(
115
115
  return makeGetVariableLabel(intl);
116
116
  }, [intl]);
117
117
  return /* @__PURE__ */ jsxs(Fragment, { children: [
118
- /* @__PURE__ */ jsxs(Grid2, { container: true, sx: styles.model, children: [
119
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsx(Typography, { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "DynamicSimulationCurveModel" }) }) }),
120
- /* @__PURE__ */ jsx(Grid2, { size: 6, children: /* @__PURE__ */ jsx(
118
+ /* @__PURE__ */ jsxs(Grid, { container: true, sx: styles.model, children: [
119
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsx(Typography, { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "DynamicSimulationCurveModel" }) }) }),
120
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsx(
121
121
  CheckboxSelect,
122
122
  {
123
123
  options: initialSelectedModels,
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Stack, Grid2, Tabs, Tab } from "@mui/material";
2
+ import { Stack, Grid, Tabs, Tab } from "@mui/material";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  import "@mui/icons-material";
5
5
  import "react";
@@ -59,8 +59,8 @@ function DynamicSimulationForm({
59
59
  const { formattedProviders } = dynamicSimulationMethods;
60
60
  const { selectedTab, tabsWithError, onTabChange } = useTabsReturn;
61
61
  return /* @__PURE__ */ jsxs(Stack, { sx: parametersStyles.scrollableGrid, children: [
62
- /* @__PURE__ */ jsx(Grid2, { size: 12, children: /* @__PURE__ */ jsx(ProviderParam, { options: formattedProviders, id: "Ds" }) }),
63
- /* @__PURE__ */ jsx(Grid2, { size: 12, children: /* @__PURE__ */ jsxs(Tabs, { value: selectedTab, variant: "scrollable", onChange: onTabChange, "aria-label": "parameters", children: [
62
+ /* @__PURE__ */ jsx(Grid, { size: 12, children: /* @__PURE__ */ jsx(ProviderParam, { options: formattedProviders, id: "Ds" }) }),
63
+ /* @__PURE__ */ jsx(Grid, { size: 12, children: /* @__PURE__ */ jsxs(Tabs, { value: selectedTab, variant: "scrollable", onChange: onTabChange, "aria-label": "parameters", children: [
64
64
  /* @__PURE__ */ jsx(
65
65
  Tab,
66
66
  {
@@ -102,7 +102,7 @@ function DynamicSimulationForm({
102
102
  }
103
103
  )
104
104
  ] }) }),
105
- /* @__PURE__ */ jsxs(Grid2, { container: true, size: 12, sx: { paddingTop: 0, width: "100%", maxHeight: "100%" }, children: [
105
+ /* @__PURE__ */ jsxs(Grid, { container: true, size: 12, sx: { paddingTop: 0, width: "100%", maxHeight: "100%" }, children: [
106
106
  /* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: TabValues.TAB_TIME_DELAY, children: /* @__PURE__ */ jsx(TimeDelayParameters, { path: TabValues.TAB_TIME_DELAY }) }),
107
107
  /* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: TabValues.TAB_SOLVER, children: /* @__PURE__ */ jsx(SolverParameters, { path: TabValues.TAB_SOLVER }) }),
108
108
  /* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: TabValues.TAB_MAPPING, children: /* @__PURE__ */ jsx(MappingParameters, { path: TabValues.TAB_MAPPING }) }),
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { Grid2 } from "@mui/material";
2
+ import { Grid } from "@mui/material";
3
3
  import { MAPPING } from "./mapping-parameters-constants.js";
4
4
  import "../../../../utils/conversionUtils.js";
5
5
  import { ElementType } from "../../../../utils/types/elementType.js";
@@ -38,7 +38,7 @@ import "../../common/contingency-table/contingency-table.js";
38
38
  import "../../common/contingency-table/columns-definitions.js";
39
39
  import "@hookform/resolvers/yup";
40
40
  function MappingParameters({ path }) {
41
- return /* @__PURE__ */ jsx(Grid2, { container: true, children: /* @__PURE__ */ jsx(
41
+ return /* @__PURE__ */ jsx(Grid, { container: true, children: /* @__PURE__ */ jsx(
42
42
  ParameterLineDirectoryItemsInput,
43
43
  {
44
44
  name: `${path}.${MAPPING}`,
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { Grid2 } from "@mui/material";
2
+ import { Grid } from "@mui/material";
3
3
  import { Network } from "./network-parameters-constants.js";
4
4
  import "../../../../utils/conversionUtils.js";
5
5
  import "../../../../utils/types/equipmentType.js";
@@ -109,7 +109,7 @@ const params = [
109
109
  }
110
110
  ];
111
111
  function NetworkParameters({ path }) {
112
- return /* @__PURE__ */ jsx(Grid2, { container: true, children: params.map((param) => {
112
+ return /* @__PURE__ */ jsx(Grid, { container: true, children: params.map((param) => {
113
113
  const { name, type, ...otherParams } = param;
114
114
  return /* @__PURE__ */ jsx(ParameterField, { id: path, name: param.name, type: param.type, ...otherParams }, param.name);
115
115
  }) });
@@ -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 { useEffect } from "react";
4
4
  import { useFormContext, useWatch } from "react-hook-form";
5
5
  import { SolverType } from "../../../../utils/types/dynamic-simulation.type.js";
@@ -38,7 +38,7 @@ function SolverParameters({ path }) {
38
38
  sx: { width: "100%" }
39
39
  }
40
40
  ];
41
- return /* @__PURE__ */ jsxs(Grid2, { container: true, children: [
41
+ return /* @__PURE__ */ jsxs(Grid, { container: true, children: [
42
42
  params.map((param) => {
43
43
  const { name, type, ...otherParams } = param;
44
44
  return /* @__PURE__ */ jsx(ParameterField, { id: path, name: param.name, type: param.type, ...otherParams }, param.name);
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { Grid2 } from "@mui/material";
2
+ import { Grid } from "@mui/material";
3
3
  import "../../../../utils/conversionUtils.js";
4
4
  import "../../../../utils/types/equipmentType.js";
5
5
  import { ParameterType } from "../../../../utils/types/parameters.type.js";
@@ -19,7 +19,7 @@ const params = [
19
19
  }
20
20
  ];
21
21
  function TimeDelayParameters({ path }) {
22
- return /* @__PURE__ */ jsx(Grid2, { container: true, children: params.map((param) => {
22
+ return /* @__PURE__ */ jsx(Grid, { container: true, children: params.map((param) => {
23
23
  const { name, type, ...otherParams } = param;
24
24
  return /* @__PURE__ */ jsx(ParameterField, { id: path, name: param.name, type: param.type, ...otherParams }, param.name);
25
25
  }) });
@@ -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 { TabValues } from "./load-flow-parameters-utils.js";
4
4
  import LoadFlowAdvancedParameters from "./load-flow-advanced-parameters.js";
5
5
  import LoadFlowGeneralParameters from "./load-flow-general-parameters.js";
@@ -63,9 +63,9 @@ function LoadFlowParametersContent({
63
63
  params,
64
64
  defaultLimitReductions
65
65
  }) {
66
- return /* @__PURE__ */ jsx(Box, { sx: styles.wrapper, children: /* @__PURE__ */ jsx(Grid2, { container: true, sx: styles.container, children: /* @__PURE__ */ jsxs(Grid2, { sx: styles.maxWidth, children: [
66
+ return /* @__PURE__ */ jsx(Box, { sx: styles.wrapper, children: /* @__PURE__ */ jsx(Grid, { container: true, sx: styles.container, children: /* @__PURE__ */ jsxs(Grid, { sx: styles.maxWidth, children: [
67
67
  /* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: TabValues.GENERAL, children: /* @__PURE__ */ jsx(LoadFlowGeneralParameters, {}) }),
68
- /* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: TabValues.LIMIT_REDUCTIONS, children: /* @__PURE__ */ jsx(Grid2, { container: true, sx: { width: "100%" }, children: currentProvider === PARAM_PROVIDER_OPENLOADFLOW ? /* @__PURE__ */ jsx(LimitReductionsTableForm, { limits: params?.limitReductions ?? defaultLimitReductions }) : /* @__PURE__ */ jsx(
68
+ /* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: TabValues.LIMIT_REDUCTIONS, children: /* @__PURE__ */ jsx(Grid, { container: true, sx: { width: "100%" }, children: currentProvider === PARAM_PROVIDER_OPENLOADFLOW ? /* @__PURE__ */ jsx(LimitReductionsTableForm, { limits: params?.limitReductions ?? defaultLimitReductions }) : /* @__PURE__ */ jsx(
69
69
  ParameterLineSlider,
70
70
  {
71
71
  name: PARAM_LIMIT_REDUCTION,
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { Grid2, LinearProgress } from "@mui/material";
2
+ import { Grid, LinearProgress } from "@mui/material";
3
3
  import { CustomMuiDialog } from "../../../components/ui/dialogs/customMuiDialog/CustomMuiDialog.js";
4
4
  import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
5
5
  import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
@@ -81,7 +81,7 @@ function LoadFlowParametersEditionDialog({
81
81
  titleId,
82
82
  disabledSave: isDisabledValidationButton(errors),
83
83
  children: /* @__PURE__ */ jsxs(LoadFlowProvider, { children: [
84
- /* @__PURE__ */ jsx(Grid2, { container: true, sx: { width: "100%" }, children: /* @__PURE__ */ jsx(
84
+ /* @__PURE__ */ jsx(Grid, { container: true, sx: { width: "100%" }, children: /* @__PURE__ */ jsx(
85
85
  NameElementEditorForm,
86
86
  {
87
87
  initialElementName: name,
@@ -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 LoadFlowParametersHeader from "./load-flow-parameters-header.js";
4
4
  import LoadFlowParametersContent from "./load-flow-parameters-content.js";
5
5
  import { parametersStyles } from "../parameters-style.js";
@@ -14,8 +14,8 @@ function LoadFlowParametersForm({ loadflowMethods }) {
14
14
  watchProvider,
15
15
  defaultLimitReductions
16
16
  } = loadflowMethods;
17
- return /* @__PURE__ */ jsxs(Grid2, { container: true, sx: parametersStyles.scrollableGrid, children: [
18
- /* @__PURE__ */ jsx(Grid2, { size: 12, children: /* @__PURE__ */ jsx(
17
+ return /* @__PURE__ */ jsxs(Grid, { container: true, sx: parametersStyles.scrollableGrid, children: [
18
+ /* @__PURE__ */ jsx(Grid, { size: 12, children: /* @__PURE__ */ jsx(
19
19
  LoadFlowParametersHeader,
20
20
  {
21
21
  selectedTab,
@@ -25,7 +25,7 @@ function LoadFlowParametersForm({ loadflowMethods }) {
25
25
  disableSpecificProviderParams: !watchProvider || !specificParametersDescriptionForProvider
26
26
  }
27
27
  ) }),
28
- /* @__PURE__ */ jsx(Grid2, { size: 12, children: /* @__PURE__ */ jsx(
28
+ /* @__PURE__ */ jsx(Grid, { size: 12, children: /* @__PURE__ */ jsx(
29
29
  LoadFlowParametersContent,
30
30
  {
31
31
  selectedTab,
@@ -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 { FormattedMessage } from "react-intl";
4
4
  import { useState, useEffect } from "react";
5
5
  import { MAP_BASE_MAP, NetworkVisualizationTabValues, PARAM_MAP_BASEMAP, PARAM_LINE_FULL_PATH, PARAM_LINE_PARALLEL_PATH, INTL_LINE_FLOW_MODE_OPTIONS, LINE_FLOW_MODE, PARAM_LINE_FLOW_MODE, MAP_MANUAL_REFRESH, PARAM_MAP_MANUAL_REFRESH } from "./constants.js";
@@ -52,12 +52,12 @@ function MapParameters() {
52
52
  });
53
53
  }, [setBaseMapOptions, snackError]);
54
54
  const lineSwitch = (name, label) => /* @__PURE__ */ jsxs(Fragment, { children: [
55
- /* @__PURE__ */ jsx(Grid2, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
56
- /* @__PURE__ */ jsx(Grid2, { container: true, size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(SwitchInput, { name: `${NetworkVisualizationTabValues.MAP}.${name}` }) })
55
+ /* @__PURE__ */ jsx(Grid, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
56
+ /* @__PURE__ */ jsx(Grid, { container: true, size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(SwitchInput, { name: `${NetworkVisualizationTabValues.MAP}.${name}` }) })
57
57
  ] });
58
58
  const lineFlow = (name, label, options) => /* @__PURE__ */ jsxs(Fragment, { children: [
59
- /* @__PURE__ */ jsx(Grid2, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
60
- /* @__PURE__ */ jsx(Grid2, { size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
59
+ /* @__PURE__ */ jsx(Grid, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
60
+ /* @__PURE__ */ jsx(Grid, { size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
61
61
  MuiSelectInput,
62
62
  {
63
63
  fullWidth: true,
@@ -68,8 +68,8 @@ function MapParameters() {
68
68
  ) })
69
69
  ] });
70
70
  const mapBaseMap = /* @__PURE__ */ jsxs(Fragment, { children: [
71
- /* @__PURE__ */ jsx(Grid2, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: MAP_BASE_MAP }) }),
72
- /* @__PURE__ */ jsx(Grid2, { size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
71
+ /* @__PURE__ */ jsx(Grid, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: MAP_BASE_MAP }) }),
72
+ /* @__PURE__ */ jsx(Grid, { size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
73
73
  MuiSelectInput,
74
74
  {
75
75
  fullWidth: true,
@@ -80,7 +80,7 @@ function MapParameters() {
80
80
  ) })
81
81
  ] });
82
82
  return /* @__PURE__ */ jsxs(
83
- Grid2,
83
+ Grid,
84
84
  {
85
85
  container: true,
86
86
  spacing: 1,
@@ -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 { FormattedMessage } from "react-intl";
4
4
  import { NAD_POSITIONS_GENERATION_MODE_LABEL, NetworkVisualizationTabValues, PARAM_NAD_POSITIONS_GENERATION_MODE, NAD_POSITIONS_GENERATION_MODE } from "./constants.js";
5
5
  import { parametersStyles } from "../parameters-style.js";
@@ -34,7 +34,7 @@ import "react-resizable-panels";
34
34
  import "react-papaparse";
35
35
  function NetworkAreaDiagramParameters() {
36
36
  return /* @__PURE__ */ jsxs(
37
- Grid2,
37
+ Grid,
38
38
  {
39
39
  container: true,
40
40
  spacing: 1,
@@ -42,8 +42,8 @@ function NetworkAreaDiagramParameters() {
42
42
  marginTop: -3,
43
43
  justifyContent: "space-between",
44
44
  children: [
45
- /* @__PURE__ */ jsx(Grid2, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: NAD_POSITIONS_GENERATION_MODE_LABEL }) }),
46
- /* @__PURE__ */ jsx(Grid2, { container: true, size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
45
+ /* @__PURE__ */ jsx(Grid, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: NAD_POSITIONS_GENERATION_MODE_LABEL }) }),
46
+ /* @__PURE__ */ jsx(Grid, { container: true, size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
47
47
  MuiSelectInput,
48
48
  {
49
49
  fullWidth: true,
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid2, LinearProgress } from "@mui/material";
2
+ import { Grid, LinearProgress } from "@mui/material";
3
3
  import { CustomMuiDialog } from "../../../components/ui/dialogs/customMuiDialog/CustomMuiDialog.js";
4
4
  import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
5
5
  import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
@@ -67,14 +67,16 @@ function NetworkVisualizationsParametersEditionDialog({
67
67
  },
68
68
  titleId,
69
69
  disabledSave: isDisabledValidationButton(errors),
70
- PaperProps: {
71
- sx: {
72
- height: "65vh"
73
- // we want the dialog height to be fixed even when switching tabs
70
+ slotProps: {
71
+ paper: {
72
+ sx: {
73
+ height: "65vh"
74
+ // we want the dialog height to be fixed even when switching tabs
75
+ }
74
76
  }
75
77
  },
76
78
  children: [
77
- /* @__PURE__ */ jsx(Grid2, { container: true, sx: { width: "100%" }, children: /* @__PURE__ */ jsx(
79
+ /* @__PURE__ */ jsx(Grid, { container: true, sx: { width: "100%" }, children: /* @__PURE__ */ jsx(
78
80
  NameElementEditorForm,
79
81
  {
80
82
  initialElementName: name,
@@ -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 { FormattedMessage } from "react-intl";
5
5
  import { INTL_SUBSTATION_LAYOUT_OPTIONS, SUBSTATION_LAYOUT, NetworkVisualizationTabValues, PARAM_SUBSTATION_LAYOUT, COMPONENT_LIBRARY, PARAM_COMPONENT_LIBRARY, DIAGONAL_LABEL, PARAM_DIAGONAL_LABEL, CENTER_LABEL, PARAM_CENTER_LABEL, CUSTOM_REAL_TIME_STATE_ESTIMATION, PARAM_STATE_ESTIMATION } from "./constants.js";
@@ -42,12 +42,12 @@ function SingleLineDiagramParameters({ componentLibraries }) {
42
42
  return INTL_SUBSTATION_LAYOUT_OPTIONS;
43
43
  }, []);
44
44
  const labelPosition = (name, label) => /* @__PURE__ */ jsxs(Fragment, { children: [
45
- /* @__PURE__ */ jsx(Grid2, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
46
- /* @__PURE__ */ jsx(Grid2, { container: true, size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(SwitchInput, { name: `${NetworkVisualizationTabValues.SINGLE_LINE_DIAGRAM}.${name}` }) })
45
+ /* @__PURE__ */ jsx(Grid, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
46
+ /* @__PURE__ */ jsx(Grid, { container: true, size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(SwitchInput, { name: `${NetworkVisualizationTabValues.SINGLE_LINE_DIAGRAM}.${name}` }) })
47
47
  ] });
48
48
  const substationLineDropDown = /* @__PURE__ */ jsxs(Fragment, { children: [
49
- /* @__PURE__ */ jsx(Grid2, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: SUBSTATION_LAYOUT }) }),
50
- /* @__PURE__ */ jsx(Grid2, { size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
49
+ /* @__PURE__ */ jsx(Grid, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: SUBSTATION_LAYOUT }) }),
50
+ /* @__PURE__ */ jsx(Grid, { size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
51
51
  MuiSelectInput,
52
52
  {
53
53
  fullWidth: true,
@@ -58,8 +58,8 @@ function SingleLineDiagramParameters({ componentLibraries }) {
58
58
  ) })
59
59
  ] });
60
60
  const componentLineDropDown = /* @__PURE__ */ jsxs(Fragment, { children: [
61
- /* @__PURE__ */ jsx(Grid2, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: COMPONENT_LIBRARY }) }),
62
- /* @__PURE__ */ jsx(Grid2, { size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
61
+ /* @__PURE__ */ jsx(Grid, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: COMPONENT_LIBRARY }) }),
62
+ /* @__PURE__ */ jsx(Grid, { size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
63
63
  MuiSelectInput,
64
64
  {
65
65
  fullWidth: true,
@@ -72,7 +72,7 @@ function SingleLineDiagramParameters({ componentLibraries }) {
72
72
  ) })
73
73
  ] });
74
74
  return /* @__PURE__ */ jsxs(
75
- Grid2,
75
+ Grid,
76
76
  {
77
77
  container: true,
78
78
  spacing: 1,
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid2, LinearProgress } from "@mui/material";
2
+ import { Grid, LinearProgress } from "@mui/material";
3
3
  import { CustomMuiDialog } from "../../../components/ui/dialogs/customMuiDialog/CustomMuiDialog.js";
4
4
  import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
5
5
  import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
@@ -65,14 +65,16 @@ function PccMinParametersEditionDialog({
65
65
  },
66
66
  titleId,
67
67
  disabledSave: isDisabledValidationButton(errors),
68
- PaperProps: {
69
- sx: {
70
- height: "90vh"
71
- // we want the dialog height to be fixed even when switching tabs
68
+ slotProps: {
69
+ paper: {
70
+ sx: {
71
+ height: "90vh"
72
+ // we want the dialog height to be fixed even when switching tabs
73
+ }
72
74
  }
73
75
  },
74
76
  children: [
75
- /* @__PURE__ */ jsx(Grid2, { container: true, sx: { width: "100%" }, children: /* @__PURE__ */ jsx(
77
+ /* @__PURE__ */ jsx(Grid, { container: true, sx: { width: "100%" }, children: /* @__PURE__ */ jsx(
76
78
  NameElementEditorForm,
77
79
  {
78
80
  initialElementName: name,
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { Grid2 } from "@mui/material";
2
+ import { Grid } from "@mui/material";
3
3
  import { ParameterLineDirectoryItemsInput } from "../common/widget/parameter-line-directory-items-input.js";
4
4
  import { FILTERS } from "../../../utils/constants/filterConstant.js";
5
5
  import "../../../utils/conversionUtils.js";
@@ -8,7 +8,7 @@ import { EquipmentType } from "../../../utils/types/equipmentType.js";
8
8
  import "@mui/icons-material";
9
9
  import { parametersStyles } from "../parameters-style.js";
10
10
  function PccMinParametersForm() {
11
- return /* @__PURE__ */ jsx(Grid2, { container: true, sx: parametersStyles.scrollableGrid, children: /* @__PURE__ */ jsx(Grid2, { size: 12, children: /* @__PURE__ */ jsx(
11
+ return /* @__PURE__ */ jsx(Grid, { container: true, sx: parametersStyles.scrollableGrid, children: /* @__PURE__ */ jsx(Grid, { size: 12, children: /* @__PURE__ */ jsx(
12
12
  ParameterLineDirectoryItemsInput,
13
13
  {
14
14
  name: FILTERS,
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid2, LinearProgress } from "@mui/material";
2
+ import { Grid, LinearProgress } from "@mui/material";
3
3
  import "react";
4
4
  import "react-intl";
5
5
  import "../../../utils/conversionUtils.js";
@@ -76,14 +76,16 @@ function SecurityAnalysisParametersDialog({
76
76
  },
77
77
  titleId,
78
78
  disabledSave: isDisabledValidationButton(errors),
79
- PaperProps: {
80
- sx: {
81
- height: "90vh"
82
- // we want the dialog height to be fixed even when switching tabs
79
+ slotProps: {
80
+ paper: {
81
+ sx: {
82
+ height: "90vh"
83
+ // we want the dialog height to be fixed even when switching tabs
84
+ }
83
85
  }
84
86
  },
85
87
  children: [
86
- /* @__PURE__ */ jsx(Grid2, { container: true, sx: { width: "100%" }, children: /* @__PURE__ */ jsx(
88
+ /* @__PURE__ */ jsx(Grid, { container: true, sx: { width: "100%" }, children: /* @__PURE__ */ jsx(
87
89
  NameElementEditorForm,
88
90
  {
89
91
  initialElementName: name,
@@ -1,5 +1,5 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { Grid2, Typography } from "@mui/material";
2
+ import { Grid, Typography } from "@mui/material";
3
3
  import { useIntl } from "react-intl";
4
4
  import { Info } from "@mui/icons-material";
5
5
  import { CustomTooltip } from "../../../components/ui/tooltip/CustomTooltip.js";
@@ -41,10 +41,10 @@ function SecurityAnalysisFields({
41
41
  isSingleField
42
42
  }) {
43
43
  const intl = useIntl();
44
- return /* @__PURE__ */ jsxs(Grid2, { sx: isSingleField ? parametersStyles.singleItem : parametersStyles.multipleItems, children: [
45
- /* @__PURE__ */ jsx(Grid2, { size: 4, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(Typography, { children: intl.formatMessage({ id: label }) }) }),
44
+ return /* @__PURE__ */ jsxs(Grid, { sx: isSingleField ? parametersStyles.singleItem : parametersStyles.multipleItems, children: [
45
+ /* @__PURE__ */ jsx(Grid, { size: 4, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(Typography, { children: intl.formatMessage({ id: label }) }) }),
46
46
  /* @__PURE__ */ jsx(
47
- Grid2,
47
+ Grid,
48
48
  {
49
49
  container: true,
50
50
  size: isSingleField ? 8 : 4,
@@ -61,7 +61,7 @@ function SecurityAnalysisFields({
61
61
  )
62
62
  }
63
63
  ),
64
- !isSingleField && secondField && /* @__PURE__ */ jsx(Grid2, { container: true, size: 4, sx: parametersStyles.secondTextField, children: /* @__PURE__ */ jsx(
64
+ !isSingleField && secondField && /* @__PURE__ */ jsx(Grid, { container: true, size: 4, sx: parametersStyles.secondTextField, children: /* @__PURE__ */ jsx(
65
65
  FloatInput,
66
66
  {
67
67
  name: secondField.name,
@@ -112,7 +112,7 @@ const fieldsToShow = [
112
112
  function ViolationsHidingParameters() {
113
113
  const intl = useIntl();
114
114
  return /* @__PURE__ */ jsxs(Fragment, { children: [
115
- /* @__PURE__ */ jsx(Grid2, { container: true, spacing: 1, paddingBottom: 1, children: /* @__PURE__ */ jsxs(Grid2, { size: 8, sx: parametersStyles.text, children: [
115
+ /* @__PURE__ */ jsx(Grid, { container: true, spacing: 1, paddingBottom: 1, children: /* @__PURE__ */ jsxs(Grid, { size: 8, sx: parametersStyles.text, children: [
116
116
  /* @__PURE__ */ jsx(Typography, { children: intl.formatMessage({
117
117
  id: "securityAnalysis.violationsHiding"
118
118
  }) }),