@gridsuite/commons-ui 0.126.0 → 0.128.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 (99) hide show
  1. package/dist/components/customAGGrid/index.d.ts +1 -0
  2. package/dist/components/customAGGrid/index.js +2 -0
  3. package/dist/components/customAGGrid/separatorCellRenderer.d.ts +11 -0
  4. package/dist/components/customAGGrid/separatorCellRenderer.js +16 -0
  5. package/dist/components/dialogs/elementSaveDialog/ElementSaveDialog.js +5 -5
  6. package/dist/components/dnd-table/dnd-table-add-rows-dialog.js +3 -3
  7. package/dist/components/filter/HeaderFilterForm.js +3 -3
  8. package/dist/components/filter/expert/expertFilterUtils.d.ts +1 -0
  9. package/dist/components/filter/expert/expertFilterUtils.js +9 -1
  10. package/dist/components/filter/expert/index.js +2 -1
  11. package/dist/components/filter/index.js +2 -1
  12. package/dist/components/index.js +4 -1
  13. package/dist/components/inputs/reactHookForm/DirectoryItemsInput.d.ts +2 -1
  14. package/dist/components/inputs/reactHookForm/DirectoryItemsInput.js +52 -23
  15. package/dist/components/inputs/reactHookForm/text/TextInput.d.ts +3 -1
  16. package/dist/components/inputs/reactHookForm/text/TextInput.js +3 -1
  17. package/dist/components/inputs/reactHookForm/text/UniqueNameInput.d.ts +2 -1
  18. package/dist/components/inputs/reactHookForm/text/UniqueNameInput.js +3 -1
  19. package/dist/components/notifications/NotificationsProvider.js +1 -1
  20. package/dist/components/notifications/contexts/NotificationsContext.d.ts +5 -3
  21. package/dist/components/notifications/hooks/useListenerManager.d.ts +3 -3
  22. package/dist/components/notifications/hooks/useListenerManager.js +2 -2
  23. package/dist/components/parameters/common/ProviderParam.js +3 -3
  24. package/dist/components/parameters/common/limitreductions/limit-reduction-table-cell.js +3 -3
  25. package/dist/components/parameters/common/limitreductions/limit-reductions-table-form.js +3 -3
  26. package/dist/components/parameters/common/limitreductions/limit-reductions-tooltip-column.js +4 -3
  27. package/dist/components/parameters/common/name-element-editor/name-element-editor-utils.js +3 -3
  28. package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table-cell.js +3 -3
  29. package/dist/components/parameters/common/widget/parameter-float.js +3 -3
  30. package/dist/components/parameters/common/widget/parameter-line-slider.js +3 -3
  31. package/dist/components/parameters/loadflow/load-flow-general-parameters.js +3 -3
  32. package/dist/components/parameters/loadflow/load-flow-parameter-field.js +3 -3
  33. package/dist/components/parameters/loadflow/load-flow-parameters-content.js +3 -3
  34. package/dist/components/parameters/loadflow/load-flow-parameters-dialog.js +3 -3
  35. package/dist/components/parameters/loadflow/load-flow-parameters-form.js +3 -3
  36. package/dist/components/parameters/loadflow/load-flow-parameters-header.js +3 -3
  37. package/dist/components/parameters/loadflow/load-flow-parameters-inline.js +3 -3
  38. package/dist/components/parameters/loadflow/load-flow-parameters-utils.js +3 -3
  39. package/dist/components/parameters/loadflow/use-load-flow-parameters-form.js +3 -3
  40. package/dist/components/parameters/network-visualizations/map-parameters.js +3 -3
  41. package/dist/components/parameters/network-visualizations/network-area-diagram-parameters.js +3 -3
  42. package/dist/components/parameters/network-visualizations/network-visualizations-form.js +3 -3
  43. package/dist/components/parameters/network-visualizations/network-visualizations-parameters-dialog.js +3 -3
  44. package/dist/components/parameters/network-visualizations/network-visualizations-parameters-inline.js +3 -3
  45. package/dist/components/parameters/network-visualizations/single-line-diagram-parameters.js +3 -3
  46. package/dist/components/parameters/network-visualizations/use-network-visualizations-parameters-form.js +3 -3
  47. package/dist/components/parameters/security-analysis/security-analysis-parameters-dialog.js +3 -3
  48. package/dist/components/parameters/security-analysis/security-analysis-parameters-form.js +3 -3
  49. package/dist/components/parameters/security-analysis/security-analysis-parameters-inline.js +3 -3
  50. package/dist/components/parameters/security-analysis/security-analysis-parameters-selector.js +3 -3
  51. package/dist/components/parameters/security-analysis/security-analysis-violations-hiding.js +3 -3
  52. package/dist/components/parameters/security-analysis/use-security-analysis-parameters-form.js +3 -3
  53. package/dist/components/parameters/sensi/sensitivity-Flow-parameters.js +3 -3
  54. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-dialog.js +3 -3
  55. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-form.js +3 -3
  56. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-inline.js +3 -3
  57. package/dist/components/parameters/sensi/sensitivity-parameters-selector.js +3 -3
  58. package/dist/components/parameters/sensi/sensitivity-table.js +3 -3
  59. package/dist/components/parameters/sensi/use-sensitivity-analysis-parameters.js +3 -3
  60. package/dist/components/parameters/sensi/utils.js +3 -3
  61. package/dist/components/parameters/short-circuit/short-circuit-fields.js +3 -3
  62. package/dist/components/parameters/short-circuit/short-circuit-parameters-dialog.js +3 -3
  63. package/dist/components/parameters/short-circuit/short-circuit-parameters-form.js +3 -3
  64. package/dist/components/parameters/short-circuit/short-circuit-parameters-inline.js +3 -3
  65. package/dist/components/parameters/short-circuit/use-short-circuit-parameters-form.js +3 -3
  66. package/dist/components/parameters/voltage-init/equipment-selection-parameters.js +3 -3
  67. package/dist/components/parameters/voltage-init/general-parameters.js +3 -3
  68. package/dist/components/parameters/voltage-init/use-voltage-init-parameters-form.js +3 -3
  69. package/dist/components/parameters/voltage-init/voltage-init-form-utils.js +3 -3
  70. package/dist/components/parameters/voltage-init/voltage-init-parameters-dialog.js +3 -3
  71. package/dist/components/parameters/voltage-init/voltage-init-parameters-form.js +3 -3
  72. package/dist/components/parameters/voltage-init/voltage-init-parameters-inline.js +3 -3
  73. package/dist/components/parameters/voltage-init/voltage-limits-parameters.js +3 -3
  74. package/dist/components/treeViewFinder/TreeViewFinder.d.ts +3 -0
  75. package/dist/hooks/use-parameters-backend.d.ts +1 -1
  76. package/dist/hooks/use-parameters-backend.js +4 -2
  77. package/dist/hooks/use-unique-name-validation.d.ts +2 -1
  78. package/dist/hooks/use-unique-name-validation.js +16 -8
  79. package/dist/index.js +8 -1
  80. package/dist/translations/en/filterEn.d.ts +1 -0
  81. package/dist/translations/en/filterEn.js +2 -1
  82. package/dist/translations/en/index.d.ts +1 -0
  83. package/dist/translations/en/index.js +3 -1
  84. package/dist/translations/en/parameters.d.ts +2 -0
  85. package/dist/translations/en/parameters.js +3 -1
  86. package/dist/translations/en/use-unique-name-validation-en.d.ts +12 -0
  87. package/dist/translations/en/use-unique-name-validation-en.js +9 -0
  88. package/dist/translations/fr/filterFr.d.ts +1 -0
  89. package/dist/translations/fr/filterFr.js +2 -1
  90. package/dist/translations/fr/index.d.ts +1 -0
  91. package/dist/translations/fr/index.js +3 -1
  92. package/dist/translations/fr/parameters.d.ts +2 -0
  93. package/dist/translations/fr/parameters.js +4 -2
  94. package/dist/translations/fr/use-unique-name-validation-fr.d.ts +12 -0
  95. package/dist/translations/fr/use-unique-name-validation-fr.js +9 -0
  96. package/dist/utils/constants/fieldConstants.d.ts +2 -0
  97. package/dist/utils/constants/fieldConstants.js +2 -0
  98. package/dist/utils/types/equipmentType.d.ts +2 -1
  99. package/package.json +1 -1
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Copyright (c) 2025, RTE (http://www.rte-france.com)
3
+ * This Source Code Form is subject to the terms of the Mozilla Public
4
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
5
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
+ */
7
+ export declare const useUniqueNameValidationEn: {
8
+ 'use-unique-name-validation/nameAlreadyUsed': string;
9
+ 'use-unique-name-validation/nameValidityCheckErrorMsg': string;
10
+ 'use-unique-name-validation/cantSubmitWhileValidating': string;
11
+ 'use-unique-name-validation/nameEmpty': string;
12
+ };
@@ -0,0 +1,9 @@
1
+ const useUniqueNameValidationEn = {
2
+ "use-unique-name-validation/nameAlreadyUsed": "This name is already used",
3
+ "use-unique-name-validation/nameValidityCheckErrorMsg": "Error while checking name validity",
4
+ "use-unique-name-validation/cantSubmitWhileValidating": "Impossible to submit the form while validating a field",
5
+ "use-unique-name-validation/nameEmpty": "The name is empty"
6
+ };
7
+ export {
8
+ useUniqueNameValidationEn
9
+ };
@@ -56,4 +56,5 @@ export declare const filterFr: {
56
56
  nameAlreadyUsed: string;
57
57
  nameValidityCheckErrorMsg: string;
58
58
  cantSubmitWhileValidating: string;
59
+ elementNotFound: string;
59
60
  };
@@ -49,7 +49,8 @@ const filterFr = {
49
49
  EnergySourceText: "Source d'énergie",
50
50
  nameAlreadyUsed: "Ce nom est déjà utilisé",
51
51
  nameValidityCheckErrorMsg: "Erreur lors de la vérification de la validité du nom",
52
- cantSubmitWhileValidating: "Impossible de soumettre le formulaire durant la validation d'un champ"
52
+ cantSubmitWhileValidating: "Impossible de soumettre le formulaire durant la validation d'un champ",
53
+ elementNotFound: "Élément inexistant"
53
54
  };
54
55
  export {
55
56
  filterFr
@@ -28,3 +28,4 @@ export * from './external/exportParamsFr';
28
28
  export * from './external/importParamsFr';
29
29
  export * from './componentsFr';
30
30
  export * from './parameters';
31
+ export * from './use-unique-name-validation-fr';
@@ -22,6 +22,7 @@ import { exportParamsFr } from "./external/exportParamsFr.js";
22
22
  import { importParamsFr } from "./external/importParamsFr.js";
23
23
  import { componentsFr } from "./componentsFr.js";
24
24
  import { parametersFr } from "./parameters.js";
25
+ import { useUniqueNameValidationFr } from "./use-unique-name-validation-fr.js";
25
26
  export {
26
27
  cardErrorBoundaryFr,
27
28
  commonButtonFr,
@@ -46,5 +47,6 @@ export {
46
47
  reportViewerFr,
47
48
  tableFr,
48
49
  topBarFr,
49
- treeviewFinderFr
50
+ treeviewFinderFr,
51
+ useUniqueNameValidationFr
50
52
  };
@@ -60,6 +60,8 @@ export declare const parametersFr: {
60
60
  LimitDurationInterval: string;
61
61
  voltageRange: string;
62
62
  VoltageRangeInterval: string;
63
+ leftOpenBracket: string;
64
+ rightOpenBracket: string;
63
65
  Provider: string;
64
66
  LimitReduction: string;
65
67
  Default: string;
@@ -51,9 +51,11 @@ const parametersFr = {
51
51
  IST: "IST",
52
52
  LimitVoltageInterval: "Entre IT{lowBound} et IT{highBound}",
53
53
  LimitVoltageAfterIST: "Entre IST et IT{highBound}",
54
- LimitDurationInterval: "Tempo {lowerBoundClosed}{lowBound}, {highBound}{higherBoundClosed}",
54
+ LimitDurationInterval: "Tempo {lowerBoundClosed}{lowBound}; {highBound}{higherBoundClosed}",
55
55
  voltageRange: "Niveau de tension",
56
- VoltageRangeInterval: "Plage de tension ]{lowBound} kV,{highBound} kV]",
56
+ VoltageRangeInterval: "Plage de tension ]{lowBound} kV; {highBound} kV]",
57
+ leftOpenBracket: "]",
58
+ rightOpenBracket: "[",
57
59
  Provider: "Simulateur",
58
60
  LimitReduction: "Abattement des seuils",
59
61
  Default: "Défaut",
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Copyright (c) 2025, RTE (http://www.rte-france.com)
3
+ * This Source Code Form is subject to the terms of the Mozilla Public
4
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
5
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
+ */
7
+ export declare const useUniqueNameValidationFr: {
8
+ 'use-unique-name-validation/nameAlreadyUsed': string;
9
+ 'use-unique-name-validation/nameValidityCheckErrorMsg': string;
10
+ 'use-unique-name-validation/cantSubmitWhileValidating': string;
11
+ 'use-unique-name-validation/nameEmpty': string;
12
+ };
@@ -0,0 +1,9 @@
1
+ const useUniqueNameValidationFr = {
2
+ "use-unique-name-validation/nameAlreadyUsed": "Ce nom est déjà utilisé",
3
+ "use-unique-name-validation/nameValidityCheckErrorMsg": "Erreur lors de la vérification de la validité du nom",
4
+ "use-unique-name-validation/cantSubmitWhileValidating": "Impossible de soumettre le formulaire durant la validation d'un champ",
5
+ "use-unique-name-validation/nameEmpty": "Le nom est vide"
6
+ };
7
+ export {
8
+ useUniqueNameValidationFr
9
+ };
@@ -26,6 +26,7 @@ export declare enum FieldConstants {
26
26
  EQUIPMENT_TABLE = "equipmentTable",
27
27
  EQUIPMENT_TYPE = "equipmentType",
28
28
  FILTER_TYPE = "filterType",
29
+ FILTERS = "filters",
29
30
  FOLDER_ID = "folderId",
30
31
  FOLDER_NAME = "folderName",
31
32
  FORMATTED_CASE_PARAMETERS = "formattedCaseParameters",
@@ -36,6 +37,7 @@ export declare enum FieldConstants {
36
37
  NOMINAL_VOLTAGE_3 = "nominalVoltage3",
37
38
  NOMINAL_VOLTAGE = "nominalVoltage",
38
39
  OPERATION_TYPE = "type",
40
+ TYPE = "type",
39
41
  PROPERTY_NAME = "propertyName",
40
42
  PROPERTY_OPERATOR = "propertyOperator",
41
43
  PROPERTY = "PROPERTY",
@@ -20,6 +20,7 @@ var FieldConstants = /* @__PURE__ */ ((FieldConstants2) => {
20
20
  FieldConstants2["EQUIPMENT_TABLE"] = "equipmentTable";
21
21
  FieldConstants2["EQUIPMENT_TYPE"] = "equipmentType";
22
22
  FieldConstants2["FILTER_TYPE"] = "filterType";
23
+ FieldConstants2["FILTERS"] = "filters";
23
24
  FieldConstants2["FOLDER_ID"] = "folderId";
24
25
  FieldConstants2["FOLDER_NAME"] = "folderName";
25
26
  FieldConstants2["FORMATTED_CASE_PARAMETERS"] = "formattedCaseParameters";
@@ -30,6 +31,7 @@ var FieldConstants = /* @__PURE__ */ ((FieldConstants2) => {
30
31
  FieldConstants2["NOMINAL_VOLTAGE_3"] = "nominalVoltage3";
31
32
  FieldConstants2["NOMINAL_VOLTAGE"] = "nominalVoltage";
32
33
  FieldConstants2["OPERATION_TYPE"] = "type";
34
+ FieldConstants2["TYPE"] = "type";
33
35
  FieldConstants2["PROPERTY_NAME"] = "propertyName";
34
36
  FieldConstants2["PROPERTY_OPERATOR"] = "propertyOperator";
35
37
  FieldConstants2["PROPERTY"] = "PROPERTY";
@@ -37,7 +37,8 @@ export declare const equipmentStyles: {
37
37
  /**
38
38
  * The order of the equipments in this list is important, as many UI follow it directly.
39
39
  * When EquipmentType is used for an interface this order must be maintained.
40
- * @deprecated move to a specialized subtype as this one is used everywhere and cause problems
40
+ * Should be moved to a specialized subtype as this one is used everywhere and cause problems
41
+ * Will be deprecated soon.
41
42
  */
42
43
  export declare enum EquipmentType {
43
44
  SUBSTATION = "SUBSTATION",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.126.0",
3
+ "version": "0.128.0",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "author": "gridsuite team",
6
6
  "homepage": "https://github.com/gridsuite",