@gridsuite/commons-ui 0.58.0 → 0.59.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/chunks/{criteria-based-filter-edition-dialog.CbhgOSRk.js → criteria-based-filter-edition-dialog.p2pUWzxc.js} +20 -65
- package/dist/components/AuthenticationRouter/AuthenticationRouter.d.ts +28 -9
- package/dist/components/AuthenticationRouter/AuthenticationRouter.js +1 -1
- package/dist/components/AuthenticationRouter/index.d.ts +6 -0
- package/dist/components/CardErrorBoundary/card-error-boundary.d.ts +27 -13
- package/dist/components/CardErrorBoundary/card-error-boundary.js +7 -6
- package/dist/components/CardErrorBoundary/index.d.ts +6 -0
- package/dist/components/DirectoryItemSelector/directory-item-selector.d.ts +0 -4
- package/dist/components/DirectoryItemSelector/directory-item-selector.js +13 -26
- package/dist/components/ElementSearchDialog/equipment-item.d.ts +25 -16
- package/dist/components/ElementSearchDialog/equipment-item.js +5 -5
- package/dist/components/ElementSearchDialog/index.d.ts +6 -0
- package/dist/components/ElementSearchDialog/tag-renderer.d.ts +20 -10
- package/dist/components/ElementSearchDialog/tag-renderer.js +6 -11
- package/dist/components/FlatParameters/FlatParameters.d.ts +29 -9
- package/dist/components/FlatParameters/FlatParameters.js +3 -3
- package/dist/components/FlatParameters/index.d.ts +6 -0
- package/dist/components/Login/Login.d.ts +11 -4
- package/dist/components/Login/Logout.d.ts +11 -4
- package/dist/components/Login/index.d.ts +6 -0
- package/dist/components/MuiVirtualizedTable/ColumnHeader.d.ts +25 -2
- package/dist/components/MuiVirtualizedTable/ColumnHeader.js +68 -59
- package/dist/components/MuiVirtualizedTable/KeyedColumnsRowIndexer.d.ts +72 -61
- package/dist/components/MuiVirtualizedTable/KeyedColumnsRowIndexer.js +69 -83
- package/dist/components/MuiVirtualizedTable/MuiVirtualizedTable.d.ts +93 -113
- package/dist/components/MuiVirtualizedTable/MuiVirtualizedTable.js +84 -106
- package/dist/components/MuiVirtualizedTable/index.d.ts +7 -1
- package/dist/components/MultipleSelectionDialog/MultipleSelectionDialog.d.ts +16 -9
- package/dist/components/MultipleSelectionDialog/MultipleSelectionDialog.js +1 -1
- package/dist/components/MultipleSelectionDialog/index.d.ts +6 -0
- package/dist/components/OverflowableText/index.d.ts +6 -0
- package/dist/components/OverflowableText/overflowable-text.d.ts +11 -1
- package/dist/components/OverflowableText/overflowable-text.js +1 -18
- package/dist/components/ReportViewer/filter-button.d.ts +11 -1
- package/dist/components/ReportViewer/filter-button.js +5 -2
- package/dist/components/ReportViewer/index.d.ts +6 -0
- package/dist/components/ReportViewer/log-report-item.d.ts +14 -64
- package/dist/components/ReportViewer/log-report-item.js +13 -47
- package/dist/components/ReportViewer/log-report.d.ts +16 -17
- package/dist/components/ReportViewer/log-report.js +2 -1
- package/dist/components/ReportViewer/log-severity.d.ts +13 -0
- package/dist/components/ReportViewer/log-severity.js +35 -0
- package/dist/components/ReportViewer/log-table.d.ts +9 -6
- package/dist/components/ReportViewer/log-table.js +6 -4
- package/dist/components/ReportViewer/multi-select-list.d.ts +17 -1
- package/dist/components/ReportViewer/report-item.d.ts +12 -12
- package/dist/components/ReportViewer/report-item.js +0 -7
- package/dist/components/ReportViewer/report-tree-view-context.d.ts +11 -1
- package/dist/components/ReportViewer/report-viewer.d.ts +7 -4
- package/dist/components/ReportViewer/report-viewer.js +8 -6
- package/dist/components/ReportViewer/report.type.d.ts +22 -0
- package/dist/components/ReportViewer/report.type.js +1 -0
- package/dist/components/ReportViewerDialog/index.d.ts +6 -0
- package/dist/components/ReportViewerDialog/report-viewer-dialog.d.ts +9 -1
- package/dist/components/SignInCallbackHandler/SignInCallbackHandler.d.ts +7 -4
- package/dist/components/SignInCallbackHandler/SignInCallbackHandler.js +4 -1
- package/dist/components/SignInCallbackHandler/index.d.ts +6 -0
- package/dist/components/SilentRenewCallbackHandler/SilentRenewCallbackHandler.d.ts +7 -4
- package/dist/components/SilentRenewCallbackHandler/index.d.ts +6 -0
- package/dist/components/SnackbarProvider/SnackbarProvider.d.ts +3 -1
- package/dist/components/SnackbarProvider/SnackbarProvider.js +9 -7
- package/dist/components/SnackbarProvider/index.d.ts +6 -0
- package/dist/components/TopBar/AboutDialog.d.ts +30 -23
- package/dist/components/TopBar/AboutDialog.js +4 -22
- package/dist/components/TopBar/GridLogo.d.ts +13 -32
- package/dist/components/TopBar/GridLogo.js +12 -15
- package/dist/components/TopBar/TopBar.d.ts +52 -51
- package/dist/components/TopBar/TopBar.js +389 -380
- package/dist/components/TopBar/TopBar.test.d.ts +6 -0
- package/dist/components/TopBar/index.d.ts +6 -0
- package/dist/components/dialogs/modify-element-selection.d.ts +1 -1
- package/dist/components/dialogs/modify-element-selection.js +5 -14
- package/dist/components/filter/criteria-based/criteria-based-filter-edition-dialog.d.ts +1 -1
- package/dist/components/filter/criteria-based/criteria-based-filter-edition-dialog.js +1 -1
- package/dist/components/filter/criteria-based/filter-free-properties.d.ts +1 -1
- package/dist/components/filter/criteria-based/filter-property.d.ts +1 -1
- package/dist/components/filter/expert/expert-filter-constants.d.ts +22 -1
- package/dist/components/filter/expert/expert-filter-constants.js +39 -10
- package/dist/components/filter/expert/expert-filter-edition-dialog.d.ts +0 -6
- package/dist/components/filter/expert/expert-filter-edition-dialog.js +1 -2
- package/dist/components/filter/expert/expert-filter-form.js +1 -1
- package/dist/components/filter/expert/expert-filter.type.d.ts +4 -1
- package/dist/components/filter/expert/expert-filter.type.js +3 -0
- package/dist/components/filter/explicit-naming/explicit-naming-filter-edition-dialog.js +1 -1
- package/dist/components/filter/explicit-naming/explicit-naming-filter-form.js +1 -1
- package/dist/components/filter/filter-creation-dialog.d.ts +0 -7
- package/dist/components/filter/filter-creation-dialog.js +1 -2
- package/dist/components/filter/filter-form.js +1 -1
- package/dist/components/filter/utils/filter-form-utils.js +11 -18
- package/dist/components/inputs/react-hook-form/ag-grid-table/bottom-right-buttons.js +1 -1
- package/dist/components/inputs/react-hook-form/ag-grid-table/csv-uploader/csv-uploader.js +5 -13
- package/dist/components/inputs/react-hook-form/ag-grid-table/custom-ag-grid-table.js +1 -1
- package/dist/components/inputs/react-hook-form/autocomplete-inputs/autocomplete-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/booleans/boolean-input.d.ts +9 -15
- package/dist/components/inputs/react-hook-form/booleans/boolean-input.js +0 -7
- package/dist/components/inputs/react-hook-form/booleans/checkbox-input.d.ts +8 -13
- package/dist/components/inputs/react-hook-form/booleans/checkbox-input.js +0 -6
- package/dist/components/inputs/react-hook-form/booleans/switch-input.d.ts +8 -13
- package/dist/components/inputs/react-hook-form/booleans/switch-input.js +0 -6
- package/dist/components/inputs/react-hook-form/directory-items-input.d.ts +0 -2
- package/dist/components/inputs/react-hook-form/directory-items-input.js +10 -14
- package/dist/components/inputs/react-hook-form/error-management/mid-form-error.d.ts +5 -3
- package/dist/components/inputs/react-hook-form/numbers/integer-input.d.ts +3 -20
- package/dist/components/inputs/react-hook-form/numbers/integer-input.js +1 -4
- package/dist/components/inputs/react-hook-form/range-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/select-inputs/countries-input.js +12 -1
- package/dist/components/inputs/react-hook-form/select-inputs/select-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/slider-input.d.ts +7 -20
- package/dist/components/inputs/react-hook-form/slider-input.js +4 -12
- package/dist/components/inputs/react-hook-form/text-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/unique-name-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/utils/text-field-with-adornment.d.ts +1 -1
- package/dist/components/inputs/react-query-builder/custom-react-query-builder.js +1 -1
- package/dist/components/inputs/react-query-builder/element-value-editor.js +7 -14
- package/dist/components/inputs/react-query-builder/remove-button.js +1 -1
- package/dist/components/inputs/react-query-builder/value-editor.js +1 -1
- package/dist/components/translations/card-error-boundary-en.d.ts +1 -1
- package/dist/components/translations/card-error-boundary-fr.d.ts +1 -1
- package/dist/components/translations/common-button-en.d.ts +10 -4
- package/dist/components/translations/common-button-fr.d.ts +10 -4
- package/dist/components/translations/directory-items-input-en.d.ts +1 -1
- package/dist/components/translations/directory-items-input-fr.d.ts +1 -1
- package/dist/components/translations/element-search-en.d.ts +1 -1
- package/dist/components/translations/element-search-fr.d.ts +1 -1
- package/dist/components/translations/equipment-search-en.d.ts +1 -1
- package/dist/components/translations/equipment-search-fr.d.ts +1 -1
- package/dist/components/translations/filter-en.d.ts +27 -21
- package/dist/components/translations/filter-en.js +2 -1
- package/dist/components/translations/filter-expert-en.d.ts +73 -0
- package/dist/components/translations/filter-expert-en.js +69 -0
- package/dist/components/translations/filter-expert-fr.d.ts +73 -0
- package/dist/components/translations/filter-expert-fr.js +69 -0
- package/dist/components/translations/filter-fr.d.ts +27 -21
- package/dist/components/translations/filter-fr.js +2 -1
- package/dist/components/translations/flat-parameters-en.d.ts +1 -1
- package/dist/components/translations/flat-parameters-fr.d.ts +1 -1
- package/dist/components/translations/inputs-en.d.ts +1 -1
- package/dist/components/translations/inputs-fr.d.ts +1 -1
- package/dist/components/translations/login-en.d.ts +1 -1
- package/dist/components/translations/login-fr.d.ts +1 -1
- package/dist/components/translations/multiple-selection-dialog-en.d.ts +1 -1
- package/dist/components/translations/multiple-selection-dialog-fr.d.ts +1 -1
- package/dist/components/translations/report-viewer-en.d.ts +1 -1
- package/dist/components/translations/report-viewer-fr.d.ts +1 -1
- package/dist/components/translations/table-en.d.ts +1 -1
- package/dist/components/translations/table-fr.d.ts +1 -1
- package/dist/components/translations/top-bar-en.d.ts +1 -1
- package/dist/components/translations/top-bar-fr.d.ts +1 -1
- package/dist/components/translations/treeview-finder-en.d.ts +1 -1
- package/dist/components/translations/treeview-finder-fr.d.ts +1 -1
- package/dist/hooks/localized-countries-hook.d.ts +10 -4
- package/dist/hooks/localized-countries-hook.js +1 -1
- package/dist/hooks/predefined-properties-hook.d.ts +1 -15
- package/dist/hooks/predefined-properties-hook.js +8 -16
- package/dist/index.d.ts +63 -217
- package/dist/index.js +102 -77
- package/dist/redux/actions.d.ts +33 -29
- package/dist/services/apps-metadata.d.ts +32 -0
- package/dist/services/apps-metadata.js +26 -0
- package/dist/services/directory.d.ts +6 -0
- package/dist/services/directory.js +42 -0
- package/dist/services/explore.d.ts +2 -0
- package/dist/services/explore.js +29 -1
- package/dist/services/index.d.ts +16 -0
- package/dist/services/index.js +20 -0
- package/dist/services/utils.d.ts +1 -0
- package/dist/services/utils.js +5 -1
- package/dist/utils/AuthService.d.ts +20 -9
- package/dist/utils/AuthService.js +29 -13
- package/dist/utils/ElementIcon.d.ts +4 -1
- package/dist/utils/UserManagerMock.d.ts +14 -14
- package/dist/utils/UserManagerMock.js +9 -15
- package/dist/utils/algos.d.ts +1 -1
- package/dist/utils/equipment-types-for-predefined-properties-mapper.d.ts +1 -1
- package/dist/utils/functions.d.ts +0 -1
- package/dist/utils/functions.js +1 -3
- package/dist/utils/styles.d.ts +5 -3
- package/dist/utils/styles.js +4 -1
- package/dist/utils/types.d.ts +13 -3
- package/package.json +2 -1
- package/dist/components/filter/filter-context.d.ts +0 -13
- package/dist/components/filter/filter-context.js +0 -11
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
const filter_expert_en = {
|
|
2
|
+
id: "ID",
|
|
3
|
+
name: "Name",
|
|
4
|
+
energySource: "Energy source",
|
|
5
|
+
country: "Country",
|
|
6
|
+
voltageRegulatorOn: "Voltage regulation",
|
|
7
|
+
PlannedActivePowerSetPoint: "Planning active power set point (MW)",
|
|
8
|
+
minP: "Minimum active power (MW)",
|
|
9
|
+
maxP: "Maximum active power (MW)",
|
|
10
|
+
targetP: "Active power target (MW)",
|
|
11
|
+
targetV: "Voltage target (kV)",
|
|
12
|
+
targetQ: "Reactive power target (MVar)",
|
|
13
|
+
connected: "Connected",
|
|
14
|
+
maximumSectionCount: "Maximum number of sections",
|
|
15
|
+
sectionCount: "Current number of sections",
|
|
16
|
+
shuntCompensatorType: "Type",
|
|
17
|
+
Capacitor: "Capacitor",
|
|
18
|
+
Reactor: "Reactor",
|
|
19
|
+
maxQAtNominalV: "Available Qmax at nominal voltage (MVar)",
|
|
20
|
+
SwitchedOnMaxQAtNominalV: "Switch-on Q at nominal voltage (MVar)",
|
|
21
|
+
maxSusceptance: "Maximum available susceptance (S)",
|
|
22
|
+
SwitchedOnMaxSusceptance: "Switch-on susceptance (S)",
|
|
23
|
+
ratedS: "Rated nominal power (MVA)",
|
|
24
|
+
marginalCost: "Cost",
|
|
25
|
+
plannedOutageRate: "Planning outage rate",
|
|
26
|
+
forcedOutageRate: "Forced outage rate",
|
|
27
|
+
vlId: "Voltage level ID",
|
|
28
|
+
p0: "Constant P (MW)",
|
|
29
|
+
q0: "Constant Q (MVar)",
|
|
30
|
+
loadTapChangingCapabilities: "Ratio tap changer on-load",
|
|
31
|
+
regulatingRatio: "Ratio tap changer regulating",
|
|
32
|
+
ratioTargetV: "Ratio tap changer voltage set point (kV)",
|
|
33
|
+
magnetizingConductance: "Magnetizing conductance (μS)",
|
|
34
|
+
magnetizingSusceptance: "Magnetizing susceptance (μS)",
|
|
35
|
+
vlNominalVoltage: "Voltage level nominal voltage (kV)",
|
|
36
|
+
lowVoltageLimit: "Low voltage limit (kV)",
|
|
37
|
+
highVoltageLimit: "High voltage limit (kV)",
|
|
38
|
+
selectFilterDialogTitle: "Choose a filter",
|
|
39
|
+
filter: "Filter",
|
|
40
|
+
loadType: "Type",
|
|
41
|
+
Undefined: "Undefined",
|
|
42
|
+
Auxiliary: "Auxiliary",
|
|
43
|
+
Fictitious: "Fictitious",
|
|
44
|
+
hasRatioTapChanger: "Ratio tap changer exists",
|
|
45
|
+
hasPhaseTapChanger: "Phase tap changer exists",
|
|
46
|
+
Voltage: "Voltage",
|
|
47
|
+
ReactivePower: "Reactive power",
|
|
48
|
+
CurrentLimiter: "Current limiter",
|
|
49
|
+
ActivePowerControl: "Active power control",
|
|
50
|
+
FixedTap: "Fixed tap",
|
|
51
|
+
ratioRegulationMode: "Ratio tap changer regulation mode",
|
|
52
|
+
phaseRegulationMode: "Phase tap changer regulation mode",
|
|
53
|
+
phaseRegulating: "Phase tap changer regulating",
|
|
54
|
+
phaseRegulationValue: "Phase tap changer flow set point or current limit",
|
|
55
|
+
property: "Property",
|
|
56
|
+
substationProperty: "Substation property",
|
|
57
|
+
substationProperty1: "Substation property 1",
|
|
58
|
+
substationProperty2: "Substation property 2",
|
|
59
|
+
ratedVoltage1KV: "Rated Voltage 1 (kV)",
|
|
60
|
+
ratedVoltage2KV: "Rated Voltage 2 (kV)",
|
|
61
|
+
nominalVoltage1KV: "Nominal Voltage 1 (kV)",
|
|
62
|
+
nominalVoltage2KV: "Nominal Voltage 2 (kV)",
|
|
63
|
+
voltageLevelProperty: "Voltage level property",
|
|
64
|
+
voltageLevelProperty1: "Voltage level property 1",
|
|
65
|
+
voltageLevelProperty2: "Voltage level property 2"
|
|
66
|
+
};
|
|
67
|
+
export {
|
|
68
|
+
filter_expert_en as default
|
|
69
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2024, RTE (http://www.rte-france.com)
|
|
3
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
|
+
*/
|
|
7
|
+
declare const filter_expert_fr: {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
energySource: string;
|
|
11
|
+
country: string;
|
|
12
|
+
voltageRegulatorOn: string;
|
|
13
|
+
PlannedActivePowerSetPoint: string;
|
|
14
|
+
minP: string;
|
|
15
|
+
maxP: string;
|
|
16
|
+
targetP: string;
|
|
17
|
+
targetV: string;
|
|
18
|
+
targetQ: string;
|
|
19
|
+
connected: string;
|
|
20
|
+
maximumSectionCount: string;
|
|
21
|
+
sectionCount: string;
|
|
22
|
+
shuntCompensatorType: string;
|
|
23
|
+
Capacitor: string;
|
|
24
|
+
Reactor: string;
|
|
25
|
+
maxQAtNominalV: string;
|
|
26
|
+
SwitchedOnMaxQAtNominalV: string;
|
|
27
|
+
maxSusceptance: string;
|
|
28
|
+
SwitchedOnMaxSusceptance: string;
|
|
29
|
+
ratedS: string;
|
|
30
|
+
marginalCost: string;
|
|
31
|
+
plannedOutageRate: string;
|
|
32
|
+
forcedOutageRate: string;
|
|
33
|
+
vlId: string;
|
|
34
|
+
p0: string;
|
|
35
|
+
q0: string;
|
|
36
|
+
loadTapChangingCapabilities: string;
|
|
37
|
+
regulatingRatio: string;
|
|
38
|
+
ratioTargetV: string;
|
|
39
|
+
magnetizingConductance: string;
|
|
40
|
+
magnetizingSusceptance: string;
|
|
41
|
+
vlNominalVoltage: string;
|
|
42
|
+
lowVoltageLimit: string;
|
|
43
|
+
highVoltageLimit: string;
|
|
44
|
+
selectFilterDialogTitle: string;
|
|
45
|
+
filter: string;
|
|
46
|
+
loadType: string;
|
|
47
|
+
Undefined: string;
|
|
48
|
+
Auxiliary: string;
|
|
49
|
+
Fictitious: string;
|
|
50
|
+
hasRatioTapChanger: string;
|
|
51
|
+
hasPhaseTapChanger: string;
|
|
52
|
+
Voltage: string;
|
|
53
|
+
ReactivePower: string;
|
|
54
|
+
CurrentLimiter: string;
|
|
55
|
+
ActivePowerControl: string;
|
|
56
|
+
FixedTap: string;
|
|
57
|
+
ratioRegulationMode: string;
|
|
58
|
+
phaseRegulationMode: string;
|
|
59
|
+
phaseRegulating: string;
|
|
60
|
+
phaseRegulationValue: string;
|
|
61
|
+
property: string;
|
|
62
|
+
substationProperty: string;
|
|
63
|
+
substationProperty1: string;
|
|
64
|
+
substationProperty2: string;
|
|
65
|
+
ratedVoltage1KV: string;
|
|
66
|
+
ratedVoltage2KV: string;
|
|
67
|
+
nominalVoltage1KV: string;
|
|
68
|
+
nominalVoltage2KV: string;
|
|
69
|
+
voltageLevelProperty: string;
|
|
70
|
+
voltageLevelProperty1: string;
|
|
71
|
+
voltageLevelProperty2: string;
|
|
72
|
+
};
|
|
73
|
+
export default filter_expert_fr;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
const filter_expert_fr = {
|
|
2
|
+
id: "ID",
|
|
3
|
+
name: "Nom",
|
|
4
|
+
energySource: "Source d'énergie",
|
|
5
|
+
country: "Pays",
|
|
6
|
+
voltageRegulatorOn: "Réglage de tension",
|
|
7
|
+
PlannedActivePowerSetPoint: "Puissance imposée (MW)",
|
|
8
|
+
minP: "Puissance active min (MW)",
|
|
9
|
+
maxP: "Puissance active max (MW)",
|
|
10
|
+
targetP: "Consigne puissance active (MW)",
|
|
11
|
+
targetV: "Consigne tension (kV)",
|
|
12
|
+
targetQ: "Consigne puissance réactive (MVar)",
|
|
13
|
+
connected: "Connecté",
|
|
14
|
+
maximumSectionCount: "Nombre de gradins",
|
|
15
|
+
sectionCount: "Gradin courant",
|
|
16
|
+
shuntCompensatorType: "Type",
|
|
17
|
+
Capacitor: "Condensateur",
|
|
18
|
+
Reactor: "Réactance",
|
|
19
|
+
maxQAtNominalV: "Q installée à tension nominale (MVar)",
|
|
20
|
+
SwitchedOnMaxQAtNominalV: "Q enclenchée à tension nominale (MVar)",
|
|
21
|
+
maxSusceptance: "Susceptance installée (S)",
|
|
22
|
+
SwitchedOnMaxSusceptance: "Susceptance enclenchée (S)",
|
|
23
|
+
ratedS: "Puissance nominale (MVA)",
|
|
24
|
+
marginalCost: "Coût",
|
|
25
|
+
plannedOutageRate: "Indisponibilité programmée",
|
|
26
|
+
forcedOutageRate: "Indisponibilité fortuite",
|
|
27
|
+
vlId: "ID poste",
|
|
28
|
+
p0: "P constant (MW)",
|
|
29
|
+
q0: "Q constant (MVar)",
|
|
30
|
+
loadTapChangingCapabilities: "Régleur en charge",
|
|
31
|
+
regulatingRatio: "Régleur en réglage",
|
|
32
|
+
ratioTargetV: "Tension de consigne du régleur (kV)",
|
|
33
|
+
magnetizingConductance: "Conductance magnétisante (μS)",
|
|
34
|
+
magnetizingSusceptance: "Susceptance magnétisante (μS)",
|
|
35
|
+
vlNominalVoltage: "Tension nominale poste (kV)",
|
|
36
|
+
lowVoltageLimit: "Limite tension basse (kV)",
|
|
37
|
+
highVoltageLimit: "Limite tension haute (kV)",
|
|
38
|
+
selectFilterDialogTitle: "Choisir un filtre",
|
|
39
|
+
filter: "Filtre",
|
|
40
|
+
loadType: "Type",
|
|
41
|
+
Undefined: "Non défini",
|
|
42
|
+
Auxiliary: "Auxiliaire",
|
|
43
|
+
Fictitious: "Fictif",
|
|
44
|
+
hasRatioTapChanger: "Régleur existe",
|
|
45
|
+
hasPhaseTapChanger: "Déphaseur existe",
|
|
46
|
+
Voltage: "Tension",
|
|
47
|
+
ReactivePower: "Puissance réactive",
|
|
48
|
+
CurrentLimiter: "Limitation de courant",
|
|
49
|
+
ActivePowerControl: "Suivi de transit",
|
|
50
|
+
FixedTap: "Déphasage constant",
|
|
51
|
+
ratioRegulationMode: "Mode de réglage régleur",
|
|
52
|
+
phaseRegulationMode: "Mode de réglage déphaseur",
|
|
53
|
+
phaseRegulating: "Déphaseur en réglage",
|
|
54
|
+
phaseRegulationValue: "Consigne de transit ou du courant du déphaseur",
|
|
55
|
+
property: "Propriété",
|
|
56
|
+
substationProperty: "Propriété site",
|
|
57
|
+
substationProperty1: "Propriété site Or",
|
|
58
|
+
substationProperty2: "Propriété site Ex",
|
|
59
|
+
ratedVoltage1KV: "Tension d'enroulement 1 (kV)",
|
|
60
|
+
ratedVoltage2KV: "Tension d'enroulement 2 (kV)",
|
|
61
|
+
nominalVoltage1KV: "Tension nominale 1 (kV)",
|
|
62
|
+
nominalVoltage2KV: "Tension nominale 2 (kV)",
|
|
63
|
+
voltageLevelProperty: "Propriété poste",
|
|
64
|
+
voltageLevelProperty1: "Propriété poste 1",
|
|
65
|
+
voltageLevelProperty2: "Propriété poste 2"
|
|
66
|
+
};
|
|
67
|
+
export {
|
|
68
|
+
filter_expert_fr as default
|
|
69
|
+
};
|
|
@@ -1,22 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2024, RTE (http://www.rte-france.com)
|
|
3
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
|
+
*/
|
|
7
|
+
declare const filter_fr: {
|
|
8
|
+
OR: string;
|
|
9
|
+
AND: string;
|
|
10
|
+
rule: string;
|
|
11
|
+
subGroup: string;
|
|
12
|
+
is: string;
|
|
13
|
+
contains: string;
|
|
14
|
+
beginsWith: string;
|
|
15
|
+
endsWith: string;
|
|
16
|
+
exists: string;
|
|
17
|
+
not_exists: string;
|
|
18
|
+
between: string;
|
|
19
|
+
in: string;
|
|
20
|
+
isPartOf: string;
|
|
21
|
+
isNotPartOf: string;
|
|
22
|
+
emptyRule: string;
|
|
23
|
+
incorrectRule: string;
|
|
24
|
+
betweenRule: string;
|
|
25
|
+
emptyGroup: string;
|
|
26
|
+
Hvdc: string;
|
|
27
|
+
};
|
|
1
28
|
export default filter_fr;
|
|
2
|
-
declare namespace filter_fr {
|
|
3
|
-
export let OR: string;
|
|
4
|
-
export let AND: string;
|
|
5
|
-
export let rule: string;
|
|
6
|
-
export let subGroup: string;
|
|
7
|
-
export let is: string;
|
|
8
|
-
export let contains: string;
|
|
9
|
-
export let beginsWith: string;
|
|
10
|
-
export let endsWith: string;
|
|
11
|
-
export let exists: string;
|
|
12
|
-
export let not_exists: string;
|
|
13
|
-
export let between: string;
|
|
14
|
-
let _in: string;
|
|
15
|
-
export { _in as in };
|
|
16
|
-
export let isPartOf: string;
|
|
17
|
-
export let isNotPartOf: string;
|
|
18
|
-
export let emptyRule: string;
|
|
19
|
-
export let incorrectRule: string;
|
|
20
|
-
export let betweenRule: string;
|
|
21
|
-
export let emptyGroup: string;
|
|
22
|
-
}
|
|
@@ -16,7 +16,8 @@ const filter_fr = {
|
|
|
16
16
|
emptyRule: "Le filtre contient un champ vide",
|
|
17
17
|
incorrectRule: "Le filtre contient un champ incorrect",
|
|
18
18
|
betweenRule: "La valeur de gauche d'une règle 'entre' doit être inférieure à la valeur de droite",
|
|
19
|
-
emptyGroup: "Le filtre contient un groupe vide. Supprimez le ou ajoutez des règles à ce groupe"
|
|
19
|
+
emptyGroup: "Le filtre contient un groupe vide. Supprimez le ou ajoutez des règles à ce groupe",
|
|
20
|
+
Hvdc: "HVDC"
|
|
20
21
|
};
|
|
21
22
|
export {
|
|
22
23
|
filter_fr as default
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default flat_parameters_en;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2023, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -10,3 +9,4 @@ declare const flat_parameters_en: {
|
|
|
10
9
|
'flat_parameters/some': string;
|
|
11
10
|
'flat_parameters/all': string;
|
|
12
11
|
};
|
|
12
|
+
export default flat_parameters_en;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default flat_parameters_fr;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2023, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -10,3 +9,4 @@ declare const flat_parameters_fr: {
|
|
|
10
9
|
'flat_parameters/some': string;
|
|
11
10
|
'flat_parameters/all': string;
|
|
12
11
|
};
|
|
12
|
+
export default flat_parameters_fr;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default inputs_en;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2022, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -23,3 +22,4 @@ declare const inputs_en: {
|
|
|
23
22
|
'inputs/switch': string;
|
|
24
23
|
Optional: string;
|
|
25
24
|
};
|
|
25
|
+
export default inputs_en;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default inputs_fr;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2022, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -23,3 +22,4 @@ declare const inputs_fr: {
|
|
|
23
22
|
'inputs/switch': string;
|
|
24
23
|
Optional: string;
|
|
25
24
|
};
|
|
25
|
+
export default inputs_fr;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default login_en;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2022, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -16,3 +15,4 @@ declare const login_en: {
|
|
|
16
15
|
'login/errorInLogoutMessage': string;
|
|
17
16
|
'login/logout': string;
|
|
18
17
|
};
|
|
18
|
+
export default login_en;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default login_fr;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2022, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -16,3 +15,4 @@ declare const login_fr: {
|
|
|
16
15
|
'login/errorInLogoutMessage': string;
|
|
17
16
|
'login/logout': string;
|
|
18
17
|
};
|
|
18
|
+
export default login_fr;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default multiple_selection_dialog_en;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2023, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -10,3 +9,4 @@ declare const multiple_selection_dialog_en: {
|
|
|
10
9
|
'multiple_selection_dialog/validate': string;
|
|
11
10
|
'multiple_selection_dialog/selectAll': string;
|
|
12
11
|
};
|
|
12
|
+
export default multiple_selection_dialog_en;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default multiple_selection_dialog_fr;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2023, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -10,3 +9,4 @@ declare const multiple_selection_dialog_fr: {
|
|
|
10
9
|
'multiple_selection_dialog/validate': string;
|
|
11
10
|
'multiple_selection_dialog/selectAll': string;
|
|
12
11
|
};
|
|
12
|
+
export default multiple_selection_dialog_fr;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default report_viewer_en;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2022, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -10,3 +9,4 @@ declare const report_viewer_en: {
|
|
|
10
9
|
'report_viewer/severity': string;
|
|
11
10
|
'report_viewer/message': string;
|
|
12
11
|
};
|
|
12
|
+
export default report_viewer_en;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default report_viewer_fr;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2022, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -10,3 +9,4 @@ declare const report_viewer_fr: {
|
|
|
10
9
|
'report_viewer/severity': string;
|
|
11
10
|
'report_viewer/message': string;
|
|
12
11
|
};
|
|
12
|
+
export default report_viewer_fr;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default table_en;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2022, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -8,3 +7,4 @@ export default table_en;
|
|
|
8
7
|
declare const table_en: {
|
|
9
8
|
'MuiVirtualizedTable/exportCSV': string;
|
|
10
9
|
};
|
|
10
|
+
export default table_en;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default table_fr;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2022, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -8,3 +7,4 @@ export default table_fr;
|
|
|
8
7
|
declare const table_fr: {
|
|
9
8
|
'MuiVirtualizedTable/exportCSV': string;
|
|
10
9
|
};
|
|
10
|
+
export default table_fr;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default top_bar_en;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2022, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -28,3 +27,4 @@ declare const top_bar_en: {
|
|
|
28
27
|
'about-dialog/module-tooltip-server': string;
|
|
29
28
|
'about-dialog/module-tooltip-other': string;
|
|
30
29
|
};
|
|
30
|
+
export default top_bar_en;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default top_bar_fr;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2022, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -28,3 +27,4 @@ declare const top_bar_fr: {
|
|
|
28
27
|
'about-dialog/module-tooltip-server': string;
|
|
29
28
|
'about-dialog/module-tooltip-other': string;
|
|
30
29
|
};
|
|
30
|
+
export default top_bar_fr;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default treeview_finder_en;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2022, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -15,3 +14,4 @@ declare const treeview_finder_en: {
|
|
|
15
14
|
'treeview_finder/addElementsValidation': string;
|
|
16
15
|
'treeview_finder/replaceElementsValidation': string;
|
|
17
16
|
};
|
|
17
|
+
export default treeview_finder_en;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default treeview_finder_fr;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2022, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -15,3 +14,4 @@ declare const treeview_finder_fr: {
|
|
|
15
14
|
'treeview_finder/addElementsValidation': string;
|
|
16
15
|
'treeview_finder/replaceElementsValidation': string;
|
|
17
16
|
};
|
|
17
|
+
export default treeview_finder_fr;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2023, RTE (http://www.rte-france.com)
|
|
3
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
|
+
*/
|
|
7
|
+
export declare const getSystemLanguage: () => string;
|
|
8
|
+
export declare const getComputedLanguage: (language: string | undefined) => string;
|
|
9
|
+
export declare const useLocalizedCountries: (language: string | undefined) => {
|
|
10
|
+
translate: (countryCode: string) => string;
|
|
5
11
|
countryCodes: string[];
|
|
6
12
|
};
|
|
@@ -9,7 +9,7 @@ const getSystemLanguage = () => {
|
|
|
9
9
|
return supportedLanguages.includes(systemLanguage) ? systemLanguage : LANG_ENGLISH;
|
|
10
10
|
};
|
|
11
11
|
const getComputedLanguage = (language) => {
|
|
12
|
-
return language === LANG_SYSTEM ? getSystemLanguage() : language;
|
|
12
|
+
return language === LANG_SYSTEM ? getSystemLanguage() : language ?? LANG_ENGLISH;
|
|
13
13
|
};
|
|
14
14
|
const useLocalizedCountries = (language) => {
|
|
15
15
|
const [localizedCountriesModule, setLocalizedCountriesModule] = useState();
|
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
import { EquipmentType, PredefinedProperties } from '../utils/types
|
|
1
|
+
import { EquipmentType, PredefinedProperties } from '../utils/types';
|
|
2
2
|
import { Dispatch, SetStateAction } from 'react';
|
|
3
3
|
|
|
4
|
-
interface Metadata {
|
|
5
|
-
name: string;
|
|
6
|
-
url: string;
|
|
7
|
-
appColor: string;
|
|
8
|
-
hiddenInAppsMenu: boolean;
|
|
9
|
-
resources: unknown;
|
|
10
|
-
}
|
|
11
|
-
export interface StudyMetadata extends Metadata {
|
|
12
|
-
name: 'Study';
|
|
13
|
-
predefinedEquipmentProperties: {
|
|
14
|
-
[networkElementType: string]: PredefinedProperties;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
4
|
export declare const usePredefinedProperties: (initialType: EquipmentType | null) => [PredefinedProperties, Dispatch<SetStateAction<EquipmentType | null>>];
|
|
18
|
-
export {};
|
|
@@ -1,31 +1,23 @@
|
|
|
1
|
-
import { useState,
|
|
1
|
+
import { useState, useEffect } from "react";
|
|
2
2
|
import { mapEquipmentTypeForPredefinedProperties } from "../utils/equipment-types-for-predefined-properties-mapper.js";
|
|
3
3
|
import { useSnackMessage } from "./useSnackMessage.js";
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
6
|
-
return metadata.name === "Study";
|
|
7
|
-
};
|
|
8
|
-
const fetchPredefinedProperties = async (equipmentType, fetchAppsAndUrls) => {
|
|
4
|
+
import { fetchStudyMetadata } from "../services/apps-metadata.js";
|
|
5
|
+
const fetchPredefinedProperties = async (equipmentType) => {
|
|
9
6
|
var _a;
|
|
10
7
|
const networkEquipmentType = mapEquipmentTypeForPredefinedProperties(equipmentType);
|
|
11
8
|
if (networkEquipmentType === void 0) {
|
|
12
9
|
return Promise.resolve(void 0);
|
|
13
10
|
}
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
if (!studyMetadata) {
|
|
17
|
-
return Promise.reject("Study entry could not be found in metadata");
|
|
18
|
-
}
|
|
19
|
-
return (_a = studyMetadata[0].predefinedEquipmentProperties) == null ? void 0 : _a[networkEquipmentType];
|
|
11
|
+
const studyMetadata = await fetchStudyMetadata();
|
|
12
|
+
return (_a = studyMetadata.predefinedEquipmentProperties) == null ? void 0 : _a[networkEquipmentType];
|
|
20
13
|
};
|
|
21
14
|
const usePredefinedProperties = (initialType) => {
|
|
22
15
|
const [type, setType] = useState(initialType);
|
|
23
16
|
const [equipmentPredefinedProps, setEquipmentPredefinedProps] = useState({});
|
|
24
17
|
const { snackError } = useSnackMessage();
|
|
25
|
-
const { fetchAppsAndUrls } = useContext(FilterContext);
|
|
26
18
|
useEffect(() => {
|
|
27
|
-
if (
|
|
28
|
-
fetchPredefinedProperties(type
|
|
19
|
+
if (type !== null) {
|
|
20
|
+
fetchPredefinedProperties(type).then((p) => {
|
|
29
21
|
if (p !== void 0) {
|
|
30
22
|
setEquipmentPredefinedProps(p);
|
|
31
23
|
}
|
|
@@ -35,7 +27,7 @@ const usePredefinedProperties = (initialType) => {
|
|
|
35
27
|
});
|
|
36
28
|
});
|
|
37
29
|
}
|
|
38
|
-
}, [type, setEquipmentPredefinedProps, snackError
|
|
30
|
+
}, [type, setEquipmentPredefinedProps, snackError]);
|
|
39
31
|
return [equipmentPredefinedProps, setType];
|
|
40
32
|
};
|
|
41
33
|
export {
|