@gridsuite/commons-ui 0.267.0 → 0.268.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/composite/grid/grid-section.d.ts +5 -2
- package/dist/components/composite/grid/grid-section.js +56 -4
- package/dist/components/ui/reactHookForm/booleans/BooleanInput.js +1 -1
- package/dist/features/common/index.d.ts +7 -0
- package/dist/features/common/index.js +4 -0
- package/dist/features/common/renderTable-ExportCsv.d.ts +18 -0
- package/dist/features/common/renderTable-ExportCsv.js +136 -0
- package/dist/features/index.d.ts +5 -0
- package/dist/features/index.js +43 -2
- package/dist/features/network-modifications/index.d.ts +1 -0
- package/dist/features/network-modifications/index.js +33 -1
- package/dist/features/network-modifications/static-var-compensator/common/constants.d.ts +20 -0
- package/dist/features/network-modifications/static-var-compensator/common/constants.js +9 -0
- package/dist/features/network-modifications/static-var-compensator/common/index.d.ts +13 -0
- package/dist/features/network-modifications/static-var-compensator/common/index.js +20 -0
- package/dist/features/network-modifications/static-var-compensator/common/set-points-limits-form-utils.d.ts +91 -0
- package/dist/features/network-modifications/static-var-compensator/common/set-points-limits-form-utils.js +166 -0
- package/dist/features/network-modifications/static-var-compensator/common/set-points-limits-form.d.ts +8 -0
- package/dist/features/network-modifications/static-var-compensator/common/set-points-limits-form.js +200 -0
- package/dist/features/network-modifications/static-var-compensator/common/standby-automaton-form-utils.d.ts +66 -0
- package/dist/features/network-modifications/static-var-compensator/common/standby-automaton-form-utils.js +149 -0
- package/dist/features/network-modifications/static-var-compensator/common/standby-automaton-form.d.ts +7 -0
- package/dist/features/network-modifications/static-var-compensator/common/standby-automaton-form.js +153 -0
- package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-dialog-header.d.ts +7 -0
- package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-dialog-header.js +72 -0
- package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-dialog-tabs.d.ts +7 -0
- package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-dialog-tabs.js +44 -0
- package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-tab-utils.d.ts +8 -0
- package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-tab-utils.js +34 -0
- package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-tabs-content.d.ts +9 -0
- package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-tabs-content.js +100 -0
- package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator.types.d.ts +68 -0
- package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator.types.js +1 -0
- package/dist/features/network-modifications/static-var-compensator/common/susceptance-area.d.ts +7 -0
- package/dist/features/network-modifications/static-var-compensator/common/susceptance-area.js +161 -0
- package/dist/features/network-modifications/static-var-compensator/creation/index.d.ts +9 -0
- package/dist/features/network-modifications/static-var-compensator/creation/index.js +9 -0
- package/dist/features/network-modifications/static-var-compensator/creation/static-var-compensator-creation-form.d.ts +8 -0
- package/dist/features/network-modifications/static-var-compensator/creation/static-var-compensator-creation-form.js +105 -0
- package/dist/features/network-modifications/static-var-compensator/creation/static-var-compensator-creation-utils.d.ts +114 -0
- package/dist/features/network-modifications/static-var-compensator/creation/static-var-compensator-creation-utils.js +189 -0
- package/dist/features/network-modifications/static-var-compensator/creation/static-var-compensator-creation.types.d.ts +34 -0
- package/dist/features/network-modifications/static-var-compensator/creation/static-var-compensator-creation.types.js +1 -0
- package/dist/features/network-modifications/static-var-compensator/index.d.ts +8 -0
- package/dist/features/network-modifications/static-var-compensator/index.js +27 -0
- package/dist/features/network-modifications/voltageLevel/coupling-device/coupling-device-creation-form.d.ts +8 -0
- package/dist/features/network-modifications/voltageLevel/coupling-device/coupling-device-creation-form.js +153 -0
- package/dist/features/network-modifications/voltageLevel/coupling-device/coupling-device-creation-utils.d.ts +20 -0
- package/dist/features/network-modifications/voltageLevel/coupling-device/coupling-device-creation-utils.js +40 -0
- package/dist/features/network-modifications/voltageLevel/coupling-device/coupling-device-creation.types.d.ts +11 -0
- package/dist/features/network-modifications/voltageLevel/coupling-device/coupling-device-creation.types.js +1 -0
- package/dist/features/network-modifications/voltageLevel/coupling-device/index.d.ts +3 -0
- package/dist/features/network-modifications/voltageLevel/coupling-device/index.js +9 -0
- package/dist/features/network-modifications/voltageLevel/creation/index.js +1 -1
- package/dist/features/network-modifications/voltageLevel/index.d.ts +1 -0
- package/dist/features/network-modifications/voltageLevel/index.js +8 -1
- package/dist/features/network-modifications/voltageLevel/topology/CreateVoltageLevelTopologyForm.js +12 -2
- package/dist/features/network-modifications/voltageLevel/topology/voltageLevelTopologyCreation.types.d.ts +1 -1
- package/dist/features/network-modifications/voltageLevel/topology/voltageLevelTopologyCreation.utils.d.ts +3 -3
- package/dist/features/results/constants.d.ts +7 -0
- package/dist/features/results/constants.js +4 -0
- package/dist/features/results/hooks/index.d.ts +7 -0
- package/dist/features/results/hooks/index.js +4 -0
- package/dist/features/results/hooks/useIntlResultStatusMessages.d.ts +19 -0
- package/dist/features/results/hooks/useIntlResultStatusMessages.js +23 -0
- package/dist/features/results/loadflow/index.d.ts +8 -0
- package/dist/features/results/loadflow/index.js +4 -0
- package/dist/features/results/loadflow/limit-violation-result.d.ts +2 -0
- package/dist/features/results/loadflow/limit-violation-result.js +134 -0
- package/dist/features/results/loadflow/load-flow-result.type.d.ts +29 -0
- package/dist/features/results/loadflow/load-flow-result.type.js +1 -0
- package/dist/features/results/securityanalysis/index.js +1 -2
- package/dist/features/results/securityanalysis/security-analysis-result-nmk.js +2 -1
- package/dist/features/results/securityanalysis/utils.d.ts +0 -2
- package/dist/features/results/securityanalysis/utils.js +0 -22
- package/dist/features/results/utils/index.d.ts +7 -0
- package/dist/features/results/utils/index.js +4 -0
- package/dist/features/results/utils/no-rows-message.d.ts +2 -0
- package/dist/features/results/utils/no-rows-message.js +24 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +2 -0
- package/dist/hooks/useOpenLoaderShortWait.d.ts +18 -0
- package/dist/hooks/useOpenLoaderShortWait.js +19 -0
- package/dist/index.js +46 -1
- package/dist/translations/en/networkModificationsEn.d.ts +28 -0
- package/dist/translations/en/networkModificationsEn.js +30 -1
- package/dist/translations/fr/networkModificationsFr.d.ts +28 -0
- package/dist/translations/fr/networkModificationsFr.js +30 -1
- package/dist/utils/constants/fieldConstants.d.ts +19 -1
- package/dist/utils/constants/fieldConstants.js +18 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { UUID } from 'node:crypto';
|
|
2
|
+
import { ConnectablePositionFormInfos } from '../../common';
|
|
3
|
+
import { ModificationType } from '../../../../utils';
|
|
4
|
+
import { Property } from '../../common/properties';
|
|
5
|
+
interface StandbyAutomatonInfos {
|
|
6
|
+
lowVoltageSetpoint: number | null;
|
|
7
|
+
highVoltageSetpoint: number | null;
|
|
8
|
+
lowVoltageThreshold: number | null;
|
|
9
|
+
highVoltageThreshold: number | null;
|
|
10
|
+
b0: number | null;
|
|
11
|
+
q0: number | null;
|
|
12
|
+
standby: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface StaticVarCompensatorDto {
|
|
15
|
+
type: ModificationType.STATIC_VAR_COMPENSATOR_CREATION;
|
|
16
|
+
uuid?: UUID;
|
|
17
|
+
equipmentId: string;
|
|
18
|
+
equipmentName?: string | null;
|
|
19
|
+
voltageLevelId: string | null;
|
|
20
|
+
busOrBusbarSectionId?: string | null;
|
|
21
|
+
connectionDirection?: string | null;
|
|
22
|
+
connectionName?: string | null;
|
|
23
|
+
connectionPosition?: number | null;
|
|
24
|
+
terminalConnected?: boolean | null;
|
|
25
|
+
maxSusceptance: number | null;
|
|
26
|
+
minSusceptance: number | null;
|
|
27
|
+
maxQAtNominalV: number | null;
|
|
28
|
+
minQAtNominalV: number | null;
|
|
29
|
+
regulationMode: string;
|
|
30
|
+
isRegulating: boolean;
|
|
31
|
+
voltageSetpoint: number | null;
|
|
32
|
+
reactivePowerSetpoint: number | null;
|
|
33
|
+
voltageRegulationType: string;
|
|
34
|
+
regulatingTerminalId: string | null;
|
|
35
|
+
regulatingTerminalType: string | null;
|
|
36
|
+
regulatingTerminalVlId: string | null;
|
|
37
|
+
regulatingTerminalConnectableId: string | null;
|
|
38
|
+
standbyAutomatonOn: boolean;
|
|
39
|
+
standby: boolean;
|
|
40
|
+
lowVoltageSetpoint: number | null;
|
|
41
|
+
highVoltageSetpoint: number | null;
|
|
42
|
+
lowVoltageThreshold: number | null;
|
|
43
|
+
highVoltageThreshold: number | null;
|
|
44
|
+
b0: number | null;
|
|
45
|
+
q0: number | null;
|
|
46
|
+
properties: Property[] | null;
|
|
47
|
+
}
|
|
48
|
+
export interface StaticVarCompensatorFormInfo {
|
|
49
|
+
id: string;
|
|
50
|
+
name: string;
|
|
51
|
+
voltageLevelId: string;
|
|
52
|
+
busOrBusbarSectionId: string;
|
|
53
|
+
connectablePosition: ConnectablePositionFormInfos;
|
|
54
|
+
minSusceptance: number | null;
|
|
55
|
+
maxSusceptance: number | null;
|
|
56
|
+
nominalV: number;
|
|
57
|
+
isRegulating: boolean;
|
|
58
|
+
regulationMode: string;
|
|
59
|
+
voltageSetpoint: number;
|
|
60
|
+
reactivePowerSetpoint: number;
|
|
61
|
+
regulatingTerminalConnectableId: string | null;
|
|
62
|
+
regulatingTerminalId: string | null;
|
|
63
|
+
regulatingTerminalVlId: string | null;
|
|
64
|
+
regulatingTerminalConnectableType: string;
|
|
65
|
+
standbyAutomatonInfos?: StandbyAutomatonInfos;
|
|
66
|
+
properties: Record<string, string> | undefined;
|
|
67
|
+
}
|
|
68
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/dist/features/network-modifications/static-var-compensator/common/susceptance-area.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, RTE (http://www.rte-france.com)
|
|
3
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
|
+
*/
|
|
7
|
+
export declare function SusceptanceArea(): import("react").JSX.Element;
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect } from "react";
|
|
3
|
+
import { useFormContext, useWatch } from "react-hook-form";
|
|
4
|
+
import { Grid, TextField, InputAdornment } from "@mui/material";
|
|
5
|
+
import { FormattedMessage } from "react-intl";
|
|
6
|
+
import "@mui/icons-material";
|
|
7
|
+
import "../../../../components/ui/overflowableText/OverflowableText.js";
|
|
8
|
+
import { SusceptanceAdornment, ReactivePowerAdornment } from "../../../../utils/constants/adornments.js";
|
|
9
|
+
import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
|
|
10
|
+
import "../../../../utils/conversionUtils.js";
|
|
11
|
+
import "../../../../utils/types/equipmentType.js";
|
|
12
|
+
import "localized-countries";
|
|
13
|
+
import "localized-countries/data/fr";
|
|
14
|
+
import "localized-countries/data/en";
|
|
15
|
+
import "notistack";
|
|
16
|
+
import "../../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
|
|
17
|
+
import "yup";
|
|
18
|
+
import "../../../../components/ui/treeViewFinder/TreeViewFinder.js";
|
|
19
|
+
import { FloatInput } from "../../../../components/ui/reactHookForm/numbers/FloatInput.js";
|
|
20
|
+
import "../../../../components/ui/reactHookForm/numbers/RangeInput.js";
|
|
21
|
+
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
22
|
+
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
23
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
24
|
+
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
25
|
+
import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
|
|
26
|
+
import "../../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
27
|
+
import "../../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
28
|
+
import "../../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
|
|
29
|
+
import "@hello-pangea/dnd";
|
|
30
|
+
import "../../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
31
|
+
import "../../../../components/ui/snackbarProvider/SnackbarProvider.js";
|
|
32
|
+
import "mui-nested-menu";
|
|
33
|
+
import "react-resizable-panels";
|
|
34
|
+
import "react-papaparse";
|
|
35
|
+
import "react-dom";
|
|
36
|
+
import "autosuggest-highlight/match";
|
|
37
|
+
import "autosuggest-highlight/parse";
|
|
38
|
+
import "clsx";
|
|
39
|
+
import "../../../../components/composite/filter/FilterCreationDialog.js";
|
|
40
|
+
import "../../../../components/composite/filter/HeaderFilterForm.js";
|
|
41
|
+
import "../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js";
|
|
42
|
+
import "../../../../components/composite/filter/expert/ExpertFilterForm.js";
|
|
43
|
+
import "../../../../components/composite/filter/expert/ExpertFilterEditionDialog.js";
|
|
44
|
+
import "../../../../components/composite/filter/expert/expertFilterConstants.js";
|
|
45
|
+
import "react-querybuilder";
|
|
46
|
+
import "uuid";
|
|
47
|
+
import "../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js";
|
|
48
|
+
import "../../../../components/composite/filter/utils/filterFormUtils.js";
|
|
49
|
+
import { GridItem } from "../../../../components/composite/grid/grid-item.js";
|
|
50
|
+
import "@react-querybuilder/material";
|
|
51
|
+
import "../../../../components/composite/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
52
|
+
import "../../../../components/composite/reactQueryBuilder/PropertyValueEditor.js";
|
|
53
|
+
import "../../../../components/composite/agGridTable/BottomTableButtons.js";
|
|
54
|
+
import "../../../../components/composite/agGridTable/CustomAgGridTable.js";
|
|
55
|
+
import "ag-grid-community";
|
|
56
|
+
import "../../../../components/composite/customAGGrid/customAggrid.js";
|
|
57
|
+
import "../../../../components/composite/customAGGrid/context/custom-aggrid-context.js";
|
|
58
|
+
import "mathjs";
|
|
59
|
+
import "../../../../components/composite/report/report-viewer/log-table/log-table.js";
|
|
60
|
+
import "react-window";
|
|
61
|
+
import "../../../../components/composite/report/report-treeview/treeview-item.js";
|
|
62
|
+
import "../../../../components/composite/report/report-viewer/context/report-viewer-context.js";
|
|
63
|
+
import { CHARACTERISTICS_CHOICES } from "../../shunt-compensator/common/shuntCompensator.utils.js";
|
|
64
|
+
import "../../common/properties/propertyUtils.js";
|
|
65
|
+
import "../../common/regulatingTerminal/RegulatingTerminalForm.js";
|
|
66
|
+
import "@mui/material/colors";
|
|
67
|
+
import "@mui/x-charts";
|
|
68
|
+
import "../../common/currentLimits/limitsPane.utils.js";
|
|
69
|
+
import "../../shunt-compensator/creation/shuntCompensatorCreation.utils.js";
|
|
70
|
+
import "../../shunt-compensator/modification/shuntCompensatorModification.utils.js";
|
|
71
|
+
function SusceptanceArea() {
|
|
72
|
+
const id = FieldConstants.AUTOMATON;
|
|
73
|
+
const { setValue } = useFormContext();
|
|
74
|
+
const watchChoiceAutomaton = useWatch({
|
|
75
|
+
name: `${FieldConstants.SETPOINTS_LIMITS}.${FieldConstants.CHARACTERISTICS_CHOICE}`
|
|
76
|
+
});
|
|
77
|
+
const minS = useWatch({ name: `${FieldConstants.SETPOINTS_LIMITS}.${FieldConstants.MIN_SUSCEPTANCE}` });
|
|
78
|
+
const maxS = useWatch({ name: `${FieldConstants.SETPOINTS_LIMITS}.${FieldConstants.MAX_SUSCEPTANCE}` });
|
|
79
|
+
const minQ = useWatch({ name: `${FieldConstants.SETPOINTS_LIMITS}.${FieldConstants.MIN_Q_AT_NOMINAL_V}` });
|
|
80
|
+
const maxQ = useWatch({ name: `${FieldConstants.SETPOINTS_LIMITS}.${FieldConstants.MAX_Q_AT_NOMINAL_V}` });
|
|
81
|
+
useEffect(() => {
|
|
82
|
+
setValue(`${id}.${FieldConstants.CHARACTERISTICS_CHOICE_AUTOMATON}`, watchChoiceAutomaton);
|
|
83
|
+
setValue(`${id}.${FieldConstants.MIN_Q_AUTOMATON}`, minQ);
|
|
84
|
+
setValue(`${id}.${FieldConstants.MAX_Q_AUTOMATON}`, maxQ);
|
|
85
|
+
setValue(`${id}.${FieldConstants.MIN_S_AUTOMATON}`, minS);
|
|
86
|
+
setValue(`${id}.${FieldConstants.MAX_S_AUTOMATON}`, maxS);
|
|
87
|
+
}, [setValue, id, watchChoiceAutomaton, minQ, maxQ, maxS, minS]);
|
|
88
|
+
const minSusceptanceField = /* @__PURE__ */ jsx(
|
|
89
|
+
TextField,
|
|
90
|
+
{
|
|
91
|
+
value: minS ?? "",
|
|
92
|
+
label: /* @__PURE__ */ jsx(FormattedMessage, { id: "minSusceptance" }),
|
|
93
|
+
disabled: true,
|
|
94
|
+
size: "small",
|
|
95
|
+
slotProps: {
|
|
96
|
+
input: {
|
|
97
|
+
endAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "start", children: "S" })
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
);
|
|
102
|
+
const maxSusceptanceField = /* @__PURE__ */ jsx(
|
|
103
|
+
TextField,
|
|
104
|
+
{
|
|
105
|
+
value: maxS ?? "",
|
|
106
|
+
label: /* @__PURE__ */ jsx(FormattedMessage, { id: "maximumSusceptance" }),
|
|
107
|
+
disabled: true,
|
|
108
|
+
size: "small",
|
|
109
|
+
slotProps: {
|
|
110
|
+
input: {
|
|
111
|
+
endAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "start", children: "S" })
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
);
|
|
116
|
+
const minQAtNominalVField = /* @__PURE__ */ jsx(
|
|
117
|
+
TextField,
|
|
118
|
+
{
|
|
119
|
+
value: minQ ?? "",
|
|
120
|
+
label: /* @__PURE__ */ jsx(FormattedMessage, { id: "minQAtNominalV" }),
|
|
121
|
+
disabled: true,
|
|
122
|
+
size: "small",
|
|
123
|
+
slotProps: {
|
|
124
|
+
input: {
|
|
125
|
+
endAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "start", children: "Mvar" })
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
);
|
|
130
|
+
const maxQAtNominalVField = /* @__PURE__ */ jsx(
|
|
131
|
+
TextField,
|
|
132
|
+
{
|
|
133
|
+
value: maxQ ?? "",
|
|
134
|
+
label: /* @__PURE__ */ jsx(FormattedMessage, { id: "maxQAtVnominal" }),
|
|
135
|
+
disabled: true,
|
|
136
|
+
size: "small",
|
|
137
|
+
slotProps: {
|
|
138
|
+
input: {
|
|
139
|
+
endAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "start", children: "Mvar" })
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
);
|
|
144
|
+
const susceptanceField = /* @__PURE__ */ jsx(FloatInput, { name: `${id}.${FieldConstants.B0}`, label: "b0", adornment: SusceptanceAdornment });
|
|
145
|
+
const qAtNominalVField = /* @__PURE__ */ jsx(FloatInput, { name: `${id}.${FieldConstants.Q0}`, label: "fixQAtNominalV", adornment: ReactivePowerAdornment });
|
|
146
|
+
return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
147
|
+
watchChoiceAutomaton === CHARACTERISTICS_CHOICES.SUSCEPTANCE.id && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
148
|
+
/* @__PURE__ */ jsx(GridItem, { size: 4, children: minSusceptanceField }),
|
|
149
|
+
/* @__PURE__ */ jsx(GridItem, { size: 3, children: susceptanceField }),
|
|
150
|
+
/* @__PURE__ */ jsx(GridItem, { size: 4, children: maxSusceptanceField })
|
|
151
|
+
] }),
|
|
152
|
+
watchChoiceAutomaton === CHARACTERISTICS_CHOICES.Q_AT_NOMINAL_V.id && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
153
|
+
/* @__PURE__ */ jsx(GridItem, { size: 4, children: minQAtNominalVField }),
|
|
154
|
+
/* @__PURE__ */ jsx(GridItem, { size: 3, children: qAtNominalVField }),
|
|
155
|
+
/* @__PURE__ */ jsx(GridItem, { size: 4, children: maxQAtNominalVField })
|
|
156
|
+
] })
|
|
157
|
+
] });
|
|
158
|
+
}
|
|
159
|
+
export {
|
|
160
|
+
SusceptanceArea
|
|
161
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, RTE (http://www.rte-france.com)
|
|
3
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
|
+
*/
|
|
7
|
+
export * from './static-var-compensator-creation-form';
|
|
8
|
+
export * from './static-var-compensator-creation-utils';
|
|
9
|
+
export * from './static-var-compensator-creation.types';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { StaticVarCompensatorCreationForm } from "./static-var-compensator-creation-form.js";
|
|
2
|
+
import { staticVarCompensatorCreationEmptyFormData, staticVarCompensatorCreationFormSchema, staticVarCompensatorCreationFormToDto, staticVarCompensatorDtoToForm } from "./static-var-compensator-creation-utils.js";
|
|
3
|
+
export {
|
|
4
|
+
StaticVarCompensatorCreationForm,
|
|
5
|
+
staticVarCompensatorCreationEmptyFormData,
|
|
6
|
+
staticVarCompensatorCreationFormSchema,
|
|
7
|
+
staticVarCompensatorCreationFormToDto,
|
|
8
|
+
staticVarCompensatorDtoToForm
|
|
9
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ConnectivityNetworkProps } from '../../common';
|
|
2
|
+
import { EquipmentType, Identifiable } from '../../../../utils';
|
|
3
|
+
export interface StaticVarCompensatorCreationFormProps extends ConnectivityNetworkProps {
|
|
4
|
+
fetchVoltageLevelEquipments: (voltageLevelId: string) => Promise<(Identifiable & {
|
|
5
|
+
type: EquipmentType;
|
|
6
|
+
})[]>;
|
|
7
|
+
}
|
|
8
|
+
export declare function StaticVarCompensatorCreationForm({ voltageLevelOptions, PositionDiagramPane, fetchBusesOrBusbarSections, fetchVoltageLevelEquipments, }: StaticVarCompensatorCreationFormProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Stack, Box } from "@mui/material";
|
|
3
|
+
import { StaticVarCompensatorDialogTab, STATIC_VAR_COMPENSATOR_TAB_FIELDS } from "../common/static-var-compensator-tab-utils.js";
|
|
4
|
+
import { StaticVarCompensatorDialogHeader } from "../common/static-var-compensator-dialog-header.js";
|
|
5
|
+
import { StaticVarCompensatorDialogTabs } from "../common/static-var-compensator-dialog-tabs.js";
|
|
6
|
+
import "yup";
|
|
7
|
+
import "../../../../utils/conversionUtils.js";
|
|
8
|
+
import "../../../../utils/types/equipmentType.js";
|
|
9
|
+
import "@mui/icons-material";
|
|
10
|
+
import "react-hook-form";
|
|
11
|
+
import "react";
|
|
12
|
+
import "react-intl";
|
|
13
|
+
import "../../../../components/ui/overflowableText/OverflowableText.js";
|
|
14
|
+
import "localized-countries";
|
|
15
|
+
import "localized-countries/data/fr";
|
|
16
|
+
import "localized-countries/data/en";
|
|
17
|
+
import "notistack";
|
|
18
|
+
import "../../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
|
|
19
|
+
import "../../../../components/ui/treeViewFinder/TreeViewFinder.js";
|
|
20
|
+
import "../../../../components/ui/reactHookForm/numbers/RangeInput.js";
|
|
21
|
+
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
22
|
+
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
23
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
24
|
+
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
25
|
+
import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
|
|
26
|
+
import "../../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
27
|
+
import "../../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
28
|
+
import "../../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
|
|
29
|
+
import "@hello-pangea/dnd";
|
|
30
|
+
import "../../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
31
|
+
import "../../../../components/ui/snackbarProvider/SnackbarProvider.js";
|
|
32
|
+
import "mui-nested-menu";
|
|
33
|
+
import "react-resizable-panels";
|
|
34
|
+
import "react-papaparse";
|
|
35
|
+
import "../../common/properties/propertyUtils.js";
|
|
36
|
+
import "react-dom";
|
|
37
|
+
import "autosuggest-highlight/match";
|
|
38
|
+
import "autosuggest-highlight/parse";
|
|
39
|
+
import "clsx";
|
|
40
|
+
import "../../../../components/composite/filter/FilterCreationDialog.js";
|
|
41
|
+
import "../../../../components/composite/filter/HeaderFilterForm.js";
|
|
42
|
+
import "../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js";
|
|
43
|
+
import "../../../../components/composite/filter/expert/ExpertFilterForm.js";
|
|
44
|
+
import "../../../../components/composite/filter/expert/ExpertFilterEditionDialog.js";
|
|
45
|
+
import "../../../../components/composite/filter/expert/expertFilterConstants.js";
|
|
46
|
+
import "react-querybuilder";
|
|
47
|
+
import "uuid";
|
|
48
|
+
import "../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js";
|
|
49
|
+
import "../../../../components/composite/filter/utils/filterFormUtils.js";
|
|
50
|
+
import "@react-querybuilder/material";
|
|
51
|
+
import "../../../../components/composite/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
52
|
+
import "../../../../components/composite/reactQueryBuilder/PropertyValueEditor.js";
|
|
53
|
+
import "../../../../components/composite/agGridTable/BottomTableButtons.js";
|
|
54
|
+
import "../../../../components/composite/agGridTable/CustomAgGridTable.js";
|
|
55
|
+
import "ag-grid-community";
|
|
56
|
+
import "../../../../components/composite/customAGGrid/customAggrid.js";
|
|
57
|
+
import "../../../../components/composite/customAGGrid/context/custom-aggrid-context.js";
|
|
58
|
+
import "mathjs";
|
|
59
|
+
import "../../../../components/composite/report/report-viewer/log-table/log-table.js";
|
|
60
|
+
import "react-window";
|
|
61
|
+
import "../../../../components/composite/report/report-treeview/treeview-item.js";
|
|
62
|
+
import "../../../../components/composite/report/report-viewer/context/report-viewer-context.js";
|
|
63
|
+
import "../../common/regulatingTerminal/RegulatingTerminalForm.js";
|
|
64
|
+
import "@mui/material/colors";
|
|
65
|
+
import "@mui/x-charts";
|
|
66
|
+
import "../../common/currentLimits/limitsPane.utils.js";
|
|
67
|
+
import "../../shunt-compensator/creation/shuntCompensatorCreation.utils.js";
|
|
68
|
+
import "../../shunt-compensator/modification/shuntCompensatorModification.utils.js";
|
|
69
|
+
import { StaticVarCompensatorTabsContent } from "../common/static-var-compensator-tabs-content.js";
|
|
70
|
+
import { useTabsWithError } from "../../hooks/useTabsWithError.js";
|
|
71
|
+
function StaticVarCompensatorCreationForm({
|
|
72
|
+
voltageLevelOptions,
|
|
73
|
+
PositionDiagramPane,
|
|
74
|
+
fetchBusesOrBusbarSections,
|
|
75
|
+
fetchVoltageLevelEquipments
|
|
76
|
+
}) {
|
|
77
|
+
const { tabIndex, setTabIndex, tabIndexesWithError } = useTabsWithError(
|
|
78
|
+
STATIC_VAR_COMPENSATOR_TAB_FIELDS,
|
|
79
|
+
StaticVarCompensatorDialogTab.CONNECTIVITY_TAB
|
|
80
|
+
);
|
|
81
|
+
return /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
|
|
82
|
+
/* @__PURE__ */ jsx(StaticVarCompensatorDialogHeader, {}),
|
|
83
|
+
/* @__PURE__ */ jsx(
|
|
84
|
+
StaticVarCompensatorDialogTabs,
|
|
85
|
+
{
|
|
86
|
+
tabIndex,
|
|
87
|
+
tabIndexesWithError,
|
|
88
|
+
setTabIndex
|
|
89
|
+
}
|
|
90
|
+
),
|
|
91
|
+
/* @__PURE__ */ jsx(Box, { sx: { flexGrow: 1, overflowY: "auto", overflowX: "hidden", paddingRight: 3 }, children: /* @__PURE__ */ jsx(
|
|
92
|
+
StaticVarCompensatorTabsContent,
|
|
93
|
+
{
|
|
94
|
+
voltageLevelOptions,
|
|
95
|
+
PositionDiagramPane,
|
|
96
|
+
fetchBusesOrBusbarSections,
|
|
97
|
+
fetchVoltageLevelEquipments,
|
|
98
|
+
tabIndex
|
|
99
|
+
}
|
|
100
|
+
) })
|
|
101
|
+
] });
|
|
102
|
+
}
|
|
103
|
+
export {
|
|
104
|
+
StaticVarCompensatorCreationForm
|
|
105
|
+
};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { InferType } from 'yup';
|
|
2
|
+
import { StaticVarCompensatorCreationDto } from './static-var-compensator-creation.types';
|
|
3
|
+
import { StaticVarCompensatorDto } from '../common';
|
|
4
|
+
/**
|
|
5
|
+
* Copyright (c) 2026, RTE (http://www.rte-france.com)
|
|
6
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
7
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
8
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
9
|
+
*/
|
|
10
|
+
import * as yup from 'yup';
|
|
11
|
+
export declare const staticVarCompensatorCreationEmptyFormData: {
|
|
12
|
+
AdditionalProperties?: import('../..').Property[];
|
|
13
|
+
equipmentID: string;
|
|
14
|
+
equipmentName: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const staticVarCompensatorCreationFormSchema: yup.ObjectSchema<NonNullable<{
|
|
17
|
+
equipmentID: string;
|
|
18
|
+
equipmentName: string | null | undefined;
|
|
19
|
+
connectivity: {
|
|
20
|
+
terminalConnected?: boolean | null | undefined;
|
|
21
|
+
connectionDirection?: string | null | undefined;
|
|
22
|
+
connectionName?: string | undefined;
|
|
23
|
+
connectionPosition?: number | null | undefined;
|
|
24
|
+
busOrBusbarSection: {
|
|
25
|
+
id?: string | undefined;
|
|
26
|
+
} | null;
|
|
27
|
+
voltageLevel: {
|
|
28
|
+
id?: string | undefined;
|
|
29
|
+
} | null;
|
|
30
|
+
};
|
|
31
|
+
setpointsLimits: {
|
|
32
|
+
minQAtNominalV?: number | null | undefined;
|
|
33
|
+
maxQAtNominalV?: number | null | undefined;
|
|
34
|
+
minSusceptance?: number | null | undefined;
|
|
35
|
+
maxSusceptance?: number | null | undefined;
|
|
36
|
+
reactivePowerSetpoint?: number | null | undefined;
|
|
37
|
+
voltageSetpoint?: number | null | undefined;
|
|
38
|
+
characteristicsChoice: string;
|
|
39
|
+
equipment: {
|
|
40
|
+
id: string;
|
|
41
|
+
type: string;
|
|
42
|
+
} | null;
|
|
43
|
+
voltageLevel: {
|
|
44
|
+
id: string;
|
|
45
|
+
} | null;
|
|
46
|
+
voltageRegulationType: string;
|
|
47
|
+
voltageRegulationMode: string;
|
|
48
|
+
};
|
|
49
|
+
automaton: {
|
|
50
|
+
addStandbyAutomaton?: boolean | null | undefined;
|
|
51
|
+
lowVoltageSetpoint?: number | null | undefined;
|
|
52
|
+
highVoltageSetpoint?: number | null | undefined;
|
|
53
|
+
lowVoltageThreshold?: number | null | undefined;
|
|
54
|
+
highVoltageThreshold?: number | null | undefined;
|
|
55
|
+
StandbyAutomaton?: boolean | null | undefined;
|
|
56
|
+
b0?: number | null | undefined;
|
|
57
|
+
q0?: number | null | undefined;
|
|
58
|
+
};
|
|
59
|
+
} & {
|
|
60
|
+
AdditionalProperties: {
|
|
61
|
+
previousValue?: string | null | undefined;
|
|
62
|
+
added: NonNullable<boolean | undefined>;
|
|
63
|
+
deletionMark: NonNullable<boolean | undefined>;
|
|
64
|
+
name: string;
|
|
65
|
+
value: string;
|
|
66
|
+
}[] | undefined;
|
|
67
|
+
}>, yup.AnyObject, {
|
|
68
|
+
equipmentID: undefined;
|
|
69
|
+
equipmentName: undefined;
|
|
70
|
+
connectivity: {
|
|
71
|
+
voltageLevel: {
|
|
72
|
+
id: undefined;
|
|
73
|
+
};
|
|
74
|
+
busOrBusbarSection: {
|
|
75
|
+
id: undefined;
|
|
76
|
+
};
|
|
77
|
+
connectionDirection: undefined;
|
|
78
|
+
connectionName: undefined;
|
|
79
|
+
connectionPosition: undefined;
|
|
80
|
+
terminalConnected: undefined;
|
|
81
|
+
};
|
|
82
|
+
setpointsLimits: {
|
|
83
|
+
maxSusceptance: undefined;
|
|
84
|
+
minSusceptance: undefined;
|
|
85
|
+
maxQAtNominalV: undefined;
|
|
86
|
+
minQAtNominalV: undefined;
|
|
87
|
+
voltageSetpoint: undefined;
|
|
88
|
+
reactivePowerSetpoint: undefined;
|
|
89
|
+
characteristicsChoice: undefined;
|
|
90
|
+
voltageRegulationMode: undefined;
|
|
91
|
+
voltageRegulationType: undefined;
|
|
92
|
+
voltageLevel: {
|
|
93
|
+
id: undefined;
|
|
94
|
+
};
|
|
95
|
+
equipment: {
|
|
96
|
+
id: undefined;
|
|
97
|
+
type: undefined;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
automaton: {
|
|
101
|
+
addStandbyAutomaton: undefined;
|
|
102
|
+
StandbyAutomaton: undefined;
|
|
103
|
+
lowVoltageSetpoint: undefined;
|
|
104
|
+
highVoltageSetpoint: undefined;
|
|
105
|
+
lowVoltageThreshold: undefined;
|
|
106
|
+
highVoltageThreshold: undefined;
|
|
107
|
+
b0: undefined;
|
|
108
|
+
q0: undefined;
|
|
109
|
+
};
|
|
110
|
+
AdditionalProperties: "";
|
|
111
|
+
}, "">;
|
|
112
|
+
export type StaticVarCompensatorCreationFormData = InferType<typeof staticVarCompensatorCreationFormSchema>;
|
|
113
|
+
export declare const staticVarCompensatorDtoToForm: (staticCompensator: StaticVarCompensatorDto) => StaticVarCompensatorCreationFormData;
|
|
114
|
+
export declare const staticVarCompensatorCreationFormToDto: (formData: StaticVarCompensatorCreationFormData) => StaticVarCompensatorCreationDto;
|