@gridsuite/commons-ui 0.165.2 → 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/dialogs/descriptionModificationDialog/DescriptionModificationDialog.d.ts +9 -4
- package/dist/components/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js +7 -4
- package/dist/components/dialogs/elementSaveDialog/ElementSaveDialog.js +5 -0
- package/dist/components/dnd-table/dnd-table-add-rows-dialog.js +5 -0
- 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 +7 -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/filter/HeaderFilterForm.js +5 -0
- package/dist/components/filter/expert/ExpertFilterForm.js +4 -0
- package/dist/components/filter/explicitNaming/ExplicitNamingFilterForm.js +4 -0
- package/dist/components/index.js +22 -7
- package/dist/components/inputs/index.js +2 -0
- package/dist/components/inputs/reactHookForm/index.js +2 -0
- package/dist/components/inputs/reactHookForm/text/DescriptionInput.d.ts +4 -0
- package/dist/components/inputs/reactHookForm/text/DescriptionInput.js +85 -0
- package/dist/components/inputs/reactHookForm/text/index.d.ts +1 -0
- package/dist/components/inputs/reactHookForm/text/index.js +2 -0
- package/dist/components/network-modifications/common/properties/PropertiesForm.js +5 -0
- package/dist/components/network-modifications/common/properties/PropertyForm.js +5 -0
- package/dist/components/network-modifications/substation/creation/SubstationCreationForm.js +5 -0
- package/dist/components/parameters/common/ProviderParam.js +8 -3
- package/dist/components/parameters/common/{constant.d.ts → constants.d.ts} +3 -0
- package/dist/components/parameters/common/{constant.js → constants.js} +6 -0
- package/dist/components/parameters/common/contingency-table/columns-definitions.d.ts +27 -0
- package/dist/components/parameters/common/contingency-table/columns-definitions.js +102 -0
- package/dist/components/parameters/common/contingency-table/contingency-table.d.ts +5 -0
- package/dist/components/parameters/common/contingency-table/contingency-table.js +81 -0
- package/dist/components/parameters/common/contingency-table/index.d.ts +8 -0
- package/dist/components/parameters/common/contingency-table/index.js +9 -0
- package/dist/components/parameters/common/contingency-table/types.d.ts +12 -0
- package/dist/components/parameters/common/contingency-table/types.js +1 -0
- package/dist/components/parameters/common/index.d.ts +1 -1
- package/dist/components/parameters/common/index.js +5 -5
- package/dist/components/parameters/common/limitreductions/columns-definitions.d.ts +8 -34
- package/dist/components/parameters/common/limitreductions/columns-definitions.js +11 -32
- package/dist/components/parameters/common/limitreductions/index.d.ts +0 -1
- package/dist/components/parameters/common/limitreductions/index.js +1 -4
- package/dist/components/parameters/common/limitreductions/limit-reduction-table-cell.js +5 -0
- package/dist/components/parameters/common/limitreductions/limit-reductions-table-form.js +5 -0
- package/dist/components/parameters/common/name-element-editor/name-element-editor-utils.js +5 -0
- 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} +12 -14
- package/dist/components/parameters/common/parameter-table/constants.d.ts +11 -0
- package/dist/components/parameters/common/parameter-table/constants.js +12 -0
- package/dist/components/parameters/common/parameter-table/index.d.ts +9 -0
- package/dist/components/parameters/common/parameter-table/index.js +10 -0
- package/dist/components/parameters/common/parameter-table/parameter-table.d.ts +15 -0
- package/dist/components/parameters/{sensi/sensitivity-table.js → common/parameter-table/parameter-table.js} +11 -37
- package/dist/components/parameters/{sensi → common/parameter-table}/table-cell.js +19 -17
- package/dist/components/parameters/{sensi → common/parameter-table}/table-row.d.ts +2 -2
- package/dist/components/parameters/common/parameter-table/types.d.ts +26 -0
- package/dist/components/parameters/common/parameter-table/types.js +1 -0
- package/dist/components/parameters/common/utils.js +1 -1
- package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table-cell.js +6 -1
- package/dist/components/parameters/common/widget/parameter-float.js +5 -0
- package/dist/components/parameters/common/widget/parameter-line-directory-items-input.js +5 -0
- package/dist/components/parameters/common/widget/parameter-line-slider.js +5 -0
- 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 +20 -7
- package/dist/components/parameters/loadflow/load-flow-general-parameters.js +10 -6
- package/dist/components/parameters/loadflow/load-flow-parameters-content.js +4 -0
- package/dist/components/parameters/loadflow/load-flow-parameters-dialog.js +4 -0
- package/dist/components/parameters/loadflow/load-flow-parameters-form.js +5 -0
- package/dist/components/parameters/loadflow/load-flow-parameters-header.js +6 -2
- package/dist/components/parameters/loadflow/load-flow-parameters-inline.js +5 -1
- package/dist/components/parameters/loadflow/load-flow-parameters-utils.js +6 -3
- package/dist/components/parameters/loadflow/use-load-flow-parameters-form.js +6 -3
- package/dist/components/parameters/network-visualizations/map-parameters.js +4 -0
- package/dist/components/parameters/network-visualizations/network-area-diagram-parameters.js +5 -0
- package/dist/components/parameters/network-visualizations/network-visualizations-form.js +5 -1
- package/dist/components/parameters/network-visualizations/network-visualizations-parameters-dialog.js +4 -0
- package/dist/components/parameters/network-visualizations/network-visualizations-parameters-inline.js +5 -0
- package/dist/components/parameters/network-visualizations/single-line-diagram-parameters.js +4 -0
- package/dist/components/parameters/network-visualizations/use-network-visualizations-parameters-form.js +5 -0
- package/dist/components/parameters/pcc-min/pcc-min-form-utils.js +5 -0
- package/dist/components/parameters/pcc-min/pcc-min-parameters-dialog.js +4 -0
- package/dist/components/parameters/pcc-min/pcc-min-parameters-form.js +5 -1
- package/dist/components/parameters/pcc-min/pcc-min-parameters-inline.js +5 -1
- package/dist/components/parameters/pcc-min/use-pcc-min-parameters-form.js +5 -0
- package/dist/components/parameters/security-analysis/columns-definitions.d.ts +63 -0
- package/dist/components/parameters/security-analysis/columns-definitions.js +78 -0
- package/dist/components/parameters/security-analysis/security-analysis-parameters-dialog.js +5 -0
- package/dist/components/parameters/security-analysis/security-analysis-parameters-form.d.ts +4 -1
- package/dist/components/parameters/security-analysis/security-analysis-parameters-form.js +32 -13
- package/dist/components/parameters/security-analysis/security-analysis-parameters-inline.d.ts +2 -1
- package/dist/components/parameters/security-analysis/security-analysis-parameters-inline.js +9 -2
- package/dist/components/parameters/security-analysis/security-analysis-parameters-selector.d.ts +3 -2
- package/dist/components/parameters/security-analysis/security-analysis-parameters-selector.js +4 -0
- package/dist/components/parameters/security-analysis/security-analysis-violations-hiding.js +6 -2
- package/dist/components/parameters/security-analysis/types.d.ts +15 -0
- package/dist/components/parameters/security-analysis/types.js +1 -0
- package/dist/components/parameters/security-analysis/use-security-analysis-parameters-form.d.ts +5 -4
- package/dist/components/parameters/security-analysis/use-security-analysis-parameters-form.js +26 -7
- package/dist/components/parameters/sensi/columns-definitions.d.ts +7 -25
- package/dist/components/parameters/sensi/columns-definitions.js +35 -1
- package/dist/components/parameters/sensi/constants.d.ts +0 -2
- package/dist/components/parameters/sensi/constants.js +0 -4
- package/dist/components/parameters/sensi/index.d.ts +0 -1
- package/dist/components/parameters/sensi/index.js +1 -3
- package/dist/components/parameters/sensi/sensitivity-Flow-parameters.js +5 -0
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-dialog.js +4 -0
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-form.js +6 -2
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-inline.js +5 -1
- package/dist/components/parameters/sensi/sensitivity-parameters-selector.js +27 -19
- package/dist/components/parameters/sensi/use-sensitivity-analysis-parameters.js +7 -2
- package/dist/components/parameters/sensi/utils.d.ts +2 -1
- package/dist/components/parameters/sensi/utils.js +7 -2
- package/dist/components/parameters/short-circuit/short-circuit-fields.js +6 -2
- package/dist/components/parameters/short-circuit/short-circuit-icc-material-table-cell.js +5 -0
- package/dist/components/parameters/short-circuit/short-circuit-parameters-dialog.js +4 -0
- package/dist/components/parameters/short-circuit/short-circuit-parameters-form.js +5 -0
- package/dist/components/parameters/short-circuit/short-circuit-parameters-inline.js +5 -1
- package/dist/components/parameters/short-circuit/short-circuit-parameters-utils.js +5 -1
- package/dist/components/parameters/short-circuit/use-short-circuit-parameters-form.js +6 -2
- package/dist/components/parameters/voltage-init/equipment-selection-parameters.js +5 -1
- package/dist/components/parameters/voltage-init/general-parameters.js +4 -0
- package/dist/components/parameters/voltage-init/use-voltage-init-parameters-form.js +5 -0
- package/dist/components/parameters/voltage-init/voltage-init-form-utils.js +5 -0
- package/dist/components/parameters/voltage-init/voltage-init-parameters-dialog.js +4 -0
- package/dist/components/parameters/voltage-init/voltage-init-parameters-form.js +5 -1
- package/dist/components/parameters/voltage-init/voltage-init-parameters-inline.js +5 -1
- package/dist/components/parameters/voltage-init/voltage-limits-parameters.js +5 -0
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.js +2 -2
- package/dist/hooks/use-create-row-data.d.ts +4 -0
- package/dist/hooks/{use-create-row-data-sensi.js → use-create-row-data.js} +5 -5
- package/dist/index.js +31 -9
- 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 +3 -0
- package/dist/translations/en/businessErrorsEn.js +4 -1
- package/dist/translations/en/parameters.d.ts +21 -0
- package/dist/translations/en/parameters.js +25 -3
- package/dist/translations/fr/businessErrorsFr.d.ts +3 -0
- package/dist/translations/fr/businessErrorsFr.js +4 -1
- package/dist/translations/fr/parameters.d.ts +21 -0
- package/dist/translations/fr/parameters.js +25 -3
- 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 +4 -2
- package/package.json +1 -1
- package/dist/components/parameters/common/limitreductions/limit-reductions-form-util.d.ts +0 -29
- package/dist/components/parameters/common/limitreductions/limit-reductions-form-util.js +0 -27
- package/dist/components/parameters/loadflow/load-flow-parameter-field.d.ts +0 -19
- package/dist/components/parameters/sensi/sensitivity-table.d.ts +0 -14
- package/dist/hooks/use-create-row-data-sensi.d.ts +0 -4
- /package/dist/components/parameters/{sensi → common/parameter-table}/table-cell.d.ts +0 -0
- /package/dist/components/parameters/{sensi → common/parameter-table}/table-row.js +0 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { useFieldArray } from "react-hook-form";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
function
|
|
3
|
+
function useCreateRowData(params) {
|
|
4
4
|
const useFieldArrayOutput = useFieldArray({
|
|
5
|
-
name:
|
|
5
|
+
name: params.name || ""
|
|
6
6
|
});
|
|
7
7
|
const newRowData = useMemo(() => {
|
|
8
8
|
const rowData = {};
|
|
9
|
-
|
|
9
|
+
params.columnsDef.forEach((column) => {
|
|
10
10
|
rowData[column.dataKey] = column.initialValue;
|
|
11
11
|
});
|
|
12
12
|
return rowData;
|
|
13
|
-
}, [
|
|
13
|
+
}, [params.columnsDef]);
|
|
14
14
|
const createNewRowData = () => [newRowData];
|
|
15
15
|
return [createNewRowData, useFieldArrayOutput];
|
|
16
16
|
}
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
useCreateRowData
|
|
19
19
|
};
|
package/dist/index.js
CHANGED
|
@@ -92,6 +92,7 @@ import { DescriptionField } from "./components/inputs/reactHookForm/text/Descrip
|
|
|
92
92
|
import { ExpandingTextField } from "./components/inputs/reactHookForm/text/ExpandingTextField.js";
|
|
93
93
|
import { TextInput } from "./components/inputs/reactHookForm/text/TextInput.js";
|
|
94
94
|
import { UniqueNameInput } from "./components/inputs/reactHookForm/text/UniqueNameInput.js";
|
|
95
|
+
import { DescriptionInput } from "./components/inputs/reactHookForm/text/DescriptionInput.js";
|
|
95
96
|
import { CancelButton } from "./components/inputs/reactHookForm/utils/CancelButton.js";
|
|
96
97
|
import { FieldLabel } from "./components/inputs/reactHookForm/utils/FieldLabel.js";
|
|
97
98
|
import { SubmitButton } from "./components/inputs/reactHookForm/utils/SubmitButton.js";
|
|
@@ -136,7 +137,7 @@ import { ArrowsOutputIcon } from "./components/icons/ArrowsOutputIcon.js";
|
|
|
136
137
|
import { LeftPanelCloseIcon } from "./components/icons/LeftPanelCloseIcon.js";
|
|
137
138
|
import { EditNoteIcon } from "./components/icons/EditNoteIcon.js";
|
|
138
139
|
import { ComputingType, formatComputingTypeLabel, isValidComputingType } from "./components/parameters/common/computing-type.js";
|
|
139
|
-
import { COMMON_PARAMETERS, 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, SPECIFIC_PARAMETERS, VERSION_PARAMETER, VOLTAGE_LEVEL } from "./components/parameters/common/
|
|
140
|
+
import { COMMON_PARAMETERS, CONTINGENCIES, CONTINGENCY_LISTS, CONTINGENCY_LISTS_INFOS, 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, SPECIFIC_PARAMETERS, VERSION_PARAMETER, VOLTAGE_LEVEL } from "./components/parameters/common/constants.js";
|
|
140
141
|
import { LineSeparator } from "./components/parameters/common/line-separator.js";
|
|
141
142
|
import { LabelledButton, SwitchWithLabel, TabPanel } from "./components/parameters/common/parameters.js";
|
|
142
143
|
import { CreateParameterDialog } from "./components/parameters/common/parameters-creation-dialog.js";
|
|
@@ -149,8 +150,7 @@ import { ParameterSwitch } from "./components/parameters/common/widget/parameter
|
|
|
149
150
|
import { CustomVoltageLevelTable } from "./components/parameters/common/voltage-level-table/custom-voltage-level-table.js";
|
|
150
151
|
import { CustomVoltageLevelTableCell } from "./components/parameters/common/voltage-level-table/custom-voltage-level-table-cell.js";
|
|
151
152
|
import { CustomVoltageLevelTableRow } from "./components/parameters/common/voltage-level-table/custom-voltage-level-table-row.js";
|
|
152
|
-
import { COLUMNS_DEFINITIONS_LIMIT_REDUCTIONS, IST_FORM, LIMIT_DURATION_FORM, LIMIT_REDUCTIONS_FORM, TAB_INFO, TabValues, VOLTAGE_LEVELS_FORM, getLimitReductionsFormSchema,
|
|
153
|
-
import { toFormValueSaParameters, toFormValuesLimitReductions } from "./components/parameters/common/limitreductions/limit-reductions-form-util.js";
|
|
153
|
+
import { COLUMNS_DEFINITIONS_LIMIT_REDUCTIONS, IST_FORM, LIMIT_DURATION_FORM, LIMIT_REDUCTIONS_FORM, TAB_INFO, TabValues, VOLTAGE_LEVELS_FORM, getLimitReductionsFormSchema, toFormValuesLimitReductions } from "./components/parameters/common/limitreductions/columns-definitions.js";
|
|
154
154
|
import { LimitReductionsTableForm } from "./components/parameters/common/limitreductions/limit-reductions-table-form.js";
|
|
155
155
|
import { LimitReductionTableRow } from "./components/parameters/common/limitreductions/limit-reduction-table-row.js";
|
|
156
156
|
import { LimitReductionTableCell } from "./components/parameters/common/limitreductions/limit-reduction-table-cell.js";
|
|
@@ -175,7 +175,8 @@ import { SecurityAnalysisParametersDialog } from "./components/parameters/securi
|
|
|
175
175
|
import { SensitivityAnalysisParametersInline } from "./components/parameters/sensi/sensitivity-analysis-parameters-inline.js";
|
|
176
176
|
import { SensitivityAnalysisParametersDialog } from "./components/parameters/sensi/sensitivity-analysis-parameters-dialog.js";
|
|
177
177
|
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 "./components/parameters/sensi/columns-definitions.js";
|
|
178
|
-
import {
|
|
178
|
+
import { ACCURACY, ACTIVE, CALCULATION_TYPE, LOADS_VARIATIONS, LOAD_FILTERS, LOAD_INCREASE_START_TIME, LOAD_INCREASE_STOP_TIME, LOAD_MODELS_RULE, MARGIN_CALCULATION_START_TIME, START_TIME, STOP_TIME, VARIATION } from "./components/parameters/dynamic-margin-calculation/constants.js";
|
|
179
|
+
import { DynamicMarginCalculationInline } from "./components/parameters/dynamic-margin-calculation/dynamic-margin-calculation-inline.js";
|
|
179
180
|
import { CustomMenuItem, CustomNestedMenuItem } from "./components/menus/custom-nested-menu.js";
|
|
180
181
|
import { OverflowableTableCell } from "./components/muiTable/OverflowableTableCell.js";
|
|
181
182
|
import { OverflowableTableCellWithCheckbox } from "./components/muiTable/OverflowableTableCellWithCheckbox.js";
|
|
@@ -199,7 +200,7 @@ import { useSnackMessage } from "./hooks/useSnackMessage.js";
|
|
|
199
200
|
import { useFormatLabelWithUnit } from "./hooks/useFormatLabelWithUnit.js";
|
|
200
201
|
import { useSelectAppearance } from "./hooks/useSelectAppearance.js";
|
|
201
202
|
import { OptionalServicesStatus, useParametersBackend } from "./hooks/use-parameters-backend.js";
|
|
202
|
-
import {
|
|
203
|
+
import { useCreateRowData } from "./hooks/use-create-row-data.js";
|
|
203
204
|
import { LOGOUT_ERROR, RESET_AUTHENTICATION_ROUTER_ERROR, SHOW_AUTH_INFO_LOGIN, SIGNIN_CALLBACK_ERROR, UNAUTHORIZED_USER_INFO, USER, USER_VALIDATION_ERROR, resetAuthenticationRouterError, setLoggedUser, setLogoutError, setShowAuthenticationRouterLogin, setSignInCallbackError, setUnauthorizedUserInfo, setUserValidationError } from "./redux/actions/authActions.js";
|
|
204
205
|
import { getUserToken, setCommonStore } from "./redux/commonStore.js";
|
|
205
206
|
import { fetchAppsMetadata, fetchBaseVoltages, fetchDefaultCountry, fetchEnv, fetchFavoriteAndDefaultCountries, fetchStudyMetadata, isExploreMetadata, isStudyMetadata } from "./services/appsMetadata.js";
|
|
@@ -216,6 +217,7 @@ import { backendFetch, backendFetchFile, backendFetchJson, backendFetchText, get
|
|
|
216
217
|
import { getVoltageInitParameters, getVoltageInitUrl } from "./services/voltage-init.js";
|
|
217
218
|
import { fetchShortCircuitParameters, getShortCircuitSpecificParametersDescription, updateShortCircuitParameters } from "./services/short-circuit-analysis.js";
|
|
218
219
|
import { fetchNetworkModification, updateModification } from "./services/networkModification.js";
|
|
220
|
+
import { fetchDynamicMarginCalculationParameters, fetchDynamicMarginCalculationProviders, updateDynamicMarginCalculationParameters } from "./services/dynamic-margin-calculation.js";
|
|
219
221
|
import { equalsArray } from "./utils/algos.js";
|
|
220
222
|
import { ActivePowerAdornment, AmpereAdornment, KiloAmpereAdornment, KilometerAdornment, MVAPowerAdornment, MicroSusceptanceAdornment, OhmAdornment, PercentageAdornment, ReactivePowerAdornment, SusceptanceAdornment, VoltageAdornment } from "./utils/constants/adornments.js";
|
|
221
223
|
import { FetchStatus } from "./utils/constants/fetchStatus.js";
|
|
@@ -247,6 +249,7 @@ import { FieldType } from "./utils/types/fieldType.js";
|
|
|
247
249
|
import { ParameterType } from "./utils/types/parameters.type.js";
|
|
248
250
|
import { SolverTypeInfos } from "./utils/types/dynamic-simulation.type.js";
|
|
249
251
|
import { DistributionType, SensitivityType } from "./utils/types/sensitivity-analysis.type.js";
|
|
252
|
+
import { CalculationType, LoadModelsRule } from "./utils/types/dynamic-margin-calculation.type.js";
|
|
250
253
|
import { getIdOrSelf, notNull, notUndefined, parseIntData, removeNullFields, sanitizeString } from "./utils/ts-utils.js";
|
|
251
254
|
import { toNumber, validateValueIsANumber } from "./utils/validation-functions.js";
|
|
252
255
|
import "./utils/yupConfig.js";
|
|
@@ -310,6 +313,8 @@ import { parametersFr } from "./translations/fr/parameters.js";
|
|
|
310
313
|
import { useUniqueNameValidationFr } from "./translations/fr/use-unique-name-validation-fr.js";
|
|
311
314
|
import * as yup from "yup";
|
|
312
315
|
export {
|
|
316
|
+
ACCURACY,
|
|
317
|
+
ACTIVE,
|
|
313
318
|
ALL_EQUIPMENTS,
|
|
314
319
|
AMPERE,
|
|
315
320
|
AboutDialog,
|
|
@@ -334,6 +339,7 @@ export {
|
|
|
334
339
|
BooleanNullableCellRenderer,
|
|
335
340
|
BottomRightButtons,
|
|
336
341
|
BusBar,
|
|
342
|
+
CALCULATION_TYPE,
|
|
337
343
|
CENTER_LABEL,
|
|
338
344
|
COLUMNS_DEFINITIONS_HVDCS,
|
|
339
345
|
COLUMNS_DEFINITIONS_INJECTIONS,
|
|
@@ -347,10 +353,14 @@ export {
|
|
|
347
353
|
COMMON_PARAMETERS,
|
|
348
354
|
COMPONENT_LIBRARY,
|
|
349
355
|
CONNECTED_MODE,
|
|
356
|
+
CONTINGENCIES,
|
|
357
|
+
CONTINGENCY_LISTS,
|
|
358
|
+
CONTINGENCY_LISTS_INFOS,
|
|
350
359
|
CONTINGENCY_LIST_EQUIPMENTS,
|
|
351
360
|
CONVERTERS_MODE_OPTIONS,
|
|
352
361
|
COUNTRIES_TO_BALANCE,
|
|
353
362
|
CUSTOM_AGGRID_THEME,
|
|
363
|
+
CalculationType,
|
|
354
364
|
CancelButton,
|
|
355
365
|
CardErrorBoundary,
|
|
356
366
|
CheckBoxList,
|
|
@@ -398,6 +408,7 @@ export {
|
|
|
398
408
|
DataType,
|
|
399
409
|
DefaultCellRenderer,
|
|
400
410
|
DescriptionField,
|
|
411
|
+
DescriptionInput,
|
|
401
412
|
DescriptionModificationDialog,
|
|
402
413
|
DevModeBanner,
|
|
403
414
|
DirectoryItemSelector,
|
|
@@ -408,6 +419,7 @@ export {
|
|
|
408
419
|
DndTableAddRowsDialog,
|
|
409
420
|
DndTableBottomLeftButtons,
|
|
410
421
|
DndTableBottomRightButtons,
|
|
422
|
+
DynamicMarginCalculationInline,
|
|
411
423
|
ENERGY_SOURCE_OPTIONS,
|
|
412
424
|
EQUIPMENTS_IN_VOLTAGE_REGULATION_TYPES,
|
|
413
425
|
EXPERT_FILTER_EQUIPMENTS,
|
|
@@ -487,6 +499,11 @@ export {
|
|
|
487
499
|
LIMIT_DURATION_FORM,
|
|
488
500
|
LIMIT_REDUCTIONS_FORM,
|
|
489
501
|
LINE_FLOW_MODE,
|
|
502
|
+
LOADS_VARIATIONS,
|
|
503
|
+
LOAD_FILTERS,
|
|
504
|
+
LOAD_INCREASE_START_TIME,
|
|
505
|
+
LOAD_INCREASE_STOP_TIME,
|
|
506
|
+
LOAD_MODELS_RULE,
|
|
490
507
|
LOAD_TYPE_OPTIONS,
|
|
491
508
|
LOGOUT_ERROR,
|
|
492
509
|
LOW_VOLTAGE_LIMIT,
|
|
@@ -502,6 +519,7 @@ export {
|
|
|
502
519
|
Load,
|
|
503
520
|
LoadFlowParametersEditionDialog,
|
|
504
521
|
LoadFlowParametersInline,
|
|
522
|
+
LoadModelsRule,
|
|
505
523
|
Login,
|
|
506
524
|
LogoText,
|
|
507
525
|
Logout,
|
|
@@ -511,6 +529,7 @@ export {
|
|
|
511
529
|
MAP_BASEMAP_MAPBOX,
|
|
512
530
|
MAP_BASE_MAP,
|
|
513
531
|
MAP_MANUAL_REFRESH,
|
|
532
|
+
MARGIN_CALCULATION_START_TIME,
|
|
514
533
|
MAX_CHAR_DESCRIPTION,
|
|
515
534
|
MAX_ROWS_NUMBER,
|
|
516
535
|
MAX_VALUE_ALLOWED_FOR_LIMIT_REDUCTION,
|
|
@@ -644,6 +663,8 @@ export {
|
|
|
644
663
|
SIEMENS,
|
|
645
664
|
SIGNIN_CALLBACK_ERROR,
|
|
646
665
|
SPECIFIC_PARAMETERS,
|
|
666
|
+
START_TIME,
|
|
667
|
+
STOP_TIME,
|
|
647
668
|
SUBSTATION_LAYOUT,
|
|
648
669
|
SVAR_REGULATION_MODE_OPTIONS,
|
|
649
670
|
SVC,
|
|
@@ -660,7 +681,6 @@ export {
|
|
|
660
681
|
SensiTabValues,
|
|
661
682
|
SensitivityAnalysisParametersDialog,
|
|
662
683
|
SensitivityAnalysisParametersInline,
|
|
663
|
-
SensitivityTable,
|
|
664
684
|
SensitivityType,
|
|
665
685
|
SeparatorCellRenderer,
|
|
666
686
|
ShortCircuitParametersEditionDialog,
|
|
@@ -706,6 +726,7 @@ export {
|
|
|
706
726
|
VARIABLE_Q_GENERATORS,
|
|
707
727
|
VARIABLE_SHUNT_COMPENSATORS,
|
|
708
728
|
VARIABLE_TRANSFORMERS,
|
|
729
|
+
VARIATION,
|
|
709
730
|
VERSION_PARAMETER,
|
|
710
731
|
VL_TAG_MAX_SIZE,
|
|
711
732
|
VOLTAGE_INIT_MODE,
|
|
@@ -792,6 +813,8 @@ export {
|
|
|
792
813
|
fetchDefaultSecurityAnalysisProvider,
|
|
793
814
|
fetchDirectoryContent,
|
|
794
815
|
fetchDirectoryElementPath,
|
|
816
|
+
fetchDynamicMarginCalculationParameters,
|
|
817
|
+
fetchDynamicMarginCalculationProviders,
|
|
795
818
|
fetchElementsInfos,
|
|
796
819
|
fetchEnv,
|
|
797
820
|
fetchFavoriteAndDefaultCountries,
|
|
@@ -841,7 +864,6 @@ export {
|
|
|
841
864
|
getPropertyValue,
|
|
842
865
|
getRangeInputSchema,
|
|
843
866
|
getRequestParamFromList,
|
|
844
|
-
getSAParametersFromSchema,
|
|
845
867
|
getSecurityAnalysisDefaultLimitReductions,
|
|
846
868
|
getSecurityAnalysisParameters,
|
|
847
869
|
getShortCircuitSpecificParametersDescription,
|
|
@@ -937,7 +959,6 @@ export {
|
|
|
937
959
|
tableFr,
|
|
938
960
|
testQuery,
|
|
939
961
|
toFloatOrNullValue,
|
|
940
|
-
toFormValueSaParameters,
|
|
941
962
|
toFormValuesLimitReductions,
|
|
942
963
|
toModificationProperties,
|
|
943
964
|
toNestedGlobalSelectors,
|
|
@@ -950,6 +971,7 @@ export {
|
|
|
950
971
|
unitToMicroUnit,
|
|
951
972
|
unscrollableDialogStyles,
|
|
952
973
|
updateConfigParameter,
|
|
974
|
+
updateDynamicMarginCalculationParameters,
|
|
953
975
|
updateModification,
|
|
954
976
|
updateParameter,
|
|
955
977
|
updatePccMinParameters,
|
|
@@ -959,7 +981,7 @@ export {
|
|
|
959
981
|
updateVoltageInitParameters,
|
|
960
982
|
useConfidentialityWarning,
|
|
961
983
|
useConvertValue,
|
|
962
|
-
|
|
984
|
+
useCreateRowData,
|
|
963
985
|
useCsvExport,
|
|
964
986
|
useCustomFormContext,
|
|
965
987
|
useDebounce,
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { UUID } from 'node:crypto';
|
|
2
|
+
import { DynamicMarginCalculationParametersInfos } from '../utils/types/dynamic-margin-calculation.type';
|
|
3
|
+
export declare function fetchDynamicMarginCalculationProviders(): Promise<any>;
|
|
4
|
+
export declare function fetchDynamicMarginCalculationParameters(parameterUuid: UUID): Promise<DynamicMarginCalculationParametersInfos>;
|
|
5
|
+
export declare function updateDynamicMarginCalculationParameters(parameterUuid: UUID, newParams: DynamicMarginCalculationParametersInfos): Promise<Response>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { backendFetchJson, backendFetch } from "./utils.js";
|
|
2
|
+
const PREFIX_DYNAMIC_MARGIN_CALCULATION_SERVER_QUERIES = `${"api/gateway"}/dynamic-margin-calculation`;
|
|
3
|
+
function getDynamicMarginCalculationUrl() {
|
|
4
|
+
return `${PREFIX_DYNAMIC_MARGIN_CALCULATION_SERVER_QUERIES}/v1/`;
|
|
5
|
+
}
|
|
6
|
+
function fetchDynamicMarginCalculationProviders() {
|
|
7
|
+
console.info("fetch dynamic margin calculation providers");
|
|
8
|
+
const url = `${getDynamicMarginCalculationUrl()}providers`;
|
|
9
|
+
console.debug(url);
|
|
10
|
+
return backendFetchJson(url);
|
|
11
|
+
}
|
|
12
|
+
function fetchDynamicMarginCalculationParameters(parameterUuid) {
|
|
13
|
+
console.info(`Fetching dynamic margin calculation parameters having uuid '${parameterUuid}' ...`);
|
|
14
|
+
const url = `${getDynamicMarginCalculationUrl()}parameters/${encodeURIComponent(parameterUuid)}`;
|
|
15
|
+
console.debug(url);
|
|
16
|
+
return backendFetchJson(url);
|
|
17
|
+
}
|
|
18
|
+
function updateDynamicMarginCalculationParameters(parameterUuid, newParams) {
|
|
19
|
+
console.info(`Setting dynamic margin calculation parameters having uuid '${parameterUuid}' ...`);
|
|
20
|
+
const url = `${getDynamicMarginCalculationUrl()}parameters/${parameterUuid}`;
|
|
21
|
+
console.debug(url);
|
|
22
|
+
return backendFetch(url, {
|
|
23
|
+
method: "POST",
|
|
24
|
+
headers: {
|
|
25
|
+
Accept: "application/json",
|
|
26
|
+
"Content-Type": "application/json"
|
|
27
|
+
},
|
|
28
|
+
body: JSON.stringify(newParams)
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
fetchDynamicMarginCalculationParameters,
|
|
33
|
+
fetchDynamicMarginCalculationProviders,
|
|
34
|
+
updateDynamicMarginCalculationParameters
|
|
35
|
+
};
|
package/dist/services/index.d.ts
CHANGED
package/dist/services/index.js
CHANGED
|
@@ -12,6 +12,7 @@ import { backendFetch, backendFetchFile, backendFetchJson, backendFetchText, get
|
|
|
12
12
|
import { getVoltageInitParameters, getVoltageInitUrl } from "./voltage-init.js";
|
|
13
13
|
import { fetchShortCircuitParameters, getShortCircuitSpecificParametersDescription, updateShortCircuitParameters } from "./short-circuit-analysis.js";
|
|
14
14
|
import { fetchNetworkModification, updateModification } from "./networkModification.js";
|
|
15
|
+
import { fetchDynamicMarginCalculationParameters, fetchDynamicMarginCalculationProviders, updateDynamicMarginCalculationParameters } from "./dynamic-margin-calculation.js";
|
|
15
16
|
export {
|
|
16
17
|
PREFIX_STUDY_QUERIES,
|
|
17
18
|
PermissionType,
|
|
@@ -32,6 +33,8 @@ export {
|
|
|
32
33
|
fetchDefaultSecurityAnalysisProvider,
|
|
33
34
|
fetchDirectoryContent,
|
|
34
35
|
fetchDirectoryElementPath,
|
|
36
|
+
fetchDynamicMarginCalculationParameters,
|
|
37
|
+
fetchDynamicMarginCalculationProviders,
|
|
35
38
|
fetchElementsInfos,
|
|
36
39
|
fetchEnv,
|
|
37
40
|
fetchFavoriteAndDefaultCountries,
|
|
@@ -73,6 +76,7 @@ export {
|
|
|
73
76
|
setSecurityAnalysisParameters,
|
|
74
77
|
setStudyNetworkVisualizationParameters,
|
|
75
78
|
updateConfigParameter,
|
|
79
|
+
updateDynamicMarginCalculationParameters,
|
|
76
80
|
updateModification,
|
|
77
81
|
updateParameter,
|
|
78
82
|
updatePccMinParameters,
|
|
@@ -67,6 +67,7 @@ export declare const businessErrorsEn: {
|
|
|
67
67
|
'dynamicSimulation.mappingNotLastRuleWithEmptyFilterError': string;
|
|
68
68
|
'sensitivityAnalysis.tooManyFactors': string;
|
|
69
69
|
'pccMin.missingFilter': string;
|
|
70
|
+
'pccMin.voltageLevelsLimitExceeded': string;
|
|
70
71
|
'diagram.invalidEquipmentType': string;
|
|
71
72
|
'diagram.invalidSubstationLayout': string;
|
|
72
73
|
'diagram.invalidDisplayMode': string;
|
|
@@ -74,4 +75,6 @@ export declare const businessErrorsEn: {
|
|
|
74
75
|
'diagram.equipmentNotFound': string;
|
|
75
76
|
'diagram.noConfiguredPosition': string;
|
|
76
77
|
'diagram.noVoltageLevelFound': string;
|
|
78
|
+
'dynamicMarginCalculation.providerNotFound': string;
|
|
79
|
+
'dynamicMarginCalculation.loadFilterNotFound': string;
|
|
77
80
|
};
|
|
@@ -61,13 +61,16 @@ const businessErrorsEn = {
|
|
|
61
61
|
"dynamicSimulation.mappingNotLastRuleWithEmptyFilterError": "Only last rule can have empty filter: type {equipmentType}, rule index {index}.",
|
|
62
62
|
"sensitivityAnalysis.tooManyFactors": "Too many factors to run sensitivity analysis: {resultCount} results (limit: {resultCountLimit}) and {variableCount} variables (limit: {variableCountLimit}).",
|
|
63
63
|
"pccMin.missingFilter": "The configuration contains one filter that has been deleted.",
|
|
64
|
+
"pccMin.voltageLevelsLimitExceeded": "The result of filter evaluation gives {voltageLevelSize} voltage levels, which exceeds the limit {voltageLevelsLimit}.",
|
|
64
65
|
"diagram.invalidEquipmentType": "The equipment {id} of type {equipmentType} is not a substation or voltage level in given network",
|
|
65
66
|
"diagram.invalidSubstationLayout": "Given substation layout {substationLayout} doesn't exist",
|
|
66
67
|
"diagram.invalidDisplayMode": "Given sld display mode {sldDisplayMode} doesn't exist",
|
|
67
68
|
"diagram.maxVoltageLevelDisplayed": "You need to reduce the number of voltage levels to be displayed in the network area diagram (current {nbVoltageLevels}, maximum {maxVoltageLevels})",
|
|
68
69
|
"diagram.equipmentNotFound": "Voltage level or substation {id} not found",
|
|
69
70
|
"diagram.noConfiguredPosition": "No configured position found",
|
|
70
|
-
"diagram.noVoltageLevelFound": "No voltage level found for this network area diagram"
|
|
71
|
+
"diagram.noVoltageLevelFound": "No voltage level found for this network area diagram",
|
|
72
|
+
"dynamicMarginCalculation.providerNotFound": "Dynamic margin calculation provider not found.",
|
|
73
|
+
"dynamicMarginCalculation.loadFilterNotFound": "Some load filters do not exist: {filterUuids}"
|
|
71
74
|
};
|
|
72
75
|
export {
|
|
73
76
|
businessErrorsEn
|
|
@@ -187,6 +187,7 @@ export declare const parametersEn: {
|
|
|
187
187
|
angleFlowSensitivityValueThreshold: string;
|
|
188
188
|
flowVoltageSensitivityValueThreshold: string;
|
|
189
189
|
ContingencyListsSelection: string;
|
|
190
|
+
contingencyLists: string;
|
|
190
191
|
Execute: string;
|
|
191
192
|
AddContingencyList: string;
|
|
192
193
|
DeleteContingencyList: string;
|
|
@@ -248,4 +249,24 @@ export declare const parametersEn: {
|
|
|
248
249
|
PccMinParametersError: string;
|
|
249
250
|
updatePccMinParametersError: string;
|
|
250
251
|
pccMinParamFilter: string;
|
|
252
|
+
DynamicMarginCalculationParametersError: string;
|
|
253
|
+
updateDynamicMarginCalculationParametersError: string;
|
|
254
|
+
DynamicMarginCalculationTimeDelayTab: string;
|
|
255
|
+
DynamicMarginCalculationLoadsVariationsTab: string;
|
|
256
|
+
DynamicMarginCalculationStartTime: string;
|
|
257
|
+
DynamicMarginCalculationStopTime: string;
|
|
258
|
+
DynamicMarginCalculationMarginCalculationStartTime: string;
|
|
259
|
+
DynamicMarginCalculationLoadIncreaseStartTime: string;
|
|
260
|
+
DynamicMarginCalculationLoadIncreaseStopTime: string;
|
|
261
|
+
DynamicMarginCalculationCalculationType: string;
|
|
262
|
+
DynamicMarginCalculationAccuracy: string;
|
|
263
|
+
DynamicMarginCalculationLoadModelsRule: string;
|
|
264
|
+
DynamicMarginCalculationLoadsVariations: string;
|
|
265
|
+
DynamicMarginCalculationCalculationTypeGlobalMargin: string;
|
|
266
|
+
DynamicMarginCalculationCalculationTypeLocalMargin: string;
|
|
267
|
+
DynamicMarginCalculationLoadModelsRuleAllLoads: string;
|
|
268
|
+
DynamicMarginCalculationLoadModelsRuleTargetedLoads: string;
|
|
269
|
+
DynamicMarginCalculationLoadsFilter: string;
|
|
270
|
+
DynamicMarginCalculationLoadsVariation: string;
|
|
271
|
+
DynamicMarginCalculationLoadsActive: string;
|
|
251
272
|
};
|
|
@@ -181,11 +181,12 @@ const parametersEn = {
|
|
|
181
181
|
angleFlowSensitivityValueThreshold: "ΔMW ou ΔA / Δ°",
|
|
182
182
|
flowVoltageSensitivityValueThreshold: "ΔkV / kV",
|
|
183
183
|
ContingencyListsSelection: "Contingency lists selection",
|
|
184
|
+
contingencyLists: "Contingency lists",
|
|
184
185
|
Execute: "Execute",
|
|
185
186
|
AddContingencyList: "Add",
|
|
186
187
|
DeleteContingencyList: "Delete",
|
|
187
188
|
getContingencyListError: "Can't fetch contingencies lists",
|
|
188
|
-
xContingenciesWillBeSimulated: "{x} contingencies
|
|
189
|
+
xContingenciesWillBeSimulated: "{x} contingencies to be simulated",
|
|
189
190
|
resultsThreshold: "Minimum sensitivity threshold",
|
|
190
191
|
SensitivityBranches: "Branches",
|
|
191
192
|
SensitivityInjectionsSet: "Relatively to injections set :",
|
|
@@ -205,7 +206,7 @@ const parametersEn = {
|
|
|
205
206
|
SensitivityType: "Sensitivity type",
|
|
206
207
|
DeltaMW: "Δ MW",
|
|
207
208
|
DeltaA: "Δ A",
|
|
208
|
-
ContingencyLists: "Contingencies",
|
|
209
|
+
ContingencyLists: "Contingencies lists",
|
|
209
210
|
Injections: "Injections",
|
|
210
211
|
MonitoredVoltageLevels: "Supervised voltage levels",
|
|
211
212
|
EquipmentsInVoltageRegulation: "Equipments in voltage regulation",
|
|
@@ -247,7 +248,28 @@ const parametersEn = {
|
|
|
247
248
|
// pccMin
|
|
248
249
|
PccMinParametersError: "An error occurred while updating the pcc min parameters",
|
|
249
250
|
updatePccMinParametersError: "An error occurred while updating the pcc min parameters",
|
|
250
|
-
pccMinParamFilter: "Definition of contingencies on voltage levels"
|
|
251
|
+
pccMinParamFilter: "Definition of contingencies on voltage levels",
|
|
252
|
+
// DynamicMarginCalculation
|
|
253
|
+
DynamicMarginCalculationParametersError: "An error occurred while updating the dynamic margin calculation parameters",
|
|
254
|
+
updateDynamicMarginCalculationParametersError: "An error occurred while updating the dynamic margin calculation parameters",
|
|
255
|
+
DynamicMarginCalculationTimeDelayTab: "Time delay",
|
|
256
|
+
DynamicMarginCalculationLoadsVariationsTab: "Load variations",
|
|
257
|
+
DynamicMarginCalculationStartTime: "Start time",
|
|
258
|
+
DynamicMarginCalculationStopTime: "Stop time",
|
|
259
|
+
DynamicMarginCalculationMarginCalculationStartTime: "Margin calculation start time",
|
|
260
|
+
DynamicMarginCalculationLoadIncreaseStartTime: "Load increase start time",
|
|
261
|
+
DynamicMarginCalculationLoadIncreaseStopTime: "Load increase stop time",
|
|
262
|
+
DynamicMarginCalculationCalculationType: "Calculation type",
|
|
263
|
+
DynamicMarginCalculationAccuracy: "Accuracy",
|
|
264
|
+
DynamicMarginCalculationLoadModelsRule: "Load models rule",
|
|
265
|
+
DynamicMarginCalculationLoadsVariations: "Load variations",
|
|
266
|
+
DynamicMarginCalculationCalculationTypeGlobalMargin: "Global margin",
|
|
267
|
+
DynamicMarginCalculationCalculationTypeLocalMargin: "Local margin",
|
|
268
|
+
DynamicMarginCalculationLoadModelsRuleAllLoads: "All loads",
|
|
269
|
+
DynamicMarginCalculationLoadModelsRuleTargetedLoads: "Targeted loads",
|
|
270
|
+
DynamicMarginCalculationLoadsFilter: "Loads filter",
|
|
271
|
+
DynamicMarginCalculationLoadsVariation: "Load variation",
|
|
272
|
+
DynamicMarginCalculationLoadsActive: "Active"
|
|
251
273
|
};
|
|
252
274
|
export {
|
|
253
275
|
parametersEn
|
|
@@ -67,6 +67,7 @@ export declare const businessErrorsFr: {
|
|
|
67
67
|
'dynamicSimulation.mappingNotLastRuleWithEmptyFilterError': string;
|
|
68
68
|
'sensitivityAnalysis.tooManyFactors': string;
|
|
69
69
|
'pccMin.missingFilter': string;
|
|
70
|
+
'pccMin.voltageLevelsLimitExceeded': string;
|
|
70
71
|
'diagram.invalidEquipmentType': string;
|
|
71
72
|
'diagram.invalidSubstationLayout': string;
|
|
72
73
|
'diagram.invalidDisplayMode': string;
|
|
@@ -74,4 +75,6 @@ export declare const businessErrorsFr: {
|
|
|
74
75
|
'diagram.equipmentNotFound': string;
|
|
75
76
|
'diagram.noConfiguredPosition': string;
|
|
76
77
|
'diagram.noVoltageLevelFound': string;
|
|
78
|
+
'dynamicMarginCalculation.providerNotFound': string;
|
|
79
|
+
'dynamicMarginCalculation.loadFilterNotFound': string;
|
|
77
80
|
};
|
|
@@ -61,13 +61,16 @@ const businessErrorsFr = {
|
|
|
61
61
|
"dynamicSimulation.mappingNotLastRuleWithEmptyFilterError": "Seule la dernière règle peut avoir un filtre vide : type {equipmentType}, indice de la règle : {index}.",
|
|
62
62
|
"sensitivityAnalysis.tooManyFactors": "Trop de facteurs pour exécuter l’analyse de sensibilité : {resultCount} résultats (limite : {resultCountLimit}) et {variableCount} variables (limite : {variableCountLimit}).",
|
|
63
63
|
"pccMin.missingFilter": "La configuration contient un filtre qui a été supprimé.",
|
|
64
|
+
"pccMin.voltageLevelsLimitExceeded": "Le résultat de l’évaluation du filtre donne {voltageLevelSize} postes, ce qui dépasse la limite de {voltageLevelsLimit}.",
|
|
64
65
|
"diagram.invalidEquipmentType": "L'équipement {id} de type {equipmentType} n'est pas un site ou poste dans le réseau courant",
|
|
65
66
|
"diagram.invalidSubstationLayout": "Le mode d'affichage de site {substationLayout} n'existe pas",
|
|
66
67
|
"diagram.invalidDisplayMode": "Le mode d'affichage de schéma unifilaire {sldDisplayMode} n'existe pas",
|
|
67
68
|
"diagram.maxVoltageLevelDisplayed": "Vous devez réduire le nombre de postes à afficher dans l'image nodale de zone (nombre actuel {nbVoltageLevels}, nombre maximum {maxVoltageLevels})",
|
|
68
69
|
"diagram.equipmentNotFound": "Poste ou site {id} non trouvé",
|
|
69
70
|
"diagram.noConfiguredPosition": "Aucune position configurée trouvée",
|
|
70
|
-
"diagram.noVoltageLevelFound": "Aucun poste trouvé pour cette image nodale de zone"
|
|
71
|
+
"diagram.noVoltageLevelFound": "Aucun poste trouvé pour cette image nodale de zone",
|
|
72
|
+
"dynamicMarginCalculation.providerNotFound": "Simulateur du calcul de marge dynamique non trouvé.",
|
|
73
|
+
"dynamicMarginCalculation.loadFilterNotFound": "Certains filtres de consommations n'existent pas : {filterUuids}"
|
|
71
74
|
};
|
|
72
75
|
export {
|
|
73
76
|
businessErrorsFr
|
|
@@ -188,6 +188,7 @@ export declare const parametersFr: {
|
|
|
188
188
|
angleFlowSensitivityValueThreshold: string;
|
|
189
189
|
flowVoltageSensitivityValueThreshold: string;
|
|
190
190
|
ContingencyListsSelection: string;
|
|
191
|
+
contingencyLists: string;
|
|
191
192
|
Execute: string;
|
|
192
193
|
AddContingencyList: string;
|
|
193
194
|
DeleteContingencyList: string;
|
|
@@ -249,4 +250,24 @@ export declare const parametersFr: {
|
|
|
249
250
|
PccMinParametersError: string;
|
|
250
251
|
updatePccMinParametersError: string;
|
|
251
252
|
pccMinParamFilter: string;
|
|
253
|
+
DynamicMarginCalculationParametersError: string;
|
|
254
|
+
updateDynamicMarginCalculationParametersError: string;
|
|
255
|
+
DynamicMarginCalculationTimeDelayTab: string;
|
|
256
|
+
DynamicMarginCalculationLoadsVariationsTab: string;
|
|
257
|
+
DynamicMarginCalculationStartTime: string;
|
|
258
|
+
DynamicMarginCalculationStopTime: string;
|
|
259
|
+
DynamicMarginCalculationMarginCalculationStartTime: string;
|
|
260
|
+
DynamicMarginCalculationLoadIncreaseStartTime: string;
|
|
261
|
+
DynamicMarginCalculationLoadIncreaseStopTime: string;
|
|
262
|
+
DynamicMarginCalculationCalculationType: string;
|
|
263
|
+
DynamicMarginCalculationAccuracy: string;
|
|
264
|
+
DynamicMarginCalculationLoadModelsRule: string;
|
|
265
|
+
DynamicMarginCalculationLoadsVariations: string;
|
|
266
|
+
DynamicMarginCalculationCalculationTypeGlobalMargin: string;
|
|
267
|
+
DynamicMarginCalculationCalculationTypeLocalMargin: string;
|
|
268
|
+
DynamicMarginCalculationLoadModelsRuleAllLoads: string;
|
|
269
|
+
DynamicMarginCalculationLoadModelsRuleTargetedLoads: string;
|
|
270
|
+
DynamicMarginCalculationLoadsFilter: string;
|
|
271
|
+
DynamicMarginCalculationLoadsVariation: string;
|
|
272
|
+
DynamicMarginCalculationLoadsActive: string;
|
|
252
273
|
};
|
|
@@ -182,11 +182,12 @@ const parametersFr = {
|
|
|
182
182
|
angleFlowSensitivityValueThreshold: "ΔMW ou ΔA / Δ°",
|
|
183
183
|
flowVoltageSensitivityValueThreshold: "ΔkV / kV",
|
|
184
184
|
ContingencyListsSelection: "Sélection des listes d'aléas",
|
|
185
|
+
contingencyLists: "Listes d'aléas",
|
|
185
186
|
Execute: "Exécuter",
|
|
186
187
|
AddContingencyList: "Ajouter",
|
|
187
188
|
DeleteContingencyList: "Supprimer",
|
|
188
189
|
getContingencyListError: "Impossible de récupérer les listes d'aléas",
|
|
189
|
-
xContingenciesWillBeSimulated: "{x}
|
|
190
|
+
xContingenciesWillBeSimulated: "{x} défauts à simuler",
|
|
190
191
|
resultsThreshold: "Seuil minimal de sensibilité",
|
|
191
192
|
SensitivityBranches: "Quadripôles",
|
|
192
193
|
SensitivityInjectionsSet: "Par rapport à un ensemble d'injections :",
|
|
@@ -206,7 +207,7 @@ const parametersFr = {
|
|
|
206
207
|
SensitivityType: "Type de sensibilité",
|
|
207
208
|
DeltaMW: "Δ MW",
|
|
208
209
|
DeltaA: "Δ A",
|
|
209
|
-
ContingencyLists: "
|
|
210
|
+
ContingencyLists: "Listes d'aléas",
|
|
210
211
|
Injections: "Injections",
|
|
211
212
|
MonitoredVoltageLevels: "Postes surveillés",
|
|
212
213
|
EquipmentsInVoltageRegulation: "Ouvrages en réglage tension",
|
|
@@ -247,7 +248,28 @@ const parametersFr = {
|
|
|
247
248
|
resetLoadFlowParametersWarning: "Impossible de récupérer les paramètres de calcul de répartition définis dans le profil utilisateur (les valeurs par défaut sont appliquées)",
|
|
248
249
|
PccMinParametersError: "Erreur lors de la mise à jour des paramètres de pcc du min",
|
|
249
250
|
updatePccMinParametersError: "Une erreur est survenue lors de la mise a jour des paramètres de pcc min",
|
|
250
|
-
pccMinParamFilter: "Définition des postes en défaut"
|
|
251
|
+
pccMinParamFilter: "Définition des postes en défaut",
|
|
252
|
+
// DynamicMarginCalculation
|
|
253
|
+
DynamicMarginCalculationParametersError: "Erreur lors de la mise à jour des paramètres du calcul du marge",
|
|
254
|
+
updateDynamicMarginCalculationParametersError: "Une erreur est survenue lors de la mise a jour des paramètres du calcul du marge",
|
|
255
|
+
DynamicMarginCalculationTimeDelayTab: "Temporisation",
|
|
256
|
+
DynamicMarginCalculationLoadsVariationsTab: "Variations de charge",
|
|
257
|
+
DynamicMarginCalculationStartTime: "Temps de début",
|
|
258
|
+
DynamicMarginCalculationStopTime: "Temps d'arrêt",
|
|
259
|
+
DynamicMarginCalculationMarginCalculationStartTime: "Temps de début de du calcul de marge",
|
|
260
|
+
DynamicMarginCalculationLoadIncreaseStartTime: "Temps de début de l'augmentation de charge",
|
|
261
|
+
DynamicMarginCalculationLoadIncreaseStopTime: "Temps d'arrêt de l'augmentation de charge",
|
|
262
|
+
DynamicMarginCalculationCalculationType: "Type de calcul",
|
|
263
|
+
DynamicMarginCalculationAccuracy: "Précision",
|
|
264
|
+
DynamicMarginCalculationLoadModelsRule: "Règle des modèles de charge",
|
|
265
|
+
DynamicMarginCalculationLoadsVariations: "Variations de charge",
|
|
266
|
+
DynamicMarginCalculationCalculationTypeGlobalMargin: "Margin global",
|
|
267
|
+
DynamicMarginCalculationCalculationTypeLocalMargin: "Margin local",
|
|
268
|
+
DynamicMarginCalculationLoadModelsRuleAllLoads: "Tous les charges",
|
|
269
|
+
DynamicMarginCalculationLoadModelsRuleTargetedLoads: "Charges ciblées",
|
|
270
|
+
DynamicMarginCalculationLoadsFilter: "Regroupement de charges",
|
|
271
|
+
DynamicMarginCalculationLoadsVariation: "Variation de charge",
|
|
272
|
+
DynamicMarginCalculationLoadsActive: "Actif"
|
|
251
273
|
};
|
|
252
274
|
export {
|
|
253
275
|
parametersFr
|
package/dist/utils/index.js
CHANGED
|
@@ -29,6 +29,7 @@ import { FieldType } from "./types/fieldType.js";
|
|
|
29
29
|
import { ParameterType } from "./types/parameters.type.js";
|
|
30
30
|
import { SolverTypeInfos } from "./types/dynamic-simulation.type.js";
|
|
31
31
|
import { DistributionType, SensitivityType } from "./types/sensitivity-analysis.type.js";
|
|
32
|
+
import { CalculationType, LoadModelsRule } from "./types/dynamic-margin-calculation.type.js";
|
|
32
33
|
import { getIdOrSelf, notNull, notUndefined, parseIntData, removeNullFields, sanitizeString } from "./ts-utils.js";
|
|
33
34
|
import { toNumber, validateValueIsANumber } from "./validation-functions.js";
|
|
34
35
|
import "./yupConfig.js";
|
|
@@ -45,6 +46,7 @@ export {
|
|
|
45
46
|
BusBar,
|
|
46
47
|
COMMON_APP_NAME,
|
|
47
48
|
COMMON_CONFIG_PARAMS_NAMES,
|
|
49
|
+
CalculationType,
|
|
48
50
|
CustomError,
|
|
49
51
|
DARK_THEME,
|
|
50
52
|
DEGREE,
|
|
@@ -78,6 +80,7 @@ export {
|
|
|
78
80
|
LIGHT_THEME,
|
|
79
81
|
Line,
|
|
80
82
|
Load,
|
|
83
|
+
LoadModelsRule,
|
|
81
84
|
MAX_CHAR_DESCRIPTION,
|
|
82
85
|
MEGA_VAR,
|
|
83
86
|
MEGA_VOLT_AMPERE,
|
|
@@ -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";
|