@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.
- package/dist/components/composite/agGridTable/BottomTableButtons.js +5 -5
- package/dist/components/composite/customAGGrid/cell-renderers.js +1 -1
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-aggrid-text-filter.js +10 -8
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-filter-icon.js +2 -2
- package/dist/components/composite/customAGGrid/custom-aggrid-header.js +9 -9
- package/dist/components/composite/customAGGrid/custom-aggrid-menu.js +2 -2
- package/dist/components/composite/dnd-table/dnd-table-bottom-left-buttons.js +4 -4
- package/dist/components/composite/dnd-table/dnd-table-bottom-right-buttons.js +6 -6
- package/dist/components/composite/dnd-table/dnd-table.js +4 -4
- package/dist/components/composite/elementSearch/elementSearchInput/ElementSearchInput.js +4 -2
- package/dist/components/composite/filter/HeaderFilterForm.js +4 -4
- package/dist/components/composite/filter/expert/expertFilterConstants.js +3 -1
- package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js +7 -7
- package/dist/components/composite/flatParameters/FlatParameters.js +17 -11
- package/dist/components/composite/grid/grid-item.d.ts +4 -4
- package/dist/components/composite/grid/grid-item.js +2 -2
- package/dist/components/composite/grid/grid-section.js +2 -2
- package/dist/components/composite/reactQueryBuilder/PropertyValueEditor.js +5 -5
- package/dist/components/composite/reactQueryBuilder/compositeRuleEditor/RuleValueEditor.js +5 -5
- package/dist/components/composite/report/QuickSearch.js +31 -29
- package/dist/components/composite/report/report-viewer/log-table/log-table.js +2 -2
- package/dist/components/ui/csvPicker/csv-picker.js +4 -4
- package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +8 -8
- package/dist/components/ui/dialogs/modifyElementSelection/ModifyElementSelection.js +3 -3
- package/dist/components/ui/dialogs/name-element-editor/name-element-editor-form.js +4 -4
- package/dist/components/ui/inputs/SelectClearable.js +3 -1
- package/dist/components/ui/inputs/checkbox-autocomplete/checkbox-autocomplete.js +7 -5
- package/dist/components/ui/reactHookForm/CheckboxNullableInput.js +4 -2
- package/dist/components/ui/reactHookForm/autocompleteInputs/AutocompleteInput.js +3 -1
- package/dist/components/ui/reactHookForm/autocompleteInputs/MultipleAutocompleteInput.js +1 -1
- package/dist/components/ui/reactHookForm/booleans/BooleanInput.js +1 -1
- package/dist/components/ui/reactHookForm/chip-items-input.js +11 -9
- package/dist/components/ui/reactHookForm/directory-item-input/directory-item-input.js +5 -5
- package/dist/components/ui/reactHookForm/errorManagement/FieldErrorAlert.js +2 -2
- package/dist/components/ui/reactHookForm/expandableInput/DeletableRow.js +3 -3
- package/dist/components/ui/reactHookForm/expandableInput/ExpandableInput.js +4 -4
- package/dist/components/ui/reactHookForm/numbers/RangeInput.js +5 -5
- package/dist/components/ui/reactHookForm/readOnly/ButtonReadOnlyInput.js +26 -24
- package/dist/components/ui/reactHookForm/readOnly/ReadOnlyInput.js +11 -9
- package/dist/components/ui/reactHookForm/selectInputs/CountriesInput.js +2 -2
- package/dist/components/ui/reactHookForm/tableInputs/table-numerical-input.js +30 -28
- package/dist/components/ui/reactHookForm/tableInputs/table-text-input.js +10 -8
- package/dist/components/ui/reactHookForm/text/ExpandingTextField.js +6 -4
- package/dist/components/ui/reactHookForm/text/TextInput.js +7 -5
- package/dist/components/ui/reactHookForm/text/UniqueNameInput.js +6 -4
- package/dist/components/ui/reactHookForm/utils/HelperPreviousValue.js +10 -8
- package/dist/components/ui/reactHookForm/utils/TextFieldWithAdornment.js +4 -2
- package/dist/components/ui/reactHookForm/utils/functions.js +2 -2
- package/dist/features/authentication/AuthenticationRouterErrorDisplay.js +3 -3
- package/dist/features/global-filter/ui/global-filter-dropdown-panel.js +8 -8
- package/dist/features/global-filter/ui/global-filter-panel.js +35 -29
- package/dist/features/network-modification-table/network-modification-table-styles.js +2 -3
- package/dist/features/network-modifications/battery/creation/BatteryCreationForm.js +18 -8
- package/dist/features/network-modifications/battery/modification/BatteryDialogHeader.js +8 -6
- package/dist/features/network-modifications/battery/modification/BatteryDialogTabs.js +4 -2
- package/dist/features/network-modifications/battery/modification/BatteryDialogTabsContent.js +6 -6
- package/dist/features/network-modifications/battery/modification/BatteryModificationForm.js +4 -4
- package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-constants.d.ts +1 -1
- package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-constants.js +4 -2
- package/dist/features/network-modifications/by-filter/assignment/modification-by-assignment-form.js +3 -3
- package/dist/features/network-modifications/by-filter/deletion/ByFilterDeletionForm.js +4 -4
- package/dist/features/network-modifications/by-filter/formula/formula/formula-form.js +2 -2
- package/dist/features/network-modifications/by-filter/formula/formula/formula-utils.js +2 -1
- package/dist/features/network-modifications/by-filter/formula/modification-by-formula-form.js +3 -3
- package/dist/features/network-modifications/common/connectivity/ConnectivityForm.js +7 -7
- package/dist/features/network-modifications/common/connectivity/PositionForm.js +4 -4
- package/dist/features/network-modifications/common/connectivity/VoltageLevelConnectivityForm.js +4 -4
- package/dist/features/network-modifications/common/currentLimits/LimitsPane.js +10 -10
- package/dist/features/network-modifications/common/currentLimits/limitsEditor/LimitsEditor.js +5 -5
- package/dist/features/network-modifications/common/currentLimits/limitsEditor/TemporaryLimitsTable.js +2 -2
- package/dist/features/network-modifications/common/currentLimits/operationalLimitsGroups/OperationalLimitsGroups.js +2 -2
- package/dist/features/network-modifications/common/measurements/BusbarSectionVoltageMeasurementsForm.js +6 -6
- package/dist/features/network-modifications/common/measurements/PowerMeasurementsForm.js +3 -3
- package/dist/features/network-modifications/common/measurements/PowerWithValidityForm.js +4 -4
- package/dist/features/network-modifications/common/properties/PropertyForm.js +5 -5
- package/dist/features/network-modifications/common/reactiveLimits/ReactiveLimitsForm.js +2 -2
- package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.js +7 -7
- package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.js +4 -4
- package/dist/features/network-modifications/common/setpoints/SetPointsForm.js +4 -4
- package/dist/features/network-modifications/common/shortCircuit/ShortCircuitForm.js +2 -2
- package/dist/features/network-modifications/common/voltageRegulation/VoltageRegulationForm.js +2 -2
- package/dist/features/network-modifications/equipmentDeletion/EquipmentDeletionForm.js +5 -5
- package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/HvdcLccDeletionSpecificForm.js +4 -4
- package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.js +4 -4
- package/dist/features/network-modifications/generator/creation/GeneratorCreationForm.js +7 -7
- package/dist/features/network-modifications/generator/modification/GeneratorDialogHeader.js +9 -7
- package/dist/features/network-modifications/generator/modification/GeneratorDialogTabs.js +4 -2
- package/dist/features/network-modifications/generator/modification/GeneratorDialogTabsContent.js +7 -7
- package/dist/features/network-modifications/generator/modification/GeneratorModificationForm.js +4 -4
- package/dist/features/network-modifications/line/characteristics/LineCharacteristicsPane.js +4 -4
- package/dist/features/network-modifications/line/common/LineDialogHeader.js +2 -2
- package/dist/features/network-modifications/load/common/LoadDialogHeader.js +9 -7
- package/dist/features/network-modifications/load/common/LoadDialogTabs.js +4 -2
- package/dist/features/network-modifications/load/common/LoadForm.js +4 -4
- package/dist/features/network-modifications/shunt-compensator/common/CharacteristicsForm.js +13 -13
- package/dist/features/network-modifications/shunt-compensator/creation/ShuntCompensatorCreationForm.js +9 -9
- package/dist/features/network-modifications/shunt-compensator/modification/ShuntCompensatorModificationForm.js +11 -11
- package/dist/features/network-modifications/substation/creation/SubstationCreationForm.js +6 -6
- package/dist/features/network-modifications/substation/modification/SubstationModificationForm.js +10 -8
- package/dist/features/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +10 -8
- package/dist/features/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.js +8 -8
- package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.js +4 -4
- package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/couplingOmnibus/CouplingOmnibusCreation.js +3 -3
- package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js +2 -2
- package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationCreationSection.js +6 -6
- package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.js +5 -5
- package/dist/features/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js +23 -19
- package/dist/features/parameters/common/line-separator.js +2 -2
- package/dist/features/parameters/common/parameter-field.js +6 -6
- package/dist/features/parameters/common/parameter-layout/parameter-layout.js +7 -7
- package/dist/features/parameters/common/parameter-table-field/parameter-table-field.js +3 -3
- package/dist/features/parameters/common/parameters.js +6 -4
- package/dist/features/parameters/common/provider-param.js +4 -4
- package/dist/features/parameters/common/widget/parameter-float.js +4 -4
- package/dist/features/parameters/common/widget/parameter-group.js +2 -2
- package/dist/features/parameters/common/widget/parameter-line-directory-items-input.js +4 -4
- package/dist/features/parameters/common/widget/parameter-line-slider.d.ts +4 -3
- package/dist/features/parameters/common/widget/parameter-line-slider.js +4 -4
- package/dist/features/parameters/common/widget/parameter-switch.js +2 -2
- package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +4 -4
- package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.js +2 -2
- package/dist/features/parameters/dynamic-margin-calculation/time-delay-parameters.js +2 -2
- package/dist/features/parameters/dynamic-security-analysis/contingency-parameters.js +2 -2
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +4 -4
- package/dist/features/parameters/dynamic-security-analysis/scenario-parameters.js +2 -2
- package/dist/features/parameters/dynamic-simulation/curve/common/checkbox-treeview.js +2 -2
- package/dist/features/parameters/dynamic-simulation/curve/common/grid-buttons.js +4 -4
- package/dist/features/parameters/dynamic-simulation/curve/common/grid-search.js +7 -5
- package/dist/features/parameters/dynamic-simulation/curve/curve-parameters.js +5 -5
- package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector-dialog.js +5 -5
- package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector.js +3 -3
- package/dist/features/parameters/dynamic-simulation/curve/dialog/equipment-filter.js +13 -13
- package/dist/features/parameters/dynamic-simulation/curve/dialog/model-filter.js +4 -4
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +4 -4
- package/dist/features/parameters/dynamic-simulation/mapping/mapping-parameters.js +2 -2
- package/dist/features/parameters/dynamic-simulation/network/network-parameters.js +2 -2
- package/dist/features/parameters/dynamic-simulation/solver/solver-parameters.js +2 -2
- package/dist/features/parameters/dynamic-simulation/time-delay/time-delay-parameters.js +2 -2
- package/dist/features/parameters/loadflow/load-flow-parameters-content.js +3 -3
- package/dist/features/parameters/loadflow/load-flow-parameters-dialog.js +2 -2
- package/dist/features/parameters/loadflow/load-flow-parameters-form.js +4 -4
- package/dist/features/parameters/network-visualizations/map-parameters.js +8 -8
- package/dist/features/parameters/network-visualizations/network-area-diagram-parameters.js +4 -4
- package/dist/features/parameters/network-visualizations/network-visualizations-parameters-dialog.js +8 -6
- package/dist/features/parameters/network-visualizations/single-line-diagram-parameters.js +8 -8
- package/dist/features/parameters/pcc-min/pcc-min-parameters-dialog.js +8 -6
- package/dist/features/parameters/pcc-min/pcc-min-parameters-form.js +2 -2
- package/dist/features/parameters/security-analysis/security-analysis-parameters-dialog.js +8 -6
- package/dist/features/parameters/security-analysis/security-analysis-violations-hiding.js +6 -6
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-dialog.js +2 -2
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.js +2 -2
- package/dist/features/parameters/sensi/sensitivity-parameters-fields.js +7 -7
- package/dist/features/parameters/sensi/sensitivity-parameters-selector.js +2 -2
- package/dist/features/parameters/short-circuit/short-circuit-general-tab-panel.js +11 -11
- package/dist/features/parameters/short-circuit/short-circuit-parameters-content.js +3 -3
- package/dist/features/parameters/short-circuit/short-circuit-parameters-dialog.js +2 -2
- package/dist/features/parameters/short-circuit/short-circuit-parameters-form.js +2 -2
- package/dist/features/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +5 -5
- package/dist/features/parameters/short-circuit/short-circuit-study-area-tab-panel.js +2 -2
- package/dist/features/parameters/voltage-init/equipment-selection-parameters.js +4 -4
- package/dist/features/parameters/voltage-init/general-parameters.js +2 -2
- package/dist/features/parameters/voltage-init/voltage-init-parameters-dialog.js +8 -6
- package/dist/features/parameters/voltage-init/voltage-init-parameters-form.js +2 -2
- package/dist/features/parameters/voltage-init/voltage-limits-parameters.js +2 -2
- package/dist/features/topBar/AboutDialog.js +40 -28
- package/dist/features/topBar/TopBar.js +2 -2
- package/dist/features/topBar/UserInformationDialog.js +34 -34
- package/dist/features/topBar/UserSettingsDialog.js +3 -1
- package/dist/translations/en/networkModificationsEn.d.ts +1 -1
- package/dist/translations/en/networkModificationsEn.js +1 -1
- package/dist/translations/fr/networkModificationsFr.d.ts +1 -1
- package/dist/translations/fr/networkModificationsFr.js +1 -1
- package/dist/utils/types/types.d.ts +1 -0
- package/dist/utils/types/types.js +1 -0
- package/package.json +7 -7
|
@@ -73,34 +73,36 @@ function TableNumericalInput({
|
|
|
73
73
|
size: "small",
|
|
74
74
|
fullWidth: true,
|
|
75
75
|
inputRef: ref,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
76
|
+
slotProps: {
|
|
77
|
+
input: {
|
|
78
|
+
endAdornment: /* @__PURE__ */ jsxs(InputAdornment, { position: "end", children: [
|
|
79
|
+
transformedValue && adornment?.text,
|
|
80
|
+
clearable && /* @__PURE__ */ jsx(
|
|
81
|
+
IconButton,
|
|
82
|
+
{
|
|
83
|
+
onClick: handleClearValue,
|
|
84
|
+
style: {
|
|
85
|
+
visibility: clearable ? "visible" : "hidden"
|
|
86
|
+
},
|
|
87
|
+
children: /* @__PURE__ */ jsx(Clear, {})
|
|
88
|
+
}
|
|
89
|
+
)
|
|
90
|
+
] }),
|
|
91
|
+
disableInjectingGlobalStyles: true,
|
|
92
|
+
// disable auto-fill animations and increase rendering perf
|
|
93
|
+
inputProps: {
|
|
94
|
+
style: {
|
|
95
|
+
fontSize: "small",
|
|
96
|
+
color: previousValue !== void 0 && previousValue === parseFloat(value) && !valueModified ? "grey" : void 0,
|
|
97
|
+
// grey out the value if it is the same as the previous one
|
|
98
|
+
textAlign: style?.textAlign ?? "left"
|
|
99
|
+
},
|
|
100
|
+
inputMode: "numeric",
|
|
101
|
+
pattern: "[0-9]*",
|
|
102
|
+
lang: "en-US",
|
|
103
|
+
// to have '.' as decimal separator
|
|
104
|
+
...inputProps
|
|
105
|
+
}
|
|
104
106
|
}
|
|
105
107
|
},
|
|
106
108
|
...hideErrorMessage ? {} : genHelperError(error?.message),
|
|
@@ -25,14 +25,16 @@ function TableTextInput({ name, hideErrorMessage, inputProps, ...props }) {
|
|
|
25
25
|
size: "small",
|
|
26
26
|
fullWidth: true,
|
|
27
27
|
inputRef: ref,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
28
|
+
slotProps: {
|
|
29
|
+
input: {
|
|
30
|
+
disableInjectingGlobalStyles: true,
|
|
31
|
+
// disable auto-fill animations and increase rendering perf
|
|
32
|
+
inputProps: {
|
|
33
|
+
style: {
|
|
34
|
+
fontSize: "small"
|
|
35
|
+
},
|
|
36
|
+
...inputProps
|
|
37
|
+
}
|
|
36
38
|
}
|
|
37
39
|
},
|
|
38
40
|
...hideErrorMessage ? {} : genHelperError(error?.message),
|
|
@@ -44,10 +44,12 @@ function ExpandingTextField({
|
|
|
44
44
|
inputProps: { "data-testid": "DescriptionInputField" }
|
|
45
45
|
},
|
|
46
46
|
helperText: /* @__PURE__ */ jsx(Typography, { variant: "caption", children: descriptionCounter }),
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
slotProps: {
|
|
48
|
+
formHelperText: {
|
|
49
|
+
sx: {
|
|
50
|
+
ml: "auto",
|
|
51
|
+
color: (theme) => isOverTheLimit ? theme.palette.error.main : theme.palette.text.secondary
|
|
52
|
+
}
|
|
51
53
|
}
|
|
52
54
|
},
|
|
53
55
|
...rowsToDisplay && { rows: rowsToDisplay },
|
|
@@ -67,11 +67,13 @@ function TextInput({
|
|
|
67
67
|
value: transformedValue ?? "",
|
|
68
68
|
onChange: handleValueChanged,
|
|
69
69
|
disabled,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
70
|
+
slotProps: {
|
|
71
|
+
input: {
|
|
72
|
+
endAdornment: /* @__PURE__ */ jsxs(InputAdornment, { position: "end", children: [
|
|
73
|
+
clearable && transformedValue !== void 0 && transformedValue !== "" && /* @__PURE__ */ jsx(IconButton, { onClick: handleClearValue, size: "small", children: /* @__PURE__ */ jsx(Clear, { fontSize: "small" }) }),
|
|
74
|
+
customAdornment && { ...customAdornment }
|
|
75
|
+
] })
|
|
76
|
+
}
|
|
75
77
|
},
|
|
76
78
|
inputRef: ref,
|
|
77
79
|
...clearable && adornment && {
|
|
@@ -58,10 +58,12 @@ function UniqueNameInput({
|
|
|
58
58
|
fullWidth,
|
|
59
59
|
error: !!error,
|
|
60
60
|
helperText: translatedError,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
slotProps: {
|
|
62
|
+
input: {
|
|
63
|
+
endAdornment,
|
|
64
|
+
inputProps: {
|
|
65
|
+
"data-testid": "NameInputField"
|
|
66
|
+
}
|
|
65
67
|
}
|
|
66
68
|
},
|
|
67
69
|
...formProps
|
|
@@ -18,15 +18,17 @@ function HelperPreviousValue({
|
|
|
18
18
|
CustomTooltip,
|
|
19
19
|
{
|
|
20
20
|
title: intl.formatMessage({ id: isNodeBuilt ? "builtNodeTooltip" : "notBuiltNodeTooltip" }),
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
slotProps: {
|
|
22
|
+
popper: {
|
|
23
|
+
modifiers: [
|
|
24
|
+
{
|
|
25
|
+
name: "offset",
|
|
26
|
+
options: {
|
|
27
|
+
offset: [0, -10]
|
|
28
|
+
}
|
|
27
29
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
]
|
|
31
|
+
}
|
|
30
32
|
},
|
|
31
33
|
children: isNodeBuilt ? /* @__PURE__ */ jsx(InfoOutlined, { color: "info", fontSize: "small" }) : /* @__PURE__ */ jsx(WarningAmberRounded, { color: "warning", fontSize: "small" })
|
|
32
34
|
}
|
|
@@ -51,9 +51,11 @@ function TextFieldWithAdornment(props) {
|
|
|
51
51
|
...otherProps,
|
|
52
52
|
variant,
|
|
53
53
|
value,
|
|
54
|
-
InputProps: adornmentPosition === "start" ? withStartAdornmentText() : withEndAdornmentText(),
|
|
55
54
|
onFocus: () => setIsFocused(true),
|
|
56
|
-
onBlur: () => setIsFocused(false)
|
|
55
|
+
onBlur: () => setIsFocused(false),
|
|
56
|
+
slotProps: {
|
|
57
|
+
input: adornmentPosition === "start" ? withStartAdornmentText() : withEndAdornmentText()
|
|
58
|
+
}
|
|
57
59
|
}
|
|
58
60
|
);
|
|
59
61
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { FormattedMessage } from "react-intl";
|
|
3
3
|
import { getIn } from "yup";
|
|
4
|
-
import {
|
|
4
|
+
import { Grid } from "@mui/material";
|
|
5
5
|
function genHelperError(...errors) {
|
|
6
6
|
const inError = errors.find((e) => e);
|
|
7
7
|
if (inError) {
|
|
@@ -20,7 +20,7 @@ const isFieldRequired = (fieldName, schema, values) => {
|
|
|
20
20
|
return fieldSchema.describe({ parent: parentValues })?.optional === false;
|
|
21
21
|
};
|
|
22
22
|
const gridItem = (field, size = 6) => {
|
|
23
|
-
return /* @__PURE__ */ jsx(
|
|
23
|
+
return /* @__PURE__ */ jsx(Grid, { size, sx: { alignItems: "start" }, children: field });
|
|
24
24
|
};
|
|
25
25
|
const toFloatOrNullValue = (value) => {
|
|
26
26
|
if (value === "-") {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid } from "@mui/material";
|
|
3
3
|
import { Logout } from "./Logout.js";
|
|
4
4
|
import { logout } from "./utils/authService.js";
|
|
5
5
|
import "./utils/userManagerMock.js";
|
|
@@ -8,8 +8,8 @@ import { ErrorInUserValidationAlert } from "./alert/ErrorInUserValidationAlert.j
|
|
|
8
8
|
import { UnauthorizedAccessAlert } from "./alert/UnauthorizedAccessAlert.js";
|
|
9
9
|
function AuthenticationRouterErrorDisplay({ errorState, instance, dispatch }) {
|
|
10
10
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
11
|
-
/* @__PURE__ */ jsx(
|
|
12
|
-
/* @__PURE__ */ jsxs(
|
|
11
|
+
/* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(Logout, { disabled: instance === null, onLogoutClick: () => logout(dispatch, instance) }) }),
|
|
12
|
+
/* @__PURE__ */ jsxs(Grid, { size: 4, children: [
|
|
13
13
|
errorState.logoutError && /* @__PURE__ */ jsx(ErrorInLogoutAlert, { userName: errorState.userName, message: errorState.logoutError.error.message }),
|
|
14
14
|
errorState.userValidationError && /* @__PURE__ */ jsx(
|
|
15
15
|
ErrorInUserValidationAlert,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { ClickAwayListener, Paper,
|
|
2
|
+
import { ClickAwayListener, Paper, Grid, Typography, Button, List, ListItemButton, ListItemText, Box } from "@mui/material";
|
|
3
3
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
4
4
|
import { FileUpload } from "@mui/icons-material";
|
|
5
5
|
import { useState, useMemo, useCallback } from "react";
|
|
@@ -159,16 +159,16 @@ function GlobalFilterDropdownPanel({
|
|
|
159
159
|
setOpenedDropdown(false);
|
|
160
160
|
}
|
|
161
161
|
},
|
|
162
|
-
children: /* @__PURE__ */ jsx(Paper, { sx: resultsGlobalFilterStyles.dropdown, children: /* @__PURE__ */ jsxs(
|
|
163
|
-
/* @__PURE__ */ jsx(
|
|
162
|
+
children: /* @__PURE__ */ jsx(Paper, { sx: resultsGlobalFilterStyles.dropdown, children: /* @__PURE__ */ jsxs(Grid, { container: true, children: [
|
|
163
|
+
/* @__PURE__ */ jsx(Grid, { size: XS_COLUMN1, sx: resultsGlobalFilterStyles.cellHeader, children: /* @__PURE__ */ jsx(
|
|
164
164
|
LabelWithInfoTooltip,
|
|
165
165
|
{
|
|
166
166
|
text: "results.globalFilter.categories",
|
|
167
167
|
tooltipMessage: "results.globalFilter.categoriesHelp"
|
|
168
168
|
}
|
|
169
169
|
) }),
|
|
170
|
-
/* @__PURE__ */ jsx(
|
|
171
|
-
/* @__PURE__ */ jsxs(
|
|
170
|
+
/* @__PURE__ */ jsx(Grid, { size: XS_COLUMN2, sx: resultsGlobalFilterStyles.cellHeader }),
|
|
171
|
+
/* @__PURE__ */ jsxs(Grid, { size: XS_COLUMN3, sx: resultsGlobalFilterStyles.cellHeader, children: [
|
|
172
172
|
/* @__PURE__ */ jsx(Typography, { variant: "caption", children: filtersMsg }),
|
|
173
173
|
/* @__PURE__ */ jsx(
|
|
174
174
|
Button,
|
|
@@ -181,7 +181,7 @@ function GlobalFilterDropdownPanel({
|
|
|
181
181
|
}
|
|
182
182
|
)
|
|
183
183
|
] }),
|
|
184
|
-
/* @__PURE__ */ jsx(
|
|
184
|
+
/* @__PURE__ */ jsx(Grid, { size: XS_COLUMN1, sx: resultsGlobalFilterStyles.cell, children: /* @__PURE__ */ jsx(List, { sx: resultsGlobalFilterStyles.list, children: categories.map((category) => {
|
|
185
185
|
return /* @__PURE__ */ jsx(
|
|
186
186
|
ListItemButton,
|
|
187
187
|
{
|
|
@@ -206,7 +206,7 @@ function GlobalFilterDropdownPanel({
|
|
|
206
206
|
category
|
|
207
207
|
);
|
|
208
208
|
}) }) }),
|
|
209
|
-
/* @__PURE__ */ jsxs(
|
|
209
|
+
/* @__PURE__ */ jsxs(Grid, { size: XS_COLUMN2, sx: resultsGlobalFilterStyles.cell, children: [
|
|
210
210
|
/* @__PURE__ */ jsx(
|
|
211
211
|
Box,
|
|
212
212
|
{
|
|
@@ -229,7 +229,7 @@ function GlobalFilterDropdownPanel({
|
|
|
229
229
|
}
|
|
230
230
|
)
|
|
231
231
|
] }),
|
|
232
|
-
/* @__PURE__ */ jsx(
|
|
232
|
+
/* @__PURE__ */ jsx(Grid, { size: XS_COLUMN3, sx: resultsGlobalFilterStyles.cell, children: /* @__PURE__ */ jsx(SelectedGlobalFilters, { translateCountryCode }) })
|
|
233
233
|
] }) })
|
|
234
234
|
}
|
|
235
235
|
),
|
|
@@ -78,17 +78,19 @@ function RenderInput({
|
|
|
78
78
|
id,
|
|
79
79
|
size,
|
|
80
80
|
fullWidth,
|
|
81
|
-
inputProps,
|
|
82
81
|
disabled,
|
|
83
82
|
label: intl.formatMessage({
|
|
84
83
|
id: "results.globalFilter.fillerText"
|
|
85
84
|
}),
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
startAdornment
|
|
91
|
-
|
|
85
|
+
slotProps: {
|
|
86
|
+
htmlInput: inputProps,
|
|
87
|
+
input: {
|
|
88
|
+
...otherInputProps,
|
|
89
|
+
startAdornment: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
90
|
+
/* @__PURE__ */ jsx(InputAdornment, { position: "start", children: /* @__PURE__ */ jsx(FilterAlt, {}) }),
|
|
91
|
+
startAdornment
|
|
92
|
+
] })
|
|
93
|
+
}
|
|
92
94
|
}
|
|
93
95
|
}
|
|
94
96
|
);
|
|
@@ -146,15 +148,17 @@ function WarningTooltip({ warningEquipmentTypeMessage }) {
|
|
|
146
148
|
title: warningEquipmentTypeMessage,
|
|
147
149
|
placement: "right",
|
|
148
150
|
arrow: true,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
151
|
+
slotProps: {
|
|
152
|
+
popper: {
|
|
153
|
+
modifiers: [
|
|
154
|
+
{
|
|
155
|
+
name: "offset",
|
|
156
|
+
options: {
|
|
157
|
+
offset: [0, -15]
|
|
158
|
+
}
|
|
155
159
|
}
|
|
156
|
-
|
|
157
|
-
|
|
160
|
+
]
|
|
161
|
+
}
|
|
158
162
|
},
|
|
159
163
|
children: /* @__PURE__ */ jsx(IconButton, { size: "small", sx: { cursor: "default" }, children: /* @__PURE__ */ jsx(WarningAmberRounded, { color: "warning", fontSize: "medium" }) })
|
|
160
164
|
}
|
|
@@ -251,7 +255,7 @@ function GlobalFilterPanel({
|
|
|
251
255
|
]
|
|
252
256
|
);
|
|
253
257
|
const inputFieldChip = useCallback(
|
|
254
|
-
(element, index,
|
|
258
|
+
(element, index, getItemProps, filtersNumber) => {
|
|
255
259
|
const label = getOptionLabel(element, translateCountryCode, intl);
|
|
256
260
|
const key = `inputFieldChip_${element.label}`;
|
|
257
261
|
if (index < TAG_LIMIT_NUMBER) {
|
|
@@ -259,7 +263,7 @@ function GlobalFilterPanel({
|
|
|
259
263
|
OverflowableChip,
|
|
260
264
|
{
|
|
261
265
|
label,
|
|
262
|
-
...
|
|
266
|
+
...getItemProps({ index }),
|
|
263
267
|
key,
|
|
264
268
|
sx: getResultsGlobalFiltersChipStyle(element)
|
|
265
269
|
}
|
|
@@ -336,7 +340,7 @@ function GlobalFilterPanel({
|
|
|
336
340
|
options,
|
|
337
341
|
onChange: handleOnChange,
|
|
338
342
|
renderInput: RenderInput,
|
|
339
|
-
|
|
343
|
+
renderValue: (filters, getItemProps) => {
|
|
340
344
|
return /* @__PURE__ */ jsx(
|
|
341
345
|
Box,
|
|
342
346
|
{
|
|
@@ -348,7 +352,7 @@ function GlobalFilterPanel({
|
|
|
348
352
|
maxWidth: "90%"
|
|
349
353
|
},
|
|
350
354
|
children: filters.map((element, index) => {
|
|
351
|
-
return inputFieldChip(element, index,
|
|
355
|
+
return inputFieldChip(element, index, getItemProps, filters.length);
|
|
352
356
|
})
|
|
353
357
|
}
|
|
354
358
|
);
|
|
@@ -368,16 +372,18 @@ function GlobalFilterPanel({
|
|
|
368
372
|
},
|
|
369
373
|
isOptionEqualToValue,
|
|
370
374
|
filterOptions: (autocompleteOptions, state) => filterOptions(autocompleteOptions, state),
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
375
|
+
slots: { paper: PaperComponentMemo },
|
|
376
|
+
slotProps: {
|
|
377
|
+
listbox: {
|
|
378
|
+
sx: {
|
|
379
|
+
"& .MuiAutocomplete-option": {
|
|
380
|
+
paddingLeft: 0,
|
|
381
|
+
paddingRight: 0
|
|
382
|
+
},
|
|
383
|
+
height: "100%",
|
|
384
|
+
maxHeight: "100%",
|
|
385
|
+
overflowY: "auto"
|
|
386
|
+
}
|
|
381
387
|
}
|
|
382
388
|
},
|
|
383
389
|
noOptionsText: ""
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { lighten, alpha, darken } from "@mui/material";
|
|
2
1
|
const HIGHLIGHT_COLOR_BASE = "rgba(144, 202, 249, 0.16)";
|
|
3
2
|
const HIGHLIGHT_COLOR_HOVER = "rgba(144, 202, 249, 0.24)";
|
|
4
3
|
const ROW_HOVER_COLOR = "rgba(144, 202, 249, 0.08)";
|
|
@@ -6,7 +5,7 @@ const DRAG_OPACITY = 0.5;
|
|
|
6
5
|
const DEACTIVATED_OPACITY = 0.4;
|
|
7
6
|
const MODIFICATION_ROW_HEIGHT = 41;
|
|
8
7
|
const DEPTH_CELL_WIDTH = 32;
|
|
9
|
-
const createCellBorderColor = (theme) => theme.palette.mode === "light" ? lighten(alpha(theme.palette.divider, 1), 0.88) : darken(alpha(theme.palette.divider, 1), 0.68);
|
|
8
|
+
const createCellBorderColor = (theme) => theme.palette.mode === "light" ? theme.lighten(theme.alpha(theme.palette.divider, 1), 0.88) : theme.darken(theme.alpha(theme.palette.divider, 1), 0.68);
|
|
10
9
|
const networkModificationTableStyles = {
|
|
11
10
|
tableWrapper: (theme) => ({
|
|
12
11
|
display: "flex",
|
|
@@ -190,7 +189,7 @@ function getRowBackgroundColor(isHighlighted, isComposite, theme) {
|
|
|
190
189
|
if (!isComposite) {
|
|
191
190
|
return "transparent";
|
|
192
191
|
}
|
|
193
|
-
return theme.palette.mode === "light" ? darken(theme.palette.background.paper, 0.04) : lighten(theme.palette.background.paper, 0.08);
|
|
192
|
+
return theme.palette.mode === "light" ? theme.darken(theme.palette.background.paper, 0.04) : theme.lighten(theme.palette.background.paper, 0.08);
|
|
194
193
|
}
|
|
195
194
|
const createRowSx = (theme, isHighlighted, isDragging, virtualRow, depth, isComposite) => ({
|
|
196
195
|
position: "absolute",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Box,
|
|
2
|
+
import { Box, Grid } from "@mui/material";
|
|
3
|
+
import { FormattedMessage } from "react-intl";
|
|
4
|
+
import { useWatch } from "react-hook-form";
|
|
3
5
|
import { filledTextField } from "../../common/form.utils.js";
|
|
4
6
|
import { PropertiesForm } from "../../common/properties/PropertiesForm.js";
|
|
5
7
|
import "react";
|
|
6
|
-
import "react-hook-form";
|
|
7
8
|
import { ActivePowerAdornment } from "../../../../utils/constants/adornments.js";
|
|
8
9
|
import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
|
|
9
10
|
import "../../../../utils/conversionUtils.js";
|
|
10
11
|
import "../../../../utils/types/equipmentType.js";
|
|
11
12
|
import "@mui/icons-material";
|
|
12
|
-
import "react-intl";
|
|
13
13
|
import "../../../../components/ui/overflowableText/OverflowableText.js";
|
|
14
14
|
import "localized-countries";
|
|
15
15
|
import "localized-countries/data/fr";
|
|
@@ -117,23 +117,33 @@ function BatteryCreationForm({
|
|
|
117
117
|
isGenerator: false
|
|
118
118
|
}
|
|
119
119
|
);
|
|
120
|
+
const watchVoltageRegulation = useWatch({
|
|
121
|
+
name: FieldConstants.VOLTAGE_REGULATION
|
|
122
|
+
});
|
|
120
123
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
121
|
-
/* @__PURE__ */ jsxs(
|
|
124
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
122
125
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: batteryIdField }),
|
|
123
126
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: batteryNameField })
|
|
124
127
|
] }),
|
|
125
128
|
/* @__PURE__ */ jsx(GridSection, { title: "Connectivity" }),
|
|
126
|
-
/* @__PURE__ */ jsx(
|
|
129
|
+
/* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: connectivityForm }) }),
|
|
127
130
|
/* @__PURE__ */ jsx(GridSection, { title: "ActiveLimits" }),
|
|
128
|
-
/* @__PURE__ */ jsxs(
|
|
131
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
129
132
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: minimumActivePowerField }),
|
|
130
133
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: maximumActivePowerField })
|
|
131
134
|
] }),
|
|
132
135
|
/* @__PURE__ */ jsx(GridSection, { title: "ReactiveLimits" }),
|
|
133
136
|
/* @__PURE__ */ jsx(ReactiveLimitsForm, {}),
|
|
134
137
|
/* @__PURE__ */ jsx(SetPointsForm, {}),
|
|
135
|
-
/* @__PURE__ */ jsxs(
|
|
136
|
-
/* @__PURE__ */ jsx(
|
|
138
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, paddingTop: 2, children: [
|
|
139
|
+
/* @__PURE__ */ jsx(
|
|
140
|
+
GridItem,
|
|
141
|
+
{
|
|
142
|
+
size: 4,
|
|
143
|
+
tooltip: watchVoltageRegulation !== null ? "" : /* @__PURE__ */ jsx(FormattedMessage, { id: "NoModification" }),
|
|
144
|
+
children: voltageRegulationField
|
|
145
|
+
}
|
|
146
|
+
),
|
|
137
147
|
voltageRegulationForm,
|
|
138
148
|
/* @__PURE__ */ jsx(ActivePowerControlForm, {})
|
|
139
149
|
] }),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid, TextField } from "@mui/material";
|
|
3
3
|
import { filledTextField } from "../../common/form.utils.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-hook-form";
|
|
@@ -65,22 +65,24 @@ import "@mui/material/colors";
|
|
|
65
65
|
import "@mui/x-charts";
|
|
66
66
|
import "../../common/currentLimits/limitsPane.utils.js";
|
|
67
67
|
function BatteryDialogHeader({ batteryToModify, equipmentId }) {
|
|
68
|
-
return /* @__PURE__ */ jsxs(
|
|
69
|
-
/* @__PURE__ */ jsx(
|
|
68
|
+
return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
69
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
70
70
|
TextField,
|
|
71
71
|
{
|
|
72
72
|
size: "small",
|
|
73
73
|
fullWidth: true,
|
|
74
74
|
label: "ID",
|
|
75
75
|
value: equipmentId ?? "",
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
slotProps: {
|
|
77
|
+
input: {
|
|
78
|
+
readOnly: true
|
|
79
|
+
}
|
|
78
80
|
},
|
|
79
81
|
disabled: true,
|
|
80
82
|
...filledTextField
|
|
81
83
|
}
|
|
82
84
|
) }),
|
|
83
|
-
/* @__PURE__ */ jsx(
|
|
85
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
84
86
|
TextInput,
|
|
85
87
|
{
|
|
86
88
|
name: FieldConstants.EQUIPMENT_NAME,
|
|
@@ -10,8 +10,10 @@ function BatteryDialogTabs({ tabIndex, tabIndexesWithError, setTabIndex }) {
|
|
|
10
10
|
value: tabIndex,
|
|
11
11
|
variant: "scrollable",
|
|
12
12
|
onChange: (_event, newValue) => setTabIndex(newValue),
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
slotProps: {
|
|
14
|
+
indicator: {
|
|
15
|
+
sx: getTabIndicatorStyle(tabIndexesWithError, tabIndex)
|
|
16
|
+
}
|
|
15
17
|
},
|
|
16
18
|
children: [
|
|
17
19
|
/* @__PURE__ */ jsx(
|
package/dist/features/network-modifications/battery/modification/BatteryDialogTabsContent.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Box,
|
|
2
|
+
import { Box, Grid } from "@mui/material";
|
|
3
3
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
4
4
|
import { BatteryDialogTab } from "./batteryTabs.utils.js";
|
|
5
5
|
import { GridSection } from "../../../../components/composite/grid/grid-section.js";
|
|
@@ -138,7 +138,7 @@ function BatteryDialogTabsContent({
|
|
|
138
138
|
] }),
|
|
139
139
|
/* @__PURE__ */ jsxs(Box, { hidden: tabIndex !== BatteryDialogTab.LIMITS_AND_SETPOINTS_TAB, children: [
|
|
140
140
|
/* @__PURE__ */ jsx(GridSection, { title: "Setpoints" }),
|
|
141
|
-
/* @__PURE__ */ jsxs(
|
|
141
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
142
142
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(
|
|
143
143
|
FloatInput,
|
|
144
144
|
{
|
|
@@ -160,7 +160,7 @@ function BatteryDialogTabsContent({
|
|
|
160
160
|
}
|
|
161
161
|
) })
|
|
162
162
|
] }),
|
|
163
|
-
/* @__PURE__ */ jsxs(
|
|
163
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, paddingTop: 2, children: [
|
|
164
164
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: voltageRegulationField }),
|
|
165
165
|
voltageRegulationForm,
|
|
166
166
|
/* @__PURE__ */ jsx(
|
|
@@ -171,11 +171,11 @@ function BatteryDialogTabsContent({
|
|
|
171
171
|
}
|
|
172
172
|
)
|
|
173
173
|
] }),
|
|
174
|
-
/* @__PURE__ */ jsx(
|
|
174
|
+
/* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, children: /* @__PURE__ */ jsxs(Grid, { size: 12, children: [
|
|
175
175
|
/* @__PURE__ */ jsx("h3", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Limits" }) }),
|
|
176
176
|
/* @__PURE__ */ jsx("h4", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "ActiveLimits" }) })
|
|
177
177
|
] }) }),
|
|
178
|
-
/* @__PURE__ */ jsxs(
|
|
178
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
179
179
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(
|
|
180
180
|
FloatInput,
|
|
181
181
|
{
|
|
@@ -197,7 +197,7 @@ function BatteryDialogTabsContent({
|
|
|
197
197
|
}
|
|
198
198
|
) })
|
|
199
199
|
] }),
|
|
200
|
-
/* @__PURE__ */ jsx(
|
|
200
|
+
/* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(Grid, { size: 12, children: /* @__PURE__ */ jsx("h4", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "ReactiveLimits" }) }) }) }),
|
|
201
201
|
/* @__PURE__ */ jsx(
|
|
202
202
|
ReactiveLimitsForm,
|
|
203
203
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Stack,
|
|
2
|
+
import { Stack, Grid } from "@mui/material";
|
|
3
3
|
import { useWatch } from "react-hook-form";
|
|
4
4
|
import { BatteryDialogHeader } from "./BatteryDialogHeader.js";
|
|
5
5
|
import { BatteryDialogTabs } from "./BatteryDialogTabs.js";
|
|
@@ -24,8 +24,8 @@ function BatteryModificationForm({
|
|
|
24
24
|
);
|
|
25
25
|
const equipmentId = useWatch({ name: FieldConstants.EQUIPMENT_ID });
|
|
26
26
|
return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
|
|
27
|
-
/* @__PURE__ */ jsx(
|
|
28
|
-
/* @__PURE__ */ jsx(
|
|
27
|
+
/* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(BatteryDialogHeader, { batteryToModify, equipmentId }) }),
|
|
28
|
+
/* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(
|
|
29
29
|
BatteryDialogTabs,
|
|
30
30
|
{
|
|
31
31
|
tabIndex,
|
|
@@ -33,7 +33,7 @@ function BatteryModificationForm({
|
|
|
33
33
|
setTabIndex
|
|
34
34
|
}
|
|
35
35
|
) }),
|
|
36
|
-
/* @__PURE__ */ jsx(
|
|
36
|
+
/* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(
|
|
37
37
|
BatteryDialogTabsContent,
|
|
38
38
|
{
|
|
39
39
|
tabIndex,
|
|
@@ -7,7 +7,7 @@ export declare const EQUIPMENTS_FIELDS: {
|
|
|
7
7
|
readonly TWO_WINDINGS_TRANSFORMER: readonly [FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType];
|
|
8
8
|
readonly THREE_WINDINGS_TRANSFORMER: readonly [FieldOptionType];
|
|
9
9
|
readonly GENERATOR: readonly [FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType];
|
|
10
|
-
readonly BATTERY: readonly [FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType];
|
|
10
|
+
readonly BATTERY: readonly [FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType];
|
|
11
11
|
readonly LOAD: readonly [FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType];
|
|
12
12
|
readonly SHUNT_COMPENSATOR: readonly [FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType, FieldOptionType];
|
|
13
13
|
readonly STATIC_VAR_COMPENSATOR: readonly [FieldOptionType, FieldOptionType, FieldOptionType];
|