@gridsuite/commons-ui 0.256.0 → 0.258.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/filter/FilterCreationDialog.js +6 -2
- package/dist/components/composite/filter/FilterForm.js +10 -0
- package/dist/components/composite/filter/HeaderFilterForm.d.ts +0 -10
- package/dist/components/composite/filter/HeaderFilterForm.js +7 -16
- package/dist/components/composite/filter/expert/ExpertFilterForm.js +3 -3
- package/dist/components/index.js +8 -0
- package/dist/components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js +2 -1
- package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +2 -1
- package/dist/components/ui/dialogs/index.d.ts +1 -0
- package/dist/components/ui/dialogs/index.js +8 -0
- package/dist/{features/parameters/common → components/ui/dialogs}/name-element-editor/index.d.ts +2 -1
- package/dist/components/ui/dialogs/name-element-editor/index.js +10 -0
- package/dist/{features/parameters/common → components/ui/dialogs}/name-element-editor/name-element-editor-form.js +5 -5
- package/dist/{features/parameters/common → components/ui/dialogs}/name-element-editor/name-element-editor-utils.d.ts +13 -3
- package/dist/{features/parameters/common → components/ui/dialogs}/name-element-editor/name-element-editor-utils.js +27 -22
- package/dist/components/ui/dialogs/name-element-editor/named-element-edition-dialog.d.ts +17 -0
- package/dist/components/ui/dialogs/name-element-editor/named-element-edition-dialog.js +49 -0
- package/dist/components/ui/index.js +8 -0
- package/dist/features/global-filter/context/global-filter-context-provider.d.ts +2 -0
- package/dist/features/global-filter/context/global-filter-context-provider.js +41 -0
- package/dist/features/global-filter/context/global-filter-context.d.ts +3 -0
- package/dist/features/global-filter/context/global-filter-context.js +13 -0
- package/dist/features/global-filter/context/global-filter-context.type.d.ts +14 -0
- package/dist/features/global-filter/context/global-filter-context.type.js +1 -0
- package/dist/features/global-filter/context/index.d.ts +8 -0
- package/dist/features/global-filter/context/index.js +4 -0
- package/dist/features/global-filter/global-filter.style.d.ts +162 -0
- package/dist/features/global-filter/global-filter.style.js +190 -0
- package/dist/features/global-filter/index.d.ts +10 -0
- package/dist/features/global-filter/index.js +31 -0
- package/dist/features/global-filter/types/global-filter.type.d.ts +51 -0
- package/dist/features/global-filter/types/global-filter.type.js +19 -0
- package/dist/features/global-filter/types/index.d.ts +8 -0
- package/dist/features/global-filter/types/index.js +8 -0
- package/dist/features/global-filter/types/limit-violation.type.d.ts +11 -0
- package/dist/features/global-filter/types/limit-violation.type.js +9 -0
- package/dist/features/global-filter/ui/global-filter-dropdown-panel.d.ts +10 -0
- package/dist/features/global-filter/ui/global-filter-dropdown-panel.js +251 -0
- package/dist/features/global-filter/ui/global-filter-panel.d.ts +9 -0
- package/dist/features/global-filter/ui/global-filter-panel.js +391 -0
- package/dist/features/global-filter/ui/label-with-info-tooltip.d.ts +12 -0
- package/dist/features/global-filter/ui/label-with-info-tooltip.js +24 -0
- package/dist/features/global-filter/ui/selected-global-filters.d.ts +4 -0
- package/dist/features/global-filter/ui/selected-global-filters.js +114 -0
- package/dist/features/global-filter/utils/build-valid-global-filters.d.ts +8 -0
- package/dist/features/global-filter/utils/build-valid-global-filters.js +51 -0
- package/dist/features/global-filter/utils/editing-global-filter-sync.d.ts +9 -0
- package/dist/features/global-filter/utils/editing-global-filter-sync.js +15 -0
- package/dist/features/global-filter/utils/global-filter-state.utils.d.ts +14 -0
- package/dist/features/global-filter/utils/global-filter-state.utils.js +71 -0
- package/dist/features/global-filter/utils/global-filter-sync.utils.d.ts +9 -0
- package/dist/features/global-filter/utils/global-filter-sync.utils.js +26 -0
- package/dist/features/global-filter/utils/global-filter-utils.d.ts +7 -0
- package/dist/features/global-filter/utils/global-filter-utils.js +44 -0
- package/dist/features/global-filter/utils/index.d.ts +11 -0
- package/dist/features/global-filter/utils/index.js +21 -0
- package/dist/features/index.d.ts +1 -0
- package/dist/features/index.js +42 -8
- package/dist/features/network-modification-table/renderers/description-cell.js +4 -0
- package/dist/features/network-modifications/battery/creation/batteryCreation.utils.js +3 -2
- package/dist/features/network-modifications/battery/modification/batteryModification.utils.js +2 -1
- package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-form.js +2 -1
- package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-utils.js +2 -2
- package/dist/features/network-modifications/by-filter/formula/formula/formula-utils.js +5 -5
- package/dist/features/network-modifications/common/activePowerControl/activePowerControlForm.utils.js +2 -1
- package/dist/features/network-modifications/common/connectivity/connectivityForm.utils.js +2 -1
- package/dist/features/network-modifications/common/currentLimits/limitsPane.utils.js +2 -1
- package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/reactiveCapability.utils.js +2 -1
- package/dist/features/network-modifications/common/reactiveLimits/reactiveLimits.utils.js +3 -2
- package/dist/features/network-modifications/common/voltageRegulation/voltageRegulation.utils.js +3 -2
- package/dist/features/network-modifications/generator/creation/generatorCreation.utils.js +4 -3
- package/dist/features/network-modifications/generator/modification/generatorModification.utils.js +5 -4
- package/dist/features/network-modifications/line/characteristics/lineCharacteristicsPane.utils.js +7 -6
- package/dist/features/network-modifications/shunt-compensator/common/characteristicsForm.utils.js +7 -6
- package/dist/features/network-modifications/voltageLevel/creation/voltageLevelCreation.utils.js +10 -9
- package/dist/features/network-modifications/voltageLevel/modification/voltageLevelModification.utils.js +6 -5
- package/dist/features/parameters/common/hook/use-parameters-form.js +1 -2
- package/dist/features/parameters/common/limitreductions/columns-definitions.js +3 -2
- package/dist/features/parameters/common/parameters-creation-dialog.js +9 -0
- package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +0 -1
- package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-inline.js +0 -1
- package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.js +2 -2
- package/dist/features/parameters/dynamic-security-analysis/contingency-parameters.js +0 -1
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-inline.js +0 -1
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +0 -1
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-inline.js +0 -1
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +0 -1
- package/dist/features/parameters/dynamic-simulation/mapping/mapping-parameters.js +0 -1
- package/dist/features/parameters/loadflow/load-flow-advanced-parameters.js +0 -1
- package/dist/features/parameters/loadflow/load-flow-general-parameters.js +0 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-content.js +0 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-dialog.js +4 -8
- package/dist/features/parameters/loadflow/load-flow-parameters-header.js +0 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-inline.js +0 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-utils.js +0 -1
- package/dist/features/parameters/loadflow/load-flow-provider-specific-parameters.js +0 -1
- package/dist/features/parameters/loadflow/use-load-flow-parameters-form.js +1 -2
- package/dist/features/parameters/network-visualizations/network-visualizations-form.js +0 -1
- package/dist/features/parameters/network-visualizations/network-visualizations-parameters-dialog.js +3 -7
- package/dist/features/parameters/network-visualizations/network-visualizations-parameters-inline.js +0 -1
- package/dist/features/parameters/network-visualizations/use-network-visualizations-parameters-form.js +1 -2
- package/dist/features/parameters/pcc-min/pcc-min-parameters-dialog.js +1 -5
- package/dist/features/parameters/pcc-min/pcc-min-parameters-inline.js +0 -1
- package/dist/features/parameters/pcc-min/use-pcc-min-parameters-form.js +1 -2
- package/dist/features/parameters/security-analysis/columns-definitions.js +5 -5
- package/dist/features/parameters/security-analysis/security-analysis-parameters-content.js +0 -1
- package/dist/features/parameters/security-analysis/security-analysis-parameters-dialog.js +2 -6
- package/dist/features/parameters/security-analysis/security-analysis-parameters-form.js +0 -1
- package/dist/features/parameters/security-analysis/security-analysis-parameters-inline.js +0 -1
- package/dist/features/parameters/security-analysis/security-analysis-parameters-utils.js +0 -1
- package/dist/features/parameters/security-analysis/use-security-analysis-parameters-form.js +1 -2
- package/dist/features/parameters/sensi/columns-definitions.js +0 -1
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-dialog.js +1 -5
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.js +0 -1
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-inline.js +0 -1
- package/dist/features/parameters/sensi/sensitivity-parameters-selector.js +0 -1
- package/dist/features/parameters/sensi/use-sensitivity-analysis-parameters.js +1 -2
- package/dist/features/parameters/sensi/utils.js +1 -2
- package/dist/features/parameters/short-circuit/short-circuit-general-tab-panel.js +0 -1
- package/dist/features/parameters/short-circuit/short-circuit-parameters-content.js +0 -1
- package/dist/features/parameters/short-circuit/short-circuit-parameters-dialog.js +1 -5
- package/dist/features/parameters/short-circuit/short-circuit-parameters-inline.js +0 -1
- package/dist/features/parameters/short-circuit/short-circuit-parameters-utils.js +0 -1
- package/dist/features/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +0 -1
- package/dist/features/parameters/short-circuit/short-circuit-study-area-tab-panel.js +0 -1
- package/dist/features/parameters/short-circuit/use-short-circuit-parameters-form.js +1 -2
- package/dist/features/parameters/voltage-init/equipment-selection-parameters.js +0 -1
- package/dist/features/parameters/voltage-init/general-parameters.js +0 -1
- package/dist/features/parameters/voltage-init/use-voltage-init-parameters-form.js +4 -5
- package/dist/features/parameters/voltage-init/voltage-init-parameters-dialog.js +1 -5
- package/dist/features/parameters/voltage-init/voltage-init-parameters-form.js +0 -1
- package/dist/features/parameters/voltage-init/voltage-init-parameters-inline.js +0 -1
- package/dist/features/process-configs/common/index.d.ts +9 -0
- package/dist/features/process-configs/common/index.js +11 -0
- package/dist/features/process-configs/common/process-config-modifications-edition.d.ts +3 -0
- package/dist/features/process-configs/common/process-config-modifications-edition.js +129 -0
- package/dist/features/process-configs/common/process-config-modifications-edition.utils.d.ts +53 -0
- package/dist/features/process-configs/common/process-config-modifications-edition.utils.js +50 -0
- package/dist/features/process-configs/common/process-config.type.d.ts +14 -0
- package/dist/features/process-configs/index.d.ts +6 -3
- package/dist/features/process-configs/index.js +13 -8
- package/dist/features/process-configs/lf-process-config-edition-dialog.d.ts +3 -0
- package/dist/features/process-configs/lf-process-config-edition-dialog.js +136 -0
- package/dist/features/process-configs/loadflow/index.d.ts +9 -0
- package/dist/features/process-configs/loadflow/index.js +9 -0
- package/dist/features/process-configs/loadflow/lf-process-config-edition.d.ts +1 -0
- package/dist/features/process-configs/loadflow/lf-process-config-edition.js +91 -0
- package/dist/features/process-configs/loadflow/lf-process-config-edition.utils.d.ts +39 -0
- package/dist/features/process-configs/{security-analysis/update-sa-process-config-dialog.js → loadflow/lf-process-config-edition.utils.js} +53 -81
- package/dist/features/process-configs/loadflow/lf-process-config.type.d.ts +6 -0
- package/dist/features/process-configs/loadflow/lf-process-config.type.js +1 -0
- package/dist/features/process-configs/process-config-edition.utils.d.ts +13 -0
- package/dist/features/process-configs/process-config-edition.utils.js +1 -0
- package/dist/features/process-configs/process-config.type.d.ts +14 -0
- package/dist/features/process-configs/process-config.type.js +1 -0
- package/dist/features/process-configs/process-config.utils.d.ts +2 -0
- package/dist/features/process-configs/{update-process-config-modifications.js → process-config.utils.js} +11 -74
- package/dist/features/process-configs/sa-process-config-edition-dialog.d.ts +3 -0
- package/dist/features/process-configs/sa-process-config-edition-dialog.js +136 -0
- package/dist/features/process-configs/security-analysis/index.d.ts +4 -3
- package/dist/features/process-configs/security-analysis/index.js +7 -8
- package/dist/features/process-configs/security-analysis/sa-process-config-edition.d.ts +1 -0
- package/dist/features/process-configs/security-analysis/{update-sa-process-config.js → sa-process-config-edition.js} +5 -13
- package/dist/features/process-configs/security-analysis/sa-process-config-edition.utils.d.ts +45 -0
- package/dist/features/process-configs/security-analysis/sa-process-config-edition.utils.js +119 -0
- package/dist/features/process-configs/security-analysis/sa-process-config.type.d.ts +7 -0
- package/dist/features/process-configs/security-analysis/sa-process-config.type.js +1 -0
- package/dist/hooks/use-unique-name-validation.js +3 -2
- package/dist/index.js +77 -9
- package/dist/translations/en/descriptionEn.d.ts +0 -6
- package/dist/translations/en/descriptionEn.js +6 -1
- package/dist/translations/en/filterEn.d.ts +0 -2
- package/dist/translations/en/filterEn.js +0 -2
- package/dist/translations/en/generic-validationEn.d.ts +23 -0
- package/dist/translations/en/generic-validationEn.js +25 -0
- package/dist/translations/en/index.d.ts +2 -0
- package/dist/translations/en/index.js +4 -0
- package/dist/translations/en/network-modification-validationEn.d.ts +23 -0
- package/dist/translations/en/network-modification-validationEn.js +31 -0
- package/dist/translations/en/networkModificationsEn.d.ts +6 -33
- package/dist/translations/en/networkModificationsEn.js +0 -38
- package/dist/translations/en/parameters.d.ts +0 -2
- package/dist/translations/en/parameters.js +0 -2
- package/dist/translations/en/processConfigEn.d.ts +3 -0
- package/dist/translations/en/processConfigEn.js +5 -2
- package/dist/translations/en/use-unique-name-validation-en.d.ts +0 -2
- package/dist/translations/en/use-unique-name-validation-en.js +1 -3
- package/dist/translations/fr/descriptionFr.d.ts +0 -6
- package/dist/translations/fr/descriptionFr.js +6 -1
- package/dist/translations/fr/filterFr.d.ts +0 -2
- package/dist/translations/fr/filterFr.js +0 -2
- package/dist/translations/fr/generic-validationFr.d.ts +17 -0
- package/dist/translations/fr/generic-validationFr.js +25 -0
- package/dist/translations/fr/index.d.ts +2 -0
- package/dist/translations/fr/index.js +4 -0
- package/dist/translations/fr/network-modification-validationFr.d.ts +23 -0
- package/dist/translations/fr/network-modification-validationFr.js +31 -0
- package/dist/translations/fr/networkModificationsFr.d.ts +6 -33
- package/dist/translations/fr/networkModificationsFr.js +0 -38
- package/dist/translations/fr/parameters.d.ts +0 -2
- package/dist/translations/fr/parameters.js +0 -2
- package/dist/translations/fr/processConfigFr.d.ts +3 -0
- package/dist/translations/fr/processConfigFr.js +5 -2
- package/dist/translations/fr/use-unique-name-validation-fr.d.ts +0 -2
- package/dist/translations/fr/use-unique-name-validation-fr.js +1 -3
- package/dist/utils/constants/index.js +19 -1
- package/dist/utils/constants/translationKeys.d.ts +18 -0
- package/dist/utils/constants/translationKeys.js +36 -0
- package/dist/utils/index.js +19 -1
- package/package.json +1 -1
- package/dist/features/parameters/common/name-element-editor/index.js +0 -7
- package/dist/features/process-configs/process-configs.type.d.ts +0 -33
- package/dist/features/process-configs/security-analysis/update-sa-process-config-dialog.d.ts +0 -14
- package/dist/features/process-configs/security-analysis/update-sa-process-config.d.ts +0 -7
- package/dist/features/process-configs/security-analysis/update-sa-process-configs-utils.d.ts +0 -68
- package/dist/features/process-configs/security-analysis/update-sa-process-configs-utils.js +0 -88
- package/dist/features/process-configs/update-process-config-modifications.d.ts +0 -3
- /package/dist/{features/parameters/common → components/ui/dialogs}/name-element-editor/name-element-editor-form.d.ts +0 -0
- /package/dist/features/process-configs/{process-configs.type.js → common/process-config.type.js} +0 -0
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import * as yup from "yup";
|
|
2
|
+
import { FieldConstants } from "../../../utils/constants/fieldConstants.js";
|
|
3
|
+
import { YUP_REQUIRED } from "../../../utils/constants/translationKeys.js";
|
|
4
|
+
import "../../../utils/conversionUtils.js";
|
|
5
|
+
import "../../../utils/types/equipmentType.js";
|
|
6
|
+
import "react/jsx-runtime";
|
|
7
|
+
import "@mui/icons-material";
|
|
8
|
+
import { fetchElementNames } from "../../../services/directory.js";
|
|
9
|
+
import { ProcessType } from "../common/process-config.type.js";
|
|
10
|
+
import { emptyProcessConfigModificationsFormData, getProcessConfigModificationsFormData, processConfigModificationsShape, getProcessConfigModificationsBackendFromFormData } from "../common/process-config-modifications-edition.utils.js";
|
|
11
|
+
import "react-hook-form";
|
|
12
|
+
import "react";
|
|
13
|
+
import "react-intl";
|
|
14
|
+
import "@mui/material";
|
|
15
|
+
import "../../../components/ui/overflowableText/OverflowableText.js";
|
|
16
|
+
import "localized-countries";
|
|
17
|
+
import "localized-countries/data/fr";
|
|
18
|
+
import "localized-countries/data/en";
|
|
19
|
+
import "notistack";
|
|
20
|
+
import "../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
|
|
21
|
+
import "../../../components/ui/treeViewFinder/TreeViewFinder.js";
|
|
22
|
+
import "../../../components/ui/reactHookForm/numbers/RangeInput.js";
|
|
23
|
+
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
24
|
+
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
25
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
26
|
+
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
27
|
+
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
28
|
+
import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
29
|
+
import "../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
30
|
+
import "../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
|
|
31
|
+
import "@hello-pangea/dnd";
|
|
32
|
+
import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
33
|
+
import { getNameElementEditorEmptyFormData, getNameElementEditorSchema } from "../../../components/ui/dialogs/name-element-editor/name-element-editor-utils.js";
|
|
34
|
+
import "../../../components/ui/snackbarProvider/SnackbarProvider.js";
|
|
35
|
+
import "mui-nested-menu";
|
|
36
|
+
import "react-resizable-panels";
|
|
37
|
+
import "react-papaparse";
|
|
38
|
+
import "react-dom";
|
|
39
|
+
import "autosuggest-highlight/match";
|
|
40
|
+
import "autosuggest-highlight/parse";
|
|
41
|
+
import "clsx";
|
|
42
|
+
import "../../../components/composite/filter/FilterCreationDialog.js";
|
|
43
|
+
import "../../../components/composite/filter/HeaderFilterForm.js";
|
|
44
|
+
import "../../../components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js";
|
|
45
|
+
import "../../../components/composite/filter/expert/ExpertFilterForm.js";
|
|
46
|
+
import "../../../components/composite/filter/expert/ExpertFilterEditionDialog.js";
|
|
47
|
+
import "../../../components/composite/filter/expert/expertFilterConstants.js";
|
|
48
|
+
import "react-querybuilder";
|
|
49
|
+
import "uuid";
|
|
50
|
+
import "../../../components/composite/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js";
|
|
51
|
+
import "../../../components/composite/filter/utils/filterFormUtils.js";
|
|
52
|
+
import "@react-querybuilder/material";
|
|
53
|
+
import "../../../components/composite/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
54
|
+
import "../../../components/composite/reactQueryBuilder/PropertyValueEditor.js";
|
|
55
|
+
import "../../../components/composite/agGridTable/BottomTableButtons.js";
|
|
56
|
+
import "../../../components/composite/agGridTable/CustomAgGridTable.js";
|
|
57
|
+
import "ag-grid-community";
|
|
58
|
+
import "../../../components/composite/customAGGrid/customAggrid.js";
|
|
59
|
+
import "../../../components/composite/customAGGrid/context/custom-aggrid-context.js";
|
|
60
|
+
import "mathjs";
|
|
61
|
+
import "../../../components/composite/report/report-viewer/log-table/log-table.js";
|
|
62
|
+
import "react-window";
|
|
63
|
+
import "../../../components/composite/report/report-treeview/treeview-item.js";
|
|
64
|
+
import "../../../components/composite/report/report-viewer/context/report-viewer-context.js";
|
|
65
|
+
function getNamedSAProcessConfigFormSchema(initialName) {
|
|
66
|
+
const formSchema = yup.object().shape({
|
|
67
|
+
...processConfigModificationsShape,
|
|
68
|
+
[FieldConstants.LOADFLOW_PARAMETERS]: yup.array().required().of(yup.object().shape({ id: yup.string().required(), name: yup.string().required() })).length(1, YUP_REQUIRED),
|
|
69
|
+
[FieldConstants.SECURITY_ANALYSIS_PARAMETERS]: yup.array().required().of(yup.object().shape({ id: yup.string().required(), name: yup.string().required() })).length(1, YUP_REQUIRED)
|
|
70
|
+
});
|
|
71
|
+
return formSchema.concat(getNameElementEditorSchema(initialName));
|
|
72
|
+
}
|
|
73
|
+
function getEmptySAProcessConfigFormData(initialName, initialDescription) {
|
|
74
|
+
return {
|
|
75
|
+
...getNameElementEditorEmptyFormData(initialName, initialDescription),
|
|
76
|
+
...emptyProcessConfigModificationsFormData,
|
|
77
|
+
[FieldConstants.LOADFLOW_PARAMETERS]: [],
|
|
78
|
+
[FieldConstants.SECURITY_ANALYSIS_PARAMETERS]: []
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
async function getNamedSAProcessConfigFormData(processConfig, name, description) {
|
|
82
|
+
const allUuids = /* @__PURE__ */ new Set([
|
|
83
|
+
...processConfig.modifications.map((modification) => modification.modificationUuid),
|
|
84
|
+
processConfig.securityAnalysisParametersUuid,
|
|
85
|
+
processConfig.loadflowParametersUuid
|
|
86
|
+
]);
|
|
87
|
+
const elementNamesByUuid = await fetchElementNames(allUuids);
|
|
88
|
+
return {
|
|
89
|
+
name,
|
|
90
|
+
description: description ?? void 0,
|
|
91
|
+
...getProcessConfigModificationsFormData(processConfig.modifications, elementNamesByUuid),
|
|
92
|
+
[FieldConstants.SECURITY_ANALYSIS_PARAMETERS]: [
|
|
93
|
+
{
|
|
94
|
+
id: processConfig.securityAnalysisParametersUuid,
|
|
95
|
+
name: elementNamesByUuid[processConfig.securityAnalysisParametersUuid]
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
[FieldConstants.LOADFLOW_PARAMETERS]: [
|
|
99
|
+
{
|
|
100
|
+
id: processConfig.loadflowParametersUuid,
|
|
101
|
+
name: elementNamesByUuid[processConfig.loadflowParametersUuid]
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
function getSAProcessConfigBackendFromFormData(formData) {
|
|
107
|
+
return {
|
|
108
|
+
processType: ProcessType.SECURITY_ANALYSIS,
|
|
109
|
+
...getProcessConfigModificationsBackendFromFormData(formData[FieldConstants.MODIFICATIONS]),
|
|
110
|
+
securityAnalysisParametersUuid: formData[FieldConstants.SECURITY_ANALYSIS_PARAMETERS][0].id,
|
|
111
|
+
loadflowParametersUuid: formData[FieldConstants.LOADFLOW_PARAMETERS][0].id
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
export {
|
|
115
|
+
getEmptySAProcessConfigFormData,
|
|
116
|
+
getNamedSAProcessConfigFormData,
|
|
117
|
+
getNamedSAProcessConfigFormSchema,
|
|
118
|
+
getSAProcessConfigBackendFromFormData
|
|
119
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { UUID } from 'node:crypto';
|
|
2
|
+
import { ProcessConfigBaseBackend, ProcessType } from '../common';
|
|
3
|
+
export interface SecurityAnalysisProcessConfigBackend extends ProcessConfigBaseBackend {
|
|
4
|
+
processType: ProcessType.SECURITY_ANALYSIS;
|
|
5
|
+
securityAnalysisParametersUuid: UUID;
|
|
6
|
+
loadflowParametersUuid: UUID;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useRef, useCallback, useEffect } from "react";
|
|
2
2
|
import { useFormContext, useController } from "react-hook-form";
|
|
3
3
|
import { FieldConstants } from "../utils/constants/fieldConstants.js";
|
|
4
|
+
import { NAME_ALREADY_USED, NAME_EMPTY } from "../utils/constants/translationKeys.js";
|
|
4
5
|
import "../utils/conversionUtils.js";
|
|
5
6
|
import "../utils/types/equipmentType.js";
|
|
6
7
|
import "react/jsx-runtime";
|
|
@@ -41,7 +42,7 @@ function useUniqueNameValidation({
|
|
|
41
42
|
if (alreadyExist) {
|
|
42
43
|
setError(name, {
|
|
43
44
|
type: "validate",
|
|
44
|
-
message:
|
|
45
|
+
message: NAME_ALREADY_USED
|
|
45
46
|
});
|
|
46
47
|
}
|
|
47
48
|
}).catch(() => {
|
|
@@ -97,7 +98,7 @@ function useUniqueNameValidation({
|
|
|
97
98
|
clearErrors("root.isValidating");
|
|
98
99
|
setError(name, {
|
|
99
100
|
type: "validate",
|
|
100
|
-
message:
|
|
101
|
+
message: NAME_EMPTY
|
|
101
102
|
});
|
|
102
103
|
}
|
|
103
104
|
}, [
|
package/dist/index.js
CHANGED
|
@@ -59,6 +59,9 @@ import { initializeDirectory } from "./components/ui/dialogs/elementSaveDialog/u
|
|
|
59
59
|
import { ModifyElementSelection } from "./components/ui/dialogs/modifyElementSelection/ModifyElementSelection.js";
|
|
60
60
|
import { PopupConfirmationDialog } from "./components/ui/dialogs/popupConfirmationDialog/PopupConfirmationDialog.js";
|
|
61
61
|
import { MultipleSelectionDialog } from "./components/ui/dialogs/multipleSelectionDialog/MultipleSelectionDialog.js";
|
|
62
|
+
import { NameElementEditorForm } from "./components/ui/dialogs/name-element-editor/name-element-editor-form.js";
|
|
63
|
+
import { elementEditionStyles, getNameElementEditorEmptyFormData, getNameElementEditorSchema } from "./components/ui/dialogs/name-element-editor/name-element-editor-utils.js";
|
|
64
|
+
import { NamedElementEditionDialog } from "./components/ui/dialogs/name-element-editor/named-element-edition-dialog.js";
|
|
62
65
|
import { OverflowableText } from "./components/ui/overflowableText/OverflowableText.js";
|
|
63
66
|
import { SnackbarProvider } from "./components/ui/snackbarProvider/SnackbarProvider.js";
|
|
64
67
|
import { CustomTooltip } from "./components/ui/tooltip/CustomTooltip.js";
|
|
@@ -295,7 +298,7 @@ import { MAX_CHAR_DESCRIPTION } from "./utils/constants/uiConstants.js";
|
|
|
295
298
|
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";
|
|
296
299
|
import { COMMON_APP_NAME, COMMON_CONFIG_PARAMS_NAMES, LAST_SELECTED_DIRECTORY, PARAM_DEVELOPER_MODE, PARAM_LANGUAGE, PARAM_THEME } from "./utils/constants/configConstants.js";
|
|
297
300
|
import { FILTERS, FILTER_ID, FILTER_NAME, ID } from "./utils/constants/filterConstant.js";
|
|
298
|
-
import { DUPLICATED_PROPS_ERROR, YUP_DEFAULT, YUP_NOT_NULL, YUP_NOT_TYPE_DEFAULT, YUP_NOT_TYPE_NUMBER, YUP_POSITIVE, YUP_REQUIRED } from "./utils/constants/translationKeys.js";
|
|
301
|
+
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, 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";
|
|
299
302
|
import { GRIDSUITE_DEFAULT_PRECISION, convertInputValue, convertOutputValue, isBlankOrEmpty, kiloUnitToUnit, microUnitToUnit, roundToDefaultPrecision, roundToPrecision, toModificationOperation, unitToKiloUnit, unitToMicroUnit } from "./utils/conversionUtils.js";
|
|
300
303
|
import { catchErrorHandler, extractErrorMessageDescriptor, snackWithFallback } from "./utils/error.js";
|
|
301
304
|
import { isDisabledValidationButton } from "./utils/form-utils.js";
|
|
@@ -430,9 +433,21 @@ import { SecurityAnalysisResultNmk } from "./features/results/securityanalysis/s
|
|
|
430
433
|
import { SecurityAnalysisTable } from "./features/results/securityanalysis/security-analysis-table.js";
|
|
431
434
|
import { NmkType } from "./features/results/securityanalysis/security-analysis.type.js";
|
|
432
435
|
import { PAGE_OPTIONS, flattenNmKResultsConstraints, flattenNmKResultsContingencies, getNoRowsMessage, handlePostSortRows, mapNmKResultsCutOffPower } from "./features/results/securityanalysis/utils.js";
|
|
433
|
-
import {
|
|
434
|
-
import {
|
|
435
|
-
import {
|
|
436
|
+
import { ProcessType } from "./features/process-configs/common/process-config.type.js";
|
|
437
|
+
import { emptyProcessConfigModificationsFormData, getProcessConfigModificationsBackendFromFormData, getProcessConfigModificationsFormData, processConfigModificationsShape } from "./features/process-configs/common/process-config-modifications-edition.utils.js";
|
|
438
|
+
import { ProcessConfigModificationsEdition } from "./features/process-configs/common/process-config-modifications-edition.js";
|
|
439
|
+
import { isProcessType } from "./features/process-configs/process-config.utils.js";
|
|
440
|
+
import { LFProcessConfigEditionDialog } from "./features/process-configs/lf-process-config-edition-dialog.js";
|
|
441
|
+
import { SAProcessConfigEditionDialog } from "./features/process-configs/sa-process-config-edition-dialog.js";
|
|
442
|
+
import { GlobalFilterPanel } from "./features/global-filter/ui/global-filter-panel.js";
|
|
443
|
+
import { GlobalFilterType, isCriteriaFilter, isCriteriaFilterType } from "./features/global-filter/types/global-filter.type.js";
|
|
444
|
+
import { LimitTypes } from "./features/global-filter/types/limit-violation.type.js";
|
|
445
|
+
import { buildValidGlobalFilters } from "./features/global-filter/utils/build-valid-global-filters.js";
|
|
446
|
+
import { isEditingGlobalFilter, markEditingGlobalFilter, unmarkEditingGlobalFilter } from "./features/global-filter/utils/editing-global-filter-sync.js";
|
|
447
|
+
import { MAX_RECENT_GLOBAL_FILTERS, addSelectedGlobalFiltersToTableState, clearSelectedGlobalFiltersFromTableState, markNotFoundGlobalFiltersAsDeletedInState, removeSelectedGlobalFiltersFromTableState } from "./features/global-filter/utils/global-filter-state.utils.js";
|
|
448
|
+
import { syncGlobalFilters } from "./features/global-filter/utils/global-filter-sync.utils.js";
|
|
449
|
+
import { RECENT_FILTER, addGlobalFilterId, getGlobalFilterId, getOptionLabel } from "./features/global-filter/utils/global-filter-utils.js";
|
|
450
|
+
import { GlobalFilterContextProvider } from "./features/global-filter/context/global-filter-context-provider.js";
|
|
436
451
|
import { useStateBoolean } from "./hooks/customStates/useStateBoolean.js";
|
|
437
452
|
import { useStateNumber } from "./hooks/customStates/useStateNumber.js";
|
|
438
453
|
import { useModificationLabelComputer } from "./hooks/useModificationLabelComputer.js";
|
|
@@ -473,12 +488,14 @@ import { tableEn } from "./translations/en/tableEn.js";
|
|
|
473
488
|
import { topBarEn } from "./translations/en/topBarEn.js";
|
|
474
489
|
import { treeviewFinderEn } from "./translations/en/treeviewFinderEn.js";
|
|
475
490
|
import { networkModificationsEn } from "./translations/en/networkModificationsEn.js";
|
|
491
|
+
import { networkModificationValidationEn } from "./translations/en/network-modification-validationEn.js";
|
|
476
492
|
import { exportParamsEn } from "./translations/en/external/exportParamsEn.js";
|
|
477
493
|
import { importParamsEn } from "./translations/en/external/importParamsEn.js";
|
|
478
494
|
import { componentsEn } from "./translations/en/componentsEn.js";
|
|
479
495
|
import { parametersEn } from "./translations/en/parameters.js";
|
|
480
496
|
import { useUniqueNameValidationEn } from "./translations/en/use-unique-name-validation-en.js";
|
|
481
497
|
import { processConfigEn } from "./translations/en/processConfigEn.js";
|
|
498
|
+
import { genericValidationEn } from "./translations/en/generic-validationEn.js";
|
|
482
499
|
import { cardErrorBoundaryFr } from "./translations/fr/cardErrorBoundaryFr.js";
|
|
483
500
|
import { businessErrorsFr } from "./translations/fr/businessErrorsFr.js";
|
|
484
501
|
import { commonButtonFr } from "./translations/fr/commonButtonFr.js";
|
|
@@ -503,15 +520,18 @@ import { tableFr } from "./translations/fr/tableFr.js";
|
|
|
503
520
|
import { topBarFr } from "./translations/fr/topBarFr.js";
|
|
504
521
|
import { treeviewFinderFr } from "./translations/fr/treeviewFinderFr.js";
|
|
505
522
|
import { networkModificationsFr } from "./translations/fr/networkModificationsFr.js";
|
|
523
|
+
import { networkModificationValidationFr } from "./translations/fr/network-modification-validationFr.js";
|
|
506
524
|
import { exportParamsFr } from "./translations/fr/external/exportParamsFr.js";
|
|
507
525
|
import { importParamsFr } from "./translations/fr/external/importParamsFr.js";
|
|
508
526
|
import { componentsFr } from "./translations/fr/componentsFr.js";
|
|
509
527
|
import { parametersFr } from "./translations/fr/parameters.js";
|
|
510
528
|
import { useUniqueNameValidationFr } from "./translations/fr/use-unique-name-validation-fr.js";
|
|
511
529
|
import { processConfigFr } from "./translations/fr/processConfigFr.js";
|
|
530
|
+
import { genericValidationFr } from "./translations/fr/generic-validationFr.js";
|
|
512
531
|
export {
|
|
513
532
|
ACCURACY,
|
|
514
533
|
ACTIVE,
|
|
534
|
+
ACTIVE_LIMITS_MIN_MAX_INVALID,
|
|
515
535
|
ADVANCED_PARAMETERS,
|
|
516
536
|
ALL_EQUIPMENTS,
|
|
517
537
|
AMPERE,
|
|
@@ -586,6 +606,7 @@ export {
|
|
|
586
606
|
CONTINGENCY_LIST_EQUIPMENTS,
|
|
587
607
|
CONVERTERS_MODE_OPTIONS,
|
|
588
608
|
COUNTRIES_TO_BALANCE,
|
|
609
|
+
CREATE_SUBSTATION_IN_VOLTAGE_LEVEL_IDENTICAL_ID,
|
|
589
610
|
CUSTOM_AGGRID_THEME,
|
|
590
611
|
CUSTOM_REAL_TIME_STATE_ESTIMATION,
|
|
591
612
|
CalculationType,
|
|
@@ -650,6 +671,7 @@ export {
|
|
|
650
671
|
DEGREE,
|
|
651
672
|
DEPTH_CELL_WIDTH,
|
|
652
673
|
DESCRIPTION,
|
|
674
|
+
DESCRIPTION_LIMIT_ERROR,
|
|
653
675
|
DIAGONAL_LABEL,
|
|
654
676
|
DIRECTORY_ITEM,
|
|
655
677
|
DIRECTORY_ITEM_FULL_PATH,
|
|
@@ -757,6 +779,9 @@ export {
|
|
|
757
779
|
GeneratorDialogTabs,
|
|
758
780
|
GeneratorDialogTabsContent,
|
|
759
781
|
GeneratorModificationForm,
|
|
782
|
+
GlobalFilterContextProvider,
|
|
783
|
+
GlobalFilterPanel,
|
|
784
|
+
GlobalFilterType,
|
|
760
785
|
GridItem,
|
|
761
786
|
GridLogo,
|
|
762
787
|
GridSection,
|
|
@@ -792,6 +817,7 @@ export {
|
|
|
792
817
|
LAST_SELECTED_DIRECTORY,
|
|
793
818
|
LCC,
|
|
794
819
|
LEG_SIDE,
|
|
820
|
+
LFProcessConfigEditionDialog,
|
|
795
821
|
LIGHT_THEME,
|
|
796
822
|
LIMIT_DURATION_FORM,
|
|
797
823
|
LIMIT_REDUCTIONS_FORM,
|
|
@@ -815,6 +841,7 @@ export {
|
|
|
815
841
|
LimitReductionTableCell,
|
|
816
842
|
LimitReductionTableRow,
|
|
817
843
|
LimitReductionsTableForm,
|
|
844
|
+
LimitTypes,
|
|
818
845
|
LimitsChart,
|
|
819
846
|
LimitsEditor,
|
|
820
847
|
LimitsGroupsContextualMenu,
|
|
@@ -852,8 +879,10 @@ export {
|
|
|
852
879
|
MAP_BASE_MAP,
|
|
853
880
|
MAP_MANUAL_REFRESH,
|
|
854
881
|
MARGIN_CALCULATION_START_TIME,
|
|
882
|
+
MAXIMUM_SECTION_COUNT_MUST_BE_GREATER_OR_EQUAL_TO_ONE,
|
|
855
883
|
MAX_CHAR_DESCRIPTION,
|
|
856
884
|
MAX_COMPOSITE_NESTING_DEPTH,
|
|
885
|
+
MAX_RECENT_GLOBAL_FILTERS,
|
|
857
886
|
MAX_ROWS_NUMBER,
|
|
858
887
|
MAX_SECTIONS_COUNT,
|
|
859
888
|
MAX_VALUE_ALLOWED_FOR_LIMIT_REDUCTION,
|
|
@@ -861,11 +890,13 @@ export {
|
|
|
861
890
|
MEGA_VOLT_AMPERE,
|
|
862
891
|
MEGA_WATT,
|
|
863
892
|
MICRO_SIEMENS,
|
|
893
|
+
MIN_ACTIVE_POWER_MUST_BE_LESS_OR_EQUAL_TO_MAX_ACTIVE_POWER,
|
|
864
894
|
MIN_VALUE_ALLOWED_FOR_LIMIT_REDUCTION,
|
|
865
895
|
MODIFICATION_ROW_HEIGHT,
|
|
866
896
|
MODIFICATION_TYPES,
|
|
867
897
|
MONITORED_BRANCHES_EQUIPMENT_TYPES,
|
|
868
898
|
MONITORED_VOLTAGE_LEVELS_EQUIPMENT_TYPES,
|
|
899
|
+
MUST_BE_GREATER_OR_EQUAL_TO_ZERO,
|
|
869
900
|
MVAPowerAdornment,
|
|
870
901
|
ManagedExportCsvButton,
|
|
871
902
|
MessageLogCellRenderer,
|
|
@@ -883,14 +914,20 @@ export {
|
|
|
883
914
|
NAD_POSITIONS_GENERATION_MODE,
|
|
884
915
|
NAD_POSITIONS_GENERATION_MODE_LABEL,
|
|
885
916
|
NAME,
|
|
917
|
+
NAME_ALREADY_USED,
|
|
918
|
+
NAME_EMPTY,
|
|
886
919
|
NETWORK_MODIFICATION,
|
|
887
920
|
NODE_CLUSTER,
|
|
888
921
|
NODE_CLUSTER_FILTER_IDS,
|
|
922
|
+
NORMALIZED_PERCENTAGE,
|
|
889
923
|
NO_ITEM_SELECTION_FOR_COPY,
|
|
924
|
+
NUMERIC_VALUE_OR_EMPTY_FIELD,
|
|
890
925
|
NadPositionsGenerationMode,
|
|
891
926
|
NameCell,
|
|
892
927
|
NameCellRenderer,
|
|
928
|
+
NameElementEditorForm,
|
|
893
929
|
NameHeaderRenderer,
|
|
930
|
+
NamedElementEditionDialog,
|
|
894
931
|
NetworkModificationEditorNameHeader,
|
|
895
932
|
NetworkModificationNameCellRenderer,
|
|
896
933
|
NetworkModificationsTable,
|
|
@@ -965,6 +1002,7 @@ export {
|
|
|
965
1002
|
PowerWithValidityForm,
|
|
966
1003
|
PredefinedParameters,
|
|
967
1004
|
ProblemDetailError,
|
|
1005
|
+
ProcessConfigModificationsEdition,
|
|
968
1006
|
ProcessType,
|
|
969
1007
|
PropertiesForm,
|
|
970
1008
|
PropertyForm,
|
|
@@ -974,9 +1012,12 @@ export {
|
|
|
974
1012
|
RATIO_REGULATION_MODE_OPTIONS,
|
|
975
1013
|
RATIO_TAP_CHANGER_POSITION,
|
|
976
1014
|
RATIO_TAP_CHANGER_TARGET_V,
|
|
1015
|
+
REACTIVE_LIMITS_MIN_MAX_INVALID,
|
|
977
1016
|
REACTIVE_LIMIT_TYPES,
|
|
978
1017
|
REACTIVE_SLACKS_THRESHOLD,
|
|
979
1018
|
READ_SLACK_BUS,
|
|
1019
|
+
REAL_PERCENTAGE,
|
|
1020
|
+
RECENT_FILTER,
|
|
980
1021
|
REFERENCE_FIELD_OR_VALUE_1,
|
|
981
1022
|
REFERENCE_FIELD_OR_VALUE_2,
|
|
982
1023
|
REGULATION_TYPES,
|
|
@@ -1005,11 +1046,14 @@ export {
|
|
|
1005
1046
|
RootNetworkChipCell,
|
|
1006
1047
|
RootNetworkHeaderRenderer,
|
|
1007
1048
|
RuleValueEditor,
|
|
1049
|
+
SAProcessConfigEditionDialog,
|
|
1008
1050
|
SCENARIO_DURATION,
|
|
1009
1051
|
SEARCH_EQUIPMENTS,
|
|
1052
|
+
SECTION_COUNT_MUST_BE_BETWEEN_ZERO_AND_MAXIMUM_SECTION_COUNT,
|
|
1010
1053
|
SELECTED,
|
|
1011
1054
|
SELECTION_TYPE,
|
|
1012
1055
|
SENSITIVITY_TYPES,
|
|
1056
|
+
SHORT_CIRCUIT_CURRENT_LIMIT_MUST_BE_GREATER_OR_EQUAL_TO_ZERO,
|
|
1013
1057
|
SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE,
|
|
1014
1058
|
SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS,
|
|
1015
1059
|
SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER,
|
|
@@ -1026,6 +1070,7 @@ export {
|
|
|
1026
1070
|
SHOW_AUTH_INFO_LOGIN,
|
|
1027
1071
|
SHUNT_COMPENSATORS_SELECTION_TYPE,
|
|
1028
1072
|
SHUNT_COMPENSATOR_ACTIVATION_THRESHOLD,
|
|
1073
|
+
SHUNT_COMPENSATOR_ERROR_Q_AT_NOMINAL_VOLTAGE_LESS_THAN_ZERO,
|
|
1029
1074
|
SHUNT_COMPENSATOR_TYPES,
|
|
1030
1075
|
SHUNT_COMPENSATOR_TYPE_OPTIONS,
|
|
1031
1076
|
SHUNT_COMPENSATOR_VOLTAGE_CONTROL_ON,
|
|
@@ -1116,8 +1161,9 @@ export {
|
|
|
1116
1161
|
UnauthorizedAccessAlert,
|
|
1117
1162
|
UndisplayedFilterNumberComparators,
|
|
1118
1163
|
UniqueNameInput,
|
|
1119
|
-
UpdateSAProcessConfigDialog,
|
|
1120
1164
|
UserManagerMock,
|
|
1165
|
+
VALUE_MUST_BE_NUMERIC_WHEN_PERCENTAGE_ERROR,
|
|
1166
|
+
VALUE_MUST_BE_REF_WHEN_PERCENTAGE_ERROR,
|
|
1121
1167
|
VARIABLE_Q_GENERATORS,
|
|
1122
1168
|
VARIABLE_SHUNT_COMPENSATORS,
|
|
1123
1169
|
VARIABLE_TRANSFORMERS,
|
|
@@ -1143,15 +1189,18 @@ export {
|
|
|
1143
1189
|
VoltageRegulationForm,
|
|
1144
1190
|
VoltageUnitIcon,
|
|
1145
1191
|
WRITE_SLACK_BUS,
|
|
1192
|
+
WRONG_REF_OR_VALUE_ERROR,
|
|
1146
1193
|
YUP_DEFAULT,
|
|
1147
1194
|
YUP_NOT_NULL,
|
|
1148
1195
|
YUP_NOT_TYPE_DEFAULT,
|
|
1149
1196
|
YUP_NOT_TYPE_NUMBER,
|
|
1150
1197
|
YUP_POSITIVE,
|
|
1151
1198
|
YUP_REQUIRED,
|
|
1199
|
+
addGlobalFilterId,
|
|
1152
1200
|
addModificationTypeToOpLimitsGroups,
|
|
1153
1201
|
addModificationTypeToTemporaryLimits,
|
|
1154
1202
|
addOperationTypeToSelectedOpLG,
|
|
1203
|
+
addSelectedGlobalFiltersToTableState,
|
|
1155
1204
|
addToleranceToFilter,
|
|
1156
1205
|
alertThresholdMarks,
|
|
1157
1206
|
areArrayElementsUnique,
|
|
@@ -1170,6 +1219,7 @@ export {
|
|
|
1170
1219
|
batteryModificationFormSchema,
|
|
1171
1220
|
batteryModificationFormToDto,
|
|
1172
1221
|
buildNewBusbarSections,
|
|
1222
|
+
buildValidGlobalFilters,
|
|
1173
1223
|
businessErrorsEn,
|
|
1174
1224
|
businessErrorsFr,
|
|
1175
1225
|
byFilterDeletionDtoToForm,
|
|
@@ -1178,6 +1228,7 @@ export {
|
|
|
1178
1228
|
cardErrorBoundaryEn,
|
|
1179
1229
|
cardErrorBoundaryFr,
|
|
1180
1230
|
catchErrorHandler,
|
|
1231
|
+
clearSelectedGlobalFiltersFromTableState,
|
|
1181
1232
|
commonButtonEn,
|
|
1182
1233
|
commonButtonFr,
|
|
1183
1234
|
componentsEn,
|
|
@@ -1221,12 +1272,14 @@ export {
|
|
|
1221
1272
|
dndTableFr,
|
|
1222
1273
|
doesNodeHasChildren,
|
|
1223
1274
|
elementAlreadyExists,
|
|
1275
|
+
elementEditionStyles,
|
|
1224
1276
|
elementSearchEn,
|
|
1225
1277
|
elementSearchFr,
|
|
1226
1278
|
emptyFormData,
|
|
1227
1279
|
emptyLineSegment,
|
|
1228
1280
|
emptyModificationByAssignmentFormData,
|
|
1229
1281
|
emptyModificationFormData,
|
|
1282
|
+
emptyProcessConfigModificationsFormData,
|
|
1230
1283
|
emptyProperties,
|
|
1231
1284
|
enrichPccMinParameters,
|
|
1232
1285
|
enrichSecurityAnalysisParameters,
|
|
@@ -1322,6 +1375,8 @@ export {
|
|
|
1322
1375
|
generatorModificationEmptyFormData,
|
|
1323
1376
|
generatorModificationFormSchema,
|
|
1324
1377
|
generatorModificationFormToDto,
|
|
1378
|
+
genericValidationEn,
|
|
1379
|
+
genericValidationFr,
|
|
1325
1380
|
getAbsenceLabelKeyFromType,
|
|
1326
1381
|
getActivePowerControlEmptyFormData,
|
|
1327
1382
|
getActivePowerControlSchema,
|
|
@@ -1380,6 +1435,7 @@ export {
|
|
|
1380
1435
|
getFilledPropertiesFromModification,
|
|
1381
1436
|
getFormulaInitialValue,
|
|
1382
1437
|
getFormulaSchema,
|
|
1438
|
+
getGlobalFilterId,
|
|
1383
1439
|
getHvdcLccDeletionSchema,
|
|
1384
1440
|
getIdOrSelf,
|
|
1385
1441
|
getIdOrValue,
|
|
@@ -1402,6 +1458,8 @@ export {
|
|
|
1402
1458
|
getLoadFlowSpecificParametersDescription,
|
|
1403
1459
|
getLoadFlowUrl,
|
|
1404
1460
|
getLoadTypeLabel,
|
|
1461
|
+
getNameElementEditorEmptyFormData,
|
|
1462
|
+
getNameElementEditorSchema,
|
|
1405
1463
|
getNetworkModificationsFromComposite,
|
|
1406
1464
|
getNetworkVisualizationsParameters,
|
|
1407
1465
|
getNewVoltageLevelData,
|
|
@@ -1409,11 +1467,14 @@ export {
|
|
|
1409
1467
|
getNumberOfSiblings,
|
|
1410
1468
|
getObjectId,
|
|
1411
1469
|
getOperators,
|
|
1470
|
+
getOptionLabel,
|
|
1412
1471
|
getPccMinStudyParameters,
|
|
1413
1472
|
getPowerWithValidityEditData,
|
|
1414
1473
|
getPowerWithValidityEmptyFormData,
|
|
1415
1474
|
getPowerWithValidityValidationSchema,
|
|
1416
1475
|
getPreLoginPath,
|
|
1476
|
+
getProcessConfigModificationsBackendFromFormData,
|
|
1477
|
+
getProcessConfigModificationsFormData,
|
|
1417
1478
|
getPropertiesFromModification,
|
|
1418
1479
|
getPropertyAvatar,
|
|
1419
1480
|
getPropertyValue,
|
|
@@ -1434,8 +1495,6 @@ export {
|
|
|
1434
1495
|
getRequestParamFromList,
|
|
1435
1496
|
getRowEmptyFormData,
|
|
1436
1497
|
getRows,
|
|
1437
|
-
getSAProcessConfigBackendFromFormData,
|
|
1438
|
-
getSAProcessConfigFormDataFromFetchedElement,
|
|
1439
1498
|
getSecurityAnalysisDefaultLimitReductions,
|
|
1440
1499
|
getSecurityAnalysisParameters,
|
|
1441
1500
|
getSensiUrl,
|
|
@@ -1480,7 +1539,10 @@ export {
|
|
|
1480
1539
|
intlPredefinedParametersOptions,
|
|
1481
1540
|
isBlankOrEmpty,
|
|
1482
1541
|
isCompositeModification,
|
|
1542
|
+
isCriteriaFilter,
|
|
1543
|
+
isCriteriaFilterType,
|
|
1483
1544
|
isDisabledValidationButton,
|
|
1545
|
+
isEditingGlobalFilter,
|
|
1484
1546
|
isEmpty,
|
|
1485
1547
|
isExploreMetadata,
|
|
1486
1548
|
isFieldRequired,
|
|
@@ -1526,6 +1588,8 @@ export {
|
|
|
1526
1588
|
mapSecurityAnalysisParameters,
|
|
1527
1589
|
mapSensitivityAnalysisParameters,
|
|
1528
1590
|
mapServerLimitsGroupsToFormInfos,
|
|
1591
|
+
markEditingGlobalFilter,
|
|
1592
|
+
markNotFoundGlobalFiltersAsDeletedInState,
|
|
1529
1593
|
mergeModificationAndEquipmentProperties,
|
|
1530
1594
|
mergeSubModificationsIntoTree,
|
|
1531
1595
|
mergeSx,
|
|
@@ -1542,6 +1606,8 @@ export {
|
|
|
1542
1606
|
multipleSelectionDialogEn,
|
|
1543
1607
|
multipleSelectionDialogFr,
|
|
1544
1608
|
networkModificationTableStyles,
|
|
1609
|
+
networkModificationValidationEn,
|
|
1610
|
+
networkModificationValidationFr,
|
|
1545
1611
|
networkModificationsEn,
|
|
1546
1612
|
networkModificationsFr,
|
|
1547
1613
|
newEquipmentDeletionDto,
|
|
@@ -1555,9 +1621,11 @@ export {
|
|
|
1555
1621
|
parseIntData,
|
|
1556
1622
|
processConfigEn,
|
|
1557
1623
|
processConfigFr,
|
|
1624
|
+
processConfigModificationsShape,
|
|
1558
1625
|
queryValidator,
|
|
1559
1626
|
recursiveRemove,
|
|
1560
1627
|
removeNullFields,
|
|
1628
|
+
removeSelectedGlobalFiltersFromTableState,
|
|
1561
1629
|
removeUuidsFromTree,
|
|
1562
1630
|
reportViewerEn,
|
|
1563
1631
|
reportViewerFr,
|
|
@@ -1610,6 +1678,7 @@ export {
|
|
|
1610
1678
|
substationModificationFormToDto,
|
|
1611
1679
|
suppressNonNumericKeyboardEvent,
|
|
1612
1680
|
default2 as svg,
|
|
1681
|
+
syncGlobalFilters,
|
|
1613
1682
|
tableEn,
|
|
1614
1683
|
tableFr,
|
|
1615
1684
|
testQuery,
|
|
@@ -1623,7 +1692,6 @@ export {
|
|
|
1623
1692
|
toNumber,
|
|
1624
1693
|
toReactiveCapabilityCurveChoiceForGeneratorCreation,
|
|
1625
1694
|
toReactiveCapabilityCurveChoiceForGeneratorModification,
|
|
1626
|
-
toSAProcessConfig,
|
|
1627
1695
|
topBarEn,
|
|
1628
1696
|
topBarFr,
|
|
1629
1697
|
translateSwitchKinds,
|
|
@@ -1631,6 +1699,7 @@ export {
|
|
|
1631
1699
|
treeviewFinderFr,
|
|
1632
1700
|
unitToKiloUnit,
|
|
1633
1701
|
unitToMicroUnit,
|
|
1702
|
+
unmarkEditingGlobalFilter,
|
|
1634
1703
|
unscrollableDialogStyles,
|
|
1635
1704
|
updateConfigParameter,
|
|
1636
1705
|
updateDynamicMarginCalculationParameters,
|
|
@@ -1641,7 +1710,6 @@ export {
|
|
|
1641
1710
|
updateNetworkModificationsMetadata,
|
|
1642
1711
|
updateParameter,
|
|
1643
1712
|
updatePccMinParameters,
|
|
1644
|
-
updateSAProcessConfigFormSchema,
|
|
1645
1713
|
updateSecurityAnalysisParameters,
|
|
1646
1714
|
updateSensitivityAnalysisParameters,
|
|
1647
1715
|
updateShortCircuitParameters,
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2024, 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
1
|
export declare const descriptionEn: {
|
|
8
2
|
description: string;
|
|
9
3
|
descriptionProperty: string;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import { DESCRIPTION_LIMIT_ERROR } from "../../utils/constants/translationKeys.js";
|
|
2
|
+
import "../../utils/conversionUtils.js";
|
|
3
|
+
import "../../utils/types/equipmentType.js";
|
|
4
|
+
import "react/jsx-runtime";
|
|
5
|
+
import "@mui/icons-material";
|
|
1
6
|
const descriptionEn = {
|
|
2
7
|
description: "Description",
|
|
3
8
|
descriptionProperty: "Description",
|
|
4
9
|
descriptionModificationError: "An error occurred while editing the description",
|
|
5
|
-
|
|
10
|
+
[DESCRIPTION_LIMIT_ERROR]: "Description exceeds character limit",
|
|
6
11
|
AddDescription: "Add a description"
|
|
7
12
|
};
|
|
8
13
|
export {
|
|
@@ -28,7 +28,6 @@ export declare const filterEn: {
|
|
|
28
28
|
Hvdc: string;
|
|
29
29
|
'filter.expert': string;
|
|
30
30
|
'filter.explicitNaming': string;
|
|
31
|
-
nameEmpty: string;
|
|
32
31
|
equipmentType: string;
|
|
33
32
|
changeTypeMessage: string;
|
|
34
33
|
PropertyValues: string;
|
|
@@ -52,7 +51,6 @@ export declare const filterEn: {
|
|
|
52
51
|
Countries2: string;
|
|
53
52
|
nominalVoltage: string;
|
|
54
53
|
EnergySourceText: string;
|
|
55
|
-
nameAlreadyUsed: string;
|
|
56
54
|
nameValidityCheckErrorMsg: string;
|
|
57
55
|
cantSubmitWhileValidating: string;
|
|
58
56
|
elementNotFound: string;
|
|
@@ -22,7 +22,6 @@ const filterEn = {
|
|
|
22
22
|
Hvdc: "HVDC",
|
|
23
23
|
"filter.expert": "Criteria based",
|
|
24
24
|
"filter.explicitNaming": "Explicit naming",
|
|
25
|
-
nameEmpty: "The name is empty",
|
|
26
25
|
equipmentType: "Equipment type",
|
|
27
26
|
changeTypeMessage: "The equipment type will be changed and the current configuration will be erased.",
|
|
28
27
|
PropertyValues: "Property values",
|
|
@@ -46,7 +45,6 @@ const filterEn = {
|
|
|
46
45
|
Countries2: "Countries 2",
|
|
47
46
|
nominalVoltage: "Nominal voltage",
|
|
48
47
|
EnergySourceText: "Energy source",
|
|
49
|
-
nameAlreadyUsed: "This name is already used",
|
|
50
48
|
nameValidityCheckErrorMsg: "Error while checking name validity",
|
|
51
49
|
cantSubmitWhileValidating: "Impossible to submit the form while validating a field",
|
|
52
50
|
elementNotFound: "element not found"
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, 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 const genericValidationEn: {
|
|
8
|
+
YupRequired: string;
|
|
9
|
+
YupNotNull: string;
|
|
10
|
+
YupDefault: string;
|
|
11
|
+
YupPositive: string;
|
|
12
|
+
YupNotTypeNumber: string;
|
|
13
|
+
YupNotTypeDefault: string;
|
|
14
|
+
DuplicatedPropsError: string;
|
|
15
|
+
mustBeGreaterOrEqualToZero: string;
|
|
16
|
+
NormalizedPercentage: string;
|
|
17
|
+
RealPercentage: string;
|
|
18
|
+
nameEmpty: string;
|
|
19
|
+
nameAlreadyUsed: string;
|
|
20
|
+
NumericValueOrEmptyField: string;
|
|
21
|
+
UniqueName: string;
|
|
22
|
+
FieldNotEmpty: string;
|
|
23
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { NUMERIC_VALUE_OR_EMPTY_FIELD, NAME_ALREADY_USED, NAME_EMPTY, REAL_PERCENTAGE, NORMALIZED_PERCENTAGE, MUST_BE_GREATER_OR_EQUAL_TO_ZERO, DUPLICATED_PROPS_ERROR, YUP_NOT_TYPE_DEFAULT, YUP_NOT_TYPE_NUMBER, YUP_POSITIVE, YUP_DEFAULT, YUP_NOT_NULL, YUP_REQUIRED } from "../../utils/constants/translationKeys.js";
|
|
2
|
+
import "../../utils/conversionUtils.js";
|
|
3
|
+
import "../../utils/types/equipmentType.js";
|
|
4
|
+
import "react/jsx-runtime";
|
|
5
|
+
import "@mui/icons-material";
|
|
6
|
+
const genericValidationEn = {
|
|
7
|
+
[YUP_REQUIRED]: "Required",
|
|
8
|
+
[YUP_NOT_NULL]: "Cannot be empty",
|
|
9
|
+
[YUP_DEFAULT]: "This field is invalid",
|
|
10
|
+
[YUP_POSITIVE]: "Must be a positive number",
|
|
11
|
+
[YUP_NOT_TYPE_NUMBER]: "This field only accepts numeric values",
|
|
12
|
+
[YUP_NOT_TYPE_DEFAULT]: "Field value format is incorrect",
|
|
13
|
+
[DUPLICATED_PROPS_ERROR]: "Duplicated properties: each property must be unique",
|
|
14
|
+
[MUST_BE_GREATER_OR_EQUAL_TO_ZERO]: "Must be greater than or equal to 0",
|
|
15
|
+
[NORMALIZED_PERCENTAGE]: "This percentage must be between 0 and 100",
|
|
16
|
+
[REAL_PERCENTAGE]: "This value must be between 0 and 1",
|
|
17
|
+
[NAME_EMPTY]: "The name is empty",
|
|
18
|
+
[NAME_ALREADY_USED]: "This name is already used",
|
|
19
|
+
[NUMERIC_VALUE_OR_EMPTY_FIELD]: "Numeric value or Empty the field",
|
|
20
|
+
UniqueName: "Name should be unique",
|
|
21
|
+
FieldNotEmpty: "Field should not be empty"
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
genericValidationEn
|
|
25
|
+
};
|
|
@@ -28,9 +28,11 @@ export * from './tableEn';
|
|
|
28
28
|
export * from './topBarEn';
|
|
29
29
|
export * from './treeviewFinderEn';
|
|
30
30
|
export * from './networkModificationsEn';
|
|
31
|
+
export * from './network-modification-validationEn';
|
|
31
32
|
export * from './external/exportParamsEn';
|
|
32
33
|
export * from './external/importParamsEn';
|
|
33
34
|
export * from './componentsEn';
|
|
34
35
|
export * from './parameters';
|
|
35
36
|
export * from './use-unique-name-validation-en';
|
|
36
37
|
export * from './processConfigEn';
|
|
38
|
+
export * from './generic-validationEn';
|