@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
package/dist/features/network-modifications/substation/modification/SubstationModificationForm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Stack,
|
|
2
|
+
import { Stack, Grid, TextField } from "@mui/material";
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
4
|
import { useWatch } from "react-hook-form";
|
|
5
5
|
import "@mui/icons-material";
|
|
@@ -69,22 +69,24 @@ function SubstationModificationForm({ substationToModify }) {
|
|
|
69
69
|
const { translate } = useLocalizedCountries(locale);
|
|
70
70
|
const equipmentId = useWatch({ name: FieldConstants.EQUIPMENT_ID });
|
|
71
71
|
return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
|
|
72
|
-
/* @__PURE__ */ jsx(
|
|
73
|
-
/* @__PURE__ */ jsx(
|
|
72
|
+
/* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
73
|
+
/* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(
|
|
74
74
|
TextField,
|
|
75
75
|
{
|
|
76
76
|
size: "small",
|
|
77
77
|
fullWidth: true,
|
|
78
78
|
label: "ID",
|
|
79
79
|
value: equipmentId ?? "",
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
slotProps: {
|
|
81
|
+
input: {
|
|
82
|
+
readOnly: true
|
|
83
|
+
}
|
|
82
84
|
},
|
|
83
85
|
disabled: true,
|
|
84
86
|
...filledTextField
|
|
85
87
|
}
|
|
86
88
|
) }),
|
|
87
|
-
/* @__PURE__ */ jsx(
|
|
89
|
+
/* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(
|
|
88
90
|
TextInput,
|
|
89
91
|
{
|
|
90
92
|
name: FieldConstants.EQUIPMENT_NAME,
|
|
@@ -94,7 +96,7 @@ function SubstationModificationForm({ substationToModify }) {
|
|
|
94
96
|
clearable: true
|
|
95
97
|
}
|
|
96
98
|
) }),
|
|
97
|
-
/* @__PURE__ */ jsx(
|
|
99
|
+
/* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(
|
|
98
100
|
CountrySelectionInput,
|
|
99
101
|
{
|
|
100
102
|
name: FieldConstants.COUNTRY,
|
|
@@ -105,7 +107,7 @@ function SubstationModificationForm({ substationToModify }) {
|
|
|
105
107
|
}
|
|
106
108
|
) })
|
|
107
109
|
] }) }),
|
|
108
|
-
/* @__PURE__ */ jsx(
|
|
110
|
+
/* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "substation", isModification: true }) })
|
|
109
111
|
] });
|
|
110
112
|
}
|
|
111
113
|
export {
|
package/dist/features/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Stack,
|
|
2
|
+
import { Stack, Grid, Tabs, Tab, Box } from "@mui/material";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
4
|
import { useWatch } from "react-hook-form";
|
|
5
5
|
import "@mui/icons-material";
|
|
@@ -82,8 +82,8 @@ function VoltageLevelCreationForm({
|
|
|
82
82
|
);
|
|
83
83
|
const watchHideBusBarSection = useWatch({ name: FieldConstants.HIDE_BUS_BAR_SECTION });
|
|
84
84
|
return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
|
|
85
|
-
/* @__PURE__ */ jsx(
|
|
86
|
-
/* @__PURE__ */ jsx(
|
|
85
|
+
/* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
86
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
87
87
|
TextInput,
|
|
88
88
|
{
|
|
89
89
|
name: FieldConstants.EQUIPMENT_ID,
|
|
@@ -91,16 +91,18 @@ function VoltageLevelCreationForm({
|
|
|
91
91
|
formProps: { autoFocus: true, ...filledTextField }
|
|
92
92
|
}
|
|
93
93
|
) }),
|
|
94
|
-
/* @__PURE__ */ jsx(
|
|
94
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.EQUIPMENT_NAME, label: "Name", formProps: filledTextField }) })
|
|
95
95
|
] }) }),
|
|
96
|
-
/* @__PURE__ */ jsx(
|
|
96
|
+
/* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsxs(
|
|
97
97
|
Tabs,
|
|
98
98
|
{
|
|
99
99
|
value: tabIndex,
|
|
100
100
|
variant: "scrollable",
|
|
101
101
|
onChange: (_, newValue) => setTabIndex(newValue),
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
slotProps: {
|
|
103
|
+
indicator: {
|
|
104
|
+
sx: getTabIndicatorStyle(tabIndexesWithError, tabIndex)
|
|
105
|
+
}
|
|
104
106
|
},
|
|
105
107
|
children: [
|
|
106
108
|
/* @__PURE__ */ jsx(
|
|
@@ -135,7 +137,7 @@ function VoltageLevelCreationForm({
|
|
|
135
137
|
]
|
|
136
138
|
}
|
|
137
139
|
) }),
|
|
138
|
-
/* @__PURE__ */ jsxs(
|
|
140
|
+
/* @__PURE__ */ jsxs(Grid, { children: [
|
|
139
141
|
/* @__PURE__ */ jsx(Box, { hidden: tabIndex !== VoltageLevelTab.SUBSTATION_TAB, children: /* @__PURE__ */ jsx(
|
|
140
142
|
SubstationTab,
|
|
141
143
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useWatch } from "react-hook-form";
|
|
3
|
-
import {
|
|
3
|
+
import { Grid } from "@mui/material";
|
|
4
4
|
import { GridSection } from "../../../../../../components/composite/grid/grid-section.js";
|
|
5
5
|
import { VoltageAdornment, KiloAmpereAdornment } from "../../../../../../utils/constants/adornments.js";
|
|
6
6
|
import { FieldConstants } from "../../../../../../utils/constants/fieldConstants.js";
|
|
@@ -37,8 +37,8 @@ function CharacteristicsTab() {
|
|
|
37
37
|
const watchHideNominalVoltage = useWatch({ name: FieldConstants.HIDE_NOMINAL_VOLTAGE });
|
|
38
38
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
39
39
|
/* @__PURE__ */ jsx(GridSection, { title: "VoltageText" }),
|
|
40
|
-
/* @__PURE__ */ jsxs(
|
|
41
|
-
!watchHideNominalVoltage && /* @__PURE__ */ jsx(
|
|
40
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
41
|
+
!watchHideNominalVoltage && /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
42
42
|
FloatInput,
|
|
43
43
|
{
|
|
44
44
|
name: FieldConstants.NOMINAL_V,
|
|
@@ -46,7 +46,7 @@ function CharacteristicsTab() {
|
|
|
46
46
|
adornment: VoltageAdornment
|
|
47
47
|
}
|
|
48
48
|
) }),
|
|
49
|
-
/* @__PURE__ */ jsx(
|
|
49
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
50
50
|
FloatInput,
|
|
51
51
|
{
|
|
52
52
|
name: FieldConstants.LOW_VOLTAGE_LIMIT,
|
|
@@ -54,7 +54,7 @@ function CharacteristicsTab() {
|
|
|
54
54
|
adornment: VoltageAdornment
|
|
55
55
|
}
|
|
56
56
|
) }),
|
|
57
|
-
/* @__PURE__ */ jsx(
|
|
57
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
58
58
|
FloatInput,
|
|
59
59
|
{
|
|
60
60
|
name: FieldConstants.HIGH_VOLTAGE_LIMIT,
|
|
@@ -64,8 +64,8 @@ function CharacteristicsTab() {
|
|
|
64
64
|
) })
|
|
65
65
|
] }),
|
|
66
66
|
/* @__PURE__ */ jsx(GridSection, { title: "ShortCircuit" }),
|
|
67
|
-
/* @__PURE__ */ jsxs(
|
|
68
|
-
/* @__PURE__ */ jsx(
|
|
67
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
68
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
69
69
|
FloatInput,
|
|
70
70
|
{
|
|
71
71
|
name: FieldConstants.LOW_SHORT_CIRCUIT_CURRENT_LIMIT,
|
|
@@ -73,7 +73,7 @@ function CharacteristicsTab() {
|
|
|
73
73
|
adornment: KiloAmpereAdornment
|
|
74
74
|
}
|
|
75
75
|
) }),
|
|
76
|
-
/* @__PURE__ */ jsx(
|
|
76
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
77
77
|
FloatInput,
|
|
78
78
|
{
|
|
79
79
|
name: FieldConstants.HIGH_SHORT_CIRCUIT_CURRENT_LIMIT,
|
package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.js
CHANGED
|
@@ -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 { useEffect } from "react";
|
|
4
4
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
5
5
|
import { GridSection } from "../../../../../../components/composite/grid/grid-section.js";
|
|
@@ -44,9 +44,9 @@ function StructureTab() {
|
|
|
44
44
|
const displayOmnibus = watchBusBarCount > 1 || watchSectionCount > 1;
|
|
45
45
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
46
46
|
/* @__PURE__ */ jsx(GridSection, { title: "BusBarSections" }),
|
|
47
|
-
/* @__PURE__ */ jsxs(
|
|
48
|
-
/* @__PURE__ */ jsx(
|
|
49
|
-
/* @__PURE__ */ jsx(
|
|
47
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
48
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(IntegerInput, { name: FieldConstants.BUS_BAR_COUNT, label: "BusBarCount" }) }),
|
|
49
|
+
/* @__PURE__ */ jsx(Grid, { size: 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: [
|
|
@@ -1,7 +1,7 @@
|
|
|
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 {
|
|
4
|
+
import { Grid } from "@mui/material";
|
|
5
5
|
import { AutocompleteInput } from "../../../../../../../components/ui/reactHookForm/autocompleteInputs/AutocompleteInput.js";
|
|
6
6
|
import { FieldConstants } from "../../../../../../../utils/constants/fieldConstants.js";
|
|
7
7
|
import "../../../../../../../utils/conversionUtils.js";
|
|
@@ -24,7 +24,7 @@ function CouplingOmnibusCreation({ index, sectionOptions }) {
|
|
|
24
24
|
return () => unsubscribe();
|
|
25
25
|
}, [subscribe, trigger, getValues, index]);
|
|
26
26
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
27
|
-
/* @__PURE__ */ jsx(
|
|
27
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
28
28
|
AutocompleteInput,
|
|
29
29
|
{
|
|
30
30
|
allowNewValue: true,
|
|
@@ -35,7 +35,7 @@ function CouplingOmnibusCreation({ index, sectionOptions }) {
|
|
|
35
35
|
size: "small"
|
|
36
36
|
}
|
|
37
37
|
) }),
|
|
38
|
-
/* @__PURE__ */ jsx(
|
|
38
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
39
39
|
AutocompleteInput,
|
|
40
40
|
{
|
|
41
41
|
allowNewValue: true,
|
|
@@ -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 { useCallback, useRef, useEffect } from "react";
|
|
4
4
|
import { useFormContext, useFieldArray, useWatch } from "react-hook-form";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
@@ -76,7 +76,7 @@ function SwitchesBetweenSections() {
|
|
|
76
76
|
}
|
|
77
77
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
78
78
|
/* @__PURE__ */ jsx(GridSection, { title: "SwitchesBetweenSections" }),
|
|
79
|
-
/* @__PURE__ */ jsx(
|
|
79
|
+
/* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, pt: 1, children: rows.map((value, index) => /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
80
80
|
EnumInput,
|
|
81
81
|
{
|
|
82
82
|
options: Object.values(SWITCH_TYPE),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useIntl } from "react-intl";
|
|
3
|
-
import {
|
|
3
|
+
import { Grid, IconButton } from "@mui/material";
|
|
4
4
|
import { Delete } from "@mui/icons-material";
|
|
5
5
|
import { CustomTooltip } from "../../../../../../components/ui/tooltip/CustomTooltip.js";
|
|
6
6
|
import "../../../../../../components/ui/overflowableText/OverflowableText.js";
|
|
@@ -74,11 +74,11 @@ function SubstationCreationSection({
|
|
|
74
74
|
const intl = useIntl();
|
|
75
75
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
76
76
|
/* @__PURE__ */ jsx(GridSection, { title: "CreateSubstation" }),
|
|
77
|
-
/* @__PURE__ */ jsxs(
|
|
78
|
-
/* @__PURE__ */ jsx(
|
|
79
|
-
/* @__PURE__ */ jsx(
|
|
80
|
-
/* @__PURE__ */ jsx(
|
|
81
|
-
showDeleteButton && onDelete && /* @__PURE__ */ jsx(
|
|
77
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
78
|
+
/* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.SUBSTATION_CREATION_ID, label: "SubstationId" }) }),
|
|
79
|
+
/* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.SUBSTATION_NAME, label: "substationName" }) }),
|
|
80
|
+
/* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(CountrySelectionInput, { name: FieldConstants.COUNTRY, label: "Country", size: "small" }) }),
|
|
81
|
+
showDeleteButton && onDelete && /* @__PURE__ */ jsx(Grid, { size: 1, children: /* @__PURE__ */ jsx(CustomTooltip, { title: intl.formatMessage({ id: "DeleteRows" }), children: /* @__PURE__ */ jsx(IconButton, { onClick: onDelete, children: /* @__PURE__ */ jsx(Delete, {}) }) }) })
|
|
82
82
|
] }),
|
|
83
83
|
/* @__PURE__ */ jsx(PropertiesForm, { id: FieldConstants.SUBSTATION_CREATION, networkElementType: "substation" })
|
|
84
84
|
] });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useWatch, useFormContext } from "react-hook-form";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
|
-
import {
|
|
4
|
+
import { Grid } from "@mui/material";
|
|
5
5
|
import { useCallback, useEffect } from "react";
|
|
6
6
|
import { FieldConstants } from "../../../../../../utils/constants/fieldConstants.js";
|
|
7
7
|
import "../../../../../../utils/conversionUtils.js";
|
|
@@ -56,8 +56,8 @@ function SubstationTab({ substationOptions, showDeleteButton }) {
|
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
58
|
}, [setValue, getValues, watchAddSubstationCreation]);
|
|
59
|
-
return watchAddSubstationCreation ? /* @__PURE__ */ jsx(SubstationCreationSection, { showDeleteButton, onDelete: handleDeleteSubstationCreation }) : /* @__PURE__ */ jsxs(
|
|
60
|
-
/* @__PURE__ */ jsx(
|
|
59
|
+
return watchAddSubstationCreation ? /* @__PURE__ */ jsx(SubstationCreationSection, { showDeleteButton, onDelete: handleDeleteSubstationCreation }) : /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, pt: 2, children: [
|
|
60
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: substationOptions ? /* @__PURE__ */ jsx(
|
|
61
61
|
AutocompleteInput,
|
|
62
62
|
{
|
|
63
63
|
name: FieldConstants.SUBSTATION_ID,
|
|
@@ -70,8 +70,8 @@ function SubstationTab({ substationOptions, showDeleteButton }) {
|
|
|
70
70
|
noOptionsText: ""
|
|
71
71
|
}
|
|
72
72
|
) : /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.SUBSTATION_ID, label: "SUBSTATION" }) }),
|
|
73
|
-
/* @__PURE__ */ jsx(
|
|
74
|
-
/* @__PURE__ */ jsx(
|
|
73
|
+
/* @__PURE__ */ jsx(Grid, { mt: 0.75, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Or" }) }),
|
|
74
|
+
/* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(AddButton, { label: "CreateSubstation", onClick: handleCreateSubstation }) })
|
|
75
75
|
] });
|
|
76
76
|
}
|
|
77
77
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import { Stack,
|
|
3
|
+
import { Stack, Grid, TextField, Tabs, Tab, Box } from "@mui/material";
|
|
4
4
|
import { FormattedMessage } from "react-intl";
|
|
5
5
|
import { useWatch } from "react-hook-form";
|
|
6
6
|
import { VoltageAdornment, KiloAmpereAdornment } from "../../../../utils/constants/adornments.js";
|
|
@@ -82,22 +82,24 @@ function VoltageLevelModificationForm({
|
|
|
82
82
|
/* CHARACTERISTICS_TAB */
|
|
83
83
|
);
|
|
84
84
|
return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
|
|
85
|
-
/* @__PURE__ */ jsx(
|
|
86
|
-
/* @__PURE__ */ jsx(
|
|
85
|
+
/* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
86
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
87
87
|
TextField,
|
|
88
88
|
{
|
|
89
89
|
size: "small",
|
|
90
90
|
fullWidth: true,
|
|
91
91
|
label: "ID",
|
|
92
92
|
value: equipmentId ?? "",
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
slotProps: {
|
|
94
|
+
input: {
|
|
95
|
+
readOnly: true
|
|
96
|
+
}
|
|
95
97
|
},
|
|
96
98
|
disabled: true,
|
|
97
99
|
...filledTextField
|
|
98
100
|
}
|
|
99
101
|
) }),
|
|
100
|
-
/* @__PURE__ */ jsx(
|
|
102
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
101
103
|
TextInput,
|
|
102
104
|
{
|
|
103
105
|
name: FieldConstants.EQUIPMENT_NAME,
|
|
@@ -107,7 +109,7 @@ function VoltageLevelModificationForm({
|
|
|
107
109
|
previousValue: voltageLevelToModify?.name ?? void 0
|
|
108
110
|
}
|
|
109
111
|
) }),
|
|
110
|
-
!watchHideSubstationField && /* @__PURE__ */ jsx(
|
|
112
|
+
!watchHideSubstationField && /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
111
113
|
AutocompleteInput,
|
|
112
114
|
{
|
|
113
115
|
allowNewValue: true,
|
|
@@ -123,14 +125,16 @@ function VoltageLevelModificationForm({
|
|
|
123
125
|
}
|
|
124
126
|
) })
|
|
125
127
|
] }) }),
|
|
126
|
-
/* @__PURE__ */ jsx(
|
|
128
|
+
/* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsxs(
|
|
127
129
|
Tabs,
|
|
128
130
|
{
|
|
129
131
|
value: tabIndex,
|
|
130
132
|
variant: "scrollable",
|
|
131
133
|
onChange: (_event, newValue) => setTabIndex(newValue),
|
|
132
|
-
|
|
133
|
-
|
|
134
|
+
slotProps: {
|
|
135
|
+
indicator: {
|
|
136
|
+
sx: getTabIndicatorStyle([], tabIndex)
|
|
137
|
+
}
|
|
134
138
|
},
|
|
135
139
|
children: [
|
|
136
140
|
/* @__PURE__ */ jsx(
|
|
@@ -158,11 +162,11 @@ function VoltageLevelModificationForm({
|
|
|
158
162
|
]
|
|
159
163
|
}
|
|
160
164
|
) }),
|
|
161
|
-
/* @__PURE__ */ jsxs(
|
|
162
|
-
/* @__PURE__ */ jsx(Box, { hidden: tabIndex !== 0, children: /* @__PURE__ */ jsxs(
|
|
165
|
+
/* @__PURE__ */ jsxs(Grid, { children: [
|
|
166
|
+
/* @__PURE__ */ jsx(Box, { hidden: tabIndex !== 0, children: /* @__PURE__ */ jsxs(Grid, { children: [
|
|
163
167
|
/* @__PURE__ */ jsx(GridSection, { title: "VoltageText" }),
|
|
164
|
-
/* @__PURE__ */ jsxs(
|
|
165
|
-
/* @__PURE__ */ jsx(
|
|
168
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
169
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
166
170
|
FloatInput,
|
|
167
171
|
{
|
|
168
172
|
name: FieldConstants.NOMINAL_V,
|
|
@@ -172,7 +176,7 @@ function VoltageLevelModificationForm({
|
|
|
172
176
|
previousValue: voltageLevelToModify?.nominalV
|
|
173
177
|
}
|
|
174
178
|
) }),
|
|
175
|
-
/* @__PURE__ */ jsx(
|
|
179
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
176
180
|
FloatInput,
|
|
177
181
|
{
|
|
178
182
|
name: FieldConstants.LOW_VOLTAGE_LIMIT,
|
|
@@ -182,7 +186,7 @@ function VoltageLevelModificationForm({
|
|
|
182
186
|
previousValue: voltageLevelToModify?.lowVoltageLimit ?? void 0
|
|
183
187
|
}
|
|
184
188
|
) }),
|
|
185
|
-
/* @__PURE__ */ jsx(
|
|
189
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
186
190
|
FloatInput,
|
|
187
191
|
{
|
|
188
192
|
name: FieldConstants.HIGH_VOLTAGE_LIMIT,
|
|
@@ -194,8 +198,8 @@ function VoltageLevelModificationForm({
|
|
|
194
198
|
) })
|
|
195
199
|
] }),
|
|
196
200
|
/* @__PURE__ */ jsx(GridSection, { title: "ShortCircuit" }),
|
|
197
|
-
/* @__PURE__ */ jsxs(
|
|
198
|
-
/* @__PURE__ */ jsx(
|
|
201
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
202
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
199
203
|
FloatInput,
|
|
200
204
|
{
|
|
201
205
|
name: FieldConstants.LOW_SHORT_CIRCUIT_CURRENT_LIMIT,
|
|
@@ -205,7 +209,7 @@ function VoltageLevelModificationForm({
|
|
|
205
209
|
previousValue: voltageLevelToModify?.identifiableShortCircuit?.ipMin ?? void 0
|
|
206
210
|
}
|
|
207
211
|
) }),
|
|
208
|
-
/* @__PURE__ */ jsx(
|
|
212
|
+
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
209
213
|
FloatInput,
|
|
210
214
|
{
|
|
211
215
|
name: FieldConstants.HIGH_SHORT_CIRCUIT_CURRENT_LIMIT,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid, Divider } from "@mui/material";
|
|
3
3
|
function LineSeparator() {
|
|
4
|
-
return /* @__PURE__ */ jsx(
|
|
4
|
+
return /* @__PURE__ */ jsx(Grid, { size: 12, children: /* @__PURE__ */ jsx(Divider, {}) });
|
|
5
5
|
}
|
|
6
6
|
export {
|
|
7
7
|
LineSeparator
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid, Typography, Chip } from "@mui/material";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
4
|
import { CustomTooltip } from "../../../components/ui/tooltip/CustomTooltip.js";
|
|
5
5
|
import { parametersStyles } from "../parameters-style.js";
|
|
@@ -88,13 +88,13 @@ function ParameterField({
|
|
|
88
88
|
fullWidth: true,
|
|
89
89
|
multiple: true,
|
|
90
90
|
size: "small",
|
|
91
|
-
|
|
91
|
+
renderValue: (val, getItemProps) => val.map((code, index) => /* @__PURE__ */ jsx(
|
|
92
92
|
Chip,
|
|
93
93
|
{
|
|
94
94
|
"data-testid": `${id}.${name}.${code}`,
|
|
95
95
|
size: "small",
|
|
96
96
|
label: code,
|
|
97
|
-
...
|
|
97
|
+
...getItemProps({ index })
|
|
98
98
|
},
|
|
99
99
|
code
|
|
100
100
|
))
|
|
@@ -108,9 +108,9 @@ function ParameterField({
|
|
|
108
108
|
};
|
|
109
109
|
const LABEL_GRID_SIZE = type !== ParameterType.COUNTRIES ? 8 : 3;
|
|
110
110
|
const INPUT_GRID_SIZE = 12 - LABEL_GRID_SIZE;
|
|
111
|
-
return /* @__PURE__ */ jsxs(
|
|
112
|
-
/* @__PURE__ */ jsx(
|
|
113
|
-
/* @__PURE__ */ jsx(
|
|
111
|
+
return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, paddingTop: 1, justifyContent: "space-between", sx: { width: "100%" }, children: [
|
|
112
|
+
/* @__PURE__ */ jsx(Grid, { size: LABEL_GRID_SIZE, children: /* @__PURE__ */ jsx(CustomTooltip, { title: description, children: /* @__PURE__ */ jsx(Typography, { sx: parametersStyles.parameterName, children: label ? /* @__PURE__ */ jsx(FormattedMessage, { id: label }) : name }) }, name) }),
|
|
113
|
+
/* @__PURE__ */ jsx(Grid, { container: true, size: INPUT_GRID_SIZE, sx: parametersStyles.controlItem, children: renderField() })
|
|
114
114
|
] }, name);
|
|
115
115
|
}
|
|
116
116
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Stack,
|
|
2
|
+
import { Stack, Grid, Typography, ButtonGroup, Tooltip, Box, LinearProgress } from "@mui/material";
|
|
3
3
|
import { Upload, RestartAlt } from "@mui/icons-material";
|
|
4
4
|
import { useState, useCallback } from "react";
|
|
5
5
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
@@ -79,9 +79,9 @@ function ParameterLayout({
|
|
|
79
79
|
const intl = useIntl();
|
|
80
80
|
return /* @__PURE__ */ jsxs(Stack, { sx: styles.stack, children: [
|
|
81
81
|
(title || selectParameterHandler || resetHandler) && /* @__PURE__ */ jsxs(Stack, { sx: styles.title, children: [
|
|
82
|
-
/* @__PURE__ */ jsxs(
|
|
83
|
-
/* @__PURE__ */ jsx(
|
|
84
|
-
/* @__PURE__ */ jsx(
|
|
82
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, sx: { alignItems: "center", justifyContent: "space-between" }, paddingBottom: 1, children: [
|
|
83
|
+
/* @__PURE__ */ jsx(Grid, { size: "auto", children: title && !isXsScreen && /* @__PURE__ */ jsx(Typography, { variant: "h6", children: /* @__PURE__ */ jsx(FormattedMessage, { id: title }) }) }),
|
|
84
|
+
/* @__PURE__ */ jsx(Grid, { size: "auto", children: /* @__PURE__ */ jsxs(ButtonGroup, { children: [
|
|
85
85
|
selectParameterHandler && /* @__PURE__ */ jsx(
|
|
86
86
|
LabelledButton,
|
|
87
87
|
{
|
|
@@ -107,9 +107,9 @@ function ParameterLayout({
|
|
|
107
107
|
/* @__PURE__ */ jsx(Box, { sx: styles.content, children: isLoading ? /* @__PURE__ */ jsx(LinearProgress, {}) : children }),
|
|
108
108
|
/* @__PURE__ */ jsxs(Stack, { spacing: 1, children: [
|
|
109
109
|
/* @__PURE__ */ jsx(LineSeparator, {}),
|
|
110
|
-
/* @__PURE__ */ jsxs(
|
|
111
|
-
createParameter && /* @__PURE__ */ jsx(
|
|
112
|
-
validateHandler && /* @__PURE__ */ jsx(
|
|
110
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, children: [
|
|
111
|
+
createParameter && /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(LabelledButton, { label: "save", "data-testid": "SaveButton", callback: handleSaveClick }) }),
|
|
112
|
+
validateHandler && /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(
|
|
113
113
|
SubmitButton,
|
|
114
114
|
{
|
|
115
115
|
variant: "contained",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid, Typography } from "@mui/material";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
4
|
import { useFieldArray, useFormContext } from "react-hook-form";
|
|
5
5
|
import { Info } from "@mui/icons-material";
|
|
@@ -84,8 +84,8 @@ function ParameterTableField({
|
|
|
84
84
|
},
|
|
85
85
|
[isValidRow, onChange]
|
|
86
86
|
);
|
|
87
|
-
return /* @__PURE__ */ jsxs(
|
|
88
|
-
label && /* @__PURE__ */ jsxs(
|
|
87
|
+
return /* @__PURE__ */ jsxs(Grid, { container: true, sx: sxContainerProps, size: 12, children: [
|
|
88
|
+
label && /* @__PURE__ */ jsxs(Grid, { container: true, alignItems: "center", paddingBottom: 2, paddingTop: 2, children: [
|
|
89
89
|
/* @__PURE__ */ jsx(Typography, { component: "span", variant: "h6", children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
|
|
90
90
|
tooltipProps && /* @__PURE__ */ jsx(
|
|
91
91
|
CustomTooltip,
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { FormattedMessage } from "react-intl";
|
|
3
|
-
import { Typography, Box, Button,
|
|
3
|
+
import { Typography, Box, Button, Grid, Switch } from "@mui/material";
|
|
4
4
|
import { parametersStyles } from "../parameters-style.js";
|
|
5
5
|
function LabelledButton({ callback, label, ...props }) {
|
|
6
6
|
return /* @__PURE__ */ jsx(Button, { onClick: callback, ...props, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) });
|
|
7
7
|
}
|
|
8
8
|
function SwitchWithLabel({ value, label, callback }) {
|
|
9
9
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
10
|
-
/* @__PURE__ */ jsx(
|
|
11
|
-
/* @__PURE__ */ jsx(
|
|
10
|
+
/* @__PURE__ */ jsx(Grid, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
|
|
11
|
+
/* @__PURE__ */ jsx(Grid, { container: true, size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
|
|
12
12
|
Switch,
|
|
13
13
|
{
|
|
14
14
|
checked: value,
|
|
15
15
|
onChange: callback,
|
|
16
16
|
value,
|
|
17
|
-
|
|
17
|
+
slotProps: {
|
|
18
|
+
input: { "aria-label": "primary checkbox" }
|
|
19
|
+
}
|
|
18
20
|
}
|
|
19
21
|
) })
|
|
20
22
|
] });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid } from "@mui/material";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
4
|
import { LineSeparator } from "./line-separator.js";
|
|
5
5
|
import { parametersStyles } from "../parameters-style.js";
|
|
@@ -40,9 +40,9 @@ const styles = {
|
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
function ProviderParam({ options, id, sx }) {
|
|
43
|
-
return /* @__PURE__ */ jsxs(
|
|
44
|
-
/* @__PURE__ */ jsx(
|
|
45
|
-
/* @__PURE__ */ jsx(
|
|
43
|
+
return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, sx: mergeSx(styles.providerParam, sx), justifyContent: "space-between", children: [
|
|
44
|
+
/* @__PURE__ */ jsx(Grid, { size: "auto", sx: mergeSx(parametersStyles.parameterName, { paddingRight: 2 }), children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Provider" }) }),
|
|
45
|
+
/* @__PURE__ */ jsx(Grid, { size: "auto", sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(MuiSelectInput, { name: PROVIDER, size: "small", options, "data-testid": `${id}Provider` }) }),
|
|
46
46
|
/* @__PURE__ */ jsx(LineSeparator, {})
|
|
47
47
|
] });
|
|
48
48
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid } from "@mui/material";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
4
|
import { CustomTooltip } from "../../../../components/ui/tooltip/CustomTooltip.js";
|
|
5
5
|
import "@mui/icons-material";
|
|
@@ -40,9 +40,9 @@ function ParameterFloat({
|
|
|
40
40
|
labelSize,
|
|
41
41
|
inputSize
|
|
42
42
|
}) {
|
|
43
|
-
const content = /* @__PURE__ */ jsxs(
|
|
44
|
-
/* @__PURE__ */ jsx(
|
|
45
|
-
/* @__PURE__ */ jsx(
|
|
43
|
+
const content = /* @__PURE__ */ jsxs(Grid, { container: true, direction: "row", spacing: 1, paddingTop: 3, sx: { width: "100%" }, children: [
|
|
44
|
+
/* @__PURE__ */ jsx(Grid, { size: labelSize, sx: style, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
|
|
45
|
+
/* @__PURE__ */ jsx(Grid, { size: inputSize, children: /* @__PURE__ */ jsx(FloatInput, { name, adornment }) })
|
|
46
46
|
] });
|
|
47
47
|
if (tooltip) {
|
|
48
48
|
return /* @__PURE__ */ jsx(CustomTooltip, { title: /* @__PURE__ */ jsx(FormattedMessage, { id: tooltip }), children: content });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Settings, ExpandCircleDown, ExpandMore } from "@mui/icons-material";
|
|
3
|
-
import {
|
|
3
|
+
import { Grid, Accordion, AccordionSummary, Typography, AccordionDetails } from "@mui/material";
|
|
4
4
|
import { useState } from "react";
|
|
5
5
|
import { FormattedMessage } from "react-intl";
|
|
6
6
|
import { parametersStyles } from "../../parameters-style.js";
|
|
@@ -14,7 +14,7 @@ function ParameterGroup({
|
|
|
14
14
|
children
|
|
15
15
|
}) {
|
|
16
16
|
const [mouseHover, setMouseHover] = useState(false);
|
|
17
|
-
return /* @__PURE__ */ jsx(
|
|
17
|
+
return /* @__PURE__ */ jsx(Grid, { size: 12, sx: parametersStyles.subgroupParameters, children: /* @__PURE__ */ jsxs(
|
|
18
18
|
Accordion,
|
|
19
19
|
{
|
|
20
20
|
sx: parametersStyles.subgroupParametersAccordion,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid } from "@mui/material";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
4
|
import { parametersStyles } from "../../parameters-style.js";
|
|
5
5
|
import "@mui/icons-material";
|
|
@@ -39,9 +39,9 @@ function ParameterLineDirectoryItemsInput({
|
|
|
39
39
|
hideErrorMessage,
|
|
40
40
|
allowMultiSelect = true
|
|
41
41
|
}) {
|
|
42
|
-
return /* @__PURE__ */ jsxs(
|
|
43
|
-
/* @__PURE__ */ jsx(
|
|
44
|
-
/* @__PURE__ */ jsx(
|
|
42
|
+
return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, paddingTop: 1, paddingBottom: 1, sx: { width: "100%" }, children: [
|
|
43
|
+
/* @__PURE__ */ jsx(Grid, { size: 7, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
|
|
44
|
+
/* @__PURE__ */ jsx(Grid, { size: 5, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
|
|
45
45
|
DirectoryItemsInput,
|
|
46
46
|
{
|
|
47
47
|
name,
|