@gridsuite/commons-ui 0.246.0 → 0.248.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 (58) hide show
  1. package/dist/components/composite/filter/expert/ExpertFilterForm.js +2 -2
  2. package/dist/components/composite/filter/expert/expertFilterConstants.js +12 -0
  3. package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js +4 -6
  4. package/dist/components/index.js +2 -0
  5. package/dist/components/ui/index.js +2 -0
  6. package/dist/components/ui/reactHookForm/index.js +2 -0
  7. package/dist/components/ui/reactHookForm/selectInputs/InputWithPopupConfirmation.d.ts +1 -1
  8. package/dist/components/ui/reactHookForm/selectInputs/InputWithPopupConfirmation.js +4 -3
  9. package/dist/components/ui/reactHookForm/utils/CancelButton.d.ts +1 -1
  10. package/dist/components/ui/reactHookForm/utils/CancelButton.js +3 -4
  11. package/dist/components/ui/reactHookForm/utils/CloseButton.d.ts +2 -0
  12. package/dist/components/ui/reactHookForm/utils/CloseButton.js +9 -0
  13. package/dist/components/ui/reactHookForm/utils/index.d.ts +1 -0
  14. package/dist/components/ui/reactHookForm/utils/index.js +2 -0
  15. package/dist/features/index.js +2 -1
  16. package/dist/features/network-modifications/common/currentLimits/LimitsPane.js +6 -5
  17. package/dist/features/parameters/common/constants.d.ts +1 -0
  18. package/dist/features/parameters/common/constants.js +2 -0
  19. package/dist/features/parameters/common/index.js +2 -1
  20. package/dist/features/parameters/common/parameter-field.d.ts +2 -1
  21. package/dist/features/parameters/common/parameter-field.js +25 -6
  22. package/dist/features/parameters/index.js +2 -1
  23. package/dist/features/parameters/loadflow/load-flow-advanced-parameters.d.ts +5 -0
  24. package/dist/features/parameters/loadflow/load-flow-advanced-parameters.js +111 -0
  25. package/dist/features/parameters/loadflow/load-flow-general-parameters.d.ts +7 -6
  26. package/dist/features/parameters/loadflow/load-flow-general-parameters.js +8 -93
  27. package/dist/features/parameters/loadflow/load-flow-parameters-content.d.ts +1 -1
  28. package/dist/features/parameters/loadflow/load-flow-parameters-content.js +6 -2
  29. package/dist/features/parameters/loadflow/load-flow-parameters-form.js +2 -1
  30. package/dist/features/parameters/loadflow/load-flow-parameters-header.d.ts +2 -1
  31. package/dist/features/parameters/loadflow/load-flow-parameters-header.js +21 -1
  32. package/dist/features/parameters/loadflow/load-flow-parameters-type.d.ts +2 -1
  33. package/dist/features/parameters/loadflow/load-flow-parameters-utils.d.ts +22 -8
  34. package/dist/features/parameters/loadflow/load-flow-parameters-utils.js +39 -5
  35. package/dist/features/parameters/loadflow/load-flow-provider-specific-parameters.d.ts +7 -0
  36. package/dist/features/parameters/loadflow/load-flow-provider-specific-parameters.js +47 -0
  37. package/dist/features/parameters/loadflow/use-load-flow-parameters-form.js +28 -6
  38. package/dist/features/parameters/security-analysis/security-analysis-parameters-selector.js +1 -0
  39. package/dist/features/process-configs/security-analysis/update-sa-process-config.js +1 -0
  40. package/dist/features/topBar/AboutDialog.js +3 -2
  41. package/dist/features/topBar/UserInformationDialog.js +2 -2
  42. package/dist/features/topBar/UserSettingsDialog.js +3 -2
  43. package/dist/index.js +4 -1
  44. package/dist/translations/en/commonButtonEn.d.ts +1 -0
  45. package/dist/translations/en/commonButtonEn.js +1 -0
  46. package/dist/translations/en/parameters.d.ts +3 -2
  47. package/dist/translations/en/parameters.js +4 -3
  48. package/dist/translations/en/topBarEn.d.ts +0 -1
  49. package/dist/translations/en/topBarEn.js +1 -2
  50. package/dist/translations/fr/commonButtonFr.d.ts +1 -0
  51. package/dist/translations/fr/commonButtonFr.js +1 -0
  52. package/dist/translations/fr/parameters.d.ts +3 -2
  53. package/dist/translations/fr/parameters.js +4 -3
  54. package/dist/translations/fr/topBarFr.d.ts +0 -1
  55. package/dist/translations/fr/topBarFr.js +1 -2
  56. package/dist/utils/types/equipmentType.js +7 -0
  57. package/dist/utils/types/parameters.type.d.ts +1 -0
  58. package/package.json +1 -1
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";
@@ -178,7 +179,7 @@ import { TopBar } from "./features/topBar/TopBar.js";
178
179
  import { ParameterLayout } from "./features/parameters/common/parameter-layout/parameter-layout.js";
179
180
  import { ParameterLayoutProvider, useParameterLayoutContext } from "./features/parameters/common/parameter-layout/parameter-layout-provider.js";
180
181
  import { formatComputingTypeLabel, isValidComputingType } from "./features/parameters/common/computing-type.js";
181
- 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";
182
183
  import { LineSeparator } from "./features/parameters/common/line-separator.js";
183
184
  import { LabelledButton, SwitchWithLabel, TabPanel } from "./features/parameters/common/parameters.js";
184
185
  import { CreateParameterDialog } from "./features/parameters/common/parameters-creation-dialog.js";
@@ -503,6 +504,7 @@ import { processConfigFr } from "./translations/fr/processConfigFr.js";
503
504
  export {
504
505
  ACCURACY,
505
506
  ACTIVE,
507
+ ADVANCED_PARAMETERS,
506
508
  ALL_EQUIPMENTS,
507
509
  AMPERE,
508
510
  APPLICABILITY,
@@ -586,6 +588,7 @@ export {
586
588
  CheckboxInput,
587
589
  CheckboxNullableInput,
588
590
  ChipItemsInput,
591
+ CloseButton,
589
592
  ColumnTypes,
590
593
  CombinatorSelector,
591
594
  CombinatorType,
@@ -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",
@@ -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",
@@ -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.246.0",
3
+ "version": "0.248.0",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "author": "gridsuite team",
6
6
  "homepage": "https://github.com/gridsuite",