@gridsuite/commons-ui 0.296.0 → 0.297.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 (91) hide show
  1. package/dist/components/composite/agGridTable/BottomTableButtons.js +56 -44
  2. package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-aggrid-comparator-filter.js +32 -23
  3. package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-aggrid-text-filter.js +31 -23
  4. package/dist/components/composite/customAGGrid/custom-aggrid-header.js +67 -43
  5. package/dist/components/composite/elementSearch/elementSearchInput/ElementSearchInput.d.ts +3 -2
  6. package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js +43 -28
  7. package/dist/components/composite/reactQueryBuilder/CustomReactQueryBuilder.js +4 -7
  8. package/dist/components/composite/reactQueryBuilder/FieldSelector.js +5 -3
  9. package/dist/components/composite/reactQueryBuilder/PropertyValueEditor.js +63 -52
  10. package/dist/components/composite/reactQueryBuilder/compositeRuleEditor/GroupValueEditor.js +22 -9
  11. package/dist/components/composite/reactQueryBuilder/compositeRuleEditor/RuleValueEditor.js +59 -24
  12. package/dist/components/ui/csvPicker/csv-picker.js +24 -12
  13. package/dist/components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js +15 -7
  14. package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +82 -39
  15. package/dist/components/ui/dialogs/modifyElementSelection/ModifyElementSelection.js +29 -9
  16. package/dist/components/ui/dialogs/name-element-editor/name-element-editor-form.js +24 -15
  17. package/dist/components/ui/inputs/ActivableChip.js +2 -2
  18. package/dist/components/ui/inputs/SelectClearable.js +4 -3
  19. package/dist/components/ui/reactHookForm/DirectoryItemsInput.js +1 -1
  20. package/dist/components/ui/reactHookForm/OverflowableChip.js +24 -13
  21. package/dist/components/ui/reactHookForm/OverflowableChipWithHelperText.js +9 -4
  22. package/dist/components/ui/reactHookForm/autocompleteInputs/AutocompleteInput.js +11 -5
  23. package/dist/components/ui/reactHookForm/directory-item-input/directory-item-input.js +13 -3
  24. package/dist/components/ui/reactHookForm/expandableInput/DeletableRow.js +3 -1
  25. package/dist/components/ui/reactHookForm/utils/HelperPreviousValue.js +11 -1
  26. package/dist/features/authentication/AuthenticationRouter.js +62 -53
  27. package/dist/features/authentication/Login.js +15 -7
  28. package/dist/features/authentication/Logout.js +9 -1
  29. package/dist/features/cardErrorBoundary/CardErrorBoundary.js +28 -10
  30. package/dist/features/global-filter/ui/global-filter-panel.js +4 -10
  31. package/dist/features/network-modifications/battery/creation/BatteryCreationForm.js +22 -12
  32. package/dist/features/network-modifications/battery/modification/BatteryDialogTabsContent.js +21 -11
  33. package/dist/features/network-modifications/by-filter/deletion/ByFilterDeletionForm.js +35 -25
  34. package/dist/features/network-modifications/common/currentLimits/LimitsPane.js +28 -16
  35. package/dist/features/network-modifications/common/currentLimits/limitsEditor/LimitsEditor.js +16 -4
  36. package/dist/features/network-modifications/common/currentLimits/limitsEditor/LimitsPropertiesSideStack.js +81 -68
  37. package/dist/features/network-modifications/common/measurements/BusbarSectionVoltageMeasurementsForm.js +31 -21
  38. package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.js +32 -21
  39. package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.d.ts +1 -1
  40. package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.js +1 -1
  41. package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.js +20 -9
  42. package/dist/features/network-modifications/generator/creation/GeneratorCreationForm.js +22 -12
  43. package/dist/features/network-modifications/generator/modification/GeneratorDialogTabsContent.js +28 -18
  44. package/dist/features/network-modifications/hvdcLine/vsc/common/converterStation/VscConverterStationPane.js +15 -4
  45. package/dist/features/network-modifications/static-var-compensator/common/set-points-limits-form.js +70 -40
  46. package/dist/features/network-modifications/static-var-compensator/common/standby-automaton-form.js +35 -6
  47. package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-tabs-content.js +16 -7
  48. package/dist/features/network-modifications/tabular/TabularForm.js +102 -72
  49. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js +20 -10
  50. package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.js +35 -17
  51. package/dist/features/network-modifications/voltageLevel/moveFeederBays/MoveVoltageLevelFeederBaysForm.js +9 -1
  52. package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayPositionCellRender.js +6 -4
  53. package/dist/features/network-modifications/voltageLevel/section/VoltageLevelSectionCreationForm.js +17 -7
  54. package/dist/features/network-modifications/voltageLevel/topology/creation/CreateVoltageLevelTopologyForm.js +23 -13
  55. package/dist/features/network-modifications/voltageLevel/topology/modification/VoltageLevelTopologyModificationForm.js +25 -15
  56. package/dist/features/parameters/common/parameter-field.js +17 -4
  57. package/dist/features/parameters/common/parameter-table-field/parameter-table-field.js +23 -12
  58. package/dist/features/parameters/common/provider-param.js +1 -1
  59. package/dist/features/parameters/common/widget/parameter-float.js +16 -4
  60. package/dist/features/parameters/common/widget/parameter-line-directory-items-input.js +1 -1
  61. package/dist/features/parameters/common/widget/parameter-switch.js +13 -1
  62. package/dist/features/parameters/dynamic-simulation/curve/common/checkbox-select.js +6 -4
  63. package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector-dialog.js +43 -32
  64. package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector.js +47 -25
  65. package/dist/features/parameters/network-visualizations/map-parameters.js +7 -3
  66. package/dist/features/parameters/network-visualizations/network-area-diagram-parameters.js +7 -3
  67. package/dist/features/parameters/network-visualizations/single-line-diagram-parameters.js +7 -3
  68. package/dist/features/parameters/security-analysis/security-analysis-violations-hiding.js +23 -13
  69. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-factor-count.js +2 -2
  70. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.js +12 -1
  71. package/dist/features/parameters/sensi/sensitivity-parameters-fields.js +36 -26
  72. package/dist/features/parameters/short-circuit/short-circuit-general-tab-panel.js +67 -26
  73. package/dist/features/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +15 -4
  74. package/dist/features/parameters/voltage-init/equipment-selection-parameters.js +51 -15
  75. package/dist/features/parameters/voltage-init/general-parameters.js +9 -1
  76. package/dist/features/process-configs/common/FormSubSection.js +2 -2
  77. package/dist/features/process-configs/common/GeneralInformationSection.js +1 -1
  78. package/dist/features/process-configs/common/SpecificInformationSection.js +12 -4
  79. package/dist/features/process-configs/common/process-config-modifications-edition.js +3 -3
  80. package/dist/features/process-configs/form/components/ProcessTypeChangeDialog.js +5 -2
  81. package/dist/features/side-bar/AppSideBarHeader.js +36 -16
  82. package/dist/features/side-bar/footer/AppSideBarFooter.js +46 -38
  83. package/dist/features/side-bar/footer/applications/OtherAppRedirection.js +10 -8
  84. package/dist/features/side-bar/footer/common/SideBarMenuItem.js +9 -1
  85. package/dist/features/side-bar/footer/profile/ProfileInfos.js +15 -6
  86. package/dist/features/side-bar/footer/settings/DarkModeToggle.js +16 -4
  87. package/dist/features/side-bar/footer/settings/SettingsMenu.js +16 -6
  88. package/dist/features/topBar/AboutDialog.js +46 -17
  89. package/dist/features/topBar/TopBar.js +2 -2
  90. package/dist/features/topBar/UserInformationDialog.js +198 -45
  91. package/package.json +16 -11
@@ -97,79 +97,92 @@ function LimitsPropertiesSideStack({ name, disabled }) {
97
97
  setPropertyName(value);
98
98
  setNameEditorError("");
99
99
  }, []);
100
- return /* @__PURE__ */ jsxs(Stack, { direction: "column", spacing: 2, paddingTop: 2, flexWrap: "wrap", children: [
101
- /* @__PURE__ */ jsxs(Stack, { direction: "row", sx: { display: "flex", flexWrap: "wrap" }, children: [
102
- limitsProperties?.map((property, index) => /* @__PURE__ */ jsx(
103
- LimitsTagChip,
104
- {
105
- limitsProperty: property,
106
- onDelete: () => remove(index),
107
- disabled,
108
- showTooltip: true
109
- },
110
- `${property.name}`
111
- )),
112
- !isEditing && /* @__PURE__ */ jsx(AddButton, { disabled, label: "AddProperty", onClick: () => setIsEditing(true) })
113
- ] }),
114
- isEditing && !disabled ? /* @__PURE__ */ jsxs(
115
- Box,
116
- {
117
- display: "flex",
118
- gap: 2,
119
- width: "100%",
120
- onMouseEnter: () => setHovered(true),
121
- onMouseLeave: () => setHovered(false),
122
- children: [
123
- /* @__PURE__ */ jsx(
124
- Autocomplete,
100
+ return /* @__PURE__ */ jsxs(
101
+ Stack,
102
+ {
103
+ direction: "column",
104
+ spacing: 2,
105
+ sx: {
106
+ paddingTop: 2,
107
+ flexWrap: "wrap"
108
+ },
109
+ children: [
110
+ /* @__PURE__ */ jsxs(Stack, { direction: "row", sx: { display: "flex", flexWrap: "wrap" }, children: [
111
+ limitsProperties?.map((property, index) => /* @__PURE__ */ jsx(
112
+ LimitsTagChip,
125
113
  {
126
- options: Object.values(predefinedPropertiesNames),
127
- size: "small",
128
- onChange: (event, value) => handleOnChange(value ?? ""),
129
- renderInput: (params) => /* @__PURE__ */ jsx(
114
+ limitsProperty: property,
115
+ onDelete: () => remove(index),
116
+ disabled,
117
+ showTooltip: true
118
+ },
119
+ `${property.name}`
120
+ )),
121
+ !isEditing && /* @__PURE__ */ jsx(AddButton, { disabled, label: "AddProperty", onClick: () => setIsEditing(true) })
122
+ ] }),
123
+ isEditing && !disabled ? /* @__PURE__ */ jsxs(
124
+ Box,
125
+ {
126
+ onMouseEnter: () => setHovered(true),
127
+ onMouseLeave: () => setHovered(false),
128
+ sx: {
129
+ display: "flex",
130
+ gap: 2,
131
+ width: "100%"
132
+ },
133
+ children: [
134
+ /* @__PURE__ */ jsx(
135
+ Autocomplete,
136
+ {
137
+ options: Object.values(predefinedPropertiesNames),
138
+ size: "small",
139
+ onChange: (event, value) => handleOnChange(value ?? ""),
140
+ renderInput: (params) => /* @__PURE__ */ jsx(
141
+ TextField,
142
+ {
143
+ label: intl.formatMessage({ id: "PropertyName" }),
144
+ variant: "outlined",
145
+ ...params,
146
+ onChange: (event) => handleOnChange(event.target.value),
147
+ fullWidth: true,
148
+ error: nameEditorError !== "",
149
+ helperText: nameEditorError,
150
+ onKeyDown: handleKeyPress
151
+ }
152
+ ),
153
+ sx: { flex: 1 },
154
+ freeSolo: true
155
+ }
156
+ ),
157
+ /* @__PURE__ */ jsx(
130
158
  TextField,
131
159
  {
132
- label: intl.formatMessage({ id: "PropertyName" }),
133
- variant: "outlined",
134
- ...params,
135
- onChange: (event) => handleOnChange(event.target.value),
136
- fullWidth: true,
137
- error: nameEditorError !== "",
138
- helperText: nameEditorError,
139
- onKeyDown: handleKeyPress
160
+ size: "small",
161
+ label: intl.formatMessage({ id: "PropertyValue" }),
162
+ sx: { flex: 1, verticalAlign: "center" },
163
+ onKeyDown: handleKeyPress,
164
+ onChange: (event) => setPropertyValue(event.target.value),
165
+ error: valueEditorError !== "",
166
+ helperText: valueEditorError
140
167
  }
141
168
  ),
142
- sx: { flex: 1 },
143
- freeSolo: true
144
- }
145
- ),
146
- /* @__PURE__ */ jsx(
147
- TextField,
148
- {
149
- size: "small",
150
- label: intl.formatMessage({ id: "PropertyValue" }),
151
- sx: { flex: 1, verticalAlign: "center" },
152
- onKeyDown: handleKeyPress,
153
- onChange: (event) => setPropertyValue(event.target.value),
154
- error: valueEditorError !== "",
155
- helperText: valueEditorError
156
- }
157
- ),
158
- /* @__PURE__ */ jsx(
159
- IconButton,
160
- {
161
- sx: { verticalAlign: "center" },
162
- onClick: () => {
163
- setIsEditing(false);
164
- setNameEditorError("");
165
- },
166
- children: /* @__PURE__ */ jsx(Delete, { visibility: hovered ? "visible" : "hidden" })
167
- }
168
- )
169
- ]
170
- }
171
- ) : ""
172
- ] });
169
+ /* @__PURE__ */ jsx(
170
+ IconButton,
171
+ {
172
+ sx: { verticalAlign: "center" },
173
+ onClick: () => {
174
+ setIsEditing(false);
175
+ setNameEditorError("");
176
+ },
177
+ children: /* @__PURE__ */ jsx(Delete, { visibility: hovered ? "visible" : "hidden" })
178
+ }
179
+ )
180
+ ]
181
+ }
182
+ ) : ""
183
+ ]
184
+ }
185
+ );
173
186
  }
174
187
  export {
175
188
  LimitsPropertiesSideStack
@@ -72,27 +72,37 @@ function BusbarSectionVoltageMeasurementsForm({
72
72
  if (validity != null) {
73
73
  previousValidity = intl.formatMessage({ id: validity ? "ValidMeasurement" : "InvalidMeasurement" });
74
74
  }
75
- return /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, alignItems: "center", children: [
76
- /* @__PURE__ */ jsx(Grid, { size: 3, children: bbsId }),
77
- /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
78
- FloatInput,
79
- {
80
- name: `${BUSBAR_SECTION_V_MEASUREMENTS}.${originalIndex}.${FieldConstants.VALUE}`,
81
- label: "VoltageText",
82
- adornment: VoltageAdornment,
83
- previousValue,
84
- clearable: true
85
- }
86
- ) }),
87
- /* @__PURE__ */ jsx(Grid, { size: 3, children: /* @__PURE__ */ jsx(
88
- CheckboxNullableInput,
89
- {
90
- name: `${BUSBAR_SECTION_V_MEASUREMENTS}.${originalIndex}.${FieldConstants.VALIDITY}`,
91
- label: "ValidMeasurement",
92
- previousValue: previousValidity
93
- }
94
- ) })
95
- ] }) }, field.id);
75
+ return /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsxs(
76
+ Grid,
77
+ {
78
+ container: true,
79
+ spacing: 2,
80
+ sx: {
81
+ alignItems: "center"
82
+ },
83
+ children: [
84
+ /* @__PURE__ */ jsx(Grid, { size: 3, children: bbsId }),
85
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
86
+ FloatInput,
87
+ {
88
+ name: `${BUSBAR_SECTION_V_MEASUREMENTS}.${originalIndex}.${FieldConstants.VALUE}`,
89
+ label: "VoltageText",
90
+ adornment: VoltageAdornment,
91
+ previousValue,
92
+ clearable: true
93
+ }
94
+ ) }),
95
+ /* @__PURE__ */ jsx(Grid, { size: 3, children: /* @__PURE__ */ jsx(
96
+ CheckboxNullableInput,
97
+ {
98
+ name: `${BUSBAR_SECTION_V_MEASUREMENTS}.${originalIndex}.${FieldConstants.VALIDITY}`,
99
+ label: "ValidMeasurement",
100
+ previousValue: previousValidity
101
+ }
102
+ ) })
103
+ ]
104
+ }
105
+ ) }, field.id);
96
106
  })
97
107
  ] });
98
108
  }
@@ -77,28 +77,39 @@ function ReactiveCapabilityCurveTableForm({
77
77
  } else {
78
78
  labelSuffix = index - 1;
79
79
  }
80
- return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 3, width: "100%", children: [
81
- /* @__PURE__ */ jsx(ReactiveCapabilityCurveRowForm, { id, index, labelSuffix }),
82
- /* @__PURE__ */ jsx(Grid, { size: 1, children: /* @__PURE__ */ jsx(
83
- IconButton,
84
- {
85
- onClick: () => handleRemoveRow(index),
86
- disabled: disabled || index === 0 || index === displayedValues.length - 1,
87
- children: /* @__PURE__ */ jsx(Delete, {})
80
+ return /* @__PURE__ */ jsxs(
81
+ Grid,
82
+ {
83
+ container: true,
84
+ spacing: 3,
85
+ sx: {
86
+ width: "100%"
88
87
  },
89
- value.id
90
- ) }),
91
- index === displayedValues.length - 1 && /* @__PURE__ */ jsx(Grid, { size: 1, children: /* @__PURE__ */ jsx(
92
- IconButton,
93
- {
94
- onClick: () => handleInsertRow(),
95
- disabled,
96
- style: { top: "-1em" },
97
- children: /* @__PURE__ */ jsx(ControlPoint, {})
98
- },
99
- value.id
100
- ) })
101
- ] }, value.id);
88
+ children: [
89
+ /* @__PURE__ */ jsx(ReactiveCapabilityCurveRowForm, { id, index, labelSuffix }),
90
+ /* @__PURE__ */ jsx(Grid, { size: 1, children: /* @__PURE__ */ jsx(
91
+ IconButton,
92
+ {
93
+ onClick: () => handleRemoveRow(index),
94
+ disabled: disabled || index === 0 || index === displayedValues.length - 1,
95
+ children: /* @__PURE__ */ jsx(Delete, {})
96
+ },
97
+ value.id
98
+ ) }),
99
+ index === displayedValues.length - 1 && /* @__PURE__ */ jsx(Grid, { size: 1, children: /* @__PURE__ */ jsx(
100
+ IconButton,
101
+ {
102
+ onClick: () => handleInsertRow(),
103
+ disabled,
104
+ style: { top: "-1em" },
105
+ children: /* @__PURE__ */ jsx(ControlPoint, {})
106
+ },
107
+ value.id
108
+ ) })
109
+ ]
110
+ },
111
+ value.id
112
+ );
102
113
  })
103
114
  ] });
104
115
  }
@@ -3,7 +3,7 @@ import { EquipmentType, Identifiable } from '../../../../utils';
3
3
  export interface RegulatingTerminalFormProps {
4
4
  /** Parent path within the react-hook-form tree (e.g. 'setpointsLimits' or '') */
5
5
  id: string;
6
- direction?: GridDirection;
6
+ direction?: GridDirection | 'column' | 'column-reverse';
7
7
  disabled?: boolean;
8
8
  voltageLevelOptions: Identifiable[];
9
9
  equipmentSectionTypeDefaultValue?: string;
@@ -70,7 +70,7 @@ function RegulatingTerminalForm({
70
70
  const resetEquipment = useCallback(() => {
71
71
  setValue(`${id}.${FieldConstants.EQUIPMENT}`, null);
72
72
  }, [id, setValue]);
73
- return /* @__PURE__ */ jsxs(Grid, { container: true, direction: direction ?? "row", spacing: 1, children: [
73
+ return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, sx: { flexDirection: direction ?? "row" }, children: [
74
74
  /* @__PURE__ */ jsx(Grid, { size: itemSize, children: /* @__PURE__ */ jsx(
75
75
  AutocompleteInput,
76
76
  {
@@ -33,15 +33,26 @@ function ShuntCompensatorSelectionForm({
33
33
  }) {
34
34
  return /* @__PURE__ */ jsxs(Fragment, { children: [
35
35
  /* @__PURE__ */ jsx(GridSection, { title, heading: 4 }),
36
- mcsRows.map((field, index) => /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, alignItems: "center", children: [
37
- /* @__PURE__ */ jsx(Grid, { size: 1, children: /* @__PURE__ */ jsx(
38
- CheckboxInput,
39
- {
40
- name: `${arrayFormName}[${index}].${FieldConstants.SHUNT_COMPENSATOR_SELECTED}`
41
- }
42
- ) }),
43
- /* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(ReadOnlyInput, { name: `${arrayFormName}[${index}].${FieldConstants.ID}` }) })
44
- ] }, field.id))
36
+ mcsRows.map((field, index) => /* @__PURE__ */ jsxs(
37
+ Grid,
38
+ {
39
+ container: true,
40
+ spacing: 1,
41
+ sx: {
42
+ alignItems: "center"
43
+ },
44
+ children: [
45
+ /* @__PURE__ */ jsx(Grid, { size: 1, children: /* @__PURE__ */ jsx(
46
+ CheckboxInput,
47
+ {
48
+ name: `${arrayFormName}[${index}].${FieldConstants.SHUNT_COMPENSATOR_SELECTED}`
49
+ }
50
+ ) }),
51
+ /* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(ReadOnlyInput, { name: `${arrayFormName}[${index}].${FieldConstants.ID}` }) })
52
+ ]
53
+ },
54
+ field.id
55
+ ))
45
56
  ] });
46
57
  }
47
58
  export {
@@ -160,18 +160,28 @@ function GeneratorCreationForm({
160
160
  /* @__PURE__ */ jsx(GridSection, { title: "ReactiveLimits" }),
161
161
  /* @__PURE__ */ jsx(ReactiveLimitsForm, {}),
162
162
  /* @__PURE__ */ jsx(SetPointsForm, {}),
163
- /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, paddingTop: 2, children: [
164
- /* @__PURE__ */ jsx(
165
- GridItem,
166
- {
167
- tooltip: watchVoltageRegulation !== null ? "" : /* @__PURE__ */ jsx(FormattedMessage, { id: "NoModification" }),
168
- size: 4,
169
- children: voltageRegulationField
170
- }
171
- ),
172
- voltageRegulationFields,
173
- /* @__PURE__ */ jsx(ActivePowerControlForm, {})
174
- ] }),
163
+ /* @__PURE__ */ jsxs(
164
+ Grid,
165
+ {
166
+ container: true,
167
+ spacing: 2,
168
+ sx: {
169
+ paddingTop: 2
170
+ },
171
+ children: [
172
+ /* @__PURE__ */ jsx(
173
+ GridItem,
174
+ {
175
+ tooltip: watchVoltageRegulation !== null ? "" : /* @__PURE__ */ jsx(FormattedMessage, { id: "NoModification" }),
176
+ size: 4,
177
+ children: voltageRegulationField
178
+ }
179
+ ),
180
+ voltageRegulationFields,
181
+ /* @__PURE__ */ jsx(ActivePowerControlForm, {})
182
+ ]
183
+ }
184
+ ),
175
185
  /* @__PURE__ */ jsx(GridSection, { title: "ShortCircuit" }),
176
186
  /* @__PURE__ */ jsx(ShortCircuitForm, {}),
177
187
  /* @__PURE__ */ jsx(GridSection, { title: "GenerationDispatch" }),
@@ -210,24 +210,34 @@ function GeneratorDialogTabsContent({
210
210
  isModification: true
211
211
  }
212
212
  ),
213
- /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, paddingTop: 2, children: [
214
- /* @__PURE__ */ jsx(
215
- GridItem,
216
- {
217
- tooltip: watchVoltageRegulation === null ? /* @__PURE__ */ jsx(FormattedMessage, { id: "NoModification" }) : "",
218
- size: 4,
219
- children: voltageRegulationField
220
- }
221
- ),
222
- voltageRegulationFields,
223
- /* @__PURE__ */ jsx(
224
- ActivePowerControlForm,
225
- {
226
- isEquipmentModification: true,
227
- previousValues: generatorToModify?.activePowerControl
228
- }
229
- )
230
- ] }),
213
+ /* @__PURE__ */ jsxs(
214
+ Grid,
215
+ {
216
+ container: true,
217
+ spacing: 2,
218
+ sx: {
219
+ paddingTop: 2
220
+ },
221
+ children: [
222
+ /* @__PURE__ */ jsx(
223
+ GridItem,
224
+ {
225
+ tooltip: watchVoltageRegulation === null ? /* @__PURE__ */ jsx(FormattedMessage, { id: "NoModification" }) : "",
226
+ size: 4,
227
+ children: voltageRegulationField
228
+ }
229
+ ),
230
+ voltageRegulationFields,
231
+ /* @__PURE__ */ jsx(
232
+ ActivePowerControlForm,
233
+ {
234
+ isEquipmentModification: true,
235
+ previousValues: generatorToModify?.activePowerControl
236
+ }
237
+ )
238
+ ]
239
+ }
240
+ ),
231
241
  /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, children: /* @__PURE__ */ jsxs(Grid, { size: 12, children: [
232
242
  /* @__PURE__ */ jsx("h3", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Limits" }) }),
233
243
  /* @__PURE__ */ jsx("h4", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "ActiveLimits" }) })
@@ -179,10 +179,21 @@ function VscConverterStationPane({
179
179
  ),
180
180
  /* @__PURE__ */ jsx(GridSection, { title: "Setpoints" }),
181
181
  /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, sx: { width: "100%" }, children: /* @__PURE__ */ jsx(GridItem, { size: 4, children: reactivePowerField }) }),
182
- /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, paddingTop: 2, sx: { width: "100%" }, children: [
183
- /* @__PURE__ */ jsx(GridItem, { size: 4, children: voltageRegulation }),
184
- /* @__PURE__ */ jsx(GridItem, { size: 4, children: voltageField })
185
- ] })
182
+ /* @__PURE__ */ jsxs(
183
+ Grid,
184
+ {
185
+ container: true,
186
+ spacing: 2,
187
+ sx: {
188
+ paddingTop: 2,
189
+ width: "100%"
190
+ },
191
+ children: [
192
+ /* @__PURE__ */ jsx(GridItem, { size: 4, children: voltageRegulation }),
193
+ /* @__PURE__ */ jsx(GridItem, { size: 4, children: voltageField })
194
+ ]
195
+ }
196
+ )
186
197
  ] });
187
198
  }
188
199
  export {
@@ -144,47 +144,77 @@ function SetPointsLimitsForm({
144
144
  );
145
145
  return /* @__PURE__ */ jsxs(Fragment, { children: [
146
146
  /* @__PURE__ */ jsx(GridSection, { title: "ReactiveLimits" }),
147
- /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, padding: 1, children: [
148
- /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
149
- SelectInput,
150
- {
151
- name: `${id}.${FieldConstants.CHARACTERISTICS_CHOICE}`,
152
- options: Object.values(CHARACTERISTICS_CHOICES),
153
- fullWidth: true,
154
- disableClearable: true,
155
- size: "small"
156
- }
157
- ) }),
158
- watchCharacteristicsChoice === CHARACTERISTICS_CHOICES.Q_AT_NOMINAL_V.id && /* @__PURE__ */ jsxs(Fragment, { children: [
159
- /* @__PURE__ */ jsx(GridItem, { size: 4, children: minQAtNominalVField }),
160
- /* @__PURE__ */ jsx(GridItem, { size: 4, children: maxQAtNominalVField })
161
- ] }),
162
- watchCharacteristicsChoice === CHARACTERISTICS_CHOICES.SUSCEPTANCE.id && /* @__PURE__ */ jsxs(Fragment, { children: [
163
- /* @__PURE__ */ jsx(GridItem, { size: 4, children: minSusceptanceField }),
164
- /* @__PURE__ */ jsx(GridItem, { size: 4, children: maxSusceptanceField })
165
- ] })
166
- ] }),
147
+ /* @__PURE__ */ jsxs(
148
+ Grid,
149
+ {
150
+ container: true,
151
+ spacing: 2,
152
+ sx: {
153
+ padding: 1
154
+ },
155
+ children: [
156
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
157
+ SelectInput,
158
+ {
159
+ name: `${id}.${FieldConstants.CHARACTERISTICS_CHOICE}`,
160
+ options: Object.values(CHARACTERISTICS_CHOICES),
161
+ fullWidth: true,
162
+ disableClearable: true,
163
+ size: "small"
164
+ }
165
+ ) }),
166
+ watchCharacteristicsChoice === CHARACTERISTICS_CHOICES.Q_AT_NOMINAL_V.id && /* @__PURE__ */ jsxs(Fragment, { children: [
167
+ /* @__PURE__ */ jsx(GridItem, { size: 4, children: minQAtNominalVField }),
168
+ /* @__PURE__ */ jsx(GridItem, { size: 4, children: maxQAtNominalVField })
169
+ ] }),
170
+ watchCharacteristicsChoice === CHARACTERISTICS_CHOICES.SUSCEPTANCE.id && /* @__PURE__ */ jsxs(Fragment, { children: [
171
+ /* @__PURE__ */ jsx(GridItem, { size: 4, children: minSusceptanceField }),
172
+ /* @__PURE__ */ jsx(GridItem, { size: 4, children: maxSusceptanceField })
173
+ ] })
174
+ ]
175
+ }
176
+ ),
167
177
  /* @__PURE__ */ jsx(GridSection, { title: "Setpoints" }),
168
- /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, padding: 1, children: [
169
- /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
170
- SelectInput,
171
- {
172
- name: `${id}.${FieldConstants.VOLTAGE_REGULATION_MODE}`,
173
- label: "ModeAutomaton",
174
- options: Object.values(VOLTAGE_REGULATION_MODES),
175
- fullWidth: true,
176
- disableClearable: true,
177
- size: "small"
178
- }
179
- ) }),
180
- /* @__PURE__ */ jsx(GridItem, { size: 4, children: voltageSetPointField }),
181
- /* @__PURE__ */ jsx(GridItem, { size: 4, children: reactivePowerSetPointField }),
182
- /* @__PURE__ */ jsx(GridItem, { size: 4, children: voltageRegulationTypeField })
183
- ] }),
184
- watchRegulationType === REGULATION_TYPES.DISTANT.id && /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, padding: 1, children: [
185
- /* @__PURE__ */ jsx(Grid, { size: 4, sx: { alignItems: "center" }, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "RegulatingTerminalGenerator" }) }),
186
- /* @__PURE__ */ jsx(GridItem, { size: 8, children: regulatingTerminalField })
187
- ] })
178
+ /* @__PURE__ */ jsxs(
179
+ Grid,
180
+ {
181
+ container: true,
182
+ spacing: 2,
183
+ sx: {
184
+ padding: 1
185
+ },
186
+ children: [
187
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
188
+ SelectInput,
189
+ {
190
+ name: `${id}.${FieldConstants.VOLTAGE_REGULATION_MODE}`,
191
+ label: "ModeAutomaton",
192
+ options: Object.values(VOLTAGE_REGULATION_MODES),
193
+ fullWidth: true,
194
+ disableClearable: true,
195
+ size: "small"
196
+ }
197
+ ) }),
198
+ /* @__PURE__ */ jsx(GridItem, { size: 4, children: voltageSetPointField }),
199
+ /* @__PURE__ */ jsx(GridItem, { size: 4, children: reactivePowerSetPointField }),
200
+ /* @__PURE__ */ jsx(GridItem, { size: 4, children: voltageRegulationTypeField })
201
+ ]
202
+ }
203
+ ),
204
+ watchRegulationType === REGULATION_TYPES.DISTANT.id && /* @__PURE__ */ jsxs(
205
+ Grid,
206
+ {
207
+ container: true,
208
+ spacing: 2,
209
+ sx: {
210
+ padding: 1
211
+ },
212
+ children: [
213
+ /* @__PURE__ */ jsx(Grid, { size: 4, sx: { alignItems: "center" }, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "RegulatingTerminalGenerator" }) }),
214
+ /* @__PURE__ */ jsx(GridItem, { size: 8, children: regulatingTerminalField })
215
+ ]
216
+ }
217
+ )
188
218
  ] });
189
219
  }
190
220
  export {
@@ -106,7 +106,16 @@ function StandbyAutomatonForm() {
106
106
  labelPlacement: "start"
107
107
  }
108
108
  ),
109
- hover && watchVoltageMode !== VOLTAGE_REGULATION_MODES.VOLTAGE.id && /* @__PURE__ */ jsx(Box, { marginLeft: 2, marginTop: "5px", children: /* @__PURE__ */ jsx(Tooltip, { title: /* @__PURE__ */ jsx(FormattedMessage, { id: "StandbyNotAvailable" }), children: /* @__PURE__ */ jsx(WarningAmber, { color: "warning" }) }) })
109
+ hover && watchVoltageMode !== VOLTAGE_REGULATION_MODES.VOLTAGE.id && /* @__PURE__ */ jsx(
110
+ Box,
111
+ {
112
+ sx: {
113
+ marginLeft: 2,
114
+ marginTop: "5px"
115
+ },
116
+ children: /* @__PURE__ */ jsx(Tooltip, { title: /* @__PURE__ */ jsx(FormattedMessage, { id: "StandbyNotAvailable" }), children: /* @__PURE__ */ jsx(WarningAmber, { color: "warning" }) })
117
+ }
118
+ )
110
119
  ] }) }),
111
120
  lVoltageSetLimit: createField(
112
121
  `${id}.${FieldConstants.LOW_VOLTAGE_SET_POINT}`,
@@ -132,11 +141,31 @@ function StandbyAutomatonForm() {
132
141
  return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
133
142
  /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(CheckboxInput, { name: `${id}.${FieldConstants.ADD_STAND_BY_AUTOMATON}`, label: "AddAutomaton" }) }) }),
134
143
  watchAddStandbyAutomatonProps && /* @__PURE__ */ jsxs(Fragment, { children: [
135
- /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, padding: 2, children: Object.keys(fields).map((key) => {
136
- const typedKey = key;
137
- return /* @__PURE__ */ jsx(Grid, { size: 6, children: fields[typedKey] }, key);
138
- }) }),
139
- /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, padding: 2, children: /* @__PURE__ */ jsx(SusceptanceArea, {}) })
144
+ /* @__PURE__ */ jsx(
145
+ Grid,
146
+ {
147
+ container: true,
148
+ spacing: 2,
149
+ sx: {
150
+ padding: 2
151
+ },
152
+ children: Object.keys(fields).map((key) => {
153
+ const typedKey = key;
154
+ return /* @__PURE__ */ jsx(Grid, { size: 6, children: fields[typedKey] }, key);
155
+ })
156
+ }
157
+ ),
158
+ /* @__PURE__ */ jsx(
159
+ Grid,
160
+ {
161
+ container: true,
162
+ spacing: 2,
163
+ sx: {
164
+ padding: 2
165
+ },
166
+ children: /* @__PURE__ */ jsx(SusceptanceArea, {})
167
+ }
168
+ )
140
169
  ] })
141
170
  ] });
142
171
  }