@gridsuite/commons-ui 0.267.0 → 0.268.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/composite/grid/grid-section.d.ts +5 -2
- package/dist/components/composite/grid/grid-section.js +56 -4
- package/dist/components/ui/reactHookForm/booleans/BooleanInput.js +1 -1
- package/dist/features/common/index.d.ts +7 -0
- package/dist/features/common/index.js +4 -0
- package/dist/features/common/renderTable-ExportCsv.d.ts +18 -0
- package/dist/features/common/renderTable-ExportCsv.js +136 -0
- package/dist/features/index.d.ts +5 -0
- package/dist/features/index.js +43 -2
- package/dist/features/network-modifications/index.d.ts +1 -0
- package/dist/features/network-modifications/index.js +33 -1
- package/dist/features/network-modifications/static-var-compensator/common/constants.d.ts +20 -0
- package/dist/features/network-modifications/static-var-compensator/common/constants.js +9 -0
- package/dist/features/network-modifications/static-var-compensator/common/index.d.ts +13 -0
- package/dist/features/network-modifications/static-var-compensator/common/index.js +20 -0
- package/dist/features/network-modifications/static-var-compensator/common/set-points-limits-form-utils.d.ts +91 -0
- package/dist/features/network-modifications/static-var-compensator/common/set-points-limits-form-utils.js +166 -0
- package/dist/features/network-modifications/static-var-compensator/common/set-points-limits-form.d.ts +8 -0
- package/dist/features/network-modifications/static-var-compensator/common/set-points-limits-form.js +200 -0
- package/dist/features/network-modifications/static-var-compensator/common/standby-automaton-form-utils.d.ts +66 -0
- package/dist/features/network-modifications/static-var-compensator/common/standby-automaton-form-utils.js +149 -0
- package/dist/features/network-modifications/static-var-compensator/common/standby-automaton-form.d.ts +7 -0
- package/dist/features/network-modifications/static-var-compensator/common/standby-automaton-form.js +153 -0
- package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-dialog-header.d.ts +7 -0
- package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-dialog-header.js +72 -0
- package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-dialog-tabs.d.ts +7 -0
- package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-dialog-tabs.js +44 -0
- package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-tab-utils.d.ts +8 -0
- package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-tab-utils.js +34 -0
- package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-tabs-content.d.ts +9 -0
- package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-tabs-content.js +100 -0
- package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator.types.d.ts +68 -0
- package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator.types.js +1 -0
- package/dist/features/network-modifications/static-var-compensator/common/susceptance-area.d.ts +7 -0
- package/dist/features/network-modifications/static-var-compensator/common/susceptance-area.js +161 -0
- package/dist/features/network-modifications/static-var-compensator/creation/index.d.ts +9 -0
- package/dist/features/network-modifications/static-var-compensator/creation/index.js +9 -0
- package/dist/features/network-modifications/static-var-compensator/creation/static-var-compensator-creation-form.d.ts +8 -0
- package/dist/features/network-modifications/static-var-compensator/creation/static-var-compensator-creation-form.js +105 -0
- package/dist/features/network-modifications/static-var-compensator/creation/static-var-compensator-creation-utils.d.ts +114 -0
- package/dist/features/network-modifications/static-var-compensator/creation/static-var-compensator-creation-utils.js +189 -0
- package/dist/features/network-modifications/static-var-compensator/creation/static-var-compensator-creation.types.d.ts +34 -0
- package/dist/features/network-modifications/static-var-compensator/creation/static-var-compensator-creation.types.js +1 -0
- package/dist/features/network-modifications/static-var-compensator/index.d.ts +8 -0
- package/dist/features/network-modifications/static-var-compensator/index.js +27 -0
- package/dist/features/network-modifications/voltageLevel/coupling-device/coupling-device-creation-form.d.ts +8 -0
- package/dist/features/network-modifications/voltageLevel/coupling-device/coupling-device-creation-form.js +153 -0
- package/dist/features/network-modifications/voltageLevel/coupling-device/coupling-device-creation-utils.d.ts +20 -0
- package/dist/features/network-modifications/voltageLevel/coupling-device/coupling-device-creation-utils.js +40 -0
- package/dist/features/network-modifications/voltageLevel/coupling-device/coupling-device-creation.types.d.ts +11 -0
- package/dist/features/network-modifications/voltageLevel/coupling-device/coupling-device-creation.types.js +1 -0
- package/dist/features/network-modifications/voltageLevel/coupling-device/index.d.ts +3 -0
- package/dist/features/network-modifications/voltageLevel/coupling-device/index.js +9 -0
- package/dist/features/network-modifications/voltageLevel/creation/index.js +1 -1
- package/dist/features/network-modifications/voltageLevel/index.d.ts +1 -0
- package/dist/features/network-modifications/voltageLevel/index.js +8 -1
- package/dist/features/network-modifications/voltageLevel/topology/CreateVoltageLevelTopologyForm.js +12 -2
- package/dist/features/network-modifications/voltageLevel/topology/voltageLevelTopologyCreation.types.d.ts +1 -1
- package/dist/features/network-modifications/voltageLevel/topology/voltageLevelTopologyCreation.utils.d.ts +3 -3
- package/dist/features/results/constants.d.ts +7 -0
- package/dist/features/results/constants.js +4 -0
- package/dist/features/results/hooks/index.d.ts +7 -0
- package/dist/features/results/hooks/index.js +4 -0
- package/dist/features/results/hooks/useIntlResultStatusMessages.d.ts +19 -0
- package/dist/features/results/hooks/useIntlResultStatusMessages.js +23 -0
- package/dist/features/results/loadflow/index.d.ts +8 -0
- package/dist/features/results/loadflow/index.js +4 -0
- package/dist/features/results/loadflow/limit-violation-result.d.ts +2 -0
- package/dist/features/results/loadflow/limit-violation-result.js +134 -0
- package/dist/features/results/loadflow/load-flow-result.type.d.ts +29 -0
- package/dist/features/results/loadflow/load-flow-result.type.js +1 -0
- package/dist/features/results/securityanalysis/index.js +1 -2
- package/dist/features/results/securityanalysis/security-analysis-result-nmk.js +2 -1
- package/dist/features/results/securityanalysis/utils.d.ts +0 -2
- package/dist/features/results/securityanalysis/utils.js +0 -22
- package/dist/features/results/utils/index.d.ts +7 -0
- package/dist/features/results/utils/index.js +4 -0
- package/dist/features/results/utils/no-rows-message.d.ts +2 -0
- package/dist/features/results/utils/no-rows-message.js +24 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +2 -0
- package/dist/hooks/useOpenLoaderShortWait.d.ts +18 -0
- package/dist/hooks/useOpenLoaderShortWait.js +19 -0
- package/dist/index.js +46 -1
- package/dist/translations/en/networkModificationsEn.d.ts +28 -0
- package/dist/translations/en/networkModificationsEn.js +30 -1
- package/dist/translations/fr/networkModificationsFr.d.ts +28 -0
- package/dist/translations/fr/networkModificationsFr.js +30 -1
- package/dist/utils/constants/fieldConstants.d.ts +19 -1
- package/dist/utils/constants/fieldConstants.js +18 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +2 -0
- package/package.json +1 -1
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { SxStyle } from '../../../utils
|
|
1
|
+
import { SxStyle } from '../../../utils';
|
|
2
2
|
export interface GridSectionProps {
|
|
3
3
|
title: string;
|
|
4
4
|
heading?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
5
5
|
size?: number;
|
|
6
6
|
customStyle?: SxStyle;
|
|
7
|
+
tooltipEnabled?: boolean;
|
|
8
|
+
tooltipMessage?: string;
|
|
9
|
+
isLiteralText?: boolean;
|
|
7
10
|
}
|
|
8
|
-
export declare function GridSection({ title, heading, size, customStyle }: Readonly<GridSectionProps>): import("react").JSX.Element;
|
|
11
|
+
export declare function GridSection({ title, heading, size, customStyle, tooltipEnabled, tooltipMessage, isLiteralText, }: Readonly<GridSectionProps>): import("react").JSX.Element;
|
|
@@ -1,8 +1,60 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Grid, Box } from "@mui/material";
|
|
3
|
-
import { FormattedMessage } from "react-intl";
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import { useIntl, FormattedMessage } from "react-intl";
|
|
4
|
+
import { InfoOutlined } from "@mui/icons-material";
|
|
5
|
+
import "../../../utils/conversionUtils.js";
|
|
6
|
+
import "../../../utils/types/equipmentType.js";
|
|
7
|
+
import { mergeSx } from "../../../utils/styles.js";
|
|
8
|
+
import "../../ui/overflowableText/OverflowableText.js";
|
|
9
|
+
import "react";
|
|
10
|
+
import "react-hook-form";
|
|
11
|
+
import "localized-countries";
|
|
12
|
+
import "localized-countries/data/fr";
|
|
13
|
+
import "localized-countries/data/en";
|
|
14
|
+
import "notistack";
|
|
15
|
+
import "../../ui/reactHookForm/provider/CustomFormProvider.js";
|
|
16
|
+
import "yup";
|
|
17
|
+
import { CustomTooltip } from "../../ui/tooltip/CustomTooltip.js";
|
|
18
|
+
import "../../ui/treeViewFinder/TreeViewFinder.js";
|
|
19
|
+
import "../../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 "../../ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
26
|
+
import "../../ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
27
|
+
import "../../ui/reactHookForm/directory-item-input/directory-item-utils.js";
|
|
28
|
+
import "@hello-pangea/dnd";
|
|
29
|
+
import "../../ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
30
|
+
import "../../ui/snackbarProvider/SnackbarProvider.js";
|
|
31
|
+
import "mui-nested-menu";
|
|
32
|
+
import "react-resizable-panels";
|
|
33
|
+
import "react-papaparse";
|
|
34
|
+
function GridSection({
|
|
35
|
+
title,
|
|
36
|
+
heading = 3,
|
|
37
|
+
size = 12,
|
|
38
|
+
customStyle,
|
|
39
|
+
tooltipEnabled = false,
|
|
40
|
+
tooltipMessage,
|
|
41
|
+
isLiteralText = false
|
|
42
|
+
}) {
|
|
43
|
+
const intl = useIntl();
|
|
44
|
+
return /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, sx: { width: "100%" }, children: /* @__PURE__ */ jsx(Grid, { size, children: /* @__PURE__ */ jsxs(
|
|
45
|
+
Box,
|
|
46
|
+
{
|
|
47
|
+
sx: mergeSx(customStyle, {
|
|
48
|
+
display: "flex",
|
|
49
|
+
alignItems: "center"
|
|
50
|
+
}),
|
|
51
|
+
component: `h${heading}`,
|
|
52
|
+
children: [
|
|
53
|
+
isLiteralText ? title : /* @__PURE__ */ jsx(FormattedMessage, { id: title }),
|
|
54
|
+
tooltipEnabled && /* @__PURE__ */ jsx(CustomTooltip, { sx: { paddingLeft: 1 }, title: intl.formatMessage({ id: tooltipMessage }), children: /* @__PURE__ */ jsx(InfoOutlined, { color: "info", fontSize: "medium" }) })
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
) }) });
|
|
6
58
|
}
|
|
7
59
|
export {
|
|
8
60
|
GridSection
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, RTE (http://www.rte-france.com)
|
|
3
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
|
+
*/
|
|
7
|
+
export * from './renderTable-ExportCsv';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Key, RefObject } from 'react';
|
|
2
|
+
import { ColDef, GridReadyEvent, RowClassParams, RowStyle } from 'ag-grid-community';
|
|
3
|
+
import { AgGridReact } from 'ag-grid-react';
|
|
4
|
+
import { GsLangUser } from '../../utils';
|
|
5
|
+
export interface RenderTableAndExportCsvProps {
|
|
6
|
+
gridRef: RefObject<AgGridReact | null>;
|
|
7
|
+
columns: ColDef[];
|
|
8
|
+
defaultColDef: ColDef;
|
|
9
|
+
tableName: string;
|
|
10
|
+
rows: any[];
|
|
11
|
+
language: GsLangUser;
|
|
12
|
+
getRowStyle?: (params: RowClassParams) => RowStyle | undefined;
|
|
13
|
+
overlayNoRowsTemplate: string | undefined;
|
|
14
|
+
skipColumnHeaders: boolean;
|
|
15
|
+
exportCsvResetKey?: Key;
|
|
16
|
+
onGridReady?: (params: GridReadyEvent) => void;
|
|
17
|
+
}
|
|
18
|
+
export declare function RenderTableAndExportCsv({ gridRef, columns, defaultColDef, tableName, rows, language, getRowStyle, overlayNoRowsTemplate, skipColumnHeaders, exportCsvResetKey, onGridReady, }: RenderTableAndExportCsvProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback } from "react";
|
|
3
|
+
import { Box } from "@mui/material";
|
|
4
|
+
import "@mui/icons-material";
|
|
5
|
+
import "react-intl";
|
|
6
|
+
import "../../components/ui/overflowableText/OverflowableText.js";
|
|
7
|
+
import "../../utils/conversionUtils.js";
|
|
8
|
+
import "../../utils/types/equipmentType.js";
|
|
9
|
+
import "react-hook-form";
|
|
10
|
+
import "localized-countries";
|
|
11
|
+
import "localized-countries/data/fr";
|
|
12
|
+
import "localized-countries/data/en";
|
|
13
|
+
import "notistack";
|
|
14
|
+
import "../../components/ui/reactHookForm/provider/CustomFormProvider.js";
|
|
15
|
+
import "yup";
|
|
16
|
+
import "../../components/ui/treeViewFinder/TreeViewFinder.js";
|
|
17
|
+
import "../../components/ui/reactHookForm/numbers/RangeInput.js";
|
|
18
|
+
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
19
|
+
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
20
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
21
|
+
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
22
|
+
import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
|
|
23
|
+
import "../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
24
|
+
import "../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
25
|
+
import "../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
|
|
26
|
+
import "@hello-pangea/dnd";
|
|
27
|
+
import "../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
28
|
+
import "../../components/ui/snackbarProvider/SnackbarProvider.js";
|
|
29
|
+
import "mui-nested-menu";
|
|
30
|
+
import "react-resizable-panels";
|
|
31
|
+
import "react-papaparse";
|
|
32
|
+
import { CsvExport } from "../../components/ui/csvDownloader/csv-export.js";
|
|
33
|
+
import "react-dom";
|
|
34
|
+
import "autosuggest-highlight/match";
|
|
35
|
+
import "autosuggest-highlight/parse";
|
|
36
|
+
import "clsx";
|
|
37
|
+
import "../../components/composite/filter/FilterCreationDialog.js";
|
|
38
|
+
import "../../components/composite/filter/HeaderFilterForm.js";
|
|
39
|
+
import "../../components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js";
|
|
40
|
+
import "../../components/composite/filter/expert/ExpertFilterForm.js";
|
|
41
|
+
import "../../components/composite/filter/expert/ExpertFilterEditionDialog.js";
|
|
42
|
+
import "../../components/composite/filter/expert/expertFilterConstants.js";
|
|
43
|
+
import "react-querybuilder";
|
|
44
|
+
import "uuid";
|
|
45
|
+
import "../../components/composite/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js";
|
|
46
|
+
import "../../components/composite/filter/utils/filterFormUtils.js";
|
|
47
|
+
import "@react-querybuilder/material";
|
|
48
|
+
import "../../components/composite/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
49
|
+
import "../../components/composite/reactQueryBuilder/PropertyValueEditor.js";
|
|
50
|
+
import "../../components/composite/agGridTable/BottomTableButtons.js";
|
|
51
|
+
import "../../components/composite/agGridTable/CustomAgGridTable.js";
|
|
52
|
+
import "ag-grid-community";
|
|
53
|
+
import { CustomAGGrid } from "../../components/composite/customAGGrid/customAggrid.js";
|
|
54
|
+
import "../../components/composite/customAGGrid/context/custom-aggrid-context.js";
|
|
55
|
+
import "mathjs";
|
|
56
|
+
import "../../components/composite/report/report-viewer/log-table/log-table.js";
|
|
57
|
+
import "react-window";
|
|
58
|
+
import "../../components/composite/report/report-treeview/treeview-item.js";
|
|
59
|
+
import "../../components/composite/report/report-viewer/context/report-viewer-context.js";
|
|
60
|
+
import { AGGRID_LOCALES } from "../../translations/not-intl/aggrid-locales.js";
|
|
61
|
+
const styles = {
|
|
62
|
+
gridContainer: {
|
|
63
|
+
display: "flex",
|
|
64
|
+
flexDirection: "column",
|
|
65
|
+
height: "100%"
|
|
66
|
+
},
|
|
67
|
+
csvExport: {
|
|
68
|
+
display: "flex",
|
|
69
|
+
alignItems: "baseline",
|
|
70
|
+
marginTop: "-45px"
|
|
71
|
+
},
|
|
72
|
+
grid: {
|
|
73
|
+
flexGrow: "1"
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
function RenderTableAndExportCsv({
|
|
77
|
+
gridRef,
|
|
78
|
+
columns,
|
|
79
|
+
defaultColDef,
|
|
80
|
+
tableName,
|
|
81
|
+
rows,
|
|
82
|
+
language,
|
|
83
|
+
getRowStyle,
|
|
84
|
+
overlayNoRowsTemplate,
|
|
85
|
+
skipColumnHeaders = false,
|
|
86
|
+
exportCsvResetKey,
|
|
87
|
+
onGridReady
|
|
88
|
+
}) {
|
|
89
|
+
const isRowsEmpty = !rows || rows.length === 0;
|
|
90
|
+
const onRowDataUpdated = useCallback((params) => {
|
|
91
|
+
if (params.api) {
|
|
92
|
+
params.api.sizeColumnsToFit();
|
|
93
|
+
}
|
|
94
|
+
}, []);
|
|
95
|
+
return /* @__PURE__ */ jsxs(Box, { sx: styles.gridContainer, children: [
|
|
96
|
+
/* @__PURE__ */ jsxs(Box, { sx: styles.csvExport, children: [
|
|
97
|
+
/* @__PURE__ */ jsx(Box, { style: { flexGrow: 1 } }),
|
|
98
|
+
/* @__PURE__ */ jsx(
|
|
99
|
+
CsvExport,
|
|
100
|
+
{
|
|
101
|
+
columns,
|
|
102
|
+
tableName,
|
|
103
|
+
disabled: isRowsEmpty,
|
|
104
|
+
language,
|
|
105
|
+
skipColumnHeaders,
|
|
106
|
+
getData: (params) => gridRef.current?.api?.exportDataAsCsv(params),
|
|
107
|
+
resetKey: exportCsvResetKey
|
|
108
|
+
}
|
|
109
|
+
)
|
|
110
|
+
] }),
|
|
111
|
+
rows && /* @__PURE__ */ jsx(Box, { sx: styles.grid, children: /* @__PURE__ */ jsx(
|
|
112
|
+
CustomAGGrid,
|
|
113
|
+
{
|
|
114
|
+
ref: gridRef,
|
|
115
|
+
rowData: rows,
|
|
116
|
+
defaultColDef,
|
|
117
|
+
columnDefs: columns,
|
|
118
|
+
onRowDataUpdated,
|
|
119
|
+
onGridReady,
|
|
120
|
+
getRowStyle,
|
|
121
|
+
overlayNoRowsTemplate,
|
|
122
|
+
onModelUpdated: ({ api }) => {
|
|
123
|
+
if (api.getDisplayedRowCount()) {
|
|
124
|
+
api.hideOverlay();
|
|
125
|
+
} else {
|
|
126
|
+
api.showNoRowsOverlay();
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
overrideLocales: AGGRID_LOCALES
|
|
130
|
+
}
|
|
131
|
+
) })
|
|
132
|
+
] });
|
|
133
|
+
}
|
|
134
|
+
export {
|
|
135
|
+
RenderTableAndExportCsv
|
|
136
|
+
};
|
package/dist/features/index.d.ts
CHANGED
|
@@ -14,5 +14,10 @@ export * from './node';
|
|
|
14
14
|
export * from './network-modification-table';
|
|
15
15
|
export * from './announcement';
|
|
16
16
|
export * from './results/securityanalysis';
|
|
17
|
+
export * from './results/loadflow';
|
|
18
|
+
export * from './results/utils';
|
|
19
|
+
export * from './results/constants';
|
|
17
20
|
export * from './process-configs';
|
|
18
21
|
export * from './global-filter';
|
|
22
|
+
export * from './common';
|
|
23
|
+
export * from './results/hooks';
|
package/dist/features/index.js
CHANGED
|
@@ -124,6 +124,8 @@ import { SubstationCreationForm } from "./network-modifications/substation/creat
|
|
|
124
124
|
import { substationCreationDtoToForm, substationCreationEmptyFormData, substationCreationFormSchema, substationCreationFormToDto } from "./network-modifications/substation/creation/substationCreation.utils.js";
|
|
125
125
|
import { SubstationModificationForm } from "./network-modifications/substation/modification/SubstationModificationForm.js";
|
|
126
126
|
import { substationModificationDtoToForm, substationModificationEmptyFormData, substationModificationFormSchema, substationModificationFormToDto } from "./network-modifications/substation/modification/substationModification.utils.js";
|
|
127
|
+
import { CouplingDeviceCreationForm } from "./network-modifications/voltageLevel/coupling-device/coupling-device-creation-form.js";
|
|
128
|
+
import { couplingDeviceCreationDtoToForm, couplingDeviceCreationFormSchema, couplingDeviceCreationFormToDto, emptyCouplingDeviceCreationFormData } from "./network-modifications/voltageLevel/coupling-device/coupling-device-creation-utils.js";
|
|
127
129
|
import { SwitchesBetweenSections } from "./network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js";
|
|
128
130
|
import "react/jsx-runtime";
|
|
129
131
|
import "@mui/material";
|
|
@@ -131,9 +133,9 @@ import "react";
|
|
|
131
133
|
import "react-hook-form";
|
|
132
134
|
import "react-intl";
|
|
133
135
|
import "@mui/icons-material";
|
|
134
|
-
import "../components/ui/overflowableText/OverflowableText.js";
|
|
135
136
|
import "../utils/conversionUtils.js";
|
|
136
137
|
import "../utils/types/equipmentType.js";
|
|
138
|
+
import "../components/ui/overflowableText/OverflowableText.js";
|
|
137
139
|
import "localized-countries";
|
|
138
140
|
import "localized-countries/data/fr";
|
|
139
141
|
import "localized-countries/data/en";
|
|
@@ -214,6 +216,14 @@ import { LineDialogHeader } from "./network-modifications/line/common/LineDialog
|
|
|
214
216
|
import { LineForm } from "./network-modifications/line/common/LineForm.js";
|
|
215
217
|
import { lineCreationDtoToForm, lineCreationEmptyFormData, lineCreationFormSchema, lineCreationFormToDto } from "./network-modifications/line/creation/lineCreation.utils.js";
|
|
216
218
|
import { lineModificationDtoToForm, lineModificationEmptyFormData, lineModificationFormSchema, lineModificationFormToDto } from "./network-modifications/line/modification/lineModification.utils.js";
|
|
219
|
+
import { StaticVarCompensatorDialogHeader } from "./network-modifications/static-var-compensator/common/static-var-compensator-dialog-header.js";
|
|
220
|
+
import { StaticVarCompensatorDialogTabs } from "./network-modifications/static-var-compensator/common/static-var-compensator-dialog-tabs.js";
|
|
221
|
+
import { STATIC_VAR_COMPENSATOR_TAB_FIELDS, StaticVarCompensatorDialogTab } from "./network-modifications/static-var-compensator/common/static-var-compensator-tab-utils.js";
|
|
222
|
+
import { VOLTAGE_REGULATION_MODES } from "./network-modifications/static-var-compensator/common/constants.js";
|
|
223
|
+
import { getReactiveFormData, getReactiveFormEmptyFormData, getReactiveFormValidationSchema } from "./network-modifications/static-var-compensator/common/set-points-limits-form-utils.js";
|
|
224
|
+
import { computeQ0, getStandbyAutomatonEmptyFormData, getStandbyAutomatonFormData, getStandbyAutomatonFormValidationSchema } from "./network-modifications/static-var-compensator/common/standby-automaton-form-utils.js";
|
|
225
|
+
import { StaticVarCompensatorCreationForm } from "./network-modifications/static-var-compensator/creation/static-var-compensator-creation-form.js";
|
|
226
|
+
import { staticVarCompensatorCreationEmptyFormData, staticVarCompensatorCreationFormSchema, staticVarCompensatorCreationFormToDto, staticVarCompensatorDtoToForm } from "./network-modifications/static-var-compensator/creation/static-var-compensator-creation-utils.js";
|
|
217
227
|
import { BuildStatusChip } from "./node/build-status-chip.js";
|
|
218
228
|
import { BuildStatus } from "./node/constant.js";
|
|
219
229
|
import { COLUMNS_WITHOUT_BORDER, DEPTH_CELL_WIDTH, DROP_FORBIDDEN_INDICATOR_BOTTOM, DROP_FORBIDDEN_INDICATOR_TOP, DROP_INDICATOR_BOTTOM, DROP_INDICATOR_TOP, MODIFICATION_ROW_HEIGHT, createCellBorderColor, createCellContentWrapperSx, createCellStyle, createEditDescriptionStyle, createHeaderCellStyle, createModificationNameCellStyle, createNameCellLabelBoxSx, createNameCellRootStyle, createRootNetworkChipCellSx, createRowSx, networkModificationTableStyles } from "./network-modification-table/network-modification-table-styles.js";
|
|
@@ -239,7 +249,10 @@ import { useGlobalAnnouncement } from "./announcement/useGlobalAnnouncement.js";
|
|
|
239
249
|
import { SecurityAnalysisResultNmk } from "./results/securityanalysis/security-analysis-result-nmk.js";
|
|
240
250
|
import { SecurityAnalysisTable } from "./results/securityanalysis/security-analysis-table.js";
|
|
241
251
|
import { NmkType } from "./results/securityanalysis/security-analysis.type.js";
|
|
242
|
-
import { PAGE_OPTIONS, flattenNmKResultsConstraints, flattenNmKResultsContingencies,
|
|
252
|
+
import { PAGE_OPTIONS, flattenNmKResultsConstraints, flattenNmKResultsContingencies, handlePostSortRows, mapNmKResultsCutOffPower } from "./results/securityanalysis/utils.js";
|
|
253
|
+
import { LimitViolationResult } from "./results/loadflow/limit-violation-result.js";
|
|
254
|
+
import { getNoRowsMessage } from "./results/utils/no-rows-message.js";
|
|
255
|
+
import { RESULTS_LOADING_DELAY } from "./results/constants.js";
|
|
243
256
|
import { ProcessType } from "./process-configs/common/process-config.type.js";
|
|
244
257
|
import { emptyProcessConfigModificationsFormData, getProcessConfigModificationsBackendFromFormData, getProcessConfigModificationsFormData, processConfigModificationsShape } from "./process-configs/common/process-config-modifications-edition.utils.js";
|
|
245
258
|
import { ProcessConfigModificationsEdition } from "./process-configs/common/process-config-modifications-edition.js";
|
|
@@ -255,6 +268,8 @@ import { MAX_RECENT_GLOBAL_FILTERS, addSelectedGlobalFiltersToTableState, clearS
|
|
|
255
268
|
import { syncGlobalFilters } from "./global-filter/utils/global-filter-sync.utils.js";
|
|
256
269
|
import { RECENT_FILTER, addGlobalFilterId, getGlobalFilterId, getOptionLabel } from "./global-filter/utils/global-filter-utils.js";
|
|
257
270
|
import { GlobalFilterContextProvider } from "./global-filter/context/global-filter-context-provider.js";
|
|
271
|
+
import { RenderTableAndExportCsv } from "./common/renderTable-ExportCsv.js";
|
|
272
|
+
import { useIntlResultStatusMessages } from "./results/hooks/useIntlResultStatusMessages.js";
|
|
258
273
|
export {
|
|
259
274
|
ACCURACY,
|
|
260
275
|
ADVANCED_PARAMETERS,
|
|
@@ -308,6 +323,7 @@ export {
|
|
|
308
323
|
CharacteristicsForm,
|
|
309
324
|
ConnectivityForm,
|
|
310
325
|
ContingencyTable,
|
|
326
|
+
CouplingDeviceCreationForm,
|
|
311
327
|
CreateParameterDialog,
|
|
312
328
|
CreateVoltageLevelTopologyForm,
|
|
313
329
|
CustomVoltageLevelTable,
|
|
@@ -394,6 +410,7 @@ export {
|
|
|
394
410
|
LimitReductionTableRow,
|
|
395
411
|
LimitReductionsTableForm,
|
|
396
412
|
LimitTypes,
|
|
413
|
+
LimitViolationResult,
|
|
397
414
|
LimitsChart,
|
|
398
415
|
LimitsEditor,
|
|
399
416
|
LimitsGroupsContextualMenu,
|
|
@@ -503,11 +520,13 @@ export {
|
|
|
503
520
|
REFERENCE_FIELD_OR_VALUE_2,
|
|
504
521
|
REGULATION_TYPES,
|
|
505
522
|
REMOVE,
|
|
523
|
+
RESULTS_LOADING_DELAY,
|
|
506
524
|
ReactiveCapabilityCurveRowForm,
|
|
507
525
|
ReactiveCapabilityCurveTableForm,
|
|
508
526
|
ReactiveLimitsForm,
|
|
509
527
|
ReferenceCellRenderer,
|
|
510
528
|
RegulatingTerminalForm,
|
|
529
|
+
RenderTableAndExportCsv,
|
|
511
530
|
RootNetworkCellRenderer,
|
|
512
531
|
RootNetworkChipCell,
|
|
513
532
|
RootNetworkHeaderRenderer,
|
|
@@ -536,6 +555,7 @@ export {
|
|
|
536
555
|
STARTED_GENERATORS_IN_CALCULATION_CLUSTER_THRESHOLD,
|
|
537
556
|
STARTED_GENERATORS_OUTSIDE_CALCULATION_CLUSTER_THRESHOLD,
|
|
538
557
|
START_TIME,
|
|
558
|
+
STATIC_VAR_COMPENSATOR_TAB_FIELDS,
|
|
539
559
|
STOP_TIME,
|
|
540
560
|
SUBSTATION_LAYOUT,
|
|
541
561
|
SWITCH_TYPE,
|
|
@@ -564,6 +584,10 @@ export {
|
|
|
564
584
|
ShuntCompensatorSelectionForm,
|
|
565
585
|
SignInCallbackHandler,
|
|
566
586
|
SilentRenewCallbackHandler,
|
|
587
|
+
StaticVarCompensatorCreationForm,
|
|
588
|
+
StaticVarCompensatorDialogHeader,
|
|
589
|
+
StaticVarCompensatorDialogTab,
|
|
590
|
+
StaticVarCompensatorDialogTabs,
|
|
567
591
|
SubstationCreationForm,
|
|
568
592
|
SubstationLayout,
|
|
569
593
|
SubstationModificationForm,
|
|
@@ -593,6 +617,7 @@ export {
|
|
|
593
617
|
VOLTAGE_LEVELS_FORM,
|
|
594
618
|
VOLTAGE_LIMITS_DEFAULT,
|
|
595
619
|
VOLTAGE_LIMITS_MODIFICATION,
|
|
620
|
+
VOLTAGE_REGULATION_MODES,
|
|
596
621
|
VoltageInitParametersEditionDialog,
|
|
597
622
|
VoltageInitParametersInLine,
|
|
598
623
|
VoltageInitTabValues,
|
|
@@ -621,6 +646,7 @@ export {
|
|
|
621
646
|
byFilterDeletionFormSchema,
|
|
622
647
|
byFilterDeletionFormToDto,
|
|
623
648
|
clearSelectedGlobalFiltersFromTableState,
|
|
649
|
+
computeQ0,
|
|
624
650
|
computeSwitchedOnValue,
|
|
625
651
|
computeTagMinSize,
|
|
626
652
|
convertLimitsToOperationalLimitsGroupFormSchema,
|
|
@@ -628,6 +654,9 @@ export {
|
|
|
628
654
|
convertToLineSegmentsFormData,
|
|
629
655
|
convertToOperationalLimitsGroupFormSchema,
|
|
630
656
|
copyEquipmentPropertiesForCreation,
|
|
657
|
+
couplingDeviceCreationDtoToForm,
|
|
658
|
+
couplingDeviceCreationFormSchema,
|
|
659
|
+
couplingDeviceCreationFormToDto,
|
|
631
660
|
createCellBorderColor,
|
|
632
661
|
createCellContentWrapperSx,
|
|
633
662
|
createCellStyle,
|
|
@@ -646,6 +675,7 @@ export {
|
|
|
646
675
|
createVoltageLevelTopologyFormToDto,
|
|
647
676
|
creationPropertiesSchema,
|
|
648
677
|
dispatchUser,
|
|
678
|
+
emptyCouplingDeviceCreationFormData,
|
|
649
679
|
emptyFormData,
|
|
650
680
|
emptyLineSegment,
|
|
651
681
|
emptyModificationByAssignmentFormData,
|
|
@@ -750,6 +780,9 @@ export {
|
|
|
750
780
|
getPropertyValue,
|
|
751
781
|
getReactiveCapabilityCurveValidationSchema,
|
|
752
782
|
getReactiveCapabilityCurveValidationSchemaArray,
|
|
783
|
+
getReactiveFormData,
|
|
784
|
+
getReactiveFormEmptyFormData,
|
|
785
|
+
getReactiveFormValidationSchema,
|
|
753
786
|
getReactiveLimitsEmptyFormData,
|
|
754
787
|
getReactiveLimitsEmptyFormDataProps,
|
|
755
788
|
getReactiveLimitsFormData,
|
|
@@ -767,6 +800,9 @@ export {
|
|
|
767
800
|
getShortCircuitEmptyFormData,
|
|
768
801
|
getShortCircuitFormData,
|
|
769
802
|
getShortCircuitFormSchema,
|
|
803
|
+
getStandbyAutomatonEmptyFormData,
|
|
804
|
+
getStandbyAutomatonFormData,
|
|
805
|
+
getStandbyAutomatonFormValidationSchema,
|
|
770
806
|
getTabIndicatorStyle,
|
|
771
807
|
getTabStyle,
|
|
772
808
|
getVoltageRegulationEmptyFormData,
|
|
@@ -842,6 +878,10 @@ export {
|
|
|
842
878
|
shuntCompensatorModificationFormSchema,
|
|
843
879
|
shuntCompensatorModificationFormToDto,
|
|
844
880
|
standardTextField,
|
|
881
|
+
staticVarCompensatorCreationEmptyFormData,
|
|
882
|
+
staticVarCompensatorCreationFormSchema,
|
|
883
|
+
staticVarCompensatorCreationFormToDto,
|
|
884
|
+
staticVarCompensatorDtoToForm,
|
|
845
885
|
substationCreationDtoToForm,
|
|
846
886
|
substationCreationEmptyFormData,
|
|
847
887
|
substationCreationFormSchema,
|
|
@@ -863,6 +903,7 @@ export {
|
|
|
863
903
|
updateSubModificationsOfACompositeInTree,
|
|
864
904
|
useGlobalAnnouncement,
|
|
865
905
|
useHvdcLccDeletion,
|
|
906
|
+
useIntlResultStatusMessages,
|
|
866
907
|
useListenerManager,
|
|
867
908
|
useModificationsDragAndDrop,
|
|
868
909
|
useNotificationsListener,
|
|
@@ -52,6 +52,8 @@ import { SubstationCreationForm } from "./substation/creation/SubstationCreation
|
|
|
52
52
|
import { substationCreationDtoToForm, substationCreationEmptyFormData, substationCreationFormSchema, substationCreationFormToDto } from "./substation/creation/substationCreation.utils.js";
|
|
53
53
|
import { SubstationModificationForm } from "./substation/modification/SubstationModificationForm.js";
|
|
54
54
|
import { substationModificationDtoToForm, substationModificationEmptyFormData, substationModificationFormSchema, substationModificationFormToDto } from "./substation/modification/substationModification.utils.js";
|
|
55
|
+
import { CouplingDeviceCreationForm } from "./voltageLevel/coupling-device/coupling-device-creation-form.js";
|
|
56
|
+
import { couplingDeviceCreationDtoToForm, couplingDeviceCreationFormSchema, couplingDeviceCreationFormToDto, emptyCouplingDeviceCreationFormData } from "./voltageLevel/coupling-device/coupling-device-creation-utils.js";
|
|
55
57
|
import { SwitchesBetweenSections } from "./voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js";
|
|
56
58
|
import "react/jsx-runtime";
|
|
57
59
|
import "@mui/material";
|
|
@@ -59,9 +61,9 @@ import "react";
|
|
|
59
61
|
import "react-hook-form";
|
|
60
62
|
import "react-intl";
|
|
61
63
|
import "@mui/icons-material";
|
|
62
|
-
import "../../components/ui/overflowableText/OverflowableText.js";
|
|
63
64
|
import "../../utils/conversionUtils.js";
|
|
64
65
|
import "../../utils/types/equipmentType.js";
|
|
66
|
+
import "../../components/ui/overflowableText/OverflowableText.js";
|
|
65
67
|
import "localized-countries";
|
|
66
68
|
import "localized-countries/data/fr";
|
|
67
69
|
import "localized-countries/data/en";
|
|
@@ -142,6 +144,14 @@ import { LineDialogHeader } from "./line/common/LineDialogHeader.js";
|
|
|
142
144
|
import { LineForm } from "./line/common/LineForm.js";
|
|
143
145
|
import { lineCreationDtoToForm, lineCreationEmptyFormData, lineCreationFormSchema, lineCreationFormToDto } from "./line/creation/lineCreation.utils.js";
|
|
144
146
|
import { lineModificationDtoToForm, lineModificationEmptyFormData, lineModificationFormSchema, lineModificationFormToDto } from "./line/modification/lineModification.utils.js";
|
|
147
|
+
import { StaticVarCompensatorDialogHeader } from "./static-var-compensator/common/static-var-compensator-dialog-header.js";
|
|
148
|
+
import { StaticVarCompensatorDialogTabs } from "./static-var-compensator/common/static-var-compensator-dialog-tabs.js";
|
|
149
|
+
import { STATIC_VAR_COMPENSATOR_TAB_FIELDS, StaticVarCompensatorDialogTab } from "./static-var-compensator/common/static-var-compensator-tab-utils.js";
|
|
150
|
+
import { VOLTAGE_REGULATION_MODES } from "./static-var-compensator/common/constants.js";
|
|
151
|
+
import { getReactiveFormData, getReactiveFormEmptyFormData, getReactiveFormValidationSchema } from "./static-var-compensator/common/set-points-limits-form-utils.js";
|
|
152
|
+
import { computeQ0, getStandbyAutomatonEmptyFormData, getStandbyAutomatonFormData, getStandbyAutomatonFormValidationSchema } from "./static-var-compensator/common/standby-automaton-form-utils.js";
|
|
153
|
+
import { StaticVarCompensatorCreationForm } from "./static-var-compensator/creation/static-var-compensator-creation-form.js";
|
|
154
|
+
import { staticVarCompensatorCreationEmptyFormData, staticVarCompensatorCreationFormSchema, staticVarCompensatorCreationFormToDto, staticVarCompensatorDtoToForm } from "./static-var-compensator/creation/static-var-compensator-creation-utils.js";
|
|
145
155
|
export {
|
|
146
156
|
APPLICABILITY,
|
|
147
157
|
ActivePowerControlForm,
|
|
@@ -161,6 +171,7 @@ export {
|
|
|
161
171
|
CHARACTERISTICS_CHOICES,
|
|
162
172
|
CharacteristicsForm,
|
|
163
173
|
ConnectivityForm,
|
|
174
|
+
CouplingDeviceCreationForm,
|
|
164
175
|
CreateVoltageLevelTopologyForm,
|
|
165
176
|
EQUIPMENTS_FIELDS,
|
|
166
177
|
EQUIPMENT_TYPE_ORDER,
|
|
@@ -217,6 +228,7 @@ export {
|
|
|
217
228
|
ReactiveLimitsForm,
|
|
218
229
|
RegulatingTerminalForm,
|
|
219
230
|
SHUNT_COMPENSATOR_TYPES,
|
|
231
|
+
STATIC_VAR_COMPENSATOR_TAB_FIELDS,
|
|
220
232
|
SWITCH_TYPE,
|
|
221
233
|
SegmentCurrentLimitsSchema,
|
|
222
234
|
SegmentInfoSchema,
|
|
@@ -227,12 +239,17 @@ export {
|
|
|
227
239
|
ShuntCompensatorCreationForm,
|
|
228
240
|
ShuntCompensatorModificationForm,
|
|
229
241
|
ShuntCompensatorSelectionForm,
|
|
242
|
+
StaticVarCompensatorCreationForm,
|
|
243
|
+
StaticVarCompensatorDialogHeader,
|
|
244
|
+
StaticVarCompensatorDialogTab,
|
|
245
|
+
StaticVarCompensatorDialogTabs,
|
|
230
246
|
SubstationCreationForm,
|
|
231
247
|
SubstationModificationForm,
|
|
232
248
|
SwitchKind,
|
|
233
249
|
SwitchesBetweenSections,
|
|
234
250
|
TEMPORARY_LIMIT_MODIFICATION_TYPE,
|
|
235
251
|
TemporaryLimitsTable,
|
|
252
|
+
VOLTAGE_REGULATION_MODES,
|
|
236
253
|
VoltageLevelConnectivityForm,
|
|
237
254
|
VoltageLevelCreationForm,
|
|
238
255
|
VoltageLevelModificationForm,
|
|
@@ -252,12 +269,16 @@ export {
|
|
|
252
269
|
byFilterDeletionDtoToForm,
|
|
253
270
|
byFilterDeletionFormSchema,
|
|
254
271
|
byFilterDeletionFormToDto,
|
|
272
|
+
computeQ0,
|
|
255
273
|
computeSwitchedOnValue,
|
|
256
274
|
convertLimitsToOperationalLimitsGroupFormSchema,
|
|
257
275
|
convertToLineSegmentInfos,
|
|
258
276
|
convertToLineSegmentsFormData,
|
|
259
277
|
convertToOperationalLimitsGroupFormSchema,
|
|
260
278
|
copyEquipmentPropertiesForCreation,
|
|
279
|
+
couplingDeviceCreationDtoToForm,
|
|
280
|
+
couplingDeviceCreationFormSchema,
|
|
281
|
+
couplingDeviceCreationFormToDto,
|
|
261
282
|
createConnectivityData,
|
|
262
283
|
createPropertyModification,
|
|
263
284
|
createVoltageLevelTopologyDtoToForm,
|
|
@@ -265,6 +286,7 @@ export {
|
|
|
265
286
|
createVoltageLevelTopologyFormSchema,
|
|
266
287
|
createVoltageLevelTopologyFormToDto,
|
|
267
288
|
creationPropertiesSchema,
|
|
289
|
+
emptyCouplingDeviceCreationFormData,
|
|
268
290
|
emptyFormData,
|
|
269
291
|
emptyLineSegment,
|
|
270
292
|
emptyModificationByAssignmentFormData,
|
|
@@ -352,6 +374,9 @@ export {
|
|
|
352
374
|
getPropertyValue,
|
|
353
375
|
getReactiveCapabilityCurveValidationSchema,
|
|
354
376
|
getReactiveCapabilityCurveValidationSchemaArray,
|
|
377
|
+
getReactiveFormData,
|
|
378
|
+
getReactiveFormEmptyFormData,
|
|
379
|
+
getReactiveFormValidationSchema,
|
|
355
380
|
getReactiveLimitsEmptyFormData,
|
|
356
381
|
getReactiveLimitsEmptyFormDataProps,
|
|
357
382
|
getReactiveLimitsFormData,
|
|
@@ -369,6 +394,9 @@ export {
|
|
|
369
394
|
getShortCircuitEmptyFormData,
|
|
370
395
|
getShortCircuitFormData,
|
|
371
396
|
getShortCircuitFormSchema,
|
|
397
|
+
getStandbyAutomatonEmptyFormData,
|
|
398
|
+
getStandbyAutomatonFormData,
|
|
399
|
+
getStandbyAutomatonFormValidationSchema,
|
|
372
400
|
getVoltageRegulationEmptyFormData,
|
|
373
401
|
getVoltageRegulationSchema,
|
|
374
402
|
initializedProperty,
|
|
@@ -412,6 +440,10 @@ export {
|
|
|
412
440
|
shuntCompensatorModificationFormSchema,
|
|
413
441
|
shuntCompensatorModificationFormToDto,
|
|
414
442
|
standardTextField,
|
|
443
|
+
staticVarCompensatorCreationEmptyFormData,
|
|
444
|
+
staticVarCompensatorCreationFormSchema,
|
|
445
|
+
staticVarCompensatorCreationFormToDto,
|
|
446
|
+
staticVarCompensatorDtoToForm,
|
|
415
447
|
substationCreationDtoToForm,
|
|
416
448
|
substationCreationEmptyFormData,
|
|
417
449
|
substationCreationFormSchema,
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, RTE (http://www.rte-france.com)
|
|
3
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
|
+
*/
|
|
7
|
+
export declare const VOLTAGE_REGULATION_MODES: {
|
|
8
|
+
readonly VOLTAGE: {
|
|
9
|
+
readonly id: "VOLTAGE";
|
|
10
|
+
readonly label: "VoltageRegulationText";
|
|
11
|
+
};
|
|
12
|
+
readonly REACTIVE_POWER: {
|
|
13
|
+
readonly id: "REACTIVE_POWER";
|
|
14
|
+
readonly label: "ReactivePowerRegulationText";
|
|
15
|
+
};
|
|
16
|
+
readonly OFF: {
|
|
17
|
+
readonly id: "OFF";
|
|
18
|
+
readonly label: "Off";
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const VOLTAGE_REGULATION_MODES = {
|
|
2
|
+
VOLTAGE: { id: "VOLTAGE", label: "VoltageRegulationText" },
|
|
3
|
+
REACTIVE_POWER: { id: "REACTIVE_POWER", label: "ReactivePowerRegulationText" },
|
|
4
|
+
// used in order to set regulating to false but doesn't exist in powsybl => should not be sent to the back
|
|
5
|
+
OFF: { id: "OFF", label: "Off" }
|
|
6
|
+
};
|
|
7
|
+
export {
|
|
8
|
+
VOLTAGE_REGULATION_MODES
|
|
9
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, RTE (http://www.rte-france.com)
|
|
3
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
|
+
*/
|
|
7
|
+
export * from './static-var-compensator.types';
|
|
8
|
+
export * from './static-var-compensator-dialog-header';
|
|
9
|
+
export * from './static-var-compensator-dialog-tabs';
|
|
10
|
+
export * from './static-var-compensator-tab-utils';
|
|
11
|
+
export * from './constants';
|
|
12
|
+
export * from './set-points-limits-form-utils';
|
|
13
|
+
export * from './standby-automaton-form-utils';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { StaticVarCompensatorDialogHeader } from "./static-var-compensator-dialog-header.js";
|
|
2
|
+
import { StaticVarCompensatorDialogTabs } from "./static-var-compensator-dialog-tabs.js";
|
|
3
|
+
import { STATIC_VAR_COMPENSATOR_TAB_FIELDS, StaticVarCompensatorDialogTab } from "./static-var-compensator-tab-utils.js";
|
|
4
|
+
import { VOLTAGE_REGULATION_MODES } from "./constants.js";
|
|
5
|
+
import { getReactiveFormData, getReactiveFormEmptyFormData, getReactiveFormValidationSchema } from "./set-points-limits-form-utils.js";
|
|
6
|
+
import { computeQ0, getStandbyAutomatonEmptyFormData, getStandbyAutomatonFormData, getStandbyAutomatonFormValidationSchema } from "./standby-automaton-form-utils.js";
|
|
7
|
+
export {
|
|
8
|
+
STATIC_VAR_COMPENSATOR_TAB_FIELDS,
|
|
9
|
+
StaticVarCompensatorDialogHeader,
|
|
10
|
+
StaticVarCompensatorDialogTab,
|
|
11
|
+
StaticVarCompensatorDialogTabs,
|
|
12
|
+
VOLTAGE_REGULATION_MODES,
|
|
13
|
+
computeQ0,
|
|
14
|
+
getReactiveFormData,
|
|
15
|
+
getReactiveFormEmptyFormData,
|
|
16
|
+
getReactiveFormValidationSchema,
|
|
17
|
+
getStandbyAutomatonEmptyFormData,
|
|
18
|
+
getStandbyAutomatonFormData,
|
|
19
|
+
getStandbyAutomatonFormValidationSchema
|
|
20
|
+
};
|