@gridsuite/commons-ui 0.112.0 → 0.113.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/dnd-table/dnd-table.js +2 -2
- package/dist/components/index.js +27 -6
- package/dist/components/inputs/reactHookForm/provider/CustomFormProvider.js +0 -4
- package/dist/components/inputs/reactHookForm/text/DescriptionField.js +0 -3
- package/dist/components/inputs/reactQueryBuilder/OperatorSelector.js +1 -0
- package/dist/components/parameters/common/index.js +0 -2
- package/dist/components/parameters/common/limitreductions/columns-definitions.d.ts +7 -2
- package/dist/components/parameters/common/limitreductions/columns-definitions.js +16 -3
- package/dist/components/parameters/common/limitreductions/limit-reduction-table-cell.d.ts +3 -3
- package/dist/components/parameters/common/limitreductions/limit-reduction-table-cell.js +4 -1
- package/dist/components/parameters/common/limitreductions/limit-reduction-table-row.d.ts +2 -2
- package/dist/components/parameters/common/name-element-editor/name-element-editor-form.js +5 -28
- package/dist/components/parameters/common/name-element-editor/name-element-editor-utils.d.ts +2 -2
- package/dist/components/parameters/common/name-element-editor/name-element-editor-utils.js +2 -2
- package/dist/components/parameters/common/parameters-edition-dialog-props.d.ts +0 -4
- package/dist/components/parameters/common/parameters-edition-dialog-props.js +1 -14
- package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table-cell.d.ts +2 -2
- package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table-row.d.ts +2 -2
- package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table.d.ts +2 -2
- package/dist/components/parameters/index.d.ts +1 -1
- package/dist/components/parameters/index.js +27 -6
- package/dist/components/parameters/loadflow/load-flow-parameters-content.js +1 -1
- package/dist/components/parameters/loadflow/load-flow-parameters-dialog.js +1 -1
- package/dist/components/parameters/loadflow/load-flow-parameters-utils.js +1 -1
- package/dist/components/parameters/loadflow/use-load-flow-parameters-form.js +0 -2
- package/dist/components/parameters/network-visualizations/map-parameters.js +1 -1
- package/dist/components/parameters/network-visualizations/single-line-diagram-parameters.js +1 -1
- package/dist/components/parameters/parameters-style.d.ts +0 -1
- package/dist/components/parameters/security-analysis/security-analysis-parameters-dialog.js +8 -2
- package/dist/components/parameters/security-analysis/security-analysis-parameters-form.js +2 -1
- package/dist/components/parameters/security-analysis/security-analysis-parameters-selector.js +1 -1
- package/dist/components/parameters/security-analysis/use-security-analysis-parameters-form.js +1 -1
- package/dist/components/parameters/sensi/columns-definitions.d.ts +222 -0
- package/dist/components/parameters/sensi/columns-definitions.js +305 -0
- package/dist/components/parameters/sensi/constants.d.ts +29 -0
- package/dist/components/parameters/sensi/constants.js +48 -0
- package/dist/components/parameters/sensi/index.d.ts +10 -0
- package/dist/components/parameters/sensi/index.js +29 -0
- package/dist/components/parameters/sensi/sensitivity-Flow-parameters.d.ts +7 -0
- package/dist/components/parameters/sensi/sensitivity-Flow-parameters.js +72 -0
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-dialog.d.ts +2 -0
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-dialog.js +113 -0
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-form.d.ts +8 -0
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-form.js +129 -0
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-inline.d.ts +13 -0
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-inline.js +185 -0
- package/dist/components/parameters/sensi/sensitivity-parameters-selector.d.ts +16 -0
- package/dist/components/parameters/sensi/sensitivity-parameters-selector.js +274 -0
- package/dist/components/parameters/sensi/sensitivity-table.d.ts +15 -0
- package/dist/components/parameters/sensi/sensitivity-table.js +134 -0
- package/dist/components/parameters/sensi/table-cell.d.ts +8 -0
- package/dist/components/parameters/sensi/table-cell.js +86 -0
- package/dist/components/parameters/sensi/table-row.d.ts +11 -0
- package/dist/components/parameters/sensi/table-row.js +42 -0
- package/dist/components/parameters/sensi/use-sensitivity-analysis-parameters.d.ts +49 -0
- package/dist/components/parameters/sensi/use-sensitivity-analysis-parameters.js +413 -0
- package/dist/components/parameters/sensi/utils.d.ts +419 -0
- package/dist/components/parameters/sensi/utils.js +357 -0
- package/dist/components/parameters/voltage-init/general-parameters.js +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +2 -0
- package/dist/hooks/use-create-row-data-sensi.d.ts +4 -0
- package/dist/hooks/use-create-row-data-sensi.js +20 -0
- package/dist/index.js +29 -6
- package/dist/services/sensitivity-analysis.d.ts +12 -0
- package/dist/services/sensitivity-analysis.js +87 -0
- package/dist/translations/en/parameters.d.ts +64 -0
- package/dist/translations/en/parameters.js +70 -1
- package/dist/translations/fr/parameters.d.ts +64 -0
- package/dist/translations/fr/parameters.js +70 -1
- package/package.json +1 -1
|
@@ -29,10 +29,10 @@ import "localized-countries/data/fr";
|
|
|
29
29
|
import "localized-countries/data/en";
|
|
30
30
|
import { TableNumericalInput } from "../inputs/reactHookForm/tableInputs/table-numerical-input.js";
|
|
31
31
|
import { TableTextInput } from "../inputs/reactHookForm/tableInputs/table-text-input.js";
|
|
32
|
-
import "../../utils/conversionUtils.js";
|
|
33
32
|
import "../../utils/types/equipmentType.js";
|
|
34
|
-
import "../../utils/yupConfig.js";
|
|
35
33
|
import "notistack";
|
|
34
|
+
import "../../utils/conversionUtils.js";
|
|
35
|
+
import "../../utils/yupConfig.js";
|
|
36
36
|
import "@react-querybuilder/material";
|
|
37
37
|
import "../filter/expert/expertFilterConstants.js";
|
|
38
38
|
import "../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
package/dist/components/index.js
CHANGED
|
@@ -129,7 +129,6 @@ import { LeftPanelCloseIcon } from "./icons/LeftPanelCloseIcon.js";
|
|
|
129
129
|
import { DeviceHubIcon } from "./icons/DeviceHubIcon.js";
|
|
130
130
|
import { ComputingType, formatComputingTypeLabel, isValidComputingType } from "./parameters/common/computing-type.js";
|
|
131
131
|
import { PARAM_SA_FLOW_PROPORTIONAL_THRESHOLD, 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_PROVIDER, PROVIDER, ReactivePowerAdornment, VOLTAGE_LEVEL, VoltageAdornment } from "./parameters/common/constant.js";
|
|
132
|
-
import { getDialogParametersFormSchema } from "./parameters/common/parameters-edition-dialog-props.js";
|
|
133
132
|
import { LineSeparator } from "./parameters/common/line-separator.js";
|
|
134
133
|
import { LabelledButton, SwitchWithLabel, TabPanel } from "./parameters/common/parameters.js";
|
|
135
134
|
import { CreateParameterDialog } from "./parameters/common/parameters-creation-dialog.js";
|
|
@@ -151,7 +150,6 @@ import { CENTER_LABEL, COMPONENT_LIBRARY, DIAGONAL_LABEL, INIT_NAD_WITH_GEO_DATA
|
|
|
151
150
|
import { MAP_BASEMAP_CARTO, MAP_BASEMAP_CARTO_NOLABEL, MAP_BASEMAP_ETALAB, MAP_BASEMAP_MAPBOX, SubstationLayout } from "./parameters/network-visualizations/network-visualizations.types.js";
|
|
152
151
|
import { NetworkVisualizationParametersInline } from "./parameters/network-visualizations/network-visualizations-parameters-inline.js";
|
|
153
152
|
import { NetworkVisualizationsParametersEditionDialog } from "./parameters/network-visualizations/network-visualizations-parameters-dialog.js";
|
|
154
|
-
import { getTabIndicatorStyle, getTabStyle, parametersStyles } from "./parameters/parameters-style.js";
|
|
155
153
|
import { BALANCE_TYPE, COMMON_PARAMETERS, CONNECTED_COMPONENT_MODE, COUNTRIES_TO_BALANCE, DC, DC_POWER_FACTOR, DC_USE_TRANSFORMER_RATIO, DEFAULT_LIMIT_REDUCTION_VALUE, DISTRIBUTED_SLACK, HVDC_AC_EMULATION, MAX_VALUE_ALLOWED_FOR_LIMIT_REDUCTION, MIN_VALUE_ALLOWED_FOR_LIMIT_REDUCTION, PARAM_LIMIT_REDUCTION, PARAM_PROVIDER_OPENLOADFLOW, PHASE_SHIFTER_REGULATION_ON, READ_SLACK_BUS, SHUNT_COMPENSATOR_VOLTAGE_CONTROL_ON, SPECIFIC_PARAMETERS, TWT_SPLIT_SHUNT_ADMITTANCE, USE_REACTIVE_LIMITS, VOLTAGE_INIT_MODE, WRITE_SLACK_BUS, alertThresholdMarks } from "./parameters/loadflow/constants.js";
|
|
156
154
|
import { LoadFlowParametersInline } from "./parameters/loadflow/load-flow-parameters-inline.js";
|
|
157
155
|
import { LoadFlowParametersEditionDialog } from "./parameters/loadflow/load-flow-parameters-dialog.js";
|
|
@@ -164,6 +162,10 @@ import { VoltageInitParametersEditionDialog } from "./parameters/voltage-init/vo
|
|
|
164
162
|
import { VoltageInitParametersInLine } from "./parameters/voltage-init/voltage-init-parameters-inline.js";
|
|
165
163
|
import { SecurityAnalysisParametersInline } from "./parameters/security-analysis/security-analysis-parameters-inline.js";
|
|
166
164
|
import { SecurityAnalysisParametersDialog } from "./parameters/security-analysis/security-analysis-parameters-dialog.js";
|
|
165
|
+
import { SensitivityAnalysisParametersInline } from "./parameters/sensi/sensitivity-analysis-parameters-inline.js";
|
|
166
|
+
import { SensitivityAnalysisParametersDialog } from "./parameters/sensi/sensitivity-analysis-parameters-dialog.js";
|
|
167
|
+
import { COLUMNS_DEFINITIONS_HVDCS, COLUMNS_DEFINITIONS_INJECTIONS, COLUMNS_DEFINITIONS_INJECTIONS_SET, COLUMNS_DEFINITIONS_NODES, COLUMNS_DEFINITIONS_PSTS, EQUIPMENTS_IN_VOLTAGE_REGULATION_TYPES, HVDC_EQUIPMENT_TYPES, INJECTIONS_EQUIPMENT_TYPES, INJECTION_DISTRIBUTION_TYPES, MONITORED_BRANCHES_EQUIPMENT_TYPES, MONITORED_VOLTAGE_LEVELS_EQUIPMENT_TYPES, PSTS_EQUIPMENT_TYPES, SENSITIVITY_TYPES, SensiBranchesTabValues, SensiHvdcs, SensiInjection, SensiInjectionsSet, SensiNodes, SensiPsts, SensiTabValues } from "./parameters/sensi/columns-definitions.js";
|
|
168
|
+
import { SensitivityTable } from "./parameters/sensi/sensitivity-table.js";
|
|
167
169
|
import { CustomMenuItem, CustomNestedMenuItem } from "./menus/custom-nested-menu.js";
|
|
168
170
|
export {
|
|
169
171
|
AboutDialog,
|
|
@@ -179,7 +181,12 @@ export {
|
|
|
179
181
|
BooleanInput,
|
|
180
182
|
BottomRightButtons,
|
|
181
183
|
CENTER_LABEL,
|
|
184
|
+
COLUMNS_DEFINITIONS_HVDCS,
|
|
185
|
+
COLUMNS_DEFINITIONS_INJECTIONS,
|
|
186
|
+
COLUMNS_DEFINITIONS_INJECTIONS_SET,
|
|
182
187
|
COLUMNS_DEFINITIONS_LIMIT_REDUCTIONS,
|
|
188
|
+
COLUMNS_DEFINITIONS_NODES,
|
|
189
|
+
COLUMNS_DEFINITIONS_PSTS,
|
|
183
190
|
COMBINATOR_OPTIONS,
|
|
184
191
|
COMMON_PARAMETERS,
|
|
185
192
|
COMPONENT_LIBRARY,
|
|
@@ -239,6 +246,7 @@ export {
|
|
|
239
246
|
DndTableBottomLeftButtons,
|
|
240
247
|
DndTableBottomRightButtons,
|
|
241
248
|
ENERGY_SOURCE_OPTIONS,
|
|
249
|
+
EQUIPMENTS_IN_VOLTAGE_REGULATION_TYPES,
|
|
242
250
|
EXPERT_FILTER_EQUIPMENTS,
|
|
243
251
|
EXPERT_FILTER_FIELDS,
|
|
244
252
|
EXPERT_FILTER_QUERY,
|
|
@@ -277,9 +285,12 @@ export {
|
|
|
277
285
|
GroupValueEditor,
|
|
278
286
|
HIGH_VOLTAGE_LIMIT,
|
|
279
287
|
HVDC_AC_EMULATION,
|
|
288
|
+
HVDC_EQUIPMENT_TYPES,
|
|
280
289
|
HelperPreviousValue,
|
|
281
290
|
ID,
|
|
282
291
|
INIT_NAD_WITH_GEO_DATA,
|
|
292
|
+
INJECTIONS_EQUIPMENT_TYPES,
|
|
293
|
+
INJECTION_DISTRIBUTION_TYPES,
|
|
283
294
|
INTL_LINE_FLOW_MODE_OPTIONS,
|
|
284
295
|
INTL_MAP_BASE_MAP_OPTIONS,
|
|
285
296
|
INTL_SUBSTATION_LAYOUT_OPTIONS,
|
|
@@ -315,6 +326,8 @@ export {
|
|
|
315
326
|
MAX_ROWS_NUMBER,
|
|
316
327
|
MAX_VALUE_ALLOWED_FOR_LIMIT_REDUCTION,
|
|
317
328
|
MIN_VALUE_ALLOWED_FOR_LIMIT_REDUCTION,
|
|
329
|
+
MONITORED_BRANCHES_EQUIPMENT_TYPES,
|
|
330
|
+
MONITORED_VOLTAGE_LEVELS_EQUIPMENT_TYPES,
|
|
318
331
|
MidFormError,
|
|
319
332
|
ModifyElementSelection,
|
|
320
333
|
MuiSelectInput,
|
|
@@ -353,6 +366,7 @@ export {
|
|
|
353
366
|
PHASE_SHIFTER_REGULATION_ON,
|
|
354
367
|
PRIORITY,
|
|
355
368
|
PROVIDER,
|
|
369
|
+
PSTS_EQUIPMENT_TYPES,
|
|
356
370
|
ParameterFloat,
|
|
357
371
|
ParameterGroup,
|
|
358
372
|
ParameterLineDirectoryItemsInput,
|
|
@@ -378,6 +392,7 @@ export {
|
|
|
378
392
|
RuleValueEditor,
|
|
379
393
|
SELECTED,
|
|
380
394
|
SELECTION_TYPE,
|
|
395
|
+
SENSITIVITY_TYPES,
|
|
381
396
|
SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE,
|
|
382
397
|
SHORT_CIRCUIT_PREDEFINED_PARAMS,
|
|
383
398
|
SHORT_CIRCUIT_WITH_FEEDER_RESULT,
|
|
@@ -396,6 +411,16 @@ export {
|
|
|
396
411
|
SecurityAnalysisParametersInline,
|
|
397
412
|
SelectClearable,
|
|
398
413
|
SelectInput,
|
|
414
|
+
SensiBranchesTabValues,
|
|
415
|
+
SensiHvdcs,
|
|
416
|
+
SensiInjection,
|
|
417
|
+
SensiInjectionsSet,
|
|
418
|
+
SensiNodes,
|
|
419
|
+
SensiPsts,
|
|
420
|
+
SensiTabValues,
|
|
421
|
+
SensitivityAnalysisParametersDialog,
|
|
422
|
+
SensitivityAnalysisParametersInline,
|
|
423
|
+
SensitivityTable,
|
|
399
424
|
ShortCircuitParametersEditionDialog,
|
|
400
425
|
ShortCircuitParametersInLine,
|
|
401
426
|
SignInCallbackHandler,
|
|
@@ -452,7 +477,6 @@ export {
|
|
|
452
477
|
generateTreeViewFinderClass,
|
|
453
478
|
getCriteriaBasedFormData,
|
|
454
479
|
getCriteriaBasedSchema,
|
|
455
|
-
getDialogParametersFormSchema,
|
|
456
480
|
getExpertFilterEmptyFormData,
|
|
457
481
|
getExplicitNamingFilterEmptyFormData,
|
|
458
482
|
getLimitReductionsFormSchema,
|
|
@@ -461,8 +485,6 @@ export {
|
|
|
461
485
|
getPreLoginPath,
|
|
462
486
|
getRangeInputSchema,
|
|
463
487
|
getSAParametersFromSchema,
|
|
464
|
-
getTabIndicatorStyle,
|
|
465
|
-
getTabStyle,
|
|
466
488
|
gridItem,
|
|
467
489
|
handleSigninCallback,
|
|
468
490
|
handleSilentRenewCallback,
|
|
@@ -478,7 +500,6 @@ export {
|
|
|
478
500
|
isValidComputingType,
|
|
479
501
|
login,
|
|
480
502
|
logout,
|
|
481
|
-
parametersStyles,
|
|
482
503
|
queryValidator,
|
|
483
504
|
recursiveRemove,
|
|
484
505
|
rqbQuerySchemaValidator,
|
|
@@ -2,11 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { createContext, useMemo } from "react";
|
|
3
3
|
import { FormProvider } from "react-hook-form";
|
|
4
4
|
import * as yup from "yup";
|
|
5
|
-
import "react-intl";
|
|
6
|
-
import "../../../../utils/types/equipmentType.js";
|
|
7
|
-
import "@mui/material";
|
|
8
5
|
import { getSystemLanguage } from "../../../../hooks/useLocalizedCountries.js";
|
|
9
|
-
import "notistack";
|
|
10
6
|
const CustomFormContext = createContext({
|
|
11
7
|
removeOptional: false,
|
|
12
8
|
validationSchema: yup.object(),
|
|
@@ -5,9 +5,6 @@ import { Box, Button } from "@mui/material";
|
|
|
5
5
|
import { ControlPoint, Delete } from "@mui/icons-material";
|
|
6
6
|
import { useFormContext } from "react-hook-form";
|
|
7
7
|
import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
|
|
8
|
-
import "../../../../utils/conversionUtils.js";
|
|
9
|
-
import "../../../../utils/types/equipmentType.js";
|
|
10
|
-
import "../../../../utils/yupConfig.js";
|
|
11
8
|
import { ExpandingTextField } from "./ExpandingTextField.js";
|
|
12
9
|
function DescriptionField({ expandingTextSx }) {
|
|
13
10
|
const { setValue, getValues } = useFormContext();
|
|
@@ -9,6 +9,7 @@ import "localized-countries/data/fr";
|
|
|
9
9
|
import "localized-countries/data/en";
|
|
10
10
|
import "notistack";
|
|
11
11
|
import { useSelectAppearance } from "../../../hooks/useSelectAppearance.js";
|
|
12
|
+
import "react-hook-form";
|
|
12
13
|
function OperatorSelector(props) {
|
|
13
14
|
const { options } = props;
|
|
14
15
|
const selectAppearance = useSelectAppearance((options == null ? void 0 : options.length) || 0);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComputingType, formatComputingTypeLabel, isValidComputingType } from "./computing-type.js";
|
|
2
2
|
import { PARAM_SA_FLOW_PROPORTIONAL_THRESHOLD, 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_PROVIDER, PROVIDER, ReactivePowerAdornment, VOLTAGE_LEVEL, VoltageAdornment } from "./constant.js";
|
|
3
|
-
import { getDialogParametersFormSchema } from "./parameters-edition-dialog-props.js";
|
|
4
3
|
import { LineSeparator } from "./line-separator.js";
|
|
5
4
|
import { LabelledButton, SwitchWithLabel, TabPanel } from "./parameters.js";
|
|
6
5
|
import { CreateParameterDialog } from "./parameters-creation-dialog.js";
|
|
@@ -55,7 +54,6 @@ export {
|
|
|
55
54
|
VOLTAGE_LEVELS_FORM,
|
|
56
55
|
VoltageAdornment,
|
|
57
56
|
formatComputingTypeLabel,
|
|
58
|
-
getDialogParametersFormSchema,
|
|
59
57
|
getLimitReductionsFormSchema,
|
|
60
58
|
getSAParametersFromSchema,
|
|
61
59
|
isValidComputingType,
|
|
@@ -43,13 +43,13 @@ export declare const TAB_INFO: {
|
|
|
43
43
|
label: string;
|
|
44
44
|
developerModeOnly: boolean;
|
|
45
45
|
}[];
|
|
46
|
-
export interface
|
|
46
|
+
export interface LimitReductionIColumnsDef {
|
|
47
47
|
label: string;
|
|
48
48
|
dataKey: string;
|
|
49
49
|
tooltip: string;
|
|
50
50
|
width?: string;
|
|
51
51
|
}
|
|
52
|
-
export declare const COLUMNS_DEFINITIONS_LIMIT_REDUCTIONS:
|
|
52
|
+
export declare const COLUMNS_DEFINITIONS_LIMIT_REDUCTIONS: LimitReductionIColumnsDef[];
|
|
53
53
|
export declare const getLimitReductionsFormSchema: (nbTemporaryLimits: number) => yup.ObjectSchema<{
|
|
54
54
|
limitReductionsForm: {
|
|
55
55
|
voltageLevelsForm?: string | undefined;
|
|
@@ -66,6 +66,9 @@ export declare const getSAParametersFromSchema: (name: string | null, limitReduc
|
|
|
66
66
|
highVoltageAbsoluteThreshold: unknown;
|
|
67
67
|
limitReductionsForm: unknown;
|
|
68
68
|
provider: unknown;
|
|
69
|
+
} & {
|
|
70
|
+
name: string | null | undefined;
|
|
71
|
+
description: string | null | undefined;
|
|
69
72
|
}, yup.AnyObject, {
|
|
70
73
|
flowProportionalThreshold: undefined;
|
|
71
74
|
lowVoltageProportionalThreshold: undefined;
|
|
@@ -74,4 +77,6 @@ export declare const getSAParametersFromSchema: (name: string | null, limitReduc
|
|
|
74
77
|
highVoltageAbsoluteThreshold: undefined;
|
|
75
78
|
limitReductionsForm: undefined;
|
|
76
79
|
provider: undefined;
|
|
80
|
+
name: undefined;
|
|
81
|
+
description: undefined;
|
|
77
82
|
}, "">;
|
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
import "../../../../utils/yupConfig.js";
|
|
2
2
|
import { PARAM_SA_PROVIDER, 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 } from "../constant.js";
|
|
3
|
-
import
|
|
3
|
+
import "react/jsx-runtime";
|
|
4
|
+
import "@mui/material";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-intl";
|
|
7
|
+
import "@mui/icons-material";
|
|
8
|
+
import "react-hook-form";
|
|
9
|
+
import "../../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
4
10
|
import * as yup from "yup";
|
|
11
|
+
import "../../../../utils/types/equipmentType.js";
|
|
12
|
+
import "localized-countries";
|
|
13
|
+
import "localized-countries/data/fr";
|
|
14
|
+
import "localized-countries/data/en";
|
|
15
|
+
import "notistack";
|
|
16
|
+
import "../../../../utils/conversionUtils.js";
|
|
17
|
+
import "../../../filter/HeaderFilterForm.js";
|
|
18
|
+
import { getNameElementEditorSchema } from "../name-element-editor/name-element-editor-utils.js";
|
|
5
19
|
const LIMIT_REDUCTIONS_FORM = "limitReductionsForm";
|
|
6
20
|
const VOLTAGE_LEVELS_FORM = "voltageLevelsForm";
|
|
7
21
|
const IST_FORM = "istForm";
|
|
@@ -66,11 +80,10 @@ const getSAParametersFromSchema = (name, limitReductions) => {
|
|
|
66
80
|
[PARAM_SA_HIGH_VOLTAGE_ABSOLUTE_THRESHOLD]: yup.number().required()
|
|
67
81
|
});
|
|
68
82
|
return yup.object().shape({
|
|
69
|
-
...getDialogParametersFormSchema(name),
|
|
70
83
|
...providerSchema.fields,
|
|
71
84
|
...limitReductionsSchema.fields,
|
|
72
85
|
...thresholdsSchema.fields
|
|
73
|
-
});
|
|
86
|
+
}).concat(getNameElementEditorSchema(name));
|
|
74
87
|
};
|
|
75
88
|
export {
|
|
76
89
|
COLUMNS_DEFINITIONS_LIMIT_REDUCTIONS,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function LimitReductionTableCell({ rowIndex, column }: Readonly<{
|
|
1
|
+
import { LimitReductionIColumnsDef } from './columns-definitions';
|
|
2
|
+
export declare function LimitReductionTableCell({ rowIndex, column, }: Readonly<{
|
|
3
3
|
rowIndex: number;
|
|
4
|
-
column:
|
|
4
|
+
column: LimitReductionIColumnsDef;
|
|
5
5
|
}>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -30,7 +30,10 @@ import "../../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
|
30
30
|
import "uuid";
|
|
31
31
|
import "../../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
32
32
|
import "react-querybuilder";
|
|
33
|
-
function LimitReductionTableCell({
|
|
33
|
+
function LimitReductionTableCell({
|
|
34
|
+
rowIndex,
|
|
35
|
+
column
|
|
36
|
+
}) {
|
|
34
37
|
return /* @__PURE__ */ jsx(TableCell, { sx: { fontWeight: "bold" }, children: column.dataKey === VOLTAGE_LEVELS_FORM ? /* @__PURE__ */ jsx(RawReadOnlyInput, { name: `${LIMIT_REDUCTIONS_FORM}[${rowIndex}].${column.dataKey}` }) : /* @__PURE__ */ jsx(FloatInput, { name: `${LIMIT_REDUCTIONS_FORM}[${rowIndex}].${column.dataKey}` }) });
|
|
35
38
|
}
|
|
36
39
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LimitReductionIColumnsDef } from './columns-definitions';
|
|
2
2
|
interface TableRowComponentProps {
|
|
3
|
-
columnsDefinition:
|
|
3
|
+
columnsDefinition: LimitReductionIColumnsDef[];
|
|
4
4
|
index: number;
|
|
5
5
|
}
|
|
6
6
|
export declare function LimitReductionTableRow({ columnsDefinition, index }: Readonly<TableRowComponentProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,42 +1,19 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Grid } from "@mui/material";
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
import "react-hook-form";
|
|
6
|
-
import "../../../../utils/types/equipmentType.js";
|
|
7
|
-
import "localized-countries";
|
|
8
|
-
import "localized-countries/data/fr";
|
|
9
|
-
import "localized-countries/data/en";
|
|
10
|
-
import "notistack";
|
|
11
|
-
import "../../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
12
|
-
import "@mui/icons-material";
|
|
13
|
-
import "yup";
|
|
14
|
-
import "../../../overflowableText/OverflowableText.js";
|
|
15
|
-
import "../../../treeViewFinder/TreeViewFinder.js";
|
|
16
|
-
import "../../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
3
|
+
import { DescriptionField } from "../../../inputs/reactHookForm/text/DescriptionField.js";
|
|
4
|
+
import { UniqueNameInput } from "../../../inputs/reactHookForm/text/UniqueNameInput.js";
|
|
17
5
|
import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
|
|
18
|
-
import "../../../customAGGrid/customAggrid.js";
|
|
19
|
-
import "ag-grid-community";
|
|
20
|
-
import "react-papaparse";
|
|
21
|
-
import "react-csv-downloader";
|
|
22
|
-
import "../../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
23
6
|
import "../../../../utils/conversionUtils.js";
|
|
7
|
+
import "@mui/icons-material";
|
|
8
|
+
import "../../../../utils/types/equipmentType.js";
|
|
24
9
|
import "../../../../utils/yupConfig.js";
|
|
25
|
-
import { DescriptionField } from "../../../inputs/reactHookForm/text/DescriptionField.js";
|
|
26
|
-
import { UniqueNameInput } from "../../../inputs/reactHookForm/text/UniqueNameInput.js";
|
|
27
|
-
import "@react-querybuilder/material";
|
|
28
|
-
import "../../../filter/expert/expertFilterConstants.js";
|
|
29
|
-
import "../../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
30
|
-
import "uuid";
|
|
31
|
-
import "../../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
32
|
-
import "react-querybuilder";
|
|
33
10
|
import { filterStyles } from "../../../filter/HeaderFilterForm.js";
|
|
34
11
|
function NameElementEditorForm({
|
|
35
12
|
initialElementName,
|
|
36
13
|
activeDirectory,
|
|
37
14
|
elementType
|
|
38
15
|
}) {
|
|
39
|
-
return /* @__PURE__ */ jsx(Grid, { item: true,
|
|
16
|
+
return /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, direction: "column", marginBottom: "8px", children: [
|
|
40
17
|
/* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
|
|
41
18
|
UniqueNameInput,
|
|
42
19
|
{
|
package/dist/components/parameters/common/name-element-editor/name-element-editor-utils.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ export declare function getNameElementEditorEmptyFormData(initialElementName: st
|
|
|
4
4
|
description: string | null;
|
|
5
5
|
};
|
|
6
6
|
export declare function getNameElementEditorSchema(initialElementName: string | null): yup.ObjectSchema<{
|
|
7
|
-
name: string | undefined;
|
|
8
|
-
description: string | undefined;
|
|
7
|
+
name: string | null | undefined;
|
|
8
|
+
description: string | null | undefined;
|
|
9
9
|
}, yup.AnyObject, {
|
|
10
10
|
name: undefined;
|
|
11
11
|
description: undefined;
|
|
@@ -36,12 +36,12 @@ function getNameElementEditorEmptyFormData(initialElementName, initialElementdes
|
|
|
36
36
|
}
|
|
37
37
|
function getNameElementEditorSchema(initialElementName) {
|
|
38
38
|
return yup.object().shape({
|
|
39
|
-
[NAME]: yup.string().when("nameRequiredWhenInitialNameIsSet", {
|
|
39
|
+
[NAME]: yup.string().nullable().when("nameRequiredWhenInitialNameIsSet", {
|
|
40
40
|
is: () => initialElementName !== null,
|
|
41
41
|
then: () => yup.string().required(),
|
|
42
42
|
otherwise: () => yup.string()
|
|
43
43
|
}),
|
|
44
|
-
[DESCRIPTION]: yup.string()
|
|
44
|
+
[DESCRIPTION]: yup.string().nullable()
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
export {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { UUID } from 'crypto';
|
|
2
2
|
import { User } from 'oidc-client';
|
|
3
|
-
import { default as yup } from '../../../utils/yupConfig';
|
|
4
3
|
export interface ParametersEditionDialogProps {
|
|
5
4
|
id: UUID;
|
|
6
5
|
open: boolean;
|
|
@@ -13,6 +12,3 @@ export interface ParametersEditionDialogProps {
|
|
|
13
12
|
user: User | null;
|
|
14
13
|
enableDeveloperMode?: boolean;
|
|
15
14
|
}
|
|
16
|
-
export declare const getDialogParametersFormSchema: (name: string | null) => {
|
|
17
|
-
[key: string]: yup.AnySchema;
|
|
18
|
-
};
|
|
@@ -1,14 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { NAME, DESCRIPTION } from "../../inputs/reactHookForm/constants.js";
|
|
3
|
-
import * as yup from "yup";
|
|
4
|
-
const getDialogParametersFormSchema = (name) => {
|
|
5
|
-
const shape = {};
|
|
6
|
-
if (name) {
|
|
7
|
-
shape[NAME] = yup.string().required();
|
|
8
|
-
shape[DESCRIPTION] = yup.string();
|
|
9
|
-
}
|
|
10
|
-
return shape;
|
|
11
|
-
};
|
|
12
|
-
export {
|
|
13
|
-
getDialogParametersFormSchema
|
|
14
|
-
};
|
|
1
|
+
|
package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table-cell.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LimitReductionIColumnsDef } from '../limitreductions/columns-definitions';
|
|
2
2
|
export declare function CustomVoltageLevelTableCell({ formName, rowIndex, column, }: Readonly<{
|
|
3
3
|
formName: string;
|
|
4
4
|
rowIndex: number;
|
|
5
|
-
column:
|
|
5
|
+
column: LimitReductionIColumnsDef;
|
|
6
6
|
}>): import("react/jsx-runtime").JSX.Element;
|
package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table-row.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LimitReductionIColumnsDef } from '../limitreductions/columns-definitions';
|
|
2
2
|
interface TableRowComponentProps {
|
|
3
3
|
formName: string;
|
|
4
|
-
columnsDefinition:
|
|
4
|
+
columnsDefinition: LimitReductionIColumnsDef[];
|
|
5
5
|
index: number;
|
|
6
6
|
}
|
|
7
7
|
export declare function CustomVoltageLevelTableRow({ formName, columnsDefinition, index }: Readonly<TableRowComponentProps>): import("react/jsx-runtime").JSX.Element;
|
package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LimitReductionIColumnsDef } from '../limitreductions/columns-definitions';
|
|
2
2
|
interface LimitReductionsTableProps {
|
|
3
|
-
columnsDefinition:
|
|
3
|
+
columnsDefinition: LimitReductionIColumnsDef[];
|
|
4
4
|
tableHeight: number;
|
|
5
5
|
formName: string;
|
|
6
6
|
}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export * from './common';
|
|
8
8
|
export * from './network-visualizations';
|
|
9
|
-
export * from './parameters-style';
|
|
10
9
|
export * from './loadflow';
|
|
11
10
|
export * from './short-circuit';
|
|
12
11
|
export * from './voltage-init';
|
|
13
12
|
export * from './security-analysis';
|
|
13
|
+
export * from './sensi';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComputingType, formatComputingTypeLabel, isValidComputingType } from "./common/computing-type.js";
|
|
2
2
|
import { PARAM_SA_FLOW_PROPORTIONAL_THRESHOLD, 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_PROVIDER, PROVIDER, ReactivePowerAdornment, VOLTAGE_LEVEL, VoltageAdornment } from "./common/constant.js";
|
|
3
|
-
import { getDialogParametersFormSchema } from "./common/parameters-edition-dialog-props.js";
|
|
4
3
|
import { LineSeparator } from "./common/line-separator.js";
|
|
5
4
|
import { LabelledButton, SwitchWithLabel, TabPanel } from "./common/parameters.js";
|
|
6
5
|
import { CreateParameterDialog } from "./common/parameters-creation-dialog.js";
|
|
@@ -22,7 +21,6 @@ import { CENTER_LABEL, COMPONENT_LIBRARY, DIAGONAL_LABEL, INIT_NAD_WITH_GEO_DATA
|
|
|
22
21
|
import { MAP_BASEMAP_CARTO, MAP_BASEMAP_CARTO_NOLABEL, MAP_BASEMAP_ETALAB, MAP_BASEMAP_MAPBOX, SubstationLayout } from "./network-visualizations/network-visualizations.types.js";
|
|
23
22
|
import { NetworkVisualizationParametersInline } from "./network-visualizations/network-visualizations-parameters-inline.js";
|
|
24
23
|
import { NetworkVisualizationsParametersEditionDialog } from "./network-visualizations/network-visualizations-parameters-dialog.js";
|
|
25
|
-
import { getTabIndicatorStyle, getTabStyle, parametersStyles } from "./parameters-style.js";
|
|
26
24
|
import { BALANCE_TYPE, COMMON_PARAMETERS, CONNECTED_COMPONENT_MODE, COUNTRIES_TO_BALANCE, DC, DC_POWER_FACTOR, DC_USE_TRANSFORMER_RATIO, DEFAULT_LIMIT_REDUCTION_VALUE, DISTRIBUTED_SLACK, HVDC_AC_EMULATION, MAX_VALUE_ALLOWED_FOR_LIMIT_REDUCTION, MIN_VALUE_ALLOWED_FOR_LIMIT_REDUCTION, PARAM_LIMIT_REDUCTION, PARAM_PROVIDER_OPENLOADFLOW, PHASE_SHIFTER_REGULATION_ON, READ_SLACK_BUS, SHUNT_COMPENSATOR_VOLTAGE_CONTROL_ON, SPECIFIC_PARAMETERS, TWT_SPLIT_SHUNT_ADMITTANCE, USE_REACTIVE_LIMITS, VOLTAGE_INIT_MODE, WRITE_SLACK_BUS, alertThresholdMarks } from "./loadflow/constants.js";
|
|
27
25
|
import { LoadFlowParametersInline } from "./loadflow/load-flow-parameters-inline.js";
|
|
28
26
|
import { LoadFlowParametersEditionDialog } from "./loadflow/load-flow-parameters-dialog.js";
|
|
@@ -35,10 +33,19 @@ import { VoltageInitParametersEditionDialog } from "./voltage-init/voltage-init-
|
|
|
35
33
|
import { VoltageInitParametersInLine } from "./voltage-init/voltage-init-parameters-inline.js";
|
|
36
34
|
import { SecurityAnalysisParametersInline } from "./security-analysis/security-analysis-parameters-inline.js";
|
|
37
35
|
import { SecurityAnalysisParametersDialog } from "./security-analysis/security-analysis-parameters-dialog.js";
|
|
36
|
+
import { SensitivityAnalysisParametersInline } from "./sensi/sensitivity-analysis-parameters-inline.js";
|
|
37
|
+
import { SensitivityAnalysisParametersDialog } from "./sensi/sensitivity-analysis-parameters-dialog.js";
|
|
38
|
+
import { COLUMNS_DEFINITIONS_HVDCS, COLUMNS_DEFINITIONS_INJECTIONS, COLUMNS_DEFINITIONS_INJECTIONS_SET, COLUMNS_DEFINITIONS_NODES, COLUMNS_DEFINITIONS_PSTS, EQUIPMENTS_IN_VOLTAGE_REGULATION_TYPES, HVDC_EQUIPMENT_TYPES, INJECTIONS_EQUIPMENT_TYPES, INJECTION_DISTRIBUTION_TYPES, MONITORED_BRANCHES_EQUIPMENT_TYPES, MONITORED_VOLTAGE_LEVELS_EQUIPMENT_TYPES, PSTS_EQUIPMENT_TYPES, SENSITIVITY_TYPES, SensiBranchesTabValues, SensiHvdcs, SensiInjection, SensiInjectionsSet, SensiNodes, SensiPsts, SensiTabValues } from "./sensi/columns-definitions.js";
|
|
39
|
+
import { SensitivityTable } from "./sensi/sensitivity-table.js";
|
|
38
40
|
export {
|
|
39
41
|
BALANCE_TYPE,
|
|
40
42
|
CENTER_LABEL,
|
|
43
|
+
COLUMNS_DEFINITIONS_HVDCS,
|
|
44
|
+
COLUMNS_DEFINITIONS_INJECTIONS,
|
|
45
|
+
COLUMNS_DEFINITIONS_INJECTIONS_SET,
|
|
41
46
|
COLUMNS_DEFINITIONS_LIMIT_REDUCTIONS,
|
|
47
|
+
COLUMNS_DEFINITIONS_NODES,
|
|
48
|
+
COLUMNS_DEFINITIONS_PSTS,
|
|
42
49
|
COMMON_PARAMETERS,
|
|
43
50
|
COMPONENT_LIBRARY,
|
|
44
51
|
CONNECTED_COMPONENT_MODE,
|
|
@@ -58,6 +65,7 @@ export {
|
|
|
58
65
|
DEFAULT_UPDATE_BUS_VOLTAGE,
|
|
59
66
|
DIAGONAL_LABEL,
|
|
60
67
|
DISTRIBUTED_SLACK,
|
|
68
|
+
EQUIPMENTS_IN_VOLTAGE_REGULATION_TYPES,
|
|
61
69
|
EquipmentsSelectionType,
|
|
62
70
|
FILTERS,
|
|
63
71
|
FILTER_ID,
|
|
@@ -67,8 +75,11 @@ export {
|
|
|
67
75
|
GENERATORS_SELECTION_TYPE,
|
|
68
76
|
HIGH_VOLTAGE_LIMIT,
|
|
69
77
|
HVDC_AC_EMULATION,
|
|
78
|
+
HVDC_EQUIPMENT_TYPES,
|
|
70
79
|
ID,
|
|
71
80
|
INIT_NAD_WITH_GEO_DATA,
|
|
81
|
+
INJECTIONS_EQUIPMENT_TYPES,
|
|
82
|
+
INJECTION_DISTRIBUTION_TYPES,
|
|
72
83
|
INTL_LINE_FLOW_MODE_OPTIONS,
|
|
73
84
|
INTL_MAP_BASE_MAP_OPTIONS,
|
|
74
85
|
INTL_SUBSTATION_LAYOUT_OPTIONS,
|
|
@@ -95,6 +106,8 @@ export {
|
|
|
95
106
|
MAP_MANUAL_REFRESH,
|
|
96
107
|
MAX_VALUE_ALLOWED_FOR_LIMIT_REDUCTION,
|
|
97
108
|
MIN_VALUE_ALLOWED_FOR_LIMIT_REDUCTION,
|
|
109
|
+
MONITORED_BRANCHES_EQUIPMENT_TYPES,
|
|
110
|
+
MONITORED_VOLTAGE_LEVELS_EQUIPMENT_TYPES,
|
|
98
111
|
NetworkVisualizationParametersInline,
|
|
99
112
|
NetworkVisualizationTabValues,
|
|
100
113
|
NetworkVisualizationsParametersEditionDialog,
|
|
@@ -119,6 +132,7 @@ export {
|
|
|
119
132
|
PHASE_SHIFTER_REGULATION_ON,
|
|
120
133
|
PRIORITY,
|
|
121
134
|
PROVIDER,
|
|
135
|
+
PSTS_EQUIPMENT_TYPES,
|
|
122
136
|
ParameterFloat,
|
|
123
137
|
ParameterGroup,
|
|
124
138
|
ParameterLineDirectoryItemsInput,
|
|
@@ -132,6 +146,7 @@ export {
|
|
|
132
146
|
READ_SLACK_BUS,
|
|
133
147
|
ReactivePowerAdornment,
|
|
134
148
|
SELECTION_TYPE,
|
|
149
|
+
SENSITIVITY_TYPES,
|
|
135
150
|
SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE,
|
|
136
151
|
SHORT_CIRCUIT_PREDEFINED_PARAMS,
|
|
137
152
|
SHORT_CIRCUIT_WITH_FEEDER_RESULT,
|
|
@@ -146,6 +161,16 @@ export {
|
|
|
146
161
|
SUBSTATION_LAYOUT,
|
|
147
162
|
SecurityAnalysisParametersDialog,
|
|
148
163
|
SecurityAnalysisParametersInline,
|
|
164
|
+
SensiBranchesTabValues,
|
|
165
|
+
SensiHvdcs,
|
|
166
|
+
SensiInjection,
|
|
167
|
+
SensiInjectionsSet,
|
|
168
|
+
SensiNodes,
|
|
169
|
+
SensiPsts,
|
|
170
|
+
SensiTabValues,
|
|
171
|
+
SensitivityAnalysisParametersDialog,
|
|
172
|
+
SensitivityAnalysisParametersInline,
|
|
173
|
+
SensitivityTable,
|
|
149
174
|
ShortCircuitParametersEditionDialog,
|
|
150
175
|
ShortCircuitParametersInLine,
|
|
151
176
|
SubstationLayout,
|
|
@@ -172,15 +197,11 @@ export {
|
|
|
172
197
|
WRITE_SLACK_BUS,
|
|
173
198
|
alertThresholdMarks,
|
|
174
199
|
formatComputingTypeLabel,
|
|
175
|
-
getDialogParametersFormSchema,
|
|
176
200
|
getLimitReductionsFormSchema,
|
|
177
201
|
getSAParametersFromSchema,
|
|
178
|
-
getTabIndicatorStyle,
|
|
179
|
-
getTabStyle,
|
|
180
202
|
intlInitialVoltageProfileMode,
|
|
181
203
|
intlPredefinedParametersOptions,
|
|
182
204
|
isValidComputingType,
|
|
183
|
-
parametersStyles,
|
|
184
205
|
sanitizePercentageValue,
|
|
185
206
|
toFormValueSaParameters,
|
|
186
207
|
toFormValuesLimitReductions
|
|
@@ -2,7 +2,6 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { Box, Grid } from "@mui/material";
|
|
3
3
|
import { TabValues } from "./load-flow-parameters-utils.js";
|
|
4
4
|
import LoadFlowGeneralParameters from "./load-flow-general-parameters.js";
|
|
5
|
-
import "../../../utils/yupConfig.js";
|
|
6
5
|
import { TabPanel } from "../common/parameters.js";
|
|
7
6
|
import "react";
|
|
8
7
|
import "react-intl";
|
|
@@ -27,6 +26,7 @@ import "react-papaparse";
|
|
|
27
26
|
import "react-csv-downloader";
|
|
28
27
|
import "../../inputs/reactHookForm/numbers/RangeInput.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";
|
|
@@ -12,7 +12,6 @@ import "../../treeViewFinder/TreeViewFinder.js";
|
|
|
12
12
|
import "notistack";
|
|
13
13
|
import { getLoadFlowDefaultLimitReductions, getLoadFlowSpecificParametersDescription, setLoadFlowParameters, fetchLoadFlowParameters, getDefaultLoadFlowProvider, getLoadFlowProviders } from "../../../services/loadflow.js";
|
|
14
14
|
import { ComputingType } from "../common/computing-type.js";
|
|
15
|
-
import "../../../utils/yupConfig.js";
|
|
16
15
|
import "../../../utils/types/equipmentType.js";
|
|
17
16
|
import "localized-countries";
|
|
18
17
|
import "localized-countries/data/fr";
|
|
@@ -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";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import "../../../utils/yupConfig.js";
|
|
2
1
|
import "react/jsx-runtime";
|
|
3
2
|
import "@mui/material";
|
|
4
3
|
import "react-intl";
|
|
@@ -24,6 +23,7 @@ import "react-csv-downloader";
|
|
|
24
23
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
25
24
|
import "../../../utils/conversionUtils.js";
|
|
26
25
|
import { ParameterType } from "../../../utils/types/parameters.type.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";
|
|
@@ -4,7 +4,6 @@ import { useState, useCallback, useMemo, useEffect } from "react";
|
|
|
4
4
|
import { TabValues, getDefaultSpecificParamsValues, getSpecificLoadFlowParametersFormSchema, getCommonLoadFlowParametersFormSchema, mapLimitReductions, setSpecificParameters, setLimitReductions } from "./load-flow-parameters-utils.js";
|
|
5
5
|
import { ParameterType } from "../../../utils/types/parameters.type.js";
|
|
6
6
|
import { PROVIDER } from "../common/constant.js";
|
|
7
|
-
import { getDialogParametersFormSchema } from "../common/parameters-edition-dialog-props.js";
|
|
8
7
|
import "react/jsx-runtime";
|
|
9
8
|
import "@mui/material";
|
|
10
9
|
import "react-intl";
|
|
@@ -81,7 +80,6 @@ const useLoadFlowParametersForm = (parametersBackend, enableDeveloperMode, param
|
|
|
81
80
|
const formSchema = useMemo(() => {
|
|
82
81
|
var _a;
|
|
83
82
|
return yup.object({
|
|
84
|
-
...getDialogParametersFormSchema(name),
|
|
85
83
|
[PROVIDER]: yup.string().required(),
|
|
86
84
|
[PARAM_LIMIT_REDUCTION]: yup.number().nullable(),
|
|
87
85
|
...getCommonLoadFlowParametersFormSchema().fields,
|
|
@@ -2,7 +2,6 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { Grid } from "@mui/material";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
4
|
import { MAP_BASE_MAP, NetworkVisualizationTabValues, PARAM_MAP_BASEMAP, INTL_MAP_BASE_MAP_OPTIONS, PARAM_LINE_FULL_PATH, PARAM_LINE_PARALLEL_PATH, INTL_LINE_FLOW_MODE_OPTIONS, LINE_FLOW_MODE, PARAM_LINE_FLOW_MODE, MAP_MANUAL_REFRESH, PARAM_MAP_MANUAL_REFRESH } from "./constants.js";
|
|
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 "react";
|
|
@@ -28,6 +27,7 @@ import { SwitchInput } from "../../inputs/reactHookForm/booleans/SwitchInput.js"
|
|
|
28
27
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
29
28
|
import { MuiSelectInput } from "../../inputs/reactHookForm/selectInputs/MuiSelectInput.js";
|
|
30
29
|
import "../../../utils/conversionUtils.js";
|
|
30
|
+
import "../../../utils/yupConfig.js";
|
|
31
31
|
import "@react-querybuilder/material";
|
|
32
32
|
import "../../filter/expert/expertFilterConstants.js";
|
|
33
33
|
import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|