@gridsuite/commons-ui 0.166.0 → 0.167.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-bottom-right-buttons.js +2 -2
- package/dist/components/dnd-table/dnd-table.d.ts +1 -2
- package/dist/components/dnd-table/dnd-table.js +2 -0
- package/dist/components/dnd-table/dnd-table.type.d.ts +6 -1
- package/dist/components/dnd-table/dnd-table.type.js +1 -0
- package/dist/components/index.js +15 -0
- package/dist/components/parameters/common/ProviderParam.js +2 -2
- package/dist/components/parameters/common/parameter-dnd-table-field.d.ts +9 -0
- package/dist/components/parameters/common/parameter-dnd-table-field.js +85 -0
- package/dist/components/parameters/common/parameter-field.d.ts +15 -0
- package/dist/components/parameters/{loadflow/load-flow-parameter-field.js → common/parameter-field.js} +7 -13
- package/dist/components/parameters/dynamic-margin-calculation/constants.d.ts +18 -0
- package/dist/components/parameters/dynamic-margin-calculation/constants.js +26 -0
- package/dist/components/parameters/dynamic-margin-calculation/dynamic-margin-calculation-dialog.d.ts +6 -0
- package/dist/components/parameters/dynamic-margin-calculation/dynamic-margin-calculation-dialog.js +1 -0
- package/dist/components/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.d.ts +9 -0
- package/dist/components/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +95 -0
- package/dist/components/parameters/dynamic-margin-calculation/dynamic-margin-calculation-inline.d.ts +10 -0
- package/dist/components/parameters/dynamic-margin-calculation/dynamic-margin-calculation-inline.js +176 -0
- package/dist/components/parameters/dynamic-margin-calculation/dynamic-margin-calculation.type.d.ts +10 -0
- package/dist/components/parameters/dynamic-margin-calculation/dynamic-margin-calculation.type.js +8 -0
- package/dist/components/parameters/dynamic-margin-calculation/index.d.ts +8 -0
- package/dist/components/parameters/dynamic-margin-calculation/index.js +17 -0
- package/dist/components/parameters/dynamic-margin-calculation/loads-variations-parameters.d.ts +29 -0
- package/dist/components/parameters/dynamic-margin-calculation/loads-variations-parameters.js +154 -0
- package/dist/components/parameters/dynamic-margin-calculation/time-delay-parameters.d.ts +24 -0
- package/dist/components/parameters/dynamic-margin-calculation/time-delay-parameters.js +62 -0
- package/dist/components/parameters/dynamic-margin-calculation/use-dynamic-margin-calculation-parameters-form.d.ts +30 -0
- package/dist/components/parameters/dynamic-margin-calculation/use-dynamic-margin-calculation-parameters-form.js +179 -0
- package/dist/components/parameters/index.d.ts +1 -0
- package/dist/components/parameters/index.js +15 -0
- package/dist/components/parameters/loadflow/load-flow-general-parameters.js +4 -4
- package/dist/index.js +22 -0
- package/dist/services/dynamic-margin-calculation.d.ts +5 -0
- package/dist/services/dynamic-margin-calculation.js +35 -0
- package/dist/services/index.d.ts +1 -0
- package/dist/services/index.js +4 -0
- package/dist/translations/en/businessErrorsEn.d.ts +2 -0
- package/dist/translations/en/businessErrorsEn.js +3 -1
- package/dist/translations/en/parameters.d.ts +20 -0
- package/dist/translations/en/parameters.js +22 -1
- package/dist/translations/fr/businessErrorsFr.d.ts +2 -0
- package/dist/translations/fr/businessErrorsFr.js +3 -1
- package/dist/translations/fr/parameters.d.ts +20 -0
- package/dist/translations/fr/parameters.js +22 -1
- package/dist/utils/index.js +3 -0
- package/dist/utils/types/dynamic-margin-calculation.type.d.ts +32 -0
- package/dist/utils/types/dynamic-margin-calculation.type.js +14 -0
- package/dist/utils/types/elementType.d.ts +1 -0
- package/dist/utils/types/elementType.js +1 -0
- package/dist/utils/types/index.d.ts +1 -0
- package/dist/utils/types/index.js +3 -0
- package/dist/utils/types/parameters.type.d.ts +2 -1
- package/package.json +1 -1
- package/dist/components/parameters/loadflow/load-flow-parameter-field.d.ts +0 -19
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { UUID } from 'node:crypto';
|
|
2
|
+
export declare enum CalculationType {
|
|
3
|
+
GLOBAL_MARGIN = "GLOBAL_MARGIN",
|
|
4
|
+
LOCAL_MARGIN = "LOCAL_MARGIN"
|
|
5
|
+
}
|
|
6
|
+
export declare enum LoadModelsRule {
|
|
7
|
+
ALL_LOADS = "ALL_LOADS",
|
|
8
|
+
TARGETED_LOADS = "TARGETED_LOADS"
|
|
9
|
+
}
|
|
10
|
+
export type IdNameInfos = {
|
|
11
|
+
id: UUID;
|
|
12
|
+
name?: string;
|
|
13
|
+
};
|
|
14
|
+
export type LoadsVariationInfos = {
|
|
15
|
+
id?: UUID;
|
|
16
|
+
loadFilters?: IdNameInfos[];
|
|
17
|
+
variation: number;
|
|
18
|
+
active: boolean;
|
|
19
|
+
};
|
|
20
|
+
export type DynamicMarginCalculationParametersInfos = {
|
|
21
|
+
id?: UUID;
|
|
22
|
+
provider: string;
|
|
23
|
+
startTime: number;
|
|
24
|
+
stopTime: number;
|
|
25
|
+
marginCalculationStartTime: number;
|
|
26
|
+
loadIncreaseStartTime: number;
|
|
27
|
+
loadIncreaseStopTime: number;
|
|
28
|
+
calculationType: CalculationType;
|
|
29
|
+
accuracy: number;
|
|
30
|
+
loadModelsRule: LoadModelsRule;
|
|
31
|
+
loadsVariations?: LoadsVariationInfos[];
|
|
32
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
var CalculationType = /* @__PURE__ */ ((CalculationType2) => {
|
|
2
|
+
CalculationType2["GLOBAL_MARGIN"] = "GLOBAL_MARGIN";
|
|
3
|
+
CalculationType2["LOCAL_MARGIN"] = "LOCAL_MARGIN";
|
|
4
|
+
return CalculationType2;
|
|
5
|
+
})(CalculationType || {});
|
|
6
|
+
var LoadModelsRule = /* @__PURE__ */ ((LoadModelsRule2) => {
|
|
7
|
+
LoadModelsRule2["ALL_LOADS"] = "ALL_LOADS";
|
|
8
|
+
LoadModelsRule2["TARGETED_LOADS"] = "TARGETED_LOADS";
|
|
9
|
+
return LoadModelsRule2;
|
|
10
|
+
})(LoadModelsRule || {});
|
|
11
|
+
export {
|
|
12
|
+
CalculationType,
|
|
13
|
+
LoadModelsRule
|
|
14
|
+
};
|
|
@@ -20,6 +20,7 @@ export declare enum ElementType {
|
|
|
20
20
|
LOADFLOW_PARAMETERS = "LOADFLOW_PARAMETERS",
|
|
21
21
|
SENSITIVITY_PARAMETERS = "SENSITIVITY_PARAMETERS",
|
|
22
22
|
SHORT_CIRCUIT_PARAMETERS = "SHORT_CIRCUIT_PARAMETERS",
|
|
23
|
+
DYNAMIC_MARGIN_CALCULATION_PARAMETERS = "DYNAMIC_MARGIN_CALCULATION_PARAMETERS",
|
|
23
24
|
NETWORK_VISUALIZATIONS_PARAMETERS = "NETWORK_VISUALIZATIONS_PARAMETERS",
|
|
24
25
|
SPREADSHEET_CONFIG = "SPREADSHEET_CONFIG",
|
|
25
26
|
SPREADSHEET_CONFIG_COLLECTION = "SPREADSHEET_CONFIG_COLLECTION",
|
|
@@ -11,6 +11,7 @@ var ElementType = /* @__PURE__ */ ((ElementType2) => {
|
|
|
11
11
|
ElementType2["LOADFLOW_PARAMETERS"] = "LOADFLOW_PARAMETERS";
|
|
12
12
|
ElementType2["SENSITIVITY_PARAMETERS"] = "SENSITIVITY_PARAMETERS";
|
|
13
13
|
ElementType2["SHORT_CIRCUIT_PARAMETERS"] = "SHORT_CIRCUIT_PARAMETERS";
|
|
14
|
+
ElementType2["DYNAMIC_MARGIN_CALCULATION_PARAMETERS"] = "DYNAMIC_MARGIN_CALCULATION_PARAMETERS";
|
|
14
15
|
ElementType2["NETWORK_VISUALIZATIONS_PARAMETERS"] = "NETWORK_VISUALIZATIONS_PARAMETERS";
|
|
15
16
|
ElementType2["SPREADSHEET_CONFIG"] = "SPREADSHEET_CONFIG";
|
|
16
17
|
ElementType2["SPREADSHEET_CONFIG_COLLECTION"] = "SPREADSHEET_CONFIG_COLLECTION";
|
|
@@ -10,6 +10,7 @@ import { FieldType } from "./fieldType.js";
|
|
|
10
10
|
import { ParameterType } from "./parameters.type.js";
|
|
11
11
|
import { SolverTypeInfos } from "./dynamic-simulation.type.js";
|
|
12
12
|
import { DistributionType, SensitivityType } from "./sensitivity-analysis.type.js";
|
|
13
|
+
import { CalculationType, LoadModelsRule } from "./dynamic-margin-calculation.type.js";
|
|
13
14
|
export {
|
|
14
15
|
ALL_EQUIPMENTS,
|
|
15
16
|
AnnouncementSeverity,
|
|
@@ -17,6 +18,7 @@ export {
|
|
|
17
18
|
BASE_EQUIPMENTS,
|
|
18
19
|
Battery,
|
|
19
20
|
BusBar,
|
|
21
|
+
CalculationType,
|
|
20
22
|
CustomError,
|
|
21
23
|
DanglingLine,
|
|
22
24
|
DistributionType,
|
|
@@ -30,6 +32,7 @@ export {
|
|
|
30
32
|
LCC,
|
|
31
33
|
Line,
|
|
32
34
|
Load,
|
|
35
|
+
LoadModelsRule,
|
|
33
36
|
MODIFICATION_TYPES,
|
|
34
37
|
ModificationType,
|
|
35
38
|
NetworkTimeoutError,
|
|
@@ -7,6 +7,7 @@ import { DynamicSimulationParametersFetchReturn } from './dynamic-simulation.typ
|
|
|
7
7
|
import { SensitivityAnalysisParametersInfos } from './sensitivity-analysis.type';
|
|
8
8
|
import { ShortCircuitParametersInfos } from '../../components/parameters/short-circuit/short-circuit-parameters.type';
|
|
9
9
|
import { SAParameters } from '../../components/parameters/security-analysis/types';
|
|
10
|
+
import { DynamicMarginCalculationParametersInfos } from './dynamic-margin-calculation.type';
|
|
10
11
|
export declare enum ParameterType {
|
|
11
12
|
BOOLEAN = "BOOLEAN",
|
|
12
13
|
STRING = "STRING",
|
|
@@ -28,7 +29,7 @@ export type SpecificParameterInfos = {
|
|
|
28
29
|
export type SpecificParametersDescription = Record<string, SpecificParameterInfos[]>;
|
|
29
30
|
export type SpecificParametersValues = Record<string, any>;
|
|
30
31
|
export type SpecificParametersPerProvider = Record<string, SpecificParametersValues>;
|
|
31
|
-
export type ParametersInfos<T extends ComputingType> = T extends ComputingType.SENSITIVITY_ANALYSIS ? SensitivityAnalysisParametersInfos : T extends ComputingType.SECURITY_ANALYSIS ? SAParameters : T extends ComputingType.LOAD_FLOW ? LoadFlowParametersInfos : T extends ComputingType.DYNAMIC_SIMULATION ? DynamicSimulationParametersFetchReturn : T extends ComputingType.DYNAMIC_SECURITY_ANALYSIS ? DynamicSecurityAnalysisParametersFetchReturn : T extends ComputingType.SHORT_CIRCUIT ? ShortCircuitParametersInfos : Record<string, any>;
|
|
32
|
+
export type ParametersInfos<T extends ComputingType> = T extends ComputingType.SENSITIVITY_ANALYSIS ? SensitivityAnalysisParametersInfos : T extends ComputingType.SECURITY_ANALYSIS ? SAParameters : T extends ComputingType.LOAD_FLOW ? LoadFlowParametersInfos : T extends ComputingType.DYNAMIC_SIMULATION ? DynamicSimulationParametersFetchReturn : T extends ComputingType.DYNAMIC_SECURITY_ANALYSIS ? DynamicSecurityAnalysisParametersFetchReturn : T extends ComputingType.DYNAMIC_MARGIN_CALCULATION ? DynamicMarginCalculationParametersInfos : T extends ComputingType.SHORT_CIRCUIT ? ShortCircuitParametersInfos : Record<string, any>;
|
|
32
33
|
export type UseParametersBackendReturnProps<T extends ComputingType> = [
|
|
33
34
|
Record<string, string>,
|
|
34
35
|
string | undefined,
|
package/package.json
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2024, 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
|
-
interface LoadFlowParameterFieldProps {
|
|
8
|
-
id: string;
|
|
9
|
-
name: string;
|
|
10
|
-
type: string;
|
|
11
|
-
label?: string;
|
|
12
|
-
description?: string;
|
|
13
|
-
possibleValues?: {
|
|
14
|
-
id: string;
|
|
15
|
-
label: string;
|
|
16
|
-
}[] | string[];
|
|
17
|
-
}
|
|
18
|
-
declare function LoadFlowParameterField({ id, name, type, label, description, possibleValues, }: Readonly<LoadFlowParameterFieldProps>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export default LoadFlowParameterField;
|