@gridsuite/commons-ui 0.270.0 → 0.272.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/customAGGrid/custom-aggrid-types.d.ts +7 -0
- package/dist/components/composite/dnd-table/deletable-table-row.d.ts +2 -1
- package/dist/components/composite/dnd-table/deletable-table-row.js +3 -1
- package/dist/components/composite/dnd-table/dnd-table-row.d.ts +2 -1
- package/dist/components/composite/dnd-table/dnd-table-row.js +29 -4
- package/dist/components/composite/dnd-table/dnd-table.d.ts +1 -0
- package/dist/components/composite/dnd-table/dnd-table.js +13 -3
- package/dist/components/composite/dnd-table/dnd-table.type.d.ts +1 -0
- package/dist/components/composite/report/report-viewer/context/report-viewer-context.d.ts +4 -4
- package/dist/components/composite/report/report-viewer/log-table/log-table.js +8 -7
- package/dist/components/composite/report/report.type.d.ts +0 -4
- package/dist/components/ui/addButton/AddButton.js +9 -1
- package/dist/components/ui/dialogs/customMuiDialog/CustomMuiDialog.d.ts +10 -3
- package/dist/components/ui/dialogs/customMuiDialog/CustomMuiDialog.js +33 -28
- package/dist/components/ui/reactHookForm/DirectoryItemsInput.d.ts +2 -1
- package/dist/components/ui/reactHookForm/DirectoryItemsInput.js +3 -1
- package/dist/components/ui/reactHookForm/autocompleteInputs/AutocompleteInput.d.ts +2 -1
- package/dist/components/ui/reactHookForm/autocompleteInputs/AutocompleteInput.js +2 -0
- package/dist/components/ui/reactHookForm/booleans/BooleanInput.d.ts +2 -1
- package/dist/components/ui/reactHookForm/booleans/BooleanInput.js +3 -1
- package/dist/components/ui/reactHookForm/booleans/SwitchInput.d.ts +2 -1
- package/dist/components/ui/reactHookForm/booleans/SwitchInput.js +12 -2
- package/dist/components/ui/reactHookForm/chip-items-input.d.ts +2 -1
- package/dist/components/ui/reactHookForm/chip-items-input.js +2 -1
- package/dist/components/ui/reactHookForm/expandableInput/DeletableRow.d.ts +2 -1
- package/dist/components/ui/reactHookForm/expandableInput/DeletableRow.js +3 -1
- package/dist/components/ui/reactHookForm/expandableInput/ExpandableInput.d.ts +2 -0
- package/dist/components/ui/reactHookForm/expandableInput/ExpandableInput.js +13 -2
- package/dist/components/ui/reactHookForm/tableInputs/table-text-input.d.ts +2 -1
- package/dist/components/ui/reactHookForm/tableInputs/table-text-input.js +2 -1
- package/dist/features/common/index.d.ts +1 -0
- package/dist/features/common/types.d.ts +32 -0
- package/dist/features/index.d.ts +2 -0
- package/dist/features/index.js +110 -4
- package/dist/features/network-modifications/common/branch/branchCreation.types.d.ts +26 -0
- package/dist/features/network-modifications/common/branch/branchCreation.types.js +1 -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/VoltageLevelConnectivityForm.js +4 -2
- 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 +87 -2
- 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/results/common/index.d.ts +7 -0
- package/dist/features/results/common/index.js +5 -0
- package/dist/features/results/common/utils.d.ts +5 -0
- package/dist/features/results/common/utils.js +18 -0
- package/dist/features/results/securityanalysis/index.js +1 -2
- package/dist/features/results/securityanalysis/security-analysis-result-nmk.js +3 -2
- package/dist/features/results/securityanalysis/utils.d.ts +0 -1
- package/dist/features/results/securityanalysis/utils.js +0 -2
- package/dist/features/results/shortcircuit/index.d.ts +11 -0
- package/dist/features/results/shortcircuit/index.js +21 -0
- package/dist/features/results/shortcircuit/shortcircuit-analysis-all-buses-result.d.ts +4 -0
- package/dist/features/results/shortcircuit/shortcircuit-analysis-all-buses-result.js +25 -0
- package/dist/features/results/shortcircuit/shortcircuit-analysis-result-content.d.ts +13 -0
- package/dist/features/results/shortcircuit/shortcircuit-analysis-result-content.js +62 -0
- package/dist/features/results/shortcircuit/shortcircuit-analysis-result-table.d.ts +41 -0
- package/dist/features/results/shortcircuit/shortcircuit-analysis-result-table.js +451 -0
- package/dist/features/results/shortcircuit/shortcircuit-analysis-result.d.ts +53 -0
- package/dist/features/results/shortcircuit/shortcircuit-analysis-result.js +252 -0
- package/dist/features/results/shortcircuit/shortcircuit-analysis-result.type.d.ts +41 -0
- package/dist/features/results/shortcircuit/shortcircuit-analysis-result.type.js +8 -0
- package/dist/index.js +121 -8
- 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 +70 -9
- package/dist/translations/en/networkModificationsEn.js +71 -10
- 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 +70 -9
- package/dist/translations/fr/networkModificationsFr.js +71 -10
- 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.d.ts +1 -1
- package/dist/utils/types/index.js +4 -1
- package/package.json +1 -1
- /package/dist/features/{network-modifications/line/characteristics/lineCharacteristicsPane.types.js → common/types.js} +0 -0
|
@@ -22,7 +22,9 @@ const ExpandableInput = forwardRef(
|
|
|
22
22
|
// default value for a flex container
|
|
23
23
|
watchProps = true,
|
|
24
24
|
disabled = false,
|
|
25
|
-
disabledDeletion
|
|
25
|
+
disabledDeletion,
|
|
26
|
+
rowDataTestId,
|
|
27
|
+
addButtonDataTestId
|
|
26
28
|
}, ref) => {
|
|
27
29
|
const {
|
|
28
30
|
fields: values,
|
|
@@ -54,11 +56,20 @@ const ExpandableInput = forwardRef(
|
|
|
54
56
|
},
|
|
55
57
|
deletionMark: getDeletionMark?.(idx),
|
|
56
58
|
disabledDeletion: disabledDeletion?.(idx),
|
|
59
|
+
dataTestId: rowDataTestId,
|
|
57
60
|
children: /* @__PURE__ */ jsx(Field, { name, index: idx, ...fieldProps })
|
|
58
61
|
},
|
|
59
62
|
value.id
|
|
60
63
|
)),
|
|
61
|
-
addButtonLabel && /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(
|
|
64
|
+
addButtonLabel && /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(
|
|
65
|
+
AddButton,
|
|
66
|
+
{
|
|
67
|
+
disabled,
|
|
68
|
+
onClick: () => append(initialValue),
|
|
69
|
+
label: addButtonLabel,
|
|
70
|
+
"data-testid": addButtonDataTestId
|
|
71
|
+
}
|
|
72
|
+
) })
|
|
62
73
|
] });
|
|
63
74
|
}
|
|
64
75
|
);
|
|
@@ -3,6 +3,7 @@ interface TableTextInputProps {
|
|
|
3
3
|
name: string;
|
|
4
4
|
hideErrorMessage?: boolean;
|
|
5
5
|
inputProps?: InputBaseComponentProps;
|
|
6
|
+
dataTestId?: string;
|
|
6
7
|
}
|
|
7
|
-
export declare function TableTextInput({ name, hideErrorMessage, inputProps }: Readonly<TableTextInputProps>): import("react").JSX.Element;
|
|
8
|
+
export declare function TableTextInput({ name, hideErrorMessage, inputProps, dataTestId }: Readonly<TableTextInputProps>): import("react").JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -5,7 +5,7 @@ import "react-intl";
|
|
|
5
5
|
import "react";
|
|
6
6
|
import "@mui/icons-material";
|
|
7
7
|
import { genHelperError } from "../utils/functions.js";
|
|
8
|
-
function TableTextInput({ name, hideErrorMessage, inputProps }) {
|
|
8
|
+
function TableTextInput({ name, hideErrorMessage, inputProps, dataTestId }) {
|
|
9
9
|
const {
|
|
10
10
|
field: { onChange, value, ref },
|
|
11
11
|
fieldState: { error }
|
|
@@ -19,6 +19,7 @@ function TableTextInput({ name, hideErrorMessage, inputProps }) {
|
|
|
19
19
|
return /* @__PURE__ */ jsx(
|
|
20
20
|
TextField,
|
|
21
21
|
{
|
|
22
|
+
"data-testid": dataTestId,
|
|
22
23
|
value,
|
|
23
24
|
onChange: handleInputChange,
|
|
24
25
|
error: !!error?.message,
|
|
@@ -0,0 +1,32 @@
|
|
|
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 type Sort = {
|
|
8
|
+
empty?: boolean;
|
|
9
|
+
sorted?: boolean;
|
|
10
|
+
unsorted?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export type Pageable = {
|
|
13
|
+
offset?: number;
|
|
14
|
+
pageNumber?: number;
|
|
15
|
+
pageSize?: number;
|
|
16
|
+
paged?: boolean;
|
|
17
|
+
sort?: Sort;
|
|
18
|
+
unpaged?: boolean;
|
|
19
|
+
};
|
|
20
|
+
export interface Page<ResultType> {
|
|
21
|
+
content?: ResultType[];
|
|
22
|
+
pageable?: Pageable;
|
|
23
|
+
last?: boolean;
|
|
24
|
+
totalPages?: number;
|
|
25
|
+
totalElements?: number;
|
|
26
|
+
first?: boolean;
|
|
27
|
+
size?: number;
|
|
28
|
+
number?: number;
|
|
29
|
+
sort?: Sort;
|
|
30
|
+
numberOfElements?: number;
|
|
31
|
+
empty?: boolean;
|
|
32
|
+
}
|
package/dist/features/index.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ export * from './announcement';
|
|
|
16
16
|
export * from './results/securityanalysis';
|
|
17
17
|
export * from './results/loadflow';
|
|
18
18
|
export * from './results/utils';
|
|
19
|
+
export * from './results/common';
|
|
20
|
+
export * from './results/shortcircuit';
|
|
19
21
|
export * from './results/constants';
|
|
20
22
|
export * from './process-configs';
|
|
21
23
|
export * from './global-filter';
|
package/dist/features/index.js
CHANGED
|
@@ -207,7 +207,7 @@ import { ShuntCompensatorCreationForm } from "./network-modifications/shunt-comp
|
|
|
207
207
|
import { shuntCompensatorCreationDtoToForm, shuntCompensatorCreationEmptyFormData, shuntCompensatorCreationFormSchema, shuntCompensatorCreationFormToDto } from "./network-modifications/shunt-compensator/creation/shuntCompensatorCreation.utils.js";
|
|
208
208
|
import { ShuntCompensatorModificationForm } from "./network-modifications/shunt-compensator/modification/ShuntCompensatorModificationForm.js";
|
|
209
209
|
import { shuntCompensatorModificationDtoToForm, shuntCompensatorModificationEmptyFormData, shuntCompensatorModificationFormSchema, shuntCompensatorModificationFormToDto } from "./network-modifications/shunt-compensator/modification/shuntCompensatorModification.utils.js";
|
|
210
|
-
import {
|
|
210
|
+
import { getLineCharacteristicsEmptyFormData, getLineCharacteristicsFormData, getLineCharacteristicsValidationSchemaProps } from "./network-modifications/line/characteristics/lineCharacteristicsPane.utils.js";
|
|
211
211
|
import { LineCharacteristicsPane } from "./network-modifications/line/characteristics/LineCharacteristicsPane.js";
|
|
212
212
|
import { CATEGORIES_TABS } from "./network-modifications/line/catalog/lineCatalog.type.js";
|
|
213
213
|
import { LineSegmentsInfoSchema, SegmentCurrentLimitsSchema, SegmentInfoSchema, SegmentSchema, SegmentTemporaryLimitSchema, convertLimitsToOperationalLimitsGroupFormSchema, convertToLineSegmentInfos, convertToLineSegmentsFormData, emptyLineSegment } from "./network-modifications/line/catalog/segment.utils.js";
|
|
@@ -218,6 +218,32 @@ import { LineDialogHeader } from "./network-modifications/line/common/LineDialog
|
|
|
218
218
|
import { LineForm } from "./network-modifications/line/common/LineForm.js";
|
|
219
219
|
import { lineCreationDtoToForm, lineCreationEmptyFormData, lineCreationFormSchema, lineCreationFormToDto } from "./network-modifications/line/creation/lineCreation.utils.js";
|
|
220
220
|
import { lineModificationDtoToForm, lineModificationEmptyFormData, lineModificationFormSchema, lineModificationFormToDto } from "./network-modifications/line/modification/lineModification.utils.js";
|
|
221
|
+
import { TWT_TAB_FIELDS, TwoWindingsTransformerDialogTab } from "./network-modifications/twoWindingsTransformer/common/twoWindingsTransformer.utils.js";
|
|
222
|
+
import { TwoWindingsTransformerDialogHeader } from "./network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogHeader.js";
|
|
223
|
+
import { TwoWindingsTransformerDialogTabs } from "./network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogTabs.js";
|
|
224
|
+
import { TwoWindingsTransformerDialogTabsContent } from "./network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogTabsContent.js";
|
|
225
|
+
import { TwoWindingsTransformerForm } from "./network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerForm.js";
|
|
226
|
+
import { getTwtCharacteristicsEmptyFormData, getTwtCharacteristicsFormData, getTwtCharacteristicsValidationSchemaProps } from "./network-modifications/twoWindingsTransformer/characteristics/twoWindingsTransformerCharacteristicsPane.utils.js";
|
|
227
|
+
import { TwoWindingsTransformerCharacteristicsPane } from "./network-modifications/twoWindingsTransformer/characteristics/TwoWindingsTransformerCharacteristicsPane.js";
|
|
228
|
+
import { compareStepsWithPreviousValues, computeHighTapPosition, getRegulationTypeLabel, getTapChangerEquipmentSectionTypeValue, getTapSideLabel, toTapChangerStepList } from "./network-modifications/twoWindingsTransformer/tapChanger/tapChanger.utils.js";
|
|
229
|
+
import { getCreateRuleEmptyFormData, getCreateRuleValidationSchema } from "./network-modifications/twoWindingsTransformer/tapChanger/regulationRule/regulationRule.utils.js";
|
|
230
|
+
import { CreateRuleDialogSubmitButton } from "./network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleDialogSubmitButton.js";
|
|
231
|
+
import { CreateRuleForm } from "./network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleForm.js";
|
|
232
|
+
import { CreateRuleDialog } from "./network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleDialog.js";
|
|
233
|
+
import { ImportRuleDialog } from "./network-modifications/twoWindingsTransformer/tapChanger/regulationRule/ImportRuleDialog.js";
|
|
234
|
+
import { getComputedPhaseRegulationType, getComputedPhaseRegulationTypeId, getComputedPhaseTapChangerRegulationMode, getComputedPreviousPhaseRegulationType, getPhaseTapChangerEmptyFormData, getPhaseTapChangerFormData, getPhaseTapChangerValidationSchemaProps, getPhaseTapRegulationSideId } from "./network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/phaseTapChanger.utils.js";
|
|
235
|
+
import { PhaseTapChangerPaneSteps } from "./network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/PhaseTapChangerPaneSteps.js";
|
|
236
|
+
import { PhaseTapChangerPane } from "./network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/PhaseTapChangerPane.js";
|
|
237
|
+
import { getComputedPreviousRatioRegulationType, getComputedRegulationMode, getComputedRegulationModeId, getComputedRegulationType, getComputedRegulationTypeId, getComputedTapSide, getComputedTapSideId, getInitialTwtRatioRegulationModeId, getRatioTapChangerEmptyFormData, getRatioTapChangerFormData, getRatioTapChangerValidationSchemaProps } from "./network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/ratioTapChanger.utils.js";
|
|
238
|
+
import { RatioTapChangerPaneSteps } from "./network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/RatioTapChangerPaneSteps.js";
|
|
239
|
+
import { RatioTapChangerPane } from "./network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/RatioTapChangerPane.js";
|
|
240
|
+
import { RegulatedTerminalSection } from "./network-modifications/twoWindingsTransformer/tapChanger/RegulatedTerminalSection.js";
|
|
241
|
+
import { TapChangerSteps } from "./network-modifications/twoWindingsTransformer/tapChanger/TapChangerSteps.js";
|
|
242
|
+
import { PhaseTapChangerRegulationMode } from "./network-modifications/twoWindingsTransformer/creation/twoWindingsTransformerCreation.types.js";
|
|
243
|
+
import { computeRatioTapChangerRegulationMode, getRegulationTypeForEdit, getTapSideForEdit, twoWindingsTransformerCreationDtoToForm, twoWindingsTransformerCreationEmptyFormData, twoWindingsTransformerCreationFormSchema, twoWindingsTransformerCreationFormToDto } from "./network-modifications/twoWindingsTransformer/creation/twoWindingsTransformerCreation.utils.js";
|
|
244
|
+
import { twoWindingsTransformerModificationEmptyFormData, twoWindingsTransformerModificationFormSchema } from "./network-modifications/twoWindingsTransformer/modification/twoWindingsTransformerModification.utils.js";
|
|
245
|
+
import { getToBeEstimatedValidationSchemaObject, toBeEstimatedEmptyFormData } from "./network-modifications/twoWindingsTransformer/modification/measurements/toBeEstimated.utils.js";
|
|
246
|
+
import { ToBeEstimatedForm } from "./network-modifications/twoWindingsTransformer/modification/measurements/ToBeEstimatedForm.js";
|
|
221
247
|
import { StaticVarCompensatorDialogHeader } from "./network-modifications/static-var-compensator/common/static-var-compensator-dialog-header.js";
|
|
222
248
|
import { StaticVarCompensatorDialogTabs } from "./network-modifications/static-var-compensator/common/static-var-compensator-dialog-tabs.js";
|
|
223
249
|
import { STATIC_VAR_COMPENSATOR_TAB_FIELDS, StaticVarCompensatorDialogTab } from "./network-modifications/static-var-compensator/common/static-var-compensator-tab-utils.js";
|
|
@@ -251,9 +277,15 @@ import { useGlobalAnnouncement } from "./announcement/useGlobalAnnouncement.js";
|
|
|
251
277
|
import { SecurityAnalysisResultNmk } from "./results/securityanalysis/security-analysis-result-nmk.js";
|
|
252
278
|
import { SecurityAnalysisTable } from "./results/securityanalysis/security-analysis-table.js";
|
|
253
279
|
import { NmkType } from "./results/securityanalysis/security-analysis.type.js";
|
|
254
|
-
import {
|
|
280
|
+
import { flattenNmKResultsConstraints, flattenNmKResultsContingencies, handlePostSortRows, mapNmKResultsCutOffPower } from "./results/securityanalysis/utils.js";
|
|
255
281
|
import { LimitViolationResult } from "./results/loadflow/limit-violation-result.js";
|
|
256
282
|
import { getNoRowsMessage } from "./results/utils/no-rows-message.js";
|
|
283
|
+
import { RESULT_PAGE_OPTIONS, createMultiEnumFilterParams } from "./results/common/utils.js";
|
|
284
|
+
import { ShortCircuitAnalysisType } from "./results/shortcircuit/shortcircuit-analysis-result.type.js";
|
|
285
|
+
import { ALL_BUSES, FROM_COLUMN_TO_FIELD, FROM_COLUMN_TO_FIELD_ONE_BUS, ONE_BUS, convertFilterValues, mappingTabs } from "./results/shortcircuit/shortcircuit-analysis-result-content.js";
|
|
286
|
+
import { SHORTCIRCUIT_ANALYSIS_RESULT_SORT_STORE, ShortCircuitAnalysisResultTable, numericFilterParams, resultsStyles, textFilterParams } from "./results/shortcircuit/shortcircuit-analysis-result-table.js";
|
|
287
|
+
import { ShortCircuitAnalysisResult } from "./results/shortcircuit/shortcircuit-analysis-result.js";
|
|
288
|
+
import { ShortCircuitAnalysisAllBusesResult } from "./results/shortcircuit/shortcircuit-analysis-all-buses-result.js";
|
|
257
289
|
import { RESULTS_LOADING_DELAY } from "./results/constants.js";
|
|
258
290
|
import { ProcessType } from "./process-configs/common/process-config.type.js";
|
|
259
291
|
import { emptyProcessConfigModificationsFormData, getProcessConfigModificationsBackendFromFormData, getProcessConfigModificationsFormData, processConfigModificationsShape } from "./process-configs/common/process-config-modifications-edition.utils.js";
|
|
@@ -275,6 +307,7 @@ import { useIntlResultStatusMessages } from "./results/hooks/useIntlResultStatus
|
|
|
275
307
|
export {
|
|
276
308
|
ACCURACY,
|
|
277
309
|
ADVANCED_PARAMETERS,
|
|
310
|
+
ALL_BUSES,
|
|
278
311
|
APPLICABILITY,
|
|
279
312
|
AUTO_EXTENSIBLE_COLUMNS,
|
|
280
313
|
AboutDialog,
|
|
@@ -327,6 +360,9 @@ export {
|
|
|
327
360
|
ContingencyTable,
|
|
328
361
|
CouplingDeviceCreationForm,
|
|
329
362
|
CreateParameterDialog,
|
|
363
|
+
CreateRuleDialog,
|
|
364
|
+
CreateRuleDialogSubmitButton,
|
|
365
|
+
CreateRuleForm,
|
|
330
366
|
CreateVoltageLevelTopologyForm,
|
|
331
367
|
CustomVoltageLevelTable,
|
|
332
368
|
CustomVoltageLevelTableCell,
|
|
@@ -365,6 +401,8 @@ export {
|
|
|
365
401
|
ErrorInUserValidationAlert,
|
|
366
402
|
FLOW_PROPORTIONAL_THRESHOLD,
|
|
367
403
|
FORMULAS,
|
|
404
|
+
FROM_COLUMN_TO_FIELD,
|
|
405
|
+
FROM_COLUMN_TO_FIELD_ONE_BUS,
|
|
368
406
|
GENERAL,
|
|
369
407
|
GENERAL_APPLY_MODIFICATIONS,
|
|
370
408
|
GENERATORS_SELECTION_TYPE,
|
|
@@ -391,6 +429,7 @@ export {
|
|
|
391
429
|
INTL_LINE_FLOW_MODE_OPTIONS,
|
|
392
430
|
INTL_SUBSTATION_LAYOUT_OPTIONS,
|
|
393
431
|
IST_FORM,
|
|
432
|
+
ImportRuleDialog,
|
|
394
433
|
InitialVoltage,
|
|
395
434
|
LEG_SIDE,
|
|
396
435
|
LFProcessConfigEditionDialog,
|
|
@@ -473,11 +512,11 @@ export {
|
|
|
473
512
|
NmkType,
|
|
474
513
|
NotificationsContext,
|
|
475
514
|
NotificationsProvider,
|
|
515
|
+
ONE_BUS,
|
|
476
516
|
OPERATIONAL_LIMITS_GROUPS_MODIFICATION_TYPE,
|
|
477
517
|
OPERATOR,
|
|
478
518
|
OperationalLimitsGroupTabLabel,
|
|
479
519
|
OperationalLimitsGroups,
|
|
480
|
-
PAGE_OPTIONS,
|
|
481
520
|
PARAM_CENTER_LABEL,
|
|
482
521
|
PARAM_COMPONENT_LIBRARY,
|
|
483
522
|
PARAM_DIAGONAL_LABEL,
|
|
@@ -505,6 +544,9 @@ export {
|
|
|
505
544
|
ParameterSwitch,
|
|
506
545
|
PccMinParametersEditionDialog,
|
|
507
546
|
PccMinParametersInLine,
|
|
547
|
+
PhaseTapChangerPane,
|
|
548
|
+
PhaseTapChangerPaneSteps,
|
|
549
|
+
PhaseTapChangerRegulationMode,
|
|
508
550
|
PowerMeasurementsForm,
|
|
509
551
|
PowerWithValidityForm,
|
|
510
552
|
PredefinedParameters,
|
|
@@ -524,10 +566,14 @@ export {
|
|
|
524
566
|
REGULATION_TYPES,
|
|
525
567
|
REMOVE,
|
|
526
568
|
RESULTS_LOADING_DELAY,
|
|
569
|
+
RESULT_PAGE_OPTIONS,
|
|
570
|
+
RatioTapChangerPane,
|
|
571
|
+
RatioTapChangerPaneSteps,
|
|
527
572
|
ReactiveCapabilityCurveRowForm,
|
|
528
573
|
ReactiveCapabilityCurveTableForm,
|
|
529
574
|
ReactiveLimitsForm,
|
|
530
575
|
ReferenceCellRenderer,
|
|
576
|
+
RegulatedTerminalSection,
|
|
531
577
|
RegulatingTerminalForm,
|
|
532
578
|
RenderTableAndExportCsv,
|
|
533
579
|
RootNetworkCellRenderer,
|
|
@@ -537,6 +583,7 @@ export {
|
|
|
537
583
|
SCENARIO_DURATION,
|
|
538
584
|
SELECTION_TYPE,
|
|
539
585
|
SENSITIVITY_TYPES,
|
|
586
|
+
SHORTCIRCUIT_ANALYSIS_RESULT_SORT_STORE,
|
|
540
587
|
SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE,
|
|
541
588
|
SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS,
|
|
542
589
|
SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER,
|
|
@@ -579,6 +626,10 @@ export {
|
|
|
579
626
|
SensitivityAnalysisParametersDialog,
|
|
580
627
|
SensitivityAnalysisParametersInline,
|
|
581
628
|
SetPointsForm,
|
|
629
|
+
ShortCircuitAnalysisAllBusesResult,
|
|
630
|
+
ShortCircuitAnalysisResult,
|
|
631
|
+
ShortCircuitAnalysisResultTable,
|
|
632
|
+
ShortCircuitAnalysisType,
|
|
582
633
|
ShortCircuitForm,
|
|
583
634
|
ShortCircuitParametersEditionDialog,
|
|
584
635
|
ShortCircuitParametersInLine,
|
|
@@ -602,10 +653,19 @@ export {
|
|
|
602
653
|
TEMPORARY_LIMIT_MODIFICATION_TYPE,
|
|
603
654
|
TRANSFORMERS_SELECTION_TYPE,
|
|
604
655
|
TWT_SPLIT_SHUNT_ADMITTANCE,
|
|
656
|
+
TWT_TAB_FIELDS,
|
|
605
657
|
TabPanel,
|
|
606
658
|
TabValues,
|
|
659
|
+
TapChangerSteps,
|
|
607
660
|
TemporaryLimitsTable,
|
|
661
|
+
ToBeEstimatedForm,
|
|
608
662
|
TopBar,
|
|
663
|
+
TwoWindingsTransformerCharacteristicsPane,
|
|
664
|
+
TwoWindingsTransformerDialogHeader,
|
|
665
|
+
TwoWindingsTransformerDialogTab,
|
|
666
|
+
TwoWindingsTransformerDialogTabs,
|
|
667
|
+
TwoWindingsTransformerDialogTabsContent,
|
|
668
|
+
TwoWindingsTransformerForm,
|
|
609
669
|
UPDATE_BUS_VOLTAGE,
|
|
610
670
|
USE_REACTIVE_LIMITS,
|
|
611
671
|
UnauthorizedAccessAlert,
|
|
@@ -650,9 +710,13 @@ export {
|
|
|
650
710
|
byFilterDeletionFormSchema,
|
|
651
711
|
byFilterDeletionFormToDto,
|
|
652
712
|
clearSelectedGlobalFiltersFromTableState,
|
|
713
|
+
compareStepsWithPreviousValues,
|
|
714
|
+
computeHighTapPosition,
|
|
653
715
|
computeQ0,
|
|
716
|
+
computeRatioTapChangerRegulationMode,
|
|
654
717
|
computeSwitchedOnValue,
|
|
655
718
|
computeTagMinSize,
|
|
719
|
+
convertFilterValues,
|
|
656
720
|
convertLimitsToOperationalLimitsGroupFormSchema,
|
|
657
721
|
convertToLineSegmentInfos,
|
|
658
722
|
convertToLineSegmentsFormData,
|
|
@@ -668,6 +732,7 @@ export {
|
|
|
668
732
|
createEditDescriptionStyle,
|
|
669
733
|
createHeaderCellStyle,
|
|
670
734
|
createModificationNameCellStyle,
|
|
735
|
+
createMultiEnumFilterParams,
|
|
671
736
|
createNameCellLabelBoxSx,
|
|
672
737
|
createNameCellRootStyle,
|
|
673
738
|
createPropertyModification,
|
|
@@ -731,7 +796,17 @@ export {
|
|
|
731
796
|
getCharacteristicsEmptyFormData,
|
|
732
797
|
getCharacteristicsFormData,
|
|
733
798
|
getCharacteristicsFormValidationSchema,
|
|
734
|
-
|
|
799
|
+
getComputedPhaseRegulationType,
|
|
800
|
+
getComputedPhaseRegulationTypeId,
|
|
801
|
+
getComputedPhaseTapChangerRegulationMode,
|
|
802
|
+
getComputedPreviousPhaseRegulationType,
|
|
803
|
+
getComputedPreviousRatioRegulationType,
|
|
804
|
+
getComputedRegulationMode,
|
|
805
|
+
getComputedRegulationModeId,
|
|
806
|
+
getComputedRegulationType,
|
|
807
|
+
getComputedRegulationTypeId,
|
|
808
|
+
getComputedTapSide,
|
|
809
|
+
getComputedTapSideId,
|
|
735
810
|
getCon1andCon2WithPositionValidationSchema,
|
|
736
811
|
getConcatenatedProperties,
|
|
737
812
|
getConnectivityBusBarSectionData,
|
|
@@ -750,6 +825,8 @@ export {
|
|
|
750
825
|
getConnectivityWithoutPositionValidationSchema,
|
|
751
826
|
getCont1Cont2WithPositionEmptyFormData,
|
|
752
827
|
getContingencyListsInfosFormSchema,
|
|
828
|
+
getCreateRuleEmptyFormData,
|
|
829
|
+
getCreateRuleValidationSchema,
|
|
753
830
|
getCreateSwitchesEmptyFormData,
|
|
754
831
|
getCreateSwitchesValidationSchema,
|
|
755
832
|
getFilledPropertiesFromModification,
|
|
@@ -757,6 +834,7 @@ export {
|
|
|
757
834
|
getFormulaSchema,
|
|
758
835
|
getGlobalFilterId,
|
|
759
836
|
getHvdcLccDeletionSchema,
|
|
837
|
+
getInitialTwtRatioRegulationModeId,
|
|
760
838
|
getInjectionActiveReactivePowerEditDataProperties,
|
|
761
839
|
getInjectionActiveReactivePowerEmptyFormData,
|
|
762
840
|
getInjectionActiveReactivePowerEmptyFormDataProperties,
|
|
@@ -773,6 +851,10 @@ export {
|
|
|
773
851
|
getNewVoltageLevelData,
|
|
774
852
|
getNoRowsMessage,
|
|
775
853
|
getOptionLabel,
|
|
854
|
+
getPhaseTapChangerEmptyFormData,
|
|
855
|
+
getPhaseTapChangerFormData,
|
|
856
|
+
getPhaseTapChangerValidationSchemaProps,
|
|
857
|
+
getPhaseTapRegulationSideId,
|
|
776
858
|
getPowerWithValidityEditData,
|
|
777
859
|
getPowerWithValidityEmptyFormData,
|
|
778
860
|
getPowerWithValidityValidationSchema,
|
|
@@ -782,6 +864,9 @@ export {
|
|
|
782
864
|
getPropertiesFromModification,
|
|
783
865
|
getPropertyAvatar,
|
|
784
866
|
getPropertyValue,
|
|
867
|
+
getRatioTapChangerEmptyFormData,
|
|
868
|
+
getRatioTapChangerFormData,
|
|
869
|
+
getRatioTapChangerValidationSchemaProps,
|
|
785
870
|
getReactiveCapabilityCurveValidationSchema,
|
|
786
871
|
getReactiveCapabilityCurveValidationSchemaArray,
|
|
787
872
|
getReactiveFormData,
|
|
@@ -798,6 +883,8 @@ export {
|
|
|
798
883
|
getRegulatingTerminalEquipmentData,
|
|
799
884
|
getRegulatingTerminalFormData,
|
|
800
885
|
getRegulatingTerminalVoltageLevelData,
|
|
886
|
+
getRegulationTypeForEdit,
|
|
887
|
+
getRegulationTypeLabel,
|
|
801
888
|
getRowEmptyFormData,
|
|
802
889
|
getSetPointsEmptyFormData,
|
|
803
890
|
getSetPointsSchema,
|
|
@@ -809,6 +896,13 @@ export {
|
|
|
809
896
|
getStandbyAutomatonFormValidationSchema,
|
|
810
897
|
getTabIndicatorStyle,
|
|
811
898
|
getTabStyle,
|
|
899
|
+
getTapChangerEquipmentSectionTypeValue,
|
|
900
|
+
getTapSideForEdit,
|
|
901
|
+
getTapSideLabel,
|
|
902
|
+
getToBeEstimatedValidationSchemaObject,
|
|
903
|
+
getTwtCharacteristicsEmptyFormData,
|
|
904
|
+
getTwtCharacteristicsFormData,
|
|
905
|
+
getTwtCharacteristicsValidationSchemaProps,
|
|
812
906
|
getVoltageRegulationEmptyFormData,
|
|
813
907
|
getVoltageRegulationSchema,
|
|
814
908
|
handlePostSortRows,
|
|
@@ -849,6 +943,7 @@ export {
|
|
|
849
943
|
logout,
|
|
850
944
|
mapNmKResultsCutOffPower,
|
|
851
945
|
mapServerLimitsGroupsToFormInfos,
|
|
946
|
+
mappingTabs,
|
|
852
947
|
markEditingGlobalFilter,
|
|
853
948
|
markNotFoundGlobalFiltersAsDeletedInState,
|
|
854
949
|
mergeModificationAndEquipmentProperties,
|
|
@@ -863,11 +958,13 @@ export {
|
|
|
863
958
|
moveSubModificationInTree,
|
|
864
959
|
networkModificationTableStyles,
|
|
865
960
|
newEquipmentDeletionDto,
|
|
961
|
+
numericFilterParams,
|
|
866
962
|
onlyStartedGeneratorsOptions,
|
|
867
963
|
parametersStyles,
|
|
868
964
|
processConfigModificationsShape,
|
|
869
965
|
removeSelectedGlobalFiltersFromTableState,
|
|
870
966
|
removeUuidsFromTree,
|
|
967
|
+
resultsStyles,
|
|
871
968
|
sanitizeLimitNames,
|
|
872
969
|
sanitizeLimitsGroups,
|
|
873
970
|
sanitizePercentageValue,
|
|
@@ -896,12 +993,21 @@ export {
|
|
|
896
993
|
substationModificationFormToDto,
|
|
897
994
|
syncGlobalFilters,
|
|
898
995
|
testValueWithinPowerInterval,
|
|
996
|
+
textFilterParams,
|
|
997
|
+
toBeEstimatedEmptyFormData,
|
|
899
998
|
toFormValuesContingencyListsInfos,
|
|
900
999
|
toFormValuesLimitReductions,
|
|
901
1000
|
toModificationProperties,
|
|
902
1001
|
toReactiveCapabilityCurveChoiceForGeneratorCreation,
|
|
903
1002
|
toReactiveCapabilityCurveChoiceForGeneratorModification,
|
|
1003
|
+
toTapChangerStepList,
|
|
904
1004
|
translateSwitchKinds,
|
|
1005
|
+
twoWindingsTransformerCreationDtoToForm,
|
|
1006
|
+
twoWindingsTransformerCreationEmptyFormData,
|
|
1007
|
+
twoWindingsTransformerCreationFormSchema,
|
|
1008
|
+
twoWindingsTransformerCreationFormToDto,
|
|
1009
|
+
twoWindingsTransformerModificationEmptyFormData,
|
|
1010
|
+
twoWindingsTransformerModificationFormSchema,
|
|
905
1011
|
unmarkEditingGlobalFilter,
|
|
906
1012
|
updateModificationFieldInTree,
|
|
907
1013
|
updateSubModificationsOfACompositeInTree,
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ModificationType } from '../../../../utils';
|
|
2
|
+
import { Property } from '../../common/properties/properties.type';
|
|
3
|
+
import { OperationalLimitsGroupFormSchema } from '../../common/currentLimits/operationalLimitsGroups/operationalLimitsGroups.types';
|
|
4
|
+
export interface BranchCreationDto {
|
|
5
|
+
type: ModificationType;
|
|
6
|
+
equipmentId: string;
|
|
7
|
+
equipmentName: string | null;
|
|
8
|
+
properties: Property[] | null;
|
|
9
|
+
r: number | null;
|
|
10
|
+
x: number | null;
|
|
11
|
+
voltageLevelId1: string | null;
|
|
12
|
+
voltageLevelId2: string | null;
|
|
13
|
+
busOrBusbarSectionId1: string | null;
|
|
14
|
+
busOrBusbarSectionId2: string | null;
|
|
15
|
+
operationalLimitsGroups: OperationalLimitsGroupFormSchema[];
|
|
16
|
+
selectedOperationalLimitsGroupId1?: string | null;
|
|
17
|
+
selectedOperationalLimitsGroupId2?: string | null;
|
|
18
|
+
connectionName1: string | null;
|
|
19
|
+
connectionDirection1?: string | null;
|
|
20
|
+
connectionName2: string | null;
|
|
21
|
+
connectionDirection2?: string | null;
|
|
22
|
+
connectionPosition1?: number | null;
|
|
23
|
+
connectionPosition2?: number | null;
|
|
24
|
+
connected1?: boolean | null;
|
|
25
|
+
connected2?: boolean | null;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Property } from '../../common/properties/properties.type';
|
|
2
|
+
import { AttributeModification, ModificationType } from '../../../../utils';
|
|
3
|
+
import { OperationalLimitsGroup } from '../../common/currentLimits/operationalLimitsGroups/operationalLimitsGroups.types';
|
|
4
|
+
export interface BranchModificationDto {
|
|
5
|
+
type: ModificationType;
|
|
6
|
+
equipmentId: string;
|
|
7
|
+
equipmentName: AttributeModification<string> | null;
|
|
8
|
+
properties: Property[] | null;
|
|
9
|
+
r: AttributeModification<number> | null;
|
|
10
|
+
x: AttributeModification<number> | null;
|
|
11
|
+
operationalLimitsGroupsModificationType: 'MODIFY' | 'REPLACE' | null;
|
|
12
|
+
enableOLGModification: boolean;
|
|
13
|
+
operationalLimitsGroups: OperationalLimitsGroup[];
|
|
14
|
+
selectedOperationalLimitsGroupId1: AttributeModification<string> | null;
|
|
15
|
+
selectedOperationalLimitsGroupId2: AttributeModification<string> | null;
|
|
16
|
+
voltageLevelId1: AttributeModification<string> | null;
|
|
17
|
+
voltageLevelId2: AttributeModification<string> | null;
|
|
18
|
+
busOrBusbarSectionId1: AttributeModification<string> | null;
|
|
19
|
+
busOrBusbarSectionId2: AttributeModification<string> | null;
|
|
20
|
+
connectionName1: AttributeModification<string> | null;
|
|
21
|
+
connectionName2: AttributeModification<string> | null;
|
|
22
|
+
connectionDirection1: AttributeModification<string> | null;
|
|
23
|
+
connectionDirection2: AttributeModification<string> | null;
|
|
24
|
+
connectionPosition1: AttributeModification<number> | null;
|
|
25
|
+
connectionPosition2: AttributeModification<number> | null;
|
|
26
|
+
terminal1Connected: AttributeModification<boolean> | null;
|
|
27
|
+
terminal2Connected: AttributeModification<boolean> | null;
|
|
28
|
+
p1MeasurementValue: AttributeModification<number> | null;
|
|
29
|
+
p1MeasurementValidity: AttributeModification<boolean> | null;
|
|
30
|
+
q1MeasurementValue: AttributeModification<number> | null;
|
|
31
|
+
q1MeasurementValidity: AttributeModification<boolean> | null;
|
|
32
|
+
p2MeasurementValue: AttributeModification<number> | null;
|
|
33
|
+
p2MeasurementValidity: AttributeModification<boolean> | null;
|
|
34
|
+
q2MeasurementValue: AttributeModification<number> | null;
|
|
35
|
+
q2MeasurementValidity: AttributeModification<boolean> | null;
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -4,11 +4,5 @@
|
|
|
4
4
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
5
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
x: number | null;
|
|
10
|
-
g1: number | null;
|
|
11
|
-
b1: number | null;
|
|
12
|
-
g2: number | null;
|
|
13
|
-
b2: number | null;
|
|
14
|
-
}
|
|
7
|
+
export * from './branchCreation.types';
|
|
8
|
+
export * from './branchModification.types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/dist/features/network-modifications/common/connectivity/VoltageLevelConnectivityForm.js
CHANGED
|
@@ -128,7 +128,8 @@ function VoltageLevelConnectivityForm({
|
|
|
128
128
|
label: voltageLevelSelectLabel,
|
|
129
129
|
options: vlOptions,
|
|
130
130
|
getOptionLabel: getObjectId,
|
|
131
|
-
size: "small"
|
|
131
|
+
size: "small",
|
|
132
|
+
dataTestId: "VoltageLevelInput"
|
|
132
133
|
}
|
|
133
134
|
) }),
|
|
134
135
|
/* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(
|
|
@@ -150,7 +151,8 @@ function VoltageLevelConnectivityForm({
|
|
|
150
151
|
}
|
|
151
152
|
return value;
|
|
152
153
|
},
|
|
153
|
-
size: "small"
|
|
154
|
+
size: "small",
|
|
155
|
+
dataTestId: "BusBarSectionInput"
|
|
154
156
|
}
|
|
155
157
|
) })
|
|
156
158
|
] });
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InferType } from 'yup';
|
|
1
2
|
import { VoltageLevelFormInfos } from '../../voltageLevel/voltage-level.type';
|
|
2
3
|
import { FieldConstants } from '../../../../utils';
|
|
3
4
|
export declare const getConnectivityPropertiesValidationSchema: (isEquipmentModification?: boolean, displayConnectivity?: boolean) => {
|
|
@@ -111,6 +112,7 @@ export declare const getBranchConnectivityWithPositionSchema: (isEquipmentModifi
|
|
|
111
112
|
terminalConnected: undefined;
|
|
112
113
|
};
|
|
113
114
|
}, "">;
|
|
115
|
+
export type BranchConnectivityFormData = InferType<ReturnType<typeof getBranchConnectivityWithPositionSchema>>;
|
|
114
116
|
export declare const getCon1andCon2WithPositionValidationSchema: (isEquipmentModification?: boolean, id?: FieldConstants) => {
|
|
115
117
|
[x: string]: import('yup').ObjectSchema<{
|
|
116
118
|
[x: string]: {
|
|
@@ -35,6 +35,7 @@ export interface CurrentLimitsData {
|
|
|
35
35
|
limitsProperties?: LimitsProperty[];
|
|
36
36
|
permanentLimit: number;
|
|
37
37
|
temporaryLimits: TemporaryLimitsData[];
|
|
38
|
+
temporaryLimitsByName?: Record<string, TemporaryLimitsData>;
|
|
38
39
|
}
|
|
39
40
|
export interface Limit {
|
|
40
41
|
name: AttributeModification<string> | null;
|
|
@@ -172,8 +172,8 @@ export declare const getAllLimitsFormDataProperties: (operationalLimitsGroups?:
|
|
|
172
172
|
selectedOperationalLimitsGroupId2: string | null;
|
|
173
173
|
enableOLGModification: boolean;
|
|
174
174
|
};
|
|
175
|
-
export declare const getAllLimitsFormData: (operationalLimitsGroups?: OperationalLimitsGroupFormSchema[], selectedOperationalLimitsGroupId1?: string | null, selectedOperationalLimitsGroupId2?: string | null, enableOLGModification?: boolean | null, id?: FieldConstants) => {
|
|
176
|
-
|
|
175
|
+
export declare const getAllLimitsFormData: (operationalLimitsGroups?: OperationalLimitsGroupFormSchema[], selectedOperationalLimitsGroupId1?: string | null, selectedOperationalLimitsGroupId2?: string | null, enableOLGModification?: boolean | null, id?: typeof FieldConstants.LIMITS) => {
|
|
176
|
+
limits: {
|
|
177
177
|
operationalLimitsGroups: OperationalLimitsGroupFormSchema[];
|
|
178
178
|
selectedOperationalLimitsGroupId1: string | null;
|
|
179
179
|
selectedOperationalLimitsGroupId2: string | null;
|
|
@@ -3,9 +3,9 @@ import { FieldConstants } from "../../../../../utils/constants/fieldConstants.js
|
|
|
3
3
|
import { YUP_REQUIRED } from "../../../../../utils/constants/translationKeys.js";
|
|
4
4
|
import "../../../../../utils/conversionUtils.js";
|
|
5
5
|
import "../../../../../utils/types/equipmentType.js";
|
|
6
|
+
import { validateValueIsANumber, toNumber } from "../../../../../utils/validation-functions.js";
|
|
6
7
|
import "react/jsx-runtime";
|
|
7
8
|
import "@mui/icons-material";
|
|
8
|
-
import { validateValueIsANumber, toNumber } from "../../../../../utils/validation-functions.js";
|
|
9
9
|
const INSERT = "INSERT";
|
|
10
10
|
const REMOVE = "REMOVE";
|
|
11
11
|
const getCreationRowSchema = () => object().shape({
|
package/dist/features/network-modifications/common/regulatingTerminal/regulatingTerminal.utils.d.ts
CHANGED
|
@@ -30,13 +30,13 @@ export declare const getRegulatingTerminalEquipmentData: ({ equipmentId, equipme
|
|
|
30
30
|
name: string | null;
|
|
31
31
|
type: string;
|
|
32
32
|
} | null;
|
|
33
|
-
export declare const getRegulatingTerminalFormData: ({ voltageLevelId, voltageLevelName, voltageLevelNominalVoltage, voltageLevelSubstationId, voltageLevelTopologyKind,
|
|
33
|
+
export declare const getRegulatingTerminalFormData: ({ voltageLevelId, voltageLevelName, voltageLevelNominalVoltage, voltageLevelSubstationId, voltageLevelTopologyKind, equipmentID, equipmentName, equipmentType, }: {
|
|
34
34
|
voltageLevelId?: string | null;
|
|
35
35
|
voltageLevelName?: string;
|
|
36
36
|
voltageLevelSubstationId?: string;
|
|
37
37
|
voltageLevelNominalVoltage?: string;
|
|
38
38
|
voltageLevelTopologyKind?: string;
|
|
39
|
-
|
|
39
|
+
equipmentID?: string | null;
|
|
40
40
|
equipmentName?: string | null;
|
|
41
41
|
equipmentType?: string;
|
|
42
42
|
}) => {
|
package/dist/features/network-modifications/common/regulatingTerminal/regulatingTerminal.utils.js
CHANGED
|
@@ -46,7 +46,7 @@ const getRegulatingTerminalFormData = ({
|
|
|
46
46
|
voltageLevelNominalVoltage,
|
|
47
47
|
voltageLevelSubstationId,
|
|
48
48
|
voltageLevelTopologyKind,
|
|
49
|
-
|
|
49
|
+
equipmentID = null,
|
|
50
50
|
equipmentName,
|
|
51
51
|
equipmentType
|
|
52
52
|
}) => ({
|
|
@@ -58,7 +58,7 @@ const getRegulatingTerminalFormData = ({
|
|
|
58
58
|
voltageLevelTopologyKind
|
|
59
59
|
}),
|
|
60
60
|
[FieldConstants.EQUIPMENT]: getRegulatingTerminalEquipmentData({
|
|
61
|
-
equipmentId,
|
|
61
|
+
equipmentId: equipmentID,
|
|
62
62
|
equipmentName,
|
|
63
63
|
equipmentType
|
|
64
64
|
})
|