@gridsuite/commons-ui 0.119.2 → 0.120.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/dialogs/customMuiDialog/CustomMuiDialog.d.ts +2 -1
- package/dist/components/dialogs/elementSaveDialog/ElementSaveDialog.js +5 -5
- package/dist/components/directoryItemSelector/utils.js +3 -3
- package/dist/components/dnd-table/dnd-table-add-rows-dialog.js +3 -3
- package/dist/components/filter/FilterCreationDialog.d.ts +2 -1
- package/dist/components/filter/expert/ExpertFilterEditionDialog.js +3 -0
- package/dist/components/filter/filter.type.d.ts +2 -2
- package/dist/components/filter/utils/filterApi.js +5 -0
- package/dist/components/inputs/reactHookForm/chip-items-input.js +3 -1
- package/dist/components/inputs/reactHookForm/provider/CustomFormProvider.d.ts +2 -1
- package/dist/components/inputs/reactQueryBuilder/CountryValueEditor.js +4 -0
- package/dist/components/inputs/reactQueryBuilder/ElementValueEditor.js +4 -0
- package/dist/components/inputs/reactQueryBuilder/OperatorSelector.js +3 -0
- package/dist/components/parameters/common/ProviderParam.js +3 -3
- package/dist/components/parameters/common/limitreductions/limit-reduction-table-cell.js +3 -3
- package/dist/components/parameters/common/limitreductions/limit-reductions-table-form.js +3 -3
- package/dist/components/parameters/common/name-element-editor/name-element-editor-utils.js +2 -2
- package/dist/components/parameters/common/parameters-creation-dialog.js +3 -3
- package/dist/components/parameters/common/parameters-edition-dialog-props.d.ts +2 -1
- package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table-cell.js +3 -3
- package/dist/components/parameters/common/widget/parameter-float.js +3 -3
- package/dist/components/parameters/common/widget/parameter-line-directory-items-input.js +3 -3
- package/dist/components/parameters/common/widget/parameter-line-slider.js +3 -3
- package/dist/components/parameters/loadflow/load-flow-general-parameters.js +3 -3
- package/dist/components/parameters/loadflow/load-flow-parameter-field.js +3 -3
- package/dist/components/parameters/loadflow/load-flow-parameters-content.js +3 -3
- package/dist/components/parameters/loadflow/load-flow-parameters-dialog.js +1 -1
- package/dist/components/parameters/loadflow/load-flow-parameters-form.d.ts +2 -1
- package/dist/components/parameters/loadflow/load-flow-parameters-form.js +3 -3
- package/dist/components/parameters/loadflow/load-flow-parameters-header.js +3 -3
- package/dist/components/parameters/loadflow/load-flow-parameters-inline.d.ts +2 -1
- package/dist/components/parameters/loadflow/load-flow-parameters-inline.js +5 -5
- package/dist/components/parameters/loadflow/load-flow-parameters-utils.js +4 -4
- package/dist/components/parameters/loadflow/use-load-flow-parameters-form.js +4 -4
- package/dist/components/parameters/network-visualizations/map-parameters.js +3 -3
- package/dist/components/parameters/network-visualizations/network-area-diagram-parameters.js +3 -3
- package/dist/components/parameters/network-visualizations/network-visualizations-form.js +3 -3
- package/dist/components/parameters/network-visualizations/network-visualizations-parameters-inline.js +4 -4
- package/dist/components/parameters/network-visualizations/single-line-diagram-parameters.js +3 -3
- package/dist/components/parameters/network-visualizations/use-network-visualizations-parameters-form.js +3 -3
- package/dist/components/parameters/security-analysis/security-analysis-parameters-dialog.js +4 -4
- package/dist/components/parameters/security-analysis/security-analysis-parameters-form.js +4 -4
- package/dist/components/parameters/security-analysis/security-analysis-parameters-selector.js +3 -3
- package/dist/components/parameters/security-analysis/security-analysis-violations-hiding.js +2 -2
- package/dist/components/parameters/sensi/sensitivity-Flow-parameters.js +3 -3
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-dialog.js +4 -4
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-form.js +4 -4
- package/dist/components/parameters/sensi/sensitivity-parameters-selector.js +2 -2
- package/dist/components/parameters/sensi/sensitivity-table.js +2 -2
- package/dist/components/parameters/sensi/table-cell.js +3 -3
- package/dist/components/parameters/sensi/use-sensitivity-analysis-parameters.js +5 -5
- package/dist/components/parameters/short-circuit/short-circuit-fields.js +2 -2
- package/dist/components/parameters/short-circuit/short-circuit-parameters-form.js +3 -3
- package/dist/components/parameters/short-circuit/short-circuit-parameters-inline.js +4 -4
- package/dist/components/parameters/short-circuit/use-short-circuit-parameters-form.js +3 -3
- package/dist/components/parameters/voltage-init/equipment-selection-parameters.js +4 -4
- package/dist/components/parameters/voltage-init/general-parameters.js +3 -3
- package/dist/components/parameters/voltage-init/use-voltage-init-parameters-form.js +3 -3
- package/dist/components/parameters/voltage-init/voltage-init-form-utils.js +3 -3
- package/dist/components/parameters/voltage-init/voltage-init-parameters-form.js +3 -3
- package/dist/components/parameters/voltage-init/voltage-init-parameters-inline.js +4 -4
- package/dist/hooks/useConfidentialityWarning.js +5 -0
- package/dist/hooks/useLocalizedCountries.d.ts +4 -9
- package/dist/hooks/usePredefinedProperties.js +5 -0
- package/dist/index.js +7 -2
- package/dist/services/directory.d.ts +4 -1
- package/dist/services/directory.js +28 -5
- package/dist/services/index.js +4 -1
- package/dist/translations/en/networkModificationsEn.js +2 -2
- package/dist/translations/fr/networkModificationsFr.js +1 -1
- package/dist/utils/constants/configConstants.d.ts +2 -0
- package/dist/utils/constants/configConstants.js +9 -0
- package/dist/utils/constants/index.js +3 -1
- package/dist/utils/index.js +3 -1
- package/package.json +1 -1
|
@@ -5,17 +5,17 @@ import { getTabIndicatorStyle, getTabStyle } from "../parameters-style.js";
|
|
|
5
5
|
import "react";
|
|
6
6
|
import "react-hook-form";
|
|
7
7
|
import "../../../utils/types/equipmentType.js";
|
|
8
|
+
import "../../../utils/conversionUtils.js";
|
|
9
|
+
import "@mui/icons-material";
|
|
10
|
+
import "../../../utils/yupConfig.js";
|
|
8
11
|
import "localized-countries";
|
|
9
12
|
import "localized-countries/data/fr";
|
|
10
13
|
import "localized-countries/data/en";
|
|
11
14
|
import "notistack";
|
|
12
15
|
import { CustomFormProvider } from "../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
13
|
-
import "@mui/icons-material";
|
|
14
16
|
import "yup";
|
|
15
17
|
import "../../overflowableText/OverflowableText.js";
|
|
16
18
|
import "../../treeViewFinder/TreeViewFinder.js";
|
|
17
|
-
import "../../../utils/conversionUtils.js";
|
|
18
|
-
import "../../../utils/yupConfig.js";
|
|
19
19
|
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
20
20
|
import "../../customAGGrid/customAggrid.js";
|
|
21
21
|
import "ag-grid-community";
|
|
@@ -3,6 +3,10 @@ import { useState, useCallback, useEffect } from "react";
|
|
|
3
3
|
import { Box, Grid } from "@mui/material";
|
|
4
4
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
5
5
|
import "../../../utils/types/equipmentType.js";
|
|
6
|
+
import "../../../utils/conversionUtils.js";
|
|
7
|
+
import "@mui/icons-material";
|
|
8
|
+
import { ElementType } from "../../../utils/types/elementType.js";
|
|
9
|
+
import "../../../utils/yupConfig.js";
|
|
6
10
|
import { updateVoltageInitParameters } from "../../../services/study.js";
|
|
7
11
|
import { getVoltageInitParameters } from "../../../services/voltage-init.js";
|
|
8
12
|
import "localized-countries";
|
|
@@ -12,7 +16,6 @@ import { useSnackMessage } from "../../../hooks/useSnackMessage.js";
|
|
|
12
16
|
import "react-hook-form";
|
|
13
17
|
import "../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
14
18
|
import { SubmitButton } from "../../inputs/reactHookForm/utils/SubmitButton.js";
|
|
15
|
-
import "@mui/icons-material";
|
|
16
19
|
import "yup";
|
|
17
20
|
import "../../overflowableText/OverflowableText.js";
|
|
18
21
|
import { DirectoryItemSelector } from "../../directoryItemSelector/DirectoryItemSelector.js";
|
|
@@ -23,9 +26,6 @@ import "react-papaparse";
|
|
|
23
26
|
import "react-csv-downloader";
|
|
24
27
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
25
28
|
import { PopupConfirmationDialog } from "../../dialogs/popupConfirmationDialog/PopupConfirmationDialog.js";
|
|
26
|
-
import "../../../utils/conversionUtils.js";
|
|
27
|
-
import { ElementType } from "../../../utils/types/elementType.js";
|
|
28
|
-
import "../../../utils/yupConfig.js";
|
|
29
29
|
import "@react-querybuilder/material";
|
|
30
30
|
import "../../filter/expert/expertFilterConstants.js";
|
|
31
31
|
import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { useState, useEffect } from "react";
|
|
2
2
|
import { fetchEnv } from "../services/appsMetadata.js";
|
|
3
|
+
import "../utils/conversionUtils.js";
|
|
4
|
+
import "react/jsx-runtime";
|
|
5
|
+
import "@mui/icons-material";
|
|
6
|
+
import "../utils/types/equipmentType.js";
|
|
7
|
+
import "../utils/yupConfig.js";
|
|
3
8
|
const useConfidentialityWarning = () => {
|
|
4
9
|
const [confidentialityWarningKey, setConfidentialityWarningKey] = useState();
|
|
5
10
|
useEffect(() => {
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
|
-
*/
|
|
7
|
-
export declare const getSystemLanguage: () => string;
|
|
8
|
-
export declare const getComputedLanguage: (language: string | undefined) => string;
|
|
9
|
-
export declare const useLocalizedCountries: (language: string | undefined) => {
|
|
1
|
+
import { GsLang, GsLangUser } from '../utils/langs';
|
|
2
|
+
export declare const getSystemLanguage: () => GsLangUser;
|
|
3
|
+
export declare const getComputedLanguage: (language: GsLang) => GsLangUser;
|
|
4
|
+
export declare const useLocalizedCountries: (language: GsLang) => {
|
|
10
5
|
translate: (countryCode: string) => string;
|
|
11
6
|
countryCodes: string[];
|
|
12
7
|
};
|
|
@@ -2,6 +2,11 @@ import { useState, useEffect } from "react";
|
|
|
2
2
|
import { equipmentTypesForPredefinedPropertiesMapper } from "../utils/mapper/equipmentTypesForPredefinedPropertiesMapper.js";
|
|
3
3
|
import { useSnackMessage } from "./useSnackMessage.js";
|
|
4
4
|
import { fetchStudyMetadata } from "../services/appsMetadata.js";
|
|
5
|
+
import "../utils/conversionUtils.js";
|
|
6
|
+
import "react/jsx-runtime";
|
|
7
|
+
import "@mui/icons-material";
|
|
8
|
+
import "../utils/types/equipmentType.js";
|
|
9
|
+
import "../utils/yupConfig.js";
|
|
5
10
|
const fetchPredefinedProperties = async (equipmentType) => {
|
|
6
11
|
var _a;
|
|
7
12
|
const networkEquipmentType = equipmentTypesForPredefinedPropertiesMapper(equipmentType);
|
package/dist/index.js
CHANGED
|
@@ -190,7 +190,7 @@ import { getUserToken, setCommonStore } from "./redux/commonStore.js";
|
|
|
190
190
|
import { backendFetch, backendFetchJson, backendFetchText, catchErrorHandler, getRequestParamFromList } from "./services/utils.js";
|
|
191
191
|
import { createFilter, createParameter, fetchElementsInfos, saveFilter, updateParameter } from "./services/explore.js";
|
|
192
192
|
import { fetchAppsMetadata, fetchDefaultCountry, fetchEnv, fetchFavoriteAndDefaultCountries, fetchStudyMetadata, isStudyMetadata } from "./services/appsMetadata.js";
|
|
193
|
-
import { elementAlreadyExists, fetchDirectoryContent, fetchDirectoryElementPath, fetchRootFolders, updateConfigParameter } from "./services/directory.js";
|
|
193
|
+
import { elementAlreadyExists, fetchConfigParameter, fetchConfigParameters, fetchDirectoryContent, fetchDirectoryElementPath, fetchRootFolders, getAppName, updateConfigParameter } from "./services/directory.js";
|
|
194
194
|
import { PREFIX_STUDY_QUERIES, fetchLoadFlowParameters, getDefaultLoadFlowProvider, getLoadFlowDefaultLimitReductions, getLoadFlowProviders, getLoadFlowSpecificParametersDescription, getLoadFlowUrl, setLoadFlowParameters } from "./services/loadflow.js";
|
|
195
195
|
import { exportFilter, getAvailableComponentLibraries, getStudyNetworkVisualizationsParameters, getStudyShortCircuitParameters, invalidateStudyShortCircuitStatus, setStudyNetworkVisualizationParameters, setStudyShortCircuitParameters, updateVoltageInitParameters } from "./services/study.js";
|
|
196
196
|
import { getNetworkVisualizationsParameters } from "./services/study-config.js";
|
|
@@ -202,7 +202,7 @@ import { FetchStatus } from "./utils/constants/fetchStatus.js";
|
|
|
202
202
|
import { FieldConstants } from "./utils/constants/fieldConstants.js";
|
|
203
203
|
import { MAX_CHAR_DESCRIPTION } from "./utils/constants/uiConstants.js";
|
|
204
204
|
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";
|
|
205
|
-
import { LAST_SELECTED_DIRECTORY, PARAM_DEVELOPER_MODE, PARAM_LANGUAGE, PARAM_THEME } from "./utils/constants/configConstants.js";
|
|
205
|
+
import { COMMON_APP_NAME, COMMON_CONFIG_PARAMS_NAMES, LAST_SELECTED_DIRECTORY, PARAM_DEVELOPER_MODE, PARAM_LANGUAGE, PARAM_THEME } from "./utils/constants/configConstants.js";
|
|
206
206
|
import { GRIDSUITE_DEFAULT_PRECISION, convertInputValue, convertOutputValue, isBlankOrEmpty, kiloUnitToUnit, microUnitToUnit, roundToDefaultPrecision, roundToPrecision, unitToKiloUnit, unitToMicroUnit } from "./utils/conversionUtils.js";
|
|
207
207
|
import { areArrayElementsUnique, isObjectEmpty, keyGenerator } from "./utils/functions.js";
|
|
208
208
|
import { LANG_ENGLISH, LANG_FRENCH, LANG_SYSTEM } from "./utils/langs.js";
|
|
@@ -298,6 +298,8 @@ export {
|
|
|
298
298
|
COLUMNS_DEFINITIONS_NODES,
|
|
299
299
|
COLUMNS_DEFINITIONS_PSTS,
|
|
300
300
|
COMBINATOR_OPTIONS,
|
|
301
|
+
COMMON_APP_NAME,
|
|
302
|
+
COMMON_CONFIG_PARAMS_NAMES,
|
|
301
303
|
COMMON_PARAMETERS,
|
|
302
304
|
COMPONENT_LIBRARY,
|
|
303
305
|
CONNECTED_COMPONENT_MODE,
|
|
@@ -688,6 +690,8 @@ export {
|
|
|
688
690
|
exportParamsFr,
|
|
689
691
|
extractDefault,
|
|
690
692
|
fetchAppsMetadata,
|
|
693
|
+
fetchConfigParameter,
|
|
694
|
+
fetchConfigParameters,
|
|
691
695
|
fetchCurrentAnnouncement,
|
|
692
696
|
fetchDefaultCountry,
|
|
693
697
|
fetchDefaultSecurityAnalysisProvider,
|
|
@@ -711,6 +715,7 @@ export {
|
|
|
711
715
|
formatComputingTypeLabel,
|
|
712
716
|
genHelperError,
|
|
713
717
|
generateTreeViewFinderClass,
|
|
718
|
+
getAppName,
|
|
714
719
|
getAvailableComponentLibraries,
|
|
715
720
|
getComputedLanguage,
|
|
716
721
|
getCriteriaBasedFormData,
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { UUID } from 'crypto';
|
|
2
2
|
import { ElementAttributes } from '../utils';
|
|
3
|
-
export declare function
|
|
3
|
+
export declare function getAppName(appName: string, name: string): string;
|
|
4
|
+
export declare function updateConfigParameter(appName: string, name: string, value: string): Promise<Response>;
|
|
5
|
+
export declare function fetchConfigParameters(appName: string): Promise<any>;
|
|
6
|
+
export declare function fetchConfigParameter(appName: string, name: string): Promise<any>;
|
|
4
7
|
export declare function fetchRootFolders(types: string[]): Promise<ElementAttributes[]>;
|
|
5
8
|
export declare function fetchDirectoryContent(directoryUuid: UUID, types?: string[]): Promise<ElementAttributes[]>;
|
|
6
9
|
export declare function fetchDirectoryElementPath(elementUuid: UUID): Promise<ElementAttributes[]>;
|
|
@@ -1,12 +1,32 @@
|
|
|
1
|
-
import { backendFetch,
|
|
1
|
+
import { backendFetch, backendFetchJson, getRequestParamFromList } from "./utils.js";
|
|
2
|
+
import { COMMON_APP_NAME, COMMON_CONFIG_PARAMS_NAMES } from "../utils/constants/configConstants.js";
|
|
3
|
+
import "../utils/conversionUtils.js";
|
|
4
|
+
import "react/jsx-runtime";
|
|
5
|
+
import "@mui/icons-material";
|
|
6
|
+
import "../utils/types/equipmentType.js";
|
|
7
|
+
import "../utils/yupConfig.js";
|
|
2
8
|
const PREFIX_EXPLORE_SERVER_QUERIES = `${"api/gateway"}/explore`;
|
|
3
9
|
const PREFIX_CONFIG_QUERIES = `${"api/gateway"}/config`;
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
10
|
+
function getAppName(appName, name) {
|
|
11
|
+
return COMMON_CONFIG_PARAMS_NAMES.has(name) ? COMMON_APP_NAME : appName;
|
|
12
|
+
}
|
|
13
|
+
function updateConfigParameter(appName, name, value) {
|
|
14
|
+
const targetAppName = getAppName(appName, name);
|
|
15
|
+
console.info(`Updating config parameter '${name}=${value}' for app '${targetAppName}'`);
|
|
16
|
+
const updateParams = `${PREFIX_CONFIG_QUERIES}/v1/applications/${targetAppName}/parameters/${name}?value=${encodeURIComponent(value)}`;
|
|
8
17
|
return backendFetch(updateParams, { method: "put" });
|
|
9
18
|
}
|
|
19
|
+
function fetchConfigParameters(appName) {
|
|
20
|
+
console.info(`Fetching UI configuration params for app : ${appName}`);
|
|
21
|
+
const fetchParams = `${PREFIX_CONFIG_QUERIES}/v1/applications/${appName}/parameters`;
|
|
22
|
+
return backendFetchJson(fetchParams);
|
|
23
|
+
}
|
|
24
|
+
function fetchConfigParameter(appName, name) {
|
|
25
|
+
const targetAppName = getAppName(appName, name);
|
|
26
|
+
console.info(`Fetching UI config parameter '${name}' for app '${targetAppName}'`);
|
|
27
|
+
const fetchParams = `${PREFIX_CONFIG_QUERIES}/v1/applications/${targetAppName}/parameters/${name}`;
|
|
28
|
+
return backendFetchJson(fetchParams);
|
|
29
|
+
}
|
|
10
30
|
function fetchRootFolders(types) {
|
|
11
31
|
console.info("Fetching Root Directories");
|
|
12
32
|
const urlSearchParams = getRequestParamFromList("elementTypes", types).toString();
|
|
@@ -47,8 +67,11 @@ function elementAlreadyExists(directoryUuid, elementName, type) {
|
|
|
47
67
|
}
|
|
48
68
|
export {
|
|
49
69
|
elementAlreadyExists,
|
|
70
|
+
fetchConfigParameter,
|
|
71
|
+
fetchConfigParameters,
|
|
50
72
|
fetchDirectoryContent,
|
|
51
73
|
fetchDirectoryElementPath,
|
|
52
74
|
fetchRootFolders,
|
|
75
|
+
getAppName,
|
|
53
76
|
updateConfigParameter
|
|
54
77
|
};
|
package/dist/services/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { backendFetch, backendFetchJson, backendFetchText, catchErrorHandler, getRequestParamFromList } from "./utils.js";
|
|
2
2
|
import { createFilter, createParameter, fetchElementsInfos, saveFilter, updateParameter } from "./explore.js";
|
|
3
3
|
import { fetchAppsMetadata, fetchDefaultCountry, fetchEnv, fetchFavoriteAndDefaultCountries, fetchStudyMetadata, isStudyMetadata } from "./appsMetadata.js";
|
|
4
|
-
import { elementAlreadyExists, fetchDirectoryContent, fetchDirectoryElementPath, fetchRootFolders, updateConfigParameter } from "./directory.js";
|
|
4
|
+
import { elementAlreadyExists, fetchConfigParameter, fetchConfigParameters, fetchDirectoryContent, fetchDirectoryElementPath, fetchRootFolders, getAppName, updateConfigParameter } from "./directory.js";
|
|
5
5
|
import { PREFIX_STUDY_QUERIES, fetchLoadFlowParameters, getDefaultLoadFlowProvider, getLoadFlowDefaultLimitReductions, getLoadFlowProviders, getLoadFlowSpecificParametersDescription, getLoadFlowUrl, setLoadFlowParameters } from "./loadflow.js";
|
|
6
6
|
import { exportFilter, getAvailableComponentLibraries, getStudyNetworkVisualizationsParameters, getStudyShortCircuitParameters, invalidateStudyShortCircuitStatus, setStudyNetworkVisualizationParameters, setStudyShortCircuitParameters, updateVoltageInitParameters } from "./study.js";
|
|
7
7
|
import { getNetworkVisualizationsParameters } from "./study-config.js";
|
|
@@ -19,6 +19,8 @@ export {
|
|
|
19
19
|
elementAlreadyExists,
|
|
20
20
|
exportFilter,
|
|
21
21
|
fetchAppsMetadata,
|
|
22
|
+
fetchConfigParameter,
|
|
23
|
+
fetchConfigParameters,
|
|
22
24
|
fetchCurrentAnnouncement,
|
|
23
25
|
fetchDefaultCountry,
|
|
24
26
|
fetchDefaultSecurityAnalysisProvider,
|
|
@@ -33,6 +35,7 @@ export {
|
|
|
33
35
|
fetchSecurityAnalysisProviders,
|
|
34
36
|
fetchStudyMetadata,
|
|
35
37
|
fetchUserDetails,
|
|
38
|
+
getAppName,
|
|
36
39
|
getAvailableComponentLibraries,
|
|
37
40
|
getDefaultLoadFlowProvider,
|
|
38
41
|
getLoadFlowDefaultLimitReductions,
|
|
@@ -62,8 +62,8 @@ const networkModificationsEn = {
|
|
|
62
62
|
"network_modifications.VOLTAGE_LEVEL_TOPOLOGY_MODIFICATION": "Modifying voltage level topology {computedLabel}",
|
|
63
63
|
"network_modifications.CREATE_COUPLING_DEVICE": "Creating a coupling device in voltage level {computedLabel}",
|
|
64
64
|
"network_modifications.BALANCES_ADJUSTMENT_MODIFICATION": "Balances adjustment modification",
|
|
65
|
-
"network_modifications.CREATE_VOLTAGE_LEVEL_TOPOLOGY": "Creating a
|
|
66
|
-
"network_modifications.CREATE_VOLTAGE_LEVEL_SECTION": "
|
|
65
|
+
"network_modifications.CREATE_VOLTAGE_LEVEL_TOPOLOGY": "Creating a busbar in voltage level {computedLabel}",
|
|
66
|
+
"network_modifications.CREATE_VOLTAGE_LEVEL_SECTION": "Adding busbar section to voltage level {computedLabel}"
|
|
67
67
|
};
|
|
68
68
|
export {
|
|
69
69
|
networkModificationsEn
|
|
@@ -63,7 +63,7 @@ const networkModificationsFr = {
|
|
|
63
63
|
"network_modifications.CREATE_COUPLING_DEVICE": "Création de couplage / omnibus dans le poste {computedLabel}",
|
|
64
64
|
"network_modifications.BALANCES_ADJUSTMENT_MODIFICATION": "Modification d'équilibrage bilan",
|
|
65
65
|
"network_modifications.CREATE_VOLTAGE_LEVEL_TOPOLOGY": "Ajout d'un jeu de barre dans le poste {computedLabel}",
|
|
66
|
-
"network_modifications.CREATE_VOLTAGE_LEVEL_SECTION": "
|
|
66
|
+
"network_modifications.CREATE_VOLTAGE_LEVEL_SECTION": "Ajout de section / tronçon dans le poste {computedLabel}"
|
|
67
67
|
};
|
|
68
68
|
export {
|
|
69
69
|
networkModificationsFr
|
|
@@ -2,3 +2,5 @@ export declare const PARAM_THEME = "theme";
|
|
|
2
2
|
export declare const PARAM_LANGUAGE = "language";
|
|
3
3
|
export declare const PARAM_DEVELOPER_MODE = "enableDeveloperMode";
|
|
4
4
|
export declare const LAST_SELECTED_DIRECTORY = "lastSelectedDirectory";
|
|
5
|
+
export declare const COMMON_CONFIG_PARAMS_NAMES: Set<string>;
|
|
6
|
+
export declare const COMMON_APP_NAME = "common";
|
|
@@ -2,7 +2,16 @@ const PARAM_THEME = "theme";
|
|
|
2
2
|
const PARAM_LANGUAGE = "language";
|
|
3
3
|
const PARAM_DEVELOPER_MODE = "enableDeveloperMode";
|
|
4
4
|
const LAST_SELECTED_DIRECTORY = "lastSelectedDirectory";
|
|
5
|
+
const COMMON_CONFIG_PARAMS_NAMES = /* @__PURE__ */ new Set([
|
|
6
|
+
PARAM_THEME,
|
|
7
|
+
PARAM_LANGUAGE,
|
|
8
|
+
LAST_SELECTED_DIRECTORY,
|
|
9
|
+
PARAM_DEVELOPER_MODE
|
|
10
|
+
]);
|
|
11
|
+
const COMMON_APP_NAME = "common";
|
|
5
12
|
export {
|
|
13
|
+
COMMON_APP_NAME,
|
|
14
|
+
COMMON_CONFIG_PARAMS_NAMES,
|
|
6
15
|
LAST_SELECTED_DIRECTORY,
|
|
7
16
|
PARAM_DEVELOPER_MODE,
|
|
8
17
|
PARAM_LANGUAGE,
|
|
@@ -2,9 +2,11 @@ import { FetchStatus } from "./fetchStatus.js";
|
|
|
2
2
|
import { FieldConstants } from "./fieldConstants.js";
|
|
3
3
|
import { MAX_CHAR_DESCRIPTION } from "./uiConstants.js";
|
|
4
4
|
import { AMPERE, DEGREE, KILO_AMPERE, KILO_METER, KILO_VOLT, MEGA_VAR, MEGA_VOLT_AMPERE, MEGA_WATT, MICRO_SIEMENS, OHM, PERCENTAGE, SIEMENS } from "./unitsConstants.js";
|
|
5
|
-
import { LAST_SELECTED_DIRECTORY, PARAM_DEVELOPER_MODE, PARAM_LANGUAGE, PARAM_THEME } from "./configConstants.js";
|
|
5
|
+
import { COMMON_APP_NAME, COMMON_CONFIG_PARAMS_NAMES, LAST_SELECTED_DIRECTORY, PARAM_DEVELOPER_MODE, PARAM_LANGUAGE, PARAM_THEME } from "./configConstants.js";
|
|
6
6
|
export {
|
|
7
7
|
AMPERE,
|
|
8
|
+
COMMON_APP_NAME,
|
|
9
|
+
COMMON_CONFIG_PARAMS_NAMES,
|
|
8
10
|
DEGREE,
|
|
9
11
|
FetchStatus,
|
|
10
12
|
FieldConstants,
|
package/dist/utils/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { FetchStatus } from "./constants/fetchStatus.js";
|
|
|
3
3
|
import { FieldConstants } from "./constants/fieldConstants.js";
|
|
4
4
|
import { MAX_CHAR_DESCRIPTION } from "./constants/uiConstants.js";
|
|
5
5
|
import { AMPERE, DEGREE, KILO_AMPERE, KILO_METER, KILO_VOLT, MEGA_VAR, MEGA_VOLT_AMPERE, MEGA_WATT, MICRO_SIEMENS, OHM, PERCENTAGE, SIEMENS } from "./constants/unitsConstants.js";
|
|
6
|
-
import { LAST_SELECTED_DIRECTORY, PARAM_DEVELOPER_MODE, PARAM_LANGUAGE, PARAM_THEME } from "./constants/configConstants.js";
|
|
6
|
+
import { COMMON_APP_NAME, COMMON_CONFIG_PARAMS_NAMES, LAST_SELECTED_DIRECTORY, PARAM_DEVELOPER_MODE, PARAM_LANGUAGE, PARAM_THEME } from "./constants/configConstants.js";
|
|
7
7
|
import { GRIDSUITE_DEFAULT_PRECISION, convertInputValue, convertOutputValue, isBlankOrEmpty, kiloUnitToUnit, microUnitToUnit, roundToDefaultPrecision, roundToPrecision, unitToKiloUnit, unitToMicroUnit } from "./conversionUtils.js";
|
|
8
8
|
import { areArrayElementsUnique, isObjectEmpty, keyGenerator } from "./functions.js";
|
|
9
9
|
import { LANG_ENGLISH, LANG_FRENCH, LANG_SYSTEM } from "./langs.js";
|
|
@@ -30,6 +30,8 @@ export {
|
|
|
30
30
|
BASE_EQUIPMENTS,
|
|
31
31
|
Battery,
|
|
32
32
|
BusBar,
|
|
33
|
+
COMMON_APP_NAME,
|
|
34
|
+
COMMON_CONFIG_PARAMS_NAMES,
|
|
33
35
|
DARK_THEME,
|
|
34
36
|
DEGREE,
|
|
35
37
|
DanglingLine,
|