@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/features/network-modifications/generator/modification/GeneratorDialogTabsContent.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Box,
|
|
2
|
+
import { Box, Grid2 } from "@mui/material";
|
|
3
3
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
4
4
|
import { useWatch } from "react-hook-form";
|
|
5
5
|
import { GeneratorDialogTab } from "./generatorTabs.utils.js";
|
|
@@ -37,7 +37,7 @@ import "react-resizable-panels";
|
|
|
37
37
|
import "react-papaparse";
|
|
38
38
|
import "../../common/properties/propertyUtils.js";
|
|
39
39
|
import { PowerMeasurementsForm } from "../../common/measurements/PowerMeasurementsForm.js";
|
|
40
|
-
import GridSection from "../../../../components/composite/grid/grid-section.js";
|
|
40
|
+
import { GridSection } from "../../../../components/composite/grid/grid-section.js";
|
|
41
41
|
import "react-dom";
|
|
42
42
|
import "autosuggest-highlight/match";
|
|
43
43
|
import "autosuggest-highlight/parse";
|
|
@@ -52,7 +52,7 @@ import "react-querybuilder";
|
|
|
52
52
|
import "uuid";
|
|
53
53
|
import "../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js";
|
|
54
54
|
import "../../../../components/composite/filter/utils/filterFormUtils.js";
|
|
55
|
-
import GridItem from "../../../../components/composite/grid/grid-item.js";
|
|
55
|
+
import { GridItem } from "../../../../components/composite/grid/grid-item.js";
|
|
56
56
|
import "@react-querybuilder/material";
|
|
57
57
|
import "../../../../components/composite/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
58
58
|
import "../../../../components/composite/reactQueryBuilder/PropertyValueEditor.js";
|
|
@@ -215,7 +215,7 @@ function GeneratorDialogTabsContent({
|
|
|
215
215
|
isModification: true
|
|
216
216
|
}
|
|
217
217
|
),
|
|
218
|
-
/* @__PURE__ */ jsxs(
|
|
218
|
+
/* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, paddingTop: 2, children: [
|
|
219
219
|
/* @__PURE__ */ jsx(Box, { sx: { width: "100%" } }),
|
|
220
220
|
/* @__PURE__ */ jsx(
|
|
221
221
|
GridItem,
|
|
@@ -235,16 +235,16 @@ function GeneratorDialogTabsContent({
|
|
|
235
235
|
}
|
|
236
236
|
)
|
|
237
237
|
] }),
|
|
238
|
-
/* @__PURE__ */ jsx(
|
|
238
|
+
/* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, children: /* @__PURE__ */ jsxs(Grid2, { size: 12, children: [
|
|
239
239
|
/* @__PURE__ */ jsx("h3", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Limits" }) }),
|
|
240
240
|
/* @__PURE__ */ jsx("h4", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "ActiveLimits" }) })
|
|
241
241
|
] }) }),
|
|
242
|
-
/* @__PURE__ */ jsxs(
|
|
242
|
+
/* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
243
243
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: minimumActivePowerField }),
|
|
244
244
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: maximumActivePowerField }),
|
|
245
245
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: ratedNominalPowerField })
|
|
246
246
|
] }),
|
|
247
|
-
/* @__PURE__ */ jsx(
|
|
247
|
+
/* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(Grid2, { size: 12, children: /* @__PURE__ */ jsx("h4", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "ReactiveLimits" }) }) }) }),
|
|
248
248
|
/* @__PURE__ */ jsx(
|
|
249
249
|
ReactiveLimitsForm,
|
|
250
250
|
{
|
|
@@ -258,10 +258,10 @@ function GeneratorDialogTabsContent({
|
|
|
258
258
|
/* @__PURE__ */ jsx(GridSection, { title: "ShortCircuit" }),
|
|
259
259
|
/* @__PURE__ */ jsx(ShortCircuitForm, { previousValues: generatorToModify?.generatorShortCircuit }),
|
|
260
260
|
/* @__PURE__ */ jsx(GridSection, { title: "GenerationDispatch" }),
|
|
261
|
-
/* @__PURE__ */ jsxs(
|
|
261
|
+
/* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
262
262
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: plannedActivePowerSetPointField }),
|
|
263
263
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: marginalCostField }),
|
|
264
|
-
/* @__PURE__ */ jsxs(
|
|
264
|
+
/* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
265
265
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: plannedOutageRateField }),
|
|
266
266
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: forcedOutageRateField })
|
|
267
267
|
] })
|
package/dist/features/network-modifications/generator/modification/GeneratorModificationForm.js
CHANGED
|
@@ -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 { GeneratorDialogTab, GENERATOR_TAB_FIELDS } from "./generatorTabs.utils.js";
|
|
5
5
|
import { GeneratorDialogHeader } from "./GeneratorDialogHeader.js";
|
|
@@ -23,9 +23,9 @@ function GeneratorModificationForm({
|
|
|
23
23
|
GeneratorDialogTab.CONNECTIVITY_TAB
|
|
24
24
|
);
|
|
25
25
|
const equipmentId = useWatch({ name: FieldConstants.EQUIPMENT_ID });
|
|
26
|
-
return /* @__PURE__ */ jsxs(
|
|
27
|
-
/* @__PURE__ */ jsx(
|
|
28
|
-
/* @__PURE__ */ jsx(
|
|
26
|
+
return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
|
|
27
|
+
/* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(GeneratorDialogHeader, { generatorToModify, equipmentId }) }),
|
|
28
|
+
/* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
|
|
29
29
|
GeneratorDialogTabs,
|
|
30
30
|
{
|
|
31
31
|
tabIndex,
|
|
@@ -33,7 +33,7 @@ function GeneratorModificationForm({
|
|
|
33
33
|
setTabIndex
|
|
34
34
|
}
|
|
35
35
|
) }),
|
|
36
|
-
/* @__PURE__ */ jsx(
|
|
36
|
+
/* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
|
|
37
37
|
GeneratorDialogTabsContent,
|
|
38
38
|
{
|
|
39
39
|
tabIndex,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { TextField,
|
|
2
|
+
import { TextField, Grid2 } from "@mui/material";
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
4
|
import { useWatch } from "react-hook-form";
|
|
5
5
|
import { filledTextField } from "../../common/form.utils.js";
|
|
@@ -103,10 +103,10 @@ function LoadDialogHeader({ loadToModify, isModification = false }) {
|
|
|
103
103
|
}) : void 0
|
|
104
104
|
}
|
|
105
105
|
);
|
|
106
|
-
return /* @__PURE__ */ jsxs(
|
|
107
|
-
/* @__PURE__ */ jsx(
|
|
108
|
-
/* @__PURE__ */ jsx(
|
|
109
|
-
/* @__PURE__ */ jsx(
|
|
106
|
+
return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
107
|
+
/* @__PURE__ */ jsx(Grid2, { size: "grow", children: loadIdField }),
|
|
108
|
+
/* @__PURE__ */ jsx(Grid2, { size: "grow", children: loadNameField }),
|
|
109
|
+
/* @__PURE__ */ jsx(Grid2, { size: "grow", children: loadTypeField })
|
|
110
110
|
] });
|
|
111
111
|
}
|
|
112
112
|
export {
|
|
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { Box } from "@mui/material";
|
|
3
3
|
import { LoadDialogTab } from "./load.utils.js";
|
|
4
4
|
import { PowerMeasurementsForm } from "../../common/measurements/PowerMeasurementsForm.js";
|
|
5
|
-
import GridSection from "../../../../components/composite/grid/grid-section.js";
|
|
5
|
+
import { GridSection } from "../../../../components/composite/grid/grid-section.js";
|
|
6
6
|
import { ConnectivityForm } from "../../common/connectivity/ConnectivityForm.js";
|
|
7
7
|
import { PropertiesForm } from "../../common/properties/PropertiesForm.js";
|
|
8
8
|
import { SetPointsForm } from "../../common/setpoints/SetPointsForm.js";
|
|
@@ -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 { LoadDialogTab, LOAD_TAB_FIELDS } from "./load.utils.js";
|
|
4
4
|
import { LoadDialogHeader } from "./LoadDialogHeader.js";
|
|
5
5
|
import { LoadDialogTabs } from "./LoadDialogTabs.js";
|
|
@@ -16,9 +16,9 @@ function LoadForm({
|
|
|
16
16
|
LOAD_TAB_FIELDS,
|
|
17
17
|
LoadDialogTab.CONNECTIVITY_TAB
|
|
18
18
|
);
|
|
19
|
-
return /* @__PURE__ */ jsxs(
|
|
20
|
-
/* @__PURE__ */ jsx(
|
|
21
|
-
/* @__PURE__ */ jsx(
|
|
19
|
+
return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
|
|
20
|
+
/* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(LoadDialogHeader, { loadToModify, isModification }) }),
|
|
21
|
+
/* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
|
|
22
22
|
LoadDialogTabs,
|
|
23
23
|
{
|
|
24
24
|
tabIndex,
|
|
@@ -27,7 +27,7 @@ function LoadForm({
|
|
|
27
27
|
isModification
|
|
28
28
|
}
|
|
29
29
|
) }),
|
|
30
|
-
/* @__PURE__ */ jsx(
|
|
30
|
+
/* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(
|
|
31
31
|
LoadDialogTabsContent,
|
|
32
32
|
{
|
|
33
33
|
tabIndex,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid2, Box } from "@mui/material";
|
|
3
3
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
4
4
|
import { useMemo, useCallback, useEffect } from "react";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
@@ -173,19 +173,19 @@ function CharacteristicsForm({ previousValues, isModification = false }) {
|
|
|
173
173
|
}
|
|
174
174
|
);
|
|
175
175
|
const characteristicsChoiceField = /* @__PURE__ */ jsx(RadioInput, { name: FieldConstants.CHARACTERISTICS_CHOICE, options: Object.values(CHARACTERISTICS_CHOICES) });
|
|
176
|
-
return /* @__PURE__ */ jsxs(
|
|
177
|
-
/* @__PURE__ */ jsx(
|
|
178
|
-
/* @__PURE__ */ jsx(
|
|
179
|
-
/* @__PURE__ */ jsx(
|
|
180
|
-
characteristicsChoice === CHARACTERISTICS_CHOICES.SUSCEPTANCE.id && /* @__PURE__ */ jsxs(
|
|
181
|
-
/* @__PURE__ */ jsx(
|
|
182
|
-
/* @__PURE__ */ jsx(
|
|
176
|
+
return /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
177
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, children: maximumSectionCountField }),
|
|
178
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, children: sectionCountField }),
|
|
179
|
+
/* @__PURE__ */ jsx(Grid2, { size: 12, children: characteristicsChoiceField }),
|
|
180
|
+
characteristicsChoice === CHARACTERISTICS_CHOICES.SUSCEPTANCE.id && /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
181
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, children: maxSusceptanceField }),
|
|
182
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, children: switchedOnSusceptanceField })
|
|
183
183
|
] }),
|
|
184
|
-
characteristicsChoice === CHARACTERISTICS_CHOICES.Q_AT_NOMINAL_V.id && /* @__PURE__ */ jsxs(
|
|
185
|
-
/* @__PURE__ */ jsx(
|
|
184
|
+
characteristicsChoice === CHARACTERISTICS_CHOICES.Q_AT_NOMINAL_V.id && /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
185
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, children: shuntCompensatorTypeField }),
|
|
186
186
|
/* @__PURE__ */ jsx(Box, { sx: { width: "100%" } }),
|
|
187
|
-
/* @__PURE__ */ jsx(
|
|
188
|
-
/* @__PURE__ */ jsx(
|
|
187
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, children: maxQAtNominalVField }),
|
|
188
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, children: switchedOnMaxQAtNominalVField })
|
|
189
189
|
] })
|
|
190
190
|
] });
|
|
191
191
|
}
|
package/dist/features/network-modifications/shunt-compensator/common/characteristicsForm.utils.d.ts
CHANGED
|
@@ -7,19 +7,19 @@
|
|
|
7
7
|
export declare const getCharacteristicsFormValidationSchema: (isModification: boolean) => {
|
|
8
8
|
maxQAtNominalV: import('yup').NumberSchema<number | null | undefined, import('yup').AnyObject, null, "d">;
|
|
9
9
|
maxSusceptance: import('yup').NumberSchema<number | null | undefined, import('yup').AnyObject, null, "d">;
|
|
10
|
-
maximumSectionCount: import('yup').NumberSchema<number
|
|
11
|
-
sectionCount: import('yup').NumberSchema<number
|
|
12
|
-
switchedOnQAtNominalV: import('yup').NumberSchema<number |
|
|
13
|
-
switchedOnSusceptance: import('yup').NumberSchema<number |
|
|
10
|
+
maximumSectionCount: import('yup').NumberSchema<number, import('yup').AnyObject, undefined, "">;
|
|
11
|
+
sectionCount: import('yup').NumberSchema<number, import('yup').AnyObject, undefined, "">;
|
|
12
|
+
switchedOnQAtNominalV: import('yup').NumberSchema<import('yup').Maybe<number | undefined>, import('yup').AnyObject, undefined, "">;
|
|
13
|
+
switchedOnSusceptance: import('yup').NumberSchema<import('yup').Maybe<number | undefined>, import('yup').AnyObject, undefined, "">;
|
|
14
14
|
characteristicsChoice: import('yup').StringSchema<string, import('yup').AnyObject, undefined, "">;
|
|
15
15
|
shuntCompensatorType: import('yup').StringSchema<string | null | undefined, import('yup').AnyObject, null, "d">;
|
|
16
16
|
} | {
|
|
17
17
|
maxQAtNominalV: import('yup').NumberSchema<number | null | undefined, import('yup').AnyObject, null, "d">;
|
|
18
18
|
maxSusceptance: import('yup').NumberSchema<number | null | undefined, import('yup').AnyObject, null, "d">;
|
|
19
|
-
maximumSectionCount: import('yup').NumberSchema<number, import('yup').AnyObject,
|
|
20
|
-
sectionCount: import('yup').NumberSchema<number, import('yup').AnyObject,
|
|
21
|
-
switchedOnQAtNominalV: import('yup').NumberSchema<
|
|
22
|
-
switchedOnSusceptance: import('yup').NumberSchema<
|
|
19
|
+
maximumSectionCount: import('yup').NumberSchema<number | null | undefined, import('yup').AnyObject, null, "d">;
|
|
20
|
+
sectionCount: import('yup').NumberSchema<number | null | undefined, import('yup').AnyObject, null, "d">;
|
|
21
|
+
switchedOnQAtNominalV: import('yup').NumberSchema<number | null | undefined, import('yup').AnyObject, undefined, "">;
|
|
22
|
+
switchedOnSusceptance: import('yup').NumberSchema<number | null | undefined, import('yup').AnyObject, undefined, "">;
|
|
23
23
|
characteristicsChoice: import('yup').StringSchema<string, import('yup').AnyObject, undefined, "">;
|
|
24
24
|
shuntCompensatorType: import('yup').StringSchema<string | null | undefined, import('yup').AnyObject, null, "d">;
|
|
25
25
|
};
|
|
@@ -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 "@mui/icons-material";
|
|
4
4
|
import "react-intl";
|
|
5
5
|
import "../../../../components/ui/overflowableText/OverflowableText.js";
|
|
@@ -31,7 +31,7 @@ import "../../../../components/ui/snackbarProvider/SnackbarProvider.js";
|
|
|
31
31
|
import "mui-nested-menu";
|
|
32
32
|
import "react-resizable-panels";
|
|
33
33
|
import "react-papaparse";
|
|
34
|
-
import GridSection from "../../../../components/composite/grid/grid-section.js";
|
|
34
|
+
import { GridSection } from "../../../../components/composite/grid/grid-section.js";
|
|
35
35
|
import { ConnectivityForm } from "../../common/connectivity/ConnectivityForm.js";
|
|
36
36
|
import { PropertiesForm } from "../../common/properties/PropertiesForm.js";
|
|
37
37
|
import { filledTextField } from "../../common/form.utils.js";
|
|
@@ -70,9 +70,9 @@ function ShuntCompensatorCreationForm({
|
|
|
70
70
|
fetchBusesOrBusbarSections,
|
|
71
71
|
PositionDiagramPane
|
|
72
72
|
}) {
|
|
73
|
-
return /* @__PURE__ */ jsxs(
|
|
74
|
-
/* @__PURE__ */ jsx(
|
|
75
|
-
/* @__PURE__ */ jsx(
|
|
73
|
+
return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
|
|
74
|
+
/* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
75
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
|
|
76
76
|
TextInput,
|
|
77
77
|
{
|
|
78
78
|
name: FieldConstants.EQUIPMENT_ID,
|
|
@@ -80,11 +80,11 @@ function ShuntCompensatorCreationForm({
|
|
|
80
80
|
formProps: { autoFocus: true, ...filledTextField }
|
|
81
81
|
}
|
|
82
82
|
) }),
|
|
83
|
-
/* @__PURE__ */ jsx(
|
|
83
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.EQUIPMENT_NAME, label: "Name", formProps: filledTextField }) })
|
|
84
84
|
] }) }),
|
|
85
|
-
/* @__PURE__ */ jsxs(
|
|
85
|
+
/* @__PURE__ */ jsxs(Grid2, { children: [
|
|
86
86
|
/* @__PURE__ */ jsx(GridSection, { title: "Connectivity" }),
|
|
87
|
-
/* @__PURE__ */ jsx(
|
|
87
|
+
/* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(Grid2, { size: 12, children: /* @__PURE__ */ jsx(
|
|
88
88
|
ConnectivityForm,
|
|
89
89
|
{
|
|
90
90
|
voltageLevelOptions,
|
|
@@ -93,11 +93,11 @@ function ShuntCompensatorCreationForm({
|
|
|
93
93
|
}
|
|
94
94
|
) }) })
|
|
95
95
|
] }),
|
|
96
|
-
/* @__PURE__ */ jsxs(
|
|
96
|
+
/* @__PURE__ */ jsxs(Grid2, { children: [
|
|
97
97
|
/* @__PURE__ */ jsx(GridSection, { title: "Characteristics" }),
|
|
98
|
-
/* @__PURE__ */ jsx(
|
|
98
|
+
/* @__PURE__ */ jsx(Grid2, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(Grid2, { size: 12, children: /* @__PURE__ */ jsx(CharacteristicsForm, { isModification: false }) }) })
|
|
99
99
|
] }),
|
|
100
|
-
/* @__PURE__ */ jsx(
|
|
100
|
+
/* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "shuntCompensator" }) })
|
|
101
101
|
] });
|
|
102
102
|
}
|
|
103
103
|
export {
|
|
@@ -4,10 +4,10 @@ import { ShuntCompensatorCreationDto } from './shuntCompensatorCreation.types';
|
|
|
4
4
|
export declare const shuntCompensatorCreationFormSchema: import('yup').ObjectSchema<NonNullable<({
|
|
5
5
|
maxQAtNominalV: number | null;
|
|
6
6
|
maxSusceptance: number | null;
|
|
7
|
-
maximumSectionCount: number
|
|
8
|
-
sectionCount: number
|
|
9
|
-
switchedOnQAtNominalV: number |
|
|
10
|
-
switchedOnSusceptance: number |
|
|
7
|
+
maximumSectionCount: number;
|
|
8
|
+
sectionCount: number;
|
|
9
|
+
switchedOnQAtNominalV: import('yup').Maybe<number | undefined>;
|
|
10
|
+
switchedOnSusceptance: import('yup').Maybe<number | undefined>;
|
|
11
11
|
characteristicsChoice: string;
|
|
12
12
|
shuntCompensatorType: string | null;
|
|
13
13
|
equipmentID: string;
|
|
@@ -27,10 +27,10 @@ export declare const shuntCompensatorCreationFormSchema: import('yup').ObjectSch
|
|
|
27
27
|
} | {
|
|
28
28
|
maxQAtNominalV: number | null;
|
|
29
29
|
maxSusceptance: number | null;
|
|
30
|
-
maximumSectionCount: number;
|
|
31
|
-
sectionCount: number;
|
|
32
|
-
switchedOnQAtNominalV:
|
|
33
|
-
switchedOnSusceptance:
|
|
30
|
+
maximumSectionCount: number | null;
|
|
31
|
+
sectionCount: number | null;
|
|
32
|
+
switchedOnQAtNominalV: number | null | undefined;
|
|
33
|
+
switchedOnSusceptance: number | null | undefined;
|
|
34
34
|
characteristicsChoice: string;
|
|
35
35
|
shuntCompensatorType: string | null;
|
|
36
36
|
equipmentID: string;
|
|
@@ -58,8 +58,8 @@ export declare const shuntCompensatorCreationFormSchema: import('yup').ObjectSch
|
|
|
58
58
|
}>, import('yup').AnyObject, {
|
|
59
59
|
maxQAtNominalV: null;
|
|
60
60
|
maxSusceptance: null;
|
|
61
|
-
maximumSectionCount:
|
|
62
|
-
sectionCount:
|
|
61
|
+
maximumSectionCount: undefined;
|
|
62
|
+
sectionCount: undefined;
|
|
63
63
|
switchedOnQAtNominalV: undefined;
|
|
64
64
|
switchedOnSusceptance: undefined;
|
|
65
65
|
characteristicsChoice: undefined;
|
|
@@ -82,8 +82,8 @@ export declare const shuntCompensatorCreationFormSchema: import('yup').ObjectSch
|
|
|
82
82
|
} | {
|
|
83
83
|
maxQAtNominalV: null;
|
|
84
84
|
maxSusceptance: null;
|
|
85
|
-
maximumSectionCount:
|
|
86
|
-
sectionCount:
|
|
85
|
+
maximumSectionCount: null;
|
|
86
|
+
sectionCount: null;
|
|
87
87
|
switchedOnQAtNominalV: undefined;
|
|
88
88
|
switchedOnSusceptance: undefined;
|
|
89
89
|
characteristicsChoice: undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Grid2, TextField } from "@mui/material";
|
|
2
|
+
import { Stack, Grid2, TextField } from "@mui/material";
|
|
3
3
|
import { useWatch } from "react-hook-form";
|
|
4
4
|
import "@mui/icons-material";
|
|
5
5
|
import "react-intl";
|
|
@@ -31,7 +31,7 @@ import "../../../../components/ui/snackbarProvider/SnackbarProvider.js";
|
|
|
31
31
|
import "mui-nested-menu";
|
|
32
32
|
import "react-resizable-panels";
|
|
33
33
|
import "react-papaparse";
|
|
34
|
-
import GridSection from "../../../../components/composite/grid/grid-section.js";
|
|
34
|
+
import { GridSection } from "../../../../components/composite/grid/grid-section.js";
|
|
35
35
|
import { ConnectivityForm } from "../../common/connectivity/ConnectivityForm.js";
|
|
36
36
|
import { PropertiesForm } from "../../common/properties/PropertiesForm.js";
|
|
37
37
|
import { PowerMeasurementsForm } from "../../common/measurements/PowerMeasurementsForm.js";
|
|
@@ -73,7 +73,7 @@ function ShuntCompensatorModificationForm({
|
|
|
73
73
|
PositionDiagramPane
|
|
74
74
|
}) {
|
|
75
75
|
const equipmentId = useWatch({ name: FieldConstants.EQUIPMENT_ID });
|
|
76
|
-
return /* @__PURE__ */ jsxs(
|
|
76
|
+
return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
|
|
77
77
|
/* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
78
78
|
/* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
|
|
79
79
|
TextField,
|
|
@@ -4,10 +4,10 @@ import { ShuntCompensatorModificationDto } from './shuntCompensatorModification.
|
|
|
4
4
|
export declare const shuntCompensatorModificationFormSchema: import('yup').ObjectSchema<NonNullable<({
|
|
5
5
|
maxQAtNominalV: number | null;
|
|
6
6
|
maxSusceptance: number | null;
|
|
7
|
-
maximumSectionCount: number
|
|
8
|
-
sectionCount: number
|
|
9
|
-
switchedOnQAtNominalV: number |
|
|
10
|
-
switchedOnSusceptance: number |
|
|
7
|
+
maximumSectionCount: number;
|
|
8
|
+
sectionCount: number;
|
|
9
|
+
switchedOnQAtNominalV: import('yup').Maybe<number | undefined>;
|
|
10
|
+
switchedOnSusceptance: import('yup').Maybe<number | undefined>;
|
|
11
11
|
characteristicsChoice: string;
|
|
12
12
|
shuntCompensatorType: string | null;
|
|
13
13
|
equipmentID: string;
|
|
@@ -37,10 +37,10 @@ export declare const shuntCompensatorModificationFormSchema: import('yup').Objec
|
|
|
37
37
|
} | {
|
|
38
38
|
maxQAtNominalV: number | null;
|
|
39
39
|
maxSusceptance: number | null;
|
|
40
|
-
maximumSectionCount: number;
|
|
41
|
-
sectionCount: number;
|
|
42
|
-
switchedOnQAtNominalV:
|
|
43
|
-
switchedOnSusceptance:
|
|
40
|
+
maximumSectionCount: number | null;
|
|
41
|
+
sectionCount: number | null;
|
|
42
|
+
switchedOnQAtNominalV: number | null | undefined;
|
|
43
|
+
switchedOnSusceptance: number | null | undefined;
|
|
44
44
|
characteristicsChoice: string;
|
|
45
45
|
shuntCompensatorType: string | null;
|
|
46
46
|
equipmentID: string;
|
|
@@ -78,8 +78,8 @@ export declare const shuntCompensatorModificationFormSchema: import('yup').Objec
|
|
|
78
78
|
}>, import('yup').AnyObject, {
|
|
79
79
|
maxQAtNominalV: null;
|
|
80
80
|
maxSusceptance: null;
|
|
81
|
-
maximumSectionCount:
|
|
82
|
-
sectionCount:
|
|
81
|
+
maximumSectionCount: undefined;
|
|
82
|
+
sectionCount: undefined;
|
|
83
83
|
switchedOnQAtNominalV: undefined;
|
|
84
84
|
switchedOnSusceptance: undefined;
|
|
85
85
|
characteristicsChoice: undefined;
|
|
@@ -108,8 +108,8 @@ export declare const shuntCompensatorModificationFormSchema: import('yup').Objec
|
|
|
108
108
|
} | {
|
|
109
109
|
maxQAtNominalV: null;
|
|
110
110
|
maxSusceptance: null;
|
|
111
|
-
maximumSectionCount:
|
|
112
|
-
sectionCount:
|
|
111
|
+
maximumSectionCount: null;
|
|
112
|
+
sectionCount: null;
|
|
113
113
|
switchedOnQAtNominalV: undefined;
|
|
114
114
|
switchedOnSusceptance: undefined;
|
|
115
115
|
characteristicsChoice: undefined;
|
|
@@ -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 "@mui/icons-material";
|
|
4
4
|
import "react-intl";
|
|
5
5
|
import "../../../../components/ui/overflowableText/OverflowableText.js";
|
|
@@ -64,11 +64,11 @@ import "../../../../components/composite/report/report-treeview/treeview-item.js
|
|
|
64
64
|
import "../../../../components/composite/report/report-viewer/context/report-viewer-context.js";
|
|
65
65
|
import "../../common/regulatingTerminal/RegulatingTerminalForm.js";
|
|
66
66
|
function SubstationCreationForm() {
|
|
67
|
-
return /* @__PURE__ */ jsxs(
|
|
68
|
-
/* @__PURE__ */ jsx(
|
|
69
|
-
/* @__PURE__ */ jsx(
|
|
70
|
-
/* @__PURE__ */ jsx(
|
|
71
|
-
/* @__PURE__ */ jsx(
|
|
67
|
+
return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
|
|
68
|
+
/* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
69
|
+
/* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.EQUIPMENT_ID, label: "ID", formProps: filledTextField }) }),
|
|
70
|
+
/* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.EQUIPMENT_NAME, label: "Name", formProps: filledTextField }) }),
|
|
71
|
+
/* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
|
|
72
72
|
CountrySelectionInput,
|
|
73
73
|
{
|
|
74
74
|
name: FieldConstants.COUNTRY,
|
|
@@ -78,7 +78,7 @@ function SubstationCreationForm() {
|
|
|
78
78
|
}
|
|
79
79
|
) })
|
|
80
80
|
] }) }),
|
|
81
|
-
/* @__PURE__ */ jsx(
|
|
81
|
+
/* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "substation" }) })
|
|
82
82
|
] });
|
|
83
83
|
}
|
|
84
84
|
export {
|
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 {
|
|
2
|
+
import { Stack, Grid2, 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";
|
|
@@ -65,9 +65,9 @@ function SubstationModificationForm({ substationToModify }) {
|
|
|
65
65
|
const { locale } = useIntl();
|
|
66
66
|
const { translate } = useLocalizedCountries(locale);
|
|
67
67
|
const equipmentId = useWatch({ name: FieldConstants.EQUIPMENT_ID });
|
|
68
|
-
return /* @__PURE__ */ jsxs(
|
|
69
|
-
/* @__PURE__ */ jsx(
|
|
70
|
-
/* @__PURE__ */ jsx(
|
|
68
|
+
return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
|
|
69
|
+
/* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
70
|
+
/* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
|
|
71
71
|
TextField,
|
|
72
72
|
{
|
|
73
73
|
size: "small",
|
|
@@ -81,7 +81,7 @@ function SubstationModificationForm({ substationToModify }) {
|
|
|
81
81
|
...filledTextField
|
|
82
82
|
}
|
|
83
83
|
) }),
|
|
84
|
-
/* @__PURE__ */ jsx(
|
|
84
|
+
/* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
|
|
85
85
|
TextInput,
|
|
86
86
|
{
|
|
87
87
|
name: FieldConstants.EQUIPMENT_NAME,
|
|
@@ -91,7 +91,7 @@ function SubstationModificationForm({ substationToModify }) {
|
|
|
91
91
|
clearable: true
|
|
92
92
|
}
|
|
93
93
|
) }),
|
|
94
|
-
/* @__PURE__ */ jsx(
|
|
94
|
+
/* @__PURE__ */ jsx(Grid2, { size: "grow", children: /* @__PURE__ */ jsx(
|
|
95
95
|
CountrySelectionInput,
|
|
96
96
|
{
|
|
97
97
|
name: FieldConstants.COUNTRY,
|
|
@@ -102,7 +102,7 @@ function SubstationModificationForm({ substationToModify }) {
|
|
|
102
102
|
}
|
|
103
103
|
) })
|
|
104
104
|
] }) }),
|
|
105
|
-
/* @__PURE__ */ jsx(
|
|
105
|
+
/* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "substation", isModification: true }) })
|
|
106
106
|
] });
|
|
107
107
|
}
|
|
108
108
|
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 {
|
|
2
|
+
import { Stack, Grid2, 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";
|
|
@@ -78,9 +78,9 @@ function VoltageLevelCreationForm({
|
|
|
78
78
|
VoltageLevelTab.SUBSTATION_TAB
|
|
79
79
|
);
|
|
80
80
|
const watchHideBusBarSection = useWatch({ name: FieldConstants.HIDE_BUS_BAR_SECTION });
|
|
81
|
-
return /* @__PURE__ */ jsxs(
|
|
82
|
-
/* @__PURE__ */ jsx(
|
|
83
|
-
/* @__PURE__ */ jsx(
|
|
81
|
+
return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
|
|
82
|
+
/* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsxs(Grid2, { container: true, spacing: 2, children: [
|
|
83
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
|
|
84
84
|
TextInput,
|
|
85
85
|
{
|
|
86
86
|
name: FieldConstants.EQUIPMENT_ID,
|
|
@@ -88,9 +88,9 @@ function VoltageLevelCreationForm({
|
|
|
88
88
|
formProps: { autoFocus: true, ...filledTextField }
|
|
89
89
|
}
|
|
90
90
|
) }),
|
|
91
|
-
/* @__PURE__ */ jsx(
|
|
91
|
+
/* @__PURE__ */ jsx(Grid2, { size: 4, children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.EQUIPMENT_NAME, label: "Name", formProps: filledTextField }) })
|
|
92
92
|
] }) }),
|
|
93
|
-
/* @__PURE__ */ jsx(
|
|
93
|
+
/* @__PURE__ */ jsx(Grid2, { children: /* @__PURE__ */ jsxs(
|
|
94
94
|
Tabs,
|
|
95
95
|
{
|
|
96
96
|
value: tabIndex,
|
|
@@ -132,7 +132,7 @@ function VoltageLevelCreationForm({
|
|
|
132
132
|
]
|
|
133
133
|
}
|
|
134
134
|
) }),
|
|
135
|
-
/* @__PURE__ */ jsxs(
|
|
135
|
+
/* @__PURE__ */ jsxs(Grid2, { children: [
|
|
136
136
|
/* @__PURE__ */ jsx(Box, { hidden: tabIndex !== VoltageLevelTab.SUBSTATION_TAB, children: /* @__PURE__ */ jsx(
|
|
137
137
|
SubstationTab,
|
|
138
138
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useWatch } from "react-hook-form";
|
|
3
|
-
import {
|
|
4
|
-
import GridSection from "../../../../../../components/composite/grid/grid-section.js";
|
|
3
|
+
import { Grid2 } from "@mui/material";
|
|
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";
|
|
7
7
|
import "../../../../../../utils/conversionUtils.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(Grid2, { container: true, spacing: 2, children: [
|
|
41
|
+
!watchHideNominalVoltage && /* @__PURE__ */ jsx(Grid2, { 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(Grid2, { 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(Grid2, { 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(Grid2, { container: true, spacing: 2, children: [
|
|
68
|
+
/* @__PURE__ */ jsx(Grid2, { 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(Grid2, { size: 4, children: /* @__PURE__ */ jsx(
|
|
77
77
|
FloatInput,
|
|
78
78
|
{
|
|
79
79
|
name: FieldConstants.HIGH_SHORT_CIRCUIT_CURRENT_LIMIT,
|