@gridsuite/commons-ui 0.269.0 → 0.271.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/ui/dialogs/customMuiDialog/CustomMuiDialog.d.ts +10 -3
- package/dist/components/ui/dialogs/customMuiDialog/CustomMuiDialog.js +33 -28
- package/dist/features/index.js +96 -3
- package/dist/features/network-modifications/common/branch/branchCreation.types.d.ts +26 -0
- package/dist/features/network-modifications/common/branch/branchModification.types.d.ts +36 -0
- package/dist/features/network-modifications/common/branch/branchModification.types.js +1 -0
- package/dist/features/network-modifications/{line/characteristics/lineCharacteristicsPane.types.d.ts → common/branch/index.d.ts} +2 -8
- package/dist/features/network-modifications/common/branch/index.js +1 -0
- package/dist/features/network-modifications/common/connectivity/connectivityForm.utils.d.ts +2 -0
- package/dist/features/network-modifications/common/currentLimits/limits.types.d.ts +1 -0
- package/dist/features/network-modifications/common/currentLimits/limitsPane.utils.d.ts +2 -2
- package/dist/features/network-modifications/common/index.d.ts +1 -0
- package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/reactiveCapability.utils.js +1 -1
- package/dist/features/network-modifications/common/regulatingTerminal/regulatingTerminal.utils.d.ts +2 -2
- package/dist/features/network-modifications/common/regulatingTerminal/regulatingTerminal.utils.js +2 -2
- package/dist/features/network-modifications/index.d.ts +1 -0
- package/dist/features/network-modifications/index.js +96 -3
- package/dist/features/network-modifications/line/characteristics/index.d.ts +0 -1
- package/dist/features/network-modifications/line/characteristics/index.js +1 -2
- package/dist/features/network-modifications/line/characteristics/lineCharacteristicsPane.utils.d.ts +4 -19
- package/dist/features/network-modifications/line/characteristics/lineCharacteristicsPane.utils.js +0 -14
- package/dist/features/network-modifications/line/creation/lineCreation.types.d.ts +6 -26
- package/dist/features/network-modifications/line/index.js +1 -2
- package/dist/features/network-modifications/line/modification/lineModification.types.d.ts +3 -35
- package/dist/features/network-modifications/twoWindingsTransformer/characteristics/TwoWindingsTransformerCharacteristicsPane.d.ts +7 -0
- package/dist/features/network-modifications/twoWindingsTransformer/characteristics/TwoWindingsTransformerCharacteristicsPane.js +168 -0
- package/dist/features/network-modifications/twoWindingsTransformer/characteristics/index.d.ts +8 -0
- package/dist/features/network-modifications/twoWindingsTransformer/characteristics/index.js +8 -0
- package/dist/features/network-modifications/twoWindingsTransformer/characteristics/twoWindingsTransformerCharacteristicsPane.utils.d.ts +41 -0
- package/dist/features/network-modifications/twoWindingsTransformer/characteristics/twoWindingsTransformerCharacteristicsPane.utils.js +51 -0
- package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogHeader.d.ts +6 -0
- package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogHeader.js +123 -0
- package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogTabs.d.ts +9 -0
- package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogTabs.js +89 -0
- package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogTabsContent.d.ts +14 -0
- package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogTabsContent.js +118 -0
- package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerForm.d.ts +6 -0
- package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerForm.js +47 -0
- package/dist/features/network-modifications/twoWindingsTransformer/common/index.d.ts +12 -0
- package/dist/features/network-modifications/twoWindingsTransformer/common/index.js +13 -0
- package/dist/features/network-modifications/twoWindingsTransformer/common/twoWindingsTransformer.types.d.ts +87 -0
- package/dist/features/network-modifications/twoWindingsTransformer/common/twoWindingsTransformer.types.js +1 -0
- package/dist/features/network-modifications/twoWindingsTransformer/common/twoWindingsTransformer.utils.d.ts +10 -0
- package/dist/features/network-modifications/twoWindingsTransformer/common/twoWindingsTransformer.utils.js +50 -0
- package/dist/features/network-modifications/twoWindingsTransformer/creation/index.d.ts +8 -0
- package/dist/features/network-modifications/twoWindingsTransformer/creation/index.js +12 -0
- package/dist/features/network-modifications/twoWindingsTransformer/creation/twoWindingsTransformerCreation.types.d.ts +47 -0
- package/dist/features/network-modifications/twoWindingsTransformer/creation/twoWindingsTransformerCreation.types.js +8 -0
- package/dist/features/network-modifications/twoWindingsTransformer/creation/twoWindingsTransformerCreation.utils.d.ts +248 -0
- package/dist/features/network-modifications/twoWindingsTransformer/creation/twoWindingsTransformerCreation.utils.js +325 -0
- package/dist/features/network-modifications/twoWindingsTransformer/index.d.ts +11 -0
- package/dist/features/network-modifications/twoWindingsTransformer/index.js +88 -0
- package/dist/features/network-modifications/twoWindingsTransformer/modification/index.d.ts +9 -0
- package/dist/features/network-modifications/twoWindingsTransformer/modification/index.js +10 -0
- package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/ToBeEstimatedForm.d.ts +6 -0
- package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/ToBeEstimatedForm.js +104 -0
- package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/index.d.ts +9 -0
- package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/index.js +7 -0
- package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/toBeEstimated.type.d.ts +10 -0
- package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/toBeEstimated.type.js +1 -0
- package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/toBeEstimated.utils.d.ts +12 -0
- package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/toBeEstimated.utils.js +18 -0
- package/dist/features/network-modifications/twoWindingsTransformer/modification/twoWindingsTransformerModification.types.d.ts +39 -0
- package/dist/features/network-modifications/twoWindingsTransformer/modification/twoWindingsTransformerModification.types.js +1 -0
- package/dist/features/network-modifications/twoWindingsTransformer/modification/twoWindingsTransformerModification.utils.d.ts +265 -0
- package/dist/features/network-modifications/twoWindingsTransformer/modification/twoWindingsTransformerModification.utils.js +100 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/RegulatedTerminalSection.d.ts +13 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/RegulatedTerminalSection.js +130 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/TapChangerSteps.d.ts +20 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/TapChangerSteps.js +311 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/index.d.ts +12 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/index.js +53 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/PhaseTapChangerPane.d.ts +2 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/PhaseTapChangerPane.js +198 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/PhaseTapChangerPaneSteps.d.ts +9 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/PhaseTapChangerPaneSteps.js +201 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/index.d.ts +9 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/index.js +15 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/phaseTapChanger.utils.d.ts +114 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/phaseTapChanger.utils.js +242 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/RatioTapChangerPane.d.ts +2 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/RatioTapChangerPane.js +283 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/RatioTapChangerPaneSteps.d.ts +9 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/RatioTapChangerPaneSteps.js +181 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/index.d.ts +9 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/index.js +18 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/ratioTapChanger.utils.d.ts +132 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/ratioTapChanger.utils.js +211 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleDialog.d.ts +2 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleDialog.js +102 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleDialogSubmitButton.d.ts +7 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleDialogSubmitButton.js +22 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleForm.d.ts +6 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleForm.js +86 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/ImportRuleDialog.d.ts +10 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/ImportRuleDialog.js +140 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/index.d.ts +12 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/index.js +13 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/regulationRule.types.d.ts +12 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/regulationRule.types.js +1 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/regulationRule.utils.d.ts +9 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/regulationRule.utils.js +19 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/tapChanger.utils.d.ts +14 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/tapChanger.utils.js +79 -0
- package/dist/features/network-modifications/voltageLevel/index.d.ts +1 -0
- package/dist/features/network-modifications/voltageLevel/index.js +9 -1
- package/dist/features/network-modifications/voltageLevel/section/VoltageLevelSectionCreationForm.d.ts +10 -0
- package/dist/features/network-modifications/voltageLevel/section/VoltageLevelSectionCreationForm.js +375 -0
- package/dist/features/network-modifications/voltageLevel/section/index.d.ts +9 -0
- package/dist/features/network-modifications/voltageLevel/section/index.js +10 -0
- package/dist/features/network-modifications/voltageLevel/section/voltageLevelSectionCreation.types.d.ts +15 -0
- package/dist/features/network-modifications/voltageLevel/section/voltageLevelSectionCreation.types.js +1 -0
- package/dist/features/network-modifications/voltageLevel/section/voltageLevelSectionCreation.utils.d.ts +48 -0
- package/dist/features/network-modifications/voltageLevel/section/voltageLevelSectionCreation.utils.js +100 -0
- package/dist/index.js +107 -7
- package/dist/translations/en/filterExpertEn.d.ts +0 -3
- package/dist/translations/en/filterExpertEn.js +0 -3
- package/dist/translations/en/network-modification-validationEn.d.ts +1 -0
- package/dist/translations/en/network-modification-validationEn.js +2 -1
- package/dist/translations/en/networkModificationsEn.d.ts +87 -9
- package/dist/translations/en/networkModificationsEn.js +91 -12
- package/dist/translations/fr/filterExpertFr.d.ts +0 -3
- package/dist/translations/fr/filterExpertFr.js +0 -3
- package/dist/translations/fr/network-modification-validationFr.d.ts +1 -0
- package/dist/translations/fr/network-modification-validationFr.js +2 -1
- package/dist/translations/fr/networkModificationsFr.d.ts +87 -9
- package/dist/translations/fr/networkModificationsFr.js +91 -12
- package/dist/utils/constants/fieldConstants.d.ts +37 -0
- package/dist/utils/constants/fieldConstants.js +37 -0
- package/dist/utils/constants/index.js +2 -1
- package/dist/utils/constants/translationKeys.d.ts +1 -0
- package/dist/utils/constants/translationKeys.js +2 -0
- package/dist/utils/functions.d.ts +9 -0
- package/dist/utils/functions.js +40 -0
- package/dist/utils/index.js +11 -4
- package/dist/utils/langs.d.ts +1 -0
- package/dist/utils/langs.js +9 -1
- package/dist/utils/types/equipmentType.d.ts +34 -0
- package/dist/utils/types/equipmentType.js +28 -0
- package/dist/utils/types/index.js +4 -1
- package/package.json +1 -1
- /package/dist/features/network-modifications/{line/characteristics/lineCharacteristicsPane.types.js → common/branch/branchCreation.types.js} +0 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { UUID } from 'node:crypto';
|
|
2
|
+
import { BranchModificationDto } from '../../common/branch/branchModification.types';
|
|
3
|
+
import { AttributeModification } from '../../../../utils';
|
|
4
|
+
import { TapChangerStepCreationDto } from '../creation/twoWindingsTransformerCreation.types';
|
|
5
|
+
export interface TapChangerModificationDto {
|
|
6
|
+
enabled: AttributeModification<boolean> | null;
|
|
7
|
+
regulationType: AttributeModification<string> | null;
|
|
8
|
+
regulationSide: AttributeModification<string> | null;
|
|
9
|
+
lowTapPosition: AttributeModification<number> | null;
|
|
10
|
+
tapPosition: AttributeModification<number> | null;
|
|
11
|
+
isRegulating: AttributeModification<boolean> | null;
|
|
12
|
+
targetDeadband: AttributeModification<number> | null;
|
|
13
|
+
terminalRefConnectableId: AttributeModification<string> | null;
|
|
14
|
+
terminalRefConnectableType: AttributeModification<string> | null;
|
|
15
|
+
terminalRefConnectableVlId: AttributeModification<string> | null;
|
|
16
|
+
steps: TapChangerStepCreationDto[] | null;
|
|
17
|
+
hasLoadTapChangingCapabilities: AttributeModification<boolean> | null;
|
|
18
|
+
}
|
|
19
|
+
export interface RatioTapChangerModificationDto extends TapChangerModificationDto {
|
|
20
|
+
targetV: AttributeModification<number> | null;
|
|
21
|
+
}
|
|
22
|
+
export interface PhaseTapChangerModificationDto extends TapChangerModificationDto {
|
|
23
|
+
regulationMode: AttributeModification<string> | null;
|
|
24
|
+
regulationValue: AttributeModification<number> | null;
|
|
25
|
+
}
|
|
26
|
+
export interface TwoWindingsTransformerModificationDto extends BranchModificationDto {
|
|
27
|
+
g: AttributeModification<number> | null;
|
|
28
|
+
b: AttributeModification<number> | null;
|
|
29
|
+
ratedU1: AttributeModification<number> | null;
|
|
30
|
+
ratedU2: AttributeModification<number> | null;
|
|
31
|
+
ratedS: AttributeModification<number> | null;
|
|
32
|
+
ratioTapChanger: RatioTapChangerModificationDto | null;
|
|
33
|
+
phaseTapChanger: PhaseTapChangerModificationDto | null;
|
|
34
|
+
ratioTapChangerToBeEstimated: AttributeModification<boolean> | null;
|
|
35
|
+
phaseTapChangerToBeEstimated: AttributeModification<boolean> | null;
|
|
36
|
+
}
|
|
37
|
+
export type TwoWindingsTransformerModificationDtoWithId = TwoWindingsTransformerModificationDto & {
|
|
38
|
+
uuid?: UUID;
|
|
39
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
import { InferType } from 'yup';
|
|
2
|
+
import { DeepNullable } from '../../../../utils';
|
|
3
|
+
export declare const twoWindingsTransformerModificationFormSchema: import('yup').ObjectSchema<NonNullable<{
|
|
4
|
+
equipmentID: string;
|
|
5
|
+
equipmentName: string | null | undefined;
|
|
6
|
+
connectivity: {
|
|
7
|
+
connectivity1: {
|
|
8
|
+
terminalConnected?: boolean | null | undefined;
|
|
9
|
+
connectionDirection?: string | null | undefined;
|
|
10
|
+
connectionName?: string | undefined;
|
|
11
|
+
connectionPosition?: number | null | undefined;
|
|
12
|
+
busOrBusbarSection: {
|
|
13
|
+
id?: string | undefined;
|
|
14
|
+
} | null;
|
|
15
|
+
voltageLevel: {
|
|
16
|
+
id?: string | undefined;
|
|
17
|
+
} | null;
|
|
18
|
+
};
|
|
19
|
+
connectivity2: {
|
|
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
|
+
};
|
|
32
|
+
characteristics: {
|
|
33
|
+
b?: number | null | undefined;
|
|
34
|
+
g?: number | null | undefined;
|
|
35
|
+
ratedS?: number | null | undefined;
|
|
36
|
+
ratedU1?: number | null | undefined;
|
|
37
|
+
ratedU2?: number | null | undefined;
|
|
38
|
+
r?: number | null | undefined;
|
|
39
|
+
x?: number | null | undefined;
|
|
40
|
+
};
|
|
41
|
+
stateEstimation: {
|
|
42
|
+
[x: string]: {
|
|
43
|
+
validity?: boolean | null | undefined;
|
|
44
|
+
value?: number | null | undefined;
|
|
45
|
+
};
|
|
46
|
+
[x: number]: {
|
|
47
|
+
validity?: boolean | null | undefined;
|
|
48
|
+
value?: number | null | undefined;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
toBeEstimated: {
|
|
52
|
+
phaseTapChangerStatus?: boolean | null | undefined;
|
|
53
|
+
ratioTapChangerStatus?: boolean | null | undefined;
|
|
54
|
+
};
|
|
55
|
+
limits: {
|
|
56
|
+
operationalLimitsGroups?: {
|
|
57
|
+
AdditionalProperties?: {
|
|
58
|
+
previousValue?: string | null | undefined;
|
|
59
|
+
added: NonNullable<boolean | undefined>;
|
|
60
|
+
deletionMark: NonNullable<boolean | undefined>;
|
|
61
|
+
name: string;
|
|
62
|
+
value: string;
|
|
63
|
+
}[] | undefined;
|
|
64
|
+
limitsProperties?: {
|
|
65
|
+
name: string;
|
|
66
|
+
value: string;
|
|
67
|
+
}[] | undefined;
|
|
68
|
+
operationalLimitsGroupsIsDuplicate?: boolean | null | undefined;
|
|
69
|
+
applicability: string;
|
|
70
|
+
currentLimits: {
|
|
71
|
+
temporaryLimits?: {
|
|
72
|
+
name?: string | null | undefined;
|
|
73
|
+
value?: number | null | undefined;
|
|
74
|
+
acceptableDuration?: number | null | undefined;
|
|
75
|
+
}[] | undefined;
|
|
76
|
+
permanentLimit: number;
|
|
77
|
+
};
|
|
78
|
+
id: string;
|
|
79
|
+
name: string;
|
|
80
|
+
}[] | undefined;
|
|
81
|
+
selectedOperationalLimitsGroupId1?: string | null | undefined;
|
|
82
|
+
selectedOperationalLimitsGroupId2?: string | null | undefined;
|
|
83
|
+
enableOLGModification: NonNullable<boolean | undefined>;
|
|
84
|
+
};
|
|
85
|
+
ratioTapChanger: {
|
|
86
|
+
highTapPosition?: number | null | undefined;
|
|
87
|
+
hasLoadTapChangingCapabilities?: boolean | null | undefined;
|
|
88
|
+
lowTapPosition?: number | null | undefined;
|
|
89
|
+
regulationMode?: string | null | undefined;
|
|
90
|
+
regulationSide?: string | null | undefined;
|
|
91
|
+
regulationType?: string | null | undefined;
|
|
92
|
+
steps?: {
|
|
93
|
+
b?: number | undefined;
|
|
94
|
+
g?: number | undefined;
|
|
95
|
+
r?: number | undefined;
|
|
96
|
+
x?: number | undefined;
|
|
97
|
+
rho?: number | undefined;
|
|
98
|
+
index: number;
|
|
99
|
+
}[] | undefined;
|
|
100
|
+
targetDeadband?: {} | null | undefined;
|
|
101
|
+
targetV?: {} | null | undefined;
|
|
102
|
+
tapPosition?: number | null | undefined;
|
|
103
|
+
enabled: NonNullable<boolean | undefined>;
|
|
104
|
+
equipment: {
|
|
105
|
+
id?: string | undefined;
|
|
106
|
+
name?: string | null | undefined;
|
|
107
|
+
type?: string | undefined;
|
|
108
|
+
} | null;
|
|
109
|
+
voltageLevel: {
|
|
110
|
+
id?: string | undefined;
|
|
111
|
+
name?: string | undefined;
|
|
112
|
+
nominalVoltage?: string | undefined;
|
|
113
|
+
substationId?: string | undefined;
|
|
114
|
+
topologyKind?: string | null | undefined;
|
|
115
|
+
} | null;
|
|
116
|
+
};
|
|
117
|
+
phaseTapChanger: {
|
|
118
|
+
currentLimiterRegulatingValue?: number | null | undefined;
|
|
119
|
+
flowSetPointRegulatingValue?: number | null | undefined;
|
|
120
|
+
highTapPosition?: number | null | undefined;
|
|
121
|
+
lowTapPosition?: number | null | undefined;
|
|
122
|
+
regulationMode?: string | null | undefined;
|
|
123
|
+
regulationSide?: string | null | undefined;
|
|
124
|
+
regulationType?: string | null | undefined;
|
|
125
|
+
steps?: {
|
|
126
|
+
b?: number | undefined;
|
|
127
|
+
g?: number | undefined;
|
|
128
|
+
r?: number | undefined;
|
|
129
|
+
x?: number | undefined;
|
|
130
|
+
rho?: number | undefined;
|
|
131
|
+
alpha?: number | undefined;
|
|
132
|
+
index: number;
|
|
133
|
+
}[] | undefined;
|
|
134
|
+
targetDeadband?: number | null | undefined;
|
|
135
|
+
tapPosition?: number | null | undefined;
|
|
136
|
+
enabled: NonNullable<boolean | undefined>;
|
|
137
|
+
equipment: {
|
|
138
|
+
id?: string | undefined;
|
|
139
|
+
name?: string | null | undefined;
|
|
140
|
+
type?: string | undefined;
|
|
141
|
+
} | null;
|
|
142
|
+
voltageLevel: {
|
|
143
|
+
id?: string | undefined;
|
|
144
|
+
name?: string | undefined;
|
|
145
|
+
nominalVoltage?: string | undefined;
|
|
146
|
+
substationId?: string | undefined;
|
|
147
|
+
topologyKind?: string | null | undefined;
|
|
148
|
+
} | null;
|
|
149
|
+
};
|
|
150
|
+
} & {
|
|
151
|
+
AdditionalProperties: {
|
|
152
|
+
previousValue?: string | null | undefined;
|
|
153
|
+
value?: string | null | undefined;
|
|
154
|
+
added: NonNullable<boolean | undefined>;
|
|
155
|
+
deletionMark: NonNullable<boolean | undefined>;
|
|
156
|
+
name: string;
|
|
157
|
+
}[] | undefined;
|
|
158
|
+
}>, import('yup').AnyObject, {
|
|
159
|
+
equipmentID: undefined;
|
|
160
|
+
equipmentName: undefined;
|
|
161
|
+
connectivity: {
|
|
162
|
+
connectivity1: {
|
|
163
|
+
voltageLevel: {
|
|
164
|
+
id: undefined;
|
|
165
|
+
};
|
|
166
|
+
busOrBusbarSection: {
|
|
167
|
+
id: undefined;
|
|
168
|
+
};
|
|
169
|
+
connectionDirection: undefined;
|
|
170
|
+
connectionName: undefined;
|
|
171
|
+
connectionPosition: undefined;
|
|
172
|
+
terminalConnected: undefined;
|
|
173
|
+
};
|
|
174
|
+
connectivity2: {
|
|
175
|
+
voltageLevel: {
|
|
176
|
+
id: undefined;
|
|
177
|
+
};
|
|
178
|
+
busOrBusbarSection: {
|
|
179
|
+
id: undefined;
|
|
180
|
+
};
|
|
181
|
+
connectionDirection: undefined;
|
|
182
|
+
connectionName: undefined;
|
|
183
|
+
connectionPosition: undefined;
|
|
184
|
+
terminalConnected: undefined;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
characteristics: {
|
|
188
|
+
r: undefined;
|
|
189
|
+
x: undefined;
|
|
190
|
+
g: undefined;
|
|
191
|
+
b: undefined;
|
|
192
|
+
ratedS: undefined;
|
|
193
|
+
ratedU1: undefined;
|
|
194
|
+
ratedU2: undefined;
|
|
195
|
+
};
|
|
196
|
+
stateEstimation: {
|
|
197
|
+
[x: string]: {
|
|
198
|
+
value: undefined;
|
|
199
|
+
validity: undefined;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
toBeEstimated: {
|
|
203
|
+
ratioTapChangerStatus: undefined;
|
|
204
|
+
phaseTapChangerStatus: undefined;
|
|
205
|
+
};
|
|
206
|
+
limits: {
|
|
207
|
+
operationalLimitsGroups: undefined;
|
|
208
|
+
selectedOperationalLimitsGroupId1: undefined;
|
|
209
|
+
selectedOperationalLimitsGroupId2: undefined;
|
|
210
|
+
enableOLGModification: undefined;
|
|
211
|
+
};
|
|
212
|
+
ratioTapChanger: {
|
|
213
|
+
voltageLevel: {
|
|
214
|
+
id: undefined;
|
|
215
|
+
name: undefined;
|
|
216
|
+
substationId: undefined;
|
|
217
|
+
nominalVoltage: undefined;
|
|
218
|
+
topologyKind: undefined;
|
|
219
|
+
};
|
|
220
|
+
equipment: {
|
|
221
|
+
id: undefined;
|
|
222
|
+
name: undefined;
|
|
223
|
+
type: undefined;
|
|
224
|
+
};
|
|
225
|
+
enabled: undefined;
|
|
226
|
+
hasLoadTapChangingCapabilities: undefined;
|
|
227
|
+
regulationMode: undefined;
|
|
228
|
+
regulationType: undefined;
|
|
229
|
+
regulationSide: undefined;
|
|
230
|
+
targetV: undefined;
|
|
231
|
+
targetDeadband: undefined;
|
|
232
|
+
lowTapPosition: undefined;
|
|
233
|
+
highTapPosition: undefined;
|
|
234
|
+
tapPosition: undefined;
|
|
235
|
+
steps: "";
|
|
236
|
+
};
|
|
237
|
+
phaseTapChanger: {
|
|
238
|
+
voltageLevel: {
|
|
239
|
+
id: undefined;
|
|
240
|
+
name: undefined;
|
|
241
|
+
substationId: undefined;
|
|
242
|
+
nominalVoltage: undefined;
|
|
243
|
+
topologyKind: undefined;
|
|
244
|
+
};
|
|
245
|
+
equipment: {
|
|
246
|
+
id: undefined;
|
|
247
|
+
name: undefined;
|
|
248
|
+
type: undefined;
|
|
249
|
+
};
|
|
250
|
+
enabled: undefined;
|
|
251
|
+
regulationMode: undefined;
|
|
252
|
+
regulationType: undefined;
|
|
253
|
+
regulationSide: undefined;
|
|
254
|
+
currentLimiterRegulatingValue: undefined;
|
|
255
|
+
flowSetPointRegulatingValue: undefined;
|
|
256
|
+
targetDeadband: undefined;
|
|
257
|
+
lowTapPosition: undefined;
|
|
258
|
+
highTapPosition: undefined;
|
|
259
|
+
tapPosition: undefined;
|
|
260
|
+
steps: "";
|
|
261
|
+
};
|
|
262
|
+
AdditionalProperties: "";
|
|
263
|
+
}, "">;
|
|
264
|
+
export type TwoWindingsTransformerModificationFormData = InferType<typeof twoWindingsTransformerModificationFormSchema>;
|
|
265
|
+
export declare const twoWindingsTransformerModificationEmptyFormData: DeepNullable<TwoWindingsTransformerModificationFormData>;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { object, string } from "yup";
|
|
2
|
+
import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
|
|
3
|
+
import "../../../../utils/conversionUtils.js";
|
|
4
|
+
import "../../../../utils/types/equipmentType.js";
|
|
5
|
+
import "react/jsx-runtime";
|
|
6
|
+
import "@mui/icons-material";
|
|
7
|
+
import { getBranchConnectivityWithPositionSchema, getBranchConnectivityWithPositionEmptyFormDataProps } from "../../common/connectivity/connectivityForm.utils.js";
|
|
8
|
+
import "@mui/material";
|
|
9
|
+
import "react";
|
|
10
|
+
import "react-intl";
|
|
11
|
+
import "../../../../components/ui/overflowableText/OverflowableText.js";
|
|
12
|
+
import "react-hook-form";
|
|
13
|
+
import "localized-countries";
|
|
14
|
+
import "localized-countries/data/fr";
|
|
15
|
+
import "localized-countries/data/en";
|
|
16
|
+
import "notistack";
|
|
17
|
+
import "../../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
|
|
18
|
+
import "../../../../components/ui/treeViewFinder/TreeViewFinder.js";
|
|
19
|
+
import "../../../../components/ui/reactHookForm/numbers/RangeInput.js";
|
|
20
|
+
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
21
|
+
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
22
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
23
|
+
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
24
|
+
import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
|
|
25
|
+
import "../../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
26
|
+
import "../../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
27
|
+
import "../../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
|
|
28
|
+
import "@hello-pangea/dnd";
|
|
29
|
+
import "../../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
30
|
+
import "../../../../components/ui/snackbarProvider/SnackbarProvider.js";
|
|
31
|
+
import "mui-nested-menu";
|
|
32
|
+
import "react-resizable-panels";
|
|
33
|
+
import "react-papaparse";
|
|
34
|
+
import { modificationPropertiesSchema } from "../../common/properties/propertyUtils.js";
|
|
35
|
+
import { getLimitsValidationSchemaProps, getLimitsEmptyFormDataProps } from "../../common/currentLimits/limitsPane.utils.js";
|
|
36
|
+
import { getTwtCharacteristicsValidationSchemaProps, getTwtCharacteristicsEmptyFormData } from "../characteristics/twoWindingsTransformerCharacteristicsPane.utils.js";
|
|
37
|
+
import "react-dom";
|
|
38
|
+
import "autosuggest-highlight/match";
|
|
39
|
+
import "autosuggest-highlight/parse";
|
|
40
|
+
import "clsx";
|
|
41
|
+
import "../../../../components/composite/filter/FilterCreationDialog.js";
|
|
42
|
+
import "../../../../components/composite/filter/HeaderFilterForm.js";
|
|
43
|
+
import "../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js";
|
|
44
|
+
import "../../../../components/composite/filter/expert/ExpertFilterForm.js";
|
|
45
|
+
import "../../../../components/composite/filter/expert/ExpertFilterEditionDialog.js";
|
|
46
|
+
import "../../../../components/composite/filter/expert/expertFilterConstants.js";
|
|
47
|
+
import "react-querybuilder";
|
|
48
|
+
import "uuid";
|
|
49
|
+
import "../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js";
|
|
50
|
+
import "../../../../components/composite/filter/utils/filterFormUtils.js";
|
|
51
|
+
import "@react-querybuilder/material";
|
|
52
|
+
import "../../../../components/composite/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
53
|
+
import "../../../../components/composite/reactQueryBuilder/PropertyValueEditor.js";
|
|
54
|
+
import "../../../../components/composite/agGridTable/BottomTableButtons.js";
|
|
55
|
+
import "../../../../components/composite/agGridTable/CustomAgGridTable.js";
|
|
56
|
+
import "ag-grid-community";
|
|
57
|
+
import "../../../../components/composite/customAGGrid/customAggrid.js";
|
|
58
|
+
import "../../../../components/composite/customAGGrid/context/custom-aggrid-context.js";
|
|
59
|
+
import "mathjs";
|
|
60
|
+
import "../../../../components/composite/report/report-viewer/log-table/log-table.js";
|
|
61
|
+
import "react-window";
|
|
62
|
+
import "../../../../components/composite/report/report-treeview/treeview-item.js";
|
|
63
|
+
import "../../../../components/composite/report/report-viewer/context/report-viewer-context.js";
|
|
64
|
+
import { getBranchActiveReactivePowerValidationSchemaObject, getBranchActiveReactivePowerEmptyFormDataProperties } from "../../common/measurements/branchActiveReactivePowerForm.utils.js";
|
|
65
|
+
import "../../common/regulatingTerminal/RegulatingTerminalForm.js";
|
|
66
|
+
import "@mui/material/colors";
|
|
67
|
+
import "@mui/x-charts";
|
|
68
|
+
import "../tapChanger/tapChanger.utils.js";
|
|
69
|
+
import "../tapChanger/regulationRule/CreateRuleForm.js";
|
|
70
|
+
import "../tapChanger/regulationRule/CreateRuleDialog.js";
|
|
71
|
+
import { getPhaseTapChangerValidationSchemaProps, getPhaseTapChangerEmptyFormData } from "../tapChanger/phaseTapChanger/phaseTapChanger.utils.js";
|
|
72
|
+
import { getRatioTapChangerValidationSchemaProps, getRatioTapChangerEmptyFormData } from "../tapChanger/ratioTapChanger/ratioTapChanger.utils.js";
|
|
73
|
+
import { getToBeEstimatedValidationSchemaObject, toBeEstimatedEmptyFormData } from "./measurements/toBeEstimated.utils.js";
|
|
74
|
+
const twoWindingsTransformerModificationFormSchema = object().shape({
|
|
75
|
+
[FieldConstants.EQUIPMENT_ID]: string().required(),
|
|
76
|
+
[FieldConstants.EQUIPMENT_NAME]: string().nullable(),
|
|
77
|
+
[FieldConstants.CONNECTIVITY]: getBranchConnectivityWithPositionSchema(true, true),
|
|
78
|
+
[FieldConstants.CHARACTERISTICS]: getTwtCharacteristicsValidationSchemaProps(true),
|
|
79
|
+
[FieldConstants.STATE_ESTIMATION]: getBranchActiveReactivePowerValidationSchemaObject(),
|
|
80
|
+
[FieldConstants.TO_BE_ESTIMATED]: getToBeEstimatedValidationSchemaObject(),
|
|
81
|
+
[FieldConstants.LIMITS]: getLimitsValidationSchemaProps(true),
|
|
82
|
+
[FieldConstants.RATIO_TAP_CHANGER]: getRatioTapChangerValidationSchemaProps(true),
|
|
83
|
+
[FieldConstants.PHASE_TAP_CHANGER]: getPhaseTapChangerValidationSchemaProps(true)
|
|
84
|
+
}).concat(modificationPropertiesSchema).required();
|
|
85
|
+
const twoWindingsTransformerModificationEmptyFormData = {
|
|
86
|
+
[FieldConstants.EQUIPMENT_ID]: "",
|
|
87
|
+
[FieldConstants.EQUIPMENT_NAME]: "",
|
|
88
|
+
[FieldConstants.CONNECTIVITY]: getBranchConnectivityWithPositionEmptyFormDataProps(true),
|
|
89
|
+
[FieldConstants.CHARACTERISTICS]: getTwtCharacteristicsEmptyFormData(),
|
|
90
|
+
[FieldConstants.STATE_ESTIMATION]: getBranchActiveReactivePowerEmptyFormDataProperties(),
|
|
91
|
+
[FieldConstants.TO_BE_ESTIMATED]: toBeEstimatedEmptyFormData,
|
|
92
|
+
[FieldConstants.LIMITS]: getLimitsEmptyFormDataProps(true),
|
|
93
|
+
[FieldConstants.RATIO_TAP_CHANGER]: getRatioTapChangerEmptyFormData(true),
|
|
94
|
+
[FieldConstants.PHASE_TAP_CHANGER]: getPhaseTapChangerEmptyFormData(true),
|
|
95
|
+
AdditionalProperties: []
|
|
96
|
+
};
|
|
97
|
+
export {
|
|
98
|
+
twoWindingsTransformerModificationEmptyFormData,
|
|
99
|
+
twoWindingsTransformerModificationFormSchema
|
|
100
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { REGULATION_TYPES } from '../../common';
|
|
2
|
+
import { EquipmentType, Identifiable } from '../../../../utils';
|
|
3
|
+
export interface RegulatedTerminalSectionProps {
|
|
4
|
+
id: string;
|
|
5
|
+
voltageLevelOptions: Identifiable[];
|
|
6
|
+
previousValues: any;
|
|
7
|
+
tapChangerDisabled: boolean;
|
|
8
|
+
regulationType?: (typeof REGULATION_TYPES)[keyof typeof REGULATION_TYPES]['id'];
|
|
9
|
+
fetchVoltageLevelEquipments: (voltageLevelId: string) => Promise<(Identifiable & {
|
|
10
|
+
type: EquipmentType;
|
|
11
|
+
})[]>;
|
|
12
|
+
}
|
|
13
|
+
export declare function RegulatedTerminalSection({ id, voltageLevelOptions, previousValues, tapChangerDisabled, regulationType, fetchVoltageLevelEquipments, }: Readonly<RegulatedTerminalSectionProps>): import("react").JSX.Element;
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useIntl } from "react-intl";
|
|
3
|
+
import { Grid } from "@mui/material";
|
|
4
|
+
import { getRegulationTypeLabel, getTapSideLabel, getTapChangerEquipmentSectionTypeValue } from "./tapChanger.utils.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-hook-form";
|
|
7
|
+
import "../../common/properties/propertyUtils.js";
|
|
8
|
+
import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
|
|
9
|
+
import "../../../../utils/conversionUtils.js";
|
|
10
|
+
import { REGULATION_SIDES, EquipmentType } from "../../../../utils/types/equipmentType.js";
|
|
11
|
+
import "@mui/icons-material";
|
|
12
|
+
import "../../../../components/ui/overflowableText/OverflowableText.js";
|
|
13
|
+
import "localized-countries";
|
|
14
|
+
import "localized-countries/data/fr";
|
|
15
|
+
import "localized-countries/data/en";
|
|
16
|
+
import "notistack";
|
|
17
|
+
import "../../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
|
|
18
|
+
import "yup";
|
|
19
|
+
import "../../../../components/ui/treeViewFinder/TreeViewFinder.js";
|
|
20
|
+
import "../../../../components/ui/reactHookForm/numbers/RangeInput.js";
|
|
21
|
+
import { SelectInput } from "../../../../components/ui/reactHookForm/selectInputs/SelectInput.js";
|
|
22
|
+
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
23
|
+
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
24
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
25
|
+
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
26
|
+
import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
|
|
27
|
+
import "../../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
28
|
+
import "../../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
29
|
+
import "../../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
|
|
30
|
+
import "@hello-pangea/dnd";
|
|
31
|
+
import "../../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
32
|
+
import "../../../../components/ui/snackbarProvider/SnackbarProvider.js";
|
|
33
|
+
import "mui-nested-menu";
|
|
34
|
+
import "react-resizable-panels";
|
|
35
|
+
import "react-papaparse";
|
|
36
|
+
import { GridSection } from "../../../../components/composite/grid/grid-section.js";
|
|
37
|
+
import "react-dom";
|
|
38
|
+
import "autosuggest-highlight/match";
|
|
39
|
+
import "autosuggest-highlight/parse";
|
|
40
|
+
import "clsx";
|
|
41
|
+
import "../../../../components/composite/filter/FilterCreationDialog.js";
|
|
42
|
+
import "../../../../components/composite/filter/HeaderFilterForm.js";
|
|
43
|
+
import "../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js";
|
|
44
|
+
import "../../../../components/composite/filter/expert/ExpertFilterForm.js";
|
|
45
|
+
import "../../../../components/composite/filter/expert/ExpertFilterEditionDialog.js";
|
|
46
|
+
import "../../../../components/composite/filter/expert/expertFilterConstants.js";
|
|
47
|
+
import "react-querybuilder";
|
|
48
|
+
import "uuid";
|
|
49
|
+
import "../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js";
|
|
50
|
+
import "../../../../components/composite/filter/utils/filterFormUtils.js";
|
|
51
|
+
import { GridItem } from "../../../../components/composite/grid/grid-item.js";
|
|
52
|
+
import "@react-querybuilder/material";
|
|
53
|
+
import "../../../../components/composite/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
54
|
+
import "../../../../components/composite/reactQueryBuilder/PropertyValueEditor.js";
|
|
55
|
+
import "../../../../components/composite/agGridTable/BottomTableButtons.js";
|
|
56
|
+
import "../../../../components/composite/agGridTable/CustomAgGridTable.js";
|
|
57
|
+
import "ag-grid-community";
|
|
58
|
+
import "../../../../components/composite/customAGGrid/customAggrid.js";
|
|
59
|
+
import "../../../../components/composite/customAGGrid/context/custom-aggrid-context.js";
|
|
60
|
+
import "mathjs";
|
|
61
|
+
import "../../../../components/composite/report/report-viewer/log-table/log-table.js";
|
|
62
|
+
import "react-window";
|
|
63
|
+
import "../../../../components/composite/report/report-treeview/treeview-item.js";
|
|
64
|
+
import "../../../../components/composite/report/report-viewer/context/report-viewer-context.js";
|
|
65
|
+
import { RegulatingTerminalForm } from "../../common/regulatingTerminal/RegulatingTerminalForm.js";
|
|
66
|
+
import { REGULATION_TYPES } from "../../common/voltageRegulation/voltageRegulation.utils.js";
|
|
67
|
+
import "@mui/material/colors";
|
|
68
|
+
import "@mui/x-charts";
|
|
69
|
+
import "../../common/currentLimits/limitsPane.utils.js";
|
|
70
|
+
function RegulatedTerminalSection({
|
|
71
|
+
id,
|
|
72
|
+
voltageLevelOptions,
|
|
73
|
+
previousValues,
|
|
74
|
+
tapChangerDisabled,
|
|
75
|
+
regulationType,
|
|
76
|
+
fetchVoltageLevelEquipments
|
|
77
|
+
}) {
|
|
78
|
+
const intl = useIntl();
|
|
79
|
+
let tapChangerPreviousValues;
|
|
80
|
+
if (id === FieldConstants.RATIO_TAP_CHANGER) {
|
|
81
|
+
tapChangerPreviousValues = previousValues?.ratioTapChanger;
|
|
82
|
+
} else if (id === FieldConstants.PHASE_TAP_CHANGER) {
|
|
83
|
+
tapChangerPreviousValues = previousValues?.phaseTapChanger;
|
|
84
|
+
}
|
|
85
|
+
const regulationTypeField = /* @__PURE__ */ jsx(
|
|
86
|
+
SelectInput,
|
|
87
|
+
{
|
|
88
|
+
name: `${id}.${FieldConstants.REGULATION_TYPE}`,
|
|
89
|
+
label: "RegulationTypeText",
|
|
90
|
+
options: Object.values(REGULATION_TYPES),
|
|
91
|
+
disabled: tapChangerDisabled,
|
|
92
|
+
size: "small",
|
|
93
|
+
previousValue: getRegulationTypeLabel(previousValues, tapChangerPreviousValues, intl) ?? void 0
|
|
94
|
+
}
|
|
95
|
+
);
|
|
96
|
+
const sideField = /* @__PURE__ */ jsx(
|
|
97
|
+
SelectInput,
|
|
98
|
+
{
|
|
99
|
+
name: `${id}.${FieldConstants.REGULATION_SIDE}`,
|
|
100
|
+
label: "RegulatedSide",
|
|
101
|
+
options: Object.values(REGULATION_SIDES),
|
|
102
|
+
disabled: tapChangerDisabled,
|
|
103
|
+
size: "small",
|
|
104
|
+
previousValue: getTapSideLabel(previousValues, tapChangerPreviousValues, intl) ?? void 0
|
|
105
|
+
}
|
|
106
|
+
);
|
|
107
|
+
const regulatingTerminalField = /* @__PURE__ */ jsx(
|
|
108
|
+
RegulatingTerminalForm,
|
|
109
|
+
{
|
|
110
|
+
id,
|
|
111
|
+
disabled: tapChangerDisabled,
|
|
112
|
+
equipmentSectionTypeDefaultValue: EquipmentType.TWO_WINDINGS_TRANSFORMER,
|
|
113
|
+
fetchVoltageLevelEquipments,
|
|
114
|
+
voltageLevelOptions,
|
|
115
|
+
regulatingTerminalVlId: tapChangerPreviousValues?.regulatingTerminalVlId,
|
|
116
|
+
equipmentSectionType: getTapChangerEquipmentSectionTypeValue(tapChangerPreviousValues) ?? void 0
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
120
|
+
/* @__PURE__ */ jsx(GridSection, { title: "RegulatedTerminal", heading: 4 }),
|
|
121
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, children: [
|
|
122
|
+
/* @__PURE__ */ jsx(GridItem, { size: 4, children: regulationTypeField }),
|
|
123
|
+
regulationType === REGULATION_TYPES.LOCAL.id && /* @__PURE__ */ jsx(GridItem, { size: 4, children: sideField }),
|
|
124
|
+
regulationType === REGULATION_TYPES.DISTANT.id && /* @__PURE__ */ jsx(GridItem, { size: 8, children: regulatingTerminalField })
|
|
125
|
+
] })
|
|
126
|
+
] });
|
|
127
|
+
}
|
|
128
|
+
export {
|
|
129
|
+
RegulatedTerminalSection
|
|
130
|
+
};
|
package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/TapChangerSteps.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TapChangerMapInfos } from '../common/twoWindingsTransformer.types';
|
|
2
|
+
import { DndColumn } from '../../../../components';
|
|
3
|
+
import { FieldConstants } from '../../../../utils';
|
|
4
|
+
import { TapChangerStepCreationDto } from '../creation/twoWindingsTransformerCreation.types';
|
|
5
|
+
export interface TapChangerStepsProps {
|
|
6
|
+
tapChanger: FieldConstants.PHASE_TAP_CHANGER | FieldConstants.RATIO_TAP_CHANGER;
|
|
7
|
+
createTapRuleColumn: string;
|
|
8
|
+
columnsDefinition: DndColumn[];
|
|
9
|
+
csvColumns: string[];
|
|
10
|
+
createRuleMessageId: string;
|
|
11
|
+
createRuleAllowNegativeValues: boolean;
|
|
12
|
+
importRuleMessageId: string;
|
|
13
|
+
resetButtonMessageId: string;
|
|
14
|
+
handleImportRow: (val: Record<string, string>) => Record<string, string | number>;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
previousValues?: TapChangerMapInfos;
|
|
17
|
+
editData?: TapChangerStepCreationDto[] | null;
|
|
18
|
+
isModification?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare function TapChangerSteps({ tapChanger, createTapRuleColumn, columnsDefinition, csvColumns, createRuleMessageId, createRuleAllowNegativeValues, importRuleMessageId, resetButtonMessageId, handleImportRow, disabled, previousValues, editData, isModification, }: Readonly<TapChangerStepsProps>): import("react").JSX.Element;
|