@gridsuite/commons-ui 0.200.0 → 0.202.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.
@@ -6,9 +6,10 @@
6
6
  */
7
7
  export interface PopupConfirmationDialogProps {
8
8
  message: string;
9
+ isTranslationNeeded?: boolean;
9
10
  validateButtonLabel?: string;
10
11
  openConfirmationPopup: boolean;
11
12
  setOpenConfirmationPopup: (value: boolean) => void;
12
13
  handlePopupConfirmation: () => void;
13
14
  }
14
- export declare function PopupConfirmationDialog({ message, validateButtonLabel, openConfirmationPopup, setOpenConfirmationPopup, handlePopupConfirmation, }: PopupConfirmationDialogProps): import("react/jsx-runtime").JSX.Element;
15
+ export declare function PopupConfirmationDialog({ message, isTranslationNeeded, validateButtonLabel, openConfirmationPopup, setOpenConfirmationPopup, handlePopupConfirmation, }: PopupConfirmationDialogProps): import("react/jsx-runtime").JSX.Element;
@@ -4,6 +4,7 @@ import { FormattedMessage } from "react-intl";
4
4
  import { CancelButton } from "../../inputs/reactHookForm/utils/CancelButton.js";
5
5
  function PopupConfirmationDialog({
6
6
  message,
7
+ isTranslationNeeded = true,
7
8
  validateButtonLabel,
8
9
  openConfirmationPopup,
9
10
  setOpenConfirmationPopup,
@@ -11,7 +12,7 @@ function PopupConfirmationDialog({
11
12
  }) {
12
13
  return /* @__PURE__ */ jsxs(Dialog, { open: openConfirmationPopup, "aria-labelledby": "dialog-title-change-equipment-type", children: [
13
14
  /* @__PURE__ */ jsx(DialogTitle, { id: "dialog-title-change-equipment-type", children: "Confirmation" }),
14
- /* @__PURE__ */ jsx(DialogContent, { children: /* @__PURE__ */ jsx(DialogContentText, { children: message && /* @__PURE__ */ jsx(FormattedMessage, { id: message }) }) }),
15
+ /* @__PURE__ */ jsx(DialogContent, { children: /* @__PURE__ */ jsx(DialogContentText, { children: message && (isTranslationNeeded ? /* @__PURE__ */ jsx(FormattedMessage, { id: message }) : message) }) }),
15
16
  /* @__PURE__ */ jsxs(DialogActions, { children: [
16
17
  /* @__PURE__ */ jsx(CancelButton, { onClick: () => setOpenConfirmationPopup(false) }),
17
18
  /* @__PURE__ */ jsx(Button, { onClick: handlePopupConfirmation, variant: "outlined", children: /* @__PURE__ */ jsx(FormattedMessage, { id: validateButtonLabel ?? "validate" }) })
@@ -63,7 +63,7 @@ function ShortCircuitIccClusterTableCell({
63
63
  size: "small",
64
64
  name: `${formName}[${rowIndex}].${column.dataKey}`,
65
65
  label: column.titleId,
66
- options: ["GENERATOR", "HVDC"],
66
+ options: ["GENERATOR"],
67
67
  disabled: inputsDisabled
68
68
  }
69
69
  ),
@@ -81,4 +81,5 @@ export declare const businessErrorsEn: {
81
81
  'diagram.noVoltageLevelFound': string;
82
82
  'dynamicMarginCalculation.providerNotFound': string;
83
83
  'dynamicMarginCalculation.loadFilterNotFound': string;
84
+ 'monitor.server.differentProcessConfigType': string;
84
85
  };
@@ -74,7 +74,8 @@ const businessErrorsEn = {
74
74
  "diagram.noConfiguredPosition": "No configured position found",
75
75
  "diagram.noVoltageLevelFound": "No voltage level found for this network area diagram",
76
76
  "dynamicMarginCalculation.providerNotFound": "Dynamic margin calculation provider not found.",
77
- "dynamicMarginCalculation.loadFilterNotFound": "Some load filters do not exist: {filterUuids}"
77
+ "dynamicMarginCalculation.loadFilterNotFound": "Some load filters do not exist: {filterUuids}",
78
+ "monitor.server.differentProcessConfigType": "Cannot compare 2 different process config types : {processConfigEntity1Type} vs {processConfigEntity2Type}"
78
79
  };
79
80
  export {
80
81
  businessErrorsEn
@@ -81,4 +81,5 @@ export declare const businessErrorsFr: {
81
81
  'diagram.noVoltageLevelFound': string;
82
82
  'dynamicMarginCalculation.providerNotFound': string;
83
83
  'dynamicMarginCalculation.loadFilterNotFound': string;
84
+ 'monitor.server.differentProcessConfigType': string;
84
85
  };
@@ -74,7 +74,8 @@ const businessErrorsFr = {
74
74
  "diagram.noConfiguredPosition": "Aucune position configurée trouvée",
75
75
  "diagram.noVoltageLevelFound": "Aucun poste trouvé pour cette image nodale de zone",
76
76
  "dynamicMarginCalculation.providerNotFound": "Simulateur du calcul de marge dynamique non trouvé.",
77
- "dynamicMarginCalculation.loadFilterNotFound": "Certains filtres de consommations n'existent pas : {filterUuids}"
77
+ "dynamicMarginCalculation.loadFilterNotFound": "Certains filtres de consommations n'existent pas : {filterUuids}",
78
+ "monitor.server.differentProcessConfigType": "Impossible de comparer 2 configurations de processus de type différent : {processConfigEntity1Type} vs {processConfigEntity2Type}"
78
79
  };
79
80
  export {
80
81
  businessErrorsFr
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.200.0",
3
+ "version": "0.202.0",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "author": "gridsuite team",
6
6
  "homepage": "https://github.com/gridsuite",