@gridsuite/commons-ui 0.241.0 → 0.241.1

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.
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { Grid2 } from "@mui/material";
2
+ import { Grid2, LinearProgress } from "@mui/material";
3
3
  import { CustomMuiDialog } from "../../../components/ui/dialogs/customMuiDialog/CustomMuiDialog.js";
4
4
  import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
5
5
  import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
@@ -93,7 +93,7 @@ function LoadFlowParametersEditionDialog({
93
93
  elementType: ElementType.LOADFLOW_PARAMETERS
94
94
  }
95
95
  ) }),
96
- /* @__PURE__ */ jsx(LoadFlowParametersForm, { loadflowMethods })
96
+ loadflowMethods.paramsLoaded ? /* @__PURE__ */ jsx(LoadFlowParametersForm, { loadflowMethods }) : /* @__PURE__ */ jsx(LinearProgress, {})
97
97
  ] })
98
98
  }
99
99
  );
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid2 } from "@mui/material";
2
+ import { Grid2, LinearProgress } from "@mui/material";
3
3
  import { CustomMuiDialog } from "../../../components/ui/dialogs/customMuiDialog/CustomMuiDialog.js";
4
4
  import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
5
5
  import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
@@ -85,7 +85,7 @@ function NetworkVisualizationsParametersEditionDialog({
85
85
  elementType: ElementType.NETWORK_VISUALIZATIONS_PARAMETERS
86
86
  }
87
87
  ) }),
88
- /* @__PURE__ */ jsx(NetworkVisualizationParametersForm, { userProfile, networkVisuMethods })
88
+ networkVisuMethods.paramsLoading ? /* @__PURE__ */ jsx(LinearProgress, {}) : /* @__PURE__ */ jsx(NetworkVisualizationParametersForm, { userProfile, networkVisuMethods })
89
89
  ]
90
90
  }
91
91
  );
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid2 } from "@mui/material";
2
+ import { Grid2, LinearProgress } from "@mui/material";
3
3
  import { CustomMuiDialog } from "../../../components/ui/dialogs/customMuiDialog/CustomMuiDialog.js";
4
4
  import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
5
5
  import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
@@ -84,7 +84,7 @@ function PccMinParametersEditionDialog({
84
84
  elementType: ElementType.PCC_MIN_PARAMETERS
85
85
  }
86
86
  ) }),
87
- /* @__PURE__ */ jsx(PccMinParametersForm, {})
87
+ pccMinMethods.paramsLoading ? /* @__PURE__ */ jsx(LinearProgress, {}) : /* @__PURE__ */ jsx(PccMinParametersForm, {})
88
88
  ]
89
89
  }
90
90
  );
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid2 } from "@mui/material";
2
+ import { Grid2, LinearProgress } from "@mui/material";
3
3
  import "react";
4
4
  import "react-intl";
5
5
  import "../../../utils/conversionUtils.js";
@@ -95,14 +95,14 @@ function SecurityAnalysisParametersDialog({
95
95
  elementType: ElementType.LOADFLOW_PARAMETERS
96
96
  }
97
97
  ) }),
98
- /* @__PURE__ */ jsx(
98
+ securityAnalysisMethods.paramsFormInitialized ? /* @__PURE__ */ jsx(
99
99
  SecurityAnalysisParametersForm,
100
100
  {
101
101
  securityAnalysisMethods,
102
102
  showContingencyCount: false,
103
103
  isDeveloperMode
104
104
  }
105
- )
105
+ ) : /* @__PURE__ */ jsx(LinearProgress, {})
106
106
  ]
107
107
  }
108
108
  );
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid2 } from "@mui/material";
2
+ import { Grid2, LinearProgress } from "@mui/material";
3
3
  import "react";
4
4
  import "react-intl";
5
5
  import "../../../utils/conversionUtils.js";
@@ -100,7 +100,7 @@ function SensitivityAnalysisParametersDialog({
100
100
  elementType: ElementType.SENSITIVITY_PARAMETERS
101
101
  }
102
102
  ) }),
103
- /* @__PURE__ */ jsx(
103
+ sensitivityAnalysisMethods.paramsFormInitialized ? /* @__PURE__ */ jsx(
104
104
  SensitivityAnalysisParametersForm,
105
105
  {
106
106
  sensitivityAnalysisMethods,
@@ -108,7 +108,7 @@ function SensitivityAnalysisParametersDialog({
108
108
  isRootNode,
109
109
  globalBuildStatus
110
110
  }
111
- )
111
+ ) : /* @__PURE__ */ jsx(LinearProgress, {})
112
112
  ]
113
113
  }
114
114
  );
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid2 } from "@mui/material";
2
+ import { Grid2, LinearProgress } from "@mui/material";
3
3
  import { CustomMuiDialog } from "../../../components/ui/dialogs/customMuiDialog/CustomMuiDialog.js";
4
4
  import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
5
5
  import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
@@ -94,7 +94,7 @@ function ShortCircuitParametersEditionDialog({
94
94
  elementType: ElementType.SHORT_CIRCUIT_PARAMETERS
95
95
  }
96
96
  ) }),
97
- /* @__PURE__ */ jsx(ShortCircuitParametersForm, { shortCircuitMethods })
97
+ shortCircuitMethods.paramsLoaded ? /* @__PURE__ */ jsx(ShortCircuitParametersForm, { shortCircuitMethods }) : /* @__PURE__ */ jsx(LinearProgress, {})
98
98
  ]
99
99
  }
100
100
  );
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid2 } from "@mui/material";
2
+ import { Grid2, LinearProgress } from "@mui/material";
3
3
  import { CustomMuiDialog } from "../../../components/ui/dialogs/customMuiDialog/CustomMuiDialog.js";
4
4
  import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
5
5
  import "../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
@@ -84,7 +84,7 @@ function VoltageInitParametersEditionDialog({
84
84
  elementType: ElementType.VOLTAGE_INIT_PARAMETERS
85
85
  }
86
86
  ) }),
87
- /* @__PURE__ */ jsx(VoltageInitParametersForm, { voltageInitMethods })
87
+ voltageInitMethods.paramsLoading ? /* @__PURE__ */ jsx(LinearProgress, {}) : /* @__PURE__ */ jsx(VoltageInitParametersForm, { voltageInitMethods })
88
88
  ]
89
89
  }
90
90
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.241.0",
3
+ "version": "0.241.1",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "author": "gridsuite team",
6
6
  "homepage": "https://github.com/gridsuite",
@@ -1,6 +0,0 @@
1
- /**
2
- * Copyright (c) 2023, 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
- */