@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
@@ -78,37 +78,39 @@ function QuickSearch({
78
78
  placeholder: placeholder ? intl.formatMessage({ id: placeholder }) : "",
79
79
  sx: { maxWidth: "500px", ...sx },
80
80
  size: "small",
81
- InputProps: {
82
- endAdornment: /* @__PURE__ */ jsxs(InputAdornment, { sx: { padding: 0.2 }, position: "end", children: [
83
- searchTerm && /* @__PURE__ */ jsx(IconButton, { sx: styles.adornmentItem, onClick: handleClear, children: /* @__PURE__ */ jsx(Clear, {}) }),
84
- resultsCountDisplay && /* @__PURE__ */ jsxs(Fragment, { children: [
85
- /* @__PURE__ */ jsx(Box, { sx: styles.adornmentItem, children: /* @__PURE__ */ jsxs("span", { children: [
86
- currentResultIndex + 1,
87
- "/",
88
- resultCount
89
- ] }) }),
90
- /* @__PURE__ */ jsxs(Box, { children: [
91
- /* @__PURE__ */ jsx(
92
- IconButton,
93
- {
94
- sx: styles.adornmentItem,
95
- onClick: () => onNavigate("previous"),
96
- disabled: resultCount === 0,
97
- children: /* @__PURE__ */ jsx(KeyboardArrowUp, {})
98
- }
99
- ),
100
- /* @__PURE__ */ jsx(
101
- IconButton,
102
- {
103
- sx: styles.adornmentItem,
104
- onClick: () => onNavigate("next"),
105
- disabled: resultCount === 0,
106
- children: /* @__PURE__ */ jsx(KeyboardArrowDown, {})
107
- }
108
- )
81
+ slotProps: {
82
+ input: {
83
+ endAdornment: /* @__PURE__ */ jsxs(InputAdornment, { sx: { padding: 0.2 }, position: "end", children: [
84
+ searchTerm && /* @__PURE__ */ jsx(IconButton, { sx: styles.adornmentItem, onClick: handleClear, children: /* @__PURE__ */ jsx(Clear, {}) }),
85
+ resultsCountDisplay && /* @__PURE__ */ jsxs(Fragment, { children: [
86
+ /* @__PURE__ */ jsx(Box, { sx: styles.adornmentItem, children: /* @__PURE__ */ jsxs("span", { children: [
87
+ currentResultIndex + 1,
88
+ "/",
89
+ resultCount
90
+ ] }) }),
91
+ /* @__PURE__ */ jsxs(Box, { children: [
92
+ /* @__PURE__ */ jsx(
93
+ IconButton,
94
+ {
95
+ sx: styles.adornmentItem,
96
+ onClick: () => onNavigate("previous"),
97
+ disabled: resultCount === 0,
98
+ children: /* @__PURE__ */ jsx(KeyboardArrowUp, {})
99
+ }
100
+ ),
101
+ /* @__PURE__ */ jsx(
102
+ IconButton,
103
+ {
104
+ sx: styles.adornmentItem,
105
+ onClick: () => onNavigate("next"),
106
+ disabled: resultCount === 0,
107
+ children: /* @__PURE__ */ jsx(KeyboardArrowDown, {})
108
+ }
109
+ )
110
+ ] })
109
111
  ] })
110
112
  ] })
111
- ] })
113
+ }
112
114
  }
113
115
  }
114
116
  );
@@ -1,7 +1,7 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { memo, useState, useRef, useMemo, useEffect, useCallback } from "react";
3
3
  import { useIntl } from "react-intl";
4
- import { useTheme, Box, Chip, alpha } from "@mui/material";
4
+ import { useTheme, Box, Chip } from "@mui/material";
5
5
  import { Visibility, VisibilityOff } from "@mui/icons-material";
6
6
  import { getDefaultSeverityFilter, REPORT_SEVERITY } from "../../report-severity.js";
7
7
  import { QuickSearch } from "../../QuickSearch.js";
@@ -65,7 +65,7 @@ const chipStyle = (severity, severityFilter, theme) => ({
65
65
  cursor: "pointer",
66
66
  border: `1px solid ${theme.palette.divider}`,
67
67
  "&:hover": {
68
- backgroundColor: alpha(REPORT_SEVERITY[severity].colorHexCode, 0.5)
68
+ backgroundColor: theme.alpha(REPORT_SEVERITY[severity].colorHexCode, 0.5)
69
69
  },
70
70
  "& .MuiChip-deleteIcon": {
71
71
  color: theme.palette.text.primary,
@@ -1,7 +1,7 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useState, useCallback } from "react";
3
3
  import { useIntl, FormattedMessage } from "react-intl";
4
- import { Grid2, Tooltip, Typography, Button } from "@mui/material";
4
+ import { Grid, Tooltip, Typography, Button } from "@mui/material";
5
5
  import { useCSVReader } from "react-papaparse";
6
6
  import "../../../utils/conversionUtils.js";
7
7
  import "../../../utils/types/equipmentType.js";
@@ -74,9 +74,9 @@ function CsvPicker({
74
74
  ...parseConfig
75
75
  },
76
76
  onUploadAccepted: handleUploadAccepted,
77
- children: ({ getRootProps }) => /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 1, alignItems: "center", justifyContent: "right", wrap: "nowrap", children: [
78
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(Tooltip, { title: selectedFile?.name, children: /* @__PURE__ */ jsx(Typography, { sx: { fontWeight: "bold", overflow: "hidden", textOverflow: "ellipsis" }, children: selectedFile ? selectedFile.name : /* @__PURE__ */ jsx(FormattedMessage, { id: "uploadMessage" }) }) }) }),
79
- /* @__PURE__ */ jsx(Grid2, { size: "auto", children: /* @__PURE__ */ jsx(
77
+ children: ({ getRootProps }) => /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, alignItems: "center", justifyContent: "right", wrap: "nowrap", children: [
78
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(Tooltip, { title: selectedFile?.name, children: /* @__PURE__ */ jsx(Typography, { sx: { fontWeight: "bold", overflow: "hidden", textOverflow: "ellipsis" }, children: selectedFile ? selectedFile.name : /* @__PURE__ */ jsx(FormattedMessage, { id: "uploadMessage" }) }) }) }),
79
+ /* @__PURE__ */ jsx(Grid, { size: "auto", children: /* @__PURE__ */ jsx(
80
80
  Button,
81
81
  {
82
82
  ...getRootProps(),
@@ -1,7 +1,7 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useIntl, FormattedMessage } from "react-intl";
3
3
  import { useState, useCallback, useEffect } from "react";
4
- import { Stack, Grid2, Button, Typography, Box, CircularProgress } from "@mui/material";
4
+ import { Stack, Grid, Button, Typography, Box, CircularProgress } from "@mui/material";
5
5
  import { useForm } from "react-hook-form";
6
6
  import { yupResolver } from "@hookform/resolvers/yup";
7
7
  import * as yup from "yup";
@@ -187,13 +187,13 @@ function ElementSaveDialog({
187
187
  );
188
188
  const renderChooser = () => {
189
189
  if (isCreateMode) {
190
- return /* @__PURE__ */ jsxs(Grid2, { container: true, children: [
191
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(Button, { onClick: handleChangeFolder, variant: "contained", size: "small", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "showSelectDirectoryDialog" }) }) }),
190
+ return /* @__PURE__ */ jsxs(Grid, { container: true, children: [
191
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(Button, { onClick: handleChangeFolder, variant: "contained", size: "small", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "showSelectDirectoryDialog" }) }) }),
192
192
  /* @__PURE__ */ jsx(Typography, { m: 1, component: "span", children: /* @__PURE__ */ jsx(Box, { fontWeight: "fontWeightBold", children: destinationFolder ? destinationFolder.name : /* @__PURE__ */ jsx(CircularProgress, {}) }) })
193
193
  ] });
194
194
  }
195
- return /* @__PURE__ */ jsxs(Grid2, { container: true, children: [
196
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(Button, { onClick: handleChangeFolder, variant: "contained", size: "small", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "showSelectDirectoryItemDialog" }) }) }),
195
+ return /* @__PURE__ */ jsxs(Grid, { container: true, children: [
196
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(Button, { onClick: handleChangeFolder, variant: "contained", size: "small", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "showSelectDirectoryItemDialog" }) }) }),
197
197
  /* @__PURE__ */ jsx(Typography, { m: 1, component: "span", children: /* @__PURE__ */ jsx(Box, { fontWeight: "fontWeightBold", children: selectedItem ? selectedItem.fullPath : null }) })
198
198
  ] });
199
199
  };
@@ -208,7 +208,7 @@ function ElementSaveDialog({
208
208
  formContext: { ...formMethods, validationSchema: schema },
209
209
  children: [
210
210
  /* @__PURE__ */ jsxs(Stack, { spacing: 2, marginTop: "auto", children: [
211
- !createOnlyMode && /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
211
+ !createOnlyMode && /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(
212
212
  RadioInput,
213
213
  {
214
214
  name: FieldConstants.OPERATION_TYPE,
@@ -225,7 +225,7 @@ function ElementSaveDialog({
225
225
  }
226
226
  }
227
227
  ) }),
228
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
228
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(
229
229
  UniqueNameInput,
230
230
  {
231
231
  name: FieldConstants.NAME,
@@ -236,7 +236,7 @@ function ElementSaveDialog({
236
236
  autoFocus: true
237
237
  }
238
238
  ) }),
239
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(DescriptionField, {}) }),
239
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(DescriptionField, {}) }),
240
240
  renderChooser()
241
241
  ] }),
242
242
  /* @__PURE__ */ jsx(
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useState, useEffect } from "react";
3
- import { Grid2, Typography, Box, Button } from "@mui/material";
3
+ import { Grid, Typography, Box, Button } from "@mui/material";
4
4
  import { useIntl, FormattedMessage } from "react-intl";
5
5
  import { useController } from "react-hook-form";
6
6
  import { FolderOutlined } from "@mui/icons-material";
@@ -47,14 +47,14 @@ function ModifyElementSelection(props) {
47
47
  setOpen(false);
48
48
  };
49
49
  return /* @__PURE__ */ jsxs(
50
- Grid2,
50
+ Grid,
51
51
  {
52
52
  sx: {
53
53
  marginTop: "10px",
54
54
  alignItems: "center"
55
55
  },
56
56
  children: [
57
- /* @__PURE__ */ jsxs(Grid2, { container: true, children: [
57
+ /* @__PURE__ */ jsxs(Grid, { container: true, children: [
58
58
  /* @__PURE__ */ jsx(Typography, { m: 1, component: "span", children: /* @__PURE__ */ jsxs(Box, { fontWeight: "fontWeightBold", display: "flex", justifyContent: "center", alignItems: "center", children: [
59
59
  /* @__PURE__ */ jsx(FolderOutlined, {}),
60
60
  /* @__PURE__ */ jsxs("span", { children: [
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { Grid2, Stack } from "@mui/material";
2
+ import { Grid, Stack } from "@mui/material";
3
3
  import { DescriptionField } from "../../reactHookForm/text/DescriptionField.js";
4
4
  import { UniqueNameInput } from "../../reactHookForm/text/UniqueNameInput.js";
5
5
  import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
@@ -12,8 +12,8 @@ function NameElementEditorForm({
12
12
  activeDirectory,
13
13
  elementType
14
14
  }) {
15
- return /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsxs(Stack, { spacing: 2, marginBottom: "8px", children: [
16
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
15
+ return /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsxs(Stack, { spacing: 2, marginBottom: "8px", children: [
16
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(
17
17
  UniqueNameInput,
18
18
  {
19
19
  name: FieldConstants.NAME,
@@ -25,7 +25,7 @@ function NameElementEditorForm({
25
25
  fullWidth: false
26
26
  }
27
27
  ) }),
28
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(DescriptionField, { expandingTextSx: elementEditionStyles.description }) })
28
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(DescriptionField, { expandingTextSx: elementEditionStyles.description }) })
29
29
  ] }) });
30
30
  }
31
31
  export {
@@ -28,7 +28,9 @@ function SelectClearable(props) {
28
28
  label
29
29
  })
30
30
  },
31
- inputProps: { ...inputProps, readOnly: true }
31
+ slotProps: {
32
+ htmlInput: { ...inputProps, readOnly: true }
33
+ }
32
34
  }
33
35
  ),
34
36
  options,
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useState } from "react";
3
- import { styled, Popper, autocompleteClasses, Autocomplete, TextField, lighten } from "@mui/material";
3
+ import { styled, Popper, autocompleteClasses, Autocomplete, TextField } from "@mui/material";
4
4
  import { useIntl } from "react-intl";
5
5
  import VirtualizedList from "./virtualized-list.js";
6
6
  import CheckboxItem from "./checkbox-item.js";
@@ -17,7 +17,7 @@ const styles = {
17
17
  height: "inherit",
18
18
  zIndex: 20,
19
19
  // jump up to avoid input zone pushed down below component
20
- backgroundColor: lighten(theme.palette.background.default, 0.16)
20
+ backgroundColor: theme.lighten(theme.palette.background.default, 0.16)
21
21
  },
22
22
  "&.Mui-focused": {
23
23
  ".MuiInputLabel-root": {
@@ -105,19 +105,21 @@ function CheckboxAutocomplete({
105
105
  disableCloseOnSelect: true,
106
106
  size: "small",
107
107
  disableListWrap: true,
108
- PopperComponent: StyledPopper,
109
108
  options,
110
109
  noOptionsText: intl.formatMessage({ id: "noOption" }),
111
110
  getOptionLabel,
112
111
  ...otherProps,
113
112
  limitTags: 1,
114
113
  multiple: true,
115
- ListboxComponent: virtualize ? VirtualizedList : void 0,
116
114
  renderInput,
117
115
  renderOption,
118
116
  inputValue,
119
117
  onChange: handleChange,
120
- onBlur: handleBlur
118
+ onBlur: handleBlur,
119
+ slots: { popper: StyledPopper },
120
+ slotProps: {
121
+ listbox: { component: virtualize ? VirtualizedList : void 0 }
122
+ }
121
123
  }
122
124
  );
123
125
  }
@@ -48,8 +48,10 @@ function CheckboxNullableInput({
48
48
  indeterminate: nullDisabled ? void 0 : value === null,
49
49
  onChange: handleChangeValue,
50
50
  value: "checked",
51
- inputProps: {
52
- "aria-label": "primary checkbox"
51
+ slotProps: {
52
+ input: {
53
+ "aria-label": "primary checkbox"
54
+ }
53
55
  },
54
56
  ...formProps
55
57
  }
@@ -78,7 +78,9 @@ function AutocompleteInput({
78
78
  })
79
79
  },
80
80
  inputRef: ref,
81
- inputProps: { ...inputProps, readOnly },
81
+ slotProps: {
82
+ htmlInput: { ...inputProps, readOnly }
83
+ },
82
84
  helperText: previousValue && /* @__PURE__ */ jsx(
83
85
  HelperPreviousValue,
84
86
  {
@@ -34,7 +34,7 @@ function MultipleAutocompleteInput({ name, ...props }) {
34
34
  onBlur: handleOnBlur,
35
35
  blurOnSelect: false,
36
36
  multiple: true,
37
- ChipProps: { size: "small" },
37
+ slotProps: { chip: { size: "small" } },
38
38
  ...props
39
39
  }
40
40
  );
@@ -28,7 +28,7 @@ function BooleanInput({
28
28
  checked: value,
29
29
  onChange: handleChangeValue,
30
30
  inputRef: ref,
31
- inputProps: { "aria-label": "primary checkbox" },
31
+ slotProps: { input: { "aria-label": "primary checkbox" } },
32
32
  ...otherFormProps,
33
33
  ...props
34
34
  }
@@ -111,18 +111,20 @@ function ChipItemsInput({ label, name, hideErrorMessage }) {
111
111
  TextField,
112
112
  {
113
113
  variant: "standard",
114
- InputProps: {
115
- disableUnderline: true,
116
- style: {
117
- marginTop: "5px",
118
- height: "30px",
119
- marginLeft: "10px"
120
- }
121
- },
122
114
  value: textEntered,
123
115
  onKeyDown: keyPress,
124
116
  onChange: handleChange,
125
- onBlur
117
+ onBlur,
118
+ slotProps: {
119
+ input: {
120
+ disableUnderline: true,
121
+ style: {
122
+ marginTop: "5px",
123
+ height: "30px",
124
+ marginLeft: "10px"
125
+ }
126
+ }
127
+ }
126
128
  }
127
129
  )
128
130
  ] }),
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Box, Stack, Grid2, Tooltip, Typography, FormHelperText, Button } from "@mui/material";
2
+ import { Box, Stack, Grid, Tooltip, Typography, FormHelperText, Button } from "@mui/material";
3
3
  import { useIntl, FormattedMessage } from "react-intl";
4
4
  import { useState, useMemo, useCallback } from "react";
5
5
  import { useController } from "react-hook-form";
@@ -37,9 +37,9 @@ function DirectoryItemInput({ name, types, ...props }) {
37
37
  );
38
38
  return /* @__PURE__ */ jsxs(Box, { children: [
39
39
  /* @__PURE__ */ jsxs(Stack, { direction: "row", alignItems: "center", justifyContent: "space-between", children: [
40
- /* @__PURE__ */ jsxs(Grid2, { container: true, alignItems: "center", children: [
41
- /* @__PURE__ */ jsx(Grid2, { paddingTop: 1, children: /* @__PURE__ */ jsx(FolderOutlined, {}) }),
42
- /* @__PURE__ */ jsx(Grid2, { paddingTop: 1, paddingLeft: 1, children: /* @__PURE__ */ jsx(
40
+ /* @__PURE__ */ jsxs(Grid, { container: true, alignItems: "center", children: [
41
+ /* @__PURE__ */ jsx(Grid, { paddingTop: 1, children: /* @__PURE__ */ jsx(FolderOutlined, {}) }),
42
+ /* @__PURE__ */ jsx(Grid, { paddingTop: 1, paddingLeft: 1, children: /* @__PURE__ */ jsx(
43
43
  Tooltip,
44
44
  {
45
45
  title: nodeInfos?.[DIRECTORY_ITEM_FULL_PATH] ?? "",
@@ -54,7 +54,7 @@ function DirectoryItemInput({ name, types, ...props }) {
54
54
  children: /* @__PURE__ */ jsx(Typography, { fontWeight: breadcrumb ? void 0 : "bold", noWrap: true, children: breadcrumb || /* @__PURE__ */ jsx(FormattedMessage, { id: getAbsenceLabelKeyFromType(types?.[0]) }) })
55
55
  }
56
56
  ) }),
57
- /* @__PURE__ */ jsx(Grid2, { paddingTop: 1, paddingLeft: 1, children: error?.message && /* @__PURE__ */ jsx(FormHelperText, { error: true, children: intl.formatMessage({ id: error?.message }) }) })
57
+ /* @__PURE__ */ jsx(Grid, { paddingTop: 1, paddingLeft: 1, children: error?.message && /* @__PURE__ */ jsx(FormHelperText, { error: true, children: intl.formatMessage({ id: error?.message }) }) })
58
58
  ] }),
59
59
  /* @__PURE__ */ jsx(Button, { onClick: () => setIsOpen(true), variant: "contained", color: "primary", component: "label", children: /* @__PURE__ */ jsx(FormattedMessage, { id: breadcrumb ? "edit" : "Select" }) })
60
60
  ] }),
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { Grid2, Alert } from "@mui/material";
2
+ import { Grid, Alert } from "@mui/material";
3
3
  function FieldErrorAlert({ message }) {
4
- return /* @__PURE__ */ jsx(Grid2, { size: 12, children: /* @__PURE__ */ jsx(Alert, { severity: "error", children: message }) });
4
+ return /* @__PURE__ */ jsx(Grid, { size: 12, children: /* @__PURE__ */ jsx(Alert, { severity: "error", children: message }) });
5
5
  }
6
6
  export {
7
7
  FieldErrorAlert
@@ -1,7 +1,7 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useState } from "react";
3
3
  import { useIntl } from "react-intl";
4
- import { Grid2, IconButton } from "@mui/material";
4
+ import { Grid, IconButton } from "@mui/material";
5
5
  import { RestoreFromTrash, Delete } from "@mui/icons-material";
6
6
  import { CustomTooltip } from "../../tooltip/CustomTooltip.js";
7
7
  function DeletableRow({
@@ -14,7 +14,7 @@ function DeletableRow({
14
14
  const intl = useIntl();
15
15
  const [isMouseHover, setIsMouseHover] = useState(false);
16
16
  return /* @__PURE__ */ jsxs(
17
- Grid2,
17
+ Grid,
18
18
  {
19
19
  container: true,
20
20
  spacing: 2,
@@ -24,7 +24,7 @@ function DeletableRow({
24
24
  onMouseLeave: () => setIsMouseHover(false),
25
25
  children: [
26
26
  children,
27
- /* @__PURE__ */ jsx(Grid2, { size: 1, children: isMouseHover && !disabledDeletion && /* @__PURE__ */ jsx(
27
+ /* @__PURE__ */ jsx(Grid, { size: 1, children: isMouseHover && !disabledDeletion && /* @__PURE__ */ jsx(
28
28
  CustomTooltip,
29
29
  {
30
30
  title: intl.formatMessage({
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useFieldArray } from "react-hook-form";
3
- import { Grid2 } from "@mui/material";
3
+ import { Grid } from "@mui/material";
4
4
  import { forwardRef, useImperativeHandle } from "react";
5
5
  import { DeletableRow } from "./DeletableRow.js";
6
6
  import { ErrorInput } from "../errorManagement/ErrorInput.js";
@@ -40,8 +40,8 @@ const ExpandableInput = forwardRef(
40
40
  }),
41
41
  [append, replace]
42
42
  );
43
- return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
44
- /* @__PURE__ */ jsx(Grid2, { size: 12, children: /* @__PURE__ */ jsx(ErrorInput, { name, InputField: MidFormError }) }),
43
+ return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
44
+ /* @__PURE__ */ jsx(Grid, { size: 12, children: /* @__PURE__ */ jsx(ErrorInput, { name, InputField: MidFormError }) }),
45
45
  watchProps && values.map((value, idx) => /* @__PURE__ */ jsx(
46
46
  DeletableRow,
47
47
  {
@@ -58,7 +58,7 @@ const ExpandableInput = forwardRef(
58
58
  },
59
59
  value.id
60
60
  )),
61
- addButtonLabel && /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(AddButton, { disabled, onClick: () => append(initialValue), label: addButtonLabel }) })
61
+ addButtonLabel && /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(AddButton, { disabled, onClick: () => append(initialValue), label: addButtonLabel }) })
62
62
  ] });
63
63
  }
64
64
  );
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useWatch } from "react-hook-form";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  import { useMemo } from "react";
5
- import { FormControl, InputLabel, Grid2 } from "@mui/material";
5
+ import { FormControl, InputLabel, Grid } from "@mui/material";
6
6
  import * as yup from "yup";
7
7
  import { FloatInput } from "./FloatInput.js";
8
8
  import { MuiSelectInput } from "../selectInputs/MuiSelectInput.js";
@@ -51,8 +51,8 @@ function RangeInput({ name, label }) {
51
51
  const isOperationTypeRange = useMemo(() => watchOperationType === RangeType.RANGE.id, [watchOperationType]);
52
52
  return /* @__PURE__ */ jsxs(FormControl, { fullWidth: true, children: [
53
53
  /* @__PURE__ */ jsx(InputLabel, { sx: style.inputLegend, shrink: true, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
54
- /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 0, children: [
55
- /* @__PURE__ */ jsx(Grid2, { style: isOperationTypeRange ? { flex: "min-content" } : {}, children: /* @__PURE__ */ jsx(
54
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 0, children: [
55
+ /* @__PURE__ */ jsx(Grid, { style: isOperationTypeRange ? { flex: "min-content" } : {}, children: /* @__PURE__ */ jsx(
56
56
  MuiSelectInput,
57
57
  {
58
58
  name: `${name}.${FieldConstants.OPERATION_TYPE}`,
@@ -60,7 +60,7 @@ function RangeInput({ name, label }) {
60
60
  fullWidth: true
61
61
  }
62
62
  ) }),
63
- /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
63
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(
64
64
  FloatInput,
65
65
  {
66
66
  label: "",
@@ -72,7 +72,7 @@ function RangeInput({ name, label }) {
72
72
  }
73
73
  }
74
74
  ) }),
75
- isOperationTypeRange && /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
75
+ isOperationTypeRange && /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(
76
76
  FloatInput,
77
77
  {
78
78
  name: `${name}.${FieldConstants.VALUE_2}`,
@@ -14,33 +14,35 @@ function ButtonReadOnlyInput({ name, isNumerical = false, children }) {
14
14
  return /* @__PURE__ */ jsx(
15
15
  TextField,
16
16
  {
17
- InputProps: {
18
- readOnly: true,
19
- sx: isNumerical ? {
20
- "& input": {
21
- textAlign: "right"
22
- }
23
- } : {},
24
- endAdornment: /* @__PURE__ */ jsx(
25
- InputAdornment,
26
- {
27
- sx: {
28
- "& button": {
29
- borderRadius: 0,
30
- borderLeft: "1px solid",
31
- borderColor: theme.palette.action.disabled,
32
- marginRight: "-14px",
33
- marginLeft: "-8px"
34
- }
35
- },
36
- position: "end",
37
- children
38
- }
39
- )
40
- },
41
17
  size: "small",
42
18
  fullWidth: true,
43
19
  value,
20
+ slotProps: {
21
+ input: {
22
+ readOnly: true,
23
+ sx: isNumerical ? {
24
+ "& input": {
25
+ textAlign: "right"
26
+ }
27
+ } : {},
28
+ endAdornment: /* @__PURE__ */ jsx(
29
+ InputAdornment,
30
+ {
31
+ sx: {
32
+ "& button": {
33
+ borderRadius: 0,
34
+ borderLeft: "1px solid",
35
+ borderColor: theme.palette.action.disabled,
36
+ marginRight: "-14px",
37
+ marginLeft: "-8px"
38
+ }
39
+ },
40
+ position: "end",
41
+ children
42
+ }
43
+ )
44
+ }
45
+ },
44
46
  ...genHelperError(error?.message)
45
47
  }
46
48
  );
@@ -13,18 +13,20 @@ function ReadOnlyInput({ name, isNumerical = false }) {
13
13
  return /* @__PURE__ */ jsx(
14
14
  TextField,
15
15
  {
16
- InputProps: {
17
- readOnly: true,
18
- disableUnderline: true,
19
- sx: isNumerical ? {
20
- "& input": {
21
- textAlign: "right"
22
- }
23
- } : {}
24
- },
25
16
  fullWidth: true,
26
17
  value,
27
18
  variant: "standard",
19
+ slotProps: {
20
+ input: {
21
+ readOnly: true,
22
+ disableUnderline: true,
23
+ sx: isNumerical ? {
24
+ "& input": {
25
+ textAlign: "right"
26
+ }
27
+ } : {}
28
+ }
29
+ },
28
30
  ...genHelperError(error?.message)
29
31
  }
30
32
  );
@@ -26,8 +26,8 @@ function CountriesInput({ name, label, dataTestId }) {
26
26
  getOptionLabel: translateOption,
27
27
  fullWidth: true,
28
28
  multiple: true,
29
- renderTags: (val, getTagsProps) => val.map((code, index) => {
30
- const { key, ...tagProps } = getTagsProps({ index });
29
+ renderValue: (val, getItemProps) => val.map((code, index) => {
30
+ const { key, ...tagProps } = getItemProps({ index });
31
31
  return /* @__PURE__ */ jsx(
32
32
  Chip,
33
33
  {