@gridsuite/commons-ui 0.112.0 → 0.114.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.
Files changed (73) hide show
  1. package/dist/components/dnd-table/dnd-table.js +2 -2
  2. package/dist/components/index.js +27 -6
  3. package/dist/components/inputs/reactHookForm/provider/CustomFormProvider.js +0 -4
  4. package/dist/components/inputs/reactHookForm/text/DescriptionField.js +0 -3
  5. package/dist/components/inputs/reactQueryBuilder/OperatorSelector.js +1 -0
  6. package/dist/components/parameters/common/index.js +0 -2
  7. package/dist/components/parameters/common/limitreductions/columns-definitions.d.ts +7 -2
  8. package/dist/components/parameters/common/limitreductions/columns-definitions.js +16 -3
  9. package/dist/components/parameters/common/limitreductions/limit-reduction-table-cell.d.ts +3 -3
  10. package/dist/components/parameters/common/limitreductions/limit-reduction-table-cell.js +4 -1
  11. package/dist/components/parameters/common/limitreductions/limit-reduction-table-row.d.ts +2 -2
  12. package/dist/components/parameters/common/name-element-editor/name-element-editor-form.js +5 -28
  13. package/dist/components/parameters/common/name-element-editor/name-element-editor-utils.d.ts +2 -2
  14. package/dist/components/parameters/common/name-element-editor/name-element-editor-utils.js +2 -2
  15. package/dist/components/parameters/common/parameters-edition-dialog-props.d.ts +0 -4
  16. package/dist/components/parameters/common/parameters-edition-dialog-props.js +1 -14
  17. package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table-cell.d.ts +2 -2
  18. package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table-row.d.ts +2 -2
  19. package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table.d.ts +2 -2
  20. package/dist/components/parameters/index.d.ts +1 -1
  21. package/dist/components/parameters/index.js +27 -6
  22. package/dist/components/parameters/loadflow/load-flow-parameters-content.js +1 -1
  23. package/dist/components/parameters/loadflow/load-flow-parameters-dialog.js +1 -1
  24. package/dist/components/parameters/loadflow/load-flow-parameters-utils.js +1 -1
  25. package/dist/components/parameters/loadflow/use-load-flow-parameters-form.js +0 -2
  26. package/dist/components/parameters/network-visualizations/map-parameters.js +1 -1
  27. package/dist/components/parameters/network-visualizations/single-line-diagram-parameters.js +1 -1
  28. package/dist/components/parameters/parameters-style.d.ts +0 -1
  29. package/dist/components/parameters/security-analysis/security-analysis-parameters-dialog.js +8 -2
  30. package/dist/components/parameters/security-analysis/security-analysis-parameters-form.js +2 -1
  31. package/dist/components/parameters/security-analysis/security-analysis-parameters-selector.js +1 -1
  32. package/dist/components/parameters/security-analysis/use-security-analysis-parameters-form.js +1 -1
  33. package/dist/components/parameters/sensi/columns-definitions.d.ts +222 -0
  34. package/dist/components/parameters/sensi/columns-definitions.js +305 -0
  35. package/dist/components/parameters/sensi/constants.d.ts +29 -0
  36. package/dist/components/parameters/sensi/constants.js +48 -0
  37. package/dist/components/parameters/sensi/index.d.ts +10 -0
  38. package/dist/components/parameters/sensi/index.js +29 -0
  39. package/dist/components/parameters/sensi/sensitivity-Flow-parameters.d.ts +7 -0
  40. package/dist/components/parameters/sensi/sensitivity-Flow-parameters.js +72 -0
  41. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-dialog.d.ts +2 -0
  42. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-dialog.js +113 -0
  43. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-form.d.ts +8 -0
  44. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-form.js +129 -0
  45. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-inline.d.ts +13 -0
  46. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-inline.js +185 -0
  47. package/dist/components/parameters/sensi/sensitivity-parameters-selector.d.ts +16 -0
  48. package/dist/components/parameters/sensi/sensitivity-parameters-selector.js +274 -0
  49. package/dist/components/parameters/sensi/sensitivity-table.d.ts +15 -0
  50. package/dist/components/parameters/sensi/sensitivity-table.js +134 -0
  51. package/dist/components/parameters/sensi/table-cell.d.ts +8 -0
  52. package/dist/components/parameters/sensi/table-cell.js +86 -0
  53. package/dist/components/parameters/sensi/table-row.d.ts +11 -0
  54. package/dist/components/parameters/sensi/table-row.js +42 -0
  55. package/dist/components/parameters/sensi/use-sensitivity-analysis-parameters.d.ts +49 -0
  56. package/dist/components/parameters/sensi/use-sensitivity-analysis-parameters.js +413 -0
  57. package/dist/components/parameters/sensi/utils.d.ts +419 -0
  58. package/dist/components/parameters/sensi/utils.js +357 -0
  59. package/dist/components/parameters/voltage-init/general-parameters.js +1 -1
  60. package/dist/hooks/index.d.ts +1 -0
  61. package/dist/hooks/index.js +2 -0
  62. package/dist/hooks/use-create-row-data-sensi.d.ts +4 -0
  63. package/dist/hooks/use-create-row-data-sensi.js +20 -0
  64. package/dist/index.js +29 -6
  65. package/dist/services/sensitivity-analysis.d.ts +12 -0
  66. package/dist/services/sensitivity-analysis.js +87 -0
  67. package/dist/translations/en/parameters.d.ts +64 -0
  68. package/dist/translations/en/parameters.js +70 -1
  69. package/dist/translations/fr/parameters.d.ts +64 -0
  70. package/dist/translations/fr/parameters.js +70 -1
  71. package/dist/utils/types/fieldType.d.ts +3 -1
  72. package/dist/utils/types/fieldType.js +2 -0
  73. package/package.json +1 -1
@@ -2,7 +2,6 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { Grid } from "@mui/material";
3
3
  import { useMemo } from "react";
4
4
  import { FormattedMessage } from "react-intl";
5
- import "../../../utils/yupConfig.js";
6
5
  import { LineSeparator } from "../common/line-separator.js";
7
6
  import { parametersStyles } from "../parameters-style.js";
8
7
  import "../../../utils/types/equipmentType.js";
@@ -27,6 +26,7 @@ import { SwitchInput } from "../../inputs/reactHookForm/booleans/SwitchInput.js"
27
26
  import "../../inputs/reactHookForm/numbers/RangeInput.js";
28
27
  import { MuiSelectInput } from "../../inputs/reactHookForm/selectInputs/MuiSelectInput.js";
29
28
  import "../../../utils/conversionUtils.js";
29
+ import "../../../utils/yupConfig.js";
30
30
  import "@react-querybuilder/material";
31
31
  import "../../filter/expert/expertFilterConstants.js";
32
32
  import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
@@ -1,7 +1,6 @@
1
1
  import { Theme } from '@mui/material';
2
2
  /**
3
3
  * Styles use in parameter forms
4
- * @deprecated to discourage its use outside of intended components
5
4
  */
6
5
  export declare const parametersStyles: {
7
6
  title: (theme: Theme) => {
@@ -9,13 +9,12 @@ import "localized-countries/data/fr";
9
9
  import "localized-countries/data/en";
10
10
  import "notistack";
11
11
  import { useParametersBackend, OptionalServicesStatus } from "../../../hooks/use-parameters-backend.js";
12
+ import "react-hook-form";
12
13
  import { useSecurityAnalysisParametersForm } from "./use-security-analysis-parameters-form.js";
13
14
  import { ComputingType } from "../common/computing-type.js";
14
- import "../../../utils/yupConfig.js";
15
15
  import { CustomMuiDialog } from "../../dialogs/customMuiDialog/CustomMuiDialog.js";
16
16
  import "../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
17
17
  import "../../dialogs/elementSaveDialog/ElementSaveDialog.js";
18
- import "react-hook-form";
19
18
  import "@mui/icons-material";
20
19
  import { ElementType } from "../../../utils/types/elementType.js";
21
20
  import "../../treeViewFinder/TreeViewFinder.js";
@@ -29,6 +28,7 @@ import "react-papaparse";
29
28
  import "react-csv-downloader";
30
29
  import "../../inputs/reactHookForm/numbers/RangeInput.js";
31
30
  import "../../../utils/conversionUtils.js";
31
+ import "../../../utils/yupConfig.js";
32
32
  import "@react-querybuilder/material";
33
33
  import "../../filter/expert/expertFilterConstants.js";
34
34
  import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
@@ -82,6 +82,12 @@ function SecurityAnalysisParametersDialog({
82
82
  removeOptional: true,
83
83
  language,
84
84
  disabledSave: disableSave,
85
+ PaperProps: {
86
+ sx: {
87
+ height: "90vh"
88
+ // we want the dialog height to be fixed even when switching tabs
89
+ }
90
+ },
85
91
  children: /* @__PURE__ */ jsx(
86
92
  SecurityAnalysisParametersForm,
87
93
  {
@@ -68,7 +68,8 @@ function SecurityAnalysisParametersForm({
68
68
  height: "100%",
69
69
  display: "flex",
70
70
  position: "relative",
71
- flexDirection: "column"
71
+ flexDirection: "column",
72
+ width: "100%"
72
73
  },
73
74
  children: /* @__PURE__ */ jsxs(Box, { sx: styles.securityAnalysisParameters, children: [
74
75
  renderTitleFields == null ? void 0 : renderTitleFields(),
@@ -2,7 +2,6 @@ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useState, useCallback, useMemo, useEffect } from "react";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  import { Grid, Tabs, Tab } from "@mui/material";
5
- import "../../../utils/yupConfig.js";
6
5
  import { TabPanel } from "../common/parameters.js";
7
6
  import "../../../utils/types/equipmentType.js";
8
7
  import "localized-countries";
@@ -24,6 +23,7 @@ import "react-papaparse";
24
23
  import "react-csv-downloader";
25
24
  import "../../inputs/reactHookForm/numbers/RangeInput.js";
26
25
  import "../../../utils/conversionUtils.js";
26
+ import "../../../utils/yupConfig.js";
27
27
  import "@react-querybuilder/material";
28
28
  import "../../filter/expert/expertFilterConstants.js";
29
29
  import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
@@ -8,7 +8,6 @@ import { ElementType } from "../../../utils/types/elementType.js";
8
8
  import "../../../utils/types/equipmentType.js";
9
9
  import "../../../utils/yupConfig.js";
10
10
  import { PARAM_SA_HIGH_VOLTAGE_ABSOLUTE_THRESHOLD, PARAM_SA_HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD, PARAM_SA_LOW_VOLTAGE_ABSOLUTE_THRESHOLD, PARAM_SA_LOW_VOLTAGE_PROPORTIONAL_THRESHOLD, PARAM_SA_FLOW_PROPORTIONAL_THRESHOLD, PARAM_SA_PROVIDER } from "../common/constant.js";
11
- import { DESCRIPTION, NAME } from "../../inputs/reactHookForm/constants.js";
12
11
  import "@mui/material";
13
12
  import "react-intl";
14
13
  import { updateParameter } from "../../../services/explore.js";
@@ -22,6 +21,7 @@ import "../../dialogs/elementSaveDialog/ElementSaveDialog.js";
22
21
  import "../../treeViewFinder/TreeViewFinder.js";
23
22
  import "yup";
24
23
  import "../../overflowableText/OverflowableText.js";
24
+ import { DESCRIPTION, NAME } from "../../inputs/reactHookForm/constants.js";
25
25
  import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
26
26
  import "../../customAGGrid/customAggrid.js";
27
27
  import "ag-grid-community";
@@ -0,0 +1,222 @@
1
+ import { ElementType, EquipmentType } from '../../../utils';
2
+ export declare const MONITORED_BRANCHES_EQUIPMENT_TYPES: EquipmentType[];
3
+ export declare const INJECTION_DISTRIBUTION_TYPES: {
4
+ id: string;
5
+ label: string;
6
+ }[];
7
+ export declare const SENSITIVITY_TYPES: {
8
+ id: string;
9
+ label: string;
10
+ }[];
11
+ export declare const PSTS_EQUIPMENT_TYPES: EquipmentType[];
12
+ export declare const MONITORED_VOLTAGE_LEVELS_EQUIPMENT_TYPES: EquipmentType[];
13
+ export declare const INJECTIONS_EQUIPMENT_TYPES: EquipmentType[];
14
+ export declare const EQUIPMENTS_IN_VOLTAGE_REGULATION_TYPES: EquipmentType[];
15
+ export declare const HVDC_EQUIPMENT_TYPES: EquipmentType[];
16
+ export interface ISensiParameters {
17
+ columnsDef: IColumnsDef[];
18
+ name: string;
19
+ }
20
+ export interface IColumnsDef {
21
+ label: string;
22
+ dataKey: string;
23
+ initialValue: boolean | string | string[] | number;
24
+ editable?: boolean;
25
+ directoryItems?: boolean;
26
+ menuItems?: boolean;
27
+ equipmentTypes?: any[];
28
+ elementType?: string;
29
+ titleId?: string;
30
+ checkboxItems?: boolean;
31
+ floatItems?: boolean;
32
+ textItems?: boolean;
33
+ width?: string;
34
+ }
35
+ export declare const COLUMNS_DEFINITIONS_INJECTIONS_SET: IColumnsDef[];
36
+ export declare const COLUMNS_DEFINITIONS_INJECTIONS: ({
37
+ label: string;
38
+ dataKey: string;
39
+ initialValue: never[];
40
+ editable: boolean;
41
+ directoryItems: boolean;
42
+ equipmentTypes: EquipmentType[];
43
+ elementType: ElementType;
44
+ titleId: string;
45
+ checkboxItems?: undefined;
46
+ width?: undefined;
47
+ } | {
48
+ label: string;
49
+ dataKey: string;
50
+ initialValue: never[];
51
+ editable: boolean;
52
+ directoryItems: boolean;
53
+ elementType: ElementType;
54
+ titleId: string;
55
+ equipmentTypes?: undefined;
56
+ checkboxItems?: undefined;
57
+ width?: undefined;
58
+ } | {
59
+ label: string;
60
+ dataKey: string;
61
+ initialValue: boolean;
62
+ checkboxItems: boolean;
63
+ editable: boolean;
64
+ width: string;
65
+ directoryItems?: undefined;
66
+ equipmentTypes?: undefined;
67
+ elementType?: undefined;
68
+ titleId?: undefined;
69
+ })[];
70
+ export declare const COLUMNS_DEFINITIONS_HVDCS: ({
71
+ label: string;
72
+ dataKey: string;
73
+ initialValue: never[];
74
+ editable: boolean;
75
+ directoryItems: boolean;
76
+ equipmentTypes: EquipmentType[];
77
+ elementType: ElementType;
78
+ titleId: string;
79
+ menuItems?: undefined;
80
+ width?: undefined;
81
+ checkboxItems?: undefined;
82
+ } | {
83
+ label: string;
84
+ dataKey: string;
85
+ equipmentTypes: {
86
+ id: string;
87
+ label: string;
88
+ }[];
89
+ initialValue: string;
90
+ menuItems: boolean;
91
+ editable: boolean;
92
+ width: string;
93
+ directoryItems?: undefined;
94
+ elementType?: undefined;
95
+ titleId?: undefined;
96
+ checkboxItems?: undefined;
97
+ } | {
98
+ label: string;
99
+ dataKey: string;
100
+ initialValue: never[];
101
+ editable: boolean;
102
+ directoryItems: boolean;
103
+ elementType: ElementType;
104
+ titleId: string;
105
+ equipmentTypes?: undefined;
106
+ menuItems?: undefined;
107
+ width?: undefined;
108
+ checkboxItems?: undefined;
109
+ } | {
110
+ label: string;
111
+ dataKey: string;
112
+ initialValue: boolean;
113
+ checkboxItems: boolean;
114
+ editable: boolean;
115
+ width: string;
116
+ directoryItems?: undefined;
117
+ equipmentTypes?: undefined;
118
+ elementType?: undefined;
119
+ titleId?: undefined;
120
+ menuItems?: undefined;
121
+ })[];
122
+ export declare const COLUMNS_DEFINITIONS_PSTS: ({
123
+ label: string;
124
+ dataKey: string;
125
+ initialValue: never[];
126
+ editable: boolean;
127
+ directoryItems: boolean;
128
+ equipmentTypes: EquipmentType[];
129
+ elementType: ElementType;
130
+ titleId: string;
131
+ menuItems?: undefined;
132
+ width?: undefined;
133
+ checkboxItems?: undefined;
134
+ } | {
135
+ label: string;
136
+ dataKey: string;
137
+ equipmentTypes: {
138
+ id: string;
139
+ label: string;
140
+ }[];
141
+ initialValue: string;
142
+ menuItems: boolean;
143
+ editable: boolean;
144
+ width: string;
145
+ directoryItems?: undefined;
146
+ elementType?: undefined;
147
+ titleId?: undefined;
148
+ checkboxItems?: undefined;
149
+ } | {
150
+ label: string;
151
+ dataKey: string;
152
+ initialValue: never[];
153
+ editable: boolean;
154
+ directoryItems: boolean;
155
+ elementType: ElementType;
156
+ titleId: string;
157
+ equipmentTypes?: undefined;
158
+ menuItems?: undefined;
159
+ width?: undefined;
160
+ checkboxItems?: undefined;
161
+ } | {
162
+ label: string;
163
+ dataKey: string;
164
+ initialValue: boolean;
165
+ checkboxItems: boolean;
166
+ editable: boolean;
167
+ width: string;
168
+ directoryItems?: undefined;
169
+ equipmentTypes?: undefined;
170
+ elementType?: undefined;
171
+ titleId?: undefined;
172
+ menuItems?: undefined;
173
+ })[];
174
+ export declare const COLUMNS_DEFINITIONS_NODES: ({
175
+ label: string;
176
+ dataKey: string;
177
+ initialValue: never[];
178
+ editable: boolean;
179
+ directoryItems: boolean;
180
+ equipmentTypes: EquipmentType[];
181
+ elementType: ElementType;
182
+ titleId: string;
183
+ checkboxItems?: undefined;
184
+ width?: undefined;
185
+ } | {
186
+ label: string;
187
+ dataKey: string;
188
+ initialValue: never[];
189
+ editable: boolean;
190
+ directoryItems: boolean;
191
+ elementType: ElementType;
192
+ titleId: string;
193
+ equipmentTypes?: undefined;
194
+ checkboxItems?: undefined;
195
+ width?: undefined;
196
+ } | {
197
+ label: string;
198
+ dataKey: string;
199
+ initialValue: boolean;
200
+ checkboxItems: boolean;
201
+ editable: boolean;
202
+ width: string;
203
+ directoryItems?: undefined;
204
+ equipmentTypes?: undefined;
205
+ elementType?: undefined;
206
+ titleId?: undefined;
207
+ })[];
208
+ export declare const SensiInjectionsSet: ISensiParameters;
209
+ export declare const SensiInjection: ISensiParameters;
210
+ export declare const SensiHvdcs: ISensiParameters;
211
+ export declare const SensiPsts: ISensiParameters;
212
+ export declare const SensiNodes: ISensiParameters;
213
+ export declare enum SensiTabValues {
214
+ 'SensitivityBranches' = 0,
215
+ 'SensitivityNodes' = 1
216
+ }
217
+ export declare enum SensiBranchesTabValues {
218
+ 'SensiInjectionsSet' = 0,
219
+ 'SensiInjection' = 1,
220
+ 'SensiHVDC' = 2,
221
+ 'SensiPST' = 3
222
+ }
@@ -0,0 +1,305 @@
1
+ import { MONITORED_BRANCHES, INJECTIONS, DISTRIBUTION_TYPE, CONTINGENCIES, ACTIVATED, SENSITIVITY_TYPE, HVDC_LINES, PSTS, SUPERVISED_VOLTAGE_LEVELS, EQUIPMENTS_IN_VOLTAGE_REGULATION, PARAMETER_SENSI_INJECTIONS_SET, PARAMETER_SENSI_INJECTION, PARAMETER_SENSI_HVDC, PARAMETER_SENSI_PST, PARAMETER_SENSI_NODES } from "./constants.js";
2
+ import "../../../utils/conversionUtils.js";
3
+ import "react/jsx-runtime";
4
+ import "@mui/icons-material";
5
+ import { ElementType } from "../../../utils/types/elementType.js";
6
+ import { EquipmentType } from "../../../utils/types/equipmentType.js";
7
+ import "../../../utils/yupConfig.js";
8
+ const MONITORED_BRANCHES_EQUIPMENT_TYPES = [EquipmentType.LINE, EquipmentType.TWO_WINDINGS_TRANSFORMER];
9
+ const INJECTION_DISTRIBUTION_TYPES = [
10
+ { id: "PROPORTIONAL", label: "Proportional" },
11
+ { id: "PROPORTIONAL_MAXP", label: "ProportionalMaxP" },
12
+ { id: "REGULAR", label: "Regular" },
13
+ { id: "VENTILATION", label: "Ventilation" }
14
+ ];
15
+ const SENSITIVITY_TYPES = [
16
+ { id: "DELTA_MW", label: "DeltaMW" },
17
+ { id: "DELTA_A", label: "DeltaA" }
18
+ ];
19
+ const PSTS_EQUIPMENT_TYPES = [EquipmentType.TWO_WINDINGS_TRANSFORMER];
20
+ const MONITORED_VOLTAGE_LEVELS_EQUIPMENT_TYPES = [EquipmentType.VOLTAGE_LEVEL];
21
+ const INJECTIONS_EQUIPMENT_TYPES = [EquipmentType.GENERATOR, EquipmentType.LOAD];
22
+ const EQUIPMENTS_IN_VOLTAGE_REGULATION_TYPES = [
23
+ EquipmentType.GENERATOR,
24
+ EquipmentType.TWO_WINDINGS_TRANSFORMER,
25
+ EquipmentType.VSC_CONVERTER_STATION,
26
+ EquipmentType.STATIC_VAR_COMPENSATOR,
27
+ EquipmentType.SHUNT_COMPENSATOR
28
+ ];
29
+ const HVDC_EQUIPMENT_TYPES = [EquipmentType.HVDC_LINE];
30
+ const COLUMNS_DEFINITIONS_INJECTIONS_SET = [
31
+ {
32
+ label: "SupervisedBranches",
33
+ dataKey: MONITORED_BRANCHES,
34
+ initialValue: [],
35
+ editable: true,
36
+ directoryItems: true,
37
+ equipmentTypes: MONITORED_BRANCHES_EQUIPMENT_TYPES,
38
+ elementType: ElementType.FILTER,
39
+ titleId: "FiltersListsSelection"
40
+ },
41
+ {
42
+ label: "Injections",
43
+ dataKey: INJECTIONS,
44
+ initialValue: [],
45
+ editable: true,
46
+ directoryItems: true,
47
+ equipmentTypes: INJECTIONS_EQUIPMENT_TYPES,
48
+ elementType: ElementType.FILTER,
49
+ titleId: "FiltersListsSelection"
50
+ },
51
+ {
52
+ label: "DistributionType",
53
+ dataKey: DISTRIBUTION_TYPE,
54
+ equipmentTypes: INJECTION_DISTRIBUTION_TYPES,
55
+ initialValue: INJECTION_DISTRIBUTION_TYPES[0].id,
56
+ menuItems: true,
57
+ editable: true,
58
+ width: "16rem"
59
+ },
60
+ {
61
+ label: "ContingencyLists",
62
+ dataKey: CONTINGENCIES,
63
+ initialValue: [],
64
+ editable: true,
65
+ directoryItems: true,
66
+ elementType: ElementType.CONTINGENCY_LIST,
67
+ titleId: "ContingencyListsSelection"
68
+ },
69
+ {
70
+ label: "Active",
71
+ dataKey: ACTIVATED,
72
+ initialValue: true,
73
+ checkboxItems: true,
74
+ editable: true,
75
+ width: "4rem"
76
+ }
77
+ ];
78
+ const COLUMNS_DEFINITIONS_INJECTIONS = [
79
+ {
80
+ label: "SupervisedBranches",
81
+ dataKey: MONITORED_BRANCHES,
82
+ initialValue: [],
83
+ editable: true,
84
+ directoryItems: true,
85
+ equipmentTypes: MONITORED_BRANCHES_EQUIPMENT_TYPES,
86
+ elementType: ElementType.FILTER,
87
+ titleId: "FiltersListsSelection"
88
+ },
89
+ {
90
+ label: "Injections",
91
+ dataKey: INJECTIONS,
92
+ initialValue: [],
93
+ editable: true,
94
+ directoryItems: true,
95
+ equipmentTypes: INJECTIONS_EQUIPMENT_TYPES,
96
+ elementType: ElementType.FILTER,
97
+ titleId: "FiltersListsSelection"
98
+ },
99
+ {
100
+ label: "ContingencyLists",
101
+ dataKey: CONTINGENCIES,
102
+ initialValue: [],
103
+ editable: true,
104
+ directoryItems: true,
105
+ elementType: ElementType.CONTINGENCY_LIST,
106
+ titleId: "ContingencyListsSelection"
107
+ },
108
+ {
109
+ label: "Active",
110
+ dataKey: ACTIVATED,
111
+ initialValue: true,
112
+ checkboxItems: true,
113
+ editable: true,
114
+ width: "4rem"
115
+ }
116
+ ];
117
+ const COLUMNS_DEFINITIONS_HVDCS = [
118
+ {
119
+ label: "SupervisedBranches",
120
+ dataKey: MONITORED_BRANCHES,
121
+ initialValue: [],
122
+ editable: true,
123
+ directoryItems: true,
124
+ equipmentTypes: MONITORED_BRANCHES_EQUIPMENT_TYPES,
125
+ elementType: ElementType.FILTER,
126
+ titleId: "FiltersListsSelection"
127
+ },
128
+ {
129
+ label: "SensitivityType",
130
+ dataKey: SENSITIVITY_TYPE,
131
+ equipmentTypes: SENSITIVITY_TYPES,
132
+ initialValue: SENSITIVITY_TYPES[0].id,
133
+ menuItems: true,
134
+ editable: true,
135
+ width: "9rem"
136
+ },
137
+ {
138
+ label: "HvdcLines",
139
+ dataKey: HVDC_LINES,
140
+ initialValue: [],
141
+ editable: true,
142
+ directoryItems: true,
143
+ equipmentTypes: HVDC_EQUIPMENT_TYPES,
144
+ elementType: ElementType.FILTER,
145
+ titleId: "FiltersListsSelection"
146
+ },
147
+ {
148
+ label: "ContingencyLists",
149
+ dataKey: CONTINGENCIES,
150
+ initialValue: [],
151
+ editable: true,
152
+ directoryItems: true,
153
+ elementType: ElementType.CONTINGENCY_LIST,
154
+ titleId: "ContingencyListsSelection"
155
+ },
156
+ {
157
+ label: "Active",
158
+ dataKey: ACTIVATED,
159
+ initialValue: true,
160
+ checkboxItems: true,
161
+ editable: true,
162
+ width: "4rem"
163
+ }
164
+ ];
165
+ const COLUMNS_DEFINITIONS_PSTS = [
166
+ {
167
+ label: "SupervisedBranches",
168
+ dataKey: MONITORED_BRANCHES,
169
+ initialValue: [],
170
+ editable: true,
171
+ directoryItems: true,
172
+ equipmentTypes: MONITORED_BRANCHES_EQUIPMENT_TYPES,
173
+ elementType: ElementType.FILTER,
174
+ titleId: "FiltersListsSelection"
175
+ },
176
+ {
177
+ label: "SensitivityType",
178
+ dataKey: SENSITIVITY_TYPE,
179
+ equipmentTypes: SENSITIVITY_TYPES,
180
+ initialValue: SENSITIVITY_TYPES[0].id,
181
+ menuItems: true,
182
+ editable: true,
183
+ width: "9rem"
184
+ },
185
+ {
186
+ label: "PSTS",
187
+ dataKey: PSTS,
188
+ initialValue: [],
189
+ editable: true,
190
+ directoryItems: true,
191
+ equipmentTypes: PSTS_EQUIPMENT_TYPES,
192
+ elementType: ElementType.FILTER,
193
+ titleId: "FiltersListsSelection"
194
+ },
195
+ {
196
+ label: "ContingencyLists",
197
+ dataKey: CONTINGENCIES,
198
+ initialValue: [],
199
+ editable: true,
200
+ directoryItems: true,
201
+ elementType: ElementType.CONTINGENCY_LIST,
202
+ titleId: "ContingencyListsSelection"
203
+ },
204
+ {
205
+ label: "Active",
206
+ dataKey: ACTIVATED,
207
+ initialValue: true,
208
+ checkboxItems: true,
209
+ editable: true,
210
+ width: "4rem"
211
+ }
212
+ ];
213
+ const COLUMNS_DEFINITIONS_NODES = [
214
+ {
215
+ label: "MonitoredVoltageLevels",
216
+ dataKey: SUPERVISED_VOLTAGE_LEVELS,
217
+ initialValue: [],
218
+ editable: true,
219
+ directoryItems: true,
220
+ equipmentTypes: MONITORED_VOLTAGE_LEVELS_EQUIPMENT_TYPES,
221
+ elementType: ElementType.FILTER,
222
+ titleId: "FiltersListsSelection"
223
+ },
224
+ {
225
+ label: "EquipmentsInVoltageRegulation",
226
+ dataKey: EQUIPMENTS_IN_VOLTAGE_REGULATION,
227
+ initialValue: [],
228
+ editable: true,
229
+ directoryItems: true,
230
+ equipmentTypes: EQUIPMENTS_IN_VOLTAGE_REGULATION_TYPES,
231
+ elementType: ElementType.FILTER,
232
+ titleId: "FiltersListsSelection"
233
+ },
234
+ {
235
+ label: "ContingencyLists",
236
+ dataKey: CONTINGENCIES,
237
+ initialValue: [],
238
+ editable: true,
239
+ directoryItems: true,
240
+ elementType: ElementType.CONTINGENCY_LIST,
241
+ titleId: "ContingencyListsSelection"
242
+ },
243
+ {
244
+ label: "Active",
245
+ dataKey: ACTIVATED,
246
+ initialValue: true,
247
+ checkboxItems: true,
248
+ editable: true,
249
+ width: "4rem"
250
+ }
251
+ ];
252
+ const SensiInjectionsSet = {
253
+ columnsDef: COLUMNS_DEFINITIONS_INJECTIONS_SET,
254
+ name: PARAMETER_SENSI_INJECTIONS_SET
255
+ };
256
+ const SensiInjection = {
257
+ columnsDef: COLUMNS_DEFINITIONS_INJECTIONS,
258
+ name: PARAMETER_SENSI_INJECTION
259
+ };
260
+ const SensiHvdcs = {
261
+ columnsDef: COLUMNS_DEFINITIONS_HVDCS,
262
+ name: PARAMETER_SENSI_HVDC
263
+ };
264
+ const SensiPsts = {
265
+ columnsDef: COLUMNS_DEFINITIONS_PSTS,
266
+ name: PARAMETER_SENSI_PST
267
+ };
268
+ const SensiNodes = {
269
+ columnsDef: COLUMNS_DEFINITIONS_NODES,
270
+ name: PARAMETER_SENSI_NODES
271
+ };
272
+ var SensiTabValues = /* @__PURE__ */ ((SensiTabValues2) => {
273
+ SensiTabValues2[SensiTabValues2["SensitivityBranches"] = 0] = "SensitivityBranches";
274
+ SensiTabValues2[SensiTabValues2["SensitivityNodes"] = 1] = "SensitivityNodes";
275
+ return SensiTabValues2;
276
+ })(SensiTabValues || {});
277
+ var SensiBranchesTabValues = /* @__PURE__ */ ((SensiBranchesTabValues2) => {
278
+ SensiBranchesTabValues2[SensiBranchesTabValues2["SensiInjectionsSet"] = 0] = "SensiInjectionsSet";
279
+ SensiBranchesTabValues2[SensiBranchesTabValues2["SensiInjection"] = 1] = "SensiInjection";
280
+ SensiBranchesTabValues2[SensiBranchesTabValues2["SensiHVDC"] = 2] = "SensiHVDC";
281
+ SensiBranchesTabValues2[SensiBranchesTabValues2["SensiPST"] = 3] = "SensiPST";
282
+ return SensiBranchesTabValues2;
283
+ })(SensiBranchesTabValues || {});
284
+ export {
285
+ COLUMNS_DEFINITIONS_HVDCS,
286
+ COLUMNS_DEFINITIONS_INJECTIONS,
287
+ COLUMNS_DEFINITIONS_INJECTIONS_SET,
288
+ COLUMNS_DEFINITIONS_NODES,
289
+ COLUMNS_DEFINITIONS_PSTS,
290
+ EQUIPMENTS_IN_VOLTAGE_REGULATION_TYPES,
291
+ HVDC_EQUIPMENT_TYPES,
292
+ INJECTIONS_EQUIPMENT_TYPES,
293
+ INJECTION_DISTRIBUTION_TYPES,
294
+ MONITORED_BRANCHES_EQUIPMENT_TYPES,
295
+ MONITORED_VOLTAGE_LEVELS_EQUIPMENT_TYPES,
296
+ PSTS_EQUIPMENT_TYPES,
297
+ SENSITIVITY_TYPES,
298
+ SensiBranchesTabValues,
299
+ SensiHvdcs,
300
+ SensiInjection,
301
+ SensiInjectionsSet,
302
+ SensiNodes,
303
+ SensiPsts,
304
+ SensiTabValues
305
+ };
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Copyright (c) 2025, 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 ACTIVATED = "activated";
8
+ export declare const CONTINGENCIES = "contingencies";
9
+ export declare const EQUIPMENTS_IN_VOLTAGE_REGULATION = "equipmentsInVoltageRegulation";
10
+ export declare const SUPERVISED_VOLTAGE_LEVELS = "monitoredVoltageLevels";
11
+ export declare const MONITORED_BRANCHES = "monitoredBranches";
12
+ export declare const HVDC_LINES = "hvdcs";
13
+ export declare const SENSITIVITY_TYPE = "sensitivityType";
14
+ export declare const INJECTIONS = "injections";
15
+ export declare const DISTRIBUTION_TYPE = "distributionType";
16
+ export declare const PSTS = "psts";
17
+ export declare const FLOW_FLOW_SENSITIVITY_VALUE_THRESHOLD = "flowFlowSensitivityValueThreshold";
18
+ export declare const ANGLE_FLOW_SENSITIVITY_VALUE_THRESHOLD = "angleFlowSensitivityValueThreshold";
19
+ export declare const FLOW_VOLTAGE_SENSITIVITY_VALUE_THRESHOLD = "flowVoltageSensitivityValueThreshold";
20
+ export declare const PARAMETER_SENSI_INJECTIONS_SET = "sensitivityInjectionsSet";
21
+ export declare const SENSI_INJECTIONS_SET = "sensitivityInjectionsSet";
22
+ export declare const SENSI_INJECTION = "sensiInjection";
23
+ export declare const PARAMETER_SENSI_INJECTION = "sensitivityInjection";
24
+ export declare const PARAMETER_SENSI_HVDC = "sensitivityHVDC";
25
+ export declare const PARAMETER_SENSI_PST = "sensitivityPST";
26
+ export declare const PARAMETER_SENSI_NODES = "sensitivityNodes";
27
+ export declare const CONTAINER_ID = "containerId";
28
+ export declare const CONTAINER_NAME = "containerName";
29
+ export declare const COUNT = "count";