@gridsuite/commons-ui 0.239.0 → 0.241.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/README.md +6 -2
- package/dist/components/composite/agGridTable/cellEditors/numericEditor.d.ts +9 -3
- package/dist/components/composite/agGridTable/cellEditors/numericEditor.js +24 -5
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-aggrid-comparator-filter.js +2 -2
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-aggrid-text-filter.js +4 -4
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-filter-icon.js +2 -2
- package/dist/components/composite/customAGGrid/custom-aggrid-header.js +26 -13
- 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/filter/HeaderFilterForm.js +4 -4
- package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.d.ts +1 -1
- package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js +2 -4
- package/dist/components/composite/grid/grid-item.d.ts +4 -3
- package/dist/components/composite/grid/grid-item.js +8 -4
- package/dist/components/composite/grid/grid-section.d.ts +1 -1
- package/dist/components/composite/grid/grid-section.js +3 -3
- package/dist/components/composite/grid/index.js +6 -3
- package/dist/components/composite/index.js +4 -3
- package/dist/components/composite/reactQueryBuilder/PropertyValueEditor.js +5 -5
- package/dist/components/composite/reactQueryBuilder/compositeRuleEditor/GroupValueEditor.js +2 -2
- package/dist/components/composite/reactQueryBuilder/compositeRuleEditor/RuleValueEditor.js +5 -5
- package/dist/components/index.js +4 -3
- package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +9 -9
- package/dist/components/ui/dialogs/modifyElementSelection/ModifyElementSelection.js +3 -3
- package/dist/components/ui/reactHookForm/errorManagement/FieldErrorAlert.js +2 -2
- package/dist/components/ui/reactHookForm/expandableInput/DeletableRow.js +4 -4
- 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/utils/functions.js +2 -2
- package/dist/features/authentication/AuthenticationRouter.js +2 -2
- package/dist/features/authentication/AuthenticationRouterErrorDisplay.js +3 -3
- package/dist/features/index.js +6 -1
- package/dist/features/network-modifications/battery/creation/BatteryCreationForm.js +7 -7
- package/dist/features/network-modifications/battery/modification/BatteryDialogHeader.js +4 -4
- package/dist/features/network-modifications/battery/modification/BatteryDialogTabsContent.js +8 -8
- package/dist/features/network-modifications/battery/modification/BatteryModificationForm.js +5 -5
- package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-form.js +1 -1
- package/dist/features/network-modifications/by-filter/assignment/modification-by-assignment-form.js +4 -4
- package/dist/features/network-modifications/by-filter/deletion/ByFilterDeletionForm.js +4 -4
- package/dist/features/network-modifications/common/activePowerControl/ActivePowerControlForm.js +1 -1
- package/dist/features/network-modifications/common/connectivity/BranchConnectivityForm.js +1 -1
- 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/measurements/BranchActiveReactivePowerMeasurementsForm.js +4 -3
- package/dist/features/network-modifications/common/measurements/BusbarSectionVoltageMeasurementsForm.js +2 -2
- package/dist/features/network-modifications/common/measurements/PowerMeasurementsForm.js +4 -4
- package/dist/features/network-modifications/common/measurements/PowerWithValidityForm.js +4 -4
- package/dist/features/network-modifications/common/properties/PropertiesForm.js +1 -1
- package/dist/features/network-modifications/common/properties/PropertyForm.js +5 -5
- package/dist/features/network-modifications/common/reactiveLimits/ReactiveLimitsForm.js +3 -3
- package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveRowForm.js +1 -1
- package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.js +7 -7
- package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.js +2 -2
- package/dist/features/network-modifications/common/setpoints/SetPointsForm.js +5 -5
- package/dist/features/network-modifications/common/shortCircuit/ShortCircuitForm.js +3 -3
- package/dist/features/network-modifications/common/voltageRegulation/VoltageRegulationForm.js +5 -5
- package/dist/features/network-modifications/equipmentDeletion/EquipmentDeletionForm.js +6 -6
- package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/HvdcLccDeletionSpecificForm.js +5 -5
- package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.js +5 -5
- package/dist/features/network-modifications/generator/creation/GeneratorCreationForm.js +9 -9
- package/dist/features/network-modifications/generator/modification/GeneratorDialogHeader.js +5 -5
- package/dist/features/network-modifications/generator/modification/GeneratorDialogTabsContent.js +9 -9
- package/dist/features/network-modifications/generator/modification/GeneratorModificationForm.js +5 -5
- package/dist/features/network-modifications/load/common/LoadDialogHeader.js +5 -5
- package/dist/features/network-modifications/load/common/LoadDialogTabsContent.js +1 -1
- package/dist/features/network-modifications/load/common/LoadForm.js +5 -5
- package/dist/features/network-modifications/shunt-compensator/common/CharacteristicsForm.js +12 -12
- package/dist/features/network-modifications/shunt-compensator/common/characteristicsForm.utils.d.ts +8 -8
- package/dist/features/network-modifications/shunt-compensator/creation/ShuntCompensatorCreationForm.js +11 -11
- package/dist/features/network-modifications/shunt-compensator/creation/shuntCompensatorCreation.utils.d.ts +12 -12
- package/dist/features/network-modifications/shunt-compensator/modification/ShuntCompensatorModificationForm.js +3 -3
- package/dist/features/network-modifications/shunt-compensator/modification/shuntCompensatorModification.utils.d.ts +12 -12
- package/dist/features/network-modifications/substation/creation/SubstationCreationForm.js +7 -7
- package/dist/features/network-modifications/substation/modification/SubstationModificationForm.js +7 -7
- package/dist/features/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +7 -7
- package/dist/features/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.js +9 -9
- package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.js +5 -5
- 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 +1 -1
- package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationCreationSection.js +7 -7
- package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.js +5 -5
- package/dist/features/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js +3 -3
- package/dist/features/network-modifications/voltageLevel/modification/voltageLevelModification.utils.d.ts +1 -1
- package/dist/features/parameters/common/contingency-table/contingency-table.js +4 -4
- package/dist/features/parameters/common/hook/use-tabs.d.ts +3 -2
- package/dist/features/parameters/common/hook/use-tabs.js +2 -3
- package/dist/features/parameters/common/index.d.ts +2 -1
- package/dist/features/parameters/common/index.js +6 -1
- package/dist/features/parameters/common/line-separator.js +2 -2
- package/dist/features/parameters/common/name-element-editor/name-element-editor-form.js +4 -4
- package/dist/features/parameters/common/parameter-field.js +5 -4
- package/dist/features/parameters/common/parameter-layout/index.d.ts +8 -0
- package/dist/features/parameters/common/parameter-layout/index.js +7 -0
- package/dist/features/parameters/common/parameter-layout/parameter-layout-provider.d.ts +10 -0
- package/dist/features/parameters/common/parameter-layout/parameter-layout-provider.js +15 -0
- package/dist/features/parameters/common/parameter-layout/parameter-layout.d.ts +23 -0
- package/dist/features/parameters/common/parameter-layout/parameter-layout.js +167 -0
- package/dist/features/parameters/common/parameter-table-field/parameter-table-field.js +3 -3
- package/dist/features/parameters/common/parameters.js +3 -3
- package/dist/features/parameters/common/provider-param.d.ts +10 -0
- package/dist/features/parameters/common/{ProviderParam.js → provider-param.js} +9 -11
- 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.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.d.ts +4 -5
- package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +39 -60
- package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-inline.js +39 -101
- 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-margin-calculation/use-dynamic-margin-calculation-parameters-form.js +8 -7
- package/dist/features/parameters/dynamic-security-analysis/contingency-parameters.js +12 -11
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-inline.js +38 -71
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.d.ts +4 -5
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +39 -61
- package/dist/features/parameters/dynamic-security-analysis/scenario-parameters.js +2 -2
- package/dist/features/parameters/dynamic-security-analysis/use-dynamic-security-analysis-parameters-form.js +8 -7
- package/dist/features/parameters/dynamic-simulation/curve/common/grid-buttons.js +4 -4
- package/dist/features/parameters/dynamic-simulation/curve/curve-parameters.js +7 -8
- package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-preview.js +7 -7
- package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector-dialog.js +10 -10
- package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector.js +26 -50
- package/dist/features/parameters/dynamic-simulation/curve/dialog/equipment-filter.js +20 -20
- package/dist/features/parameters/dynamic-simulation/curve/dialog/model-filter.js +11 -10
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-inline.js +42 -104
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.d.ts +4 -5
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +75 -97
- package/dist/features/parameters/dynamic-simulation/mapping/mapping-parameters.js +10 -9
- 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/dynamic-simulation/use-dynamic-simulation-parameters-form.js +7 -6
- package/dist/features/parameters/index.js +6 -1
- package/dist/features/parameters/loadflow/load-flow-general-parameters.js +1 -0
- package/dist/features/parameters/loadflow/load-flow-parameters-content.js +14 -13
- package/dist/features/parameters/loadflow/load-flow-parameters-dialog.js +12 -18
- package/dist/features/parameters/loadflow/load-flow-parameters-form.d.ts +1 -6
- package/dist/features/parameters/loadflow/load-flow-parameters-form.js +26 -91
- package/dist/features/parameters/loadflow/load-flow-parameters-header.js +29 -53
- package/dist/features/parameters/loadflow/load-flow-parameters-inline.js +35 -128
- package/dist/features/parameters/loadflow/load-flow-parameters-utils.js +11 -10
- package/dist/features/parameters/loadflow/use-load-flow-parameters-form.js +10 -9
- package/dist/features/parameters/network-visualizations/map-parameters.js +18 -17
- package/dist/features/parameters/network-visualizations/network-area-diagram-parameters.js +4 -4
- package/dist/features/parameters/network-visualizations/network-visualizations-form.d.ts +1 -4
- package/dist/features/parameters/network-visualizations/network-visualizations-form.js +19 -48
- package/dist/features/parameters/network-visualizations/network-visualizations-parameters-dialog.js +13 -19
- package/dist/features/parameters/network-visualizations/network-visualizations-parameters-inline.js +34 -65
- package/dist/features/parameters/network-visualizations/single-line-diagram-parameters.js +18 -17
- package/dist/features/parameters/parameters-style.d.ts +0 -1
- package/dist/features/parameters/parameters-style.js +0 -2
- package/dist/features/parameters/pcc-min/pcc-min-parameters-dialog.js +13 -18
- package/dist/features/parameters/pcc-min/pcc-min-parameters-form.d.ts +7 -29
- package/dist/features/parameters/pcc-min/pcc-min-parameters-form.js +16 -109
- package/dist/features/parameters/pcc-min/pcc-min-parameters-inline.js +27 -84
- package/dist/features/parameters/security-analysis/columns-definitions.js +11 -10
- package/dist/features/parameters/security-analysis/security-analysis-parameters-dialog.js +20 -20
- package/dist/features/parameters/security-analysis/security-analysis-parameters-form.d.ts +2 -4
- package/dist/features/parameters/security-analysis/security-analysis-parameters-form.js +44 -115
- package/dist/features/parameters/security-analysis/security-analysis-parameters-inline.js +40 -109
- package/dist/features/parameters/security-analysis/security-analysis-parameters-selector.js +12 -11
- package/dist/features/parameters/security-analysis/security-analysis-violations-hiding.js +9 -11
- package/dist/features/parameters/security-analysis/use-security-analysis-parameters-form.js +7 -6
- package/dist/features/parameters/sensi/columns-definitions.js +9 -8
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-dialog.js +21 -21
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.d.ts +3 -5
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.js +33 -90
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-inline.js +40 -99
- package/dist/features/parameters/sensi/sensitivity-parameters-fields.js +8 -17
- package/dist/features/parameters/sensi/sensitivity-parameters-selector.js +10 -9
- package/dist/features/parameters/sensi/utils.js +8 -7
- package/dist/features/parameters/short-circuit/short-circuit-general-tab-panel.js +15 -14
- package/dist/features/parameters/short-circuit/short-circuit-parameters-content.js +11 -10
- package/dist/features/parameters/short-circuit/short-circuit-parameters-dialog.js +13 -18
- package/dist/features/parameters/short-circuit/short-circuit-parameters-form.d.ts +1 -4
- package/dist/features/parameters/short-circuit/short-circuit-parameters-form.js +5 -63
- package/dist/features/parameters/short-circuit/short-circuit-parameters-inline.js +33 -101
- package/dist/features/parameters/short-circuit/short-circuit-parameters-utils.js +12 -11
- package/dist/features/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +17 -16
- package/dist/features/parameters/short-circuit/short-circuit-study-area-tab-panel.js +15 -14
- package/dist/features/parameters/short-circuit/use-short-circuit-parameters-form.js +1 -0
- package/dist/features/parameters/voltage-init/equipment-selection-parameters.js +6 -5
- package/dist/features/parameters/voltage-init/general-parameters.js +11 -10
- package/dist/features/parameters/voltage-init/voltage-init-parameters-dialog.js +13 -18
- package/dist/features/parameters/voltage-init/voltage-init-parameters-form.d.ts +2 -24
- package/dist/features/parameters/voltage-init/voltage-init-parameters-form.js +51 -108
- package/dist/features/parameters/voltage-init/voltage-init-parameters-inline.js +34 -90
- package/dist/features/parameters/voltage-init/voltage-limits-parameters.js +2 -2
- package/dist/features/process-configs/security-analysis/update-sa-process-config.js +7 -6
- package/dist/features/topBar/AboutDialog.js +4 -7
- package/dist/index.js +13 -4
- package/dist/translations/en/commonButtonEn.d.ts +2 -0
- package/dist/translations/en/commonButtonEn.js +2 -0
- package/dist/translations/en/parameters.d.ts +1 -0
- package/dist/translations/en/parameters.js +3 -1
- package/dist/translations/fr/commonButtonFr.d.ts +2 -0
- package/dist/translations/fr/commonButtonFr.js +2 -0
- package/dist/translations/fr/parameters.d.ts +1 -0
- package/dist/translations/fr/parameters.js +3 -1
- package/dist/utils/types/elementType.d.ts +1 -0
- package/dist/utils/types/elementType.js +1 -0
- package/package.json +3 -2
- package/dist/features/parameters/common/ProviderParam.d.ts +0 -7
package/dist/components/index.js
CHANGED
|
@@ -100,9 +100,8 @@ import { ExplicitNamingFilterForm, explicitNamingFilterSchema, getExplicitNaming
|
|
|
100
100
|
import { FILTER_EQUIPMENTS_ATTRIBUTES } from "./composite/filter/explicitNaming/ExplicitNamingFilterConstants.js";
|
|
101
101
|
import { saveExpertFilter, saveExplicitNamingFilter } from "./composite/filter/utils/filterApi.js";
|
|
102
102
|
import { CONTINGENCY_LIST_EQUIPMENTS, FILTER_EQUIPMENTS } from "./composite/filter/utils/filterFormUtils.js";
|
|
103
|
-
import "
|
|
104
|
-
import "
|
|
105
|
-
import "react-intl";
|
|
103
|
+
import { GridItem } from "./composite/grid/grid-item.js";
|
|
104
|
+
import { GridSection } from "./composite/grid/grid-section.js";
|
|
106
105
|
import { OverflowableTableCell } from "./composite/muiTable/OverflowableTableCell.js";
|
|
107
106
|
import { OverflowableTableCellWithCheckbox } from "./composite/muiTable/OverflowableTableCellWithCheckbox.js";
|
|
108
107
|
import { AutocompleteWithFavorites } from "./composite/reactQueryBuilder/AutocompleteWithFavorites.js";
|
|
@@ -258,6 +257,8 @@ export {
|
|
|
258
257
|
FlatParameters,
|
|
259
258
|
FloatInput,
|
|
260
259
|
GLOBAL_REPORT_NODE_LABEL,
|
|
260
|
+
GridItem,
|
|
261
|
+
GridSection,
|
|
261
262
|
GroupValueEditor,
|
|
262
263
|
HelperPreviousValue,
|
|
263
264
|
InputWithPopupConfirmation,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
3
3
|
import { useState, useCallback, useEffect } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { Stack, Grid2, Button, Typography, Box, CircularProgress } from "@mui/material";
|
|
5
5
|
import { useForm } from "react-hook-form";
|
|
6
6
|
import { yupResolver } from "@hookform/resolvers/yup";
|
|
7
7
|
import * as yup from "yup";
|
|
@@ -186,13 +186,13 @@ function ElementSaveDialog({
|
|
|
186
186
|
);
|
|
187
187
|
const renderChooser = () => {
|
|
188
188
|
if (isCreateMode) {
|
|
189
|
-
return /* @__PURE__ */ jsxs(
|
|
190
|
-
/* @__PURE__ */ jsx(
|
|
189
|
+
return /* @__PURE__ */ jsxs(Grid2, { container: true, children: [
|
|
190
|
+
/* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(Button, { onClick: handleChangeFolder, variant: "contained", size: "small", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "showSelectDirectoryDialog" }) }) }),
|
|
191
191
|
/* @__PURE__ */ jsx(Typography, { m: 1, component: "span", children: /* @__PURE__ */ jsx(Box, { fontWeight: "fontWeightBold", children: destinationFolder ? destinationFolder.name : /* @__PURE__ */ jsx(CircularProgress, {}) }) })
|
|
192
192
|
] });
|
|
193
193
|
}
|
|
194
|
-
return /* @__PURE__ */ jsxs(
|
|
195
|
-
/* @__PURE__ */ jsx(
|
|
194
|
+
return /* @__PURE__ */ jsxs(Grid2, { container: true, children: [
|
|
195
|
+
/* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(Button, { onClick: handleChangeFolder, variant: "contained", size: "small", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "showSelectDirectoryItemDialog" }) }) }),
|
|
196
196
|
/* @__PURE__ */ jsx(Typography, { m: 1, component: "span", children: /* @__PURE__ */ jsx(Box, { fontWeight: "fontWeightBold", children: selectedItem ? selectedItem.fullPath : null }) })
|
|
197
197
|
] });
|
|
198
198
|
};
|
|
@@ -206,8 +206,8 @@ function ElementSaveDialog({
|
|
|
206
206
|
disabledSave: disableSave,
|
|
207
207
|
formContext: { ...formMethods, validationSchema: schema },
|
|
208
208
|
children: [
|
|
209
|
-
/* @__PURE__ */ jsxs(
|
|
210
|
-
!createOnlyMode && /* @__PURE__ */ jsx(
|
|
209
|
+
/* @__PURE__ */ jsxs(Stack, { spacing: 2, marginTop: "auto", children: [
|
|
210
|
+
!createOnlyMode && /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
|
|
211
211
|
RadioInput,
|
|
212
212
|
{
|
|
213
213
|
name: FieldConstants.OPERATION_TYPE,
|
|
@@ -224,7 +224,7 @@ function ElementSaveDialog({
|
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
) }),
|
|
227
|
-
/* @__PURE__ */ jsx(
|
|
227
|
+
/* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
|
|
228
228
|
UniqueNameInput,
|
|
229
229
|
{
|
|
230
230
|
name: FieldConstants.NAME,
|
|
@@ -235,7 +235,7 @@ function ElementSaveDialog({
|
|
|
235
235
|
autoFocus: true
|
|
236
236
|
}
|
|
237
237
|
) }),
|
|
238
|
-
/* @__PURE__ */ jsx(
|
|
238
|
+
/* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(DescriptionField, {}) }),
|
|
239
239
|
renderChooser()
|
|
240
240
|
] }),
|
|
241
241
|
/* @__PURE__ */ jsx(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { Grid2, Typography, Box, Button } from "@mui/material";
|
|
4
4
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
5
5
|
import { useController } from "react-hook-form";
|
|
6
6
|
import { FolderOutlined } from "@mui/icons-material";
|
|
@@ -47,14 +47,14 @@ function ModifyElementSelection(props) {
|
|
|
47
47
|
setOpen(false);
|
|
48
48
|
};
|
|
49
49
|
return /* @__PURE__ */ jsxs(
|
|
50
|
-
|
|
50
|
+
Grid2,
|
|
51
51
|
{
|
|
52
52
|
sx: {
|
|
53
53
|
marginTop: "10px",
|
|
54
54
|
alignItems: "center"
|
|
55
55
|
},
|
|
56
56
|
children: [
|
|
57
|
-
/* @__PURE__ */ jsxs(
|
|
57
|
+
/* @__PURE__ */ jsxs(Grid2, { container: true, children: [
|
|
58
58
|
/* @__PURE__ */ jsx(Typography, { m: 1, component: "span", children: /* @__PURE__ */ jsxs(Box, { fontWeight: "fontWeightBold", display: "flex", justifyContent: "center", alignItems: "center", children: [
|
|
59
59
|
/* @__PURE__ */ jsx(FolderOutlined, {}),
|
|
60
60
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid2, Alert } from "@mui/material";
|
|
3
3
|
function FieldErrorAlert({ message }) {
|
|
4
|
-
return /* @__PURE__ */ jsx(
|
|
4
|
+
return /* @__PURE__ */ jsx(Grid2, { size: 12, children: /* @__PURE__ */ jsx(Alert, { severity: "error", children: message }) });
|
|
5
5
|
}
|
|
6
6
|
export {
|
|
7
7
|
FieldErrorAlert
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
|
-
import {
|
|
4
|
+
import { Grid2, IconButton } from "@mui/material";
|
|
5
5
|
import { RestoreFromTrash, Delete } from "@mui/icons-material";
|
|
6
6
|
import { CustomTooltip } from "../../tooltip/CustomTooltip.js";
|
|
7
7
|
function DeletableRow({
|
|
@@ -14,17 +14,17 @@ function DeletableRow({
|
|
|
14
14
|
const intl = useIntl();
|
|
15
15
|
const [isMouseHover, setIsMouseHover] = useState(false);
|
|
16
16
|
return /* @__PURE__ */ jsxs(
|
|
17
|
-
|
|
17
|
+
Grid2,
|
|
18
18
|
{
|
|
19
19
|
container: true,
|
|
20
20
|
spacing: 2,
|
|
21
|
-
|
|
21
|
+
size: 12,
|
|
22
22
|
alignItems,
|
|
23
23
|
onMouseEnter: () => setIsMouseHover(true),
|
|
24
24
|
onMouseLeave: () => setIsMouseHover(false),
|
|
25
25
|
children: [
|
|
26
26
|
children,
|
|
27
|
-
/* @__PURE__ */ jsx(
|
|
27
|
+
/* @__PURE__ */ jsx(Grid2, { size: 1, children: isMouseHover && !disabledDeletion && /* @__PURE__ */ jsx(
|
|
28
28
|
CustomTooltip,
|
|
29
29
|
{
|
|
30
30
|
title: intl.formatMessage({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useFieldArray } from "react-hook-form";
|
|
3
|
-
import {
|
|
3
|
+
import { Grid2 } from "@mui/material";
|
|
4
4
|
import { forwardRef, useImperativeHandle } from "react";
|
|
5
5
|
import { DeletableRow } from "./DeletableRow.js";
|
|
6
6
|
import { ErrorInput } from "../errorManagement/ErrorInput.js";
|
|
@@ -40,8 +40,8 @@ const ExpandableInput = forwardRef(
|
|
|
40
40
|
}),
|
|
41
41
|
[append, replace]
|
|
42
42
|
);
|
|
43
|
-
return /* @__PURE__ */ jsxs(
|
|
44
|
-
/* @__PURE__ */ jsx(
|
|
43
|
+
return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
44
|
+
/* @__PURE__ */ jsx(Grid2, { size: 12, children: /* @__PURE__ */ jsx(ErrorInput, { name, InputField: MidFormError }) }),
|
|
45
45
|
watchProps && values.map((value, idx) => /* @__PURE__ */ jsx(
|
|
46
46
|
DeletableRow,
|
|
47
47
|
{
|
|
@@ -58,7 +58,7 @@ const ExpandableInput = forwardRef(
|
|
|
58
58
|
},
|
|
59
59
|
value.id
|
|
60
60
|
)),
|
|
61
|
-
addButtonLabel && /* @__PURE__ */ jsx(
|
|
61
|
+
addButtonLabel && /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(AddButton, { disabled, onClick: () => append(initialValue), label: addButtonLabel }) })
|
|
62
62
|
] });
|
|
63
63
|
}
|
|
64
64
|
);
|
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useWatch } from "react-hook-form";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
4
|
import { useMemo } from "react";
|
|
5
|
-
import { FormControl, InputLabel,
|
|
5
|
+
import { FormControl, InputLabel, Grid2 } from "@mui/material";
|
|
6
6
|
import * as yup from "yup";
|
|
7
7
|
import { FloatInput } from "./FloatInput.js";
|
|
8
8
|
import { MuiSelectInput } from "../selectInputs/MuiSelectInput.js";
|
|
@@ -51,8 +51,8 @@ function RangeInput({ name, label }) {
|
|
|
51
51
|
const isOperationTypeRange = useMemo(() => watchOperationType === RangeType.RANGE.id, [watchOperationType]);
|
|
52
52
|
return /* @__PURE__ */ jsxs(FormControl, { fullWidth: true, children: [
|
|
53
53
|
/* @__PURE__ */ jsx(InputLabel, { sx: style.inputLegend, shrink: true, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
|
|
54
|
-
/* @__PURE__ */ jsxs(
|
|
55
|
-
/* @__PURE__ */ jsx(
|
|
54
|
+
/* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 0, children: [
|
|
55
|
+
/* @__PURE__ */ jsx(Grid2, { style: isOperationTypeRange ? { flex: "min-content" } : {}, children: /* @__PURE__ */ jsx(
|
|
56
56
|
MuiSelectInput,
|
|
57
57
|
{
|
|
58
58
|
name: `${name}.${FieldConstants.OPERATION_TYPE}`,
|
|
@@ -60,7 +60,7 @@ function RangeInput({ name, label }) {
|
|
|
60
60
|
fullWidth: true
|
|
61
61
|
}
|
|
62
62
|
) }),
|
|
63
|
-
/* @__PURE__ */ jsx(
|
|
63
|
+
/* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
|
|
64
64
|
FloatInput,
|
|
65
65
|
{
|
|
66
66
|
label: "",
|
|
@@ -72,7 +72,7 @@ function RangeInput({ name, label }) {
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
) }),
|
|
75
|
-
isOperationTypeRange && /* @__PURE__ */ jsx(
|
|
75
|
+
isOperationTypeRange && /* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
|
|
76
76
|
FloatInput,
|
|
77
77
|
{
|
|
78
78
|
name: `${name}.${FieldConstants.VALUE_2}`,
|
|
@@ -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 { Grid2 } 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(Grid2, { 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, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Stack } from "@mui/material";
|
|
3
3
|
import { useCallback } from "react";
|
|
4
4
|
import { Routes, Route, Navigate } from "react-router";
|
|
5
5
|
import { Login } from "./Login.js";
|
|
@@ -26,7 +26,7 @@ function AuthenticationRouter({
|
|
|
26
26
|
handleSilentRenewCallback(userManager.instance);
|
|
27
27
|
}
|
|
28
28
|
}, [userManager.instance]);
|
|
29
|
-
return /* @__PURE__ */ jsxs(
|
|
29
|
+
return /* @__PURE__ */ jsxs(Stack, { alignItems: "center", sx: { width: "100%" }, children: [
|
|
30
30
|
userManager.error !== null && /* @__PURE__ */ jsxs("h1", { children: [
|
|
31
31
|
"Error : Getting userManager; ",
|
|
32
32
|
userManager.error
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid2 } 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(Grid2, { children: /* @__PURE__ */ jsx(Logout, { disabled: instance === null, onLogoutClick: () => logout(dispatch, instance) }) }),
|
|
12
|
+
/* @__PURE__ */ jsxs(Grid2, { 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,
|
package/dist/features/index.js
CHANGED
|
@@ -18,12 +18,14 @@ import { AboutDialog } from "./topBar/AboutDialog.js";
|
|
|
18
18
|
import { GridLogo, LogoText } from "./topBar/GridLogo.js";
|
|
19
19
|
import { DevModeBanner } from "./topBar/DevModeBanner.js";
|
|
20
20
|
import { TopBar } from "./topBar/TopBar.js";
|
|
21
|
+
import { ParameterLayout } from "./parameters/common/parameter-layout/parameter-layout.js";
|
|
22
|
+
import { ParameterLayoutProvider, useParameterLayoutContext } from "./parameters/common/parameter-layout/parameter-layout-provider.js";
|
|
21
23
|
import { formatComputingTypeLabel, isValidComputingType } from "./parameters/common/computing-type.js";
|
|
22
24
|
import { COMMON_PARAMETERS, CONTINGENCIES, CONTINGENCY_LISTS, CONTINGENCY_LISTS_INFOS, PARAM_SA_FLOW_PROPORTIONAL_THRESHOLD, PARAM_SA_HIGH_VOLTAGE_ABSOLUTE_THRESHOLD, PARAM_SA_HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD, PARAM_SA_LOW_VOLTAGE_ABSOLUTE_THRESHOLD, PARAM_SA_LOW_VOLTAGE_PROPORTIONAL_THRESHOLD, PARAM_SA_PROVIDER, PROVIDER, SPECIFIC_PARAMETERS, VERSION_PARAMETER, VOLTAGE_LEVEL } from "./parameters/common/constants.js";
|
|
23
25
|
import { LineSeparator } from "./parameters/common/line-separator.js";
|
|
24
26
|
import { LabelledButton, SwitchWithLabel, TabPanel } from "./parameters/common/parameters.js";
|
|
25
27
|
import { CreateParameterDialog } from "./parameters/common/parameters-creation-dialog.js";
|
|
26
|
-
import { ProviderParam } from "./parameters/common/
|
|
28
|
+
import { ProviderParam } from "./parameters/common/provider-param.js";
|
|
27
29
|
import { ParameterFloat } from "./parameters/common/widget/parameter-float.js";
|
|
28
30
|
import { ParameterGroup } from "./parameters/common/widget/parameter-group.js";
|
|
29
31
|
import { ParameterLineDirectoryItemsInput } from "./parameters/common/widget/parameter-line-directory-items-input.js";
|
|
@@ -402,6 +404,8 @@ export {
|
|
|
402
404
|
PSTS_EQUIPMENT_TYPES,
|
|
403
405
|
ParameterFloat,
|
|
404
406
|
ParameterGroup,
|
|
407
|
+
ParameterLayout,
|
|
408
|
+
ParameterLayoutProvider,
|
|
405
409
|
ParameterLineDirectoryItemsInput,
|
|
406
410
|
ParameterLineSlider,
|
|
407
411
|
ParameterSwitch,
|
|
@@ -712,6 +716,7 @@ export {
|
|
|
712
716
|
useListenerManager,
|
|
713
717
|
useModificationsDragAndDrop,
|
|
714
718
|
useNotificationsListener,
|
|
719
|
+
useParameterLayoutContext,
|
|
715
720
|
useParametersForm,
|
|
716
721
|
useTabs,
|
|
717
722
|
useTabsWithError,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid2 } from "@mui/material";
|
|
3
3
|
import { filledTextField } from "../../common/form.utils.js";
|
|
4
4
|
import { PropertiesForm } from "../../common/properties/PropertiesForm.js";
|
|
5
5
|
import "react";
|
|
@@ -36,7 +36,7 @@ import "mui-nested-menu";
|
|
|
36
36
|
import "react-resizable-panels";
|
|
37
37
|
import "react-papaparse";
|
|
38
38
|
import "../../common/properties/propertyUtils.js";
|
|
39
|
-
import GridSection from "../../../../components/composite/grid/grid-section.js";
|
|
39
|
+
import { GridSection } from "../../../../components/composite/grid/grid-section.js";
|
|
40
40
|
import "react-dom";
|
|
41
41
|
import "autosuggest-highlight/match";
|
|
42
42
|
import "autosuggest-highlight/parse";
|
|
@@ -51,7 +51,7 @@ import "react-querybuilder";
|
|
|
51
51
|
import "uuid";
|
|
52
52
|
import "../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js";
|
|
53
53
|
import "../../../../components/composite/filter/utils/filterFormUtils.js";
|
|
54
|
-
import GridItem from "../../../../components/composite/grid/grid-item.js";
|
|
54
|
+
import { GridItem } from "../../../../components/composite/grid/grid-item.js";
|
|
55
55
|
import "@react-querybuilder/material";
|
|
56
56
|
import "../../../../components/composite/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
57
57
|
import "../../../../components/composite/reactQueryBuilder/PropertyValueEditor.js";
|
|
@@ -103,21 +103,21 @@ function BatteryCreationForm({
|
|
|
103
103
|
}
|
|
104
104
|
);
|
|
105
105
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
106
|
-
/* @__PURE__ */ jsxs(
|
|
106
|
+
/* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
107
107
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: batteryIdField }),
|
|
108
108
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: batteryNameField })
|
|
109
109
|
] }),
|
|
110
110
|
/* @__PURE__ */ jsx(GridSection, { title: "Connectivity" }),
|
|
111
|
-
/* @__PURE__ */ jsx(
|
|
111
|
+
/* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: connectivityForm }) }),
|
|
112
112
|
/* @__PURE__ */ jsx(GridSection, { title: "ActiveLimits" }),
|
|
113
|
-
/* @__PURE__ */ jsxs(
|
|
113
|
+
/* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
114
114
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: minimumActivePowerField }),
|
|
115
115
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: maximumActivePowerField })
|
|
116
116
|
] }),
|
|
117
117
|
/* @__PURE__ */ jsx(GridSection, { title: "ReactiveLimits" }),
|
|
118
118
|
/* @__PURE__ */ jsx(ReactiveLimitsForm, {}),
|
|
119
119
|
/* @__PURE__ */ jsx(SetPointsForm, {}),
|
|
120
|
-
/* @__PURE__ */ jsx(
|
|
120
|
+
/* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, paddingTop: 2, children: /* @__PURE__ */ jsx(ActivePowerControlForm, {}) }),
|
|
121
121
|
/* @__PURE__ */ jsx(GridSection, { title: "ShortCircuit" }),
|
|
122
122
|
/* @__PURE__ */ jsx(ShortCircuitForm, {}),
|
|
123
123
|
/* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "battery" })
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid2, TextField } from "@mui/material";
|
|
3
3
|
import { filledTextField } from "../../common/form.utils.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-hook-form";
|
|
@@ -62,8 +62,8 @@ import "../../../../components/composite/report/report-treeview/treeview-item.js
|
|
|
62
62
|
import "../../../../components/composite/report/report-viewer/context/report-viewer-context.js";
|
|
63
63
|
import "../../common/regulatingTerminal/RegulatingTerminalForm.js";
|
|
64
64
|
function BatteryDialogHeader({ batteryToModify, equipmentId }) {
|
|
65
|
-
return /* @__PURE__ */ jsxs(
|
|
66
|
-
/* @__PURE__ */ jsx(
|
|
65
|
+
return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
66
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
|
|
67
67
|
TextField,
|
|
68
68
|
{
|
|
69
69
|
size: "small",
|
|
@@ -77,7 +77,7 @@ function BatteryDialogHeader({ batteryToModify, equipmentId }) {
|
|
|
77
77
|
...filledTextField
|
|
78
78
|
}
|
|
79
79
|
) }),
|
|
80
|
-
/* @__PURE__ */ jsx(
|
|
80
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
|
|
81
81
|
TextInput,
|
|
82
82
|
{
|
|
83
83
|
name: FieldConstants.EQUIPMENT_NAME,
|
package/dist/features/network-modifications/battery/modification/BatteryDialogTabsContent.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Box,
|
|
2
|
+
import { Box, Grid2 } from "@mui/material";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
4
|
import { BatteryDialogTab } from "./batteryTabs.utils.js";
|
|
5
|
-
import GridSection from "../../../../components/composite/grid/grid-section.js";
|
|
6
|
-
import GridItem from "../../../../components/composite/grid/grid-item.js";
|
|
5
|
+
import { GridSection } from "../../../../components/composite/grid/grid-section.js";
|
|
6
|
+
import { GridItem } from "../../../../components/composite/grid/grid-item.js";
|
|
7
7
|
import { PropertiesForm } from "../../common/properties/PropertiesForm.js";
|
|
8
8
|
import "react";
|
|
9
9
|
import "react-hook-form";
|
|
@@ -99,7 +99,7 @@ function BatteryDialogTabsContent({
|
|
|
99
99
|
] }),
|
|
100
100
|
/* @__PURE__ */ jsxs(Box, { hidden: tabIndex !== BatteryDialogTab.LIMITS_AND_SETPOINTS_TAB, children: [
|
|
101
101
|
/* @__PURE__ */ jsx(GridSection, { title: "Setpoints" }),
|
|
102
|
-
/* @__PURE__ */ jsxs(
|
|
102
|
+
/* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
103
103
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(
|
|
104
104
|
FloatInput,
|
|
105
105
|
{
|
|
@@ -121,18 +121,18 @@ function BatteryDialogTabsContent({
|
|
|
121
121
|
}
|
|
122
122
|
) })
|
|
123
123
|
] }),
|
|
124
|
-
/* @__PURE__ */ jsx(
|
|
124
|
+
/* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, paddingTop: 2, children: /* @__PURE__ */ jsx(
|
|
125
125
|
ActivePowerControlForm,
|
|
126
126
|
{
|
|
127
127
|
isEquipmentModification: true,
|
|
128
128
|
previousValues: batteryToModify?.activePowerControl
|
|
129
129
|
}
|
|
130
130
|
) }),
|
|
131
|
-
/* @__PURE__ */ jsx(
|
|
131
|
+
/* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, children: /* @__PURE__ */ jsxs(Grid2, { size: 12, children: [
|
|
132
132
|
/* @__PURE__ */ jsx("h3", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Limits" }) }),
|
|
133
133
|
/* @__PURE__ */ jsx("h4", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "ActiveLimits" }) })
|
|
134
134
|
] }) }),
|
|
135
|
-
/* @__PURE__ */ jsxs(
|
|
135
|
+
/* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
136
136
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(
|
|
137
137
|
FloatInput,
|
|
138
138
|
{
|
|
@@ -154,7 +154,7 @@ function BatteryDialogTabsContent({
|
|
|
154
154
|
}
|
|
155
155
|
) })
|
|
156
156
|
] }),
|
|
157
|
-
/* @__PURE__ */ jsx(
|
|
157
|
+
/* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(Grid2, { size: 12, children: /* @__PURE__ */ jsx("h4", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "ReactiveLimits" }) }) }) }),
|
|
158
158
|
/* @__PURE__ */ jsx(
|
|
159
159
|
ReactiveLimitsForm,
|
|
160
160
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Stack, Grid2 } 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";
|
|
@@ -22,9 +22,9 @@ function BatteryModificationForm({
|
|
|
22
22
|
BatteryDialogTab.CONNECTIVITY_TAB
|
|
23
23
|
);
|
|
24
24
|
const equipmentId = useWatch({ name: FieldConstants.EQUIPMENT_ID });
|
|
25
|
-
return /* @__PURE__ */ jsxs(
|
|
26
|
-
/* @__PURE__ */ jsx(
|
|
27
|
-
/* @__PURE__ */ jsx(
|
|
25
|
+
return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
|
|
26
|
+
/* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(BatteryDialogHeader, { batteryToModify, equipmentId }) }),
|
|
27
|
+
/* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
|
|
28
28
|
BatteryDialogTabs,
|
|
29
29
|
{
|
|
30
30
|
tabIndex,
|
|
@@ -32,7 +32,7 @@ function BatteryModificationForm({
|
|
|
32
32
|
setTabIndex
|
|
33
33
|
}
|
|
34
34
|
) }),
|
|
35
|
-
/* @__PURE__ */ jsx(
|
|
35
|
+
/* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
|
|
36
36
|
BatteryDialogTabsContent,
|
|
37
37
|
{
|
|
38
38
|
tabIndex,
|
package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-form.js
CHANGED
|
@@ -43,7 +43,7 @@ import "mui-nested-menu";
|
|
|
43
43
|
import "react-resizable-panels";
|
|
44
44
|
import "react-papaparse";
|
|
45
45
|
import { DataType } from "./assignment.type.js";
|
|
46
|
-
import GridItem from "../../../../../components/composite/grid/grid-item.js";
|
|
46
|
+
import { GridItem } from "../../../../../components/composite/grid/grid-item.js";
|
|
47
47
|
import { EQUIPMENTS_FIELDS } from "./assignment-constants.js";
|
|
48
48
|
import { EMPTY_FIELD_VALUE } from "./assignment-utils.js";
|
|
49
49
|
const comparatorStrIgnoreCase = (str1, str2) => {
|
package/dist/features/network-modifications/by-filter/assignment/modification-by-assignment-form.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Box,
|
|
2
|
+
import { Box, Grid2 } from "@mui/material";
|
|
3
3
|
import { useFormContext } from "react-hook-form";
|
|
4
4
|
import "@mui/icons-material";
|
|
5
5
|
import "react-intl";
|
|
@@ -34,7 +34,7 @@ import "../../../../components/ui/snackbarProvider/SnackbarProvider.js";
|
|
|
34
34
|
import "mui-nested-menu";
|
|
35
35
|
import "react-resizable-panels";
|
|
36
36
|
import "react-papaparse";
|
|
37
|
-
import GridItem from "../../../../components/composite/grid/grid-item.js";
|
|
37
|
+
import { GridItem } from "../../../../components/composite/grid/grid-item.js";
|
|
38
38
|
import AssignmentForm from "./assignment/assignment-form.js";
|
|
39
39
|
import { getAssignmentInitialValue } from "./assignment/assignment-utils.js";
|
|
40
40
|
import { EQUIPMENTS_FIELDS } from "./assignment/assignment-constants.js";
|
|
@@ -75,8 +75,8 @@ function ModificationByAssignmentForm() {
|
|
|
75
75
|
}
|
|
76
76
|
);
|
|
77
77
|
return /* @__PURE__ */ jsxs(Box, { sx: mergeSx(unscrollableDialogStyles.unscrollableContainer, { height: "100%" }), children: [
|
|
78
|
-
/* @__PURE__ */ jsx(
|
|
79
|
-
/* @__PURE__ */ jsx(
|
|
78
|
+
/* @__PURE__ */ jsx(Grid2, { container: true, sx: unscrollableDialogStyles.unscrollableHeader, children: /* @__PURE__ */ jsx(GridItem, { size: 3.15, children: equipmentTypeField }) }),
|
|
79
|
+
/* @__PURE__ */ jsx(Grid2, { container: true, sx: unscrollableDialogStyles.scrollableContent, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: assignmentsField }) })
|
|
80
80
|
] });
|
|
81
81
|
}
|
|
82
82
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid2 } from "@mui/material";
|
|
3
3
|
import { useCallback } from "react";
|
|
4
4
|
import { useWatch, useFormContext } from "react-hook-form";
|
|
5
5
|
import "@mui/icons-material";
|
|
@@ -45,8 +45,8 @@ function ByFilterDeletionForm() {
|
|
|
45
45
|
const handleEquipmentTypeChange = useCallback(() => {
|
|
46
46
|
setValue(FieldConstants.FILTERS, []);
|
|
47
47
|
}, [setValue]);
|
|
48
|
-
return /* @__PURE__ */ jsxs(
|
|
49
|
-
/* @__PURE__ */ jsx(
|
|
48
|
+
return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, pt: 1, children: [
|
|
49
|
+
/* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
|
|
50
50
|
AutocompleteInput,
|
|
51
51
|
{
|
|
52
52
|
isOptionEqualToValue: richTypeEquals,
|
|
@@ -58,7 +58,7 @@ function ByFilterDeletionForm() {
|
|
|
58
58
|
size: "small"
|
|
59
59
|
}
|
|
60
60
|
) }),
|
|
61
|
-
/* @__PURE__ */ jsx(
|
|
61
|
+
/* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
|
|
62
62
|
DirectoryItemsInput,
|
|
63
63
|
{
|
|
64
64
|
name: FieldConstants.FILTERS,
|
package/dist/features/network-modifications/common/activePowerControl/ActivePowerControlForm.js
CHANGED
|
@@ -8,7 +8,7 @@ import { CustomTooltip } from "../../../../components/ui/tooltip/CustomTooltip.j
|
|
|
8
8
|
import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
|
|
9
9
|
import "../../../../utils/conversionUtils.js";
|
|
10
10
|
import "../../../../utils/types/equipmentType.js";
|
|
11
|
-
import GridItem from "../../../../components/composite/grid/grid-item.js";
|
|
11
|
+
import { GridItem } from "../../../../components/composite/grid/grid-item.js";
|
|
12
12
|
import "../../../../components/ui/overflowableText/OverflowableText.js";
|
|
13
13
|
import "localized-countries";
|
|
14
14
|
import "localized-countries/data/fr";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import GridSection from "../../../../components/composite/grid/grid-section.js";
|
|
2
|
+
import { GridSection } from "../../../../components/composite/grid/grid-section.js";
|
|
3
3
|
import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
|
|
4
4
|
import "../../../../utils/conversionUtils.js";
|
|
5
5
|
import "../../../../utils/types/equipmentType.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid2 } from "@mui/material";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
import { useIntl } from "react-intl";
|
|
5
5
|
import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
|
|
@@ -54,8 +54,8 @@ function ConnectivityForm({
|
|
|
54
54
|
return previousValues.terminalConnected ? intl.formatMessage({ id: "connected" }) : intl.formatMessage({ id: "disconnected" });
|
|
55
55
|
}, [intl, previousValues, isEquipmentModification]);
|
|
56
56
|
const previousConnectionDirectionLabel = isEquipmentModification ? getConnectionDirectionLabel(previousValues?.connectablePosition?.connectionDirection) ?? null : null;
|
|
57
|
-
return /* @__PURE__ */ jsxs(
|
|
58
|
-
/* @__PURE__ */ jsx(
|
|
57
|
+
return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
58
|
+
/* @__PURE__ */ jsx(Grid2, { size: 8, children: /* @__PURE__ */ jsx(
|
|
59
59
|
VoltageLevelConnectivityForm,
|
|
60
60
|
{
|
|
61
61
|
id,
|
|
@@ -67,7 +67,7 @@ function ConnectivityForm({
|
|
|
67
67
|
fetchBusesOrBusbarSections
|
|
68
68
|
}
|
|
69
69
|
) }),
|
|
70
|
-
/* @__PURE__ */ jsx(
|
|
70
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, children: isEquipmentModification ? /* @__PURE__ */ jsx(
|
|
71
71
|
CheckboxNullableInput,
|
|
72
72
|
{
|
|
73
73
|
name: `${id}.${FieldConstants.CONNECTED}`,
|
|
@@ -75,7 +75,7 @@ function ConnectivityForm({
|
|
|
75
75
|
previousValue: previousConnectedField ?? void 0
|
|
76
76
|
}
|
|
77
77
|
) : /* @__PURE__ */ jsx(SwitchInput, { name: `${id}.${FieldConstants.CONNECTED}`, label: "connected" }) }),
|
|
78
|
-
/* @__PURE__ */ jsx(
|
|
78
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
|
|
79
79
|
TextInput,
|
|
80
80
|
{
|
|
81
81
|
name: `${id}.${FieldConstants.CONNECTION_NAME}`,
|
|
@@ -83,7 +83,7 @@ function ConnectivityForm({
|
|
|
83
83
|
previousValue: isEquipmentModification ? previousValues?.connectablePosition?.connectionName ?? void 0 : void 0
|
|
84
84
|
}
|
|
85
85
|
) }),
|
|
86
|
-
/* @__PURE__ */ jsx(
|
|
86
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
|
|
87
87
|
SelectInput,
|
|
88
88
|
{
|
|
89
89
|
name: `${id}.${FieldConstants.CONNECTION_DIRECTION}`,
|
|
@@ -96,7 +96,7 @@ function ConnectivityForm({
|
|
|
96
96
|
size: "small"
|
|
97
97
|
}
|
|
98
98
|
) }),
|
|
99
|
-
/* @__PURE__ */ jsx(
|
|
99
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
|
|
100
100
|
PositionForm,
|
|
101
101
|
{
|
|
102
102
|
id,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid2, IconButton } from "@mui/material";
|
|
3
3
|
import { ExploreOutlined, ExploreOffOutlined } from "@mui/icons-material";
|
|
4
4
|
import { useState, useCallback, useMemo } from "react";
|
|
5
5
|
import { useWatch } from "react-hook-form";
|
|
@@ -64,8 +64,8 @@ function PositionForm({
|
|
|
64
64
|
}
|
|
65
65
|
return "NoVoltageLevelPositionMessage";
|
|
66
66
|
}, [isNodeBuilt, voltageLevelForPositionIcon]);
|
|
67
|
-
return /* @__PURE__ */ jsxs(
|
|
68
|
-
/* @__PURE__ */ jsx(
|
|
67
|
+
return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
68
|
+
/* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
|
|
69
69
|
IntegerInput,
|
|
70
70
|
{
|
|
71
71
|
name: `${id}.${FieldConstants.CONNECTION_POSITION}`,
|
|
@@ -75,7 +75,7 @@ function PositionForm({
|
|
|
75
75
|
}
|
|
76
76
|
) }),
|
|
77
77
|
PositionDiagramPane && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
78
|
-
/* @__PURE__ */ jsx(
|
|
78
|
+
/* @__PURE__ */ jsx(Grid2, { size: 1, children: /* @__PURE__ */ jsx(
|
|
79
79
|
IconButton,
|
|
80
80
|
{
|
|
81
81
|
...isNodeBuilt && voltageLevelForPositionIcon && { onClick: handleClickOpenDiagramPane },
|