@gridsuite/commons-ui 0.159.0 → 0.161.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/checkBoxList/CheckBoxListItem.js +1 -1
- package/dist/components/checkBoxList/CheckBoxListItemContent.js +1 -1
- package/dist/components/checkBoxList/DraggableCheckBoxListItem.js +1 -1
- package/dist/components/checkBoxList/DraggableCheckBoxListItemContent.js +1 -1
- package/dist/components/csvDownloader/use-csv-export.js +1 -1
- package/dist/components/customAGGrid/cell-renderers.js +1 -1
- package/dist/components/customAGGrid/separatorCellRenderer.js +1 -1
- package/dist/components/dialogs/elementSaveDialog/ElementSaveDialog.js +1 -1
- package/dist/components/directoryItemSelector/utils.js +2 -2
- package/dist/components/dnd-table/dnd-table-add-rows-dialog.js +1 -1
- package/dist/components/filter/FilterForm.js +1 -1
- package/dist/components/filter/HeaderFilterForm.js +1 -1
- package/dist/components/filter/expert/ExpertFilterForm.js +1 -1
- package/dist/components/filter/expert/expertFilterConstants.js +1 -1
- package/dist/components/filter/utils/filterFormUtils.js +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/inputs/reactHookForm/DirectoryItemsInput.js +1 -1
- package/dist/components/inputs/reactHookForm/OverflowableChipWithHelperText.js +1 -1
- package/dist/components/inputs/reactHookForm/agGridTable/CustomAgGridTable.js +1 -1
- package/dist/components/inputs/reactHookForm/agGridTable/csvUploader/CsvUploader.js +1 -1
- package/dist/components/inputs/reactHookForm/chip-items-input.js +1 -1
- package/dist/components/inputs/reactQueryBuilder/CountryValueEditor.js +1 -1
- package/dist/components/inputs/reactQueryBuilder/ElementValueEditor.js +1 -1
- package/dist/components/inputs/reactQueryBuilder/OperatorSelector.js +1 -1
- package/dist/components/overflowableText/OverflowableText.js +1 -1
- package/dist/components/parameters/common/ProviderParam.js +1 -1
- package/dist/components/parameters/common/limitreductions/limit-reduction-table-cell.js +1 -1
- package/dist/components/parameters/common/limitreductions/limit-reductions-table-form.js +1 -1
- package/dist/components/parameters/common/name-element-editor/name-element-editor-form.js +1 -1
- package/dist/components/parameters/common/name-element-editor/name-element-editor-utils.js +1 -1
- package/dist/components/parameters/common/utils.js +2 -2
- package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table-cell.js +1 -1
- package/dist/components/parameters/common/widget/parameter-float.js +1 -1
- package/dist/components/parameters/common/widget/parameter-line-directory-items-input.js +1 -1
- package/dist/components/parameters/common/widget/parameter-line-slider.js +1 -1
- package/dist/components/parameters/index.js +2 -2
- package/dist/components/parameters/loadflow/load-flow-general-parameters.js +1 -1
- package/dist/components/parameters/loadflow/load-flow-parameter-field.js +1 -1
- package/dist/components/parameters/loadflow/load-flow-parameters-content.js +1 -1
- package/dist/components/parameters/loadflow/load-flow-parameters-dialog.js +2 -2
- package/dist/components/parameters/loadflow/load-flow-parameters-form.js +1 -1
- package/dist/components/parameters/loadflow/load-flow-parameters-header.js +1 -1
- package/dist/components/parameters/loadflow/load-flow-parameters-utils.js +1 -1
- package/dist/components/parameters/network-visualizations/network-area-diagram-parameters.js +1 -1
- package/dist/components/parameters/network-visualizations/network-visualizations-form.js +1 -1
- package/dist/components/parameters/network-visualizations/network-visualizations-parameters-dialog.js +1 -1
- package/dist/components/parameters/network-visualizations/single-line-diagram-parameters.js +1 -1
- package/dist/components/parameters/pcc-min/pcc-min-form-utils.js +1 -1
- package/dist/components/parameters/pcc-min/pcc-min-parameters-dialog.js +1 -1
- package/dist/components/parameters/pcc-min/pcc-min-parameters-form.js +1 -1
- package/dist/components/parameters/security-analysis/security-analysis-parameters-dialog.js +1 -1
- package/dist/components/parameters/security-analysis/security-analysis-parameters-form.js +1 -1
- package/dist/components/parameters/security-analysis/security-analysis-parameters-selector.js +1 -1
- package/dist/components/parameters/sensi/columns-definitions.js +2 -2
- package/dist/components/parameters/sensi/sensitivity-Flow-parameters.js +1 -1
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-dialog.js +1 -1
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-form.js +1 -1
- package/dist/components/parameters/sensi/sensitivity-parameters-selector.js +1 -1
- package/dist/components/parameters/sensi/table-cell.js +1 -1
- package/dist/components/parameters/sensi/utils.js +2 -2
- package/dist/components/parameters/short-circuit/constants.d.ts +1 -1
- package/dist/components/parameters/short-circuit/constants.js +2 -2
- package/dist/components/parameters/short-circuit/index.js +2 -2
- package/dist/components/parameters/short-circuit/short-circuit-fields.js +29 -13
- package/dist/components/parameters/short-circuit/short-circuit-icc-material-table-cell.js +1 -1
- package/dist/components/parameters/short-circuit/short-circuit-parameters-dialog.js +1 -1
- package/dist/components/parameters/short-circuit/short-circuit-parameters-form.js +1 -1
- package/dist/components/parameters/short-circuit/short-circuit-parameters-utils.js +1 -1
- package/dist/components/parameters/short-circuit/use-short-circuit-parameters-form.js +2 -2
- package/dist/components/parameters/voltage-init/equipment-selection-parameters.js +1 -1
- package/dist/components/parameters/voltage-init/general-parameters.js +1 -1
- package/dist/components/parameters/voltage-init/voltage-init-form-utils.js +1 -1
- package/dist/components/parameters/voltage-init/voltage-init-parameters-dialog.js +1 -1
- package/dist/components/parameters/voltage-init/voltage-init-parameters-form.js +1 -1
- package/dist/hooks/use-unique-name-validation.js +1 -1
- package/dist/hooks/useConfidentialityWarning.js +1 -1
- package/dist/hooks/useModificationLabelComputer.js +1 -1
- package/dist/hooks/useSnackMessage.d.ts +5 -2
- package/dist/index.js +3 -4
- package/dist/services/config.js +1 -1
- package/dist/services/directory.js +1 -1
- package/dist/services/pcc-min.js +1 -1
- package/dist/translations/en/businessErrorsEn.d.ts +5 -0
- package/dist/translations/en/businessErrorsEn.js +6 -1
- package/dist/translations/fr/businessErrorsFr.d.ts +5 -0
- package/dist/translations/fr/businessErrorsFr.js +6 -1
- package/dist/utils/error.js +3 -2
- package/dist/utils/index.js +1 -2
- package/dist/utils/mapper/getFileIcon.js +3 -1
- package/dist/utils/types/ProblemDetailError.d.ts +1 -2
- package/dist/utils/types/ProblemDetailError.js +13 -11
- package/dist/utils/types/elementType.d.ts +2 -1
- package/dist/utils/types/elementType.js +1 -0
- package/dist/utils/types/index.js +1 -2
- package/package.json +1 -1
|
@@ -2,9 +2,9 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-intl";
|
|
4
4
|
import "../../../utils/conversionUtils.js";
|
|
5
|
-
import "@mui/icons-material";
|
|
6
5
|
import { ElementType } from "../../../utils/types/elementType.js";
|
|
7
6
|
import "../../../utils/types/equipmentType.js";
|
|
7
|
+
import "@mui/icons-material";
|
|
8
8
|
import "../../../utils/yupConfig.js";
|
|
9
9
|
import { getSecurityAnalysisDefaultLimitReductions, updateSecurityAnalysisParameters, fetchSecurityAnalysisParameters, fetchDefaultSecurityAnalysisProvider, fetchSecurityAnalysisProviders } from "../../../services/security-analysis.js";
|
|
10
10
|
import "@mui/material";
|
|
@@ -3,9 +3,9 @@ import { FormattedMessage } from "react-intl";
|
|
|
3
3
|
import { Grid, Box, LinearProgress } from "@mui/material";
|
|
4
4
|
import "../../overflowableText/OverflowableText.js";
|
|
5
5
|
import "../../../utils/conversionUtils.js";
|
|
6
|
+
import "../../../utils/types/equipmentType.js";
|
|
6
7
|
import "@mui/icons-material";
|
|
7
8
|
import { mergeSx } from "../../../utils/styles.js";
|
|
8
|
-
import "../../../utils/types/equipmentType.js";
|
|
9
9
|
import "../../../utils/yupConfig.js";
|
|
10
10
|
import "react";
|
|
11
11
|
import "react-hook-form";
|
package/dist/components/parameters/security-analysis/security-analysis-parameters-selector.js
CHANGED
|
@@ -4,8 +4,8 @@ import { FormattedMessage } from "react-intl";
|
|
|
4
4
|
import { Grid, Tabs, Tab } from "@mui/material";
|
|
5
5
|
import { TabPanel } from "../common/parameters.js";
|
|
6
6
|
import "../../../utils/conversionUtils.js";
|
|
7
|
-
import "@mui/icons-material";
|
|
8
7
|
import "../../../utils/types/equipmentType.js";
|
|
8
|
+
import "@mui/icons-material";
|
|
9
9
|
import "../../../utils/yupConfig.js";
|
|
10
10
|
import "localized-countries";
|
|
11
11
|
import "localized-countries/data/fr";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { MONITORED_BRANCHES, INJECTIONS, DISTRIBUTION_TYPE, CONTINGENCIES, ACTIVATED, SENSITIVITY_TYPE, HVDC_LINES, PSTS, SUPERVISED_VOLTAGE_LEVELS, EQUIPMENTS_IN_VOLTAGE_REGULATION, PARAMETER_SENSI_INJECTIONS_SET, PARAMETER_SENSI_INJECTION, PARAMETER_SENSI_HVDC, PARAMETER_SENSI_PST, PARAMETER_SENSI_NODES } from "./constants.js";
|
|
2
2
|
import "../../../utils/conversionUtils.js";
|
|
3
|
-
import "react/jsx-runtime";
|
|
4
|
-
import "@mui/icons-material";
|
|
5
3
|
import { ElementType } from "../../../utils/types/elementType.js";
|
|
6
4
|
import { EquipmentType } from "../../../utils/types/equipmentType.js";
|
|
5
|
+
import "react/jsx-runtime";
|
|
6
|
+
import "@mui/icons-material";
|
|
7
7
|
import "../../../utils/yupConfig.js";
|
|
8
8
|
const MONITORED_BRANCHES_EQUIPMENT_TYPES = [EquipmentType.LINE, EquipmentType.TWO_WINDINGS_TRANSFORMER];
|
|
9
9
|
const INJECTION_DISTRIBUTION_TYPES = [
|
|
@@ -4,8 +4,8 @@ import { FormattedMessage } from "react-intl";
|
|
|
4
4
|
import { FLOW_FLOW_SENSITIVITY_VALUE_THRESHOLD, ANGLE_FLOW_SENSITIVITY_VALUE_THRESHOLD, FLOW_VOLTAGE_SENSITIVITY_VALUE_THRESHOLD } from "./constants.js";
|
|
5
5
|
import "../../overflowableText/OverflowableText.js";
|
|
6
6
|
import "../../../utils/conversionUtils.js";
|
|
7
|
-
import "@mui/icons-material";
|
|
8
7
|
import "../../../utils/types/equipmentType.js";
|
|
8
|
+
import "@mui/icons-material";
|
|
9
9
|
import "../../../utils/yupConfig.js";
|
|
10
10
|
import "react";
|
|
11
11
|
import "react-hook-form";
|
|
@@ -4,9 +4,9 @@ import "@mui/material";
|
|
|
4
4
|
import "react-intl";
|
|
5
5
|
import "react";
|
|
6
6
|
import "../../../utils/conversionUtils.js";
|
|
7
|
-
import "@mui/icons-material";
|
|
8
7
|
import { ElementType } from "../../../utils/types/elementType.js";
|
|
9
8
|
import "../../../utils/types/equipmentType.js";
|
|
9
|
+
import "@mui/icons-material";
|
|
10
10
|
import "../../../utils/yupConfig.js";
|
|
11
11
|
import "localized-countries";
|
|
12
12
|
import "localized-countries/data/fr";
|
|
@@ -4,9 +4,9 @@ import { FormattedMessage } from "react-intl";
|
|
|
4
4
|
import { parametersStyles } from "../parameters-style.js";
|
|
5
5
|
import "../../overflowableText/OverflowableText.js";
|
|
6
6
|
import "../../../utils/conversionUtils.js";
|
|
7
|
+
import "../../../utils/types/equipmentType.js";
|
|
7
8
|
import "@mui/icons-material";
|
|
8
9
|
import { mergeSx } from "../../../utils/styles.js";
|
|
9
|
-
import "../../../utils/types/equipmentType.js";
|
|
10
10
|
import "../../../utils/yupConfig.js";
|
|
11
11
|
import "react";
|
|
12
12
|
import "react-hook-form";
|
|
@@ -6,8 +6,8 @@ import { SensiTabValues, SensiBranchesTabValues, SensiInjectionsSet, SensiInject
|
|
|
6
6
|
import { SensitivityTable } from "./sensitivity-table.js";
|
|
7
7
|
import { TabPanel } from "../common/parameters.js";
|
|
8
8
|
import "../../../utils/conversionUtils.js";
|
|
9
|
-
import "@mui/icons-material";
|
|
10
9
|
import "../../../utils/types/equipmentType.js";
|
|
10
|
+
import "@mui/icons-material";
|
|
11
11
|
import "../../../utils/yupConfig.js";
|
|
12
12
|
import "localized-countries";
|
|
13
13
|
import "localized-countries/data/fr";
|
|
@@ -3,8 +3,8 @@ import { TableCell } from "@mui/material";
|
|
|
3
3
|
import "react-intl";
|
|
4
4
|
import "../../overflowableText/OverflowableText.js";
|
|
5
5
|
import "../../../utils/conversionUtils.js";
|
|
6
|
-
import "@mui/icons-material";
|
|
7
6
|
import "../../../utils/types/equipmentType.js";
|
|
7
|
+
import "@mui/icons-material";
|
|
8
8
|
import "../../../utils/yupConfig.js";
|
|
9
9
|
import "react";
|
|
10
10
|
import "react-hook-form";
|
|
@@ -2,10 +2,10 @@ import "../../../utils/yupConfig.js";
|
|
|
2
2
|
import { FLOW_VOLTAGE_SENSITIVITY_VALUE_THRESHOLD, ANGLE_FLOW_SENSITIVITY_VALUE_THRESHOLD, FLOW_FLOW_SENSITIVITY_VALUE_THRESHOLD, PARAMETER_SENSI_NODES, EQUIPMENTS_IN_VOLTAGE_REGULATION, SUPERVISED_VOLTAGE_LEVELS, PARAMETER_SENSI_PST, PSTS, ACTIVATED, PARAMETER_SENSI_HVDC, HVDC_LINES, PARAMETER_SENSI_INJECTION, INJECTIONS, PARAMETER_SENSI_INJECTIONS_SET, DISTRIBUTION_TYPE, CONTINGENCIES, SENSITIVITY_TYPE, MONITORED_BRANCHES, CONTAINER_NAME, CONTAINER_ID } from "./constants.js";
|
|
3
3
|
import { ID } from "../../../utils/constants/filterConstant.js";
|
|
4
4
|
import "../../../utils/conversionUtils.js";
|
|
5
|
-
import "react/jsx-runtime";
|
|
6
|
-
import "@mui/icons-material";
|
|
7
5
|
import "../../../utils/types/equipmentType.js";
|
|
8
6
|
import { DistributionType, SensitivityType } from "../../../utils/types/sensitivity-analysis.type.js";
|
|
7
|
+
import "react/jsx-runtime";
|
|
8
|
+
import "@mui/icons-material";
|
|
9
9
|
import { PROVIDER } from "../common/constant.js";
|
|
10
10
|
import "@mui/material";
|
|
11
11
|
import "react-intl";
|
|
@@ -22,7 +22,7 @@ export declare const SHORT_CIRCUIT_WITH_SHUNT_COMPENSATORS = "withShuntCompensat
|
|
|
22
22
|
export declare const SHORT_CIRCUIT_WITH_NEUTRAL_POSITION = "withNeutralPosition";
|
|
23
23
|
export declare const SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE = "initialVoltageProfileMode";
|
|
24
24
|
export declare const SHORT_CIRCUIT_VOLTAGE_RANGES = "voltageRanges";
|
|
25
|
-
export declare const
|
|
25
|
+
export declare const SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER = "onlyStartedGeneratorsInCalculationCluster";
|
|
26
26
|
export declare const SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS = "modelPowerElectronics";
|
|
27
27
|
export declare const SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS = "powerElectronicsMaterials";
|
|
28
28
|
export declare const intlPredefinedParametersOptions: () => {
|
|
@@ -18,7 +18,7 @@ const SHORT_CIRCUIT_WITH_SHUNT_COMPENSATORS = "withShuntCompensators";
|
|
|
18
18
|
const SHORT_CIRCUIT_WITH_NEUTRAL_POSITION = "withNeutralPosition";
|
|
19
19
|
const SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE = "initialVoltageProfileMode";
|
|
20
20
|
const SHORT_CIRCUIT_VOLTAGE_RANGES = "voltageRanges";
|
|
21
|
-
const
|
|
21
|
+
const SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER = "onlyStartedGeneratorsInCalculationCluster";
|
|
22
22
|
const SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS = "modelPowerElectronics";
|
|
23
23
|
const SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS = "powerElectronicsMaterials";
|
|
24
24
|
const intlPredefinedParametersOptions = () => [
|
|
@@ -62,7 +62,7 @@ export {
|
|
|
62
62
|
PredefinedParameters,
|
|
63
63
|
SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE,
|
|
64
64
|
SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS,
|
|
65
|
-
|
|
65
|
+
SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER,
|
|
66
66
|
SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS,
|
|
67
67
|
SHORT_CIRCUIT_PREDEFINED_PARAMS,
|
|
68
68
|
SHORT_CIRCUIT_VOLTAGE_RANGES,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InitialVoltage, PredefinedParameters, SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS,
|
|
1
|
+
import { InitialVoltage, PredefinedParameters, SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS, SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER, SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS, SHORT_CIRCUIT_PREDEFINED_PARAMS, SHORT_CIRCUIT_VOLTAGE_RANGES, SHORT_CIRCUIT_WITH_FEEDER_RESULT, SHORT_CIRCUIT_WITH_LOADS, SHORT_CIRCUIT_WITH_NEUTRAL_POSITION, SHORT_CIRCUIT_WITH_SHUNT_COMPENSATORS, SHORT_CIRCUIT_WITH_VSC_CONVERTER_STATIONS, intlInitialVoltageProfileMode, intlPredefinedParametersOptions, onlyStartedGeneratorsOptions } from "./constants.js";
|
|
2
2
|
import { ShortCircuitParametersInLine } from "./short-circuit-parameters-inline.js";
|
|
3
3
|
import { ShortCircuitParametersEditionDialog } from "./short-circuit-parameters-dialog.js";
|
|
4
4
|
export {
|
|
@@ -6,7 +6,7 @@ export {
|
|
|
6
6
|
PredefinedParameters,
|
|
7
7
|
SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE,
|
|
8
8
|
SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS,
|
|
9
|
-
|
|
9
|
+
SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER,
|
|
10
10
|
SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS,
|
|
11
11
|
SHORT_CIRCUIT_PREDEFINED_PARAMS,
|
|
12
12
|
SHORT_CIRCUIT_VOLTAGE_RANGES,
|
|
@@ -5,7 +5,7 @@ import { green, red } from "@mui/material/colors";
|
|
|
5
5
|
import { Lens } from "@mui/icons-material";
|
|
6
6
|
import { useWatch, useFormContext } from "react-hook-form";
|
|
7
7
|
import { FormattedMessage } from "react-intl";
|
|
8
|
-
import { SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, SHORT_CIRCUIT_PREDEFINED_PARAMS, SHORT_CIRCUIT_WITH_LOADS, SHORT_CIRCUIT_WITH_SHUNT_COMPENSATORS, SHORT_CIRCUIT_WITH_VSC_CONVERTER_STATIONS, SHORT_CIRCUIT_WITH_NEUTRAL_POSITION,
|
|
8
|
+
import { SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, SHORT_CIRCUIT_PREDEFINED_PARAMS, SHORT_CIRCUIT_WITH_LOADS, SHORT_CIRCUIT_WITH_SHUNT_COMPENSATORS, SHORT_CIRCUIT_WITH_VSC_CONVERTER_STATIONS, SHORT_CIRCUIT_WITH_NEUTRAL_POSITION, SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER, intlPredefinedParametersOptions, intlInitialVoltageProfileMode, onlyStartedGeneratorsOptions, PredefinedParameters, InitialVoltage, SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS, SHORT_CIRCUIT_WITH_FEEDER_RESULT, SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS } from "./constants.js";
|
|
9
9
|
import { VoltageTable } from "./short-circuit-voltage-table.js";
|
|
10
10
|
import GridItem from "../../grid/grid-item.js";
|
|
11
11
|
import GridSection from "../../grid/grid-section.js";
|
|
@@ -84,15 +84,27 @@ function ShortCircuitFields({ resetAll, isDeveloperMode = true }) {
|
|
|
84
84
|
() => Object.keys(watchSpecificParameters).length > 0 && watchSpecificParameters.constructor === Object,
|
|
85
85
|
[watchSpecificParameters]
|
|
86
86
|
);
|
|
87
|
-
const
|
|
88
|
-
name: `${SPECIFIC_PARAMETERS}.${
|
|
87
|
+
const watchOnlyStartedGeneratorsInCalculationCluster = useWatch({
|
|
88
|
+
name: `${SPECIFIC_PARAMETERS}.${SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER}`
|
|
89
89
|
});
|
|
90
90
|
const isIccMinFeaturesDefaultConfiguration = useMemo(() => {
|
|
91
|
-
return !watchLoads && !watchShuntCompensators && !watchVSC && !watchNeutralPosition &&
|
|
92
|
-
}, [
|
|
91
|
+
return !watchLoads && !watchShuntCompensators && !watchVSC && !watchNeutralPosition && watchOnlyStartedGeneratorsInCalculationCluster;
|
|
92
|
+
}, [
|
|
93
|
+
watchLoads,
|
|
94
|
+
watchShuntCompensators,
|
|
95
|
+
watchVSC,
|
|
96
|
+
watchNeutralPosition,
|
|
97
|
+
watchOnlyStartedGeneratorsInCalculationCluster
|
|
98
|
+
]);
|
|
93
99
|
const isIccMaxFeaturesDefaultConfiguration = useMemo(() => {
|
|
94
|
-
return !watchLoads && !watchShuntCompensators && watchVSC && !watchNeutralPosition && !
|
|
95
|
-
}, [
|
|
100
|
+
return !watchLoads && !watchShuntCompensators && watchVSC && !watchNeutralPosition && !watchOnlyStartedGeneratorsInCalculationCluster;
|
|
101
|
+
}, [
|
|
102
|
+
watchLoads,
|
|
103
|
+
watchShuntCompensators,
|
|
104
|
+
watchVSC,
|
|
105
|
+
watchNeutralPosition,
|
|
106
|
+
watchOnlyStartedGeneratorsInCalculationCluster
|
|
107
|
+
]);
|
|
96
108
|
const predefinedParamsOptions = useMemo(() => {
|
|
97
109
|
return intlPredefinedParametersOptions();
|
|
98
110
|
}, []);
|
|
@@ -152,16 +164,20 @@ function ShortCircuitFields({ resetAll, isDeveloperMode = true }) {
|
|
|
152
164
|
label: "shortCircuitNeutralPosition"
|
|
153
165
|
}
|
|
154
166
|
);
|
|
155
|
-
const
|
|
167
|
+
const onlyStartedGeneratorsInCalculationCluster = /* @__PURE__ */ jsx(
|
|
156
168
|
RadioInput,
|
|
157
169
|
{
|
|
158
|
-
name: `${SPECIFIC_PARAMETERS}.${
|
|
170
|
+
name: `${SPECIFIC_PARAMETERS}.${SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER}`,
|
|
159
171
|
options: Object.values(onlyStartedGeneratorsOptions),
|
|
160
172
|
formProps: {
|
|
161
173
|
onChange: (_event, value) => {
|
|
162
|
-
setValue(
|
|
163
|
-
|
|
164
|
-
|
|
174
|
+
setValue(
|
|
175
|
+
`${SPECIFIC_PARAMETERS}.${SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER}`,
|
|
176
|
+
value === "true",
|
|
177
|
+
{
|
|
178
|
+
shouldDirty: true
|
|
179
|
+
}
|
|
180
|
+
);
|
|
165
181
|
}
|
|
166
182
|
}
|
|
167
183
|
}
|
|
@@ -215,7 +231,7 @@ function ShortCircuitFields({ resetAll, isDeveloperMode = true }) {
|
|
|
215
231
|
/* @__PURE__ */ jsx(VoltageTable, { voltageProfileMode: watchInitialVoltageProfileMode }),
|
|
216
232
|
isThereSpecificParameters && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
217
233
|
/* @__PURE__ */ jsx(GridSection, { title: "ShortCircuitStartedGeneratorsMode", heading: 4 }),
|
|
218
|
-
/* @__PURE__ */ jsx(Grid, { container: true, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children:
|
|
234
|
+
/* @__PURE__ */ jsx(Grid, { container: true, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: onlyStartedGeneratorsInCalculationCluster }) }),
|
|
219
235
|
isDeveloperMode && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
220
236
|
/* @__PURE__ */ jsx(GridSection, { title: "ShortCircuitPowerElectronicsSection", heading: 4 }),
|
|
221
237
|
/* @__PURE__ */ jsx(Grid, { container: true, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: modelPowerElectronics }) }),
|
|
@@ -3,8 +3,8 @@ import { TableCell } from "@mui/material";
|
|
|
3
3
|
import "react-intl";
|
|
4
4
|
import "../../overflowableText/OverflowableText.js";
|
|
5
5
|
import "../../../utils/conversionUtils.js";
|
|
6
|
-
import "@mui/icons-material";
|
|
7
6
|
import "../../../utils/types/equipmentType.js";
|
|
7
|
+
import "@mui/icons-material";
|
|
8
8
|
import "../../../utils/yupConfig.js";
|
|
9
9
|
import "react";
|
|
10
10
|
import "react-hook-form";
|
|
@@ -3,9 +3,9 @@ import { CustomMuiDialog } from "../../dialogs/customMuiDialog/CustomMuiDialog.j
|
|
|
3
3
|
import "../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
4
4
|
import "../../dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
5
5
|
import "../../../utils/conversionUtils.js";
|
|
6
|
-
import "@mui/icons-material";
|
|
7
6
|
import { ElementType } from "../../../utils/types/elementType.js";
|
|
8
7
|
import "../../../utils/types/equipmentType.js";
|
|
8
|
+
import "@mui/icons-material";
|
|
9
9
|
import "../../../utils/yupConfig.js";
|
|
10
10
|
import { getShortCircuitSpecificParametersDescription, updateShortCircuitParameters, fetchShortCircuitParameters } from "../../../services/short-circuit-analysis.js";
|
|
11
11
|
import "react";
|
|
@@ -3,8 +3,8 @@ import { Box, Grid, LinearProgress } from "@mui/material";
|
|
|
3
3
|
import "react-intl";
|
|
4
4
|
import "../../overflowableText/OverflowableText.js";
|
|
5
5
|
import "../../../utils/conversionUtils.js";
|
|
6
|
-
import "@mui/icons-material";
|
|
7
6
|
import "../../../utils/types/equipmentType.js";
|
|
7
|
+
import "@mui/icons-material";
|
|
8
8
|
import "../../../utils/yupConfig.js";
|
|
9
9
|
import "react";
|
|
10
10
|
import "react-hook-form";
|
|
@@ -6,8 +6,8 @@ import "@mui/material";
|
|
|
6
6
|
import "react-intl";
|
|
7
7
|
import "react";
|
|
8
8
|
import "../../../utils/conversionUtils.js";
|
|
9
|
-
import "@mui/icons-material";
|
|
10
9
|
import "../../../utils/types/equipmentType.js";
|
|
10
|
+
import "@mui/icons-material";
|
|
11
11
|
import "localized-countries";
|
|
12
12
|
import "localized-countries/data/fr";
|
|
13
13
|
import "localized-countries/data/en";
|
|
@@ -32,7 +32,7 @@ import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
|
32
32
|
import "uuid";
|
|
33
33
|
import "../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
34
34
|
import "react-querybuilder";
|
|
35
|
-
import { SHORT_CIRCUIT_PREDEFINED_PARAMS, PredefinedParameters, InitialVoltage, SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, SHORT_CIRCUIT_WITH_NEUTRAL_POSITION, SHORT_CIRCUIT_WITH_SHUNT_COMPENSATORS, SHORT_CIRCUIT_WITH_VSC_CONVERTER_STATIONS, SHORT_CIRCUIT_WITH_LOADS, SHORT_CIRCUIT_WITH_FEEDER_RESULT,
|
|
35
|
+
import { SHORT_CIRCUIT_PREDEFINED_PARAMS, PredefinedParameters, InitialVoltage, SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, SHORT_CIRCUIT_WITH_NEUTRAL_POSITION, SHORT_CIRCUIT_WITH_SHUNT_COMPENSATORS, SHORT_CIRCUIT_WITH_VSC_CONVERTER_STATIONS, SHORT_CIRCUIT_WITH_LOADS, SHORT_CIRCUIT_WITH_FEEDER_RESULT, SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER, SHORT_CIRCUIT_VOLTAGE_RANGES } from "./constants.js";
|
|
36
36
|
import "../../filter/HeaderFilterForm.js";
|
|
37
37
|
import { getNameElementEditorSchema, getNameElementEditorEmptyFormData } from "../common/name-element-editor/name-element-editor-utils.js";
|
|
38
38
|
import { SPECIFIC_PARAMETERS, COMMON_PARAMETERS, VERSION_PARAMETER, PROVIDER } from "../common/constant.js";
|
|
@@ -98,7 +98,7 @@ const useShortCircuitParametersForm = ({
|
|
|
98
98
|
);
|
|
99
99
|
setValue(SHORT_CIRCUIT_PREDEFINED_PARAMS, predefinedParameter, dirty);
|
|
100
100
|
setValue(
|
|
101
|
-
`${SPECIFIC_PARAMETERS}.${
|
|
101
|
+
`${SPECIFIC_PARAMETERS}.${SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER}`,
|
|
102
102
|
predefinedParameter === PredefinedParameters.ICC_MIN_WITH_NOMINAL_VOLTAGE_MAP,
|
|
103
103
|
dirty
|
|
104
104
|
);
|
|
@@ -3,9 +3,9 @@ import { Grid, Alert } from "@mui/material";
|
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
4
|
import "../../overflowableText/OverflowableText.js";
|
|
5
5
|
import "../../../utils/conversionUtils.js";
|
|
6
|
-
import "@mui/icons-material";
|
|
7
6
|
import { ElementType } from "../../../utils/types/elementType.js";
|
|
8
7
|
import { EquipmentType } from "../../../utils/types/equipmentType.js";
|
|
8
|
+
import "@mui/icons-material";
|
|
9
9
|
import "../../../utils/yupConfig.js";
|
|
10
10
|
import "react";
|
|
11
11
|
import "react-hook-form";
|
|
@@ -8,8 +8,8 @@ import { ReactivePowerAdornment } from "../common/constant.js";
|
|
|
8
8
|
import { LineSeparator } from "../common/line-separator.js";
|
|
9
9
|
import { parametersStyles } from "../parameters-style.js";
|
|
10
10
|
import "../../../utils/conversionUtils.js";
|
|
11
|
-
import "@mui/icons-material";
|
|
12
11
|
import "../../../utils/types/equipmentType.js";
|
|
12
|
+
import "@mui/icons-material";
|
|
13
13
|
import "../../../utils/yupConfig.js";
|
|
14
14
|
import "localized-countries";
|
|
15
15
|
import "localized-countries/data/fr";
|
|
@@ -6,8 +6,8 @@ import "@mui/material";
|
|
|
6
6
|
import "../../overflowableText/OverflowableText.js";
|
|
7
7
|
import { FILTER_NAME, FILTER_ID, ID, FILTERS } from "../../../utils/constants/filterConstant.js";
|
|
8
8
|
import "../../../utils/conversionUtils.js";
|
|
9
|
-
import "@mui/icons-material";
|
|
10
9
|
import "../../../utils/types/equipmentType.js";
|
|
10
|
+
import "@mui/icons-material";
|
|
11
11
|
import "../../../utils/yupConfig.js";
|
|
12
12
|
import "react";
|
|
13
13
|
import "react-hook-form";
|
|
@@ -3,9 +3,9 @@ import { CustomMuiDialog } from "../../dialogs/customMuiDialog/CustomMuiDialog.j
|
|
|
3
3
|
import "../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
4
4
|
import "../../dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
5
5
|
import "../../../utils/conversionUtils.js";
|
|
6
|
-
import "@mui/icons-material";
|
|
7
6
|
import { ElementType } from "../../../utils/types/elementType.js";
|
|
8
7
|
import "../../../utils/types/equipmentType.js";
|
|
8
|
+
import "@mui/icons-material";
|
|
9
9
|
import "../../../utils/yupConfig.js";
|
|
10
10
|
import "react";
|
|
11
11
|
import "@mui/material";
|
|
@@ -4,8 +4,8 @@ import { FormattedMessage } from "react-intl";
|
|
|
4
4
|
import { getTabIndicatorStyle, getTabStyle } from "../parameters-style.js";
|
|
5
5
|
import "../../overflowableText/OverflowableText.js";
|
|
6
6
|
import "../../../utils/conversionUtils.js";
|
|
7
|
-
import "@mui/icons-material";
|
|
8
7
|
import "../../../utils/types/equipmentType.js";
|
|
8
|
+
import "@mui/icons-material";
|
|
9
9
|
import "../../../utils/yupConfig.js";
|
|
10
10
|
import "react";
|
|
11
11
|
import "react-hook-form";
|
|
@@ -2,9 +2,9 @@ import { useCallback, useEffect } from "react";
|
|
|
2
2
|
import { useFormContext, useController } from "react-hook-form";
|
|
3
3
|
import { FieldConstants } from "../utils/constants/fieldConstants.js";
|
|
4
4
|
import "../utils/conversionUtils.js";
|
|
5
|
+
import "../utils/types/equipmentType.js";
|
|
5
6
|
import "react/jsx-runtime";
|
|
6
7
|
import "@mui/icons-material";
|
|
7
|
-
import "../utils/types/equipmentType.js";
|
|
8
8
|
import "../utils/yupConfig.js";
|
|
9
9
|
import { useDebounce } from "./useDebounce.js";
|
|
10
10
|
import { elementAlreadyExists } from "../services/directory.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useState, useEffect } from "react";
|
|
2
2
|
import { fetchEnv } from "../services/appsMetadata.js";
|
|
3
3
|
import "../utils/conversionUtils.js";
|
|
4
|
+
import "../utils/types/equipmentType.js";
|
|
4
5
|
import "react/jsx-runtime";
|
|
5
6
|
import "@mui/icons-material";
|
|
6
|
-
import "../utils/types/equipmentType.js";
|
|
7
7
|
import "../utils/yupConfig.js";
|
|
8
8
|
const useConfidentialityWarning = () => {
|
|
9
9
|
const [confidentialityWarningKey, setConfidentialityWarningKey] = useState();
|
|
@@ -2,9 +2,9 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useIntl } from "react-intl";
|
|
3
3
|
import { useCallback } from "react";
|
|
4
4
|
import "../utils/conversionUtils.js";
|
|
5
|
-
import "@mui/icons-material";
|
|
6
5
|
import { EquipmentType } from "../utils/types/equipmentType.js";
|
|
7
6
|
import { MODIFICATION_TYPES } from "../utils/types/modificationType.js";
|
|
7
|
+
import "@mui/icons-material";
|
|
8
8
|
import "../utils/yupConfig.js";
|
|
9
9
|
const getOperatingStatusModificationValues = (modification, formatBold) => {
|
|
10
10
|
return {
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { closeSnackbar as closeSnackbarFromNotistack, OptionsObject } from 'notistack';
|
|
2
|
+
import { FormatXMLElementFn, PrimitiveType } from 'intl-messageformat';
|
|
3
|
+
type FormatValues = Record<string, PrimitiveType | FormatXMLElementFn<string, string>>;
|
|
2
4
|
export interface SnackInputs extends Omit<OptionsObject, 'variant' | 'style'> {
|
|
3
5
|
messageTxt?: string;
|
|
4
6
|
messageId?: string;
|
|
5
|
-
messageValues?:
|
|
7
|
+
messageValues?: FormatValues;
|
|
6
8
|
headerTxt?: string;
|
|
7
9
|
headerId?: string;
|
|
8
|
-
headerValues?:
|
|
10
|
+
headerValues?: FormatValues;
|
|
9
11
|
}
|
|
10
12
|
export interface UseSnackMessageReturn {
|
|
11
13
|
snackError: (snackInputs: SnackInputs) => void;
|
|
@@ -15,3 +17,4 @@ export interface UseSnackMessageReturn {
|
|
|
15
17
|
closeSnackbar: typeof closeSnackbarFromNotistack;
|
|
16
18
|
}
|
|
17
19
|
export declare function useSnackMessage(): UseSnackMessageReturn;
|
|
20
|
+
export {};
|
package/dist/index.js
CHANGED
|
@@ -159,7 +159,7 @@ import { NetworkVisualizationsParametersEditionDialog } from "./components/param
|
|
|
159
159
|
import { BALANCE_TYPE, CONNECTED_MODE, COUNTRIES_TO_BALANCE, DC, DC_POWER_FACTOR, DC_USE_TRANSFORMER_RATIO, DEFAULT_LIMIT_REDUCTION_VALUE, DISTRIBUTED_SLACK, HVDC_AC_EMULATION, MAX_VALUE_ALLOWED_FOR_LIMIT_REDUCTION, MIN_VALUE_ALLOWED_FOR_LIMIT_REDUCTION, PARAM_LIMIT_REDUCTION, PARAM_PROVIDER_OPENLOADFLOW, PHASE_SHIFTER_REGULATION_ON, READ_SLACK_BUS, SHUNT_COMPENSATOR_VOLTAGE_CONTROL_ON, TWT_SPLIT_SHUNT_ADMITTANCE, USE_REACTIVE_LIMITS, VOLTAGE_INIT_MODE, WRITE_SLACK_BUS, alertThresholdMarks } from "./components/parameters/loadflow/constants.js";
|
|
160
160
|
import { LoadFlowParametersInline } from "./components/parameters/loadflow/load-flow-parameters-inline.js";
|
|
161
161
|
import { LoadFlowParametersEditionDialog } from "./components/parameters/loadflow/load-flow-parameters-dialog.js";
|
|
162
|
-
import { InitialVoltage, PredefinedParameters, SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS,
|
|
162
|
+
import { InitialVoltage, PredefinedParameters, SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS, SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER, SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS, SHORT_CIRCUIT_PREDEFINED_PARAMS, SHORT_CIRCUIT_VOLTAGE_RANGES, SHORT_CIRCUIT_WITH_FEEDER_RESULT, SHORT_CIRCUIT_WITH_LOADS, SHORT_CIRCUIT_WITH_NEUTRAL_POSITION, SHORT_CIRCUIT_WITH_SHUNT_COMPENSATORS, SHORT_CIRCUIT_WITH_VSC_CONVERTER_STATIONS, intlInitialVoltageProfileMode, intlPredefinedParametersOptions, onlyStartedGeneratorsOptions } from "./components/parameters/short-circuit/constants.js";
|
|
163
163
|
import { ShortCircuitParametersInLine } from "./components/parameters/short-circuit/short-circuit-parameters-inline.js";
|
|
164
164
|
import { ShortCircuitParametersEditionDialog } from "./components/parameters/short-circuit/short-circuit-parameters-dialog.js";
|
|
165
165
|
import { DEFAULT_GENERAL_APPLY_MODIFICATIONS, DEFAULT_REACTIVE_SLACKS_THRESHOLD, DEFAULT_SHUNT_COMPENSATOR_ACTIVATION_THRESHOLD, DEFAULT_UPDATE_BUS_VOLTAGE, GENERAL, GENERAL_APPLY_MODIFICATIONS, GENERATORS_SELECTION_TYPE, HIGH_VOLTAGE_LIMIT, LEG_SIDE, LOW_VOLTAGE_LIMIT, PRIORITY, RATIO_TAP_CHANGER_POSITION, RATIO_TAP_CHANGER_TARGET_V, REACTIVE_SLACKS_THRESHOLD, SELECTION_TYPE, SHUNT_COMPENSATORS_SELECTION_TYPE, SHUNT_COMPENSATOR_ACTIVATION_THRESHOLD, TRANSFORMERS_SELECTION_TYPE, UPDATE_BUS_VOLTAGE, VARIABLE_Q_GENERATORS, VARIABLE_SHUNT_COMPENSATORS, VARIABLE_TRANSFORMERS, VOLTAGE_LIMITS_DEFAULT, VOLTAGE_LIMITS_MODIFICATION, VoltageInitTabValues } from "./components/parameters/voltage-init/constants.js";
|
|
@@ -224,7 +224,7 @@ import { copyToClipboard } from "./utils/navigator-clipboard.js";
|
|
|
224
224
|
import { NotificationsUrlKeys, PREFIX_CONFIG_NOTIFICATION_WS, PREFIX_DIRECTORY_NOTIFICATION_WS, PREFIX_STUDY_NOTIFICATION_WS } from "./utils/constants/notificationsProvider.js";
|
|
225
225
|
import { DARK_THEME, LIGHT_THEME, makeComposeClasses, mergeSx, toNestedGlobalSelectors } from "./utils/styles.js";
|
|
226
226
|
import { CustomError } from "./utils/types/CustomError.js";
|
|
227
|
-
import { ProblemDetailError
|
|
227
|
+
import { ProblemDetailError } from "./utils/types/ProblemDetailError.js";
|
|
228
228
|
import { NetworkTimeoutError } from "./utils/types/NetworkTimeoutError.js";
|
|
229
229
|
import { ElementType } from "./utils/types/elementType.js";
|
|
230
230
|
import { ALL_EQUIPMENTS, BASE_EQUIPMENTS, EquipmentType, ExtendedEquipmentType, HvdcType, OperatingStatus, SEARCH_EQUIPMENTS, TYPE_TAG_MAX_SIZE, VL_TAG_MAX_SIZE, equipmentStyles, getEquipmentsInfosForSearchBar } from "./utils/types/equipmentType.js";
|
|
@@ -602,7 +602,7 @@ export {
|
|
|
602
602
|
SENSITIVITY_TYPES,
|
|
603
603
|
SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE,
|
|
604
604
|
SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS,
|
|
605
|
-
|
|
605
|
+
SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER,
|
|
606
606
|
SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS,
|
|
607
607
|
SHORT_CIRCUIT_PREDEFINED_PARAMS,
|
|
608
608
|
SHORT_CIRCUIT_VOLTAGE_RANGES,
|
|
@@ -777,7 +777,6 @@ export {
|
|
|
777
777
|
flatParametersEn,
|
|
778
778
|
flatParametersFr,
|
|
779
779
|
formatComputingTypeLabel,
|
|
780
|
-
formatMessageValues,
|
|
781
780
|
genHelperError,
|
|
782
781
|
generateTreeViewFinderClass,
|
|
783
782
|
getAppName,
|
package/dist/services/config.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { backendFetch, backendFetchJson } from "./utils.js";
|
|
2
2
|
import { COMMON_APP_NAME, COMMON_CONFIG_PARAMS_NAMES } from "../utils/constants/configConstants.js";
|
|
3
3
|
import "../utils/conversionUtils.js";
|
|
4
|
+
import "../utils/types/equipmentType.js";
|
|
4
5
|
import "react/jsx-runtime";
|
|
5
6
|
import "@mui/icons-material";
|
|
6
|
-
import "../utils/types/equipmentType.js";
|
|
7
7
|
import "../utils/yupConfig.js";
|
|
8
8
|
const PREFIX_CONFIG_QUERIES = `${"api/gateway"}/config`;
|
|
9
9
|
function getAppName(appName, name) {
|
|
@@ -47,7 +47,7 @@ var PermissionType = /* @__PURE__ */ ((PermissionType2) => {
|
|
|
47
47
|
function hasElementPermission(elementUuid, permission) {
|
|
48
48
|
const url = `${PREFIX_EXPLORE_SERVER_QUERIES}/v1/explore/elements/${elementUuid}?permission=${permission}`;
|
|
49
49
|
console.debug(url);
|
|
50
|
-
return backendFetch(url, { method: "
|
|
50
|
+
return backendFetch(url, { method: "get" }).then((response) => response.status === 200).catch(() => {
|
|
51
51
|
console.info(`${permission} permission denied for element or directory ${elementUuid}`);
|
|
52
52
|
return false;
|
|
53
53
|
});
|
package/dist/services/pcc-min.js
CHANGED
|
@@ -12,6 +12,9 @@ export declare const businessErrorsEn: {
|
|
|
12
12
|
'directory.moveInDescendantNotAllowed': string;
|
|
13
13
|
'directory.someElementsAreMissing': string;
|
|
14
14
|
'directory.elementNotFound': string;
|
|
15
|
+
'directory.parentPermissionDenied': string;
|
|
16
|
+
'directory.childPermissionDenied': string;
|
|
17
|
+
'directory.targetPermissionDenied': string;
|
|
15
18
|
'explore.permissionDenied': string;
|
|
16
19
|
'explore.maxElementsExceeded': string;
|
|
17
20
|
'explore.incorrectCaseFile': string;
|
|
@@ -33,6 +36,7 @@ export declare const businessErrorsEn: {
|
|
|
33
36
|
'study.networkExportFailed': string;
|
|
34
37
|
'study.tooManyNadConfigs': string;
|
|
35
38
|
'study.tooManyMapCards': string;
|
|
39
|
+
'study.elementAlreadyExists': string;
|
|
36
40
|
'useradmin.permissionDenied': string;
|
|
37
41
|
'useradmin.userNotFound': string;
|
|
38
42
|
'useradmin.userAlreadyExists': string;
|
|
@@ -61,4 +65,5 @@ export declare const businessErrorsEn: {
|
|
|
61
65
|
'dynamicSimulation.mappingNotProvided': string;
|
|
62
66
|
'dynamicSimulation.mappingNotLastRuleWithEmptyFilterError': string;
|
|
63
67
|
'sensitivityAnalysis.tooManyFactors': string;
|
|
68
|
+
'pccMin.missingFilter': string;
|
|
64
69
|
};
|
|
@@ -6,6 +6,9 @@ const businessErrorsEn = {
|
|
|
6
6
|
"directory.moveInDescendantNotAllowed": "Cannot move an element inside one of its descendants.",
|
|
7
7
|
"directory.someElementsAreMissing": "Some of the requested directory elements are missing.",
|
|
8
8
|
"directory.elementNotFound": "The requested directory element could not be found.",
|
|
9
|
+
"directory.parentPermissionDenied": "You don't have sufficient rights on parent folder",
|
|
10
|
+
"directory.childPermissionDenied": "The folder contains at least one subfolder for which you do not have sufficient rights",
|
|
11
|
+
"directory.targetPermissionDenied": "You don't have sufficient rights on target folder",
|
|
9
12
|
"explore.permissionDenied": "You are not allowed to perform this action.",
|
|
10
13
|
"explore.maxElementsExceeded": "You have reached your user quota for cases and studies ({limit} cases and studies).",
|
|
11
14
|
"explore.incorrectCaseFile": "The provided case file is incorrect.",
|
|
@@ -27,6 +30,7 @@ const businessErrorsEn = {
|
|
|
27
30
|
"study.networkExportFailed": "Failed to export network.",
|
|
28
31
|
"study.tooManyNadConfigs": "Maximum number of NAD configuration exceeded.",
|
|
29
32
|
"study.tooManyMapCards": "Maximum number of cards exceeded.",
|
|
33
|
+
"study.elementAlreadyExists": "An element with the same name already exists",
|
|
30
34
|
"useradmin.permissionDenied": "You don't have permission to perform this action.",
|
|
31
35
|
"useradmin.userNotFound": "User not found.",
|
|
32
36
|
"useradmin.userAlreadyExists": "User already exists.",
|
|
@@ -54,7 +58,8 @@ const businessErrorsEn = {
|
|
|
54
58
|
"dynamicSimulation.providerNotFound": "Dynamic simulation provider not found.",
|
|
55
59
|
"dynamicSimulation.mappingNotProvided": "Dynamic simulation mapping not provided.",
|
|
56
60
|
"dynamicSimulation.mappingNotLastRuleWithEmptyFilterError": "Only last rule can have empty filter: type {equipmentType}, rule index {index}.",
|
|
57
|
-
"sensitivityAnalysis.tooManyFactors": "Too many factors to run sensitivity analysis: {resultCount} results (limit: {resultCountLimit}) and {variableCount} variables (limit: {variableCountLimit})."
|
|
61
|
+
"sensitivityAnalysis.tooManyFactors": "Too many factors to run sensitivity analysis: {resultCount} results (limit: {resultCountLimit}) and {variableCount} variables (limit: {variableCountLimit}).",
|
|
62
|
+
"pccMin.missingFilter": "The configuration contains one filter that has been deleted."
|
|
58
63
|
};
|
|
59
64
|
export {
|
|
60
65
|
businessErrorsEn
|
|
@@ -12,6 +12,9 @@ export declare const businessErrorsFr: {
|
|
|
12
12
|
'directory.moveInDescendantNotAllowed': string;
|
|
13
13
|
'directory.someElementsAreMissing': string;
|
|
14
14
|
'directory.elementNotFound': string;
|
|
15
|
+
'directory.parentPermissionDenied': string;
|
|
16
|
+
'directory.childPermissionDenied': string;
|
|
17
|
+
'directory.targetPermissionDenied': string;
|
|
15
18
|
'explore.permissionDenied': string;
|
|
16
19
|
'explore.maxElementsExceeded': string;
|
|
17
20
|
'explore.incorrectCaseFile': string;
|
|
@@ -33,6 +36,7 @@ export declare const businessErrorsFr: {
|
|
|
33
36
|
'study.networkExportFailed': string;
|
|
34
37
|
'study.tooManyNadConfigs': string;
|
|
35
38
|
'study.tooManyMapCards': string;
|
|
39
|
+
'study.elementAlreadyExists': string;
|
|
36
40
|
'useradmin.permissionDenied': string;
|
|
37
41
|
'useradmin.userNotFound': string;
|
|
38
42
|
'useradmin.userAlreadyExists': string;
|
|
@@ -61,4 +65,5 @@ export declare const businessErrorsFr: {
|
|
|
61
65
|
'dynamicSimulation.mappingNotProvided': string;
|
|
62
66
|
'dynamicSimulation.mappingNotLastRuleWithEmptyFilterError': string;
|
|
63
67
|
'sensitivityAnalysis.tooManyFactors': string;
|
|
68
|
+
'pccMin.missingFilter': string;
|
|
64
69
|
};
|
|
@@ -6,6 +6,9 @@ const businessErrorsFr = {
|
|
|
6
6
|
"directory.moveInDescendantNotAllowed": "Impossible de déplacer un élément dans l’un de ses descendants.",
|
|
7
7
|
"directory.someElementsAreMissing": "Certains des éléments demandés sont manquants.",
|
|
8
8
|
"directory.elementNotFound": "L'élément du dossier demandé est introuvable.",
|
|
9
|
+
"directory.parentPermissionDenied": "Vous n'avez pas les droits d'accès suffisant sur le dossier parent",
|
|
10
|
+
"directory.childPermissionDenied": "Le dossier contient au moins un sous-dossier pour lequel vous n'avez pas les droits d'accès suffisant",
|
|
11
|
+
"directory.targetPermissionDenied": "Vous n'avez pas les droits d'accès suffisant sur le dossier cible",
|
|
9
12
|
"explore.permissionDenied": "Vous n'êtes pas autorisé à effectuer cette action.",
|
|
10
13
|
"explore.maxElementsExceeded": "Vous avez atteint votre quota utilisateur en termes de situations et d'études ({limit} situations et études).",
|
|
11
14
|
"explore.incorrectCaseFile": "Le fichier réseau fourni est incorrect.",
|
|
@@ -27,6 +30,7 @@ const businessErrorsFr = {
|
|
|
27
30
|
"study.networkExportFailed": "Échec de l'export de réseau.",
|
|
28
31
|
"study.tooManyNadConfigs": "Nombre maximal de configurations d'image nodale de zone atteint.",
|
|
29
32
|
"study.tooManyMapCards": "Nombre maximal de carte atteint.",
|
|
33
|
+
"study.elementAlreadyExists": "Un élément avec le même nom est déjà présent",
|
|
30
34
|
"useradmin.permissionDenied": "Vous n'avez pas la permission d'effectuer cette action.",
|
|
31
35
|
"useradmin.userNotFound": "Utilisateur introuvable.",
|
|
32
36
|
"useradmin.userAlreadyExists": "L'utilisateur existe déjà.",
|
|
@@ -54,7 +58,8 @@ const businessErrorsFr = {
|
|
|
54
58
|
"dynamicSimulation.providerNotFound": "Simulateur pour la simulation dynamique non trouvé.",
|
|
55
59
|
"dynamicSimulation.mappingNotProvided": "Mapping pour la simulation dynamique non fourni.",
|
|
56
60
|
"dynamicSimulation.mappingNotLastRuleWithEmptyFilterError": "Seule la dernière règle peut avoir un filtre vide : type {equipmentType}, indice de la règle : {index}.",
|
|
57
|
-
"sensitivityAnalysis.tooManyFactors": "Trop de facteurs pour exécuter l’analyse de sensibilité : {resultCount} résultats (limite : {resultCountLimit}) et {variableCount} variables (limite : {variableCountLimit})."
|
|
61
|
+
"sensitivityAnalysis.tooManyFactors": "Trop de facteurs pour exécuter l’analyse de sensibilité : {resultCount} résultats (limite : {resultCountLimit}) et {variableCount} variables (limite : {variableCountLimit}).",
|
|
62
|
+
"pccMin.missingFilter": "La configuration contient un filtre qui a été supprimé."
|
|
58
63
|
};
|
|
59
64
|
export {
|
|
60
65
|
businessErrorsFr
|