@gridsuite/commons-ui 0.190.0 → 0.192.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 (139) hide show
  1. package/dist/components/dialogs/elementSaveDialog/ElementSaveDialog.js +1 -0
  2. package/dist/components/dnd-table/dnd-table-add-rows-dialog.js +1 -0
  3. package/dist/components/dnd-table/dnd-table.js +1 -0
  4. package/dist/components/filter/HeaderFilterForm.js +1 -0
  5. package/dist/components/filter/expert/ExpertFilterForm.js +1 -0
  6. package/dist/components/filter/explicitNaming/ExplicitNamingFilterForm.js +1 -0
  7. package/dist/components/inputs/reactHookForm/expandableInput/ExpandableInput.d.ts +5 -5
  8. package/dist/components/inputs/reactHookForm/expandableInput/ExpandableInput.js +66 -54
  9. package/dist/components/network-modifications/by-filter/assignment/assignment/assignment-form.js +1 -0
  10. package/dist/components/network-modifications/by-filter/deletion/ByFilterDeletionForm.d.ts +0 -6
  11. package/dist/components/network-modifications/by-filter/deletion/ByFilterDeletionForm.js +7 -10
  12. package/dist/components/network-modifications/common/connectivity/BranchConnectivityForm.js +35 -39
  13. package/dist/components/network-modifications/common/connectivity/ConnectivityForm.js +1 -0
  14. package/dist/components/network-modifications/common/measurements/BranchActiveReactivePowerMeasurementsForm.js +1 -7
  15. package/dist/components/network-modifications/common/measurements/PowerMeasurementsForm.js +3 -4
  16. package/dist/components/network-modifications/common/measurements/PowerWithValidityForm.js +20 -22
  17. package/dist/components/network-modifications/common/properties/PropertiesForm.js +14 -15
  18. package/dist/components/network-modifications/common/properties/PropertyForm.d.ts +1 -1
  19. package/dist/components/network-modifications/common/properties/PropertyForm.js +43 -50
  20. package/dist/components/network-modifications/common/setpoints/SetPointsForm.js +22 -24
  21. package/dist/components/network-modifications/equipmentDeletion/EquipmentDeletionForm.js +36 -38
  22. package/dist/components/network-modifications/equipmentDeletion/equipmentDeletion.utils.js +2 -1
  23. package/dist/components/network-modifications/equipmentDeletion/hvdcLccDeletion/HvdcLccDeletionSpecificForm.js +5 -6
  24. package/dist/components/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.d.ts +0 -6
  25. package/dist/components/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.js +7 -5
  26. package/dist/components/network-modifications/index.js +1 -0
  27. package/dist/components/network-modifications/load/common/LoadDialogHeader.js +7 -17
  28. package/dist/components/network-modifications/load/common/LoadDialogTabs.js +4 -4
  29. package/dist/components/network-modifications/load/common/LoadDialogTabsContent.js +21 -18
  30. package/dist/components/network-modifications/load/creation/loadCreation.utils.js +1 -0
  31. package/dist/components/network-modifications/load/modification/loadModification.utils.js +2 -1
  32. package/dist/components/network-modifications/substation/creation/SubstationCreationForm.js +17 -12
  33. package/dist/components/network-modifications/substation/modification/SubstationModificationForm.js +41 -44
  34. package/dist/components/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +23 -14
  35. package/dist/components/network-modifications/voltageLevel/creation/index.js +1 -0
  36. package/dist/components/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.js +6 -6
  37. package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.js +4 -4
  38. package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/couplingOmnibus/CouplingOmnibusCreation.js +3 -3
  39. package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js +3 -3
  40. package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/creation/CreateSwitchesDialog.js +1 -0
  41. package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/creation/CreateSwitchesForm.js +11 -21
  42. package/dist/components/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationCreationSection.js +4 -3
  43. package/dist/components/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.js +3 -2
  44. package/dist/components/network-modifications/voltageLevel/creation/voltageLevelCreation.utils.js +1 -0
  45. package/dist/components/network-modifications/voltageLevel/index.js +1 -0
  46. package/dist/components/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js +104 -110
  47. package/dist/components/node/build-status-chip.d.ts +2 -1
  48. package/dist/components/node/build-status-chip.js +13 -3
  49. package/dist/components/parameters/common/ProviderParam.js +1 -0
  50. package/dist/components/parameters/common/contingency-table/columns-definitions.js +1 -0
  51. package/dist/components/parameters/common/limitreductions/limit-reduction-table-cell.js +1 -0
  52. package/dist/components/parameters/common/limitreductions/limit-reductions-table-form.js +1 -0
  53. package/dist/components/parameters/common/name-element-editor/name-element-editor-utils.js +1 -0
  54. package/dist/components/parameters/common/parameter-dnd-table-field.js +1 -0
  55. package/dist/components/parameters/common/parameter-field.js +1 -0
  56. package/dist/components/parameters/common/parameter-table/table-cell.js +1 -0
  57. package/dist/components/parameters/common/parameters-edition-dialog-props.d.ts +1 -0
  58. package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table-cell.js +1 -0
  59. package/dist/components/parameters/common/widget/parameter-float.js +1 -0
  60. package/dist/components/parameters/common/widget/parameter-line-directory-items-input.js +1 -0
  61. package/dist/components/parameters/common/widget/parameter-line-slider.js +1 -0
  62. package/dist/components/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +1 -0
  63. package/dist/components/parameters/dynamic-margin-calculation/dynamic-margin-calculation-inline.js +1 -0
  64. package/dist/components/parameters/dynamic-margin-calculation/loads-variations-parameters.js +1 -0
  65. package/dist/components/parameters/dynamic-margin-calculation/use-dynamic-margin-calculation-parameters-form.js +1 -0
  66. package/dist/components/parameters/dynamic-security-analysis/contingency-parameters.js +1 -0
  67. package/dist/components/parameters/dynamic-security-analysis/dynamic-security-analysis-inline.js +1 -0
  68. package/dist/components/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +1 -0
  69. package/dist/components/parameters/dynamic-security-analysis/use-dynamic-security-analysis-parameters-form.js +1 -0
  70. package/dist/components/parameters/loadflow/load-flow-general-parameters.js +1 -0
  71. package/dist/components/parameters/loadflow/load-flow-parameters-content.js +1 -0
  72. package/dist/components/parameters/loadflow/load-flow-parameters-dialog.js +1 -0
  73. package/dist/components/parameters/loadflow/load-flow-parameters-form.js +1 -0
  74. package/dist/components/parameters/loadflow/load-flow-parameters-header.js +1 -0
  75. package/dist/components/parameters/loadflow/load-flow-parameters-inline.js +1 -0
  76. package/dist/components/parameters/loadflow/load-flow-parameters-utils.js +1 -0
  77. package/dist/components/parameters/loadflow/use-load-flow-parameters-form.js +1 -0
  78. package/dist/components/parameters/network-visualizations/map-parameters.js +1 -0
  79. package/dist/components/parameters/network-visualizations/network-area-diagram-parameters.js +1 -0
  80. package/dist/components/parameters/network-visualizations/network-visualizations-form.js +1 -0
  81. package/dist/components/parameters/network-visualizations/network-visualizations-parameters-dialog.js +1 -0
  82. package/dist/components/parameters/network-visualizations/network-visualizations-parameters-inline.js +1 -0
  83. package/dist/components/parameters/network-visualizations/single-line-diagram-parameters.js +1 -0
  84. package/dist/components/parameters/network-visualizations/use-network-visualizations-parameters-form.js +1 -0
  85. package/dist/components/parameters/pcc-min/pcc-min-form-utils.js +1 -0
  86. package/dist/components/parameters/pcc-min/pcc-min-parameters-dialog.js +1 -0
  87. package/dist/components/parameters/pcc-min/pcc-min-parameters-form.js +1 -0
  88. package/dist/components/parameters/pcc-min/pcc-min-parameters-inline.js +1 -0
  89. package/dist/components/parameters/pcc-min/use-pcc-min-parameters-form.js +1 -0
  90. package/dist/components/parameters/security-analysis/columns-definitions.js +1 -0
  91. package/dist/components/parameters/security-analysis/security-analysis-parameters-dialog.js +1 -0
  92. package/dist/components/parameters/security-analysis/security-analysis-parameters-form.js +1 -0
  93. package/dist/components/parameters/security-analysis/security-analysis-parameters-inline.js +1 -0
  94. package/dist/components/parameters/security-analysis/security-analysis-parameters-selector.js +1 -0
  95. package/dist/components/parameters/security-analysis/security-analysis-violations-hiding.js +1 -0
  96. package/dist/components/parameters/security-analysis/use-security-analysis-parameters-form.js +1 -0
  97. package/dist/components/parameters/sensi/columns-definitions.js +1 -0
  98. package/dist/components/parameters/sensi/constants.d.ts +2 -2
  99. package/dist/components/parameters/sensi/constants.js +1 -1
  100. package/dist/components/parameters/sensi/sensitivity-Flow-parameters.js +1 -0
  101. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-dialog.d.ts +1 -1
  102. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-dialog.js +6 -1
  103. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-factor-count.d.ts +1 -1
  104. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-factor-count.js +4 -0
  105. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-form.d.ts +2 -1
  106. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-form.js +3 -0
  107. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-inline.d.ts +2 -1
  108. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-inline.js +6 -2
  109. package/dist/components/parameters/sensi/sensitivity-parameters-selector.d.ts +2 -1
  110. package/dist/components/parameters/sensi/sensitivity-parameters-selector.js +11 -2
  111. package/dist/components/parameters/sensi/use-sensitivity-analysis-parameters.d.ts +6 -1
  112. package/dist/components/parameters/sensi/use-sensitivity-analysis-parameters.js +37 -9
  113. package/dist/components/parameters/sensi/utils.js +1 -0
  114. package/dist/components/parameters/short-circuit/short-circuit-general-tab-panel.js +1 -0
  115. package/dist/components/parameters/short-circuit/short-circuit-icc-cluster-table-cell.js +1 -0
  116. package/dist/components/parameters/short-circuit/short-circuit-icc-material-table-cell.js +1 -0
  117. package/dist/components/parameters/short-circuit/short-circuit-parameters-content.js +1 -0
  118. package/dist/components/parameters/short-circuit/short-circuit-parameters-dialog.js +1 -0
  119. package/dist/components/parameters/short-circuit/short-circuit-parameters-form.js +1 -0
  120. package/dist/components/parameters/short-circuit/short-circuit-parameters-inline.js +1 -0
  121. package/dist/components/parameters/short-circuit/short-circuit-parameters-utils.js +1 -0
  122. package/dist/components/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +1 -0
  123. package/dist/components/parameters/short-circuit/short-circuit-study-area-tab-panel.js +1 -0
  124. package/dist/components/parameters/short-circuit/use-short-circuit-parameters-form.js +1 -0
  125. package/dist/components/parameters/util/make-component-utils.js +1 -0
  126. package/dist/components/parameters/voltage-init/equipment-selection-parameters.js +1 -0
  127. package/dist/components/parameters/voltage-init/general-parameters.js +1 -0
  128. package/dist/components/parameters/voltage-init/use-voltage-init-parameters-form.js +1 -0
  129. package/dist/components/parameters/voltage-init/voltage-init-form-utils.js +1 -0
  130. package/dist/components/parameters/voltage-init/voltage-init-parameters-dialog.js +1 -0
  131. package/dist/components/parameters/voltage-init/voltage-init-parameters-form.js +1 -0
  132. package/dist/components/parameters/voltage-init/voltage-init-parameters-inline.js +1 -0
  133. package/dist/components/parameters/voltage-init/voltage-limits-parameters.js +1 -0
  134. package/dist/translations/en/parameters.d.ts +1 -0
  135. package/dist/translations/en/parameters.js +4 -3
  136. package/dist/translations/fr/parameters.d.ts +1 -0
  137. package/dist/translations/fr/parameters.js +4 -3
  138. package/dist/utils/types/sensitivity-analysis.type.d.ts +2 -2
  139. package/package.json +1 -1
@@ -1,8 +1,7 @@
1
- import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { TextField, Grid } from "@mui/material";
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { Grid, TextField } from "@mui/material";
3
3
  import { useIntl } from "react-intl";
4
4
  import { useWatch } from "react-hook-form";
5
- import GridItem from "../../../grid/grid-item.js";
6
5
  import "../../../overflowableText/OverflowableText.js";
7
6
  import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
8
7
  import "../../../../utils/conversionUtils.js";
@@ -27,6 +26,7 @@ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
27
26
  import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
28
27
  import "@material-symbols/svg-400/outlined/add_notes.svg?react";
29
28
  import "../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
29
+ import "../../../inputs/reactHookForm/expandableInput/ExpandableInput.js";
30
30
  import { CountrySelectionInput } from "../../../inputs/reactHookForm/CountrySelectionInput.js";
31
31
  import "@react-querybuilder/material";
32
32
  import "../../../filter/expert/expertFilterConstants.js";
@@ -41,47 +41,44 @@ function SubstationModificationForm({ substationToModify }) {
41
41
  const { locale } = useIntl();
42
42
  const { translate } = useLocalizedCountries(locale);
43
43
  const equipmentId = useWatch({ name: FieldConstants.EQUIPMENT_ID });
44
- const substationIdField = /* @__PURE__ */ jsx(
45
- TextField,
46
- {
47
- size: "small",
48
- fullWidth: true,
49
- label: "ID",
50
- value: equipmentId ?? "",
51
- InputProps: {
52
- readOnly: true
53
- },
54
- disabled: true,
55
- ...filledTextField
56
- }
57
- );
58
- const substationNameField = /* @__PURE__ */ jsx(
59
- TextInput,
60
- {
61
- name: FieldConstants.EQUIPMENT_NAME,
62
- label: "Name",
63
- formProps: filledTextField,
64
- previousValue: substationToModify?.name,
65
- clearable: true
66
- }
67
- );
68
- const substationCountryField = /* @__PURE__ */ jsx(
69
- CountrySelectionInput,
70
- {
71
- name: FieldConstants.COUNTRY,
72
- label: "Country",
73
- formProps: filledTextField,
74
- size: "small",
75
- previousValue: substationToModify?.country ? translate(substationToModify.country) : ""
76
- }
77
- );
78
- return /* @__PURE__ */ jsxs(Fragment, { children: [
79
- /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
80
- /* @__PURE__ */ jsx(GridItem, { size: 4, children: substationIdField }),
81
- /* @__PURE__ */ jsx(GridItem, { size: 4, children: substationNameField }),
82
- /* @__PURE__ */ jsx(GridItem, { size: 4, children: substationCountryField })
83
- ] }),
84
- /* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "substation", isModification: true })
44
+ return /* @__PURE__ */ jsxs(Grid, { container: true, direction: "column", spacing: 2, children: [
45
+ /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
46
+ /* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(
47
+ TextField,
48
+ {
49
+ size: "small",
50
+ fullWidth: true,
51
+ label: "ID",
52
+ value: equipmentId ?? "",
53
+ InputProps: {
54
+ readOnly: true
55
+ },
56
+ disabled: true,
57
+ ...filledTextField
58
+ }
59
+ ) }),
60
+ /* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(
61
+ TextInput,
62
+ {
63
+ name: FieldConstants.EQUIPMENT_NAME,
64
+ label: "Name",
65
+ formProps: filledTextField,
66
+ previousValue: substationToModify?.name,
67
+ clearable: true
68
+ }
69
+ ) }),
70
+ /* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(
71
+ CountrySelectionInput,
72
+ {
73
+ name: FieldConstants.COUNTRY,
74
+ label: "Country",
75
+ formProps: filledTextField,
76
+ size: "small",
77
+ previousValue: substationToModify?.country ? translate(substationToModify.country) : ""
78
+ }
79
+ ) })
80
+ ] }) }),
81
+ /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "substation", isModification: true }) })
85
82
  ] });
86
83
  }
87
84
  export {
@@ -1,4 +1,4 @@
1
- import { jsxs, Fragment, jsx } from "react/jsx-runtime";
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { Grid, Tabs, Tab, Box } from "@mui/material";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  import { useWatch } from "react-hook-form";
@@ -28,6 +28,7 @@ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
28
28
  import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
29
29
  import "@material-symbols/svg-400/outlined/add_notes.svg?react";
30
30
  import "../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
31
+ import "../../../inputs/reactHookForm/expandableInput/ExpandableInput.js";
31
32
  import "@react-querybuilder/material";
32
33
  import "../../../filter/expert/expertFilterConstants.js";
33
34
  import "../../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
@@ -35,11 +36,11 @@ import "uuid";
35
36
  import "../../../inputs/reactQueryBuilder/PropertyValueEditor.js";
36
37
  import "react-querybuilder";
37
38
  import { VoltageLevelTab, VOLTAGE_LEVEL_TAB_FIELDS } from "./voltageLevel.constants.js";
38
- import GridItem from "../../../grid/grid-item.js";
39
39
  import "./tabs/structureTab/switchesBetweenSections/creation/CreateSwitchesDialog.js";
40
40
  import { StructureTab } from "./tabs/structureTab/StructureTab.js";
41
41
  import { SubstationTab } from "./tabs/substationTab/SubstationTab.js";
42
42
  import { CharacteristicsTab } from "./tabs/characteristicsTab/CharacteristicsTab.js";
43
+ import { filledTextField } from "../../common/form.utils.js";
43
44
  import { PropertiesForm } from "../../common/properties/PropertiesForm.js";
44
45
  import "../../common/properties/propertyUtils.js";
45
46
  import { getTabIndicatorStyle, getTabStyle } from "../../../parameters/parameters-style.js";
@@ -53,19 +54,19 @@ function VoltageLevelCreationForm({
53
54
  VoltageLevelTab.SUBSTATION_TAB
54
55
  );
55
56
  const watchHideBusBarSection = useWatch({ name: FieldConstants.HIDE_BUS_BAR_SECTION });
56
- return /* @__PURE__ */ jsxs(Fragment, { children: [
57
- /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
58
- /* @__PURE__ */ jsx(GridItem, { children: /* @__PURE__ */ jsx(
57
+ return /* @__PURE__ */ jsxs(Grid, { container: true, direction: "column", spacing: 2, children: [
58
+ /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
59
+ /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
59
60
  TextInput,
60
61
  {
61
62
  name: FieldConstants.EQUIPMENT_ID,
62
63
  label: "ID",
63
- formProps: { autoFocus: true, margin: "normal" }
64
+ formProps: { autoFocus: true, ...filledTextField }
64
65
  }
65
66
  ) }),
66
- /* @__PURE__ */ jsx(GridItem, { children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.EQUIPMENT_NAME, label: "Name", formProps: { margin: "normal" } }) })
67
- ] }),
68
- /* @__PURE__ */ jsxs(
67
+ /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.EQUIPMENT_NAME, label: "Name", formProps: filledTextField }) })
68
+ ] }) }),
69
+ /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsxs(
69
70
  Tabs,
70
71
  {
71
72
  value: tabIndex,
@@ -106,11 +107,19 @@ function VoltageLevelCreationForm({
106
107
  )
107
108
  ]
108
109
  }
109
- ),
110
- /* @__PURE__ */ jsx(Box, { hidden: tabIndex !== VoltageLevelTab.SUBSTATION_TAB, children: /* @__PURE__ */ jsx(SubstationTab, { substationOptions, showDeleteButton: showDeleteSubstationButton }) }),
111
- /* @__PURE__ */ jsx(Box, { hidden: tabIndex !== VoltageLevelTab.CHARACTERISTICS_TAB, children: /* @__PURE__ */ jsx(CharacteristicsTab, {}) }),
112
- /* @__PURE__ */ jsx(Box, { hidden: tabIndex !== VoltageLevelTab.STRUCTURE_TAB, children: /* @__PURE__ */ jsx(StructureTab, {}) }),
113
- /* @__PURE__ */ jsx(Box, { hidden: tabIndex !== VoltageLevelTab.ADDITIONAL_INFORMATION_TAB, children: /* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "voltageLevel" }) })
110
+ ) }),
111
+ /* @__PURE__ */ jsxs(Grid, { item: true, children: [
112
+ /* @__PURE__ */ jsx(Box, { hidden: tabIndex !== VoltageLevelTab.SUBSTATION_TAB, children: /* @__PURE__ */ jsx(
113
+ SubstationTab,
114
+ {
115
+ substationOptions,
116
+ showDeleteButton: showDeleteSubstationButton
117
+ }
118
+ ) }),
119
+ /* @__PURE__ */ jsx(Box, { hidden: tabIndex !== VoltageLevelTab.CHARACTERISTICS_TAB, children: /* @__PURE__ */ jsx(CharacteristicsTab, {}) }),
120
+ /* @__PURE__ */ jsx(Box, { hidden: tabIndex !== VoltageLevelTab.STRUCTURE_TAB, children: /* @__PURE__ */ jsx(StructureTab, {}) }),
121
+ /* @__PURE__ */ jsx(Box, { hidden: tabIndex !== VoltageLevelTab.ADDITIONAL_INFORMATION_TAB, children: /* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "voltageLevel" }) })
122
+ ] })
114
123
  ] });
115
124
  }
116
125
  export {
@@ -27,6 +27,7 @@ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
27
27
  import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
28
28
  import "@material-symbols/svg-400/outlined/add_notes.svg?react";
29
29
  import "../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
30
+ import "../../../inputs/reactHookForm/expandableInput/ExpandableInput.js";
30
31
  import "@react-querybuilder/material";
31
32
  import "../../../filter/expert/expertFilterConstants.js";
32
33
  import "../../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
@@ -2,7 +2,6 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useWatch } from "react-hook-form";
3
3
  import { Grid } from "@mui/material";
4
4
  import GridSection from "../../../../../grid/grid-section.js";
5
- import GridItem from "../../../../../grid/grid-item.js";
6
5
  import { VoltageAdornment, KiloAmpereAdornment } from "../../../../../../utils/constants/adornments.js";
7
6
  import { FieldConstants } from "../../../../../../utils/constants/fieldConstants.js";
8
7
  import "../../../../../../utils/conversionUtils.js";
@@ -31,6 +30,7 @@ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
31
30
  import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
32
31
  import "@material-symbols/svg-400/outlined/add_notes.svg?react";
33
32
  import "../../../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
33
+ import "../../../../../inputs/reactHookForm/expandableInput/ExpandableInput.js";
34
34
  import "@react-querybuilder/material";
35
35
  import "../../../../../filter/expert/expertFilterConstants.js";
36
36
  import "../../../../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
@@ -42,7 +42,7 @@ function CharacteristicsTab() {
42
42
  return /* @__PURE__ */ jsxs(Fragment, { children: [
43
43
  /* @__PURE__ */ jsx(GridSection, { title: "VoltageText" }),
44
44
  /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
45
- !watchHideNominalVoltage && /* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(
45
+ !watchHideNominalVoltage && /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
46
46
  FloatInput,
47
47
  {
48
48
  name: FieldConstants.NOMINAL_V,
@@ -50,7 +50,7 @@ function CharacteristicsTab() {
50
50
  adornment: VoltageAdornment
51
51
  }
52
52
  ) }),
53
- /* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(
53
+ /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
54
54
  FloatInput,
55
55
  {
56
56
  name: FieldConstants.LOW_VOLTAGE_LIMIT,
@@ -58,7 +58,7 @@ function CharacteristicsTab() {
58
58
  adornment: VoltageAdornment
59
59
  }
60
60
  ) }),
61
- /* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(
61
+ /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
62
62
  FloatInput,
63
63
  {
64
64
  name: FieldConstants.HIGH_VOLTAGE_LIMIT,
@@ -69,7 +69,7 @@ function CharacteristicsTab() {
69
69
  ] }),
70
70
  /* @__PURE__ */ jsx(GridSection, { title: "ShortCircuit" }),
71
71
  /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
72
- /* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(
72
+ /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
73
73
  FloatInput,
74
74
  {
75
75
  name: FieldConstants.LOW_SHORT_CIRCUIT_CURRENT_LIMIT,
@@ -77,7 +77,7 @@ function CharacteristicsTab() {
77
77
  adornment: KiloAmpereAdornment
78
78
  }
79
79
  ) }),
80
- /* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(
80
+ /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
81
81
  FloatInput,
82
82
  {
83
83
  name: FieldConstants.HIGH_SHORT_CIRCUIT_CURRENT_LIMIT,
@@ -2,7 +2,6 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { Grid } from "@mui/material";
3
3
  import { useWatch } from "react-hook-form";
4
4
  import GridSection from "../../../../../grid/grid-section.js";
5
- import GridItem from "../../../../../grid/grid-item.js";
6
5
  import "react-intl";
7
6
  import "../../../../../overflowableText/OverflowableText.js";
8
7
  import { FieldConstants } from "../../../../../../utils/constants/fieldConstants.js";
@@ -30,6 +29,7 @@ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
30
29
  import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
31
30
  import "@material-symbols/svg-400/outlined/add_notes.svg?react";
32
31
  import "../../../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
32
+ import "../../../../../inputs/reactHookForm/expandableInput/ExpandableInput.js";
33
33
  import "@react-querybuilder/material";
34
34
  import "../../../../../filter/expert/expertFilterConstants.js";
35
35
  import "../../../../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
@@ -45,13 +45,13 @@ function StructureTab() {
45
45
  return /* @__PURE__ */ jsxs(Fragment, { children: [
46
46
  /* @__PURE__ */ jsx(GridSection, { title: "BusBarSections" }),
47
47
  /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
48
- /* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(IntegerInput, { name: FieldConstants.BUS_BAR_COUNT, label: "BusBarCount" }) }),
49
- /* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(IntegerInput, { name: FieldConstants.SECTION_COUNT, label: "numberOfSections" }) })
48
+ /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(IntegerInput, { name: FieldConstants.BUS_BAR_COUNT, label: "BusBarCount" }) }),
49
+ /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(IntegerInput, { name: FieldConstants.SECTION_COUNT, label: "numberOfSections" }) })
50
50
  ] }),
51
51
  /* @__PURE__ */ jsx(SwitchesBetweenSections, {}),
52
52
  displayOmnibus && /* @__PURE__ */ jsxs(Fragment, { children: [
53
53
  /* @__PURE__ */ jsx(GridSection, { title: "Coupling_Omnibus" }),
54
- /* @__PURE__ */ jsx(Grid, { container: true, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: /* @__PURE__ */ jsx(CouplingOmnibusForm, {}) }) })
54
+ /* @__PURE__ */ jsx(CouplingOmnibusForm, {})
55
55
  ] })
56
56
  ] });
57
57
  }
@@ -1,8 +1,8 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useEffect } from "react";
3
3
  import { useFormContext } from "react-hook-form";
4
+ import { Grid } from "@mui/material";
4
5
  import { AutocompleteInput } from "../../../../../../inputs/reactHookForm/autocompleteInputs/AutocompleteInput.js";
5
- import GridItem from "../../../../../../grid/grid-item.js";
6
6
  import { FieldConstants } from "../../../../../../../utils/constants/fieldConstants.js";
7
7
  import "../../../../../../../utils/conversionUtils.js";
8
8
  import "../../../../../../../utils/types/equipmentType.js";
@@ -25,7 +25,7 @@ function CouplingOmnibusCreation({ index, sectionOptions }) {
25
25
  return () => unsubscribe();
26
26
  }, [subscribe, trigger, getValues, index]);
27
27
  return /* @__PURE__ */ jsxs(Fragment, { children: [
28
- /* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(
28
+ /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
29
29
  AutocompleteInput,
30
30
  {
31
31
  allowNewValue: true,
@@ -36,7 +36,7 @@ function CouplingOmnibusCreation({ index, sectionOptions }) {
36
36
  size: "small"
37
37
  }
38
38
  ) }),
39
- /* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(
39
+ /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
40
40
  AutocompleteInput,
41
41
  {
42
42
  allowNewValue: true,
@@ -9,7 +9,6 @@ import "../../../../../../../utils/conversionUtils.js";
9
9
  import "../../../../../../../utils/types/equipmentType.js";
10
10
  import "../../../../../../../utils/yupConfig.js";
11
11
  import { SwitchKind } from "../../../voltageLevelCreation.types.js";
12
- import GridItem from "../../../../../../grid/grid-item.js";
13
12
  import "../../../../../../overflowableText/OverflowableText.js";
14
13
  import "localized-countries";
15
14
  import "localized-countries/data/fr";
@@ -30,6 +29,7 @@ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
30
29
  import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
31
30
  import "@material-symbols/svg-400/outlined/add_notes.svg?react";
32
31
  import "../../../../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
32
+ import "../../../../../../inputs/reactHookForm/expandableInput/ExpandableInput.js";
33
33
  import "@react-querybuilder/material";
34
34
  import "../../../../../../filter/expert/expertFilterConstants.js";
35
35
  import "../../../../../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
@@ -93,7 +93,7 @@ function SwitchesBetweenSections() {
93
93
  }
94
94
  return /* @__PURE__ */ jsxs(Fragment, { children: [
95
95
  /* @__PURE__ */ jsx(GridSection, { title: "SwitchesBetweenSections" }),
96
- /* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(
96
+ /* @__PURE__ */ jsx(
97
97
  TextInput,
98
98
  {
99
99
  name: FieldConstants.SWITCHES_BETWEEN_SECTIONS,
@@ -103,7 +103,7 @@ function SwitchesBetweenSections() {
103
103
  },
104
104
  customAdornment: addIconAdornment(handleClickOpenSwitchesPane)
105
105
  }
106
- ) }),
106
+ ),
107
107
  openCreateSwitchesDialog && /* @__PURE__ */ jsx(
108
108
  CreateSwitchesDialog,
109
109
  {
@@ -30,6 +30,7 @@ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
30
30
  import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
31
31
  import "@material-symbols/svg-400/outlined/add_notes.svg?react";
32
32
  import "../../../../../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
33
+ import "../../../../../../../inputs/reactHookForm/expandableInput/ExpandableInput.js";
33
34
  import "@react-querybuilder/material";
34
35
  import "../../../../../../../filter/expert/expertFilterConstants.js";
35
36
  import "../../../../../../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
@@ -29,6 +29,7 @@ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
29
29
  import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
30
30
  import "@material-symbols/svg-400/outlined/add_notes.svg?react";
31
31
  import "../../../../../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
32
+ import "../../../../../../../inputs/reactHookForm/expandableInput/ExpandableInput.js";
32
33
  import "@react-querybuilder/material";
33
34
  import "../../../../../../../filter/expert/expertFilterConstants.js";
34
35
  import "../../../../../../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
@@ -39,30 +40,19 @@ function CreateSwitchesForm({ id }) {
39
40
  const { fields: rows } = useFieldArray({ name: `${id}` });
40
41
  return /* @__PURE__ */ jsxs(Fragment, { children: [
41
42
  /* @__PURE__ */ jsx(DialogTitle, { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "SwitchesBetweenSections" }) }),
42
- /* @__PURE__ */ jsx(DialogContent, { children: /* @__PURE__ */ jsx(
43
- Grid,
43
+ /* @__PURE__ */ jsx(DialogContent, { children: /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, direction: "column", pt: 1, children: rows.map((value, index) => /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
44
+ EnumInput,
44
45
  {
45
- container: true,
46
- spacing: 2,
47
- direction: "column",
48
- style: {
49
- paddingTop: "5px"
46
+ options: Object.values(SWITCH_TYPE),
47
+ name: `${id}.${index}.${FieldConstants.SWITCH_KIND}`,
48
+ label: "SwitchBetweenSectionsLabel",
49
+ labelValues: {
50
+ index1: String(index + 1),
51
+ index2: String(index + 2)
50
52
  },
51
- children: rows.map((value, index) => /* @__PURE__ */ jsx(Grid, { container: true, item: true, children: /* @__PURE__ */ jsx(
52
- EnumInput,
53
- {
54
- options: Object.values(SWITCH_TYPE),
55
- name: `${id}.${index}.${FieldConstants.SWITCH_KIND}`,
56
- label: "SwitchBetweenSectionsLabel",
57
- labelValues: {
58
- index1: String(index + 1),
59
- index2: String(index + 2)
60
- },
61
- size: "small"
62
- }
63
- ) }, value.id))
53
+ size: "small"
64
54
  }
65
- ) })
55
+ ) }, value.id)) }) })
66
56
  ] });
67
57
  }
68
58
  export {
@@ -28,6 +28,7 @@ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
28
28
  import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
29
29
  import "@material-symbols/svg-400/outlined/add_notes.svg?react";
30
30
  import "../../../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
31
+ import "../../../../../inputs/reactHookForm/expandableInput/ExpandableInput.js";
31
32
  import { CountrySelectionInput } from "../../../../../inputs/reactHookForm/CountrySelectionInput.js";
32
33
  import "@react-querybuilder/material";
33
34
  import "../../../../../filter/expert/expertFilterConstants.js";
@@ -46,9 +47,9 @@ function SubstationCreationSection({
46
47
  return /* @__PURE__ */ jsxs(Fragment, { children: [
47
48
  /* @__PURE__ */ jsx(GridSection, { title: "CreateSubstation" }),
48
49
  /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
49
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.SUBSTATION_CREATION_ID, label: "SubstationId" }) }),
50
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.SUBSTATION_NAME, label: "substationName" }) }),
51
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 3, children: /* @__PURE__ */ jsx(CountrySelectionInput, { name: FieldConstants.COUNTRY, label: "Country", size: "small" }) }),
50
+ /* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.SUBSTATION_CREATION_ID, label: "SubstationId" }) }),
51
+ /* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.SUBSTATION_NAME, label: "substationName" }) }),
52
+ /* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(CountrySelectionInput, { name: FieldConstants.COUNTRY, label: "Country", size: "small" }) }),
52
53
  showDeleteButton && onDelete && /* @__PURE__ */ jsx(Grid, { item: true, xs: 1, children: /* @__PURE__ */ jsx(Tooltip, { title: intl.formatMessage({ id: "DeleteRows" }), children: /* @__PURE__ */ jsx(IconButton, { onClick: onDelete, children: /* @__PURE__ */ jsx(Delete, {}) }) }) })
53
54
  ] }),
54
55
  /* @__PURE__ */ jsx(PropertiesForm, { id: FieldConstants.SUBSTATION_CREATION, networkElementType: "substation" })
@@ -30,6 +30,7 @@ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
30
30
  import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
31
31
  import "@material-symbols/svg-400/outlined/add_notes.svg?react";
32
32
  import "../../../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
33
+ import "../../../../../inputs/reactHookForm/expandableInput/ExpandableInput.js";
33
34
  import "@react-querybuilder/material";
34
35
  import "../../../../../filter/expert/expertFilterConstants.js";
35
36
  import "../../../../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
@@ -58,8 +59,8 @@ function SubstationTab({ substationOptions, showDeleteButton }) {
58
59
  });
59
60
  }
60
61
  }, [setValue, getValues, watchAddSubstationCreation]);
61
- return watchAddSubstationCreation ? /* @__PURE__ */ jsx(SubstationCreationSection, { showDeleteButton, onDelete: handleDeleteSubstationCreation }) : /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, my: 2, children: [
62
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 6, children: substationOptions ? /* @__PURE__ */ jsx(
62
+ return watchAddSubstationCreation ? /* @__PURE__ */ jsx(SubstationCreationSection, { showDeleteButton, onDelete: handleDeleteSubstationCreation }) : /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, pt: 2, children: [
63
+ /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: substationOptions ? /* @__PURE__ */ jsx(
63
64
  AutocompleteInput,
64
65
  {
65
66
  name: FieldConstants.SUBSTATION_ID,
@@ -32,6 +32,7 @@ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
32
32
  import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
33
33
  import "@material-symbols/svg-400/outlined/add_notes.svg?react";
34
34
  import "../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
35
+ import "../../../inputs/reactHookForm/expandableInput/ExpandableInput.js";
35
36
  import "@react-querybuilder/material";
36
37
  import "../../../filter/expert/expertFilterConstants.js";
37
38
  import "../../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
@@ -27,6 +27,7 @@ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
27
27
  import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
28
28
  import "@material-symbols/svg-400/outlined/add_notes.svg?react";
29
29
  import "../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
30
+ import "../../inputs/reactHookForm/expandableInput/ExpandableInput.js";
30
31
  import "@react-querybuilder/material";
31
32
  import "../../filter/expert/expertFilterConstants.js";
32
33
  import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";