@gridsuite/commons-ui 0.107.0 → 0.108.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/dialogs/elementSaveDialog/ElementSaveDialog.js +10 -10
- package/dist/components/directoryItemSelector/DirectoryItemSelector.js +1 -0
- package/dist/components/dnd-table/dnd-table-add-rows-dialog.d.ts +13 -0
- package/dist/components/dnd-table/dnd-table-add-rows-dialog.js +69 -0
- package/dist/components/dnd-table/dnd-table-bottom-left-buttons.d.ts +17 -0
- package/dist/components/dnd-table/dnd-table-bottom-left-buttons.js +48 -0
- package/dist/components/dnd-table/dnd-table-bottom-right-buttons.d.ts +17 -0
- package/dist/components/dnd-table/dnd-table-bottom-right-buttons.js +104 -0
- package/dist/components/dnd-table/dnd-table.d.ts +28 -0
- package/dist/components/dnd-table/dnd-table.js +394 -0
- package/dist/components/dnd-table/dnd-table.type.d.ts +51 -0
- package/dist/components/dnd-table/dnd-table.type.js +16 -0
- package/dist/components/dnd-table/index.d.ts +11 -0
- package/dist/components/dnd-table/index.js +14 -0
- package/dist/components/filter/HeaderFilterForm.js +4 -4
- package/dist/components/filter/expert/expertFilterConstants.d.ts +15 -0
- package/dist/components/filter/expert/expertFilterConstants.js +28 -0
- package/dist/components/filter/expert/expertFilterUtils.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +57 -1
- package/dist/components/inputs/index.js +6 -0
- package/dist/components/inputs/reactHookForm/chip-items-input.d.ts +13 -0
- package/dist/components/inputs/reactHookForm/chip-items-input.js +129 -0
- package/dist/components/inputs/reactHookForm/index.d.ts +2 -0
- package/dist/components/inputs/reactHookForm/index.js +6 -0
- package/dist/components/inputs/reactHookForm/tableInputs/index.d.ts +8 -0
- package/dist/components/inputs/reactHookForm/tableInputs/index.js +6 -0
- package/dist/components/inputs/reactHookForm/tableInputs/table-numerical-input.d.ts +12 -0
- package/dist/components/inputs/reactHookForm/tableInputs/table-numerical-input.js +110 -0
- package/dist/components/inputs/reactHookForm/tableInputs/table-text-input.d.ts +8 -0
- package/dist/components/inputs/reactHookForm/tableInputs/table-text-input.js +43 -0
- package/dist/components/inputs/reactQueryBuilder/ValueEditor.js +4 -2
- package/dist/components/parameters/common/ProviderParam.js +6 -6
- package/dist/components/parameters/common/constant.d.ts +8 -0
- package/dist/components/parameters/common/constant.js +12 -1
- package/dist/components/parameters/common/index.js +3 -1
- package/dist/components/parameters/common/limitreductions/limit-reduction-table-cell.js +7 -7
- package/dist/components/parameters/common/limitreductions/limit-reductions-table-form.js +6 -6
- package/dist/components/parameters/common/name-element-editor/name-element-editor-form.js +8 -8
- package/dist/components/parameters/common/name-element-editor/name-element-editor-utils.js +11 -10
- package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table-cell.js +7 -7
- package/dist/components/parameters/common/widget/parameter-float.js +6 -6
- package/dist/components/parameters/common/widget/parameter-line-directory-items-input.js +11 -10
- package/dist/components/parameters/common/widget/parameter-line-slider.js +6 -6
- package/dist/components/parameters/index.d.ts +1 -0
- package/dist/components/parameters/index.js +39 -1
- package/dist/components/parameters/loadflow/load-flow-general-parameters.js +6 -6
- package/dist/components/parameters/loadflow/load-flow-parameter-field.js +6 -6
- package/dist/components/parameters/loadflow/load-flow-parameters-form.js +6 -6
- package/dist/components/parameters/loadflow/load-flow-parameters-header.js +6 -6
- package/dist/components/parameters/loadflow/load-flow-parameters-inline.js +3 -3
- package/dist/components/parameters/loadflow/use-load-flow-parameters-form.js +2 -1
- package/dist/components/parameters/network-visualizations/network-area-diagram-parameters.js +6 -6
- package/dist/components/parameters/network-visualizations/network-visualizations-form.js +7 -7
- package/dist/components/parameters/network-visualizations/network-visualizations-parameters-dialog.js +3 -3
- package/dist/components/parameters/network-visualizations/network-visualizations-parameters-inline.js +2 -2
- package/dist/components/parameters/network-visualizations/use-network-visualizations-parameters-form.js +12 -11
- package/dist/components/parameters/short-circuit/short-circuit-fields.js +5 -5
- package/dist/components/parameters/short-circuit/short-circuit-parameters-dialog.js +3 -3
- package/dist/components/parameters/short-circuit/short-circuit-parameters-form.js +6 -6
- package/dist/components/parameters/short-circuit/short-circuit-parameters-inline.js +2 -2
- package/dist/components/parameters/short-circuit/use-short-circuit-parameters-form.js +11 -10
- package/dist/components/parameters/voltage-init/constants.d.ts +39 -0
- package/dist/components/parameters/voltage-init/constants.js +65 -0
- package/dist/components/parameters/voltage-init/equipment-selection-parameters.d.ts +7 -0
- package/dist/components/parameters/voltage-init/equipment-selection-parameters.js +119 -0
- package/dist/components/parameters/voltage-init/general-parameters.d.ts +4 -0
- package/dist/components/parameters/voltage-init/general-parameters.js +112 -0
- package/dist/components/parameters/voltage-init/index.d.ts +10 -0
- package/dist/components/parameters/voltage-init/index.js +38 -0
- package/dist/components/parameters/voltage-init/use-voltage-init-parameters-form.d.ts +32 -0
- package/dist/components/parameters/voltage-init/use-voltage-init-parameters-form.js +218 -0
- package/dist/components/parameters/voltage-init/voltage-init-form-utils.d.ts +4 -0
- package/dist/components/parameters/voltage-init/voltage-init-form-utils.js +220 -0
- package/dist/components/parameters/voltage-init/voltage-init-parameters-dialog.d.ts +2 -0
- package/dist/components/parameters/voltage-init/voltage-init-parameters-dialog.js +97 -0
- package/dist/components/parameters/voltage-init/voltage-init-parameters-form.d.ts +30 -0
- package/dist/components/parameters/voltage-init/voltage-init-parameters-form.js +150 -0
- package/dist/components/parameters/voltage-init/voltage-init-parameters-inline.d.ts +8 -0
- package/dist/components/parameters/voltage-init/voltage-init-parameters-inline.js +152 -0
- package/dist/components/parameters/voltage-init/voltage-init.type.d.ts +33 -0
- package/dist/components/parameters/voltage-init/voltage-init.type.js +8 -0
- package/dist/components/parameters/voltage-init/voltage-limits-parameters.d.ts +7 -0
- package/dist/components/parameters/voltage-init/voltage-limits-parameters.js +188 -0
- package/dist/components/treeViewFinder/TreeViewFinder.d.ts +2 -0
- package/dist/index.js +69 -2
- package/dist/services/index.d.ts +1 -0
- package/dist/services/index.js +6 -2
- package/dist/services/study.d.ts +2 -0
- package/dist/services/study.js +15 -1
- package/dist/services/voltage-init.d.ts +4 -0
- package/dist/services/voltage-init.js +14 -0
- package/dist/translations/en/dndTableEn.d.ts +16 -0
- package/dist/translations/en/dndTableEn.js +13 -0
- package/dist/translations/en/filterExpertEn.d.ts +3 -0
- package/dist/translations/en/filterExpertEn.js +4 -1
- package/dist/translations/en/index.d.ts +1 -0
- package/dist/translations/en/index.js +2 -0
- package/dist/translations/en/parameters.d.ts +30 -0
- package/dist/translations/en/parameters.js +31 -1
- package/dist/translations/fr/dndTableFr.d.ts +16 -0
- package/dist/translations/fr/dndTableFr.js +13 -0
- package/dist/translations/fr/filterExpertFr.d.ts +3 -0
- package/dist/translations/fr/filterExpertFr.js +4 -1
- package/dist/translations/fr/index.d.ts +1 -0
- package/dist/translations/fr/index.js +2 -0
- package/dist/translations/fr/parameters.d.ts +31 -0
- package/dist/translations/fr/parameters.js +32 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +3 -0
- package/dist/utils/types/fieldType.d.ts +3 -0
- package/dist/utils/types/fieldType.js +3 -0
- package/dist/utils/validation-functions.d.ts +8 -0
- package/dist/utils/validation-functions.js +23 -0
- package/package.json +1 -1
|
@@ -116,4 +116,35 @@ export declare const parametersFr: {
|
|
|
116
116
|
nominalInitialVoltageProfileMode: string;
|
|
117
117
|
cei909InitialVoltageProfileMode: string;
|
|
118
118
|
Or: string;
|
|
119
|
+
updateVoltageInitParametersError: string;
|
|
120
|
+
VoltageInitParametersGeneralTabLabel: string;
|
|
121
|
+
VoltageInitParametersGeneralApplyModificationsLabel: string;
|
|
122
|
+
VoltageInitParametersGeneralSaveInfo: string;
|
|
123
|
+
VoltageInitParametersGeneralUpdateBusVoltageLabel: string;
|
|
124
|
+
VoltageInitParametersEquipmentsSelectionAlert: string;
|
|
125
|
+
VoltageLimits: string;
|
|
126
|
+
VoltageLevelFilter: string;
|
|
127
|
+
LowVoltageLimitDefault: string;
|
|
128
|
+
HighVoltageLimitDefault: string;
|
|
129
|
+
LowVoltageLimitAdjustment: string;
|
|
130
|
+
HighVoltageLimitAdjustment: string;
|
|
131
|
+
VoltageLevelFilterTooltip: string;
|
|
132
|
+
FilterInputMinError: string;
|
|
133
|
+
EquipmentSelection: string;
|
|
134
|
+
ReactiveSlacksThreshold: string;
|
|
135
|
+
ReactiveSlacksThresholdMustBeGreaterOrEqualToZero: string;
|
|
136
|
+
ShuntCompensatorActivationThreshold: string;
|
|
137
|
+
ShuntCompensatorActivationThresholdMustBeGreaterOrEqualToZero: string;
|
|
138
|
+
ShuntCompensatorActivationThresholdDescription: string;
|
|
139
|
+
VoltageInitParametersError: string;
|
|
140
|
+
voltageInitCancelError: string;
|
|
141
|
+
AdjustExistingLimits: string;
|
|
142
|
+
AdjustExistingLimitsInfo: string;
|
|
143
|
+
SetDefaultLimits: string;
|
|
144
|
+
allExcept: string;
|
|
145
|
+
noneExcept: string;
|
|
146
|
+
FiltersListsSelection: string;
|
|
147
|
+
VariableGenerators: string;
|
|
148
|
+
VariableTransformers: string;
|
|
149
|
+
VariableShuntCompensators: string;
|
|
119
150
|
};
|
|
@@ -109,7 +109,38 @@ const parametersFr = {
|
|
|
109
109
|
iscMinWithNominalVoltageMapPredefinedParams: "Pcc min à tension normalisée",
|
|
110
110
|
nominalInitialVoltageProfileMode: "Normalisé",
|
|
111
111
|
cei909InitialVoltageProfileMode: "CEI 909",
|
|
112
|
-
Or: "ou"
|
|
112
|
+
Or: "ou",
|
|
113
|
+
updateVoltageInitParametersError: "Une erreur est survenue lors de la mise a jour des paramètres de l'initialisation du plan de tension",
|
|
114
|
+
VoltageInitParametersGeneralTabLabel: "Général",
|
|
115
|
+
VoltageInitParametersGeneralApplyModificationsLabel: "Appliquer automatiquement la modification du plan de tension",
|
|
116
|
+
VoltageInitParametersGeneralSaveInfo: "Cette option ne sera pas enregistrée et sera mise à la valeur par défaut en cas d'insertion de paramètres depuis GridExplore",
|
|
117
|
+
VoltageInitParametersGeneralUpdateBusVoltageLabel: "Mettre à jour tension des nœuds électriques",
|
|
118
|
+
VoltageInitParametersEquipmentsSelectionAlert: "Les consignes des CSPR et des stations VSC sont toujours considérées comme variables",
|
|
119
|
+
VoltageLimits: "Limites de tension",
|
|
120
|
+
VoltageLevelFilter: "Filtre poste",
|
|
121
|
+
LowVoltageLimitDefault: "Valeur par défaut limite basse",
|
|
122
|
+
HighVoltageLimitDefault: "Valeur par défaut limite haute",
|
|
123
|
+
LowVoltageLimitAdjustment: "Modification limite basse",
|
|
124
|
+
HighVoltageLimitAdjustment: "Modification limite haute",
|
|
125
|
+
VoltageLevelFilterTooltip: "Les saisies sont appliquées dans l'ordre de la liste (en remplaçant éventuellement des saisies au fur et à mesure si un poste est inclus dans plusieurs filtres)",
|
|
126
|
+
FilterInputMinError: "Vous devez sélectionner au moins un filtre",
|
|
127
|
+
EquipmentSelection: "Sélection des ouvrages",
|
|
128
|
+
ReactiveSlacksThreshold: "Seuil d'alerte sur les investissements réactifs",
|
|
129
|
+
ReactiveSlacksThresholdMustBeGreaterOrEqualToZero: "Le seuil doit être supérieur ou égal à 0",
|
|
130
|
+
ShuntCompensatorActivationThreshold: "Seuil d'alerte sur l'enclenchement des MCS",
|
|
131
|
+
ShuntCompensatorActivationThresholdMustBeGreaterOrEqualToZero: "Le seuil doit être supérieur ou égal à 0",
|
|
132
|
+
ShuntCompensatorActivationThresholdDescription: "Seuil (en MVar) au-dessus duquel on considère qu'il y a un écart significatif (et donc tracé dans les logs fonctionnels) entre valeur arrondie et valeur théorique pour l'enclenchement d'un MCS",
|
|
133
|
+
VoltageInitParametersError: "Erreur lors de la mise à jour des paramètres d'initialisation du plan de tension",
|
|
134
|
+
voltageInitCancelError: "L'initialisation du plan de tension n'a pas pu être annulée",
|
|
135
|
+
AdjustExistingLimits: "Modifier les limites existantes",
|
|
136
|
+
AdjustExistingLimitsInfo: "Merci de saisir une valeur positive pour augmenter une limite existante et une valeur négative pour abaisser une limite existante (nouvelle limite = limite existante + valeur saisie).",
|
|
137
|
+
SetDefaultLimits: "Valeurs par défaut pour compléter les limites manquantes",
|
|
138
|
+
allExcept: "Tous sauf",
|
|
139
|
+
noneExcept: "Aucun sauf",
|
|
140
|
+
FiltersListsSelection: "Sélection des listes de filtres",
|
|
141
|
+
VariableGenerators: "Groupes à puissance réactive variable",
|
|
142
|
+
VariableTransformers: "Transformateurs variables",
|
|
143
|
+
VariableShuntCompensators: "MCS variables"
|
|
113
144
|
};
|
|
114
145
|
export {
|
|
115
146
|
parametersFr
|
package/dist/utils/index.d.ts
CHANGED
package/dist/utils/index.js
CHANGED
|
@@ -20,6 +20,7 @@ import { ParameterType } from "./types/parameters.type.js";
|
|
|
20
20
|
import { SolverTypeInfos } from "./types/dynamic-simulation.type.js";
|
|
21
21
|
import { EnergySource } from "./types/non-evacuated-energy.type.js";
|
|
22
22
|
import { DistributionType, SensitivityType } from "./types/sensitivity-analysis.type.js";
|
|
23
|
+
import { toNumber, validateValueIsANumber } from "./validation-functions.js";
|
|
23
24
|
import "./yupConfig.js";
|
|
24
25
|
import * as yup from "yup";
|
|
25
26
|
export {
|
|
@@ -100,7 +101,9 @@ export {
|
|
|
100
101
|
roundToDefaultPrecision,
|
|
101
102
|
roundToPrecision,
|
|
102
103
|
toNestedGlobalSelectors,
|
|
104
|
+
toNumber,
|
|
103
105
|
unitToKiloUnit,
|
|
104
106
|
unitToMicroUnit,
|
|
107
|
+
validateValueIsANumber,
|
|
105
108
|
yup as yupConfig
|
|
106
109
|
};
|
|
@@ -107,6 +107,9 @@ export declare enum FieldType {
|
|
|
107
107
|
PHASE_REGULATION_VALUE_1 = "PHASE_REGULATION_VALUE_1",
|
|
108
108
|
PHASE_REGULATION_VALUE_2 = "PHASE_REGULATION_VALUE_2",
|
|
109
109
|
PHASE_REGULATION_VALUE_3 = "PHASE_REGULATION_VALUE_3",
|
|
110
|
+
SUBSTATION_ID = "SUBSTATION_ID",
|
|
111
|
+
SUBSTATION_ID_1 = "SUBSTATION_ID_1",
|
|
112
|
+
SUBSTATION_ID_2 = "SUBSTATION_ID_2",
|
|
110
113
|
SUBSTATION_PROPERTIES = "SUBSTATION_PROPERTIES",
|
|
111
114
|
SUBSTATION_PROPERTIES_1 = "SUBSTATION_PROPERTIES_1",
|
|
112
115
|
SUBSTATION_PROPERTIES_2 = "SUBSTATION_PROPERTIES_2",
|
|
@@ -101,6 +101,9 @@ var FieldType = /* @__PURE__ */ ((FieldType2) => {
|
|
|
101
101
|
FieldType2["PHASE_REGULATION_VALUE_1"] = "PHASE_REGULATION_VALUE_1";
|
|
102
102
|
FieldType2["PHASE_REGULATION_VALUE_2"] = "PHASE_REGULATION_VALUE_2";
|
|
103
103
|
FieldType2["PHASE_REGULATION_VALUE_3"] = "PHASE_REGULATION_VALUE_3";
|
|
104
|
+
FieldType2["SUBSTATION_ID"] = "SUBSTATION_ID";
|
|
105
|
+
FieldType2["SUBSTATION_ID_1"] = "SUBSTATION_ID_1";
|
|
106
|
+
FieldType2["SUBSTATION_ID_2"] = "SUBSTATION_ID_2";
|
|
104
107
|
FieldType2["SUBSTATION_PROPERTIES"] = "SUBSTATION_PROPERTIES";
|
|
105
108
|
FieldType2["SUBSTATION_PROPERTIES_1"] = "SUBSTATION_PROPERTIES_1";
|
|
106
109
|
FieldType2["SUBSTATION_PROPERTIES_2"] = "SUBSTATION_PROPERTIES_2";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, RTE (http://www.rte-france.com)
|
|
3
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
|
+
*/
|
|
7
|
+
export declare function toNumber(value: unknown): number;
|
|
8
|
+
export declare function validateValueIsANumber(value?: string | number | null | boolean): value is number;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
function toNumber(value) {
|
|
2
|
+
if (typeof value === "number") {
|
|
3
|
+
return value;
|
|
4
|
+
}
|
|
5
|
+
if (typeof value === "string") {
|
|
6
|
+
const sanitizedString = value.replace(",", ".").trim();
|
|
7
|
+
if (value.length > 0) {
|
|
8
|
+
return Number(sanitizedString);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
console.error("Error while trying to convert a value to Number. Value :", value);
|
|
12
|
+
return NaN;
|
|
13
|
+
}
|
|
14
|
+
function validateValueIsANumber(value) {
|
|
15
|
+
if (value == null || value === "") {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
return !Number.isNaN(toNumber(value));
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
toNumber,
|
|
22
|
+
validateValueIsANumber
|
|
23
|
+
};
|