@gridsuite/commons-ui 0.155.0 → 0.157.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/directoryItemSelector/DirectoryItemSelector.d.ts +1 -1
- package/dist/components/directoryItemSelector/DirectoryItemSelector.js +15 -6
- package/dist/components/filter/FilterForm.js +3 -0
- package/dist/components/filter/expert/ExpertFilterForm.js +3 -3
- package/dist/components/icons/index.d.ts +0 -3
- package/dist/components/icons/index.js +1 -7
- package/dist/components/index.js +2 -8
- package/dist/components/parameters/index.js +2 -2
- package/dist/components/parameters/loadflow/constants.d.ts +1 -1
- package/dist/components/parameters/loadflow/constants.js +2 -2
- package/dist/components/parameters/loadflow/index.js +2 -2
- package/dist/components/parameters/loadflow/load-flow-general-parameters.js +4 -4
- package/dist/components/parameters/loadflow/load-flow-parameters-dialog.js +2 -2
- package/dist/components/parameters/loadflow/load-flow-parameters-utils.d.ts +4 -4
- package/dist/components/parameters/loadflow/load-flow-parameters-utils.js +2 -2
- package/dist/components/parameters/network-visualizations/network-visualizations-parameters-dialog.js +3 -3
- package/dist/components/parameters/pcc-min/pcc-min-parameters-dialog.js +3 -3
- package/dist/components/parameters/short-circuit/short-circuit-parameters-dialog.js +3 -3
- package/dist/components/parameters/voltage-init/voltage-init-parameters-dialog.js +3 -3
- package/dist/index.js +4 -9
- package/dist/utils/functions.d.ts +4 -0
- package/dist/utils/functions.js +4 -0
- package/dist/utils/index.js +2 -1
- package/package.json +1 -1
- package/dist/components/icons/DeviceHubIcon.d.ts +0 -11
- package/dist/components/icons/DeviceHubIcon.js +0 -15
- package/dist/components/icons/PhotoLibraryIcon.d.ts +0 -7
- package/dist/components/icons/PhotoLibraryIcon.js +0 -19
- package/dist/components/icons/TuneIcon.d.ts +0 -13
- package/dist/components/icons/TuneIcon.js +0 -20
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UUID } from 'node:crypto';
|
|
2
|
-
import { TreeViewFinderProps } from '../treeViewFinder/TreeViewFinder';
|
|
3
2
|
import { ElementAttributes } from '../../utils';
|
|
3
|
+
import { TreeViewFinderProps } from '../treeViewFinder';
|
|
4
4
|
export interface DirectoryItemSelectorProps extends TreeViewFinderProps {
|
|
5
5
|
types: string[];
|
|
6
6
|
equipmentTypes?: string[];
|
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useRef, useCallback, useEffect } from "react";
|
|
3
|
-
import { getFileIcon } from "../../utils/mapper/getFileIcon.js";
|
|
4
|
-
import { ElementType } from "../../utils/types/elementType.js";
|
|
5
|
-
import { TreeViewFinder } from "../treeViewFinder/TreeViewFinder.js";
|
|
6
|
-
import { useSnackMessage } from "../../hooks/useSnackMessage.js";
|
|
7
3
|
import "../../utils/conversionUtils.js";
|
|
8
4
|
import { snackWithFallback } from "../../utils/error.js";
|
|
5
|
+
import { arraysContainIdenticalStrings } from "../../utils/functions.js";
|
|
6
|
+
import { getFileIcon } from "../../utils/mapper/getFileIcon.js";
|
|
7
|
+
import { ElementType } from "../../utils/types/elementType.js";
|
|
9
8
|
import "../../utils/types/equipmentType.js";
|
|
10
9
|
import "../../utils/yupConfig.js";
|
|
10
|
+
import { TreeViewFinder } from "../treeViewFinder/TreeViewFinder.js";
|
|
11
|
+
import "react-intl";
|
|
11
12
|
import { fetchRootFolders, fetchDirectoryContent } from "../../services/directory.js";
|
|
12
13
|
import { fetchElementsInfos } from "../../services/explore.js";
|
|
14
|
+
import "@mui/material";
|
|
15
|
+
import "localized-countries";
|
|
16
|
+
import "localized-countries/data/fr";
|
|
17
|
+
import "localized-countries/data/en";
|
|
18
|
+
import { useSnackMessage } from "../../hooks/useSnackMessage.js";
|
|
19
|
+
import "react-hook-form";
|
|
13
20
|
import { getExpansionPathsForSelected, fetchChildrenForExpandedNodes, initializeFromLastSelected, saveLastSelectedDirectoryFromNode } from "./utils.js";
|
|
14
21
|
const styles = {
|
|
15
22
|
icon: (theme) => ({
|
|
@@ -116,6 +123,7 @@ function DirectoryItemSelector({
|
|
|
116
123
|
...otherTreeViewFinderProps
|
|
117
124
|
}) {
|
|
118
125
|
const [data, setData] = useState([]);
|
|
126
|
+
const [lastFetchedEquipmentTypes, setLastFetchedEquipmentTypes] = useState();
|
|
119
127
|
const [rootDirectories, setRootDirectories] = useState([]);
|
|
120
128
|
const [isRootsLoaded, setIsRootsLoaded] = useState(false);
|
|
121
129
|
const [autoExpandedNodes, setAutoExpandedNodes] = useState([]);
|
|
@@ -210,11 +218,12 @@ function DirectoryItemSelector({
|
|
|
210
218
|
const fetchNodeChildrenIfNeeded = useCallback(
|
|
211
219
|
async (nodeId) => {
|
|
212
220
|
const node = nodeMap.current[nodeId];
|
|
213
|
-
if (node && (!node.children || node.children.length === 0) && node.type === ElementType.DIRECTORY) {
|
|
221
|
+
if (node && (!node.children || node.children.length === 0 || !arraysContainIdenticalStrings(equipmentTypes, lastFetchedEquipmentTypes)) && node.type === ElementType.DIRECTORY) {
|
|
222
|
+
setLastFetchedEquipmentTypes(equipmentTypes);
|
|
214
223
|
await fetchDirectoryChildren(nodeId);
|
|
215
224
|
}
|
|
216
225
|
},
|
|
217
|
-
[fetchDirectoryChildren]
|
|
226
|
+
[equipmentTypes, lastFetchedEquipmentTypes, setLastFetchedEquipmentTypes, fetchDirectoryChildren]
|
|
218
227
|
);
|
|
219
228
|
const handleSelectedExpansion = useCallback(async () => {
|
|
220
229
|
if (!selected || selected.length === 0) {
|
|
@@ -15,6 +15,9 @@ import "react";
|
|
|
15
15
|
import "react-intl";
|
|
16
16
|
import "react-hook-form";
|
|
17
17
|
import "../treeViewFinder/TreeViewFinder.js";
|
|
18
|
+
import "localized-countries";
|
|
19
|
+
import "localized-countries/data/fr";
|
|
20
|
+
import "localized-countries/data/en";
|
|
18
21
|
import "notistack";
|
|
19
22
|
function FilterForm({
|
|
20
23
|
sourceFilterForExplicitNamingConversion,
|
|
@@ -21,13 +21,13 @@ import "@mui/icons-material";
|
|
|
21
21
|
import "../../../utils/yupConfig.js";
|
|
22
22
|
import "react-intl";
|
|
23
23
|
import "../../treeViewFinder/TreeViewFinder.js";
|
|
24
|
+
import "localized-countries";
|
|
25
|
+
import "localized-countries/data/fr";
|
|
26
|
+
import "localized-countries/data/en";
|
|
24
27
|
import "notistack";
|
|
25
28
|
import { useFormatLabelWithUnit } from "../../../hooks/useFormatLabelWithUnit.js";
|
|
26
29
|
import { filterStyles } from "../HeaderFilterForm.js";
|
|
27
30
|
import "../../overflowableText/OverflowableText.js";
|
|
28
|
-
import "localized-countries";
|
|
29
|
-
import "localized-countries/data/fr";
|
|
30
|
-
import "localized-countries/data/en";
|
|
31
31
|
import "../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
32
32
|
import { useCustomFormContext } from "../../inputs/reactHookForm/provider/useCustomFormContext.js";
|
|
33
33
|
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
@@ -7,7 +7,4 @@
|
|
|
7
7
|
export { LeftPanelOpenIcon } from './LeftPanelOpenIcon';
|
|
8
8
|
export { ArrowsOutputIcon } from './ArrowsOutputIcon';
|
|
9
9
|
export { LeftPanelCloseIcon } from './LeftPanelCloseIcon';
|
|
10
|
-
export { DeviceHubIcon } from './DeviceHubIcon';
|
|
11
|
-
export { TuneIcon } from './TuneIcon';
|
|
12
|
-
export { PhotoLibraryIcon } from './PhotoLibraryIcon';
|
|
13
10
|
export { EditNoteIcon } from './EditNoteIcon';
|
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
import { LeftPanelOpenIcon } from "./LeftPanelOpenIcon.js";
|
|
2
2
|
import { ArrowsOutputIcon } from "./ArrowsOutputIcon.js";
|
|
3
3
|
import { LeftPanelCloseIcon } from "./LeftPanelCloseIcon.js";
|
|
4
|
-
import { DeviceHubIcon } from "./DeviceHubIcon.js";
|
|
5
|
-
import { TuneIcon } from "./TuneIcon.js";
|
|
6
|
-
import { PhotoLibraryIcon } from "./PhotoLibraryIcon.js";
|
|
7
4
|
import { EditNoteIcon } from "./EditNoteIcon.js";
|
|
8
5
|
export {
|
|
9
6
|
ArrowsOutputIcon,
|
|
10
|
-
DeviceHubIcon,
|
|
11
7
|
EditNoteIcon,
|
|
12
8
|
LeftPanelCloseIcon,
|
|
13
|
-
LeftPanelOpenIcon
|
|
14
|
-
PhotoLibraryIcon,
|
|
15
|
-
TuneIcon
|
|
9
|
+
LeftPanelOpenIcon
|
|
16
10
|
};
|
package/dist/components/index.js
CHANGED
|
@@ -131,9 +131,6 @@ import { useListenerManager } from "./notifications/hooks/useListenerManager.js"
|
|
|
131
131
|
import { LeftPanelOpenIcon } from "./icons/LeftPanelOpenIcon.js";
|
|
132
132
|
import { ArrowsOutputIcon } from "./icons/ArrowsOutputIcon.js";
|
|
133
133
|
import { LeftPanelCloseIcon } from "./icons/LeftPanelCloseIcon.js";
|
|
134
|
-
import { DeviceHubIcon } from "./icons/DeviceHubIcon.js";
|
|
135
|
-
import { TuneIcon } from "./icons/TuneIcon.js";
|
|
136
|
-
import { PhotoLibraryIcon } from "./icons/PhotoLibraryIcon.js";
|
|
137
134
|
import { EditNoteIcon } from "./icons/EditNoteIcon.js";
|
|
138
135
|
import { ComputingType, formatComputingTypeLabel, isValidComputingType } from "./parameters/common/computing-type.js";
|
|
139
136
|
import { COMMON_PARAMETERS, PARAM_SA_FLOW_PROPORTIONAL_THRESHOLD, PARAM_SA_HIGH_VOLTAGE_ABSOLUTE_THRESHOLD, PARAM_SA_HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD, PARAM_SA_LOW_VOLTAGE_ABSOLUTE_THRESHOLD, PARAM_SA_LOW_VOLTAGE_PROPORTIONAL_THRESHOLD, PARAM_SA_PROVIDER, PROVIDER, ReactivePowerAdornment, SPECIFIC_PARAMETERS, VERSION_PARAMETER, VOLTAGE_LEVEL, VoltageAdornment } from "./parameters/common/constant.js";
|
|
@@ -158,7 +155,7 @@ import { CENTER_LABEL, COMPONENT_LIBRARY, DIAGONAL_LABEL, INTL_LINE_FLOW_MODE_OP
|
|
|
158
155
|
import { MAP_BASEMAP_CARTO, MAP_BASEMAP_CARTO_NOLABEL, MAP_BASEMAP_ETALAB, MAP_BASEMAP_MAPBOX, NadPositionsGenerationMode, SubstationLayout } from "./parameters/network-visualizations/network-visualizations.types.js";
|
|
159
156
|
import { NetworkVisualizationParametersInline } from "./parameters/network-visualizations/network-visualizations-parameters-inline.js";
|
|
160
157
|
import { NetworkVisualizationsParametersEditionDialog } from "./parameters/network-visualizations/network-visualizations-parameters-dialog.js";
|
|
161
|
-
import { BALANCE_TYPE,
|
|
158
|
+
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 "./parameters/loadflow/constants.js";
|
|
162
159
|
import { LoadFlowParametersInline } from "./parameters/loadflow/load-flow-parameters-inline.js";
|
|
163
160
|
import { LoadFlowParametersEditionDialog } from "./parameters/loadflow/load-flow-parameters-dialog.js";
|
|
164
161
|
import { InitialVoltage, PredefinedParameters, SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS, SHORT_CIRCUIT_ONLY_STARTED_GENERATORS, 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 "./parameters/short-circuit/constants.js";
|
|
@@ -206,7 +203,7 @@ export {
|
|
|
206
203
|
COMBINATOR_OPTIONS,
|
|
207
204
|
COMMON_PARAMETERS,
|
|
208
205
|
COMPONENT_LIBRARY,
|
|
209
|
-
|
|
206
|
+
CONNECTED_MODE,
|
|
210
207
|
CONTINGENCY_LIST_EQUIPMENTS,
|
|
211
208
|
CONVERTERS_MODE_OPTIONS,
|
|
212
209
|
COUNTRIES_TO_BALANCE,
|
|
@@ -254,7 +251,6 @@ export {
|
|
|
254
251
|
DescriptionField,
|
|
255
252
|
DescriptionModificationDialog,
|
|
256
253
|
DevModeBanner,
|
|
257
|
-
DeviceHubIcon,
|
|
258
254
|
DirectoryItemSelector,
|
|
259
255
|
DirectoryItemsInput,
|
|
260
256
|
DndColumnType,
|
|
@@ -397,7 +393,6 @@ export {
|
|
|
397
393
|
ParameterSwitch,
|
|
398
394
|
PccMinParametersEditionDialog,
|
|
399
395
|
PccMinParametersInLine,
|
|
400
|
-
PhotoLibraryIcon,
|
|
401
396
|
PopupConfirmationDialog,
|
|
402
397
|
PredefinedParameters,
|
|
403
398
|
PropertyValueEditor,
|
|
@@ -477,7 +472,6 @@ export {
|
|
|
477
472
|
TopBar,
|
|
478
473
|
TranslatedValueEditor,
|
|
479
474
|
TreeViewFinder,
|
|
480
|
-
TuneIcon,
|
|
481
475
|
UPDATE_BUS_VOLTAGE,
|
|
482
476
|
USE_REACTIVE_LIMITS,
|
|
483
477
|
UnauthorizedAccessAlert,
|
|
@@ -21,7 +21,7 @@ import { CENTER_LABEL, COMPONENT_LIBRARY, DIAGONAL_LABEL, INTL_LINE_FLOW_MODE_OP
|
|
|
21
21
|
import { MAP_BASEMAP_CARTO, MAP_BASEMAP_CARTO_NOLABEL, MAP_BASEMAP_ETALAB, MAP_BASEMAP_MAPBOX, NadPositionsGenerationMode, SubstationLayout } from "./network-visualizations/network-visualizations.types.js";
|
|
22
22
|
import { NetworkVisualizationParametersInline } from "./network-visualizations/network-visualizations-parameters-inline.js";
|
|
23
23
|
import { NetworkVisualizationsParametersEditionDialog } from "./network-visualizations/network-visualizations-parameters-dialog.js";
|
|
24
|
-
import { BALANCE_TYPE,
|
|
24
|
+
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 "./loadflow/constants.js";
|
|
25
25
|
import { LoadFlowParametersInline } from "./loadflow/load-flow-parameters-inline.js";
|
|
26
26
|
import { LoadFlowParametersEditionDialog } from "./loadflow/load-flow-parameters-dialog.js";
|
|
27
27
|
import { InitialVoltage, PredefinedParameters, SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS, SHORT_CIRCUIT_ONLY_STARTED_GENERATORS, 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 "./short-circuit/constants.js";
|
|
@@ -50,7 +50,7 @@ export {
|
|
|
50
50
|
COLUMNS_DEFINITIONS_PSTS,
|
|
51
51
|
COMMON_PARAMETERS,
|
|
52
52
|
COMPONENT_LIBRARY,
|
|
53
|
-
|
|
53
|
+
CONNECTED_MODE,
|
|
54
54
|
COUNTRIES_TO_BALANCE,
|
|
55
55
|
ComputingType,
|
|
56
56
|
CreateParameterDialog,
|
|
@@ -10,7 +10,7 @@ export declare const PHASE_SHIFTER_REGULATION_ON = "phaseShifterRegulationOn";
|
|
|
10
10
|
export declare const DC = "dc";
|
|
11
11
|
export declare const BALANCE_TYPE = "balanceType";
|
|
12
12
|
export declare const COUNTRIES_TO_BALANCE = "countriesToBalance";
|
|
13
|
-
export declare const
|
|
13
|
+
export declare const CONNECTED_MODE = "componentMode";
|
|
14
14
|
export declare const HVDC_AC_EMULATION = "hvdcAcEmulation";
|
|
15
15
|
export declare const VOLTAGE_INIT_MODE = "voltageInitMode";
|
|
16
16
|
export declare const USE_REACTIVE_LIMITS = "useReactiveLimits";
|
|
@@ -4,7 +4,7 @@ const PHASE_SHIFTER_REGULATION_ON = "phaseShifterRegulationOn";
|
|
|
4
4
|
const DC = "dc";
|
|
5
5
|
const BALANCE_TYPE = "balanceType";
|
|
6
6
|
const COUNTRIES_TO_BALANCE = "countriesToBalance";
|
|
7
|
-
const
|
|
7
|
+
const CONNECTED_MODE = "componentMode";
|
|
8
8
|
const HVDC_AC_EMULATION = "hvdcAcEmulation";
|
|
9
9
|
const VOLTAGE_INIT_MODE = "voltageInitMode";
|
|
10
10
|
const USE_REACTIVE_LIMITS = "useReactiveLimits";
|
|
@@ -30,7 +30,7 @@ const alertThresholdMarks = [
|
|
|
30
30
|
];
|
|
31
31
|
export {
|
|
32
32
|
BALANCE_TYPE,
|
|
33
|
-
|
|
33
|
+
CONNECTED_MODE,
|
|
34
34
|
COUNTRIES_TO_BALANCE,
|
|
35
35
|
DC,
|
|
36
36
|
DC_POWER_FACTOR,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BALANCE_TYPE,
|
|
1
|
+
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 "./constants.js";
|
|
2
2
|
import { LoadFlowParametersInline } from "./load-flow-parameters-inline.js";
|
|
3
3
|
import { LoadFlowParametersEditionDialog } from "./load-flow-parameters-dialog.js";
|
|
4
4
|
export {
|
|
5
5
|
BALANCE_TYPE,
|
|
6
|
-
|
|
6
|
+
CONNECTED_MODE,
|
|
7
7
|
COUNTRIES_TO_BALANCE,
|
|
8
8
|
DC,
|
|
9
9
|
DC_POWER_FACTOR,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { memo, createElement } from "react";
|
|
3
3
|
import LoadFlowParameterField from "./load-flow-parameter-field.js";
|
|
4
|
-
import { PHASE_SHIFTER_REGULATION_ON, DC, BALANCE_TYPE, COUNTRIES_TO_BALANCE,
|
|
4
|
+
import { PHASE_SHIFTER_REGULATION_ON, DC, BALANCE_TYPE, COUNTRIES_TO_BALANCE, CONNECTED_MODE, HVDC_AC_EMULATION, VOLTAGE_INIT_MODE, USE_REACTIVE_LIMITS, TWT_SPLIT_SHUNT_ADMITTANCE, READ_SLACK_BUS, WRITE_SLACK_BUS, DISTRIBUTED_SLACK, SHUNT_COMPENSATOR_VOLTAGE_CONTROL_ON, DC_USE_TRANSFORMER_RATIO, DC_POWER_FACTOR } from "./constants.js";
|
|
5
5
|
import { useLoadFlowContext } from "./use-load-flow-context.js";
|
|
6
6
|
import { ParameterType } from "../../../utils/types/parameters.type.js";
|
|
7
7
|
import "@mui/material";
|
|
@@ -65,16 +65,16 @@ const basicParams = [
|
|
|
65
65
|
label: "descLfCountriesToBalance"
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
|
-
name:
|
|
68
|
+
name: CONNECTED_MODE,
|
|
69
69
|
type: ParameterType.STRING,
|
|
70
70
|
label: "descLfConnectedComponentMode",
|
|
71
71
|
possibleValues: [
|
|
72
72
|
{
|
|
73
|
-
id: "
|
|
73
|
+
id: "MAIN_CONNECTED",
|
|
74
74
|
label: "descLfConnectedComponentModeMain"
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
|
-
id: "
|
|
77
|
+
id: "ALL_CONNECTED",
|
|
78
78
|
label: "descLfConnectedComponentModeAll"
|
|
79
79
|
}
|
|
80
80
|
]
|
|
@@ -14,12 +14,12 @@ import "@mui/material";
|
|
|
14
14
|
import "react-intl";
|
|
15
15
|
import "react-hook-form";
|
|
16
16
|
import "../../treeViewFinder/TreeViewFinder.js";
|
|
17
|
-
import "notistack";
|
|
18
|
-
import { ComputingType } from "../common/computing-type.js";
|
|
19
17
|
import "localized-countries";
|
|
20
18
|
import "localized-countries/data/fr";
|
|
21
19
|
import "localized-countries/data/en";
|
|
20
|
+
import "notistack";
|
|
22
21
|
import { useParametersBackend, OptionalServicesStatus } from "../../../hooks/use-parameters-backend.js";
|
|
22
|
+
import { ComputingType } from "../common/computing-type.js";
|
|
23
23
|
import "../../overflowableText/OverflowableText.js";
|
|
24
24
|
import "../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
25
25
|
import "yup";
|
|
@@ -10,14 +10,14 @@ export declare const getBasicLoadFlowParametersFormSchema: () => yup.ObjectSchem
|
|
|
10
10
|
dc: NonNullable<boolean | undefined>;
|
|
11
11
|
balanceType: string;
|
|
12
12
|
countriesToBalance: (string | undefined)[];
|
|
13
|
-
|
|
13
|
+
componentMode: string;
|
|
14
14
|
hvdcAcEmulation: NonNullable<boolean | undefined>;
|
|
15
15
|
}, yup.AnyObject, {
|
|
16
16
|
phaseShifterRegulationOn: undefined;
|
|
17
17
|
dc: undefined;
|
|
18
18
|
balanceType: undefined;
|
|
19
19
|
countriesToBalance: "";
|
|
20
|
-
|
|
20
|
+
componentMode: undefined;
|
|
21
21
|
hvdcAcEmulation: undefined;
|
|
22
22
|
}, "">;
|
|
23
23
|
export declare const getAdvancedLoadFlowParametersFormSchema: () => yup.ObjectSchema<{
|
|
@@ -47,7 +47,7 @@ export declare const getCommonLoadFlowParametersFormSchema: () => yup.ObjectSche
|
|
|
47
47
|
dc?: unknown;
|
|
48
48
|
balanceType?: unknown;
|
|
49
49
|
countriesToBalance?: unknown;
|
|
50
|
-
|
|
50
|
+
componentMode?: unknown;
|
|
51
51
|
hvdcAcEmulation?: unknown;
|
|
52
52
|
voltageInitMode?: unknown;
|
|
53
53
|
useReactiveLimits?: unknown;
|
|
@@ -74,7 +74,7 @@ export declare const getCommonLoadFlowParametersFormSchema: () => yup.ObjectSche
|
|
|
74
74
|
dc: undefined;
|
|
75
75
|
balanceType: undefined;
|
|
76
76
|
countriesToBalance: undefined;
|
|
77
|
-
|
|
77
|
+
componentMode: undefined;
|
|
78
78
|
hvdcAcEmulation: undefined;
|
|
79
79
|
};
|
|
80
80
|
}, "">;
|
|
@@ -33,7 +33,7 @@ import "react-querybuilder";
|
|
|
33
33
|
import "../common/widget/parameter-line-slider.js";
|
|
34
34
|
import { LIMIT_REDUCTIONS_FORM, IST_FORM, LIMIT_DURATION_FORM } from "../common/limitreductions/columns-definitions.js";
|
|
35
35
|
import { toFormValuesLimitReductions } from "../common/limitreductions/limit-reductions-form-util.js";
|
|
36
|
-
import { HVDC_AC_EMULATION,
|
|
36
|
+
import { HVDC_AC_EMULATION, CONNECTED_MODE, COUNTRIES_TO_BALANCE, BALANCE_TYPE, DC, PHASE_SHIFTER_REGULATION_ON, DC_POWER_FACTOR, DC_USE_TRANSFORMER_RATIO, SHUNT_COMPENSATOR_VOLTAGE_CONTROL_ON, DISTRIBUTED_SLACK, WRITE_SLACK_BUS, READ_SLACK_BUS, TWT_SPLIT_SHUNT_ADMITTANCE, USE_REACTIVE_LIMITS, VOLTAGE_INIT_MODE, PARAM_PROVIDER_OPENLOADFLOW, PARAM_LIMIT_REDUCTION, DEFAULT_LIMIT_REDUCTION_VALUE } from "./constants.js";
|
|
37
37
|
var TabValues = /* @__PURE__ */ ((TabValues2) => {
|
|
38
38
|
TabValues2["GENERAL"] = "General";
|
|
39
39
|
TabValues2["LIMIT_REDUCTIONS"] = "LimitReductions";
|
|
@@ -45,7 +45,7 @@ const getBasicLoadFlowParametersFormSchema = () => {
|
|
|
45
45
|
[DC]: yup.boolean().required(),
|
|
46
46
|
[BALANCE_TYPE]: yup.string().required(),
|
|
47
47
|
[COUNTRIES_TO_BALANCE]: yup.array().of(yup.string()).required(),
|
|
48
|
-
[
|
|
48
|
+
[CONNECTED_MODE]: yup.string().required(),
|
|
49
49
|
[HVDC_AC_EMULATION]: yup.boolean().required()
|
|
50
50
|
});
|
|
51
51
|
};
|
|
@@ -12,14 +12,14 @@ import "@mui/material";
|
|
|
12
12
|
import "react-intl";
|
|
13
13
|
import "react-hook-form";
|
|
14
14
|
import "../../treeViewFinder/TreeViewFinder.js";
|
|
15
|
+
import "localized-countries";
|
|
16
|
+
import "localized-countries/data/fr";
|
|
17
|
+
import "localized-countries/data/en";
|
|
15
18
|
import "notistack";
|
|
16
19
|
import { NetworkVisualizationParametersForm } from "./network-visualizations-form.js";
|
|
17
20
|
import { useNetworkVisualizationParametersForm } from "./use-network-visualizations-parameters-form.js";
|
|
18
21
|
import { NameElementEditorForm } from "../common/name-element-editor/name-element-editor-form.js";
|
|
19
22
|
import "../../overflowableText/OverflowableText.js";
|
|
20
|
-
import "localized-countries";
|
|
21
|
-
import "localized-countries/data/fr";
|
|
22
|
-
import "localized-countries/data/en";
|
|
23
23
|
import "../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
24
24
|
import "yup";
|
|
25
25
|
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
@@ -12,12 +12,12 @@ import "@mui/material";
|
|
|
12
12
|
import "react-intl";
|
|
13
13
|
import "react-hook-form";
|
|
14
14
|
import "../../treeViewFinder/TreeViewFinder.js";
|
|
15
|
-
import "notistack";
|
|
16
|
-
import { NameElementEditorForm } from "../common/name-element-editor/name-element-editor-form.js";
|
|
17
|
-
import "../../overflowableText/OverflowableText.js";
|
|
18
15
|
import "localized-countries";
|
|
19
16
|
import "localized-countries/data/fr";
|
|
20
17
|
import "localized-countries/data/en";
|
|
18
|
+
import "notistack";
|
|
19
|
+
import { NameElementEditorForm } from "../common/name-element-editor/name-element-editor-form.js";
|
|
20
|
+
import "../../overflowableText/OverflowableText.js";
|
|
21
21
|
import "../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
22
22
|
import "yup";
|
|
23
23
|
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
@@ -13,13 +13,13 @@ import "@mui/material";
|
|
|
13
13
|
import "react-intl";
|
|
14
14
|
import "react-hook-form";
|
|
15
15
|
import "../../treeViewFinder/TreeViewFinder.js";
|
|
16
|
-
import "notistack";
|
|
17
|
-
import { NameElementEditorForm } from "../common/name-element-editor/name-element-editor-form.js";
|
|
18
|
-
import "../../overflowableText/OverflowableText.js";
|
|
19
16
|
import "localized-countries";
|
|
20
17
|
import "localized-countries/data/fr";
|
|
21
18
|
import "localized-countries/data/en";
|
|
19
|
+
import "notistack";
|
|
22
20
|
import { useParametersBackend, OptionalServicesStatus } from "../../../hooks/use-parameters-backend.js";
|
|
21
|
+
import { NameElementEditorForm } from "../common/name-element-editor/name-element-editor-form.js";
|
|
22
|
+
import "../../overflowableText/OverflowableText.js";
|
|
23
23
|
import "../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
24
24
|
import "yup";
|
|
25
25
|
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
@@ -12,12 +12,12 @@ import "@mui/material";
|
|
|
12
12
|
import "react-intl";
|
|
13
13
|
import "react-hook-form";
|
|
14
14
|
import "../../treeViewFinder/TreeViewFinder.js";
|
|
15
|
-
import "notistack";
|
|
16
|
-
import { NameElementEditorForm } from "../common/name-element-editor/name-element-editor-form.js";
|
|
17
|
-
import "../../overflowableText/OverflowableText.js";
|
|
18
15
|
import "localized-countries";
|
|
19
16
|
import "localized-countries/data/fr";
|
|
20
17
|
import "localized-countries/data/en";
|
|
18
|
+
import "notistack";
|
|
19
|
+
import { NameElementEditorForm } from "../common/name-element-editor/name-element-editor-form.js";
|
|
20
|
+
import "../../overflowableText/OverflowableText.js";
|
|
21
21
|
import "../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
22
22
|
import "yup";
|
|
23
23
|
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
package/dist/index.js
CHANGED
|
@@ -132,9 +132,6 @@ import { useListenerManager } from "./components/notifications/hooks/useListener
|
|
|
132
132
|
import { LeftPanelOpenIcon } from "./components/icons/LeftPanelOpenIcon.js";
|
|
133
133
|
import { ArrowsOutputIcon } from "./components/icons/ArrowsOutputIcon.js";
|
|
134
134
|
import { LeftPanelCloseIcon } from "./components/icons/LeftPanelCloseIcon.js";
|
|
135
|
-
import { DeviceHubIcon } from "./components/icons/DeviceHubIcon.js";
|
|
136
|
-
import { TuneIcon } from "./components/icons/TuneIcon.js";
|
|
137
|
-
import { PhotoLibraryIcon } from "./components/icons/PhotoLibraryIcon.js";
|
|
138
135
|
import { EditNoteIcon } from "./components/icons/EditNoteIcon.js";
|
|
139
136
|
import { ComputingType, formatComputingTypeLabel, isValidComputingType } from "./components/parameters/common/computing-type.js";
|
|
140
137
|
import { COMMON_PARAMETERS, PARAM_SA_FLOW_PROPORTIONAL_THRESHOLD, PARAM_SA_HIGH_VOLTAGE_ABSOLUTE_THRESHOLD, PARAM_SA_HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD, PARAM_SA_LOW_VOLTAGE_ABSOLUTE_THRESHOLD, PARAM_SA_LOW_VOLTAGE_PROPORTIONAL_THRESHOLD, PARAM_SA_PROVIDER, PROVIDER, ReactivePowerAdornment, SPECIFIC_PARAMETERS, VERSION_PARAMETER, VOLTAGE_LEVEL, VoltageAdornment } from "./components/parameters/common/constant.js";
|
|
@@ -159,7 +156,7 @@ import { CENTER_LABEL, COMPONENT_LIBRARY, DIAGONAL_LABEL, INTL_LINE_FLOW_MODE_OP
|
|
|
159
156
|
import { MAP_BASEMAP_CARTO, MAP_BASEMAP_CARTO_NOLABEL, MAP_BASEMAP_ETALAB, MAP_BASEMAP_MAPBOX, NadPositionsGenerationMode, SubstationLayout } from "./components/parameters/network-visualizations/network-visualizations.types.js";
|
|
160
157
|
import { NetworkVisualizationParametersInline } from "./components/parameters/network-visualizations/network-visualizations-parameters-inline.js";
|
|
161
158
|
import { NetworkVisualizationsParametersEditionDialog } from "./components/parameters/network-visualizations/network-visualizations-parameters-dialog.js";
|
|
162
|
-
import { BALANCE_TYPE,
|
|
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";
|
|
163
160
|
import { LoadFlowParametersInline } from "./components/parameters/loadflow/load-flow-parameters-inline.js";
|
|
164
161
|
import { LoadFlowParametersEditionDialog } from "./components/parameters/loadflow/load-flow-parameters-dialog.js";
|
|
165
162
|
import { InitialVoltage, PredefinedParameters, SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS, SHORT_CIRCUIT_ONLY_STARTED_GENERATORS, 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";
|
|
@@ -219,7 +216,7 @@ import { COMMON_APP_NAME, COMMON_CONFIG_PARAMS_NAMES, LAST_SELECTED_DIRECTORY, P
|
|
|
219
216
|
import { FILTERS, FILTER_ID, FILTER_NAME, ID } from "./utils/constants/filterConstant.js";
|
|
220
217
|
import { GRIDSUITE_DEFAULT_PRECISION, convertInputValue, convertOutputValue, isBlankOrEmpty, kiloUnitToUnit, microUnitToUnit, roundToDefaultPrecision, roundToPrecision, unitToKiloUnit, unitToMicroUnit } from "./utils/conversionUtils.js";
|
|
221
218
|
import { catchErrorHandler, snackWithFallback } from "./utils/error.js";
|
|
222
|
-
import { areArrayElementsUnique, isObjectEmpty, keyGenerator } from "./utils/functions.js";
|
|
219
|
+
import { areArrayElementsUnique, arraysContainIdenticalStrings, isObjectEmpty, keyGenerator } from "./utils/functions.js";
|
|
223
220
|
import { LANG_ENGLISH, LANG_FRENCH, LANG_SYSTEM } from "./utils/langs.js";
|
|
224
221
|
import { getFileIcon } from "./utils/mapper/getFileIcon.js";
|
|
225
222
|
import { equipmentTypesForPredefinedPropertiesMapper } from "./utils/mapper/equipmentTypesForPredefinedPropertiesMapper.js";
|
|
@@ -335,7 +332,7 @@ export {
|
|
|
335
332
|
COMMON_CONFIG_PARAMS_NAMES,
|
|
336
333
|
COMMON_PARAMETERS,
|
|
337
334
|
COMPONENT_LIBRARY,
|
|
338
|
-
|
|
335
|
+
CONNECTED_MODE,
|
|
339
336
|
CONTINGENCY_LIST_EQUIPMENTS,
|
|
340
337
|
CONVERTERS_MODE_OPTIONS,
|
|
341
338
|
COUNTRIES_TO_BALANCE,
|
|
@@ -387,7 +384,6 @@ export {
|
|
|
387
384
|
DescriptionField,
|
|
388
385
|
DescriptionModificationDialog,
|
|
389
386
|
DevModeBanner,
|
|
390
|
-
DeviceHubIcon,
|
|
391
387
|
DirectoryItemSelector,
|
|
392
388
|
DirectoryItemsInput,
|
|
393
389
|
DistributionType,
|
|
@@ -579,7 +575,6 @@ export {
|
|
|
579
575
|
PccMinParametersEditionDialog,
|
|
580
576
|
PccMinParametersInLine,
|
|
581
577
|
PermissionType,
|
|
582
|
-
PhotoLibraryIcon,
|
|
583
578
|
PopupConfirmationDialog,
|
|
584
579
|
PredefinedParameters,
|
|
585
580
|
ProblemDetailError,
|
|
@@ -672,7 +667,6 @@ export {
|
|
|
672
667
|
TopBar,
|
|
673
668
|
TranslatedValueEditor,
|
|
674
669
|
TreeViewFinder,
|
|
675
|
-
TuneIcon,
|
|
676
670
|
TwoWindingTransfo,
|
|
677
671
|
UNAUTHORIZED_USER_INFO,
|
|
678
672
|
UPDATE_BUS_VOLTAGE,
|
|
@@ -703,6 +697,7 @@ export {
|
|
|
703
697
|
WRITE_SLACK_BUS,
|
|
704
698
|
alertThresholdMarks,
|
|
705
699
|
areArrayElementsUnique,
|
|
700
|
+
arraysContainIdenticalStrings,
|
|
706
701
|
backendFetch,
|
|
707
702
|
backendFetchFile,
|
|
708
703
|
backendFetchJson,
|
|
@@ -9,5 +9,9 @@
|
|
|
9
9
|
* @returns {number} key
|
|
10
10
|
*/
|
|
11
11
|
export declare function keyGenerator(): () => number;
|
|
12
|
+
/**
|
|
13
|
+
* returns true if the two arrays contain exactly the same strings, regardless of the order
|
|
14
|
+
*/
|
|
15
|
+
export declare function arraysContainIdenticalStrings(array1: string[] | undefined, array2: string[] | undefined): boolean;
|
|
12
16
|
export declare const areArrayElementsUnique: (array: unknown[]) => boolean;
|
|
13
17
|
export declare const isObjectEmpty: (object: object) => boolean;
|
package/dist/utils/functions.js
CHANGED
|
@@ -5,6 +5,9 @@ function keyGenerator() {
|
|
|
5
5
|
return key;
|
|
6
6
|
};
|
|
7
7
|
}
|
|
8
|
+
function arraysContainIdenticalStrings(array1, array2) {
|
|
9
|
+
return array1 !== void 0 && array2 !== void 0 && JSON.stringify([...array1].sort((a, b) => a.localeCompare(b))) === JSON.stringify([...array2].sort((a, b) => a.localeCompare(b)));
|
|
10
|
+
}
|
|
8
11
|
const areArrayElementsUnique = (array) => {
|
|
9
12
|
const uniqueValues = [...new Set(array)];
|
|
10
13
|
return uniqueValues.length === array.length;
|
|
@@ -12,6 +15,7 @@ const areArrayElementsUnique = (array) => {
|
|
|
12
15
|
const isObjectEmpty = (object) => object && Object.keys(object).length === 0;
|
|
13
16
|
export {
|
|
14
17
|
areArrayElementsUnique,
|
|
18
|
+
arraysContainIdenticalStrings,
|
|
15
19
|
isObjectEmpty,
|
|
16
20
|
keyGenerator
|
|
17
21
|
};
|
package/dist/utils/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { COMMON_APP_NAME, COMMON_CONFIG_PARAMS_NAMES, LAST_SELECTED_DIRECTORY, P
|
|
|
7
7
|
import { FILTERS, FILTER_ID, FILTER_NAME, ID } from "./constants/filterConstant.js";
|
|
8
8
|
import { GRIDSUITE_DEFAULT_PRECISION, convertInputValue, convertOutputValue, isBlankOrEmpty, kiloUnitToUnit, microUnitToUnit, roundToDefaultPrecision, roundToPrecision, unitToKiloUnit, unitToMicroUnit } from "./conversionUtils.js";
|
|
9
9
|
import { catchErrorHandler, snackWithFallback } from "./error.js";
|
|
10
|
-
import { areArrayElementsUnique, isObjectEmpty, keyGenerator } from "./functions.js";
|
|
10
|
+
import { areArrayElementsUnique, arraysContainIdenticalStrings, isObjectEmpty, keyGenerator } from "./functions.js";
|
|
11
11
|
import { LANG_ENGLISH, LANG_FRENCH, LANG_SYSTEM } from "./langs.js";
|
|
12
12
|
import { getFileIcon } from "./mapper/getFileIcon.js";
|
|
13
13
|
import { equipmentTypesForPredefinedPropertiesMapper } from "./mapper/equipmentTypesForPredefinedPropertiesMapper.js";
|
|
@@ -104,6 +104,7 @@ export {
|
|
|
104
104
|
VSC,
|
|
105
105
|
VoltageLevel,
|
|
106
106
|
areArrayElementsUnique,
|
|
107
|
+
arraysContainIdenticalStrings,
|
|
107
108
|
catchErrorHandler,
|
|
108
109
|
convertInputValue,
|
|
109
110
|
convertOutputValue,
|
package/package.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2025, RTE (http://www.rte-france.com)
|
|
3
|
-
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
|
-
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
|
-
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
|
-
*/
|
|
7
|
-
interface DeviceHubProps {
|
|
8
|
-
style?: React.CSSProperties;
|
|
9
|
-
}
|
|
10
|
-
export declare function DeviceHubIcon({ style }: DeviceHubProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import DeviceHub from "@material-symbols/svg-400/outlined/device_hub.svg?react";
|
|
3
|
-
import { useTheme } from "@mui/material";
|
|
4
|
-
function DeviceHubIcon({ style }) {
|
|
5
|
-
const theme = useTheme();
|
|
6
|
-
const defaultStyle = {
|
|
7
|
-
width: 15,
|
|
8
|
-
height: 15,
|
|
9
|
-
fill: theme.palette.text.primary
|
|
10
|
-
};
|
|
11
|
-
return /* @__PURE__ */ jsx(DeviceHub, { style: { ...defaultStyle, ...style } });
|
|
12
|
-
}
|
|
13
|
-
export {
|
|
14
|
-
DeviceHubIcon
|
|
15
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2025, RTE (http://www.rte-france.com)
|
|
3
|
-
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
|
-
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
|
-
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
|
-
*/
|
|
7
|
-
export declare function PhotoLibraryIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import PhotoLibrary from "@material-symbols/svg-400/outlined/photo_library-fill.svg?react";
|
|
3
|
-
import { useTheme } from "@mui/material";
|
|
4
|
-
function PhotoLibraryIcon() {
|
|
5
|
-
const theme = useTheme();
|
|
6
|
-
return /* @__PURE__ */ jsx(
|
|
7
|
-
PhotoLibrary,
|
|
8
|
-
{
|
|
9
|
-
style: {
|
|
10
|
-
width: 14.4,
|
|
11
|
-
height: 14.4,
|
|
12
|
-
fill: theme.palette.text.primary
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
);
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
PhotoLibraryIcon
|
|
19
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2025, RTE (http://www.rte-france.com)
|
|
3
|
-
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
|
-
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
|
-
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
|
-
*/
|
|
7
|
-
type TuneIconProps = {
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
size?: number;
|
|
10
|
-
color?: string;
|
|
11
|
-
};
|
|
12
|
-
export declare function TuneIcon({ disabled, size, color }: TuneIconProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import Tune from "@material-symbols/svg-400/outlined/tune.svg?react";
|
|
3
|
-
import { useTheme } from "@mui/material";
|
|
4
|
-
function TuneIcon({ disabled = false, size = 14.4, color }) {
|
|
5
|
-
const theme = useTheme();
|
|
6
|
-
const fillColor = color ?? (disabled ? theme.palette.action.disabled : theme.palette.text.primary);
|
|
7
|
-
return /* @__PURE__ */ jsx(
|
|
8
|
-
Tune,
|
|
9
|
-
{
|
|
10
|
-
style: {
|
|
11
|
-
width: size,
|
|
12
|
-
height: size,
|
|
13
|
-
fill: fillColor
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
);
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
TuneIcon
|
|
20
|
-
};
|