@gridsuite/commons-ui 0.279.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/composite/customAGGrid/separatorCellRenderer.d.ts +7 -2
- package/dist/components/composite/customAGGrid/separatorCellRenderer.js +2 -2
- 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 +93 -3
- package/dist/features/network-modifications/index.d.ts +1 -0
- package/dist/features/network-modifications/index.js +91 -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/common/HeaderWithTooltip.d.ts +8 -0
- package/dist/features/network-modifications/voltageLevel/common/HeaderWithTooltip.js +119 -0
- package/dist/features/network-modifications/voltageLevel/common/index.d.ts +1 -0
- package/dist/features/network-modifications/voltageLevel/common/index.js +4 -0
- package/dist/features/network-modifications/voltageLevel/index.d.ts +4 -1
- package/dist/features/network-modifications/voltageLevel/index.js +28 -3
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/MoveVoltageLevelFeederBaysForm.d.ts +8 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/MoveVoltageLevelFeederBaysForm.js +387 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayDirectionCellRender.d.ts +6 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayDirectionCellRender.js +64 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayPositionCellRender.d.ts +6 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayPositionCellRender.js +102 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/index.d.ts +2 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/index.js +6 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/index.d.ts +4 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/index.js +13 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/moveVoltageLevelFeederBays.type.d.ts +36 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/moveVoltageLevelFeederBays.utils.d.ts +37 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/moveVoltageLevelFeederBays.utils.js +86 -0
- 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/creation/voltageLevelTopologyCreation.types.js +1 -0
- 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 +97 -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 +97 -0
- package/dist/translations/en/networkModificationsEn.js +103 -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 +97 -0
- package/dist/translations/fr/networkModificationsFr.js +103 -1
- package/dist/utils/constants/fieldConstants.d.ts +7 -1
- package/dist/utils/constants/fieldConstants.js +6 -0
- 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/voltageLevelTopologyCreation.types.js → moveFeederBays/moveVoltageLevelFeederBays.type.js} +0 -0
- /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/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,10 +364,18 @@ 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";
|
|
374
|
+
import { FeederBayPositionCellRenderer } from "./features/network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayPositionCellRender.js";
|
|
375
|
+
import { FeederBayDirectionCellRenderer } from "./features/network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayDirectionCellRender.js";
|
|
376
|
+
import { emptyMoveVoltageLevelFeederBaysFormData, moveVoltageLevelFeederBaysDtoToForm, moveVoltageLevelFeederBaysFormSchema, moveVoltageLevelFeederBaysFormToDto } from "./features/network-modifications/voltageLevel/moveFeederBays/moveVoltageLevelFeederBays.utils.js";
|
|
377
|
+
import { MoveVoltageLevelFeederBaysForm } from "./features/network-modifications/voltageLevel/moveFeederBays/MoveVoltageLevelFeederBaysForm.js";
|
|
378
|
+
import { HeaderWithTooltip } from "./features/network-modifications/voltageLevel/common/HeaderWithTooltip.js";
|
|
370
379
|
import { LOAD_TAB_FIELDS, LoadDialogTab } from "./features/network-modifications/load/common/load.utils.js";
|
|
371
380
|
import { LoadDialogTabs } from "./features/network-modifications/load/common/LoadDialogTabs.js";
|
|
372
381
|
import { LoadDialogTabsContent } from "./features/network-modifications/load/common/LoadDialogTabsContent.js";
|
|
@@ -451,6 +460,16 @@ import { getReactiveFormData, getReactiveFormEmptyFormData, getReactiveFormValid
|
|
|
451
460
|
import { computeQ0, getStandbyAutomatonEmptyFormData, getStandbyAutomatonFormData, getStandbyAutomatonFormValidationSchema } from "./features/network-modifications/static-var-compensator/common/standby-automaton-form-utils.js";
|
|
452
461
|
import { StaticVarCompensatorCreationForm } from "./features/network-modifications/static-var-compensator/creation/static-var-compensator-creation-form.js";
|
|
453
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";
|
|
454
473
|
import { BuildStatusChip } from "./features/node/build-status-chip.js";
|
|
455
474
|
import { BuildStatus } from "./features/node/constant.js";
|
|
456
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";
|
|
@@ -668,6 +687,7 @@ export {
|
|
|
668
687
|
CONVERTERS_MODE_OPTIONS,
|
|
669
688
|
COUNTRIES_TO_BALANCE,
|
|
670
689
|
CREATE_SUBSTATION_IN_VOLTAGE_LEVEL_IDENTICAL_ID,
|
|
690
|
+
CURRENT_CONNECTION_STATUS,
|
|
671
691
|
CUSTOM_AGGRID_THEME,
|
|
672
692
|
CUSTOM_REAL_TIME_STATE_ESTIMATION,
|
|
673
693
|
CalculationType,
|
|
@@ -751,6 +771,7 @@ export {
|
|
|
751
771
|
DUPLICATED_PROPS_ERROR,
|
|
752
772
|
DataType,
|
|
753
773
|
DefaultCellRenderer,
|
|
774
|
+
DefineTabularPropertiesDialog,
|
|
754
775
|
DepthBox,
|
|
755
776
|
DescriptionCell,
|
|
756
777
|
DescriptionCellRenderer,
|
|
@@ -821,6 +842,8 @@ export {
|
|
|
821
842
|
FORMULAS,
|
|
822
843
|
FROM_COLUMN_TO_FIELD,
|
|
823
844
|
FROM_COLUMN_TO_FIELD_ONE_BUS,
|
|
845
|
+
FeederBayDirectionCellRenderer,
|
|
846
|
+
FeederBayPositionCellRenderer,
|
|
824
847
|
FetchStatus,
|
|
825
848
|
FieldConstants,
|
|
826
849
|
FieldErrorAlert,
|
|
@@ -859,6 +882,7 @@ export {
|
|
|
859
882
|
HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD,
|
|
860
883
|
HVDC_AC_EMULATION,
|
|
861
884
|
HVDC_EQUIPMENT_TYPES,
|
|
885
|
+
HeaderWithTooltip,
|
|
862
886
|
HelperPreviousValue,
|
|
863
887
|
Hvdc,
|
|
864
888
|
HvdcLccDeletionSpecificForm,
|
|
@@ -899,6 +923,7 @@ export {
|
|
|
899
923
|
LOAD_MODELS_RULE,
|
|
900
924
|
LOAD_TAB_FIELDS,
|
|
901
925
|
LOAD_TYPES,
|
|
926
|
+
LOAD_TYPES_FOR_LOAD_TABULAR_CREATION_MODIFICATION,
|
|
902
927
|
LOAD_TYPE_OPTIONS,
|
|
903
928
|
LOGOUT_ERROR,
|
|
904
929
|
LOW_VOLTAGE_ABSOLUTE_THRESHOLD,
|
|
@@ -962,7 +987,9 @@ export {
|
|
|
962
987
|
MICRO_SIEMENS,
|
|
963
988
|
MIN_ACTIVE_POWER_MUST_BE_LESS_OR_EQUAL_TO_MAX_ACTIVE_POWER,
|
|
964
989
|
MIN_VALUE_ALLOWED_FOR_LIMIT_REDUCTION,
|
|
990
|
+
MODIFICATIONS_REQUIRED_TAB_ERROR,
|
|
965
991
|
MODIFICATION_ROW_HEIGHT,
|
|
992
|
+
MODIFICATION_TRANSFORMATION_STRATEGIES,
|
|
966
993
|
MODIFICATION_TYPES,
|
|
967
994
|
MONITORED_BRANCHES_EQUIPMENT_TYPES,
|
|
968
995
|
MONITORED_VOLTAGE_LEVELS_EQUIPMENT_TYPES,
|
|
@@ -978,6 +1005,7 @@ export {
|
|
|
978
1005
|
ModificationRow,
|
|
979
1006
|
ModificationType,
|
|
980
1007
|
ModifyElementSelection,
|
|
1008
|
+
MoveVoltageLevelFeederBaysForm,
|
|
981
1009
|
MuiSelectInput,
|
|
982
1010
|
MultipleAutocompleteInput,
|
|
983
1011
|
MultipleSelectionDialog,
|
|
@@ -1054,9 +1082,12 @@ export {
|
|
|
1054
1082
|
PREFIX_MONITOR_NOTIFICATION_WS,
|
|
1055
1083
|
PREFIX_STUDY_NOTIFICATION_WS,
|
|
1056
1084
|
PREFIX_STUDY_SERVER_QUERIES,
|
|
1085
|
+
PREV_CONNECTION_STATUS,
|
|
1057
1086
|
PRIORITY,
|
|
1087
|
+
PROPERTY_CSV_COLUMN_PREFIX,
|
|
1058
1088
|
PROVIDER,
|
|
1059
1089
|
PSTS_EQUIPMENT_TYPES,
|
|
1090
|
+
ParameterField,
|
|
1060
1091
|
ParameterFloat,
|
|
1061
1092
|
ParameterGroup,
|
|
1062
1093
|
ParameterLayout,
|
|
@@ -1096,6 +1127,7 @@ export {
|
|
|
1096
1127
|
RECENT_FILTER,
|
|
1097
1128
|
REFERENCE_FIELD_OR_VALUE_1,
|
|
1098
1129
|
REFERENCE_FIELD_OR_VALUE_2,
|
|
1130
|
+
REGULATING_TERMINAL_TYPES,
|
|
1099
1131
|
REGULATION_SIDES,
|
|
1100
1132
|
REGULATION_TYPES,
|
|
1101
1133
|
REGULATION_TYPE_OPTIONS,
|
|
@@ -1173,6 +1205,7 @@ export {
|
|
|
1173
1205
|
SUBSTATION_LAYOUT,
|
|
1174
1206
|
SVAR_REGULATION_MODE_OPTIONS,
|
|
1175
1207
|
SVC,
|
|
1208
|
+
SWITCH_ID,
|
|
1176
1209
|
SWITCH_TYPE,
|
|
1177
1210
|
SecurityAnalysisParametersDialog,
|
|
1178
1211
|
SecurityAnalysisParametersInline,
|
|
@@ -1229,17 +1262,31 @@ export {
|
|
|
1229
1262
|
SwitchKind,
|
|
1230
1263
|
SwitchWithLabel,
|
|
1231
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,
|
|
1232
1272
|
TARGET_DEADBAND_MUST_BE_GREATER_OR_EQUAL_TO_ZERO,
|
|
1233
1273
|
TEMPORARY_LIMIT_MODIFICATION_TYPE,
|
|
1274
|
+
TOPOLOGY_MODIFICATION_TABLE,
|
|
1234
1275
|
TRANSFORMERS_SELECTION_TYPE,
|
|
1235
1276
|
TWT_SPLIT_SHUNT_ADMITTANCE,
|
|
1236
1277
|
TWT_TAB_FIELDS,
|
|
1278
|
+
TWT_TAP_CHANGER_FIELDS,
|
|
1237
1279
|
TYPE_TAG_MAX_SIZE,
|
|
1238
1280
|
TabPanel,
|
|
1239
1281
|
TabValues,
|
|
1240
1282
|
TableNumericalInput,
|
|
1241
1283
|
TableTextInput,
|
|
1242
1284
|
TableType,
|
|
1285
|
+
TabularFieldConstants,
|
|
1286
|
+
TabularForm,
|
|
1287
|
+
TabularModificationType,
|
|
1288
|
+
TabularPropertiesForm,
|
|
1289
|
+
TabularPropertyForm,
|
|
1243
1290
|
TagRenderer,
|
|
1244
1291
|
TapChangerSteps,
|
|
1245
1292
|
TemporaryLimitsTable,
|
|
@@ -1297,6 +1344,7 @@ export {
|
|
|
1297
1344
|
VoltageLevelCreationForm,
|
|
1298
1345
|
VoltageLevelModificationForm,
|
|
1299
1346
|
VoltageLevelSectionCreationForm,
|
|
1347
|
+
VoltageLevelTopologyModificationForm,
|
|
1300
1348
|
VoltageRegulationForm,
|
|
1301
1349
|
VoltageUnitIcon,
|
|
1302
1350
|
WRITE_SLACK_BUS,
|
|
@@ -1311,6 +1359,7 @@ export {
|
|
|
1311
1359
|
addModificationTypeToOpLimitsGroups,
|
|
1312
1360
|
addModificationTypeToTemporaryLimits,
|
|
1313
1361
|
addOperationTypeToSelectedOpLG,
|
|
1362
|
+
addPropertiesFromBack,
|
|
1314
1363
|
addSelectedFieldToRows,
|
|
1315
1364
|
addSelectedGlobalFiltersToTableState,
|
|
1316
1365
|
addToleranceToFilter,
|
|
@@ -1332,6 +1381,7 @@ export {
|
|
|
1332
1381
|
batteryModificationFormSchema,
|
|
1333
1382
|
batteryModificationFormToDto,
|
|
1334
1383
|
buildNewBusbarSections,
|
|
1384
|
+
buildPredefinedTabularProperties,
|
|
1335
1385
|
buildValidGlobalFilters,
|
|
1336
1386
|
businessErrorsEn,
|
|
1337
1387
|
businessErrorsFr,
|
|
@@ -1355,10 +1405,20 @@ export {
|
|
|
1355
1405
|
computeTagMinSize,
|
|
1356
1406
|
computeTolerance,
|
|
1357
1407
|
containsReferenceModification,
|
|
1408
|
+
convertCreationFieldFromBackToFront,
|
|
1409
|
+
convertCreationFieldFromFrontToBack,
|
|
1410
|
+
convertCreations,
|
|
1358
1411
|
convertFilterValues,
|
|
1412
|
+
convertGeneratorOrBatteryModificationFromBackToFront,
|
|
1413
|
+
convertGeneratorOrBatteryModificationFromFrontToBack,
|
|
1359
1414
|
convertInputValue,
|
|
1415
|
+
convertInputValues,
|
|
1360
1416
|
convertLimitsToOperationalLimitsGroupFormSchema,
|
|
1361
1417
|
convertOutputValue,
|
|
1418
|
+
convertOutputValues,
|
|
1419
|
+
convertReactiveCapabilityCurvePointsFromBackToFront,
|
|
1420
|
+
convertReactiveCapabilityCurvePointsFromFrontToBack,
|
|
1421
|
+
convertTWTTapChangerModificationFromFrontToBack,
|
|
1362
1422
|
convertToLineSegmentInfos,
|
|
1363
1423
|
convertToLineSegmentsFormData,
|
|
1364
1424
|
convertToOperationalLimitsGroupFormSchema,
|
|
@@ -1408,8 +1468,10 @@ export {
|
|
|
1408
1468
|
emptyLineSegment,
|
|
1409
1469
|
emptyModificationByAssignmentFormData,
|
|
1410
1470
|
emptyModificationFormData,
|
|
1471
|
+
emptyMoveVoltageLevelFeederBaysFormData,
|
|
1411
1472
|
emptyProcessConfigModificationsFormData,
|
|
1412
1473
|
emptyProperties,
|
|
1474
|
+
emptyTabularProperties,
|
|
1413
1475
|
enrichPccMinParameters,
|
|
1414
1476
|
enrichSecurityAnalysisParameters,
|
|
1415
1477
|
enrichSensitivityAnalysisParameters,
|
|
@@ -1475,6 +1537,7 @@ export {
|
|
|
1475
1537
|
fetchStudyMetadata,
|
|
1476
1538
|
fetchSubModificationsForExpandedRows,
|
|
1477
1539
|
fetchUserDetails,
|
|
1540
|
+
fetchUserQuotaState,
|
|
1478
1541
|
filledTextField,
|
|
1479
1542
|
filterEn,
|
|
1480
1543
|
filterExpertEn,
|
|
@@ -1489,10 +1552,12 @@ export {
|
|
|
1489
1552
|
flattenNmKResultsContingencies,
|
|
1490
1553
|
formatComputingTypeLabel,
|
|
1491
1554
|
formatMapInfosToTemporaryLimitsFormSchema,
|
|
1555
|
+
formatModification,
|
|
1492
1556
|
formatOpLimitGroupsToFormInfos,
|
|
1493
1557
|
formatTemporaryLimitsModificationToFormSchema,
|
|
1494
1558
|
formatToComposedModification,
|
|
1495
1559
|
genHelperError,
|
|
1560
|
+
generateCommentLines,
|
|
1496
1561
|
generateEmptyOperationalLimitsGroup,
|
|
1497
1562
|
generateTreeViewFinderClass,
|
|
1498
1563
|
generateUniqueId,
|
|
@@ -1566,7 +1631,10 @@ export {
|
|
|
1566
1631
|
getCsvDelimiter,
|
|
1567
1632
|
getDefaultRowData,
|
|
1568
1633
|
getDefaultSeverityFilter,
|
|
1634
|
+
getEmptyTabularFormData,
|
|
1569
1635
|
getEnergySourceLabel,
|
|
1636
|
+
getEquipmentTypeFromCreationType,
|
|
1637
|
+
getEquipmentTypeFromModificationType,
|
|
1570
1638
|
getEquipmentTypeShortLabel,
|
|
1571
1639
|
getEquipmentsInfosForSearchBar,
|
|
1572
1640
|
getExpertFilterEmptyFormData,
|
|
@@ -1652,6 +1720,7 @@ export {
|
|
|
1652
1720
|
getRows,
|
|
1653
1721
|
getSecurityAnalysisDefaultLimitReductions,
|
|
1654
1722
|
getSecurityAnalysisParameters,
|
|
1723
|
+
getSelectedTabularPropertyNames,
|
|
1655
1724
|
getSensiUrl,
|
|
1656
1725
|
getSensitivityAnalysisFactorsCount,
|
|
1657
1726
|
getSensitivityAnalysisParameters,
|
|
@@ -1672,6 +1741,7 @@ export {
|
|
|
1672
1741
|
getSystemLanguage,
|
|
1673
1742
|
getTabIndicatorStyle,
|
|
1674
1743
|
getTabStyle,
|
|
1744
|
+
getTabularFieldType,
|
|
1675
1745
|
getTapChangerEquipmentSectionTypeValue,
|
|
1676
1746
|
getTapSideForEdit,
|
|
1677
1747
|
getTapSideLabel,
|
|
@@ -1700,6 +1770,7 @@ export {
|
|
|
1700
1770
|
initializeAuthenticationProd,
|
|
1701
1771
|
initializeDirectory,
|
|
1702
1772
|
initializedProperty,
|
|
1773
|
+
initializedTabularProperty,
|
|
1703
1774
|
intlInitialVoltageProfileMode,
|
|
1704
1775
|
intlPredefinedParametersOptions,
|
|
1705
1776
|
isBlankOrEmpty,
|
|
@@ -1711,6 +1782,7 @@ export {
|
|
|
1711
1782
|
isEmpty,
|
|
1712
1783
|
isExploreMetadata,
|
|
1713
1784
|
isFieldRequired,
|
|
1785
|
+
isFieldTypeOk,
|
|
1714
1786
|
isFloatNumber,
|
|
1715
1787
|
isInjection,
|
|
1716
1788
|
isIntegerNumber,
|
|
@@ -1769,6 +1841,9 @@ export {
|
|
|
1769
1841
|
modificationPropertiesSchema,
|
|
1770
1842
|
moveModification,
|
|
1771
1843
|
moveSubModificationInTree,
|
|
1844
|
+
moveVoltageLevelFeederBaysDtoToForm,
|
|
1845
|
+
moveVoltageLevelFeederBaysFormSchema,
|
|
1846
|
+
moveVoltageLevelFeederBaysFormToDto,
|
|
1772
1847
|
multipleSelectionDialogEn,
|
|
1773
1848
|
multipleSelectionDialogFr,
|
|
1774
1849
|
networkModificationTableStyles,
|
|
@@ -1805,12 +1880,14 @@ export {
|
|
|
1805
1880
|
sanitizeLimitNames,
|
|
1806
1881
|
sanitizeLimitsGroups,
|
|
1807
1882
|
sanitizePercentageValue,
|
|
1883
|
+
sanitizeRowValue,
|
|
1808
1884
|
sanitizeString,
|
|
1809
1885
|
saveExpertFilter,
|
|
1810
1886
|
saveExplicitNamingFilter,
|
|
1811
1887
|
saveFilter,
|
|
1812
1888
|
setCommonStore,
|
|
1813
1889
|
setCurrentReactiveCapabilityCurveTable,
|
|
1890
|
+
setFieldTypeError,
|
|
1814
1891
|
setLoadFlowParameters,
|
|
1815
1892
|
setLoggedUser,
|
|
1816
1893
|
setLogoutError,
|
|
@@ -1855,6 +1932,12 @@ export {
|
|
|
1855
1932
|
syncGlobalFilters,
|
|
1856
1933
|
tableEn,
|
|
1857
1934
|
tableFr,
|
|
1935
|
+
tabularCreationDtoToForm,
|
|
1936
|
+
tabularCreationFormToDto,
|
|
1937
|
+
tabularFormSchema,
|
|
1938
|
+
tabularModificationDtoToForm,
|
|
1939
|
+
tabularModificationFormToDto,
|
|
1940
|
+
tabularPropertiesSchema,
|
|
1858
1941
|
testQuery,
|
|
1859
1942
|
testValueWithinPowerInterval,
|
|
1860
1943
|
textFilterParams,
|
|
@@ -1871,7 +1954,12 @@ export {
|
|
|
1871
1954
|
toTapChangerStepList,
|
|
1872
1955
|
topBarEn,
|
|
1873
1956
|
topBarFr,
|
|
1957
|
+
transformCreationsTable,
|
|
1874
1958
|
transformIfFrenchNumber,
|
|
1959
|
+
transformModificationsTable,
|
|
1960
|
+
transformProperties,
|
|
1961
|
+
transformRowToBackEndCreation,
|
|
1962
|
+
transformRowToBackEndModification,
|
|
1875
1963
|
translateSwitchKinds,
|
|
1876
1964
|
treeviewFinderEn,
|
|
1877
1965
|
treeviewFinderFr,
|
|
@@ -1955,5 +2043,9 @@ export {
|
|
|
1955
2043
|
voltageLevelSectionCreationDtoToForm,
|
|
1956
2044
|
voltageLevelSectionCreationEmptyFormData,
|
|
1957
2045
|
voltageLevelSectionCreationFormSchema,
|
|
1958
|
-
voltageLevelSectionCreationFormToDto
|
|
2046
|
+
voltageLevelSectionCreationFormToDto,
|
|
2047
|
+
voltageLevelTopologyModificationDtoToForm,
|
|
2048
|
+
voltageLevelTopologyModificationEmptyFormData,
|
|
2049
|
+
voltageLevelTopologyModificationFormSchema,
|
|
2050
|
+
voltageLevelTopologyModificationFormToDto
|
|
1959
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}",
|
|
@@ -420,4 +420,101 @@ export declare const networkModificationsEn: {
|
|
|
420
420
|
allOptionHelperText: string;
|
|
421
421
|
areSwitchesOpen: string;
|
|
422
422
|
areSwitchesClosed: string;
|
|
423
|
+
DuplicatedPositionsWarning: string;
|
|
424
|
+
moveFeederBaysSections: string;
|
|
425
|
+
MoveVoltageLevelFeederBays: string;
|
|
426
|
+
MoveVoltageLevelFeederBaysError: string;
|
|
427
|
+
Feeders: string;
|
|
428
|
+
equipmentID: string;
|
|
429
|
+
connectionDirection: string;
|
|
430
|
+
connectionPosition: string;
|
|
431
|
+
MissingConnectionsInVoltageLevel: string;
|
|
432
|
+
builtNodeTooltipVlTopoModif: string;
|
|
433
|
+
notBuiltNodeTooltipVlTopoModif: string;
|
|
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;
|
|
423
520
|
};
|