@gridsuite/commons-ui 0.280.0 → 0.282.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/custom-aggrid-filters/hooks/use-custom-aggrid-comparator-filter.js +1 -0
- package/dist/components/composite/customAGGrid/hooks/use-custom-aggrid-sort.js +1 -0
- package/dist/components/composite/reactQueryBuilder/OperatorSelector.js +1 -0
- package/dist/components/composite/report/QuickSearch.js +1 -0
- package/dist/components/composite/report/report-viewer/log-table/log-table.js +1 -1
- 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/directoryItemSelector/DirectoryItemSelector.js +1 -0
- 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 +92 -12
- package/dist/features/network-modification-table/network-modifications-table.js +1 -0
- package/dist/features/network-modification-table/renderers/reference-link-cell.js +1 -1
- package/dist/features/network-modification-table/renderers/root-network-chip-cell.js +1 -0
- package/dist/features/network-modification-table/renderers/switch-cell.js +1 -0
- package/dist/features/network-modification-table/row/drag-row-clone.js +1 -0
- package/dist/features/network-modification-table/use-modifications-drag-and-drop.js +1 -0
- package/dist/features/network-modifications/battery/modification/BatteryDialogTabs.d.ts +3 -3
- package/dist/features/network-modifications/battery/modification/BatteryDialogTabs.js +2 -2
- package/dist/features/network-modifications/battery/modification/BatteryModificationForm.d.ts +4 -1
- package/dist/features/network-modifications/battery/modification/BatteryModificationForm.js +7 -11
- package/dist/features/network-modifications/generator/modification/GeneratorDialogTabs.d.ts +3 -3
- package/dist/features/network-modifications/generator/modification/GeneratorDialogTabs.js +2 -2
- package/dist/features/network-modifications/generator/modification/GeneratorModificationForm.d.ts +4 -1
- package/dist/features/network-modifications/generator/modification/GeneratorModificationForm.js +4 -8
- package/dist/features/network-modifications/index.d.ts +1 -1
- package/dist/features/network-modifications/index.js +81 -6
- package/dist/features/network-modifications/line/common/LineDialogTabs.d.ts +3 -3
- package/dist/features/network-modifications/line/common/LineDialogTabs.js +2 -2
- package/dist/features/network-modifications/line/common/LineForm.d.ts +4 -1
- package/dist/features/network-modifications/line/common/LineForm.js +7 -11
- package/dist/features/network-modifications/line/common/line.utils.d.ts +1 -1
- package/dist/features/network-modifications/load/common/LoadDialogTabs.d.ts +3 -3
- package/dist/features/network-modifications/load/common/LoadDialogTabs.js +2 -2
- package/dist/features/network-modifications/load/common/LoadForm.d.ts +4 -1
- package/dist/features/network-modifications/load/common/LoadForm.js +7 -11
- package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-dialog-tabs.d.ts +3 -2
- package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-dialog-tabs.js +2 -2
- package/dist/features/network-modifications/static-var-compensator/creation/static-var-compensator-creation-form.d.ts +4 -1
- package/dist/features/network-modifications/static-var-compensator/creation/static-var-compensator-creation-form.js +8 -11
- 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/twoWindingsTransformer/common/TwoWindingsTransformerDialogTabs.d.ts +3 -3
- package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogTabs.js +2 -2
- package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerForm.d.ts +4 -1
- package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerForm.js +7 -11
- package/dist/features/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.d.ts +4 -7
- package/dist/features/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +16 -19
- package/dist/features/network-modifications/voltageLevel/creation/index.d.ts +1 -1
- package/dist/features/network-modifications/voltageLevel/creation/index.js +3 -1
- package/dist/features/network-modifications/voltageLevel/index.d.ts +2 -1
- package/dist/features/network-modifications/voltageLevel/index.js +18 -4
- 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/{hooks → voltageLevel/topology/modification}/index.d.ts +4 -1
- 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/hook/index.d.ts +0 -1
- package/dist/features/parameters/common/hook/index.js +1 -3
- package/dist/features/parameters/common/index.d.ts +1 -0
- package/dist/features/parameters/common/index.js +3 -3
- 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.d.ts +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 +10 -10
- package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation.type.d.ts +1 -0
- package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation.type.js +2 -0
- 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 +9 -9
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.d.ts +1 -1
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +1 -1
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis.type.d.ts +1 -0
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis.type.js +2 -0
- package/dist/features/parameters/dynamic-security-analysis/scenario-parameters.js +1 -1
- package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-preview.js +1 -0
- package/dist/features/parameters/dynamic-simulation/curve/dialog/equipment-filter.js +1 -0
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-inline.js +9 -9
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.d.ts +1 -1
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +1 -1
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation.type.d.ts +1 -0
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation.type.js +2 -0
- 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 +12 -7
- 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 +6 -6
- package/dist/features/parameters/loadflow/load-flow-parameters-utils.d.ts +1 -0
- package/dist/features/parameters/loadflow/load-flow-parameters-utils.js +2 -0
- package/dist/features/parameters/loadflow/load-flow-provider-specific-parameters.js +1 -1
- package/dist/features/parameters/loadflow/use-load-flow-parameters-form.js +3 -3
- package/dist/features/parameters/network-visualizations/constants.d.ts +1 -0
- package/dist/features/parameters/network-visualizations/constants.js +2 -0
- package/dist/features/parameters/network-visualizations/index.js +2 -1
- package/dist/features/parameters/network-visualizations/network-visualizations-parameters-inline.js +6 -6
- package/dist/features/parameters/network-visualizations/use-network-visualizations-parameters-form.js +3 -7
- package/dist/features/parameters/pcc-min/pcc-min-parameters-inline.js +6 -6
- package/dist/features/parameters/security-analysis/constants.d.ts +1 -0
- package/dist/features/parameters/security-analysis/constants.js +2 -0
- package/dist/features/parameters/security-analysis/index.js +2 -1
- package/dist/features/parameters/security-analysis/security-analysis-parameters-content.js +1 -1
- package/dist/features/parameters/security-analysis/security-analysis-parameters-dialog.js +1 -1
- package/dist/features/parameters/security-analysis/security-analysis-parameters-inline.js +6 -6
- package/dist/features/parameters/security-analysis/use-security-analysis-parameters-form.js +3 -3
- package/dist/features/parameters/sensi/columns-definitions.d.ts +2 -0
- package/dist/features/parameters/sensi/columns-definitions.js +36 -1
- package/dist/features/parameters/sensi/index.js +3 -1
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-dialog.js +1 -1
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.js +2 -1
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-inline.js +10 -7
- package/dist/features/parameters/sensi/sensitivity-parameters-selector.d.ts +3 -1
- package/dist/features/parameters/sensi/sensitivity-parameters-selector.js +19 -35
- package/dist/features/parameters/sensi/use-sensitivity-analysis-parameters.d.ts +9 -1
- package/dist/features/parameters/sensi/use-sensitivity-analysis-parameters.js +29 -1
- package/dist/features/parameters/short-circuit/short-circuit-parameters-inline.js +6 -6
- package/dist/features/parameters/short-circuit/short-circuit-parameters-utils.d.ts +1 -0
- package/dist/features/parameters/short-circuit/short-circuit-parameters-utils.js +2 -0
- package/dist/features/parameters/short-circuit/use-short-circuit-parameters-form.js +3 -3
- package/dist/features/parameters/voltage-init/constants.d.ts +1 -0
- package/dist/features/parameters/voltage-init/constants.js +2 -0
- package/dist/features/parameters/voltage-init/index.js +2 -1
- package/dist/features/parameters/voltage-init/use-voltage-init-parameters-form.js +4 -8
- package/dist/features/parameters/voltage-init/voltage-init-parameters-inline.js +6 -6
- package/dist/features/process-configs/loadflow/lf-process-config-edition.js +7 -1
- package/dist/features/process-configs/security-analysis/sa-process-config-edition.js +7 -1
- package/dist/features/process-configs/shortcircuit/sc-process-config-edition.js +7 -1
- package/dist/features/results/loadflow/limit-violation-result.js +1 -1
- package/dist/features/results/shortcircuit/shortcircuit-analysis-result.js +1 -1
- 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/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +3 -1
- package/dist/hooks/use-tabs.d.ts +33 -0
- package/dist/hooks/use-tabs.js +55 -0
- package/dist/index.js +97 -13
- 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/hooks/index.js +0 -4
- package/dist/features/network-modifications/hooks/useTabsWithError.d.ts +0 -15
- package/dist/features/network-modifications/hooks/useTabsWithError.js +0 -28
- package/dist/features/parameters/common/hook/use-tabs.d.ts +0 -16
- package/dist/features/parameters/common/hook/use-tabs.js +0 -65
- /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
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";
|
|
@@ -204,9 +205,8 @@ import { LimitReductionTableRow } from "./features/parameters/common/limitreduct
|
|
|
204
205
|
import { LimitReductionTableCell } from "./features/parameters/common/limitreductions/limit-reduction-table-cell.js";
|
|
205
206
|
import { ContingencyTable } from "./features/parameters/common/contingency-table/contingency-table.js";
|
|
206
207
|
import { COLUMNS_DEFINITIONS_CONTINGENCY_LISTS_INFOS, getContingencyListsInfosFormSchema, isValidContingencyRow, toFormValuesContingencyListsInfos } from "./features/parameters/common/contingency-table/columns-definitions.js";
|
|
207
|
-
import { useTabs } from "./features/parameters/common/hook/use-tabs.js";
|
|
208
208
|
import { useParametersForm } from "./features/parameters/common/hook/use-parameters-form.js";
|
|
209
|
-
import { CENTER_LABEL, COMPONENT_LIBRARY, CUSTOM_REAL_TIME_STATE_ESTIMATION, DIAGONAL_LABEL, INTL_LINE_FLOW_MODE_OPTIONS, INTL_SUBSTATION_LAYOUT_OPTIONS, LINE_FLOW_MODE, LineFlowMode, MAP_BASE_MAP, MAP_MANUAL_REFRESH, NAD_POSITIONS_GENERATION_MODE, NAD_POSITIONS_GENERATION_MODE_LABEL, NetworkVisualizationTabValues, PARAM_CENTER_LABEL, PARAM_COMPONENT_LIBRARY, PARAM_DIAGONAL_LABEL, PARAM_LINE_FLOW_MODE, PARAM_LINE_FULL_PATH, PARAM_LINE_PARALLEL_PATH, PARAM_MAP_BASEMAP, PARAM_MAP_MANUAL_REFRESH, PARAM_NAD_POSITIONS_GENERATION_MODE, PARAM_STATE_ESTIMATION, PARAM_SUBSTATION_LAYOUT, SUBSTATION_LAYOUT } from "./features/parameters/network-visualizations/constants.js";
|
|
209
|
+
import { CENTER_LABEL, COMPONENT_LIBRARY, CUSTOM_REAL_TIME_STATE_ESTIMATION, DIAGONAL_LABEL, INTL_LINE_FLOW_MODE_OPTIONS, INTL_SUBSTATION_LAYOUT_OPTIONS, LINE_FLOW_MODE, LineFlowMode, MAP_BASE_MAP, MAP_MANUAL_REFRESH, NAD_POSITIONS_GENERATION_MODE, NAD_POSITIONS_GENERATION_MODE_LABEL, NV_TAB_VALUES, NetworkVisualizationTabValues, PARAM_CENTER_LABEL, PARAM_COMPONENT_LIBRARY, PARAM_DIAGONAL_LABEL, PARAM_LINE_FLOW_MODE, PARAM_LINE_FULL_PATH, PARAM_LINE_PARALLEL_PATH, PARAM_MAP_BASEMAP, PARAM_MAP_MANUAL_REFRESH, PARAM_NAD_POSITIONS_GENERATION_MODE, PARAM_STATE_ESTIMATION, PARAM_SUBSTATION_LAYOUT, SUBSTATION_LAYOUT } from "./features/parameters/network-visualizations/constants.js";
|
|
210
210
|
import { MAP_BASEMAP_CARTO, MAP_BASEMAP_CARTO_NOLABEL, MAP_BASEMAP_ETALAB, MAP_BASEMAP_MAPBOX, NadPositionsGenerationMode, SubstationLayout } from "./features/parameters/network-visualizations/network-visualizations.types.js";
|
|
211
211
|
import { NetworkVisualizationParametersInline } from "./features/parameters/network-visualizations/network-visualizations-parameters-inline.js";
|
|
212
212
|
import { NetworkVisualizationsParametersEditionDialog } from "./features/parameters/network-visualizations/network-visualizations-parameters-dialog.js";
|
|
@@ -216,7 +216,7 @@ import { LoadFlowParametersEditionDialog } from "./features/parameters/loadflow/
|
|
|
216
216
|
import { InitialVoltage, NODE_CLUSTER, NODE_CLUSTER_FILTER_IDS, PredefinedParameters, SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS, SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER, SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_OUTSIDE_CALCULATION_CLUSTER, SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS, SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS, SHORT_CIRCUIT_PREDEFINED_PARAMS, SHORT_CIRCUIT_VOLTAGE_RANGES, SHORT_CIRCUIT_WITH_FEEDER_RESULT, SHORT_CIRCUIT_WITH_LOADS, SHORT_CIRCUIT_WITH_NEUTRAL_POSITION, SHORT_CIRCUIT_WITH_SHUNT_COMPENSATORS, SHORT_CIRCUIT_WITH_VSC_CONVERTER_STATIONS, STARTED_GENERATORS_IN_CALCULATION_CLUSTER_THRESHOLD, STARTED_GENERATORS_OUTSIDE_CALCULATION_CLUSTER_THRESHOLD, intlInitialVoltageProfileMode, intlPredefinedParametersOptions, onlyStartedGeneratorsOptions } from "./features/parameters/short-circuit/constants.js";
|
|
217
217
|
import { ShortCircuitParametersInLine } from "./features/parameters/short-circuit/short-circuit-parameters-inline.js";
|
|
218
218
|
import { ShortCircuitParametersEditionDialog } from "./features/parameters/short-circuit/short-circuit-parameters-dialog.js";
|
|
219
|
-
import { DEFAULT_GENERAL_APPLY_MODIFICATIONS, DEFAULT_REACTIVE_SLACKS_THRESHOLD, DEFAULT_SHUNT_COMPENSATOR_ACTIVATION_THRESHOLD, DEFAULT_UPDATE_BUS_VOLTAGE, GENERAL, GENERAL_APPLY_MODIFICATIONS, GENERATORS_SELECTION_TYPE, HIGH_VOLTAGE_LIMIT, LEG_SIDE, LOW_VOLTAGE_LIMIT, PRIORITY, RATIO_TAP_CHANGER_POSITION, RATIO_TAP_CHANGER_TARGET_V, REACTIVE_SLACKS_THRESHOLD, SELECTION_TYPE, SHUNT_COMPENSATORS_SELECTION_TYPE, SHUNT_COMPENSATOR_ACTIVATION_THRESHOLD, TRANSFORMERS_SELECTION_TYPE, UPDATE_BUS_VOLTAGE, VARIABLE_Q_GENERATORS, VARIABLE_SHUNT_COMPENSATORS, VARIABLE_TRANSFORMERS, VOLTAGE_LIMITS_DEFAULT, VOLTAGE_LIMITS_MODIFICATION, VoltageInitTabValues } from "./features/parameters/voltage-init/constants.js";
|
|
219
|
+
import { DEFAULT_GENERAL_APPLY_MODIFICATIONS, DEFAULT_REACTIVE_SLACKS_THRESHOLD, DEFAULT_SHUNT_COMPENSATOR_ACTIVATION_THRESHOLD, DEFAULT_UPDATE_BUS_VOLTAGE, GENERAL, GENERAL_APPLY_MODIFICATIONS, GENERATORS_SELECTION_TYPE, HIGH_VOLTAGE_LIMIT, LEG_SIDE, LOW_VOLTAGE_LIMIT, PRIORITY, RATIO_TAP_CHANGER_POSITION, RATIO_TAP_CHANGER_TARGET_V, REACTIVE_SLACKS_THRESHOLD, SELECTION_TYPE, SHUNT_COMPENSATORS_SELECTION_TYPE, SHUNT_COMPENSATOR_ACTIVATION_THRESHOLD, TRANSFORMERS_SELECTION_TYPE, UPDATE_BUS_VOLTAGE, VARIABLE_Q_GENERATORS, VARIABLE_SHUNT_COMPENSATORS, VARIABLE_TRANSFORMERS, VOLTAGE_INIT_TAB_VALUES, VOLTAGE_LIMITS_DEFAULT, VOLTAGE_LIMITS_MODIFICATION, VoltageInitTabValues } from "./features/parameters/voltage-init/constants.js";
|
|
220
220
|
import { EquipmentsSelectionType } from "./features/parameters/voltage-init/voltage-init.type.js";
|
|
221
221
|
import { VoltageInitParametersEditionDialog } from "./features/parameters/voltage-init/voltage-init-parameters-dialog.js";
|
|
222
222
|
import { VoltageInitParametersInLine } from "./features/parameters/voltage-init/voltage-init-parameters-inline.js";
|
|
@@ -224,10 +224,10 @@ import { PccMinParametersInLine } from "./features/parameters/pcc-min/pcc-min-pa
|
|
|
224
224
|
import { PccMinParametersEditionDialog } from "./features/parameters/pcc-min/pcc-min-parameters-dialog.js";
|
|
225
225
|
import { SecurityAnalysisParametersInline } from "./features/parameters/security-analysis/security-analysis-parameters-inline.js";
|
|
226
226
|
import { SecurityAnalysisParametersDialog } from "./features/parameters/security-analysis/security-analysis-parameters-dialog.js";
|
|
227
|
-
import { FLOW_PROPORTIONAL_THRESHOLD, HIGH_VOLTAGE_ABSOLUTE_THRESHOLD, HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD, LOW_VOLTAGE_ABSOLUTE_THRESHOLD, LOW_VOLTAGE_PROPORTIONAL_THRESHOLD, TabValues } from "./features/parameters/security-analysis/constants.js";
|
|
227
|
+
import { FLOW_PROPORTIONAL_THRESHOLD, HIGH_VOLTAGE_ABSOLUTE_THRESHOLD, HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD, LOW_VOLTAGE_ABSOLUTE_THRESHOLD, LOW_VOLTAGE_PROPORTIONAL_THRESHOLD, TAB_VALUES, TabValues } from "./features/parameters/security-analysis/constants.js";
|
|
228
228
|
import { SensitivityAnalysisParametersInline } from "./features/parameters/sensi/sensitivity-analysis-parameters-inline.js";
|
|
229
229
|
import { SensitivityAnalysisParametersDialog } from "./features/parameters/sensi/sensitivity-analysis-parameters-dialog.js";
|
|
230
|
-
import { COLUMNS_DEFINITIONS_HVDCS, COLUMNS_DEFINITIONS_INJECTIONS, COLUMNS_DEFINITIONS_INJECTIONS_SET, COLUMNS_DEFINITIONS_NODES, COLUMNS_DEFINITIONS_PSTS, EQUIPMENTS_IN_VOLTAGE_REGULATION_TYPES, HVDC_EQUIPMENT_TYPES, INJECTIONS_EQUIPMENT_TYPES, INJECTION_DISTRIBUTION_TYPES, MONITORED_BRANCHES_EQUIPMENT_TYPES, MONITORED_VOLTAGE_LEVELS_EQUIPMENT_TYPES, PSTS_EQUIPMENT_TYPES, SENSITIVITY_TYPES, SensiBranchesTabValues, SensiTabValues } from "./features/parameters/sensi/columns-definitions.js";
|
|
230
|
+
import { COLUMNS_DEFINITIONS_HVDCS, COLUMNS_DEFINITIONS_INJECTIONS, COLUMNS_DEFINITIONS_INJECTIONS_SET, COLUMNS_DEFINITIONS_NODES, COLUMNS_DEFINITIONS_PSTS, EQUIPMENTS_IN_VOLTAGE_REGULATION_TYPES, HVDC_EQUIPMENT_TYPES, INJECTIONS_EQUIPMENT_TYPES, INJECTION_DISTRIBUTION_TYPES, MONITORED_BRANCHES_EQUIPMENT_TYPES, MONITORED_VOLTAGE_LEVELS_EQUIPMENT_TYPES, PSTS_EQUIPMENT_TYPES, SENSITIVITY_TYPES, SENSI_BRANCHES_TAB_FIELDS, SENSI_TAB_FIELDS, SensiBranchesTabValues, SensiTabValues } from "./features/parameters/sensi/columns-definitions.js";
|
|
231
231
|
import { DynamicSimulationInline } from "./features/parameters/dynamic-simulation/dynamic-simulation-inline.js";
|
|
232
232
|
import { CONTINGENCIES_LIST_INFOS, CONTINGENCIES_START_TIME, SCENARIO_DURATION } from "./features/parameters/dynamic-security-analysis/constants.js";
|
|
233
233
|
import { DynamicSecurityAnalysisInline } from "./features/parameters/dynamic-security-analysis/dynamic-security-analysis-inline.js";
|
|
@@ -283,7 +283,6 @@ import { useHvdcLccDeletion } from "./features/network-modifications/equipmentDe
|
|
|
283
283
|
import { HvdcLccDeletionSpecificForm } from "./features/network-modifications/equipmentDeletion/hvdcLccDeletion/HvdcLccDeletionSpecificForm.js";
|
|
284
284
|
import { equipmentDeletionDtoToForm, equipmentDeletionEmptyFormData, equipmentDeletionFormSchema, equipmentDeletionFormToDto, newEquipmentDeletionDto } from "./features/network-modifications/equipmentDeletion/equipmentDeletion.utils.js";
|
|
285
285
|
import { EquipmentDeletionForm } from "./features/network-modifications/equipmentDeletion/EquipmentDeletionForm.js";
|
|
286
|
-
import { useTabsWithError } from "./features/network-modifications/hooks/useTabsWithError.js";
|
|
287
286
|
import { SubstationCreationForm } from "./features/network-modifications/substation/creation/SubstationCreationForm.js";
|
|
288
287
|
import { substationCreationDtoToForm, substationCreationEmptyFormData, substationCreationFormSchema, substationCreationFormToDto } from "./features/network-modifications/substation/creation/substationCreation.utils.js";
|
|
289
288
|
import { SubstationModificationForm } from "./features/network-modifications/substation/modification/SubstationModificationForm.js";
|
|
@@ -303,7 +302,7 @@ import { MAX_CHAR_DESCRIPTION } from "./utils/constants/uiConstants.js";
|
|
|
303
302
|
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
303
|
import { COMMON_APP_NAME, COMMON_CONFIG_PARAMS_NAMES, LAST_SELECTED_DIRECTORY, PARAM_DEVELOPER_MODE, PARAM_LANGUAGE, PARAM_THEME } from "./utils/constants/configConstants.js";
|
|
305
304
|
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";
|
|
305
|
+
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
306
|
import { GRIDSUITE_DEFAULT_PRECISION, convertInputValue, convertOutputValue, isBlankOrEmpty, kiloUnitToUnit, microUnitToUnit, roundToDefaultPrecision, roundToPrecision, toModificationOperation, unitToKiloUnit, unitToMicroUnit } from "./utils/conversionUtils.js";
|
|
308
307
|
import { catchErrorHandler, extractErrorMessageDescriptor, snackWithFallback } from "./utils/error.js";
|
|
309
308
|
import { isDisabledValidationButton } from "./utils/form-utils.js";
|
|
@@ -346,7 +345,7 @@ import { enrichSecurityAnalysisParameters, fetchSecurityAnalysisParameters, fetc
|
|
|
346
345
|
import { enrichSensitivityAnalysisParameters, fetchSensitivityAnalysisParameters, fetchSensitivityAnalysisProviders, getSensiUrl, getSensitivityAnalysisFactorsCount, getSensitivityAnalysisParameters, getStudyUrlWithNodeUuidAndRootNetworkUuid, setSensitivityAnalysisParameters, updateSensitivityAnalysisParameters } from "./services/sensitivity-analysis.js";
|
|
347
346
|
import { PREFIX_STUDY_SERVER_QUERIES, exportFilter, getAvailableComponentLibraries, getStudyNetworkVisualizationsParameters, getStudyShortCircuitParameters, setStudyNetworkVisualizationParameters, updateVoltageInitParameters } from "./services/study.js";
|
|
348
347
|
import { getNetworkVisualizationsParameters } from "./services/study-config.js";
|
|
349
|
-
import { fetchCurrentAnnouncement, fetchUserDetails } from "./services/userAdmin.js";
|
|
348
|
+
import { fetchCurrentAnnouncement, fetchUserDetails, fetchUserQuotaState } from "./services/userAdmin.js";
|
|
350
349
|
import { DEFAULT_TIMEOUT_MS, IGNORE_SIGNAL, backendFetch, backendFetchFile, backendFetchJson, backendFetchText, getRequestParamFromList, handleNotOkResponse, parseError, safeEncodeURIComponent } from "./services/utils.js";
|
|
351
350
|
import { getVoltageInitParameters, getVoltageInitUrl } from "./services/voltage-init.js";
|
|
352
351
|
import { fetchShortCircuitParameters, getShortCircuitSpecificParametersDescription, updateShortCircuitParameters } from "./services/short-circuit-analysis.js";
|
|
@@ -357,14 +356,17 @@ import { fetchContingencyAndFiltersLists, fetchDynamicSecurityAnalysisProviders
|
|
|
357
356
|
import { fetchDynamicMarginCalculationParameters, fetchDynamicMarginCalculationProviders, updateDynamicMarginCalculationParameters } from "./services/dynamic-margin-calculation.js";
|
|
358
357
|
import "react-intl";
|
|
359
358
|
import "@mui/icons-material";
|
|
360
|
-
import { MAX_SECTIONS_COUNT } from "./features/network-modifications/voltageLevel/creation/voltageLevel.constants.js";
|
|
359
|
+
import { MAX_SECTIONS_COUNT, VOLTAGE_LEVEL_TAB_FIELDS, VoltageLevelTab } from "./features/network-modifications/voltageLevel/creation/voltageLevel.constants.js";
|
|
361
360
|
import { VoltageLevelCreationForm } from "./features/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js";
|
|
362
361
|
import { SWITCH_TYPE, buildNewBusbarSections, getCreateSwitchesEmptyFormData, getCreateSwitchesValidationSchema, translateSwitchKinds, voltageLevelCreationDtoToForm, voltageLevelCreationEmptyFormData, voltageLevelCreationFormSchema, voltageLevelCreationFormToDto } from "./features/network-modifications/voltageLevel/creation/voltageLevelCreation.utils.js";
|
|
363
362
|
import { SwitchKind } from "./features/network-modifications/voltageLevel/creation/voltageLevelCreation.types.js";
|
|
364
363
|
import { VoltageLevelModificationForm } from "./features/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js";
|
|
365
364
|
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";
|
|
365
|
+
import { createVoltageLevelTopologyDtoToForm, createVoltageLevelTopologyEmptyFormData, createVoltageLevelTopologyFormSchema, createVoltageLevelTopologyFormToDto } from "./features/network-modifications/voltageLevel/topology/creation/voltageLevelTopologyCreation.utils.js";
|
|
366
|
+
import { CreateVoltageLevelTopologyForm } from "./features/network-modifications/voltageLevel/topology/creation/CreateVoltageLevelTopologyForm.js";
|
|
367
|
+
import { voltageLevelTopologyModificationDtoToForm, voltageLevelTopologyModificationEmptyFormData, voltageLevelTopologyModificationFormSchema, voltageLevelTopologyModificationFormToDto } from "./features/network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.utils.js";
|
|
368
|
+
import { VoltageLevelTopologyModificationForm } from "./features/network-modifications/voltageLevel/topology/modification/VoltageLevelTopologyModificationForm.js";
|
|
369
|
+
import { CURRENT_CONNECTION_STATUS, PREV_CONNECTION_STATUS, SWITCH_ID, TOPOLOGY_MODIFICATION_TABLE } from "./features/network-modifications/voltageLevel/topology/modification/constants.js";
|
|
368
370
|
import { VoltageLevelSectionCreationForm } from "./features/network-modifications/voltageLevel/section/VoltageLevelSectionCreationForm.js";
|
|
369
371
|
import { POSITION_NEW_SECTION_SIDE, voltageLevelSectionCreationDtoToForm, voltageLevelSectionCreationEmptyFormData, voltageLevelSectionCreationFormSchema, voltageLevelSectionCreationFormToDto } from "./features/network-modifications/voltageLevel/section/voltageLevelSectionCreation.utils.js";
|
|
370
372
|
import { FeederBayPositionCellRenderer } from "./features/network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayPositionCellRender.js";
|
|
@@ -456,6 +458,16 @@ import { getReactiveFormData, getReactiveFormEmptyFormData, getReactiveFormValid
|
|
|
456
458
|
import { computeQ0, getStandbyAutomatonEmptyFormData, getStandbyAutomatonFormData, getStandbyAutomatonFormValidationSchema } from "./features/network-modifications/static-var-compensator/common/standby-automaton-form-utils.js";
|
|
457
459
|
import { StaticVarCompensatorCreationForm } from "./features/network-modifications/static-var-compensator/creation/static-var-compensator-creation-form.js";
|
|
458
460
|
import { staticVarCompensatorCreationEmptyFormData, staticVarCompensatorCreationFormSchema, staticVarCompensatorCreationFormToDto, staticVarCompensatorDtoToForm } from "./features/network-modifications/static-var-compensator/creation/static-var-compensator-creation-utils.js";
|
|
461
|
+
import { DefineTabularPropertiesDialog } from "./features/network-modifications/tabular/properties/DefineTabularPropertiesDialog.js";
|
|
462
|
+
import { TabularPropertiesForm } from "./features/network-modifications/tabular/properties/TabularPropertiesForm.js";
|
|
463
|
+
import { TabularPropertyForm } from "./features/network-modifications/tabular/properties/TabularPropertyForm.js";
|
|
464
|
+
import { buildPredefinedTabularProperties, emptyTabularProperties, initializedTabularProperty, tabularPropertiesSchema } from "./features/network-modifications/tabular/properties/tabularProperty.utils.js";
|
|
465
|
+
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";
|
|
466
|
+
import { TabularModificationType } from "./features/network-modifications/tabular/tabular.types.js";
|
|
467
|
+
import { addPropertiesFromBack, convertReactiveCapabilityCurvePointsFromBackToFront, convertReactiveCapabilityCurvePointsFromFrontToBack, formatModification, generateCommentLines, getEmptyTabularFormData, getSelectedTabularPropertyNames, isFieldTypeOk, sanitizeRowValue, setFieldTypeError, tabularFormSchema, transformProperties } from "./features/network-modifications/tabular/tabular.utils.js";
|
|
468
|
+
import { TABULAR_CREATION_FIELDS, TABULAR_CREATION_TYPES, convertCreationFieldFromBackToFront, convertCreationFieldFromFrontToBack, convertCreations, getEquipmentTypeFromCreationType, tabularCreationDtoToForm, tabularCreationFormToDto, transformCreationsTable, transformRowToBackEndCreation } from "./features/network-modifications/tabular/tabularCreation.utils.js";
|
|
469
|
+
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";
|
|
470
|
+
import { TabularForm } from "./features/network-modifications/tabular/TabularForm.js";
|
|
459
471
|
import { BuildStatusChip } from "./features/node/build-status-chip.js";
|
|
460
472
|
import { BuildStatus } from "./features/node/constant.js";
|
|
461
473
|
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";
|
|
@@ -524,6 +536,7 @@ import { useSelectAppearance } from "./hooks/useSelectAppearance.js";
|
|
|
524
536
|
import { OptionalServicesStatus, useParametersBackend } from "./hooks/use-parameters-backend.js";
|
|
525
537
|
import { useGetLabelEquipmentTypes } from "./hooks/useGetLabelEquipmentTypes.js";
|
|
526
538
|
import { useOpenLoaderShortWait } from "./hooks/useOpenLoaderShortWait.js";
|
|
539
|
+
import { useTabs } from "./hooks/use-tabs.js";
|
|
527
540
|
import { LOGOUT_ERROR, RESET_AUTHENTICATION_ROUTER_ERROR, SHOW_AUTH_INFO_LOGIN, SIGNIN_CALLBACK_ERROR, UNAUTHORIZED_USER_INFO, USER, USER_VALIDATION_ERROR, resetAuthenticationRouterError, setLoggedUser, setLogoutError, setShowAuthenticationRouterLogin, setSignInCallbackError, setUnauthorizedUserInfo, setUserValidationError } from "./redux/actions/authActions.js";
|
|
528
541
|
import { getUser, getUserToken, setCommonStore, subscribeToUserState } from "./redux/commonStore.js";
|
|
529
542
|
import { cardErrorBoundaryEn } from "./translations/en/cardErrorBoundaryEn.js";
|
|
@@ -673,6 +686,7 @@ export {
|
|
|
673
686
|
CONVERTERS_MODE_OPTIONS,
|
|
674
687
|
COUNTRIES_TO_BALANCE,
|
|
675
688
|
CREATE_SUBSTATION_IN_VOLTAGE_LEVEL_IDENTICAL_ID,
|
|
689
|
+
CURRENT_CONNECTION_STATUS,
|
|
676
690
|
CUSTOM_AGGRID_THEME,
|
|
677
691
|
CUSTOM_REAL_TIME_STATE_ESTIMATION,
|
|
678
692
|
CalculationType,
|
|
@@ -756,6 +770,7 @@ export {
|
|
|
756
770
|
DUPLICATED_PROPS_ERROR,
|
|
757
771
|
DataType,
|
|
758
772
|
DefaultCellRenderer,
|
|
773
|
+
DefineTabularPropertiesDialog,
|
|
759
774
|
DepthBox,
|
|
760
775
|
DescriptionCell,
|
|
761
776
|
DescriptionCellRenderer,
|
|
@@ -907,6 +922,7 @@ export {
|
|
|
907
922
|
LOAD_MODELS_RULE,
|
|
908
923
|
LOAD_TAB_FIELDS,
|
|
909
924
|
LOAD_TYPES,
|
|
925
|
+
LOAD_TYPES_FOR_LOAD_TABULAR_CREATION_MODIFICATION,
|
|
910
926
|
LOAD_TYPE_OPTIONS,
|
|
911
927
|
LOGOUT_ERROR,
|
|
912
928
|
LOW_VOLTAGE_ABSOLUTE_THRESHOLD,
|
|
@@ -970,7 +986,9 @@ export {
|
|
|
970
986
|
MICRO_SIEMENS,
|
|
971
987
|
MIN_ACTIVE_POWER_MUST_BE_LESS_OR_EQUAL_TO_MAX_ACTIVE_POWER,
|
|
972
988
|
MIN_VALUE_ALLOWED_FOR_LIMIT_REDUCTION,
|
|
989
|
+
MODIFICATIONS_REQUIRED_TAB_ERROR,
|
|
973
990
|
MODIFICATION_ROW_HEIGHT,
|
|
991
|
+
MODIFICATION_TRANSFORMATION_STRATEGIES,
|
|
974
992
|
MODIFICATION_TYPES,
|
|
975
993
|
MONITORED_BRANCHES_EQUIPMENT_TYPES,
|
|
976
994
|
MONITORED_VOLTAGE_LEVELS_EQUIPMENT_TYPES,
|
|
@@ -1001,6 +1019,7 @@ export {
|
|
|
1001
1019
|
NORMALIZED_PERCENTAGE,
|
|
1002
1020
|
NO_ITEM_SELECTION_FOR_COPY,
|
|
1003
1021
|
NUMERIC_VALUE_OR_EMPTY_FIELD,
|
|
1022
|
+
NV_TAB_VALUES,
|
|
1004
1023
|
NadPositionsGenerationMode,
|
|
1005
1024
|
NameCell,
|
|
1006
1025
|
NameCellRenderer,
|
|
@@ -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,
|
|
@@ -1149,6 +1172,8 @@ export {
|
|
|
1149
1172
|
SELECTED,
|
|
1150
1173
|
SELECTION_TYPE,
|
|
1151
1174
|
SENSITIVITY_TYPES,
|
|
1175
|
+
SENSI_BRANCHES_TAB_FIELDS,
|
|
1176
|
+
SENSI_TAB_FIELDS,
|
|
1152
1177
|
SHORTCIRCUIT_ANALYSIS_RESULT_SORT_STORE,
|
|
1153
1178
|
SHORT_CIRCUIT_CURRENT_LIMIT_MUST_BE_GREATER_OR_EQUAL_TO_ZERO,
|
|
1154
1179
|
SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE,
|
|
@@ -1182,6 +1207,7 @@ export {
|
|
|
1182
1207
|
SUBSTATION_LAYOUT,
|
|
1183
1208
|
SVAR_REGULATION_MODE_OPTIONS,
|
|
1184
1209
|
SVC,
|
|
1210
|
+
SWITCH_ID,
|
|
1185
1211
|
SWITCH_TYPE,
|
|
1186
1212
|
SecurityAnalysisParametersDialog,
|
|
1187
1213
|
SecurityAnalysisParametersInline,
|
|
@@ -1238,17 +1264,32 @@ export {
|
|
|
1238
1264
|
SwitchKind,
|
|
1239
1265
|
SwitchWithLabel,
|
|
1240
1266
|
SwitchesBetweenSections,
|
|
1267
|
+
TABULAR_BOOLEAN,
|
|
1268
|
+
TABULAR_CREATION_FIELDS,
|
|
1269
|
+
TABULAR_CREATION_TYPES,
|
|
1270
|
+
TABULAR_ENUM,
|
|
1271
|
+
TABULAR_MODIFICATION_FIELDS,
|
|
1272
|
+
TABULAR_MODIFICATION_TYPES,
|
|
1273
|
+
TABULAR_NUMBER,
|
|
1274
|
+
TAB_VALUES,
|
|
1241
1275
|
TARGET_DEADBAND_MUST_BE_GREATER_OR_EQUAL_TO_ZERO,
|
|
1242
1276
|
TEMPORARY_LIMIT_MODIFICATION_TYPE,
|
|
1277
|
+
TOPOLOGY_MODIFICATION_TABLE,
|
|
1243
1278
|
TRANSFORMERS_SELECTION_TYPE,
|
|
1244
1279
|
TWT_SPLIT_SHUNT_ADMITTANCE,
|
|
1245
1280
|
TWT_TAB_FIELDS,
|
|
1281
|
+
TWT_TAP_CHANGER_FIELDS,
|
|
1246
1282
|
TYPE_TAG_MAX_SIZE,
|
|
1247
1283
|
TabPanel,
|
|
1248
1284
|
TabValues,
|
|
1249
1285
|
TableNumericalInput,
|
|
1250
1286
|
TableTextInput,
|
|
1251
1287
|
TableType,
|
|
1288
|
+
TabularFieldConstants,
|
|
1289
|
+
TabularForm,
|
|
1290
|
+
TabularModificationType,
|
|
1291
|
+
TabularPropertiesForm,
|
|
1292
|
+
TabularPropertyForm,
|
|
1252
1293
|
TagRenderer,
|
|
1253
1294
|
TapChangerSteps,
|
|
1254
1295
|
TemporaryLimitsTable,
|
|
@@ -1289,8 +1330,10 @@ export {
|
|
|
1289
1330
|
VERSION_PARAMETER,
|
|
1290
1331
|
VL_TAG_MAX_SIZE,
|
|
1291
1332
|
VOLTAGE_INIT_MODE,
|
|
1333
|
+
VOLTAGE_INIT_TAB_VALUES,
|
|
1292
1334
|
VOLTAGE_LEVEL,
|
|
1293
1335
|
VOLTAGE_LEVELS_FORM,
|
|
1336
|
+
VOLTAGE_LEVEL_TAB_FIELDS,
|
|
1294
1337
|
VOLTAGE_LIMITS_DEFAULT,
|
|
1295
1338
|
VOLTAGE_LIMITS_MODIFICATION,
|
|
1296
1339
|
VOLTAGE_REGULATION_MODES,
|
|
@@ -1306,6 +1349,8 @@ export {
|
|
|
1306
1349
|
VoltageLevelCreationForm,
|
|
1307
1350
|
VoltageLevelModificationForm,
|
|
1308
1351
|
VoltageLevelSectionCreationForm,
|
|
1352
|
+
VoltageLevelTab,
|
|
1353
|
+
VoltageLevelTopologyModificationForm,
|
|
1309
1354
|
VoltageRegulationForm,
|
|
1310
1355
|
VoltageUnitIcon,
|
|
1311
1356
|
WRITE_SLACK_BUS,
|
|
@@ -1320,6 +1365,7 @@ export {
|
|
|
1320
1365
|
addModificationTypeToOpLimitsGroups,
|
|
1321
1366
|
addModificationTypeToTemporaryLimits,
|
|
1322
1367
|
addOperationTypeToSelectedOpLG,
|
|
1368
|
+
addPropertiesFromBack,
|
|
1323
1369
|
addSelectedFieldToRows,
|
|
1324
1370
|
addSelectedGlobalFiltersToTableState,
|
|
1325
1371
|
addToleranceToFilter,
|
|
@@ -1341,6 +1387,7 @@ export {
|
|
|
1341
1387
|
batteryModificationFormSchema,
|
|
1342
1388
|
batteryModificationFormToDto,
|
|
1343
1389
|
buildNewBusbarSections,
|
|
1390
|
+
buildPredefinedTabularProperties,
|
|
1344
1391
|
buildValidGlobalFilters,
|
|
1345
1392
|
businessErrorsEn,
|
|
1346
1393
|
businessErrorsFr,
|
|
@@ -1364,10 +1411,20 @@ export {
|
|
|
1364
1411
|
computeTagMinSize,
|
|
1365
1412
|
computeTolerance,
|
|
1366
1413
|
containsReferenceModification,
|
|
1414
|
+
convertCreationFieldFromBackToFront,
|
|
1415
|
+
convertCreationFieldFromFrontToBack,
|
|
1416
|
+
convertCreations,
|
|
1367
1417
|
convertFilterValues,
|
|
1418
|
+
convertGeneratorOrBatteryModificationFromBackToFront,
|
|
1419
|
+
convertGeneratorOrBatteryModificationFromFrontToBack,
|
|
1368
1420
|
convertInputValue,
|
|
1421
|
+
convertInputValues,
|
|
1369
1422
|
convertLimitsToOperationalLimitsGroupFormSchema,
|
|
1370
1423
|
convertOutputValue,
|
|
1424
|
+
convertOutputValues,
|
|
1425
|
+
convertReactiveCapabilityCurvePointsFromBackToFront,
|
|
1426
|
+
convertReactiveCapabilityCurvePointsFromFrontToBack,
|
|
1427
|
+
convertTWTTapChangerModificationFromFrontToBack,
|
|
1371
1428
|
convertToLineSegmentInfos,
|
|
1372
1429
|
convertToLineSegmentsFormData,
|
|
1373
1430
|
convertToOperationalLimitsGroupFormSchema,
|
|
@@ -1420,6 +1477,7 @@ export {
|
|
|
1420
1477
|
emptyMoveVoltageLevelFeederBaysFormData,
|
|
1421
1478
|
emptyProcessConfigModificationsFormData,
|
|
1422
1479
|
emptyProperties,
|
|
1480
|
+
emptyTabularProperties,
|
|
1423
1481
|
enrichPccMinParameters,
|
|
1424
1482
|
enrichSecurityAnalysisParameters,
|
|
1425
1483
|
enrichSensitivityAnalysisParameters,
|
|
@@ -1485,6 +1543,7 @@ export {
|
|
|
1485
1543
|
fetchStudyMetadata,
|
|
1486
1544
|
fetchSubModificationsForExpandedRows,
|
|
1487
1545
|
fetchUserDetails,
|
|
1546
|
+
fetchUserQuotaState,
|
|
1488
1547
|
filledTextField,
|
|
1489
1548
|
filterEn,
|
|
1490
1549
|
filterExpertEn,
|
|
@@ -1499,10 +1558,12 @@ export {
|
|
|
1499
1558
|
flattenNmKResultsContingencies,
|
|
1500
1559
|
formatComputingTypeLabel,
|
|
1501
1560
|
formatMapInfosToTemporaryLimitsFormSchema,
|
|
1561
|
+
formatModification,
|
|
1502
1562
|
formatOpLimitGroupsToFormInfos,
|
|
1503
1563
|
formatTemporaryLimitsModificationToFormSchema,
|
|
1504
1564
|
formatToComposedModification,
|
|
1505
1565
|
genHelperError,
|
|
1566
|
+
generateCommentLines,
|
|
1506
1567
|
generateEmptyOperationalLimitsGroup,
|
|
1507
1568
|
generateTreeViewFinderClass,
|
|
1508
1569
|
generateUniqueId,
|
|
@@ -1576,7 +1637,10 @@ export {
|
|
|
1576
1637
|
getCsvDelimiter,
|
|
1577
1638
|
getDefaultRowData,
|
|
1578
1639
|
getDefaultSeverityFilter,
|
|
1640
|
+
getEmptyTabularFormData,
|
|
1579
1641
|
getEnergySourceLabel,
|
|
1642
|
+
getEquipmentTypeFromCreationType,
|
|
1643
|
+
getEquipmentTypeFromModificationType,
|
|
1580
1644
|
getEquipmentTypeShortLabel,
|
|
1581
1645
|
getEquipmentsInfosForSearchBar,
|
|
1582
1646
|
getExpertFilterEmptyFormData,
|
|
@@ -1662,6 +1726,7 @@ export {
|
|
|
1662
1726
|
getRows,
|
|
1663
1727
|
getSecurityAnalysisDefaultLimitReductions,
|
|
1664
1728
|
getSecurityAnalysisParameters,
|
|
1729
|
+
getSelectedTabularPropertyNames,
|
|
1665
1730
|
getSensiUrl,
|
|
1666
1731
|
getSensitivityAnalysisFactorsCount,
|
|
1667
1732
|
getSensitivityAnalysisParameters,
|
|
@@ -1682,6 +1747,7 @@ export {
|
|
|
1682
1747
|
getSystemLanguage,
|
|
1683
1748
|
getTabIndicatorStyle,
|
|
1684
1749
|
getTabStyle,
|
|
1750
|
+
getTabularFieldType,
|
|
1685
1751
|
getTapChangerEquipmentSectionTypeValue,
|
|
1686
1752
|
getTapSideForEdit,
|
|
1687
1753
|
getTapSideLabel,
|
|
@@ -1710,6 +1776,7 @@ export {
|
|
|
1710
1776
|
initializeAuthenticationProd,
|
|
1711
1777
|
initializeDirectory,
|
|
1712
1778
|
initializedProperty,
|
|
1779
|
+
initializedTabularProperty,
|
|
1713
1780
|
intlInitialVoltageProfileMode,
|
|
1714
1781
|
intlPredefinedParametersOptions,
|
|
1715
1782
|
isBlankOrEmpty,
|
|
@@ -1721,6 +1788,7 @@ export {
|
|
|
1721
1788
|
isEmpty,
|
|
1722
1789
|
isExploreMetadata,
|
|
1723
1790
|
isFieldRequired,
|
|
1791
|
+
isFieldTypeOk,
|
|
1724
1792
|
isFloatNumber,
|
|
1725
1793
|
isInjection,
|
|
1726
1794
|
isIntegerNumber,
|
|
@@ -1818,12 +1886,14 @@ export {
|
|
|
1818
1886
|
sanitizeLimitNames,
|
|
1819
1887
|
sanitizeLimitsGroups,
|
|
1820
1888
|
sanitizePercentageValue,
|
|
1889
|
+
sanitizeRowValue,
|
|
1821
1890
|
sanitizeString,
|
|
1822
1891
|
saveExpertFilter,
|
|
1823
1892
|
saveExplicitNamingFilter,
|
|
1824
1893
|
saveFilter,
|
|
1825
1894
|
setCommonStore,
|
|
1826
1895
|
setCurrentReactiveCapabilityCurveTable,
|
|
1896
|
+
setFieldTypeError,
|
|
1827
1897
|
setLoadFlowParameters,
|
|
1828
1898
|
setLoggedUser,
|
|
1829
1899
|
setLogoutError,
|
|
@@ -1868,6 +1938,12 @@ export {
|
|
|
1868
1938
|
syncGlobalFilters,
|
|
1869
1939
|
tableEn,
|
|
1870
1940
|
tableFr,
|
|
1941
|
+
tabularCreationDtoToForm,
|
|
1942
|
+
tabularCreationFormToDto,
|
|
1943
|
+
tabularFormSchema,
|
|
1944
|
+
tabularModificationDtoToForm,
|
|
1945
|
+
tabularModificationFormToDto,
|
|
1946
|
+
tabularPropertiesSchema,
|
|
1871
1947
|
testQuery,
|
|
1872
1948
|
testValueWithinPowerInterval,
|
|
1873
1949
|
textFilterParams,
|
|
@@ -1884,7 +1960,12 @@ export {
|
|
|
1884
1960
|
toTapChangerStepList,
|
|
1885
1961
|
topBarEn,
|
|
1886
1962
|
topBarFr,
|
|
1963
|
+
transformCreationsTable,
|
|
1887
1964
|
transformIfFrenchNumber,
|
|
1965
|
+
transformModificationsTable,
|
|
1966
|
+
transformProperties,
|
|
1967
|
+
transformRowToBackEndCreation,
|
|
1968
|
+
transformRowToBackEndModification,
|
|
1888
1969
|
translateSwitchKinds,
|
|
1889
1970
|
treeviewFinderEn,
|
|
1890
1971
|
treeviewFinderFr,
|
|
@@ -1949,7 +2030,6 @@ export {
|
|
|
1949
2030
|
useStateBoolean,
|
|
1950
2031
|
useStateNumber,
|
|
1951
2032
|
useTabs,
|
|
1952
|
-
useTabsWithError,
|
|
1953
2033
|
useUniqueNameValidationEn,
|
|
1954
2034
|
useUniqueNameValidationFr,
|
|
1955
2035
|
useValid,
|
|
@@ -1968,5 +2048,9 @@ export {
|
|
|
1968
2048
|
voltageLevelSectionCreationDtoToForm,
|
|
1969
2049
|
voltageLevelSectionCreationEmptyFormData,
|
|
1970
2050
|
voltageLevelSectionCreationFormSchema,
|
|
1971
|
-
voltageLevelSectionCreationFormToDto
|
|
2051
|
+
voltageLevelSectionCreationFormToDto,
|
|
2052
|
+
voltageLevelTopologyModificationDtoToForm,
|
|
2053
|
+
voltageLevelTopologyModificationEmptyFormData,
|
|
2054
|
+
voltageLevelTopologyModificationFormSchema,
|
|
2055
|
+
voltageLevelTopologyModificationFormToDto
|
|
1972
2056
|
};
|
|
@@ -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
|
};
|