@gridsuite/commons-ui 0.280.0 → 0.281.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/ui/dialogs/elementSaveDialog/ElementSaveDialog.d.ts +6 -1
- package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +29 -5
- package/dist/components/ui/reactHookForm/booleans/RadioInput.d.ts +1 -0
- package/dist/components/ui/reactHookForm/booleans/RadioInput.js +2 -1
- package/dist/features/index.js +80 -3
- package/dist/features/network-modifications/index.d.ts +1 -0
- package/dist/features/network-modifications/index.js +78 -3
- package/dist/features/network-modifications/tabular/TabularForm.d.ts +22 -0
- package/dist/features/network-modifications/tabular/TabularForm.js +536 -0
- package/dist/features/network-modifications/tabular/index.d.ts +7 -0
- package/dist/features/network-modifications/tabular/index.js +65 -0
- package/dist/features/network-modifications/tabular/properties/DefineTabularPropertiesDialog.d.ts +12 -0
- package/dist/features/network-modifications/tabular/properties/DefineTabularPropertiesDialog.js +123 -0
- package/dist/features/network-modifications/tabular/properties/TabularPropertiesForm.d.ts +1 -0
- package/dist/features/network-modifications/tabular/properties/TabularPropertiesForm.js +87 -0
- package/dist/features/network-modifications/tabular/properties/TabularPropertyForm.d.ts +5 -0
- package/dist/features/network-modifications/tabular/properties/TabularPropertyForm.js +91 -0
- package/dist/features/network-modifications/tabular/properties/index.d.ts +4 -0
- package/dist/features/network-modifications/tabular/properties/index.js +13 -0
- package/dist/features/network-modifications/tabular/properties/tabularProperty.utils.d.ts +26 -0
- package/dist/features/network-modifications/tabular/properties/tabularProperty.utils.js +50 -0
- package/dist/features/network-modifications/tabular/tabular.constants.d.ts +59 -0
- package/dist/features/network-modifications/tabular/tabular.constants.js +75 -0
- package/dist/features/network-modifications/tabular/tabular.types.d.ts +41 -0
- package/dist/features/network-modifications/tabular/tabular.types.js +8 -0
- package/dist/features/network-modifications/tabular/tabular.utils.d.ts +68 -0
- package/dist/features/network-modifications/tabular/tabular.utils.js +301 -0
- package/dist/features/network-modifications/tabular/tabularCreation.utils.d.ts +25 -0
- package/dist/features/network-modifications/tabular/tabularCreation.utils.js +276 -0
- package/dist/features/network-modifications/tabular/tabularModification.utils.d.ts +43 -0
- package/dist/features/network-modifications/tabular/tabularModification.utils.js +406 -0
- package/dist/features/network-modifications/voltageLevel/index.d.ts +2 -1
- package/dist/features/network-modifications/voltageLevel/index.js +15 -3
- package/dist/features/network-modifications/voltageLevel/topology/{CreateVoltageLevelTopologyForm.d.ts → creation/CreateVoltageLevelTopologyForm.d.ts} +1 -1
- package/dist/features/network-modifications/voltageLevel/topology/{CreateVoltageLevelTopologyForm.js → creation/CreateVoltageLevelTopologyForm.js} +38 -38
- package/dist/features/network-modifications/voltageLevel/topology/{voltageLevelTopologyCreation.types.d.ts → creation/voltageLevelTopologyCreation.types.d.ts} +1 -1
- package/dist/features/network-modifications/voltageLevel/topology/{voltageLevelTopologyCreation.utils.d.ts → creation/voltageLevelTopologyCreation.utils.d.ts} +1 -1
- package/dist/features/network-modifications/voltageLevel/topology/{voltageLevelTopologyCreation.utils.js → creation/voltageLevelTopologyCreation.utils.js} +5 -5
- package/dist/features/network-modifications/voltageLevel/topology/modification/ConnectionCellRender.d.ts +6 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/ConnectionCellRender.js +80 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/VoltageLevelTopologyModificationForm.d.ts +10 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/VoltageLevelTopologyModificationForm.js +284 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/constants.d.ts +10 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/constants.js +10 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/index.d.ts +10 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/index.js +14 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.types.d.ts +28 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.types.js +1 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.utils.d.ts +29 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.utils.js +124 -0
- package/dist/features/parameters/common/index.d.ts +1 -0
- package/dist/features/parameters/common/index.js +2 -0
- package/dist/features/parameters/common/parameter-field.d.ts +2 -2
- package/dist/features/parameters/common/parameter-field.js +1 -1
- package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +1 -1
- package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-inline.js +6 -6
- package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.js +1 -1
- package/dist/features/parameters/dynamic-margin-calculation/time-delay-parameters.js +1 -1
- package/dist/features/parameters/dynamic-security-analysis/contingency-parameters.js +1 -1
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-inline.js +6 -6
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +1 -1
- package/dist/features/parameters/dynamic-security-analysis/scenario-parameters.js +1 -1
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-inline.js +6 -6
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +1 -1
- package/dist/features/parameters/dynamic-simulation/network/network-parameters.js +1 -1
- package/dist/features/parameters/dynamic-simulation/solver/common-solver/common-solver-parameters.js +1 -1
- package/dist/features/parameters/dynamic-simulation/solver/ida-solver/ida-solver-parameters.js +1 -1
- package/dist/features/parameters/dynamic-simulation/solver/sim-solver/simplified-solver-parameters.js +1 -1
- package/dist/features/parameters/dynamic-simulation/solver/solver-parameters.js +1 -1
- package/dist/features/parameters/dynamic-simulation/time-delay/time-delay-parameters.js +1 -1
- package/dist/features/parameters/index.js +2 -0
- package/dist/features/parameters/loadflow/load-flow-advanced-parameters.js +1 -1
- package/dist/features/parameters/loadflow/load-flow-general-parameters.js +1 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-inline.js +5 -5
- package/dist/features/parameters/loadflow/load-flow-provider-specific-parameters.js +1 -1
- package/dist/features/parameters/network-visualizations/network-visualizations-parameters-inline.js +5 -5
- package/dist/features/parameters/pcc-min/pcc-min-parameters-inline.js +5 -5
- package/dist/features/parameters/security-analysis/security-analysis-parameters-inline.js +6 -6
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-inline.js +6 -6
- package/dist/features/parameters/short-circuit/short-circuit-parameters-inline.js +5 -5
- package/dist/features/parameters/voltage-init/voltage-init-parameters-inline.js +5 -5
- package/dist/features/side-bar/AppSideBarHeader.js +20 -5
- package/dist/features/side-bar/EnvironmentChip.d.ts +13 -0
- package/dist/features/side-bar/EnvironmentChip.js +49 -0
- package/dist/index.js +84 -5
- package/dist/services/appsMetadata.d.ts +2 -0
- package/dist/services/directory.d.ts +1 -1
- package/dist/services/directory.js +6 -2
- package/dist/services/index.js +2 -1
- package/dist/services/userAdmin.d.ts +2 -1
- package/dist/services/userAdmin.js +9 -1
- package/dist/translations/en/businessErrorsEn.d.ts +1 -0
- package/dist/translations/en/businessErrorsEn.js +1 -0
- package/dist/translations/en/networkModificationsEn.d.ts +85 -0
- package/dist/translations/en/networkModificationsEn.js +91 -1
- package/dist/translations/fr/businessErrorsFr.d.ts +1 -0
- package/dist/translations/fr/businessErrorsFr.js +1 -0
- package/dist/translations/fr/networkModificationsFr.d.ts +85 -0
- package/dist/translations/fr/networkModificationsFr.js +91 -1
- package/dist/utils/constants/index.js +2 -1
- package/dist/utils/constants/notificationsProvider.d.ts +1 -0
- package/dist/utils/constants/notificationsProvider.js +1 -0
- package/dist/utils/constants/translationKeys.d.ts +1 -0
- package/dist/utils/constants/translationKeys.js +2 -0
- package/dist/utils/index.js +2 -1
- package/dist/utils/types/types.d.ts +4 -0
- package/package.json +1 -1
- /package/dist/features/network-modifications/voltageLevel/topology/{index.d.ts → creation/index.d.ts} +0 -0
- /package/dist/features/network-modifications/voltageLevel/topology/{index.js → creation/index.js} +0 -0
- /package/dist/features/network-modifications/voltageLevel/topology/{voltageLevelTopologyCreation.types.js → creation/voltageLevelTopologyCreation.types.js} +0 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Chip } from "@mui/material";
|
|
3
|
+
const envColors = {
|
|
4
|
+
REC: "#304FFE",
|
|
5
|
+
DEV: "#DD2C00",
|
|
6
|
+
PRE: "#AA00FF",
|
|
7
|
+
PRO: "#DD2C00",
|
|
8
|
+
DCH: "#2E7D32"
|
|
9
|
+
};
|
|
10
|
+
const variantStyles = {
|
|
11
|
+
minimized: {
|
|
12
|
+
transform: "translate(40%, -10%)",
|
|
13
|
+
height: "12px"
|
|
14
|
+
},
|
|
15
|
+
expanded: {
|
|
16
|
+
transform: "translate(120%, -10%)",
|
|
17
|
+
height: "15px"
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
function isEnvironment(value) {
|
|
21
|
+
return value in envColors;
|
|
22
|
+
}
|
|
23
|
+
function EnvironmentChip({ environment, variant }) {
|
|
24
|
+
if (!isEnvironment(environment)) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return /* @__PURE__ */ jsx(
|
|
28
|
+
Chip,
|
|
29
|
+
{
|
|
30
|
+
label: environment,
|
|
31
|
+
size: "small",
|
|
32
|
+
sx: {
|
|
33
|
+
position: "absolute",
|
|
34
|
+
top: 0,
|
|
35
|
+
right: 5,
|
|
36
|
+
fontSize: "0.5rem",
|
|
37
|
+
backgroundColor: envColors[environment],
|
|
38
|
+
color: "#ffffff",
|
|
39
|
+
"& .MuiChip-label": {
|
|
40
|
+
padding: "0 4px"
|
|
41
|
+
},
|
|
42
|
+
...variantStyles[variant]
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
EnvironmentChip
|
|
49
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -187,6 +187,7 @@ import { ParameterLayoutProvider, useParameterLayoutContext } from "./features/p
|
|
|
187
187
|
import { formatComputingTypeLabel, isValidComputingType } from "./features/parameters/common/computing-type.js";
|
|
188
188
|
import { ADVANCED_PARAMETERS, COMMON_PARAMETERS, CONTINGENCIES, CONTINGENCY_LISTS, CONTINGENCY_LISTS_INFOS, PROVIDER, SPECIFIC_PARAMETERS, VERSION_PARAMETER, VOLTAGE_LEVEL } from "./features/parameters/common/constants.js";
|
|
189
189
|
import { LineSeparator } from "./features/parameters/common/line-separator.js";
|
|
190
|
+
import { ParameterField } from "./features/parameters/common/parameter-field.js";
|
|
190
191
|
import { LabelledButton, SwitchWithLabel, TabPanel } from "./features/parameters/common/parameters.js";
|
|
191
192
|
import { CreateParameterDialog } from "./features/parameters/common/parameters-creation-dialog.js";
|
|
192
193
|
import { ProviderParam } from "./features/parameters/common/provider-param.js";
|
|
@@ -303,7 +304,7 @@ import { MAX_CHAR_DESCRIPTION } from "./utils/constants/uiConstants.js";
|
|
|
303
304
|
import { AMPERE, DEGREE, KILO_AMPERE, KILO_METER, KILO_VOLT, MEGA_VAR, MEGA_VOLT_AMPERE, MEGA_WATT, MICRO_SIEMENS, OHM, PERCENTAGE, SIEMENS } from "./utils/constants/unitsConstants.js";
|
|
304
305
|
import { COMMON_APP_NAME, COMMON_CONFIG_PARAMS_NAMES, LAST_SELECTED_DIRECTORY, PARAM_DEVELOPER_MODE, PARAM_LANGUAGE, PARAM_THEME } from "./utils/constants/configConstants.js";
|
|
305
306
|
import { FILTERS, FILTER_ID, FILTER_NAME, ID } from "./utils/constants/filterConstant.js";
|
|
306
|
-
import { ACTIVE_LIMITS_MIN_MAX_INVALID, CREATE_SUBSTATION_IN_VOLTAGE_LEVEL_IDENTICAL_ID, DESCRIPTION_LIMIT_ERROR, DUPLICATED_PROPS_ERROR, MAXIMUM_SECTION_COUNT_MUST_BE_GREATER_OR_EQUAL_TO_ONE, MIN_ACTIVE_POWER_MUST_BE_LESS_OR_EQUAL_TO_MAX_ACTIVE_POWER, MUST_BE_GREATER_OR_EQUAL_TO_ZERO, NAME_ALREADY_USED, NAME_EMPTY, NORMALIZED_PERCENTAGE, NUMERIC_VALUE_OR_EMPTY_FIELD, REACTIVE_LIMITS_MIN_MAX_INVALID, REAL_PERCENTAGE, SECTION_COUNT_MUST_BE_BETWEEN_ZERO_AND_MAXIMUM_SECTION_COUNT, SHORT_CIRCUIT_CURRENT_LIMIT_MUST_BE_GREATER_OR_EQUAL_TO_ZERO, SHUNT_COMPENSATOR_ERROR_Q_AT_NOMINAL_VOLTAGE_LESS_THAN_ZERO, TARGET_DEADBAND_MUST_BE_GREATER_OR_EQUAL_TO_ZERO, VALUE_MUST_BE_NUMERIC_WHEN_PERCENTAGE_ERROR, VALUE_MUST_BE_REF_WHEN_PERCENTAGE_ERROR, WRONG_REF_OR_VALUE_ERROR, YUP_DEFAULT, YUP_NOT_NULL, YUP_NOT_TYPE_DEFAULT, YUP_NOT_TYPE_NUMBER, YUP_POSITIVE, YUP_REQUIRED } from "./utils/constants/translationKeys.js";
|
|
307
|
+
import { ACTIVE_LIMITS_MIN_MAX_INVALID, CREATE_SUBSTATION_IN_VOLTAGE_LEVEL_IDENTICAL_ID, DESCRIPTION_LIMIT_ERROR, DUPLICATED_PROPS_ERROR, MAXIMUM_SECTION_COUNT_MUST_BE_GREATER_OR_EQUAL_TO_ONE, MIN_ACTIVE_POWER_MUST_BE_LESS_OR_EQUAL_TO_MAX_ACTIVE_POWER, MODIFICATIONS_REQUIRED_TAB_ERROR, MUST_BE_GREATER_OR_EQUAL_TO_ZERO, NAME_ALREADY_USED, NAME_EMPTY, NORMALIZED_PERCENTAGE, NUMERIC_VALUE_OR_EMPTY_FIELD, REACTIVE_LIMITS_MIN_MAX_INVALID, REAL_PERCENTAGE, SECTION_COUNT_MUST_BE_BETWEEN_ZERO_AND_MAXIMUM_SECTION_COUNT, SHORT_CIRCUIT_CURRENT_LIMIT_MUST_BE_GREATER_OR_EQUAL_TO_ZERO, SHUNT_COMPENSATOR_ERROR_Q_AT_NOMINAL_VOLTAGE_LESS_THAN_ZERO, TARGET_DEADBAND_MUST_BE_GREATER_OR_EQUAL_TO_ZERO, VALUE_MUST_BE_NUMERIC_WHEN_PERCENTAGE_ERROR, VALUE_MUST_BE_REF_WHEN_PERCENTAGE_ERROR, WRONG_REF_OR_VALUE_ERROR, YUP_DEFAULT, YUP_NOT_NULL, YUP_NOT_TYPE_DEFAULT, YUP_NOT_TYPE_NUMBER, YUP_POSITIVE, YUP_REQUIRED } from "./utils/constants/translationKeys.js";
|
|
307
308
|
import { GRIDSUITE_DEFAULT_PRECISION, convertInputValue, convertOutputValue, isBlankOrEmpty, kiloUnitToUnit, microUnitToUnit, roundToDefaultPrecision, roundToPrecision, toModificationOperation, unitToKiloUnit, unitToMicroUnit } from "./utils/conversionUtils.js";
|
|
308
309
|
import { catchErrorHandler, extractErrorMessageDescriptor, snackWithFallback } from "./utils/error.js";
|
|
309
310
|
import { isDisabledValidationButton } from "./utils/form-utils.js";
|
|
@@ -346,7 +347,7 @@ import { enrichSecurityAnalysisParameters, fetchSecurityAnalysisParameters, fetc
|
|
|
346
347
|
import { enrichSensitivityAnalysisParameters, fetchSensitivityAnalysisParameters, fetchSensitivityAnalysisProviders, getSensiUrl, getSensitivityAnalysisFactorsCount, getSensitivityAnalysisParameters, getStudyUrlWithNodeUuidAndRootNetworkUuid, setSensitivityAnalysisParameters, updateSensitivityAnalysisParameters } from "./services/sensitivity-analysis.js";
|
|
347
348
|
import { PREFIX_STUDY_SERVER_QUERIES, exportFilter, getAvailableComponentLibraries, getStudyNetworkVisualizationsParameters, getStudyShortCircuitParameters, setStudyNetworkVisualizationParameters, updateVoltageInitParameters } from "./services/study.js";
|
|
348
349
|
import { getNetworkVisualizationsParameters } from "./services/study-config.js";
|
|
349
|
-
import { fetchCurrentAnnouncement, fetchUserDetails } from "./services/userAdmin.js";
|
|
350
|
+
import { fetchCurrentAnnouncement, fetchUserDetails, fetchUserQuotaState } from "./services/userAdmin.js";
|
|
350
351
|
import { DEFAULT_TIMEOUT_MS, IGNORE_SIGNAL, backendFetch, backendFetchFile, backendFetchJson, backendFetchText, getRequestParamFromList, handleNotOkResponse, parseError, safeEncodeURIComponent } from "./services/utils.js";
|
|
351
352
|
import { getVoltageInitParameters, getVoltageInitUrl } from "./services/voltage-init.js";
|
|
352
353
|
import { fetchShortCircuitParameters, getShortCircuitSpecificParametersDescription, updateShortCircuitParameters } from "./services/short-circuit-analysis.js";
|
|
@@ -363,8 +364,11 @@ import { SWITCH_TYPE, buildNewBusbarSections, getCreateSwitchesEmptyFormData, ge
|
|
|
363
364
|
import { SwitchKind } from "./features/network-modifications/voltageLevel/creation/voltageLevelCreation.types.js";
|
|
364
365
|
import { VoltageLevelModificationForm } from "./features/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js";
|
|
365
366
|
import { voltageLevelModificationDtoToForm, voltageLevelModificationEmptyFormData, voltageLevelModificationFormSchema, voltageLevelModificationFormToDto, voltageLevelModificationWithMeasurementsDtoToForm, voltageLevelModificationWithMeasurementsFormSchema, voltageLevelModificationWithMeasurementsFormToDto } from "./features/network-modifications/voltageLevel/modification/voltageLevelModification.utils.js";
|
|
366
|
-
import { createVoltageLevelTopologyDtoToForm, createVoltageLevelTopologyEmptyFormData, createVoltageLevelTopologyFormSchema, createVoltageLevelTopologyFormToDto } from "./features/network-modifications/voltageLevel/topology/voltageLevelTopologyCreation.utils.js";
|
|
367
|
-
import { CreateVoltageLevelTopologyForm } from "./features/network-modifications/voltageLevel/topology/CreateVoltageLevelTopologyForm.js";
|
|
367
|
+
import { createVoltageLevelTopologyDtoToForm, createVoltageLevelTopologyEmptyFormData, createVoltageLevelTopologyFormSchema, createVoltageLevelTopologyFormToDto } from "./features/network-modifications/voltageLevel/topology/creation/voltageLevelTopologyCreation.utils.js";
|
|
368
|
+
import { CreateVoltageLevelTopologyForm } from "./features/network-modifications/voltageLevel/topology/creation/CreateVoltageLevelTopologyForm.js";
|
|
369
|
+
import { voltageLevelTopologyModificationDtoToForm, voltageLevelTopologyModificationEmptyFormData, voltageLevelTopologyModificationFormSchema, voltageLevelTopologyModificationFormToDto } from "./features/network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.utils.js";
|
|
370
|
+
import { VoltageLevelTopologyModificationForm } from "./features/network-modifications/voltageLevel/topology/modification/VoltageLevelTopologyModificationForm.js";
|
|
371
|
+
import { CURRENT_CONNECTION_STATUS, PREV_CONNECTION_STATUS, SWITCH_ID, TOPOLOGY_MODIFICATION_TABLE } from "./features/network-modifications/voltageLevel/topology/modification/constants.js";
|
|
368
372
|
import { VoltageLevelSectionCreationForm } from "./features/network-modifications/voltageLevel/section/VoltageLevelSectionCreationForm.js";
|
|
369
373
|
import { POSITION_NEW_SECTION_SIDE, voltageLevelSectionCreationDtoToForm, voltageLevelSectionCreationEmptyFormData, voltageLevelSectionCreationFormSchema, voltageLevelSectionCreationFormToDto } from "./features/network-modifications/voltageLevel/section/voltageLevelSectionCreation.utils.js";
|
|
370
374
|
import { FeederBayPositionCellRenderer } from "./features/network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayPositionCellRender.js";
|
|
@@ -456,6 +460,16 @@ import { getReactiveFormData, getReactiveFormEmptyFormData, getReactiveFormValid
|
|
|
456
460
|
import { computeQ0, getStandbyAutomatonEmptyFormData, getStandbyAutomatonFormData, getStandbyAutomatonFormValidationSchema } from "./features/network-modifications/static-var-compensator/common/standby-automaton-form-utils.js";
|
|
457
461
|
import { StaticVarCompensatorCreationForm } from "./features/network-modifications/static-var-compensator/creation/static-var-compensator-creation-form.js";
|
|
458
462
|
import { staticVarCompensatorCreationEmptyFormData, staticVarCompensatorCreationFormSchema, staticVarCompensatorCreationFormToDto, staticVarCompensatorDtoToForm } from "./features/network-modifications/static-var-compensator/creation/static-var-compensator-creation-utils.js";
|
|
463
|
+
import { DefineTabularPropertiesDialog } from "./features/network-modifications/tabular/properties/DefineTabularPropertiesDialog.js";
|
|
464
|
+
import { TabularPropertiesForm } from "./features/network-modifications/tabular/properties/TabularPropertiesForm.js";
|
|
465
|
+
import { TabularPropertyForm } from "./features/network-modifications/tabular/properties/TabularPropertyForm.js";
|
|
466
|
+
import { buildPredefinedTabularProperties, emptyTabularProperties, initializedTabularProperty, tabularPropertiesSchema } from "./features/network-modifications/tabular/properties/tabularProperty.utils.js";
|
|
467
|
+
import { LOAD_TYPES_FOR_LOAD_TABULAR_CREATION_MODIFICATION, PROPERTY_CSV_COLUMN_PREFIX, REGULATING_TERMINAL_TYPES, TABULAR_BOOLEAN, TABULAR_ENUM, TABULAR_NUMBER, TabularFieldConstants } from "./features/network-modifications/tabular/tabular.constants.js";
|
|
468
|
+
import { TabularModificationType } from "./features/network-modifications/tabular/tabular.types.js";
|
|
469
|
+
import { addPropertiesFromBack, convertReactiveCapabilityCurvePointsFromBackToFront, convertReactiveCapabilityCurvePointsFromFrontToBack, formatModification, generateCommentLines, getEmptyTabularFormData, getSelectedTabularPropertyNames, isFieldTypeOk, sanitizeRowValue, setFieldTypeError, tabularFormSchema, transformProperties } from "./features/network-modifications/tabular/tabular.utils.js";
|
|
470
|
+
import { TABULAR_CREATION_FIELDS, TABULAR_CREATION_TYPES, convertCreationFieldFromBackToFront, convertCreationFieldFromFrontToBack, convertCreations, getEquipmentTypeFromCreationType, tabularCreationDtoToForm, tabularCreationFormToDto, transformCreationsTable, transformRowToBackEndCreation } from "./features/network-modifications/tabular/tabularCreation.utils.js";
|
|
471
|
+
import { MODIFICATION_TRANSFORMATION_STRATEGIES, TABULAR_MODIFICATION_FIELDS, TABULAR_MODIFICATION_TYPES, TWT_TAP_CHANGER_FIELDS, convertGeneratorOrBatteryModificationFromBackToFront, convertGeneratorOrBatteryModificationFromFrontToBack, convertInputValues, convertOutputValues, convertTWTTapChangerModificationFromFrontToBack, getEquipmentTypeFromModificationType, getTabularFieldType, tabularModificationDtoToForm, tabularModificationFormToDto, transformModificationsTable, transformRowToBackEndModification } from "./features/network-modifications/tabular/tabularModification.utils.js";
|
|
472
|
+
import { TabularForm } from "./features/network-modifications/tabular/TabularForm.js";
|
|
459
473
|
import { BuildStatusChip } from "./features/node/build-status-chip.js";
|
|
460
474
|
import { BuildStatus } from "./features/node/constant.js";
|
|
461
475
|
import { COLUMNS_WITHOUT_BORDER, DEPTH_CELL_WIDTH, DROP_FORBIDDEN_INDICATOR_BOTTOM, DROP_FORBIDDEN_INDICATOR_TOP, DROP_INDICATOR_BOTTOM, DROP_INDICATOR_TOP, MODIFICATION_ROW_HEIGHT, createCellBorderColor, createCellContentWrapperSx, createCellStyle, createEditDescriptionStyle, createHeaderCellStyle, createModificationNameCellStyle, createNameCellLabelBoxSx, createNameCellRootStyle, createRootNetworkChipCellSx, createRowSx, networkModificationTableStyles } from "./features/network-modification-table/network-modification-table-styles.js";
|
|
@@ -673,6 +687,7 @@ export {
|
|
|
673
687
|
CONVERTERS_MODE_OPTIONS,
|
|
674
688
|
COUNTRIES_TO_BALANCE,
|
|
675
689
|
CREATE_SUBSTATION_IN_VOLTAGE_LEVEL_IDENTICAL_ID,
|
|
690
|
+
CURRENT_CONNECTION_STATUS,
|
|
676
691
|
CUSTOM_AGGRID_THEME,
|
|
677
692
|
CUSTOM_REAL_TIME_STATE_ESTIMATION,
|
|
678
693
|
CalculationType,
|
|
@@ -756,6 +771,7 @@ export {
|
|
|
756
771
|
DUPLICATED_PROPS_ERROR,
|
|
757
772
|
DataType,
|
|
758
773
|
DefaultCellRenderer,
|
|
774
|
+
DefineTabularPropertiesDialog,
|
|
759
775
|
DepthBox,
|
|
760
776
|
DescriptionCell,
|
|
761
777
|
DescriptionCellRenderer,
|
|
@@ -907,6 +923,7 @@ export {
|
|
|
907
923
|
LOAD_MODELS_RULE,
|
|
908
924
|
LOAD_TAB_FIELDS,
|
|
909
925
|
LOAD_TYPES,
|
|
926
|
+
LOAD_TYPES_FOR_LOAD_TABULAR_CREATION_MODIFICATION,
|
|
910
927
|
LOAD_TYPE_OPTIONS,
|
|
911
928
|
LOGOUT_ERROR,
|
|
912
929
|
LOW_VOLTAGE_ABSOLUTE_THRESHOLD,
|
|
@@ -970,7 +987,9 @@ export {
|
|
|
970
987
|
MICRO_SIEMENS,
|
|
971
988
|
MIN_ACTIVE_POWER_MUST_BE_LESS_OR_EQUAL_TO_MAX_ACTIVE_POWER,
|
|
972
989
|
MIN_VALUE_ALLOWED_FOR_LIMIT_REDUCTION,
|
|
990
|
+
MODIFICATIONS_REQUIRED_TAB_ERROR,
|
|
973
991
|
MODIFICATION_ROW_HEIGHT,
|
|
992
|
+
MODIFICATION_TRANSFORMATION_STRATEGIES,
|
|
974
993
|
MODIFICATION_TYPES,
|
|
975
994
|
MONITORED_BRANCHES_EQUIPMENT_TYPES,
|
|
976
995
|
MONITORED_VOLTAGE_LEVELS_EQUIPMENT_TYPES,
|
|
@@ -1063,9 +1082,12 @@ export {
|
|
|
1063
1082
|
PREFIX_MONITOR_NOTIFICATION_WS,
|
|
1064
1083
|
PREFIX_STUDY_NOTIFICATION_WS,
|
|
1065
1084
|
PREFIX_STUDY_SERVER_QUERIES,
|
|
1085
|
+
PREV_CONNECTION_STATUS,
|
|
1066
1086
|
PRIORITY,
|
|
1087
|
+
PROPERTY_CSV_COLUMN_PREFIX,
|
|
1067
1088
|
PROVIDER,
|
|
1068
1089
|
PSTS_EQUIPMENT_TYPES,
|
|
1090
|
+
ParameterField,
|
|
1069
1091
|
ParameterFloat,
|
|
1070
1092
|
ParameterGroup,
|
|
1071
1093
|
ParameterLayout,
|
|
@@ -1105,6 +1127,7 @@ export {
|
|
|
1105
1127
|
RECENT_FILTER,
|
|
1106
1128
|
REFERENCE_FIELD_OR_VALUE_1,
|
|
1107
1129
|
REFERENCE_FIELD_OR_VALUE_2,
|
|
1130
|
+
REGULATING_TERMINAL_TYPES,
|
|
1108
1131
|
REGULATION_SIDES,
|
|
1109
1132
|
REGULATION_TYPES,
|
|
1110
1133
|
REGULATION_TYPE_OPTIONS,
|
|
@@ -1182,6 +1205,7 @@ export {
|
|
|
1182
1205
|
SUBSTATION_LAYOUT,
|
|
1183
1206
|
SVAR_REGULATION_MODE_OPTIONS,
|
|
1184
1207
|
SVC,
|
|
1208
|
+
SWITCH_ID,
|
|
1185
1209
|
SWITCH_TYPE,
|
|
1186
1210
|
SecurityAnalysisParametersDialog,
|
|
1187
1211
|
SecurityAnalysisParametersInline,
|
|
@@ -1238,17 +1262,31 @@ export {
|
|
|
1238
1262
|
SwitchKind,
|
|
1239
1263
|
SwitchWithLabel,
|
|
1240
1264
|
SwitchesBetweenSections,
|
|
1265
|
+
TABULAR_BOOLEAN,
|
|
1266
|
+
TABULAR_CREATION_FIELDS,
|
|
1267
|
+
TABULAR_CREATION_TYPES,
|
|
1268
|
+
TABULAR_ENUM,
|
|
1269
|
+
TABULAR_MODIFICATION_FIELDS,
|
|
1270
|
+
TABULAR_MODIFICATION_TYPES,
|
|
1271
|
+
TABULAR_NUMBER,
|
|
1241
1272
|
TARGET_DEADBAND_MUST_BE_GREATER_OR_EQUAL_TO_ZERO,
|
|
1242
1273
|
TEMPORARY_LIMIT_MODIFICATION_TYPE,
|
|
1274
|
+
TOPOLOGY_MODIFICATION_TABLE,
|
|
1243
1275
|
TRANSFORMERS_SELECTION_TYPE,
|
|
1244
1276
|
TWT_SPLIT_SHUNT_ADMITTANCE,
|
|
1245
1277
|
TWT_TAB_FIELDS,
|
|
1278
|
+
TWT_TAP_CHANGER_FIELDS,
|
|
1246
1279
|
TYPE_TAG_MAX_SIZE,
|
|
1247
1280
|
TabPanel,
|
|
1248
1281
|
TabValues,
|
|
1249
1282
|
TableNumericalInput,
|
|
1250
1283
|
TableTextInput,
|
|
1251
1284
|
TableType,
|
|
1285
|
+
TabularFieldConstants,
|
|
1286
|
+
TabularForm,
|
|
1287
|
+
TabularModificationType,
|
|
1288
|
+
TabularPropertiesForm,
|
|
1289
|
+
TabularPropertyForm,
|
|
1252
1290
|
TagRenderer,
|
|
1253
1291
|
TapChangerSteps,
|
|
1254
1292
|
TemporaryLimitsTable,
|
|
@@ -1306,6 +1344,7 @@ export {
|
|
|
1306
1344
|
VoltageLevelCreationForm,
|
|
1307
1345
|
VoltageLevelModificationForm,
|
|
1308
1346
|
VoltageLevelSectionCreationForm,
|
|
1347
|
+
VoltageLevelTopologyModificationForm,
|
|
1309
1348
|
VoltageRegulationForm,
|
|
1310
1349
|
VoltageUnitIcon,
|
|
1311
1350
|
WRITE_SLACK_BUS,
|
|
@@ -1320,6 +1359,7 @@ export {
|
|
|
1320
1359
|
addModificationTypeToOpLimitsGroups,
|
|
1321
1360
|
addModificationTypeToTemporaryLimits,
|
|
1322
1361
|
addOperationTypeToSelectedOpLG,
|
|
1362
|
+
addPropertiesFromBack,
|
|
1323
1363
|
addSelectedFieldToRows,
|
|
1324
1364
|
addSelectedGlobalFiltersToTableState,
|
|
1325
1365
|
addToleranceToFilter,
|
|
@@ -1341,6 +1381,7 @@ export {
|
|
|
1341
1381
|
batteryModificationFormSchema,
|
|
1342
1382
|
batteryModificationFormToDto,
|
|
1343
1383
|
buildNewBusbarSections,
|
|
1384
|
+
buildPredefinedTabularProperties,
|
|
1344
1385
|
buildValidGlobalFilters,
|
|
1345
1386
|
businessErrorsEn,
|
|
1346
1387
|
businessErrorsFr,
|
|
@@ -1364,10 +1405,20 @@ export {
|
|
|
1364
1405
|
computeTagMinSize,
|
|
1365
1406
|
computeTolerance,
|
|
1366
1407
|
containsReferenceModification,
|
|
1408
|
+
convertCreationFieldFromBackToFront,
|
|
1409
|
+
convertCreationFieldFromFrontToBack,
|
|
1410
|
+
convertCreations,
|
|
1367
1411
|
convertFilterValues,
|
|
1412
|
+
convertGeneratorOrBatteryModificationFromBackToFront,
|
|
1413
|
+
convertGeneratorOrBatteryModificationFromFrontToBack,
|
|
1368
1414
|
convertInputValue,
|
|
1415
|
+
convertInputValues,
|
|
1369
1416
|
convertLimitsToOperationalLimitsGroupFormSchema,
|
|
1370
1417
|
convertOutputValue,
|
|
1418
|
+
convertOutputValues,
|
|
1419
|
+
convertReactiveCapabilityCurvePointsFromBackToFront,
|
|
1420
|
+
convertReactiveCapabilityCurvePointsFromFrontToBack,
|
|
1421
|
+
convertTWTTapChangerModificationFromFrontToBack,
|
|
1371
1422
|
convertToLineSegmentInfos,
|
|
1372
1423
|
convertToLineSegmentsFormData,
|
|
1373
1424
|
convertToOperationalLimitsGroupFormSchema,
|
|
@@ -1420,6 +1471,7 @@ export {
|
|
|
1420
1471
|
emptyMoveVoltageLevelFeederBaysFormData,
|
|
1421
1472
|
emptyProcessConfigModificationsFormData,
|
|
1422
1473
|
emptyProperties,
|
|
1474
|
+
emptyTabularProperties,
|
|
1423
1475
|
enrichPccMinParameters,
|
|
1424
1476
|
enrichSecurityAnalysisParameters,
|
|
1425
1477
|
enrichSensitivityAnalysisParameters,
|
|
@@ -1485,6 +1537,7 @@ export {
|
|
|
1485
1537
|
fetchStudyMetadata,
|
|
1486
1538
|
fetchSubModificationsForExpandedRows,
|
|
1487
1539
|
fetchUserDetails,
|
|
1540
|
+
fetchUserQuotaState,
|
|
1488
1541
|
filledTextField,
|
|
1489
1542
|
filterEn,
|
|
1490
1543
|
filterExpertEn,
|
|
@@ -1499,10 +1552,12 @@ export {
|
|
|
1499
1552
|
flattenNmKResultsContingencies,
|
|
1500
1553
|
formatComputingTypeLabel,
|
|
1501
1554
|
formatMapInfosToTemporaryLimitsFormSchema,
|
|
1555
|
+
formatModification,
|
|
1502
1556
|
formatOpLimitGroupsToFormInfos,
|
|
1503
1557
|
formatTemporaryLimitsModificationToFormSchema,
|
|
1504
1558
|
formatToComposedModification,
|
|
1505
1559
|
genHelperError,
|
|
1560
|
+
generateCommentLines,
|
|
1506
1561
|
generateEmptyOperationalLimitsGroup,
|
|
1507
1562
|
generateTreeViewFinderClass,
|
|
1508
1563
|
generateUniqueId,
|
|
@@ -1576,7 +1631,10 @@ export {
|
|
|
1576
1631
|
getCsvDelimiter,
|
|
1577
1632
|
getDefaultRowData,
|
|
1578
1633
|
getDefaultSeverityFilter,
|
|
1634
|
+
getEmptyTabularFormData,
|
|
1579
1635
|
getEnergySourceLabel,
|
|
1636
|
+
getEquipmentTypeFromCreationType,
|
|
1637
|
+
getEquipmentTypeFromModificationType,
|
|
1580
1638
|
getEquipmentTypeShortLabel,
|
|
1581
1639
|
getEquipmentsInfosForSearchBar,
|
|
1582
1640
|
getExpertFilterEmptyFormData,
|
|
@@ -1662,6 +1720,7 @@ export {
|
|
|
1662
1720
|
getRows,
|
|
1663
1721
|
getSecurityAnalysisDefaultLimitReductions,
|
|
1664
1722
|
getSecurityAnalysisParameters,
|
|
1723
|
+
getSelectedTabularPropertyNames,
|
|
1665
1724
|
getSensiUrl,
|
|
1666
1725
|
getSensitivityAnalysisFactorsCount,
|
|
1667
1726
|
getSensitivityAnalysisParameters,
|
|
@@ -1682,6 +1741,7 @@ export {
|
|
|
1682
1741
|
getSystemLanguage,
|
|
1683
1742
|
getTabIndicatorStyle,
|
|
1684
1743
|
getTabStyle,
|
|
1744
|
+
getTabularFieldType,
|
|
1685
1745
|
getTapChangerEquipmentSectionTypeValue,
|
|
1686
1746
|
getTapSideForEdit,
|
|
1687
1747
|
getTapSideLabel,
|
|
@@ -1710,6 +1770,7 @@ export {
|
|
|
1710
1770
|
initializeAuthenticationProd,
|
|
1711
1771
|
initializeDirectory,
|
|
1712
1772
|
initializedProperty,
|
|
1773
|
+
initializedTabularProperty,
|
|
1713
1774
|
intlInitialVoltageProfileMode,
|
|
1714
1775
|
intlPredefinedParametersOptions,
|
|
1715
1776
|
isBlankOrEmpty,
|
|
@@ -1721,6 +1782,7 @@ export {
|
|
|
1721
1782
|
isEmpty,
|
|
1722
1783
|
isExploreMetadata,
|
|
1723
1784
|
isFieldRequired,
|
|
1785
|
+
isFieldTypeOk,
|
|
1724
1786
|
isFloatNumber,
|
|
1725
1787
|
isInjection,
|
|
1726
1788
|
isIntegerNumber,
|
|
@@ -1818,12 +1880,14 @@ export {
|
|
|
1818
1880
|
sanitizeLimitNames,
|
|
1819
1881
|
sanitizeLimitsGroups,
|
|
1820
1882
|
sanitizePercentageValue,
|
|
1883
|
+
sanitizeRowValue,
|
|
1821
1884
|
sanitizeString,
|
|
1822
1885
|
saveExpertFilter,
|
|
1823
1886
|
saveExplicitNamingFilter,
|
|
1824
1887
|
saveFilter,
|
|
1825
1888
|
setCommonStore,
|
|
1826
1889
|
setCurrentReactiveCapabilityCurveTable,
|
|
1890
|
+
setFieldTypeError,
|
|
1827
1891
|
setLoadFlowParameters,
|
|
1828
1892
|
setLoggedUser,
|
|
1829
1893
|
setLogoutError,
|
|
@@ -1868,6 +1932,12 @@ export {
|
|
|
1868
1932
|
syncGlobalFilters,
|
|
1869
1933
|
tableEn,
|
|
1870
1934
|
tableFr,
|
|
1935
|
+
tabularCreationDtoToForm,
|
|
1936
|
+
tabularCreationFormToDto,
|
|
1937
|
+
tabularFormSchema,
|
|
1938
|
+
tabularModificationDtoToForm,
|
|
1939
|
+
tabularModificationFormToDto,
|
|
1940
|
+
tabularPropertiesSchema,
|
|
1871
1941
|
testQuery,
|
|
1872
1942
|
testValueWithinPowerInterval,
|
|
1873
1943
|
textFilterParams,
|
|
@@ -1884,7 +1954,12 @@ export {
|
|
|
1884
1954
|
toTapChangerStepList,
|
|
1885
1955
|
topBarEn,
|
|
1886
1956
|
topBarFr,
|
|
1957
|
+
transformCreationsTable,
|
|
1887
1958
|
transformIfFrenchNumber,
|
|
1959
|
+
transformModificationsTable,
|
|
1960
|
+
transformProperties,
|
|
1961
|
+
transformRowToBackEndCreation,
|
|
1962
|
+
transformRowToBackEndModification,
|
|
1888
1963
|
translateSwitchKinds,
|
|
1889
1964
|
treeviewFinderEn,
|
|
1890
1965
|
treeviewFinderFr,
|
|
@@ -1968,5 +2043,9 @@ export {
|
|
|
1968
2043
|
voltageLevelSectionCreationDtoToForm,
|
|
1969
2044
|
voltageLevelSectionCreationEmptyFormData,
|
|
1970
2045
|
voltageLevelSectionCreationFormSchema,
|
|
1971
|
-
voltageLevelSectionCreationFormToDto
|
|
2046
|
+
voltageLevelSectionCreationFormToDto,
|
|
2047
|
+
voltageLevelTopologyModificationDtoToForm,
|
|
2048
|
+
voltageLevelTopologyModificationEmptyFormData,
|
|
2049
|
+
voltageLevelTopologyModificationFormSchema,
|
|
2050
|
+
voltageLevelTopologyModificationFormToDto
|
|
1972
2051
|
};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { BaseVoltage, ExploreMetadata, Metadata, StudyMetadata } from '../utils';
|
|
2
2
|
export type UrlString = `${string}://${string}` | `/${string}` | `./${string}`;
|
|
3
3
|
export type Url = UrlString | URL;
|
|
4
|
+
export type Environment = 'DEV' | 'DCH' | 'REC' | 'PRE' | 'PRO';
|
|
4
5
|
export type Env = {
|
|
5
6
|
appsMetadataServerUrl?: Url;
|
|
6
7
|
mapBoxToken?: string;
|
|
7
8
|
confidentialityMessageKey?: string;
|
|
9
|
+
environment?: Environment;
|
|
8
10
|
};
|
|
9
11
|
export declare function fetchEnv(): Promise<Env>;
|
|
10
12
|
export declare function fetchAppsMetadata(): Promise<Metadata[]>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UUID } from 'node:crypto';
|
|
2
2
|
import { ElementAttributes } from '../utils/types/types';
|
|
3
3
|
export declare function fetchRootFolders(types: string[]): Promise<ElementAttributes[]>;
|
|
4
|
-
export declare function fetchDirectoryContent(directoryUuid: UUID, types?: string[]): Promise<ElementAttributes[]>;
|
|
4
|
+
export declare function fetchDirectoryContent(directoryUuid: UUID, types?: string[], recursive?: boolean): Promise<ElementAttributes[]>;
|
|
5
5
|
export declare function fetchDirectoryElementPath(elementUuid: UUID): Promise<ElementAttributes[]>;
|
|
6
6
|
export declare function elementAlreadyExists(directoryUuid: UUID, elementName: string, type: string): Promise<boolean>;
|
|
7
7
|
export declare enum PermissionType {
|
|
@@ -9,9 +9,13 @@ function fetchRootFolders(types) {
|
|
|
9
9
|
headers: { "Content-Type": "application/json" }
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
|
-
function fetchDirectoryContent(directoryUuid, types) {
|
|
12
|
+
function fetchDirectoryContent(directoryUuid, types, recursive) {
|
|
13
13
|
console.info("Fetching Folder content '%s'", directoryUuid);
|
|
14
|
-
const
|
|
14
|
+
const searchParams = getRequestParamFromList("elementTypes", types);
|
|
15
|
+
if (recursive) {
|
|
16
|
+
searchParams.append("recursive", "true");
|
|
17
|
+
}
|
|
18
|
+
const urlSearchParams = searchParams.toString();
|
|
15
19
|
const fetchDirectoryContentUrl = `${PREFIX_EXPLORE_SERVER_QUERIES}/v1/explore/directories/${directoryUuid}/elements${urlSearchParams ? `?${urlSearchParams}` : ""}`;
|
|
16
20
|
return backendFetchJson(fetchDirectoryContentUrl, {
|
|
17
21
|
method: "get",
|
package/dist/services/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { enrichSecurityAnalysisParameters, fetchSecurityAnalysisParameters, fetc
|
|
|
8
8
|
import { enrichSensitivityAnalysisParameters, fetchSensitivityAnalysisParameters, fetchSensitivityAnalysisProviders, getSensiUrl, getSensitivityAnalysisFactorsCount, getSensitivityAnalysisParameters, getStudyUrlWithNodeUuidAndRootNetworkUuid, setSensitivityAnalysisParameters, updateSensitivityAnalysisParameters } from "./sensitivity-analysis.js";
|
|
9
9
|
import { PREFIX_STUDY_SERVER_QUERIES, exportFilter, getAvailableComponentLibraries, getStudyNetworkVisualizationsParameters, getStudyShortCircuitParameters, setStudyNetworkVisualizationParameters, updateVoltageInitParameters } from "./study.js";
|
|
10
10
|
import { getNetworkVisualizationsParameters } from "./study-config.js";
|
|
11
|
-
import { fetchCurrentAnnouncement, fetchUserDetails } from "./userAdmin.js";
|
|
11
|
+
import { fetchCurrentAnnouncement, fetchUserDetails, fetchUserQuotaState } from "./userAdmin.js";
|
|
12
12
|
import { DEFAULT_TIMEOUT_MS, IGNORE_SIGNAL, backendFetch, backendFetchFile, backendFetchJson, backendFetchText, getRequestParamFromList, handleNotOkResponse, parseError, safeEncodeURIComponent } from "./utils.js";
|
|
13
13
|
import { getVoltageInitParameters, getVoltageInitUrl } from "./voltage-init.js";
|
|
14
14
|
import { fetchShortCircuitParameters, getShortCircuitSpecificParametersDescription, updateShortCircuitParameters } from "./short-circuit-analysis.js";
|
|
@@ -65,6 +65,7 @@ export {
|
|
|
65
65
|
fetchShortCircuitParameters,
|
|
66
66
|
fetchStudyMetadata,
|
|
67
67
|
fetchUserDetails,
|
|
68
|
+
fetchUserQuotaState,
|
|
68
69
|
getAppName,
|
|
69
70
|
getAvailableComponentLibraries,
|
|
70
71
|
getLoadFlowDefaultLimitReductions,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { AnnouncementDto, UserDetail } from '../utils
|
|
1
|
+
import { AnnouncementDto, UserDetail, UserQuotaState } from '../utils';
|
|
2
2
|
export declare function fetchUserDetails(user: string): Promise<UserDetail>;
|
|
3
3
|
export declare function fetchCurrentAnnouncement(): Promise<AnnouncementDto | null>;
|
|
4
|
+
export declare function fetchUserQuotaState(user: string): Promise<Record<string, UserQuotaState>>;
|
|
@@ -14,7 +14,15 @@ function fetchCurrentAnnouncement() {
|
|
|
14
14
|
method: "get"
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
|
+
function fetchUserQuotaState(user) {
|
|
18
|
+
console.info("get user quota state");
|
|
19
|
+
return backendFetchJson(`${PREFIX_USER_ADMIN_QUERIES}/users/${user}/quota/state`, {
|
|
20
|
+
method: "get",
|
|
21
|
+
headers: { "Content-Type": "application/json" }
|
|
22
|
+
});
|
|
23
|
+
}
|
|
17
24
|
export {
|
|
18
25
|
fetchCurrentAnnouncement,
|
|
19
|
-
fetchUserDetails
|
|
26
|
+
fetchUserDetails,
|
|
27
|
+
fetchUserQuotaState
|
|
20
28
|
};
|
|
@@ -89,6 +89,7 @@ export declare const businessErrorsEn: {
|
|
|
89
89
|
'modification.container.notFound': string;
|
|
90
90
|
'modification.container.badType': string;
|
|
91
91
|
'modification.container.type.notFound': string;
|
|
92
|
+
'modification.badType': string;
|
|
92
93
|
'modification.notFound': string;
|
|
93
94
|
'modifications.notFound': string;
|
|
94
95
|
'modification.infos.error': string;
|
|
@@ -83,6 +83,7 @@ const businessErrorsEn = {
|
|
|
83
83
|
"modification.container.notFound": "Modification container {containerId} of type {containerType} not found",
|
|
84
84
|
"modification.container.badType": "Modification container type of {containerId} is invalid : actual type {containerType} -> expected type {expectedContainerType}",
|
|
85
85
|
"modification.container.type.notFound": "Modification container type of {modificationId} not found",
|
|
86
|
+
"modification.badType": "Modification type of {modificationId} is invalid : actual type {modificationType} -> expected type {expectedModificationType}",
|
|
86
87
|
"modification.notFound": "Modification {modificationId} not found",
|
|
87
88
|
"modifications.notFound": "Some of these modifications {ids} were not found",
|
|
88
89
|
"modification.infos.error": "Modification infos error : {errorMessage}",
|
|
@@ -432,4 +432,89 @@ export declare const networkModificationsEn: {
|
|
|
432
432
|
builtNodeTooltipVlTopoModif: string;
|
|
433
433
|
notBuiltNodeTooltipVlTopoModif: string;
|
|
434
434
|
Undefined: string;
|
|
435
|
+
TabularCreation: string;
|
|
436
|
+
TabularModification: string;
|
|
437
|
+
TabularCreationError: string;
|
|
438
|
+
TabularModificationError: string;
|
|
439
|
+
DefinePropertiesButton: string;
|
|
440
|
+
DefinePropertiesTitle: string;
|
|
441
|
+
ModificationsRequiredTabError: string;
|
|
442
|
+
FieldRequired: string;
|
|
443
|
+
DependantFieldMissing: string;
|
|
444
|
+
WrongFieldType: string;
|
|
445
|
+
WrongEnumValue: string;
|
|
446
|
+
WrongBooleanValueWarning: string;
|
|
447
|
+
'fieldType.boolean': string;
|
|
448
|
+
'fieldType.number': string;
|
|
449
|
+
TabularCreationShuntWarning: string;
|
|
450
|
+
TabularModificationShuntWarning: string;
|
|
451
|
+
equipmentId: string;
|
|
452
|
+
equipmentName: string;
|
|
453
|
+
voltageLevelId: string;
|
|
454
|
+
busOrBusbarSectionId: string;
|
|
455
|
+
terminalConnected: string;
|
|
456
|
+
connectionName: string;
|
|
457
|
+
connectionName1: string;
|
|
458
|
+
connectionDirection1: string;
|
|
459
|
+
connectionPosition1: string;
|
|
460
|
+
connectionName2: string;
|
|
461
|
+
connectionDirection2: string;
|
|
462
|
+
connectionPosition2: string;
|
|
463
|
+
minQ: string;
|
|
464
|
+
maxQ: string;
|
|
465
|
+
reactiveCapabilityCurve: string;
|
|
466
|
+
reactiveCapabilityCurvePmin: string;
|
|
467
|
+
reactiveCapabilityCurveQminPmin: string;
|
|
468
|
+
reactiveCapabilityCurveQmaxPmin: string;
|
|
469
|
+
reactiveCapabilityCurveP0: string;
|
|
470
|
+
reactiveCapabilityCurveQminP0: string;
|
|
471
|
+
reactiveCapabilityCurveQmaxP0: string;
|
|
472
|
+
reactiveCapabilityCurvePmax: string;
|
|
473
|
+
reactiveCapabilityCurveQminPmax: string;
|
|
474
|
+
reactiveCapabilityCurveQmaxPmax: string;
|
|
475
|
+
regulatingTerminalId: string;
|
|
476
|
+
regulatingTerminalType: string;
|
|
477
|
+
regulatingTerminalVlId: string;
|
|
478
|
+
qPercent: string;
|
|
479
|
+
participate: string;
|
|
480
|
+
droop: string;
|
|
481
|
+
directTransX: string;
|
|
482
|
+
stepUpTransformerX: string;
|
|
483
|
+
plannedActivePowerSetPoint: string;
|
|
484
|
+
nominalV: string;
|
|
485
|
+
ipMin: string;
|
|
486
|
+
ipMax: string;
|
|
487
|
+
r: string;
|
|
488
|
+
x: string;
|
|
489
|
+
g: string;
|
|
490
|
+
b: string;
|
|
491
|
+
g1: string;
|
|
492
|
+
g2: string;
|
|
493
|
+
b1: string;
|
|
494
|
+
b2: string;
|
|
495
|
+
ratedU1: string;
|
|
496
|
+
ratedU2: string;
|
|
497
|
+
ratioTapChangerLoadTapChangingCapabilities: string;
|
|
498
|
+
ratioTapChangerRegulationSide: string;
|
|
499
|
+
'TabularCreationSkeletonComment.GENERATOR': string;
|
|
500
|
+
'TabularCreationSkeletonComment.BATTERY': string;
|
|
501
|
+
'TabularCreationSkeletonComment.LOAD': string;
|
|
502
|
+
'TabularCreationSkeletonComment.SHUNT_COMPENSATOR': string;
|
|
503
|
+
'TabularModificationSkeletonComment.SUBSTATION': string;
|
|
504
|
+
'TabularModificationSkeletonComment.LINE': string;
|
|
505
|
+
'TabularModificationSkeletonComment.TWO_WINDINGS_TRANSFORMER': string;
|
|
506
|
+
'TabularModificationSkeletonComment.GENERATOR': string;
|
|
507
|
+
'TabularModificationSkeletonComment.BATTERY': string;
|
|
508
|
+
'TabularModificationSkeletonComment.LOAD': string;
|
|
509
|
+
'TabularModificationSkeletonComment.SHUNT_COMPENSATOR': string;
|
|
510
|
+
ModifyVoltageLevelTopology: string;
|
|
511
|
+
VoltageLevelTopologyModificationError: string;
|
|
512
|
+
switchId: string;
|
|
513
|
+
Open: string;
|
|
514
|
+
Closed: string;
|
|
515
|
+
previousStatus: string;
|
|
516
|
+
currentStatus: string;
|
|
517
|
+
copyPreviousTopologyStatus: string;
|
|
518
|
+
modifiedSwitchesSeparatorTitle: string;
|
|
519
|
+
unModifiedSwitchesSeparatorTitle: string;
|
|
435
520
|
};
|
|
@@ -429,7 +429,97 @@ const networkModificationsEn = {
|
|
|
429
429
|
MissingConnectionsInVoltageLevel: "Missing connections in voltage level (Connections removed from list on validation)",
|
|
430
430
|
builtNodeTooltipVlTopoModif: "Switches list taking into account all applied modifications",
|
|
431
431
|
notBuiltNodeTooltipVlTopoModif: "Switches list from last built node in current branch",
|
|
432
|
-
Undefined: "Undefined"
|
|
432
|
+
Undefined: "Undefined",
|
|
433
|
+
// Tabular creation / modification - dialog
|
|
434
|
+
TabularCreation: "Tabular creation",
|
|
435
|
+
TabularModification: "Tabular modification",
|
|
436
|
+
TabularCreationError: "Error while creating tabular creation",
|
|
437
|
+
TabularModificationError: "Error while creating tabular modification",
|
|
438
|
+
DefinePropertiesButton: "Define properties",
|
|
439
|
+
DefinePropertiesTitle: "Additional properties",
|
|
440
|
+
// Tabular creation / modification - CSV validation
|
|
441
|
+
ModificationsRequiredTabError: "At least one modification must be imported",
|
|
442
|
+
FieldRequired: 'At least one value is missing for required field : "{requiredFieldNameInError}"',
|
|
443
|
+
DependantFieldMissing: '"{requiredField}" is required if the following field is set : "{dependantField}"',
|
|
444
|
+
WrongFieldType: '"{field}" should be of type {type}',
|
|
445
|
+
WrongEnumValue: 'At least one value is unexpected for field : "{field}", expected values : {expectedValues}',
|
|
446
|
+
WrongBooleanValueWarning: 'At least one invalid value for boolean field : "{field}" was automatically replaced by false.',
|
|
447
|
+
"fieldType.boolean": "boolean (true/false)",
|
|
448
|
+
"fieldType.number": "numerical",
|
|
449
|
+
TabularCreationShuntWarning: "Both maximum reactive power (and/or type) and maximum susceptance have been submitted for the same shunt compensator. Maximum susceptance will thus be ignored.",
|
|
450
|
+
TabularModificationShuntWarning: "Both maximum reactive power (and/or type) and maximum susceptance have been submitted for the same shunt compensator. Maximum susceptance will thus be ignored.",
|
|
451
|
+
// Tabular creation / modification - CSV columns
|
|
452
|
+
equipmentId: "ID",
|
|
453
|
+
equipmentName: "Name",
|
|
454
|
+
voltageLevelId: "Voltage level ID",
|
|
455
|
+
busOrBusbarSectionId: "Bus bar section / bus",
|
|
456
|
+
terminalConnected: "Connected",
|
|
457
|
+
connectionName: "Connection name",
|
|
458
|
+
connectionName1: "Connection name 1",
|
|
459
|
+
connectionDirection1: "Connection direction 1",
|
|
460
|
+
connectionPosition1: "Connection position 1",
|
|
461
|
+
connectionName2: "Connection name 2",
|
|
462
|
+
connectionDirection2: "Connection direction 2",
|
|
463
|
+
connectionPosition2: "Connection position 2",
|
|
464
|
+
minQ: "Q min",
|
|
465
|
+
maxQ: "Q max",
|
|
466
|
+
reactiveCapabilityCurve: "Reactive capability curve",
|
|
467
|
+
reactiveCapabilityCurvePmin: "Pmin",
|
|
468
|
+
reactiveCapabilityCurveQminPmin: "QminPmin",
|
|
469
|
+
reactiveCapabilityCurveQmaxPmin: "QmaxPmin",
|
|
470
|
+
reactiveCapabilityCurveP0: "P0",
|
|
471
|
+
reactiveCapabilityCurveQminP0: "QminP0",
|
|
472
|
+
reactiveCapabilityCurveQmaxP0: "QmaxP0",
|
|
473
|
+
reactiveCapabilityCurvePmax: "Pmax",
|
|
474
|
+
reactiveCapabilityCurveQminPmax: "QminPmax",
|
|
475
|
+
reactiveCapabilityCurveQmaxPmax: "QmaxPmax",
|
|
476
|
+
regulatingTerminalId: "Regulated equipment",
|
|
477
|
+
regulatingTerminalType: "Regulated equipment type",
|
|
478
|
+
regulatingTerminalVlId: "Regulated voltage level",
|
|
479
|
+
qPercent: "Reactive percentage",
|
|
480
|
+
participate: "Active power regulation",
|
|
481
|
+
droop: "Droop",
|
|
482
|
+
directTransX: "Transient reactance (Ω)",
|
|
483
|
+
stepUpTransformerX: "Transformer reactance (Ω)",
|
|
484
|
+
plannedActivePowerSetPoint: "Planning P (MW)",
|
|
485
|
+
nominalV: "Nominal voltage (kV)",
|
|
486
|
+
ipMin: "ISC min (kA)",
|
|
487
|
+
ipMax: "ISC max (kA)",
|
|
488
|
+
r: "Series resistance (Ω)",
|
|
489
|
+
x: "Series reactance (Ω)",
|
|
490
|
+
g: "Magnetizing conductance (μS)",
|
|
491
|
+
b: "Magnetizing susceptance (μS)",
|
|
492
|
+
g1: "Shunt conductance 1 (μS)",
|
|
493
|
+
g2: "Shunt conductance 2 (μS)",
|
|
494
|
+
b1: "Shunt susceptance 1 (μS)",
|
|
495
|
+
b2: "Shunt susceptance 2 (μS)",
|
|
496
|
+
ratedU1: "Rated voltage 1 (kV)",
|
|
497
|
+
ratedU2: "Rated voltage 2 (kV)",
|
|
498
|
+
ratioTapChangerLoadTapChangingCapabilities: "Ratio tap changer on-load",
|
|
499
|
+
ratioTapChangerRegulationSide: "Ratio tap changer regulated side",
|
|
500
|
+
// Tabular creation / modification - CSV template comments
|
|
501
|
+
"TabularCreationSkeletonComment.GENERATOR": "#,,HYDRO | NUCLEAR | WIND | THERMAL | SOLAR | OTHER,,,true | false,,TOP | BOTTOM,,,,,,,true | false,,,,,,,,,,,,true | false,required if voltageRegulationOn is true,,LINE | TWO_WINDINGS_TRANSFORMER | GENERATOR | LOAD | BATTERY | SHUNT_COMPENSATOR | STATIC_VAR_COMPENSATOR | BOUNDARY_LINE | HVDC_CONVERTER_STATION,,,true | false,,,,,,,",
|
|
502
|
+
"TabularCreationSkeletonComment.BATTERY": "#,,,,true | false,,TOP | BOTTOM,,,,,,true | false,,,,,,,,,,,,true | false,",
|
|
503
|
+
"TabularCreationSkeletonComment.LOAD": "#,,AUXILIARY | FICTITIOUS | UNDEFINED,,,true | false,,TOP | BOTTOM,,,",
|
|
504
|
+
"TabularCreationSkeletonComment.SHUNT_COMPENSATOR": "#For each shunt compensator it is possible to modify either the maximum reactive power (and the type) or the maximum susceptance. In case of conflicting input the maximum susceptance will be ignored.,,,,true | false,,TOP | BOTTOM,,,,REACTOR | CAPACITOR | required if maxQAtNominalV is set,,",
|
|
505
|
+
"TabularModificationSkeletonComment.SUBSTATION": "#,,2-letter code from ISO 3166-1 standard (FR ES PT IT CH DE BE LU NL GB ...)",
|
|
506
|
+
"TabularModificationSkeletonComment.LINE": "#,,,,,,,,true | false,,TOP | BOTTOM,,true | false,,TOP | BOTTOM,",
|
|
507
|
+
"TabularModificationSkeletonComment.TWO_WINDINGS_TRANSFORMER": "#,,,,,,,,,true | false,,TOP | BOTTOM,,true | false,,TOP | BOTTOM,,true | false,SIDE1 | SIDE2",
|
|
508
|
+
"TabularModificationSkeletonComment.GENERATOR": "#,,HYDRO | NUCLEAR | WIND | THERMAL | SOLAR | OTHER,true | false,,TOP | BOTTOM,,,,,,,true | false,,,,,,,,,,,,true | false,,,LINE | TWO_WINDINGS_TRANSFORMER | GENERATOR | LOAD | BATTERY | SHUNT_COMPENSATOR | STATIC_VAR_COMPENSATOR | BOUNDARY_LINE | HVDC_CONVERTER_STATION,,,true | false,,,,,,,",
|
|
509
|
+
"TabularModificationSkeletonComment.BATTERY": "#,,true | false,,TOP | BOTTOM,,,,,,true | false,,,,,,,,,,,,true | false,",
|
|
510
|
+
"TabularModificationSkeletonComment.LOAD": "#,,AUXILIARY | FICTITIOUS | UNDEFINED,true | false,,TOP | BOTTOM,,,",
|
|
511
|
+
"TabularModificationSkeletonComment.SHUNT_COMPENSATOR": "#For each shunt compensator it is possible to modify either the maximum reactive power (and the type) or the maximum susceptance. In case of conflicting input the maximum susceptance will be ignored.,,true | false,,TOP | BOTTOM,,,,REACTOR | CAPACITOR,,",
|
|
512
|
+
// Voltage level modification
|
|
513
|
+
ModifyVoltageLevelTopology: "Modify voltage level topology",
|
|
514
|
+
VoltageLevelTopologyModificationError: "Voltage level topology modification error",
|
|
515
|
+
switchId: "Switch ID",
|
|
516
|
+
Open: "Open",
|
|
517
|
+
Closed: "Closed",
|
|
518
|
+
previousStatus: "Previous status",
|
|
519
|
+
currentStatus: "Modified status",
|
|
520
|
+
copyPreviousTopologyStatus: "Fill with previous status",
|
|
521
|
+
modifiedSwitchesSeparatorTitle: "Modification",
|
|
522
|
+
unModifiedSwitchesSeparatorTitle: "No-modification"
|
|
433
523
|
};
|
|
434
524
|
export {
|
|
435
525
|
networkModificationsEn
|