@gridsuite/commons-ui 0.245.0 → 0.247.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.
Files changed (65) hide show
  1. package/dist/components/composite/agGridTable/BottomTableButtons.js +8 -23
  2. package/dist/components/composite/agGridTable/agGridTable-utils.d.ts +0 -1
  3. package/dist/components/composite/filter/expert/expertFilterConstants.js +12 -0
  4. package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js +75 -64
  5. package/dist/components/index.js +4 -0
  6. package/dist/components/ui/csvDownloader/csv-download-button.d.ts +11 -0
  7. package/dist/components/ui/csvDownloader/csv-download-button.js +28 -0
  8. package/dist/components/ui/csvDownloader/export-csv-button.d.ts +3 -2
  9. package/dist/components/ui/csvDownloader/export-csv-button.js +2 -1
  10. package/dist/components/ui/csvDownloader/index.d.ts +1 -0
  11. package/dist/components/ui/csvDownloader/index.js +2 -0
  12. package/dist/components/ui/csvPicker/csv-picker.js +10 -24
  13. package/dist/components/ui/index.js +4 -0
  14. package/dist/components/ui/reactHookForm/index.js +2 -0
  15. package/dist/components/ui/reactHookForm/utils/CancelButton.d.ts +1 -1
  16. package/dist/components/ui/reactHookForm/utils/CancelButton.js +3 -4
  17. package/dist/components/ui/reactHookForm/utils/CloseButton.d.ts +2 -0
  18. package/dist/components/ui/reactHookForm/utils/CloseButton.js +9 -0
  19. package/dist/components/ui/reactHookForm/utils/index.d.ts +1 -0
  20. package/dist/components/ui/reactHookForm/utils/index.js +2 -0
  21. package/dist/features/index.js +2 -1
  22. package/dist/features/parameters/common/constants.d.ts +1 -0
  23. package/dist/features/parameters/common/constants.js +2 -0
  24. package/dist/features/parameters/common/index.js +2 -1
  25. package/dist/features/parameters/common/parameter-field.d.ts +2 -1
  26. package/dist/features/parameters/common/parameter-field.js +25 -6
  27. package/dist/features/parameters/index.js +2 -1
  28. package/dist/features/parameters/loadflow/load-flow-advanced-parameters.d.ts +5 -0
  29. package/dist/features/parameters/loadflow/load-flow-advanced-parameters.js +111 -0
  30. package/dist/features/parameters/loadflow/load-flow-general-parameters.d.ts +7 -6
  31. package/dist/features/parameters/loadflow/load-flow-general-parameters.js +8 -93
  32. package/dist/features/parameters/loadflow/load-flow-parameters-content.d.ts +1 -1
  33. package/dist/features/parameters/loadflow/load-flow-parameters-content.js +6 -2
  34. package/dist/features/parameters/loadflow/load-flow-parameters-form.js +2 -1
  35. package/dist/features/parameters/loadflow/load-flow-parameters-header.d.ts +2 -1
  36. package/dist/features/parameters/loadflow/load-flow-parameters-header.js +21 -1
  37. package/dist/features/parameters/loadflow/load-flow-parameters-type.d.ts +2 -1
  38. package/dist/features/parameters/loadflow/load-flow-parameters-utils.d.ts +22 -8
  39. package/dist/features/parameters/loadflow/load-flow-parameters-utils.js +39 -5
  40. package/dist/features/parameters/loadflow/load-flow-provider-specific-parameters.d.ts +7 -0
  41. package/dist/features/parameters/loadflow/load-flow-provider-specific-parameters.js +47 -0
  42. package/dist/features/parameters/loadflow/use-load-flow-parameters-form.js +28 -6
  43. package/dist/features/parameters/security-analysis/security-analysis-parameters-selector.js +1 -0
  44. package/dist/features/process-configs/security-analysis/update-sa-process-config.js +1 -0
  45. package/dist/features/topBar/AboutDialog.js +3 -2
  46. package/dist/features/topBar/UserInformationDialog.js +2 -2
  47. package/dist/features/topBar/UserSettingsDialog.js +3 -2
  48. package/dist/index.js +6 -1
  49. package/dist/translations/en/commonButtonEn.d.ts +1 -0
  50. package/dist/translations/en/commonButtonEn.js +1 -0
  51. package/dist/translations/en/csvEn.js +3 -3
  52. package/dist/translations/en/parameters.d.ts +3 -2
  53. package/dist/translations/en/parameters.js +4 -3
  54. package/dist/translations/en/topBarEn.d.ts +0 -1
  55. package/dist/translations/en/topBarEn.js +1 -2
  56. package/dist/translations/fr/commonButtonFr.d.ts +1 -0
  57. package/dist/translations/fr/commonButtonFr.js +1 -0
  58. package/dist/translations/fr/csvFr.js +3 -3
  59. package/dist/translations/fr/parameters.d.ts +3 -2
  60. package/dist/translations/fr/parameters.js +4 -3
  61. package/dist/translations/fr/topBarFr.d.ts +0 -1
  62. package/dist/translations/fr/topBarFr.js +1 -2
  63. package/dist/utils/types/equipmentType.js +7 -0
  64. package/dist/utils/types/parameters.type.d.ts +1 -0
  65. package/package.json +1 -1
@@ -0,0 +1,47 @@
1
+ import { jsx, Fragment } from "react/jsx-runtime";
2
+ import { memo, createElement } from "react";
3
+ import ParameterField from "../common/parameter-field.js";
4
+ import "@mui/material";
5
+ import "@mui/icons-material";
6
+ import "react-intl";
7
+ import "../../../components/ui/overflowableText/OverflowableText.js";
8
+ import "../../../utils/conversionUtils.js";
9
+ import "../../../utils/types/equipmentType.js";
10
+ import "react-hook-form";
11
+ import "localized-countries";
12
+ import "localized-countries/data/fr";
13
+ import "localized-countries/data/en";
14
+ import "notistack";
15
+ import "../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
16
+ import "yup";
17
+ import "../../../components/ui/treeViewFinder/TreeViewFinder.js";
18
+ import "../../../components/ui/reactHookForm/numbers/RangeInput.js";
19
+ import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
20
+ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
21
+ import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
22
+ import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
23
+ import "@material-symbols/svg-400/outlined/add_notes.svg?react";
24
+ import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
25
+ import "../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
26
+ import "../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
27
+ import "@hello-pangea/dnd";
28
+ import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
29
+ import "../../../components/ui/snackbarProvider/SnackbarProvider.js";
30
+ import "mui-nested-menu";
31
+ import "react-resizable-panels";
32
+ import "react-papaparse";
33
+ import "../common/parameter-layout/parameter-layout-provider.js";
34
+ import { SPECIFIC_PARAMETERS } from "../common/constants.js";
35
+ import "../common/widget/parameter-line-slider.js";
36
+ import "../common/limitreductions/columns-definitions.js";
37
+ import "../common/contingency-table/contingency-table.js";
38
+ import "../common/contingency-table/columns-definitions.js";
39
+ import "@hookform/resolvers/yup";
40
+ import "../../../components/composite/filter/HeaderFilterForm.js";
41
+ function LoadFlowProviderSpecificParameters({ specificParameters }) {
42
+ return /* @__PURE__ */ jsx(Fragment, { children: specificParameters?.map((item) => /* @__PURE__ */ createElement(ParameterField, { id: SPECIFIC_PARAMETERS, ...item, key: item.name })) });
43
+ }
44
+ const LoadFlowProviderSpecificParameters$1 = memo(LoadFlowProviderSpecificParameters);
45
+ export {
46
+ LoadFlowProviderSpecificParameters$1 as default
47
+ };
@@ -2,7 +2,7 @@ import { useForm } from "react-hook-form";
2
2
  import { yupResolver } from "@hookform/resolvers/yup";
3
3
  import { useState, useRef, useCallback, useMemo, useEffect, useEffectEvent } from "react";
4
4
  import * as yup from "yup";
5
- import { TabValues, getCommonLoadFlowParametersFormSchema, mapLimitReductions, setLimitReductions } from "./load-flow-parameters-utils.js";
5
+ import { TabValues, getAdvancedLoadFlowParametersFormSchema, getCommonLoadFlowParametersFormSchema, splitCommonParameters, mapLimitReductions, setLimitReductions } from "./load-flow-parameters-utils.js";
6
6
  import "react/jsx-runtime";
7
7
  import "@mui/material";
8
8
  import "@mui/icons-material";
@@ -36,7 +36,7 @@ import "mui-nested-menu";
36
36
  import "react-resizable-panels";
37
37
  import "react-papaparse";
38
38
  import "../common/parameter-layout/parameter-layout-provider.js";
39
- import { PROVIDER, SPECIFIC_PARAMETERS, COMMON_PARAMETERS, VERSION_PARAMETER } from "../common/constants.js";
39
+ import { PROVIDER, SPECIFIC_PARAMETERS, ADVANCED_PARAMETERS, COMMON_PARAMETERS, VERSION_PARAMETER } from "../common/constants.js";
40
40
  import "../common/widget/parameter-line-slider.js";
41
41
  import { getLimitReductionsFormSchema, LIMIT_REDUCTIONS_FORM, toFormValuesLimitReductions } from "../common/limitreductions/columns-definitions.js";
42
42
  import "../common/contingency-table/contingency-table.js";
@@ -66,17 +66,25 @@ const useLoadFlowParametersForm = (parametersBackend, isDeveloperMode, parameter
66
66
  [PROVIDER]: yup.string().required(),
67
67
  [PARAM_LIMIT_REDUCTION]: yup.number().nullable(),
68
68
  ...getCommonLoadFlowParametersFormSchema().fields,
69
+ ...getAdvancedLoadFlowParametersFormSchema().fields,
69
70
  ...getLimitReductionsFormSchema(limitReductionNumber).fields,
70
71
  ...getSpecificParametersFormSchema(specificParametersDescriptionForProvider).fields
71
72
  }).concat(getNameElementEditorSchema(name));
72
73
  }, [name, limitReductionNumber, specificParametersDescriptionForProvider]);
74
+ const { advancedParameters, commonParameters } = useMemo(
75
+ () => splitCommonParameters(params?.commonParameters),
76
+ [params?.commonParameters]
77
+ );
73
78
  const formMethods = useForm({
74
79
  defaultValues: {
75
80
  ...getNameElementEditorEmptyFormData(name, description),
76
81
  [PROVIDER]: params?.provider,
77
82
  [PARAM_LIMIT_REDUCTION]: null,
78
83
  [COMMON_PARAMETERS]: {
79
- ...params?.commonParameters
84
+ ...commonParameters
85
+ },
86
+ [ADVANCED_PARAMETERS]: {
87
+ ...advancedParameters
80
88
  },
81
89
  [SPECIFIC_PARAMETERS]: {
82
90
  ...specificParametersDefaultValues
@@ -122,7 +130,8 @@ const useLoadFlowParametersForm = (parametersBackend, isDeveloperMode, parameter
122
130
  commonParameters: {
123
131
  [VERSION_PARAMETER]: formData[COMMON_PARAMETERS][VERSION_PARAMETER],
124
132
  // PowSyBl requires that "version" appears first
125
- ...formData[COMMON_PARAMETERS]
133
+ ...formData[COMMON_PARAMETERS],
134
+ ...formData[ADVANCED_PARAMETERS]
126
135
  },
127
136
  specificParametersPerProvider: specificParametersDefaultValues ? {
128
137
  [formData.provider]: getAllSpecificParametersValues(
@@ -139,11 +148,17 @@ const useLoadFlowParametersForm = (parametersBackend, isDeveloperMode, parameter
139
148
  (_params) => {
140
149
  const specificParamsListForCurrentProvider = _params.specificParametersPerProvider[_params.provider];
141
150
  const specificParametersForLoadedProvider = specificParamsDescription?.[_params.provider] ?? [];
151
+ const { advancedParameters: advancedParams, commonParameters: commonParams } = splitCommonParameters(
152
+ _params.commonParameters
153
+ );
142
154
  return {
143
155
  [PROVIDER]: _params.provider,
144
156
  [PARAM_LIMIT_REDUCTION]: _params.limitReduction,
145
157
  [COMMON_PARAMETERS]: {
146
- ..._params.commonParameters
158
+ ...commonParams
159
+ },
160
+ [ADVANCED_PARAMETERS]: {
161
+ ...advancedParams
147
162
  },
148
163
  [SPECIFIC_PARAMETERS]: {
149
164
  ...formatSpecificParameters(
@@ -166,12 +181,19 @@ const useLoadFlowParametersForm = (parametersBackend, isDeveloperMode, parameter
166
181
  const onValidationError = useCallback(
167
182
  (errors) => {
168
183
  const tabsInError = [];
184
+ console.log("ERRORS", errors);
169
185
  if (errors?.[LIMIT_REDUCTIONS_FORM] && TabValues.LIMIT_REDUCTIONS !== selectedTab) {
170
186
  tabsInError.push(TabValues.LIMIT_REDUCTIONS);
171
187
  }
172
- if ((errors?.[SPECIFIC_PARAMETERS] || errors?.[COMMON_PARAMETERS] || errors?.[PROVIDER]) && TabValues.GENERAL !== selectedTab) {
188
+ if (errors?.[COMMON_PARAMETERS] && TabValues.GENERAL !== selectedTab) {
173
189
  tabsInError.push(TabValues.GENERAL);
174
190
  }
191
+ if (errors?.[SPECIFIC_PARAMETERS] && TabValues.PROVIDER_SPECIFIC !== selectedTab) {
192
+ tabsInError.push(TabValues.PROVIDER_SPECIFIC);
193
+ }
194
+ if (errors?.[ADVANCED_PARAMETERS] && TabValues.ADVANCED !== selectedTab) {
195
+ tabsInError.push(TabValues.ADVANCED);
196
+ }
175
197
  setTabIndexesWithError(tabsInError);
176
198
  },
177
199
  [selectedTab]
@@ -40,6 +40,7 @@ import "@hookform/resolvers/yup";
40
40
  import "../../../components/composite/filter/HeaderFilterForm.js";
41
41
  import { PARAM_PROVIDER_OPENLOADFLOW } from "../loadflow/constants.js";
42
42
  import "../loadflow/load-flow-parameters-context.js";
43
+ import "../loadflow/load-flow-advanced-parameters.js";
43
44
  import "../loadflow/load-flow-parameters-content.js";
44
45
  import { ViolationsHidingParameters } from "./security-analysis-violations-hiding.js";
45
46
  function SecurityAnalysisParametersSelector({
@@ -42,6 +42,7 @@ import "@hookform/resolvers/yup";
42
42
  import { NameElementEditorForm } from "../../parameters/common/name-element-editor/name-element-editor-form.js";
43
43
  import "../../parameters/network-visualizations/constants.js";
44
44
  import "../../parameters/loadflow/load-flow-parameters-context.js";
45
+ import "../../parameters/loadflow/load-flow-advanced-parameters.js";
45
46
  import "../../parameters/loadflow/load-flow-parameters-content.js";
46
47
  import "../../parameters/short-circuit/short-circuit-parameters-content.js";
47
48
  import "react-dom";
@@ -1,12 +1,13 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
2
  import { useState, useEffect, useCallback } from "react";
3
- import { useTheme, Dialog, DialogTitle, Collapse, Alert, Box, Fade, CircularProgress, Typography, DialogContent, Accordion, AccordionSummary, AccordionDetails, Grid2, DialogActions, Button, useMediaQuery, Zoom, Stack, tooltipClasses } from "@mui/material";
3
+ import { useTheme, Dialog, DialogTitle, Collapse, Alert, Box, Fade, CircularProgress, Typography, DialogContent, Accordion, AccordionSummary, AccordionDetails, Grid2, DialogActions, useMediaQuery, Zoom, Stack, tooltipClasses } from "@mui/material";
4
4
  import { LoadingButton } from "@mui/lab";
5
5
  import { Refresh, Gavel, ExpandMore, Apps, QuestionMark, DnsOutlined, WidgetsOutlined } from "@mui/icons-material";
6
6
  import { FormattedMessage } from "react-intl";
7
7
  import { CustomTooltip } from "../../components/ui/tooltip/CustomTooltip.js";
8
8
  import { LogoText } from "./GridLogo.js";
9
9
  import { mergeSx } from "../../utils/styles.js";
10
+ import { CloseButton } from "../../components/ui/reactHookForm/utils/CloseButton.js";
10
11
  const styles = {
11
12
  general: {
12
13
  ".MuiAccordion-root": {
@@ -336,7 +337,7 @@ function AboutDialog({
336
337
  ) }) })
337
338
  ] })
338
339
  ] }) }),
339
- /* @__PURE__ */ jsx(DialogActions, { children: /* @__PURE__ */ jsx(Button, { onClick: handleClose, autoFocus: true, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "close" }) }) })
340
+ /* @__PURE__ */ jsx(DialogActions, { children: /* @__PURE__ */ jsx(CloseButton, { color: "primary", onClick: handleClose, autoFocus: true }) })
340
341
  ]
341
342
  }
342
343
  );
@@ -2,8 +2,8 @@ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { Dialog, DialogTitle, DialogContent, Grid2, Typography, Box, DialogActions } from "@mui/material";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  import { useState, useEffect, Fragment } from "react";
5
- import { CancelButton } from "../../components/ui/reactHookForm/utils/CancelButton.js";
6
5
  import { fetchUserDetails } from "../../services/userAdmin.js";
6
+ import { CloseButton } from "../../components/ui/reactHookForm/utils/CloseButton.js";
7
7
  const styles = {
8
8
  DialogTitle: { fontSize: "1.5rem" },
9
9
  DialogContent: { marginTop: "10px" },
@@ -92,7 +92,7 @@ function UserInformationDialog({ openDialog, userProfile, onClose }) {
92
92
  ] })
93
93
  ] })
94
94
  ] }),
95
- /* @__PURE__ */ jsx(DialogActions, { children: /* @__PURE__ */ jsx(CancelButton, { color: "primary", onClick: onClose }) })
95
+ /* @__PURE__ */ jsx(DialogActions, { children: /* @__PURE__ */ jsx(CloseButton, { color: "primary", onClick: onClose, autoFocus: true }) })
96
96
  ] });
97
97
  }
98
98
  export {
@@ -1,7 +1,8 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useCallback } from "react";
3
3
  import { FormattedMessage } from "react-intl";
4
- import { Dialog, DialogTitle, DialogContent, Box, Switch, Alert, DialogActions, Button } from "@mui/material";
4
+ import { Dialog, DialogTitle, DialogContent, Box, Switch, Alert, DialogActions } from "@mui/material";
5
+ import { CloseButton } from "../../components/ui/reactHookForm/utils/CloseButton.js";
5
6
  const styles = {
6
7
  parameterName: (theme) => ({
7
8
  fontWeight: "bold",
@@ -43,7 +44,7 @@ function UserSettingsDialog({ openDialog, onClose, developerMode, onDeveloperMod
43
44
  ] }),
44
45
  developerMode && /* @__PURE__ */ jsx(Alert, { severity: "warning", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-settings-dialog/warning-developer-mode" }) })
45
46
  ] }),
46
- /* @__PURE__ */ jsx(DialogActions, { children: /* @__PURE__ */ jsx(Button, { onClick: handleClose, variant: "outlined", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "user-settings-dialog/close" }) }) })
47
+ /* @__PURE__ */ jsx(DialogActions, { children: /* @__PURE__ */ jsx(CloseButton, { color: "primary", onClick: handleClose, autoFocus: true }) })
47
48
  ] });
48
49
  }
49
50
  export {
package/dist/index.js CHANGED
@@ -37,6 +37,7 @@ import { TextInput } from "./components/ui/reactHookForm/text/TextInput.js";
37
37
  import { UniqueNameInput } from "./components/ui/reactHookForm/text/UniqueNameInput.js";
38
38
  import { DescriptionInput } from "./components/ui/reactHookForm/text/DescriptionInput.js";
39
39
  import { CancelButton } from "./components/ui/reactHookForm/utils/CancelButton.js";
40
+ import { CloseButton } from "./components/ui/reactHookForm/utils/CloseButton.js";
40
41
  import { FieldLabel } from "./components/ui/reactHookForm/utils/FieldLabel.js";
41
42
  import { SubmitButton } from "./components/ui/reactHookForm/utils/SubmitButton.js";
42
43
  import { TextFieldWithAdornment } from "./components/ui/reactHookForm/utils/TextFieldWithAdornment.js";
@@ -69,6 +70,7 @@ import { EditNoteIcon } from "./components/ui/icons/EditNoteIcon.js";
69
70
  import { VoltageUnitIcon } from "./components/ui/icons/VoltageUnitIcon.js";
70
71
  import { CustomMenuItem, CustomNestedMenuItem } from "./components/ui/menus/custom-nested-menu.js";
71
72
  import { ResizeHandle } from "./components/ui/resizablePanels/ResizeHandle.js";
73
+ import { CsvDownloadButton } from "./components/ui/csvDownloader/csv-download-button.js";
72
74
  import { CsvExport } from "./components/ui/csvDownloader/csv-export.js";
73
75
  import { ExportCsvButton } from "./components/ui/csvDownloader/export-csv-button.js";
74
76
  import { ManagedExportCsvButton } from "./components/ui/csvDownloader/managed-export-csv-button.js";
@@ -177,7 +179,7 @@ import { TopBar } from "./features/topBar/TopBar.js";
177
179
  import { ParameterLayout } from "./features/parameters/common/parameter-layout/parameter-layout.js";
178
180
  import { ParameterLayoutProvider, useParameterLayoutContext } from "./features/parameters/common/parameter-layout/parameter-layout-provider.js";
179
181
  import { formatComputingTypeLabel, isValidComputingType } from "./features/parameters/common/computing-type.js";
180
- import { COMMON_PARAMETERS, CONTINGENCIES, CONTINGENCY_LISTS, CONTINGENCY_LISTS_INFOS, 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, SPECIFIC_PARAMETERS, VERSION_PARAMETER, VOLTAGE_LEVEL } from "./features/parameters/common/constants.js";
182
+ import { ADVANCED_PARAMETERS, COMMON_PARAMETERS, CONTINGENCIES, CONTINGENCY_LISTS, CONTINGENCY_LISTS_INFOS, 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, SPECIFIC_PARAMETERS, VERSION_PARAMETER, VOLTAGE_LEVEL } from "./features/parameters/common/constants.js";
181
183
  import { LineSeparator } from "./features/parameters/common/line-separator.js";
182
184
  import { LabelledButton, SwitchWithLabel, TabPanel } from "./features/parameters/common/parameters.js";
183
185
  import { CreateParameterDialog } from "./features/parameters/common/parameters-creation-dialog.js";
@@ -502,6 +504,7 @@ import { processConfigFr } from "./translations/fr/processConfigFr.js";
502
504
  export {
503
505
  ACCURACY,
504
506
  ACTIVE,
507
+ ADVANCED_PARAMETERS,
505
508
  ALL_EQUIPMENTS,
506
509
  AMPERE,
507
510
  APPLICABILITY,
@@ -585,6 +588,7 @@ export {
585
588
  CheckboxInput,
586
589
  CheckboxNullableInput,
587
590
  ChipItemsInput,
591
+ CloseButton,
588
592
  ColumnTypes,
589
593
  CombinatorSelector,
590
594
  CombinatorType,
@@ -596,6 +600,7 @@ export {
596
600
  CountrySelectionInput,
597
601
  CountryValueEditor,
598
602
  CreateParameterDialog,
603
+ CsvDownloadButton,
599
604
  CsvExport,
600
605
  CsvPicker,
601
606
  CustomAGGrid,
@@ -6,6 +6,7 @@
6
6
  */
7
7
  export declare const commonButtonEn: {
8
8
  cancel: string;
9
+ close: string;
9
10
  validate: string;
10
11
  add: string;
11
12
  replace: string;
@@ -1,5 +1,6 @@
1
1
  const commonButtonEn = {
2
2
  cancel: "Cancel",
3
+ close: "Close",
3
4
  validate: "Validate",
4
5
  add: "Add",
5
6
  replace: "Replace",
@@ -1,10 +1,10 @@
1
1
  const csvEn = {
2
2
  noDataInCsvFile: "No data found in file ''{filename}''",
3
- wrongCsvHeadersError: "The file ''{filename}'' has the wrong headers. Use Generate CSV template button to get supported CSV format",
3
+ wrongCsvHeadersError: "The file ''{filename}'' has the wrong headers. Use ''Generate template'' button to get supported CSV format",
4
4
  keepCSVDataMessage: "Do you want to replace or add the new data to the current list ?",
5
- GenerateCSV: "Generate CSV template",
5
+ GenerateCSV: "Generate template",
6
6
  DownloadCSV: "Download CSV",
7
- UploadCSV: "Upload CSV",
7
+ UploadCSV: "Import CSV",
8
8
  uploadMessage: " No file selected",
9
9
  tooManyLinesInCsvFile: "The number of lines in file ''{filename}'' must not exceed {value}"
10
10
  };
@@ -15,8 +15,7 @@ export declare const parametersEn: {
15
15
  descLfDcValues: string;
16
16
  resetToDefault: string;
17
17
  resetParamsConfirmation: string;
18
- showAdvancedParameters: string;
19
- showSpecificParameters: string;
18
+ ProviderSpecific: string;
20
19
  save: string;
21
20
  saveParameters: string;
22
21
  'settings.button.chooseSettings': string;
@@ -50,6 +49,7 @@ export declare const parametersEn: {
50
49
  descLfCountries: string;
51
50
  descLfAllCountries: string;
52
51
  descLfCountriesToBalance: string;
52
+ inputLabelLfCountriesToBalance: string;
53
53
  editParameters: string;
54
54
  RealPercentage: string;
55
55
  General: string;
@@ -64,6 +64,7 @@ export declare const parametersEn: {
64
64
  VoltageRangeInterval: string;
65
65
  leftOpenBracket: string;
66
66
  rightOpenBracket: string;
67
+ Advanced: string;
67
68
  Provider: string;
68
69
  LimitReduction: string;
69
70
  Default: string;
@@ -9,8 +9,7 @@ const parametersEn = {
9
9
  descLfDcValues: "DC Values",
10
10
  resetToDefault: "Reset All",
11
11
  resetParamsConfirmation: "Do you really want to reset these parameters ?",
12
- showAdvancedParameters: "Advanced settings",
13
- showSpecificParameters: "Specific settings",
12
+ ProviderSpecific: "Provider specific",
14
13
  save: "Save",
15
14
  saveParameters: "Save parameters",
16
15
  "settings.button.chooseSettings": "Choose parameters",
@@ -43,7 +42,8 @@ const parametersEn = {
43
42
  descLfBalanceTypeConformLoad: "conform load",
44
43
  descLfCountries: "Countries",
45
44
  descLfAllCountries: "All countries",
46
- descLfCountriesToBalance: "Countries participating in balancing",
45
+ descLfCountriesToBalance: "Balancing countries",
46
+ inputLabelLfCountriesToBalance: "Countries participating in balancing",
47
47
  editParameters: "Edit parameters",
48
48
  RealPercentage: "This value must be between 0 and 1",
49
49
  General: "General",
@@ -58,6 +58,7 @@ const parametersEn = {
58
58
  VoltageRangeInterval: "Voltage interval ({lowBound} kV, {highBound} kV]",
59
59
  leftOpenBracket: "(",
60
60
  rightOpenBracket: ")",
61
+ Advanced: "Advanced",
61
62
  Provider: "Provider",
62
63
  LimitReduction: "Limit reduction",
63
64
  Default: "Default",
@@ -55,5 +55,4 @@ export declare const topBarEn: {
55
55
  'user-settings-dialog/title': string;
56
56
  'user-settings-dialog/label-developer-mode': string;
57
57
  'user-settings-dialog/warning-developer-mode': string;
58
- 'user-settings-dialog/close': string;
59
58
  };
@@ -48,8 +48,7 @@ const topBarEn = {
48
48
  "user-information-dialog/number-of-dynamicMargin-per-study": "Number of dynamic margin",
49
49
  "user-settings-dialog/title": "User settings",
50
50
  "user-settings-dialog/label-developer-mode": "Developer mode",
51
- "user-settings-dialog/warning-developer-mode": "Some of the features are not complete, so they may not work as expected. To hide these features, disable developer mode.",
52
- "user-settings-dialog/close": "Close"
51
+ "user-settings-dialog/warning-developer-mode": "Some of the features are not complete, so they may not work as expected. To hide these features, disable developer mode."
53
52
  };
54
53
  export {
55
54
  topBarEn
@@ -6,6 +6,7 @@
6
6
  */
7
7
  export declare const commonButtonFr: {
8
8
  cancel: string;
9
+ close: string;
9
10
  validate: string;
10
11
  add: string;
11
12
  replace: string;
@@ -1,5 +1,6 @@
1
1
  const commonButtonFr = {
2
2
  cancel: "Annuler",
3
+ close: "Fermer",
3
4
  validate: "Valider",
4
5
  add: "Ajouter",
5
6
  replace: "Remplacer",
@@ -1,10 +1,10 @@
1
1
  const csvFr = {
2
2
  noDataInCsvFile: 'Aucune donnée trouvée dans le fichier "{filename}"',
3
- wrongCsvHeadersError: 'Les en-têtes du fichier "{filename}" sont incorrects. Utilisez le bouton Générer le modèle CSV pour obtenir le format CSV pris en charge',
3
+ wrongCsvHeadersError: 'Les en-têtes du fichier "{filename}" sont incorrects. Utilisez le bouton "Générer le modèle" pour obtenir le format CSV pris en charge',
4
4
  keepCSVDataMessage: "Voulez-vous remplacer la liste existante ou y ajouter les nouvelles données ?",
5
- GenerateCSV: "Générer le modèle CSV",
5
+ GenerateCSV: "Générer le modèle",
6
6
  DownloadCSV: "Télécharger en CSV",
7
- UploadCSV: "Charger un CSV",
7
+ UploadCSV: "Importer un CSV",
8
8
  uploadMessage: " Aucun fichier sélectionné",
9
9
  tooManyLinesInCsvFile: 'Le nombre de lignes dans le fichier "{filename}" ne doit pas dépasser {value}'
10
10
  };
@@ -15,8 +15,7 @@ export declare const parametersFr: {
15
15
  descLfDcValues: string;
16
16
  resetToDefault: string;
17
17
  resetParamsConfirmation: string;
18
- showAdvancedParameters: string;
19
- showSpecificParameters: string;
18
+ ProviderSpecific: string;
20
19
  save: string;
21
20
  saveParameters: string;
22
21
  'settings.button.chooseSettings': string;
@@ -50,6 +49,7 @@ export declare const parametersFr: {
50
49
  descLfCountries: string;
51
50
  descLfAllCountries: string;
52
51
  descLfCountriesToBalance: string;
52
+ inputLabelLfCountriesToBalance: string;
53
53
  editParameters: string;
54
54
  RealPercentage: string;
55
55
  General: string;
@@ -64,6 +64,7 @@ export declare const parametersFr: {
64
64
  VoltageRangeInterval: string;
65
65
  leftOpenBracket: string;
66
66
  rightOpenBracket: string;
67
+ Advanced: string;
67
68
  Provider: string;
68
69
  LimitReduction: string;
69
70
  Default: string;
@@ -9,8 +9,7 @@ const parametersFr = {
9
9
  descLfDcValues: "DC",
10
10
  resetToDefault: "Tout réinitialiser ",
11
11
  resetParamsConfirmation: "Souhaitez vous réellement réinitialiser ces paramètres ?",
12
- showAdvancedParameters: "Paramètres avancés",
13
- showSpecificParameters: "Paramètres spécifiques",
12
+ ProviderSpecific: "Spécifique au simulateur",
14
13
  save: "Enregistrer",
15
14
  saveParameters: "Enregistrer des paramètres",
16
15
  "settings.button.chooseSettings": "Sélectionner",
@@ -43,7 +42,8 @@ const parametersFr = {
43
42
  descLfBalanceTypeConformLoad: "part variable de la consommation",
44
43
  descLfCountries: "Pays",
45
44
  descLfAllCountries: "Tous les pays",
46
- descLfCountriesToBalance: "Pays participant à la compensation",
45
+ descLfCountriesToBalance: "Pays réglant",
46
+ inputLabelLfCountriesToBalance: "Pays participant à la compensation",
47
47
  editParameters: "Éditer les paramètres",
48
48
  RealPercentage: "Cette valeur doit être comprise entre 0 et 1",
49
49
  General: "Général",
@@ -58,6 +58,7 @@ const parametersFr = {
58
58
  VoltageRangeInterval: "Plage de tension ]{lowBound} kV; {highBound} kV]",
59
59
  leftOpenBracket: "]",
60
60
  rightOpenBracket: "[",
61
+ Advanced: "Avancés",
61
62
  Provider: "Simulateur",
62
63
  LimitReduction: "Abattement des seuils",
63
64
  Default: "Défaut",
@@ -55,5 +55,4 @@ export declare const topBarFr: {
55
55
  'user-settings-dialog/title': string;
56
56
  'user-settings-dialog/label-developer-mode': string;
57
57
  'user-settings-dialog/warning-developer-mode': string;
58
- 'user-settings-dialog/close': string;
59
58
  };
@@ -48,8 +48,7 @@ const topBarFr = {
48
48
  "user-information-dialog/number-of-dynamicMargin-per-study": "Nombre de calculs de marge dynamiques",
49
49
  "user-settings-dialog/title": "Paramètres utilisateur",
50
50
  "user-settings-dialog/label-developer-mode": "Mode développeur",
51
- "user-settings-dialog/warning-developer-mode": "Certaines fonctionnalités ne sont pas complètes et peuvent donc ne pas fonctionner comme prévu. Pour masquer ces fonctionnalités, désactivez le mode développeur.",
52
- "user-settings-dialog/close": "Fermer"
51
+ "user-settings-dialog/warning-developer-mode": "Certaines fonctionnalités ne sont pas complètes et peuvent donc ne pas fonctionner comme prévu. Pour masquer ces fonctionnalités, désactivez le mode développeur."
53
52
  };
54
53
  export {
55
54
  topBarFr
@@ -343,6 +343,13 @@ const BASE_EQUIPMENTS = {
343
343
  "VOLTAGE_LEVEL"
344
344
  /* VOLTAGE_LEVEL */
345
345
  ],
346
+ [
347
+ "BUSBAR_SECTION"
348
+ /* BUSBAR_SECTION */
349
+ ]: ALL_EQUIPMENTS[
350
+ "BUSBAR_SECTION"
351
+ /* BUSBAR_SECTION */
352
+ ],
346
353
  [
347
354
  "LINE"
348
355
  /* LINE */
@@ -25,6 +25,7 @@ export type SpecificParameterInfos = {
25
25
  categoryKey?: string;
26
26
  description?: string;
27
27
  label?: string;
28
+ inputLabel?: string;
28
29
  };
29
30
  export type SpecificParametersDescription = Record<string, SpecificParameterInfos[]>;
30
31
  export type SpecificParametersValues = Record<string, any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.245.0",
3
+ "version": "0.247.0",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "author": "gridsuite team",
6
6
  "homepage": "https://github.com/gridsuite",