@gridsuite/commons-ui 0.257.0 → 0.259.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/FilterForm.js +10 -0
- package/dist/components/composite/filter/HeaderFilterForm.d.ts +0 -10
- package/dist/components/composite/filter/HeaderFilterForm.js +4 -14
- package/dist/components/composite/filter/expert/ExpertFilterForm.js +3 -3
- package/dist/components/index.js +8 -0
- 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/parameters/common/hook/use-parameters-form.js +1 -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-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 +1 -2
- 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 +1 -2
- 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/index.js +52 -9
- package/dist/translations/en/processConfigEn.d.ts +3 -0
- package/dist/translations/en/processConfigEn.js +5 -2
- package/dist/translations/fr/processConfigFr.d.ts +3 -0
- package/dist/translations/fr/processConfigFr.js +5 -2
- package/dist/utils/index.js +2 -1
- package/dist/utils/types/index.js +2 -1
- package/dist/utils/types/types.d.ts +10 -0
- package/dist/utils/types/types.js +8 -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
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Box } from "@mui/material";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
|
-
import
|
|
4
|
+
import "../common/process-config-modifications-edition.utils.js";
|
|
5
|
+
import { ProcessConfigModificationsEdition } from "../common/process-config-modifications-edition.js";
|
|
5
6
|
import { FieldConstants } from "../../../utils/constants/fieldConstants.js";
|
|
6
7
|
import "../../../utils/conversionUtils.js";
|
|
7
8
|
import { ElementType } from "../../../utils/types/elementType.js";
|
|
@@ -38,7 +39,6 @@ import "../../parameters/common/widget/parameter-line-slider.js";
|
|
|
38
39
|
import "../../parameters/common/contingency-table/contingency-table.js";
|
|
39
40
|
import "../../parameters/common/contingency-table/columns-definitions.js";
|
|
40
41
|
import "@hookform/resolvers/yup";
|
|
41
|
-
import { NameElementEditorForm } from "../../parameters/common/name-element-editor/name-element-editor-form.js";
|
|
42
42
|
import "../../parameters/network-visualizations/constants.js";
|
|
43
43
|
import "../../parameters/loadflow/load-flow-parameters-context.js";
|
|
44
44
|
import "../../parameters/loadflow/load-flow-advanced-parameters.js";
|
|
@@ -69,18 +69,10 @@ import "../../parameters/dynamic-security-analysis/contingency-parameters.js";
|
|
|
69
69
|
import "../../parameters/dynamic-margin-calculation/time-delay-parameters.js";
|
|
70
70
|
import "../../parameters/dynamic-margin-calculation/loads-variations-parameters.js";
|
|
71
71
|
import "../../parameters/dynamic-margin-calculation/use-dynamic-margin-calculation-parameters-form.js";
|
|
72
|
-
function
|
|
72
|
+
function SAProcessConfigEdition() {
|
|
73
73
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
74
|
-
/* @__PURE__ */ jsx(
|
|
75
|
-
NameElementEditorForm,
|
|
76
|
-
{
|
|
77
|
-
activeDirectory: directory,
|
|
78
|
-
elementType: ElementType.PROCESS_CONFIG,
|
|
79
|
-
initialElementName: processConfigName
|
|
80
|
-
}
|
|
81
|
-
),
|
|
82
74
|
/* @__PURE__ */ jsx(Box, { component: "h3", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "process_config/modifications" }) }),
|
|
83
|
-
/* @__PURE__ */ jsx(
|
|
75
|
+
/* @__PURE__ */ jsx(ProcessConfigModificationsEdition, { name: FieldConstants.MODIFICATIONS }),
|
|
84
76
|
/* @__PURE__ */ jsx(Box, { component: "h3", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "process_config/providersParameters" }) }),
|
|
85
77
|
/* @__PURE__ */ jsx(
|
|
86
78
|
ParameterLineDirectoryItemsInput,
|
|
@@ -105,5 +97,5 @@ function UpdateSaProcessConfig({ directory, processConfigName }) {
|
|
|
105
97
|
] });
|
|
106
98
|
}
|
|
107
99
|
export {
|
|
108
|
-
|
|
100
|
+
SAProcessConfigEdition
|
|
109
101
|
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { SecurityAnalysisProcessConfigBackend } from './sa-process-config.type';
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2026, RTE (http://www.rte-france.com)
|
|
4
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
5
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
6
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
7
|
+
*/
|
|
8
|
+
import * as yup from 'yup';
|
|
9
|
+
export declare function getNamedSAProcessConfigFormSchema(initialName: string | null): yup.ObjectSchema<{
|
|
10
|
+
loadflowParameters: {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
}[];
|
|
14
|
+
securityAnalysisParameters: {
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
}[];
|
|
18
|
+
modifications: {
|
|
19
|
+
description?: string | null | undefined;
|
|
20
|
+
active: NonNullable<boolean | undefined>;
|
|
21
|
+
modification: {
|
|
22
|
+
name?: string | undefined;
|
|
23
|
+
id: string;
|
|
24
|
+
}[];
|
|
25
|
+
}[];
|
|
26
|
+
} & {
|
|
27
|
+
name: string | null | undefined;
|
|
28
|
+
description: string | null | undefined;
|
|
29
|
+
}, yup.AnyObject, {
|
|
30
|
+
loadflowParameters: "";
|
|
31
|
+
securityAnalysisParameters: "";
|
|
32
|
+
modifications: "";
|
|
33
|
+
name: undefined;
|
|
34
|
+
description: undefined;
|
|
35
|
+
}, "">;
|
|
36
|
+
export type NamedSAProcessConfigFormSchema = yup.InferType<ReturnType<typeof getNamedSAProcessConfigFormSchema>>;
|
|
37
|
+
export declare function getEmptySAProcessConfigFormData(initialName: string | null, initialDescription: string | null): {
|
|
38
|
+
loadflowParameters: never[];
|
|
39
|
+
securityAnalysisParameters: never[];
|
|
40
|
+
modifications: never[];
|
|
41
|
+
name: string | null;
|
|
42
|
+
description: string | null;
|
|
43
|
+
};
|
|
44
|
+
export declare function getNamedSAProcessConfigFormData(processConfig: SecurityAnalysisProcessConfigBackend, name: string, description: string | null): Promise<NamedSAProcessConfigFormSchema>;
|
|
45
|
+
export declare function getSAProcessConfigBackendFromFormData(formData: NamedSAProcessConfigFormSchema): SecurityAnalysisProcessConfigBackend;
|
|
@@ -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
|
+
|
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";
|
|
@@ -313,7 +316,7 @@ import { NetworkTimeoutError } from "./utils/types/NetworkTimeoutError.js";
|
|
|
313
316
|
import { ElementType } from "./utils/types/elementType.js";
|
|
314
317
|
import { ALL_EQUIPMENTS, BASE_EQUIPMENTS, CONNECTION_DIRECTIONS, ENERGY_SOURCES, EQUIPMENTS_WITH_ONE_NOMINAL_VOLTAGE, EQUIPMENTS_WITH_ONE_SUBSTATION, EQUIPMENTS_WITH_THREE_NOMINAL_VOLTAGES, EQUIPMENTS_WITH_TWO_NOMINAL_VOLTAGES, EQUIPMENTS_WITH_TWO_SUBSTATIONS, EquipmentType, ExtendedEquipmentType, HvdcType, LOAD_TYPES, OperatingStatus, SEARCH_EQUIPMENTS, TYPE_TAG_MAX_SIZE, UNDEFINED_CONNECTION_DIRECTION, UNDEFINED_LOAD_TYPE, VL_TAG_MAX_SIZE, equipmentStyles, getConnectionDirectionLabel, getEnergySourceLabel, getEquipmentsInfosForSearchBar, getLoadTypeLabel } from "./utils/types/equipmentType.js";
|
|
315
318
|
import { Battery, BoundaryLine, BusBar, Generator, Hvdc, LCC, Line, Load, SVC, ShuntCompensator, Substation, ThreeWindingTransfo, TwoWindingTransfo, VSC, VoltageLevel, isInjection } from "./utils/types/equipmentTypes.js";
|
|
316
|
-
import { AnnouncementSeverity, ArrayAction, ElementStatus } from "./utils/types/types.js";
|
|
319
|
+
import { AnnouncementSeverity, ArrayAction, ElementStatus, ReferenceType } from "./utils/types/types.js";
|
|
317
320
|
import { MODIFICATION_TYPES, ModificationType } from "./utils/types/modificationType.js";
|
|
318
321
|
import { FieldType } from "./utils/types/fieldType.js";
|
|
319
322
|
import { ParameterType } from "./utils/types/parameters.type.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";
|
|
@@ -764,6 +779,9 @@ export {
|
|
|
764
779
|
GeneratorDialogTabs,
|
|
765
780
|
GeneratorDialogTabsContent,
|
|
766
781
|
GeneratorModificationForm,
|
|
782
|
+
GlobalFilterContextProvider,
|
|
783
|
+
GlobalFilterPanel,
|
|
784
|
+
GlobalFilterType,
|
|
767
785
|
GridItem,
|
|
768
786
|
GridLogo,
|
|
769
787
|
GridSection,
|
|
@@ -799,6 +817,7 @@ export {
|
|
|
799
817
|
LAST_SELECTED_DIRECTORY,
|
|
800
818
|
LCC,
|
|
801
819
|
LEG_SIDE,
|
|
820
|
+
LFProcessConfigEditionDialog,
|
|
802
821
|
LIGHT_THEME,
|
|
803
822
|
LIMIT_DURATION_FORM,
|
|
804
823
|
LIMIT_REDUCTIONS_FORM,
|
|
@@ -822,6 +841,7 @@ export {
|
|
|
822
841
|
LimitReductionTableCell,
|
|
823
842
|
LimitReductionTableRow,
|
|
824
843
|
LimitReductionsTableForm,
|
|
844
|
+
LimitTypes,
|
|
825
845
|
LimitsChart,
|
|
826
846
|
LimitsEditor,
|
|
827
847
|
LimitsGroupsContextualMenu,
|
|
@@ -862,6 +882,7 @@ export {
|
|
|
862
882
|
MAXIMUM_SECTION_COUNT_MUST_BE_GREATER_OR_EQUAL_TO_ONE,
|
|
863
883
|
MAX_CHAR_DESCRIPTION,
|
|
864
884
|
MAX_COMPOSITE_NESTING_DEPTH,
|
|
885
|
+
MAX_RECENT_GLOBAL_FILTERS,
|
|
865
886
|
MAX_ROWS_NUMBER,
|
|
866
887
|
MAX_SECTIONS_COUNT,
|
|
867
888
|
MAX_VALUE_ALLOWED_FOR_LIMIT_REDUCTION,
|
|
@@ -904,7 +925,9 @@ export {
|
|
|
904
925
|
NadPositionsGenerationMode,
|
|
905
926
|
NameCell,
|
|
906
927
|
NameCellRenderer,
|
|
928
|
+
NameElementEditorForm,
|
|
907
929
|
NameHeaderRenderer,
|
|
930
|
+
NamedElementEditionDialog,
|
|
908
931
|
NetworkModificationEditorNameHeader,
|
|
909
932
|
NetworkModificationNameCellRenderer,
|
|
910
933
|
NetworkModificationsTable,
|
|
@@ -979,6 +1002,7 @@ export {
|
|
|
979
1002
|
PowerWithValidityForm,
|
|
980
1003
|
PredefinedParameters,
|
|
981
1004
|
ProblemDetailError,
|
|
1005
|
+
ProcessConfigModificationsEdition,
|
|
982
1006
|
ProcessType,
|
|
983
1007
|
PropertiesForm,
|
|
984
1008
|
PropertyForm,
|
|
@@ -993,6 +1017,7 @@ export {
|
|
|
993
1017
|
REACTIVE_SLACKS_THRESHOLD,
|
|
994
1018
|
READ_SLACK_BUS,
|
|
995
1019
|
REAL_PERCENTAGE,
|
|
1020
|
+
RECENT_FILTER,
|
|
996
1021
|
REFERENCE_FIELD_OR_VALUE_1,
|
|
997
1022
|
REFERENCE_FIELD_OR_VALUE_2,
|
|
998
1023
|
REGULATION_TYPES,
|
|
@@ -1010,6 +1035,7 @@ export {
|
|
|
1010
1035
|
ReactiveLimitsForm,
|
|
1011
1036
|
ReactivePowerAdornment,
|
|
1012
1037
|
ReadOnlyInput,
|
|
1038
|
+
ReferenceType,
|
|
1013
1039
|
RegulatingTerminalForm,
|
|
1014
1040
|
RemoveButton,
|
|
1015
1041
|
ReportFetcherContext,
|
|
@@ -1021,6 +1047,7 @@ export {
|
|
|
1021
1047
|
RootNetworkChipCell,
|
|
1022
1048
|
RootNetworkHeaderRenderer,
|
|
1023
1049
|
RuleValueEditor,
|
|
1050
|
+
SAProcessConfigEditionDialog,
|
|
1024
1051
|
SCENARIO_DURATION,
|
|
1025
1052
|
SEARCH_EQUIPMENTS,
|
|
1026
1053
|
SECTION_COUNT_MUST_BE_BETWEEN_ZERO_AND_MAXIMUM_SECTION_COUNT,
|
|
@@ -1135,7 +1162,6 @@ export {
|
|
|
1135
1162
|
UnauthorizedAccessAlert,
|
|
1136
1163
|
UndisplayedFilterNumberComparators,
|
|
1137
1164
|
UniqueNameInput,
|
|
1138
|
-
UpdateSAProcessConfigDialog,
|
|
1139
1165
|
UserManagerMock,
|
|
1140
1166
|
VALUE_MUST_BE_NUMERIC_WHEN_PERCENTAGE_ERROR,
|
|
1141
1167
|
VALUE_MUST_BE_REF_WHEN_PERCENTAGE_ERROR,
|
|
@@ -1171,9 +1197,11 @@ export {
|
|
|
1171
1197
|
YUP_NOT_TYPE_NUMBER,
|
|
1172
1198
|
YUP_POSITIVE,
|
|
1173
1199
|
YUP_REQUIRED,
|
|
1200
|
+
addGlobalFilterId,
|
|
1174
1201
|
addModificationTypeToOpLimitsGroups,
|
|
1175
1202
|
addModificationTypeToTemporaryLimits,
|
|
1176
1203
|
addOperationTypeToSelectedOpLG,
|
|
1204
|
+
addSelectedGlobalFiltersToTableState,
|
|
1177
1205
|
addToleranceToFilter,
|
|
1178
1206
|
alertThresholdMarks,
|
|
1179
1207
|
areArrayElementsUnique,
|
|
@@ -1192,6 +1220,7 @@ export {
|
|
|
1192
1220
|
batteryModificationFormSchema,
|
|
1193
1221
|
batteryModificationFormToDto,
|
|
1194
1222
|
buildNewBusbarSections,
|
|
1223
|
+
buildValidGlobalFilters,
|
|
1195
1224
|
businessErrorsEn,
|
|
1196
1225
|
businessErrorsFr,
|
|
1197
1226
|
byFilterDeletionDtoToForm,
|
|
@@ -1200,6 +1229,7 @@ export {
|
|
|
1200
1229
|
cardErrorBoundaryEn,
|
|
1201
1230
|
cardErrorBoundaryFr,
|
|
1202
1231
|
catchErrorHandler,
|
|
1232
|
+
clearSelectedGlobalFiltersFromTableState,
|
|
1203
1233
|
commonButtonEn,
|
|
1204
1234
|
commonButtonFr,
|
|
1205
1235
|
componentsEn,
|
|
@@ -1243,12 +1273,14 @@ export {
|
|
|
1243
1273
|
dndTableFr,
|
|
1244
1274
|
doesNodeHasChildren,
|
|
1245
1275
|
elementAlreadyExists,
|
|
1276
|
+
elementEditionStyles,
|
|
1246
1277
|
elementSearchEn,
|
|
1247
1278
|
elementSearchFr,
|
|
1248
1279
|
emptyFormData,
|
|
1249
1280
|
emptyLineSegment,
|
|
1250
1281
|
emptyModificationByAssignmentFormData,
|
|
1251
1282
|
emptyModificationFormData,
|
|
1283
|
+
emptyProcessConfigModificationsFormData,
|
|
1252
1284
|
emptyProperties,
|
|
1253
1285
|
enrichPccMinParameters,
|
|
1254
1286
|
enrichSecurityAnalysisParameters,
|
|
@@ -1404,6 +1436,7 @@ export {
|
|
|
1404
1436
|
getFilledPropertiesFromModification,
|
|
1405
1437
|
getFormulaInitialValue,
|
|
1406
1438
|
getFormulaSchema,
|
|
1439
|
+
getGlobalFilterId,
|
|
1407
1440
|
getHvdcLccDeletionSchema,
|
|
1408
1441
|
getIdOrSelf,
|
|
1409
1442
|
getIdOrValue,
|
|
@@ -1426,6 +1459,8 @@ export {
|
|
|
1426
1459
|
getLoadFlowSpecificParametersDescription,
|
|
1427
1460
|
getLoadFlowUrl,
|
|
1428
1461
|
getLoadTypeLabel,
|
|
1462
|
+
getNameElementEditorEmptyFormData,
|
|
1463
|
+
getNameElementEditorSchema,
|
|
1429
1464
|
getNetworkModificationsFromComposite,
|
|
1430
1465
|
getNetworkVisualizationsParameters,
|
|
1431
1466
|
getNewVoltageLevelData,
|
|
@@ -1433,11 +1468,14 @@ export {
|
|
|
1433
1468
|
getNumberOfSiblings,
|
|
1434
1469
|
getObjectId,
|
|
1435
1470
|
getOperators,
|
|
1471
|
+
getOptionLabel,
|
|
1436
1472
|
getPccMinStudyParameters,
|
|
1437
1473
|
getPowerWithValidityEditData,
|
|
1438
1474
|
getPowerWithValidityEmptyFormData,
|
|
1439
1475
|
getPowerWithValidityValidationSchema,
|
|
1440
1476
|
getPreLoginPath,
|
|
1477
|
+
getProcessConfigModificationsBackendFromFormData,
|
|
1478
|
+
getProcessConfigModificationsFormData,
|
|
1441
1479
|
getPropertiesFromModification,
|
|
1442
1480
|
getPropertyAvatar,
|
|
1443
1481
|
getPropertyValue,
|
|
@@ -1458,8 +1496,6 @@ export {
|
|
|
1458
1496
|
getRequestParamFromList,
|
|
1459
1497
|
getRowEmptyFormData,
|
|
1460
1498
|
getRows,
|
|
1461
|
-
getSAProcessConfigBackendFromFormData,
|
|
1462
|
-
getSAProcessConfigFormDataFromFetchedElement,
|
|
1463
1499
|
getSecurityAnalysisDefaultLimitReductions,
|
|
1464
1500
|
getSecurityAnalysisParameters,
|
|
1465
1501
|
getSensiUrl,
|
|
@@ -1504,7 +1540,10 @@ export {
|
|
|
1504
1540
|
intlPredefinedParametersOptions,
|
|
1505
1541
|
isBlankOrEmpty,
|
|
1506
1542
|
isCompositeModification,
|
|
1543
|
+
isCriteriaFilter,
|
|
1544
|
+
isCriteriaFilterType,
|
|
1507
1545
|
isDisabledValidationButton,
|
|
1546
|
+
isEditingGlobalFilter,
|
|
1508
1547
|
isEmpty,
|
|
1509
1548
|
isExploreMetadata,
|
|
1510
1549
|
isFieldRequired,
|
|
@@ -1550,6 +1589,8 @@ export {
|
|
|
1550
1589
|
mapSecurityAnalysisParameters,
|
|
1551
1590
|
mapSensitivityAnalysisParameters,
|
|
1552
1591
|
mapServerLimitsGroupsToFormInfos,
|
|
1592
|
+
markEditingGlobalFilter,
|
|
1593
|
+
markNotFoundGlobalFiltersAsDeletedInState,
|
|
1553
1594
|
mergeModificationAndEquipmentProperties,
|
|
1554
1595
|
mergeSubModificationsIntoTree,
|
|
1555
1596
|
mergeSx,
|
|
@@ -1581,9 +1622,11 @@ export {
|
|
|
1581
1622
|
parseIntData,
|
|
1582
1623
|
processConfigEn,
|
|
1583
1624
|
processConfigFr,
|
|
1625
|
+
processConfigModificationsShape,
|
|
1584
1626
|
queryValidator,
|
|
1585
1627
|
recursiveRemove,
|
|
1586
1628
|
removeNullFields,
|
|
1629
|
+
removeSelectedGlobalFiltersFromTableState,
|
|
1587
1630
|
removeUuidsFromTree,
|
|
1588
1631
|
reportViewerEn,
|
|
1589
1632
|
reportViewerFr,
|
|
@@ -1636,6 +1679,7 @@ export {
|
|
|
1636
1679
|
substationModificationFormToDto,
|
|
1637
1680
|
suppressNonNumericKeyboardEvent,
|
|
1638
1681
|
default2 as svg,
|
|
1682
|
+
syncGlobalFilters,
|
|
1639
1683
|
tableEn,
|
|
1640
1684
|
tableFr,
|
|
1641
1685
|
testQuery,
|
|
@@ -1649,7 +1693,6 @@ export {
|
|
|
1649
1693
|
toNumber,
|
|
1650
1694
|
toReactiveCapabilityCurveChoiceForGeneratorCreation,
|
|
1651
1695
|
toReactiveCapabilityCurveChoiceForGeneratorModification,
|
|
1652
|
-
toSAProcessConfig,
|
|
1653
1696
|
topBarEn,
|
|
1654
1697
|
topBarFr,
|
|
1655
1698
|
translateSwitchKinds,
|
|
@@ -1657,6 +1700,7 @@ export {
|
|
|
1657
1700
|
treeviewFinderFr,
|
|
1658
1701
|
unitToKiloUnit,
|
|
1659
1702
|
unitToMicroUnit,
|
|
1703
|
+
unmarkEditingGlobalFilter,
|
|
1660
1704
|
unscrollableDialogStyles,
|
|
1661
1705
|
updateConfigParameter,
|
|
1662
1706
|
updateDynamicMarginCalculationParameters,
|
|
@@ -1667,7 +1711,6 @@ export {
|
|
|
1667
1711
|
updateNetworkModificationsMetadata,
|
|
1668
1712
|
updateParameter,
|
|
1669
1713
|
updatePccMinParameters,
|
|
1670
|
-
updateSAProcessConfigFormSchema,
|
|
1671
1714
|
updateSecurityAnalysisParameters,
|
|
1672
1715
|
updateSensitivityAnalysisParameters,
|
|
1673
1716
|
updateShortCircuitParameters,
|
|
@@ -5,9 +5,12 @@
|
|
|
5
5
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
6
|
*/
|
|
7
7
|
export declare const processConfigEn: {
|
|
8
|
+
'process_config/editLFProcessConfigTitle': string;
|
|
8
9
|
'process_config/editSAProcessConfigTitle': string;
|
|
9
10
|
'process_config/modifications': string;
|
|
10
11
|
'process_config/providersParameters': string;
|
|
11
12
|
'process_config/loadflow': string;
|
|
12
13
|
'process_config/securityAnalysis': string;
|
|
14
|
+
'processConfig/fetchProcessConfigError': string;
|
|
15
|
+
'processConfig/updateProcessConfigError': string;
|
|
13
16
|
};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
const processConfigEn = {
|
|
2
|
-
"process_config/
|
|
2
|
+
"process_config/editLFProcessConfigTitle": "Edit a loadflow process configuration",
|
|
3
|
+
"process_config/editSAProcessConfigTitle": "Edit a security analysis with contingency process configuration",
|
|
3
4
|
"process_config/modifications": "Modifications",
|
|
4
5
|
"process_config/providersParameters": "Providers parameters",
|
|
5
6
|
"process_config/loadflow": "Loadflow",
|
|
6
|
-
"process_config/securityAnalysis": "Security analysis"
|
|
7
|
+
"process_config/securityAnalysis": "Security analysis",
|
|
8
|
+
"processConfig/fetchProcessConfigError": "An error occured when fetching the process configuration",
|
|
9
|
+
"processConfig/updateProcessConfigError": "An error occurred while updating the process configuration"
|
|
7
10
|
};
|
|
8
11
|
export {
|
|
9
12
|
processConfigEn
|
|
@@ -5,9 +5,12 @@
|
|
|
5
5
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
6
|
*/
|
|
7
7
|
export declare const processConfigFr: {
|
|
8
|
+
'process_config/editLFProcessConfigTitle': string;
|
|
8
9
|
'process_config/editSAProcessConfigTitle': string;
|
|
9
10
|
'process_config/modifications': string;
|
|
10
11
|
'process_config/providersParameters': string;
|
|
11
12
|
'process_config/loadflow': string;
|
|
12
13
|
'process_config/securityAnalysis': string;
|
|
14
|
+
'processConfig/fetchProcessConfigError': string;
|
|
15
|
+
'processConfig/updateProcessConfigError': string;
|
|
13
16
|
};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
const processConfigFr = {
|
|
2
|
-
"process_config/
|
|
2
|
+
"process_config/editLFProcessConfigTitle": "Éditer une configuration de chaîne de calcul de répartition",
|
|
3
|
+
"process_config/editSAProcessConfigTitle": "Éditer une configuration d'analyse de sécurité sous aléas",
|
|
3
4
|
"process_config/modifications": "Modifications",
|
|
4
5
|
"process_config/providersParameters": "Paramètres des simulateurs",
|
|
5
6
|
"process_config/loadflow": "Calcul de répartition",
|
|
6
|
-
"process_config/securityAnalysis": "Analyse de sécurité"
|
|
7
|
+
"process_config/securityAnalysis": "Analyse de sécurité",
|
|
8
|
+
"processConfig/fetchProcessConfigError": "Une erreur est survenue lors de la récupération de la configuration de chaîne",
|
|
9
|
+
"processConfig/updateProcessConfigError": "Une erreur est survenue lors de la mise à jour de la configuration de chaîne"
|
|
7
10
|
};
|
|
8
11
|
export {
|
|
9
12
|
processConfigFr
|
package/dist/utils/index.js
CHANGED
|
@@ -24,7 +24,7 @@ import { NetworkTimeoutError } from "./types/NetworkTimeoutError.js";
|
|
|
24
24
|
import { ElementType } from "./types/elementType.js";
|
|
25
25
|
import { ALL_EQUIPMENTS, BASE_EQUIPMENTS, CONNECTION_DIRECTIONS, ENERGY_SOURCES, EQUIPMENTS_WITH_ONE_NOMINAL_VOLTAGE, EQUIPMENTS_WITH_ONE_SUBSTATION, EQUIPMENTS_WITH_THREE_NOMINAL_VOLTAGES, EQUIPMENTS_WITH_TWO_NOMINAL_VOLTAGES, EQUIPMENTS_WITH_TWO_SUBSTATIONS, EquipmentType, ExtendedEquipmentType, HvdcType, LOAD_TYPES, OperatingStatus, SEARCH_EQUIPMENTS, TYPE_TAG_MAX_SIZE, UNDEFINED_CONNECTION_DIRECTION, UNDEFINED_LOAD_TYPE, VL_TAG_MAX_SIZE, equipmentStyles, getConnectionDirectionLabel, getEnergySourceLabel, getEquipmentsInfosForSearchBar, getLoadTypeLabel } from "./types/equipmentType.js";
|
|
26
26
|
import { Battery, BoundaryLine, BusBar, Generator, Hvdc, LCC, Line, Load, SVC, ShuntCompensator, Substation, ThreeWindingTransfo, TwoWindingTransfo, VSC, VoltageLevel, isInjection } from "./types/equipmentTypes.js";
|
|
27
|
-
import { AnnouncementSeverity, ArrayAction, ElementStatus } from "./types/types.js";
|
|
27
|
+
import { AnnouncementSeverity, ArrayAction, ElementStatus, ReferenceType } from "./types/types.js";
|
|
28
28
|
import { MODIFICATION_TYPES, ModificationType } from "./types/modificationType.js";
|
|
29
29
|
import { FieldType } from "./types/fieldType.js";
|
|
30
30
|
import { ParameterType } from "./types/parameters.type.js";
|
|
@@ -135,6 +135,7 @@ export {
|
|
|
135
135
|
REACTIVE_LIMITS_MIN_MAX_INVALID,
|
|
136
136
|
REAL_PERCENTAGE,
|
|
137
137
|
ReactivePowerAdornment,
|
|
138
|
+
ReferenceType,
|
|
138
139
|
SEARCH_EQUIPMENTS,
|
|
139
140
|
SECTION_COUNT_MUST_BE_BETWEEN_ZERO_AND_MAXIMUM_SECTION_COUNT,
|
|
140
141
|
SHORT_CIRCUIT_CURRENT_LIMIT_MUST_BE_GREATER_OR_EQUAL_TO_ZERO,
|
|
@@ -4,7 +4,7 @@ import { NetworkTimeoutError } from "./NetworkTimeoutError.js";
|
|
|
4
4
|
import { ElementType } from "./elementType.js";
|
|
5
5
|
import { ALL_EQUIPMENTS, BASE_EQUIPMENTS, CONNECTION_DIRECTIONS, ENERGY_SOURCES, EQUIPMENTS_WITH_ONE_NOMINAL_VOLTAGE, EQUIPMENTS_WITH_ONE_SUBSTATION, EQUIPMENTS_WITH_THREE_NOMINAL_VOLTAGES, EQUIPMENTS_WITH_TWO_NOMINAL_VOLTAGES, EQUIPMENTS_WITH_TWO_SUBSTATIONS, EquipmentType, ExtendedEquipmentType, HvdcType, LOAD_TYPES, OperatingStatus, SEARCH_EQUIPMENTS, TYPE_TAG_MAX_SIZE, UNDEFINED_CONNECTION_DIRECTION, UNDEFINED_LOAD_TYPE, VL_TAG_MAX_SIZE, equipmentStyles, getConnectionDirectionLabel, getEnergySourceLabel, getEquipmentsInfosForSearchBar, getLoadTypeLabel } from "./equipmentType.js";
|
|
6
6
|
import { Battery, BoundaryLine, BusBar, Generator, Hvdc, LCC, Line, Load, SVC, ShuntCompensator, Substation, ThreeWindingTransfo, TwoWindingTransfo, VSC, VoltageLevel, isInjection } from "./equipmentTypes.js";
|
|
7
|
-
import { AnnouncementSeverity, ArrayAction, ElementStatus } from "./types.js";
|
|
7
|
+
import { AnnouncementSeverity, ArrayAction, ElementStatus, ReferenceType } from "./types.js";
|
|
8
8
|
import { MODIFICATION_TYPES, ModificationType } from "./modificationType.js";
|
|
9
9
|
import { FieldType } from "./fieldType.js";
|
|
10
10
|
import { ParameterType } from "./parameters.type.js";
|
|
@@ -54,6 +54,7 @@ export {
|
|
|
54
54
|
OperationType,
|
|
55
55
|
ParameterType,
|
|
56
56
|
ProblemDetailError,
|
|
57
|
+
ReferenceType,
|
|
57
58
|
SEARCH_EQUIPMENTS,
|
|
58
59
|
SVC,
|
|
59
60
|
SensitivityType,
|
|
@@ -6,6 +6,15 @@ export declare enum ElementStatus {
|
|
|
6
6
|
CREATED = "CREATED",
|
|
7
7
|
DELETING = "DELETING"
|
|
8
8
|
}
|
|
9
|
+
export declare enum ReferenceType {
|
|
10
|
+
STUDY_NODE = "STUDY_NODE",
|
|
11
|
+
NETWORK_MODIFICATION = "NETWORK_MODIFICATION",
|
|
12
|
+
DIRECTORY_ELEMENT = "DIRECTORY_ELEMENT"
|
|
13
|
+
}
|
|
14
|
+
export type ReferenceAttributes = {
|
|
15
|
+
referenceId: UUID;
|
|
16
|
+
referenceType: ReferenceType;
|
|
17
|
+
};
|
|
9
18
|
export type ElementAttributes = {
|
|
10
19
|
elementUuid: UUID;
|
|
11
20
|
elementName: string;
|
|
@@ -34,6 +43,7 @@ export type ElementAttributes = {
|
|
|
34
43
|
hasMetadata?: boolean;
|
|
35
44
|
subtype?: string;
|
|
36
45
|
id?: string;
|
|
46
|
+
references?: ReferenceAttributes[];
|
|
37
47
|
};
|
|
38
48
|
export type Option = {
|
|
39
49
|
id: string;
|
|
@@ -3,6 +3,12 @@ var ElementStatus = /* @__PURE__ */ ((ElementStatus2) => {
|
|
|
3
3
|
ElementStatus2["DELETING"] = "DELETING";
|
|
4
4
|
return ElementStatus2;
|
|
5
5
|
})(ElementStatus || {});
|
|
6
|
+
var ReferenceType = /* @__PURE__ */ ((ReferenceType2) => {
|
|
7
|
+
ReferenceType2["STUDY_NODE"] = "STUDY_NODE";
|
|
8
|
+
ReferenceType2["NETWORK_MODIFICATION"] = "NETWORK_MODIFICATION";
|
|
9
|
+
ReferenceType2["DIRECTORY_ELEMENT"] = "DIRECTORY_ELEMENT";
|
|
10
|
+
return ReferenceType2;
|
|
11
|
+
})(ReferenceType || {});
|
|
6
12
|
var AnnouncementSeverity = /* @__PURE__ */ ((AnnouncementSeverity2) => {
|
|
7
13
|
AnnouncementSeverity2["INFO"] = "INFO";
|
|
8
14
|
AnnouncementSeverity2["WARN"] = "WARN";
|
|
@@ -16,5 +22,6 @@ var ArrayAction = /* @__PURE__ */ ((ArrayAction2) => {
|
|
|
16
22
|
export {
|
|
17
23
|
AnnouncementSeverity,
|
|
18
24
|
ArrayAction,
|
|
19
|
-
ElementStatus
|
|
25
|
+
ElementStatus,
|
|
26
|
+
ReferenceType
|
|
20
27
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { NameElementEditorForm } from "./name-element-editor-form.js";
|
|
2
|
-
import { getNameElementEditorEmptyFormData, getNameElementEditorSchema } from "./name-element-editor-utils.js";
|
|
3
|
-
export {
|
|
4
|
-
NameElementEditorForm,
|
|
5
|
-
getNameElementEditorEmptyFormData,
|
|
6
|
-
getNameElementEditorSchema
|
|
7
|
-
};
|