@gridsuite/commons-ui 0.63.3 → 0.63.5
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/_mocks_/svg.js +1 -3
- package/dist/assets/expert-filter-form.css +18 -8
- package/dist/components/AuthenticationRouter/AuthenticationRouter.js +88 -97
- package/dist/components/CardErrorBoundary/card-error-boundary.js +6 -20
- package/dist/components/CustomAGGrid/custom-aggrid.js +47 -49
- package/dist/components/DirectoryItemSelector/directory-item-selector.js +10 -40
- package/dist/components/ElementSearchDialog/element-search-dialog.js +1 -17
- package/dist/components/ElementSearchDialog/equipment-item.js +29 -47
- package/dist/components/ElementSearchDialog/tag-renderer.js +2 -8
- package/dist/components/ElementSearchDialog/use-element-search.js +1 -4
- package/dist/components/FlatParameters/FlatParameters.js +13 -77
- package/dist/components/Login/Login.js +9 -34
- package/dist/components/Login/Logout.js +3 -26
- package/dist/components/MuiVirtualizedTable/ColumnHeader.js +35 -64
- package/dist/components/MuiVirtualizedTable/KeyedColumnsRowIndexer.js +4 -17
- package/dist/components/MuiVirtualizedTable/MuiVirtualizedTable.d.ts +1 -1
- package/dist/components/MuiVirtualizedTable/MuiVirtualizedTable.js +19 -95
- package/dist/components/MuiVirtualizedTable/index.d.ts +1 -1
- package/dist/components/MultipleSelectionDialog/MultipleSelectionDialog.js +2 -6
- package/dist/components/OverflowableText/overflowable-text.js +3 -10
- package/dist/components/ReportViewer/filter-button.d.ts +1 -1
- package/dist/components/ReportViewer/filter-button.js +2 -7
- package/dist/components/ReportViewer/log-report-item.js +7 -17
- package/dist/components/ReportViewer/log-report.js +4 -13
- package/dist/components/ReportViewer/log-table.d.ts +1 -1
- package/dist/components/ReportViewer/log-table.js +3 -16
- package/dist/components/ReportViewer/multi-select-list.d.ts +1 -1
- package/dist/components/ReportViewer/multi-select-list.js +2 -14
- package/dist/components/ReportViewer/report-item.js +4 -10
- package/dist/components/ReportViewer/report-viewer.d.ts +1 -1
- package/dist/components/ReportViewer/report-viewer.js +2 -7
- package/dist/components/ReportViewerDialog/report-viewer-dialog.js +1 -13
- package/dist/components/SignInCallbackHandler/SignInCallbackHandler.d.ts +1 -1
- package/dist/components/SignInCallbackHandler/SignInCallbackHandler.js +1 -4
- package/dist/components/SilentRenewCallbackHandler/SilentRenewCallbackHandler.d.ts +1 -1
- package/dist/components/SilentRenewCallbackHandler/SilentRenewCallbackHandler.js +1 -4
- package/dist/components/SnackbarProvider/SnackbarProvider.js +4 -11
- package/dist/components/TopBar/AboutDialog.js +51 -152
- package/dist/components/TopBar/GridLogo.d.ts +2 -2
- package/dist/components/TopBar/GridLogo.js +8 -41
- package/dist/components/TopBar/TopBar.js +197 -328
- package/dist/components/TreeViewFinder/TreeViewFinder.js +23 -66
- package/dist/components/TreeViewFinder/index.d.ts +2 -2
- package/dist/components/dialogs/custom-mui-dialog.d.ts +2 -1
- package/dist/components/dialogs/custom-mui-dialog.js +64 -39
- package/dist/components/dialogs/modify-element-selection.js +1 -3
- package/dist/components/dialogs/popup-confirmation-dialog.d.ts +1 -1
- package/dist/components/dialogs/popup-confirmation-dialog.js +8 -15
- package/dist/components/filter/criteria-based/criteria-based-filter-edition-dialog.js +3 -18
- package/dist/components/filter/criteria-based/criteria-based-filter-utils.js +3 -9
- package/dist/components/filter/criteria-based/criteria-based-form.d.ts +1 -1
- package/dist/components/filter/criteria-based/criteria-based-form.js +7 -15
- package/dist/components/filter/criteria-based/filter-free-properties.d.ts +1 -1
- package/dist/components/filter/criteria-based/filter-free-properties.js +1 -4
- package/dist/components/filter/criteria-based/filter-properties.js +16 -24
- package/dist/components/filter/criteria-based/filter-property.js +1 -4
- package/dist/components/filter/expert/expert-filter-constants.d.ts +13 -6
- package/dist/components/filter/expert/expert-filter-constants.js +76 -36
- package/dist/components/filter/expert/expert-filter-edition-dialog.js +3 -18
- package/dist/components/filter/expert/expert-filter-form.js +1 -7
- package/dist/components/filter/expert/expert-filter-utils.js +10 -30
- package/dist/components/filter/expert/expert-filter.type.d.ts +3 -1
- package/dist/components/filter/expert/expert-filter.type.js +2 -0
- package/dist/components/filter/explicit-naming/explicit-naming-filter-edition-dialog.js +2 -15
- package/dist/components/filter/explicit-naming/explicit-naming-filter-form.d.ts +1 -1
- package/dist/components/filter/explicit-naming/explicit-naming-filter-form.js +10 -35
- package/dist/components/filter/filter-creation-dialog.js +5 -10
- package/dist/components/filter/filter-form.js +1 -6
- package/dist/components/filter/utils/filter-api.js +1 -7
- package/dist/components/inputs/react-hook-form/ExpandingTextField.js +1 -9
- package/dist/components/inputs/react-hook-form/ag-grid-table/bottom-right-buttons.js +14 -52
- package/dist/components/inputs/react-hook-form/ag-grid-table/csv-uploader/csv-uploader.js +14 -62
- package/dist/components/inputs/react-hook-form/ag-grid-table/custom-ag-grid-table.js +29 -40
- package/dist/components/inputs/react-hook-form/autocomplete-inputs/autocomplete-input.js +2 -8
- package/dist/components/inputs/react-hook-form/autocomplete-inputs/multiple-autocomplete-input.js +1 -3
- package/dist/components/inputs/react-hook-form/booleans/boolean-input.js +1 -7
- package/dist/components/inputs/react-hook-form/booleans/checkbox-input.js +1 -9
- package/dist/components/inputs/react-hook-form/booleans/switch-input.js +1 -9
- package/dist/components/inputs/react-hook-form/directory-items-input.js +5 -29
- package/dist/components/inputs/react-hook-form/error-management/error-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/provider/custom-form-provider.js +1 -7
- package/dist/components/inputs/react-hook-form/radio-input.js +8 -18
- package/dist/components/inputs/react-hook-form/range-input.js +1 -4
- package/dist/components/inputs/react-hook-form/select-inputs/countries-input.js +1 -9
- package/dist/components/inputs/react-hook-form/select-inputs/mui-select-input.js +2 -13
- package/dist/components/inputs/react-hook-form/select-inputs/select-input.js +2 -6
- package/dist/components/inputs/react-hook-form/slider-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/slider-input.js +2 -19
- package/dist/components/inputs/react-hook-form/unique-name-input.js +1 -9
- package/dist/components/inputs/react-hook-form/utils/field-label.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/utils/field-label.js +1 -5
- package/dist/components/inputs/react-hook-form/utils/submit-button.js +1 -8
- package/dist/components/inputs/react-hook-form/utils/text-field-with-adornment.js +18 -47
- package/dist/components/inputs/react-query-builder/add-button.js +1 -10
- package/dist/components/inputs/react-query-builder/autocomplete-with-favorites.d.ts +12 -0
- package/dist/components/inputs/react-query-builder/autocomplete-with-favorites.js +43 -0
- package/dist/components/inputs/react-query-builder/composite-rule-editor/group-value-editor.js +14 -27
- package/dist/components/inputs/react-query-builder/composite-rule-editor/rule-value-editor.js +1 -3
- package/dist/components/inputs/react-query-builder/country-value-editor.js +27 -28
- package/dist/components/inputs/react-query-builder/custom-react-query-builder.js +25 -31
- package/dist/components/inputs/react-query-builder/element-value-editor.js +1 -10
- package/dist/components/inputs/react-query-builder/property-value-editor.js +6 -11
- package/dist/components/inputs/react-query-builder/remove-button.js +1 -9
- package/dist/components/inputs/react-query-builder/text-value-editor.js +2 -1
- package/dist/components/inputs/react-query-builder/translated-value-editor.js +3 -4
- package/dist/components/inputs/react-query-builder/use-convert-value.d.ts +1 -1
- package/dist/components/inputs/react-query-builder/use-convert-value.js +1 -6
- package/dist/components/inputs/react-query-builder/value-editor.js +4 -20
- package/dist/components/translations/filter-expert-en.d.ts +21 -7
- package/dist/components/translations/filter-expert-en.js +24 -10
- package/dist/components/translations/filter-expert-fr.d.ts +21 -7
- package/dist/components/translations/filter-expert-fr.js +24 -10
- package/dist/hooks/localized-countries-hook.js +1 -3
- package/dist/hooks/useConfidentialityWarning.d.ts +8 -0
- package/dist/hooks/useConfidentialityWarning.js +14 -0
- package/dist/hooks/useDebounce.js +1 -4
- package/dist/hooks/useSnackMessage.js +3 -12
- package/dist/index.d.ts +10 -9
- package/dist/index.js +77 -73
- package/dist/services/apps-metadata.d.ts +7 -0
- package/dist/services/apps-metadata.js +13 -0
- package/dist/services/directory.js +3 -11
- package/dist/services/explore.js +2 -8
- package/dist/services/index.js +3 -1
- package/dist/services/utils.js +4 -12
- package/dist/utils/AuthService.js +8 -29
- package/dist/utils/UserManagerMock.js +6 -23
- package/dist/utils/styles.js +1 -6
- package/package.json +2 -1
|
@@ -86,27 +86,39 @@ const filterExpertEn = {
|
|
|
86
86
|
substationProperty: "Substation property",
|
|
87
87
|
substationProperty1: "Substation property 1",
|
|
88
88
|
substationProperty2: "Substation property 2",
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
substationProperty1Twt: "Substation property 1",
|
|
90
|
+
substationProperty2Twt: "Substation property 2",
|
|
91
|
+
substationProperty3Twt: "Substation property 3",
|
|
91
92
|
ratedVoltage1KV: "Rated Voltage 1 (kV)",
|
|
92
93
|
ratedVoltage2KV: "Rated Voltage 2 (kV)",
|
|
93
|
-
|
|
94
|
+
ratedVoltage0KVTwt: "Rated Voltage 0 (kV)",
|
|
95
|
+
ratedVoltage1KVTwt: "Rated Voltage 1 (kV)",
|
|
96
|
+
ratedVoltage2KVTwt: "Rated Voltage 2 (kV)",
|
|
97
|
+
ratedVoltage3KVTwt: "Rated Voltage 3 (kV)",
|
|
94
98
|
nominalVoltage1: "Nominal Voltage 1",
|
|
95
99
|
nominalVoltage2: "Nominal Voltage 2",
|
|
96
100
|
nominalVoltage3: "Nominal Voltage 3",
|
|
97
101
|
nominalVoltage1KV: "Nominal Voltage 1 (kV)",
|
|
98
102
|
nominalVoltage2KV: "Nominal Voltage 2 (kV)",
|
|
99
|
-
|
|
103
|
+
nominalVoltage1KVTwt: "Nominal Voltage 1 (kV)",
|
|
104
|
+
nominalVoltage2KVTwt: "Nominal Voltage 2 (kV)",
|
|
105
|
+
nominalVoltage3KVTwt: "Nominal Voltage 3 (kV)",
|
|
100
106
|
voltageLevelId1: "Voltage level ID 1",
|
|
101
107
|
voltageLevelId2: "Voltage level ID 2",
|
|
102
|
-
|
|
108
|
+
voltageLevelId1Twt: "Voltage level ID 1",
|
|
109
|
+
voltageLevelId2Twt: "Voltage level ID 2",
|
|
110
|
+
voltageLevelId3Twt: "Voltage level ID 3",
|
|
103
111
|
terminal1Connected: "Connected 1",
|
|
104
112
|
terminal2Connected: "Connected 2",
|
|
105
|
-
|
|
113
|
+
terminal1ConnectedTwt: "Connected 1",
|
|
114
|
+
terminal2ConnectedTwt: "Connected 2",
|
|
115
|
+
terminal3ConnectedTwt: "Connected 3",
|
|
106
116
|
voltageLevelProperty: "Voltage level property",
|
|
107
117
|
voltageLevelProperty1: "Voltage level property 1",
|
|
108
118
|
voltageLevelProperty2: "Voltage level property 2",
|
|
109
|
-
|
|
119
|
+
voltageLevelProperty1Twt: "Voltage level property 1",
|
|
120
|
+
voltageLevelProperty2Twt: "Voltage level property 2",
|
|
121
|
+
voltageLevelProperty3Twt: "Voltage level property 3",
|
|
110
122
|
"maxQAtNominalV.svar": "Q max at nominal voltage (MVar)",
|
|
111
123
|
"minQAtNominalV.svar": "Q min at nominal voltage (MVar)",
|
|
112
124
|
"fixQAtNominalV.svar": "Fixed part of Q at nominal voltage (MVar)",
|
|
@@ -117,8 +129,8 @@ const filterExpertEn = {
|
|
|
117
129
|
"regulationMode.voltage": "Voltage regulation",
|
|
118
130
|
"regulationMode.reactivePower": "Reactive power regulation",
|
|
119
131
|
voltageSetPoint: "Voltage set point",
|
|
120
|
-
activePowerSetPoint: "Active power set point",
|
|
121
|
-
reactivePowerSetPoint: "Reactive power set point",
|
|
132
|
+
activePowerSetPoint: "Active power set point (MW)",
|
|
133
|
+
reactivePowerSetPoint: "Reactive power set point (MVar)",
|
|
122
134
|
remoteRegulatedTerminal: "Remote regulated terminal",
|
|
123
135
|
regulatingTerminalVLId: "Voltage Level ID",
|
|
124
136
|
regulatingTerminalConnectableId: "Equipment ID",
|
|
@@ -155,7 +167,9 @@ const filterExpertEn = {
|
|
|
155
167
|
shuntConductance1: "Shunt conductance 1 (μS)",
|
|
156
168
|
shuntSusceptance1: "Shunt susceptance 1 (μS)",
|
|
157
169
|
shuntConductance2: "Shunt conductance 2 (μS)",
|
|
158
|
-
shuntSusceptance2: "Shunt susceptance 2 (μS)"
|
|
170
|
+
shuntSusceptance2: "Shunt susceptance 2 (μS)",
|
|
171
|
+
pairingKey: "Xnode",
|
|
172
|
+
tieLineId: "Tie line ID"
|
|
159
173
|
};
|
|
160
174
|
export {
|
|
161
175
|
filterExpertEn as default
|
|
@@ -92,27 +92,39 @@ declare const filterExpertFr: {
|
|
|
92
92
|
substationProperty: string;
|
|
93
93
|
substationProperty1: string;
|
|
94
94
|
substationProperty2: string;
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
substationProperty1Twt: string;
|
|
96
|
+
substationProperty2Twt: string;
|
|
97
|
+
substationProperty3Twt: string;
|
|
97
98
|
ratedVoltage1KV: string;
|
|
98
99
|
ratedVoltage2KV: string;
|
|
99
|
-
|
|
100
|
+
ratedVoltage0KVTwt: string;
|
|
101
|
+
ratedVoltage1KVTwt: string;
|
|
102
|
+
ratedVoltage2KVTwt: string;
|
|
103
|
+
ratedVoltage3KVTwt: string;
|
|
100
104
|
nominalVoltage1: string;
|
|
101
105
|
nominalVoltage2: string;
|
|
102
106
|
nominalVoltage3: string;
|
|
103
107
|
voltageLevelId1: string;
|
|
104
108
|
voltageLevelId2: string;
|
|
105
|
-
|
|
109
|
+
voltageLevelId1Twt: string;
|
|
110
|
+
voltageLevelId2Twt: string;
|
|
111
|
+
voltageLevelId3Twt: string;
|
|
106
112
|
terminal1Connected: string;
|
|
107
113
|
terminal2Connected: string;
|
|
108
|
-
|
|
114
|
+
terminal1ConnectedTwt: string;
|
|
115
|
+
terminal2ConnectedTwt: string;
|
|
116
|
+
terminal3ConnectedTwt: string;
|
|
109
117
|
nominalVoltage1KV: string;
|
|
110
118
|
nominalVoltage2KV: string;
|
|
111
|
-
|
|
119
|
+
nominalVoltage1KVTwt: string;
|
|
120
|
+
nominalVoltage2KVTwt: string;
|
|
121
|
+
nominalVoltage3KVTwt: string;
|
|
112
122
|
voltageLevelProperty: string;
|
|
113
123
|
voltageLevelProperty1: string;
|
|
114
124
|
voltageLevelProperty2: string;
|
|
115
|
-
|
|
125
|
+
voltageLevelProperty1Twt: string;
|
|
126
|
+
voltageLevelProperty2Twt: string;
|
|
127
|
+
voltageLevelProperty3Twt: string;
|
|
116
128
|
'maxQAtNominalV.svar': string;
|
|
117
129
|
'minQAtNominalV.svar': string;
|
|
118
130
|
'fixQAtNominalV.svar': string;
|
|
@@ -162,5 +174,7 @@ declare const filterExpertFr: {
|
|
|
162
174
|
shuntSusceptance1: string;
|
|
163
175
|
shuntConductance2: string;
|
|
164
176
|
shuntSusceptance2: string;
|
|
177
|
+
pairingKey: string;
|
|
178
|
+
tieLineId: string;
|
|
165
179
|
};
|
|
166
180
|
export default filterExpertFr;
|
|
@@ -86,27 +86,39 @@ const filterExpertFr = {
|
|
|
86
86
|
substationProperty: "Propriété site",
|
|
87
87
|
substationProperty1: "Propriété site 1",
|
|
88
88
|
substationProperty2: "Propriété site 2",
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
substationProperty1Twt: "Propriété site 1",
|
|
90
|
+
substationProperty2Twt: "Propriété site 2",
|
|
91
|
+
substationProperty3Twt: "Propriété site 3",
|
|
91
92
|
ratedVoltage1KV: "Tension d'enroulement 1 (kV)",
|
|
92
93
|
ratedVoltage2KV: "Tension d'enroulement 2 (kV)",
|
|
93
|
-
|
|
94
|
+
ratedVoltage0KVTwt: "Tension d'enroulement 0 (kV)",
|
|
95
|
+
ratedVoltage1KVTwt: "Tension d'enroulement 1 (kV)",
|
|
96
|
+
ratedVoltage2KVTwt: "Tension d'enroulement 2 (kV)",
|
|
97
|
+
ratedVoltage3KVTwt: "Tension d'enroulement 3 (kV)",
|
|
94
98
|
nominalVoltage1: "Tension nominale 1",
|
|
95
99
|
nominalVoltage2: "Tension nominale 2",
|
|
96
100
|
nominalVoltage3: "Tension nominale 3",
|
|
97
101
|
voltageLevelId1: "ID Poste 1",
|
|
98
102
|
voltageLevelId2: "ID Poste 2",
|
|
99
|
-
|
|
103
|
+
voltageLevelId1Twt: "ID Poste 1",
|
|
104
|
+
voltageLevelId2Twt: "ID Poste 2",
|
|
105
|
+
voltageLevelId3Twt: "ID Poste 3",
|
|
100
106
|
terminal1Connected: "Connecté 1",
|
|
101
107
|
terminal2Connected: "Connecté 2",
|
|
102
|
-
|
|
108
|
+
terminal1ConnectedTwt: "Connecté 1",
|
|
109
|
+
terminal2ConnectedTwt: "Connecté 2",
|
|
110
|
+
terminal3ConnectedTwt: "Connecté 3",
|
|
103
111
|
nominalVoltage1KV: "Tension nominale 1 (kV)",
|
|
104
112
|
nominalVoltage2KV: "Tension nominale 2 (kV)",
|
|
105
|
-
|
|
113
|
+
nominalVoltage1KVTwt: "Tension nominale 1 (kV)",
|
|
114
|
+
nominalVoltage2KVTwt: "Tension nominale 2 (kV)",
|
|
115
|
+
nominalVoltage3KVTwt: "Tension nominale 3 (kV)",
|
|
106
116
|
voltageLevelProperty: "Propriété poste",
|
|
107
117
|
voltageLevelProperty1: "Propriété poste 1",
|
|
108
118
|
voltageLevelProperty2: "Propriété poste 2",
|
|
109
|
-
|
|
119
|
+
voltageLevelProperty1Twt: "Propriété poste 1",
|
|
120
|
+
voltageLevelProperty2Twt: "Propriété poste 2",
|
|
121
|
+
voltageLevelProperty3Twt: "Propriété poste 3",
|
|
110
122
|
"maxQAtNominalV.svar": "Q max à tension nominale (MVar)",
|
|
111
123
|
"minQAtNominalV.svar": "Q min à tension nominale (MVar)",
|
|
112
124
|
"fixQAtNominalV.svar": "Q fixe à tension nominale (MVar)",
|
|
@@ -117,8 +129,8 @@ const filterExpertFr = {
|
|
|
117
129
|
"regulationMode.voltage": "Réglage de tension",
|
|
118
130
|
"regulationMode.reactivePower": "Réglage du réactif",
|
|
119
131
|
voltageSetPoint: "Tension",
|
|
120
|
-
activePowerSetPoint: "Consigne de puissance active",
|
|
121
|
-
reactivePowerSetPoint: "Consigne de puissance réactive",
|
|
132
|
+
activePowerSetPoint: "Consigne de puissance active (MW)",
|
|
133
|
+
reactivePowerSetPoint: "Consigne de puissance réactive (MVar)",
|
|
122
134
|
remoteRegulatedTerminal: "Terminal distant réglé",
|
|
123
135
|
regulatingTerminalVLId: "ID de poste",
|
|
124
136
|
regulatingTerminalConnectableId: "ID d'ouvrage",
|
|
@@ -155,7 +167,9 @@ const filterExpertFr = {
|
|
|
155
167
|
shuntConductance1: "Conductance parallèle 1 (μS)",
|
|
156
168
|
shuntSusceptance1: "Susceptance parallèle 1 (μS)",
|
|
157
169
|
shuntConductance2: "Conductance parallèle 2 (μS)",
|
|
158
|
-
shuntSusceptance2: "Susceptance parallèle 2 (μS)"
|
|
170
|
+
shuntSusceptance2: "Susceptance parallèle 2 (μS)",
|
|
171
|
+
pairingKey: "Xnode",
|
|
172
|
+
tieLineId: "ID de l'interconnexion"
|
|
159
173
|
};
|
|
160
174
|
export {
|
|
161
175
|
filterExpertFr as default
|
|
@@ -21,9 +21,7 @@ const useLocalizedCountries = (language) => {
|
|
|
21
21
|
} else if (lang === "en") {
|
|
22
22
|
localizedCountriesResult = localizedCountries(countriesEn);
|
|
23
23
|
} else {
|
|
24
|
-
console.warn(
|
|
25
|
-
`Unsupported language "${lang}" for countries translation, we use english as default`
|
|
26
|
-
);
|
|
24
|
+
console.warn(`Unsupported language "${lang}" for countries translation, we use english as default`);
|
|
27
25
|
localizedCountriesResult = localizedCountries(countriesEn);
|
|
28
26
|
}
|
|
29
27
|
setLocalizedCountriesModule(localizedCountriesResult);
|
|
@@ -0,0 +1,8 @@
|
|
|
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 useConfidentialityWarning: () => string | undefined;
|
|
8
|
+
export default useConfidentialityWarning;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useState, useEffect } from "react";
|
|
2
|
+
import { fetchEnv } from "../services/apps-metadata.js";
|
|
3
|
+
const useConfidentialityWarning = () => {
|
|
4
|
+
const [confidentialityWarningKey, setConfidentialityWarningKey] = useState();
|
|
5
|
+
useEffect(() => {
|
|
6
|
+
fetchEnv().then((res) => {
|
|
7
|
+
setConfidentialityWarningKey(res == null ? void 0 : res.confidentialityMessageKey);
|
|
8
|
+
});
|
|
9
|
+
}, []);
|
|
10
|
+
return confidentialityWarningKey;
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
useConfidentialityWarning as default
|
|
14
|
+
};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { useMemo, useEffect } from "react";
|
|
2
2
|
import { debounce } from "@mui/material";
|
|
3
3
|
const useDebounce = (func, delay = 700) => {
|
|
4
|
-
const debouncedChangeHandler = useMemo(
|
|
5
|
-
() => debounce(func, delay),
|
|
6
|
-
[func, delay]
|
|
7
|
-
);
|
|
4
|
+
const debouncedChangeHandler = useMemo(() => debounce(func, delay), [func, delay]);
|
|
8
5
|
useEffect(() => {
|
|
9
6
|
return () => {
|
|
10
7
|
debouncedChangeHandler.clear();
|
|
@@ -57,18 +57,9 @@ function useSnackMessage() {
|
|
|
57
57
|
},
|
|
58
58
|
[enqueueSnackbar, intlRef]
|
|
59
59
|
);
|
|
60
|
-
const snackError = useCallback(
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
);
|
|
64
|
-
const snackWarning = useCallback(
|
|
65
|
-
(snackInputs) => enqueue(snackInputs, "warning"),
|
|
66
|
-
[enqueue]
|
|
67
|
-
);
|
|
68
|
-
const snackInfo = useCallback(
|
|
69
|
-
(snackInputs) => enqueue(snackInputs, "info"),
|
|
70
|
-
[enqueue]
|
|
71
|
-
);
|
|
60
|
+
const snackError = useCallback((snackInputs) => enqueue(snackInputs, "error"), [enqueue]);
|
|
61
|
+
const snackWarning = useCallback((snackInputs) => enqueue(snackInputs, "warning"), [enqueue]);
|
|
62
|
+
const snackInfo = useCallback((snackInputs) => enqueue(snackInputs, "info"), [enqueue]);
|
|
72
63
|
return { snackError, snackInfo, snackWarning, closeSnackbar };
|
|
73
64
|
}
|
|
74
65
|
export {
|
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export { default as SnackbarProvider } from './components/SnackbarProvider';
|
|
|
12
12
|
export { default as AuthenticationRouter } from './components/AuthenticationRouter';
|
|
13
13
|
export type { AuthenticationRouterErrorState, AuthenticationRouterProps, UserManagerState, } from './components/AuthenticationRouter';
|
|
14
14
|
export { MuiVirtualizedTable } from './components/MuiVirtualizedTable';
|
|
15
|
-
export { KeyedColumnsRowIndexer, ChangeWays
|
|
15
|
+
export { KeyedColumnsRowIndexer, ChangeWays } from './components/MuiVirtualizedTable';
|
|
16
16
|
export { default as ReportViewer } from './components/ReportViewer';
|
|
17
17
|
export { default as ReportViewerDialog } from './components/ReportViewerDialog';
|
|
18
18
|
export { default as OverflowableText } from './components/OverflowableText';
|
|
@@ -34,19 +34,19 @@ export { default as FieldConstants } from './utils/field-constants';
|
|
|
34
34
|
export { fields as EXPERT_FILTER_FIELDS } from './components/filter/expert/expert-filter-constants';
|
|
35
35
|
export { default as CustomReactQueryBuilder } from './components/inputs/react-query-builder/custom-react-query-builder';
|
|
36
36
|
export { EXPERT_FILTER_QUERY, rqbQuerySchemaValidator, getExpertFilterEmptyFormData, } from './components/filter/expert/expert-filter-form';
|
|
37
|
-
export { importExpertRules, exportExpertRules
|
|
38
|
-
export type { RuleTypeExport, RuleGroupTypeExport
|
|
37
|
+
export { importExpertRules, exportExpertRules } from './components/filter/expert/expert-filter-utils';
|
|
38
|
+
export type { RuleTypeExport, RuleGroupTypeExport } from './components/filter/expert/expert-filter.type';
|
|
39
39
|
export { formatQuery } from 'react-querybuilder';
|
|
40
40
|
export { default as yup } from './utils/yup-config';
|
|
41
41
|
export type { TreeViewFinderNodeProps } from './components/TreeViewFinder/TreeViewFinder';
|
|
42
42
|
export { GRIDSUITE_DEFAULT_PRECISION, roundToPrecision, roundToDefaultPrecision, isBlankOrEmpty, unitToMicroUnit, microUnitToUnit, } from './utils/conversion-utils';
|
|
43
43
|
export { ElementType } from './utils/ElementType';
|
|
44
44
|
export type { ElementAttributes, Option, Equipment } from './utils/types';
|
|
45
|
-
export { EQUIPMENT_TYPE, EquipmentType, getEquipmentsInfosForSearchBar, equipmentStyles
|
|
45
|
+
export { EQUIPMENT_TYPE, EquipmentType, getEquipmentsInfosForSearchBar, equipmentStyles } from './utils/EquipmentType';
|
|
46
46
|
export { initializeAuthenticationDev, initializeAuthenticationProd, logout, dispatchUser, getPreLoginPath, } from './utils/AuthService';
|
|
47
47
|
export { default as getFileIcon } from './utils/ElementIcon';
|
|
48
48
|
export { DEFAULT_CELL_PADDING, DEFAULT_HEADER_HEIGHT, DEFAULT_ROW_HEIGHT, } from './components/MuiVirtualizedTable/MuiVirtualizedTable';
|
|
49
|
-
export { DARK_THEME, LIGHT_THEME, LANG_SYSTEM, LANG_ENGLISH, LANG_FRENCH
|
|
49
|
+
export { DARK_THEME, LIGHT_THEME, LANG_SYSTEM, LANG_ENGLISH, LANG_FRENCH } from './components/TopBar/TopBar';
|
|
50
50
|
export type { GsLang, GsLangUser, GsTheme } from './components/TopBar/TopBar';
|
|
51
51
|
export { USER, setLoggedUser, SIGNIN_CALLBACK_ERROR, setSignInCallbackError, UNAUTHORIZED_USER_INFO, LOGOUT_ERROR, USER_VALIDATION_ERROR, RESET_AUTHENTICATION_ROUTER_ERROR, SHOW_AUTH_INFO_LOGIN, } from './redux/authActions';
|
|
52
52
|
export type { AuthenticationActions, AuthenticationRouterErrorBase, AuthenticationRouterErrorAction, LogoutErrorAction, ShowAuthenticationRouterLoginAction, SignInCallbackErrorAction, UnauthorizedUserAction, UserAction, UserValidationErrorAction, } from './redux/authActions';
|
|
@@ -78,7 +78,7 @@ export { default as common_button_en } from './components/translations/common-bu
|
|
|
78
78
|
export { default as common_button_fr } from './components/translations/common-button-fr';
|
|
79
79
|
export { default as directory_items_input_en } from './components/translations/directory-items-input-en';
|
|
80
80
|
export { default as directory_items_input_fr } from './components/translations/directory-items-input-fr';
|
|
81
|
-
export { TagRenderer, ElementSearchInput, useElementSearch
|
|
81
|
+
export { TagRenderer, ElementSearchInput, useElementSearch } from './components/ElementSearchDialog';
|
|
82
82
|
export type { Paginated } from './components/ElementSearchDialog';
|
|
83
83
|
export type { TagRendererProps } from './components/ElementSearchDialog';
|
|
84
84
|
export { EquipmentItem } from './components/ElementSearchDialog/equipment-item';
|
|
@@ -87,6 +87,7 @@ export { default as useIntlRef } from './hooks/useIntlRef';
|
|
|
87
87
|
export { useSnackMessage } from './hooks/useSnackMessage';
|
|
88
88
|
export { default as useDebounce } from './hooks/useDebounce';
|
|
89
89
|
export { default as usePrevious } from './hooks/usePrevious';
|
|
90
|
+
export { default as useConfidentialityWarning } from './hooks/useConfidentialityWarning';
|
|
90
91
|
export { default as SelectClearable } from './components/inputs/select-clearable';
|
|
91
92
|
export { default as useCustomFormContext } from './components/inputs/react-hook-form/provider/use-custom-form-context';
|
|
92
93
|
export { default as CustomFormProvider } from './components/inputs/react-hook-form/provider/custom-form-provider';
|
|
@@ -108,7 +109,7 @@ export { default as FieldLabel } from './components/inputs/react-hook-form/utils
|
|
|
108
109
|
export { default as SubmitButton } from './components/inputs/react-hook-form/utils/submit-button';
|
|
109
110
|
export { default as CancelButton } from './components/inputs/react-hook-form/utils/cancel-button';
|
|
110
111
|
export { genHelperPreviousValue, genHelperError, identity, isFieldRequired, gridItem, isFloatNumber, toFloatOrNullValue, } from './components/inputs/react-hook-form/utils/functions';
|
|
111
|
-
export { keyGenerator, areArrayElementsUnique, isObjectEmpty
|
|
112
|
+
export { keyGenerator, areArrayElementsUnique, isObjectEmpty } from './utils/functions';
|
|
112
113
|
export { default as DirectoryItemsInput } from './components/inputs/react-hook-form/directory-items-input';
|
|
113
114
|
export { default as DirectoryItemSelector } from './components/DirectoryItemSelector/directory-item-selector';
|
|
114
115
|
export { default as CustomAGGrid } from './components/CustomAGGrid/custom-aggrid';
|
|
@@ -122,12 +123,12 @@ export { default as RangeInput, DEFAULT_RANGE_VALUE, getRangeInputDataForm, getR
|
|
|
122
123
|
export { default as InputWithPopupConfirmation } from './components/inputs/react-hook-form/select-inputs/input-with-popup-confirmation';
|
|
123
124
|
export { default as MuiSelectInput } from './components/inputs/react-hook-form/select-inputs/mui-select-input';
|
|
124
125
|
export { default as CountriesInput } from './components/inputs/react-hook-form/select-inputs/countries-input';
|
|
125
|
-
export { getSystemLanguage, getComputedLanguage, useLocalizedCountries
|
|
126
|
+
export { getSystemLanguage, getComputedLanguage, useLocalizedCountries } from './hooks/localized-countries-hook';
|
|
126
127
|
export { default as MultipleAutocompleteInput } from './components/inputs/react-hook-form/autocomplete-inputs/multiple-autocomplete-input';
|
|
127
128
|
export { default as CsvUploader } from './components/inputs/react-hook-form/ag-grid-table/csv-uploader/csv-uploader';
|
|
128
129
|
export { default as UniqueNameInput } from './components/inputs/react-hook-form/unique-name-input';
|
|
129
130
|
export { default as UserManagerMock } from './utils/UserManagerMock';
|
|
130
|
-
export { FILTER_EQUIPMENTS, CONTINGENCY_LIST_EQUIPMENTS
|
|
131
|
+
export { FILTER_EQUIPMENTS, CONTINGENCY_LIST_EQUIPMENTS } from './components/filter/utils/filter-form-utils';
|
|
131
132
|
export type { FormEquipment } from './components/filter/utils/filter-form-utils';
|
|
132
133
|
export { getCriteriaBasedFormData, getCriteriaBasedSchema, } from './components/filter/criteria-based/criteria-based-filter-utils';
|
|
133
134
|
export { mergeSx } from './utils/styles';
|
package/dist/index.js
CHANGED
|
@@ -74,74 +74,75 @@ import { default as default53 } from "./hooks/useIntlRef.js";
|
|
|
74
74
|
import { useSnackMessage } from "./hooks/useSnackMessage.js";
|
|
75
75
|
import { default as default54 } from "./hooks/useDebounce.js";
|
|
76
76
|
import { usePrevious } from "./hooks/usePrevious.js";
|
|
77
|
-
import { default as default55 } from "./
|
|
78
|
-
import { default as default56 } from "./components/inputs/
|
|
79
|
-
import { default as default57 } from "./components/inputs/react-hook-form/provider/custom-form-
|
|
80
|
-
import { default as default58 } from "./components/inputs/react-hook-form/
|
|
81
|
-
import { default as default59 } from "./components/inputs/react-hook-form/
|
|
82
|
-
import { default as default60 } from "./components/inputs/react-hook-form/
|
|
83
|
-
import { default as default61 } from "./components/inputs/react-hook-form/
|
|
84
|
-
import { default as default62 } from "./components/inputs/react-hook-form/
|
|
85
|
-
import { default as default63 } from "./components/inputs/react-hook-form/
|
|
86
|
-
import { default as default64 } from "./components/inputs/react-hook-form/numbers/
|
|
87
|
-
import { default as default65 } from "./components/inputs/react-hook-form/
|
|
88
|
-
import { default as default66 } from "./components/inputs/react-hook-form/
|
|
89
|
-
import { default as default67 } from "./components/inputs/react-hook-form/booleans/
|
|
90
|
-
import { default as default68 } from "./components/inputs/react-hook-form/
|
|
91
|
-
import { default as default69 } from "./components/inputs/react-hook-form/error-management/
|
|
92
|
-
import { default as default70 } from "./components/inputs/react-hook-form/error-management/
|
|
93
|
-
import { default as default71 } from "./components/inputs/react-hook-form/
|
|
94
|
-
import { default as default72 } from "./components/inputs/react-hook-form/utils/field-
|
|
95
|
-
import { default as default73 } from "./components/inputs/react-hook-form/utils/
|
|
96
|
-
import { default as default74 } from "./components/inputs/react-hook-form/utils/
|
|
77
|
+
import { default as default55 } from "./hooks/useConfidentialityWarning.js";
|
|
78
|
+
import { default as default56 } from "./components/inputs/select-clearable.js";
|
|
79
|
+
import { default as default57 } from "./components/inputs/react-hook-form/provider/use-custom-form-context.js";
|
|
80
|
+
import { default as default58 } from "./components/inputs/react-hook-form/provider/custom-form-provider.js";
|
|
81
|
+
import { default as default59 } from "./components/inputs/react-hook-form/autocomplete-inputs/autocomplete-input.js";
|
|
82
|
+
import { default as default60 } from "./components/inputs/react-hook-form/text-input.js";
|
|
83
|
+
import { default as default61 } from "./components/inputs/react-hook-form/ExpandingTextField.js";
|
|
84
|
+
import { default as default62 } from "./components/inputs/react-hook-form/radio-input.js";
|
|
85
|
+
import { default as default63 } from "./components/inputs/react-hook-form/slider-input.js";
|
|
86
|
+
import { default as default64 } from "./components/inputs/react-hook-form/numbers/float-input.js";
|
|
87
|
+
import { default as default65 } from "./components/inputs/react-hook-form/numbers/integer-input.js";
|
|
88
|
+
import { default as default66 } from "./components/inputs/react-hook-form/select-inputs/select-input.js";
|
|
89
|
+
import { default as default67 } from "./components/inputs/react-hook-form/booleans/checkbox-input.js";
|
|
90
|
+
import { default as default68 } from "./components/inputs/react-hook-form/booleans/switch-input.js";
|
|
91
|
+
import { default as default69 } from "./components/inputs/react-hook-form/error-management/error-input.js";
|
|
92
|
+
import { default as default70 } from "./components/inputs/react-hook-form/error-management/field-error-alert.js";
|
|
93
|
+
import { default as default71 } from "./components/inputs/react-hook-form/error-management/mid-form-error.js";
|
|
94
|
+
import { default as default72 } from "./components/inputs/react-hook-form/utils/text-field-with-adornment.js";
|
|
95
|
+
import { default as default73 } from "./components/inputs/react-hook-form/utils/field-label.js";
|
|
96
|
+
import { default as default74 } from "./components/inputs/react-hook-form/utils/submit-button.js";
|
|
97
|
+
import { default as default75 } from "./components/inputs/react-hook-form/utils/cancel-button.js";
|
|
97
98
|
import { genHelperError, genHelperPreviousValue, gridItem, identity, isFieldRequired, isFloatNumber, toFloatOrNullValue } from "./components/inputs/react-hook-form/utils/functions.js";
|
|
98
99
|
import { areArrayElementsUnique, isObjectEmpty, keyGenerator } from "./utils/functions.js";
|
|
99
|
-
import { default as
|
|
100
|
-
import { default as
|
|
101
|
-
import { default as
|
|
102
|
-
import { default as
|
|
103
|
-
import { default as
|
|
104
|
-
import { default as
|
|
105
|
-
import { default as
|
|
106
|
-
import { default as
|
|
100
|
+
import { default as default76 } from "./components/inputs/react-hook-form/directory-items-input.js";
|
|
101
|
+
import { default as default77 } from "./components/DirectoryItemSelector/directory-item-selector.js";
|
|
102
|
+
import { default as default78 } from "./components/CustomAGGrid/custom-aggrid.js";
|
|
103
|
+
import { default as default79 } from "./components/inputs/react-hook-form/raw-read-only-input.js";
|
|
104
|
+
import { default as default80 } from "./components/filter/filter-creation-dialog.js";
|
|
105
|
+
import { default as default81 } from "./components/filter/expert/expert-filter-edition-dialog.js";
|
|
106
|
+
import { default as default82 } from "./components/filter/explicit-naming/explicit-naming-filter-edition-dialog.js";
|
|
107
|
+
import { default as default83 } from "./components/filter/criteria-based/criteria-based-filter-edition-dialog.js";
|
|
107
108
|
import { saveCriteriaBasedFilter, saveExpertFilter, saveExplicitNamingFilter } from "./components/filter/utils/filter-api.js";
|
|
108
|
-
import { DEFAULT_RANGE_VALUE, default as
|
|
109
|
-
import { default as
|
|
110
|
-
import { default as
|
|
111
|
-
import { default as
|
|
109
|
+
import { DEFAULT_RANGE_VALUE, default as default84, getRangeInputDataForm, getRangeInputSchema } from "./components/inputs/react-hook-form/range-input.js";
|
|
110
|
+
import { default as default85 } from "./components/inputs/react-hook-form/select-inputs/input-with-popup-confirmation.js";
|
|
111
|
+
import { default as default86 } from "./components/inputs/react-hook-form/select-inputs/mui-select-input.js";
|
|
112
|
+
import { default as default87 } from "./components/inputs/react-hook-form/select-inputs/countries-input.js";
|
|
112
113
|
import { getComputedLanguage, getSystemLanguage, useLocalizedCountries } from "./hooks/localized-countries-hook.js";
|
|
113
|
-
import { default as
|
|
114
|
-
import { default as
|
|
115
|
-
import { default as
|
|
116
|
-
import { default as
|
|
114
|
+
import { default as default88 } from "./components/inputs/react-hook-form/autocomplete-inputs/multiple-autocomplete-input.js";
|
|
115
|
+
import { default as default89 } from "./components/inputs/react-hook-form/ag-grid-table/csv-uploader/csv-uploader.js";
|
|
116
|
+
import { default as default90 } from "./components/inputs/react-hook-form/unique-name-input.js";
|
|
117
|
+
import { default as default91 } from "./utils/UserManagerMock.js";
|
|
117
118
|
import { CONTINGENCY_LIST_EQUIPMENTS, FILTER_EQUIPMENTS } from "./components/filter/utils/filter-form-utils.js";
|
|
118
119
|
import { getCriteriaBasedFormData, getCriteriaBasedSchema } from "./components/filter/criteria-based/criteria-based-filter-utils.js";
|
|
119
120
|
import { setCommonStore } from "./redux/commonStore.js";
|
|
120
121
|
import { backendFetch, backendFetchJson, getRequestParamFromList } from "./services/utils.js";
|
|
121
122
|
import { createFilter, fetchElementsInfos, saveFilter } from "./services/explore.js";
|
|
122
|
-
import { fetchAppsMetadata, fetchEnv, fetchStudyMetadata } from "./services/apps-metadata.js";
|
|
123
|
+
import { fetchAppsMetadata, fetchDefaultCountry, fetchEnv, fetchFavoriteAndDefaultCountries, fetchStudyMetadata } from "./services/apps-metadata.js";
|
|
123
124
|
import { fetchDirectoryContent, fetchDirectoryElementPath, fetchRootFolders } from "./services/directory.js";
|
|
124
125
|
import { exportFilter } from "./services/study.js";
|
|
125
126
|
import * as yup from "yup";
|
|
126
127
|
export {
|
|
127
128
|
default4 as AboutDialog,
|
|
128
129
|
default6 as AuthenticationRouter,
|
|
129
|
-
|
|
130
|
+
default59 as AutocompleteInput,
|
|
130
131
|
Battery,
|
|
131
132
|
default19 as BottomRightButtons,
|
|
132
133
|
BusBar,
|
|
133
134
|
CONTINGENCY_LIST_EQUIPMENTS,
|
|
134
|
-
|
|
135
|
+
default75 as CancelButton,
|
|
135
136
|
default52 as CardErrorBoundary,
|
|
136
137
|
ChangeWays,
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
default67 as CheckboxInput,
|
|
139
|
+
default87 as CountriesInput,
|
|
140
|
+
default83 as CriteriaBasedFilterEditionDialog,
|
|
140
141
|
default17 as CriteriaBasedForm,
|
|
141
|
-
|
|
142
|
-
|
|
142
|
+
default89 as CsvUploader,
|
|
143
|
+
default78 as CustomAGGrid,
|
|
143
144
|
default20 as CustomAgGridTable,
|
|
144
|
-
|
|
145
|
+
default58 as CustomFormProvider,
|
|
145
146
|
default14 as CustomMuiDialog,
|
|
146
147
|
default22 as CustomReactQueryBuilder,
|
|
147
148
|
DARK_THEME,
|
|
@@ -151,8 +152,8 @@ export {
|
|
|
151
152
|
DEFAULT_ROW_HEIGHT,
|
|
152
153
|
DanglingLine,
|
|
153
154
|
default15 as DescriptionModificationDialog,
|
|
154
|
-
|
|
155
|
-
|
|
155
|
+
default77 as DirectoryItemSelector,
|
|
156
|
+
default76 as DirectoryItemsInput,
|
|
156
157
|
EQUIPMENT_TYPE,
|
|
157
158
|
fields as EXPERT_FILTER_FIELDS,
|
|
158
159
|
EXPERT_FILTER_QUERY,
|
|
@@ -161,23 +162,23 @@ export {
|
|
|
161
162
|
ElementType,
|
|
162
163
|
EquipmentItem,
|
|
163
164
|
EquipmentType,
|
|
164
|
-
|
|
165
|
+
default69 as ErrorInput,
|
|
165
166
|
default12 as ExpandableGroup,
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
167
|
+
default61 as ExpandingTextField,
|
|
168
|
+
default81 as ExpertFilterEditionDialog,
|
|
169
|
+
default82 as ExplicitNamingFilterEditionDialog,
|
|
169
170
|
FILTER_EQUIPMENTS,
|
|
170
171
|
default21 as FieldConstants,
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
172
|
+
default70 as FieldErrorAlert,
|
|
173
|
+
default73 as FieldLabel,
|
|
174
|
+
default80 as FilterCreationDialog,
|
|
174
175
|
FlatParameters,
|
|
175
|
-
|
|
176
|
+
default64 as FloatInput,
|
|
176
177
|
GRIDSUITE_DEFAULT_PRECISION,
|
|
177
178
|
Generator,
|
|
178
179
|
Hvdc,
|
|
179
|
-
|
|
180
|
-
|
|
180
|
+
default85 as InputWithPopupConfirmation,
|
|
181
|
+
default65 as IntegerInput,
|
|
181
182
|
KeyedColumnsRowIndexer,
|
|
182
183
|
LANG_ENGLISH,
|
|
183
184
|
LANG_FRENCH,
|
|
@@ -187,35 +188,35 @@ export {
|
|
|
187
188
|
LOGOUT_ERROR,
|
|
188
189
|
Line,
|
|
189
190
|
Load,
|
|
190
|
-
|
|
191
|
+
default71 as MidFormError,
|
|
191
192
|
default16 as ModifyElementSelection,
|
|
192
|
-
|
|
193
|
+
default86 as MuiSelectInput,
|
|
193
194
|
default7 as MuiVirtualizedTable,
|
|
194
|
-
|
|
195
|
+
default88 as MultipleAutocompleteInput,
|
|
195
196
|
default13 as MultipleSelectionDialog,
|
|
196
197
|
OverflowableText,
|
|
197
198
|
default18 as PopupConfirmationDialog,
|
|
198
199
|
RESET_AUTHENTICATION_ROUTER_ERROR,
|
|
199
200
|
ROW_DRAGGING_SELECTION_COLUMN_DEF,
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
201
|
+
default62 as RadioInput,
|
|
202
|
+
default84 as RangeInput,
|
|
203
|
+
default79 as RawReadOnlyInput,
|
|
203
204
|
default8 as ReportViewer,
|
|
204
205
|
default9 as ReportViewerDialog,
|
|
205
206
|
SHOW_AUTH_INFO_LOGIN,
|
|
206
207
|
SIGNIN_CALLBACK_ERROR,
|
|
207
208
|
SVC,
|
|
208
|
-
|
|
209
|
-
|
|
209
|
+
default56 as SelectClearable,
|
|
210
|
+
default66 as SelectInput,
|
|
210
211
|
ShuntCompensator,
|
|
211
|
-
|
|
212
|
+
default63 as SliderInput,
|
|
212
213
|
default5 as SnackbarProvider,
|
|
213
|
-
|
|
214
|
+
default74 as SubmitButton,
|
|
214
215
|
Substation,
|
|
215
|
-
|
|
216
|
+
default68 as SwitchInput,
|
|
216
217
|
default10 as TagRenderer,
|
|
217
|
-
|
|
218
|
-
|
|
218
|
+
default72 as TextFieldWithAdornment,
|
|
219
|
+
default60 as TextInput,
|
|
219
220
|
ThreeWindingTransfo,
|
|
220
221
|
default3 as TopBar,
|
|
221
222
|
default2 as TreeViewFinder,
|
|
@@ -223,8 +224,8 @@ export {
|
|
|
223
224
|
UNAUTHORIZED_USER_INFO,
|
|
224
225
|
USER,
|
|
225
226
|
USER_VALIDATION_ERROR,
|
|
226
|
-
|
|
227
|
-
|
|
227
|
+
default90 as UniqueNameInput,
|
|
228
|
+
default91 as UserManagerMock,
|
|
228
229
|
VSC,
|
|
229
230
|
VoltageLevel,
|
|
230
231
|
areArrayElementsUnique,
|
|
@@ -246,10 +247,12 @@ export {
|
|
|
246
247
|
exportExpertRules,
|
|
247
248
|
exportFilter,
|
|
248
249
|
fetchAppsMetadata,
|
|
250
|
+
fetchDefaultCountry,
|
|
249
251
|
fetchDirectoryContent,
|
|
250
252
|
fetchDirectoryElementPath,
|
|
251
253
|
fetchElementsInfos,
|
|
252
254
|
fetchEnv,
|
|
255
|
+
fetchFavoriteAndDefaultCountries,
|
|
253
256
|
fetchRootFolders,
|
|
254
257
|
fetchStudyMetadata,
|
|
255
258
|
default38 as filter_en,
|
|
@@ -310,7 +313,8 @@ export {
|
|
|
310
313
|
default32 as treeview_finder_en,
|
|
311
314
|
default33 as treeview_finder_fr,
|
|
312
315
|
unitToMicroUnit,
|
|
313
|
-
|
|
316
|
+
default55 as useConfidentialityWarning,
|
|
317
|
+
default57 as useCustomFormContext,
|
|
314
318
|
default54 as useDebounce,
|
|
315
319
|
default11 as useElementSearch,
|
|
316
320
|
default53 as useIntlRef,
|
|
@@ -4,6 +4,7 @@ export type Url = string | URL;
|
|
|
4
4
|
export type Env = {
|
|
5
5
|
appsMetadataServerUrl?: Url;
|
|
6
6
|
mapBoxToken?: string;
|
|
7
|
+
confidentialityMessageKey?: string;
|
|
7
8
|
};
|
|
8
9
|
export declare function fetchEnv(): Promise<Env>;
|
|
9
10
|
export type CommonMetadata = {
|
|
@@ -27,6 +28,12 @@ export type StudyMetadata = CommonMetadata & {
|
|
|
27
28
|
mapManualRefresh?: string;
|
|
28
29
|
};
|
|
29
30
|
defaultCountry?: string;
|
|
31
|
+
favoriteCountries?: string[];
|
|
30
32
|
};
|
|
31
33
|
export declare function fetchAppsMetadata(): Promise<CommonMetadata[]>;
|
|
32
34
|
export declare function fetchStudyMetadata(): Promise<StudyMetadata>;
|
|
35
|
+
export declare function fetchFavoriteAndDefaultCountries(): Promise<{
|
|
36
|
+
favoriteCountries: string[];
|
|
37
|
+
defaultCountry?: string;
|
|
38
|
+
}>;
|
|
39
|
+
export declare const fetchDefaultCountry: () => Promise<string | undefined>;
|
|
@@ -19,8 +19,21 @@ async function fetchStudyMetadata() {
|
|
|
19
19
|
return studyMetadata[0];
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
+
async function fetchFavoriteAndDefaultCountries() {
|
|
23
|
+
const { favoriteCountries = [], defaultCountry } = await fetchStudyMetadata();
|
|
24
|
+
return {
|
|
25
|
+
favoriteCountries,
|
|
26
|
+
defaultCountry
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
const fetchDefaultCountry = async () => {
|
|
30
|
+
const studyMetadata = await fetchStudyMetadata();
|
|
31
|
+
return studyMetadata.defaultCountry;
|
|
32
|
+
};
|
|
22
33
|
export {
|
|
23
34
|
fetchAppsMetadata,
|
|
35
|
+
fetchDefaultCountry,
|
|
24
36
|
fetchEnv,
|
|
37
|
+
fetchFavoriteAndDefaultCountries,
|
|
25
38
|
fetchStudyMetadata
|
|
26
39
|
};
|