@gridsuite/commons-ui 0.295.0 → 0.297.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 (93) hide show
  1. package/dist/components/composite/agGridTable/BottomTableButtons.js +56 -44
  2. package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-aggrid-comparator-filter.js +32 -23
  3. package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-aggrid-text-filter.js +31 -23
  4. package/dist/components/composite/customAGGrid/custom-aggrid-header.js +67 -43
  5. package/dist/components/composite/elementSearch/elementSearchInput/ElementSearchInput.d.ts +3 -2
  6. package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js +43 -28
  7. package/dist/components/composite/reactQueryBuilder/CustomReactQueryBuilder.js +4 -7
  8. package/dist/components/composite/reactQueryBuilder/FieldSelector.js +5 -3
  9. package/dist/components/composite/reactQueryBuilder/PropertyValueEditor.js +63 -52
  10. package/dist/components/composite/reactQueryBuilder/compositeRuleEditor/GroupValueEditor.js +22 -9
  11. package/dist/components/composite/reactQueryBuilder/compositeRuleEditor/RuleValueEditor.js +59 -24
  12. package/dist/components/ui/csvPicker/csv-picker.js +24 -12
  13. package/dist/components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js +15 -7
  14. package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +82 -39
  15. package/dist/components/ui/dialogs/modifyElementSelection/ModifyElementSelection.js +29 -9
  16. package/dist/components/ui/dialogs/name-element-editor/name-element-editor-form.js +24 -15
  17. package/dist/components/ui/inputs/ActivableChip.js +2 -2
  18. package/dist/components/ui/inputs/SelectClearable.js +4 -3
  19. package/dist/components/ui/reactHookForm/DirectoryItemsInput.js +1 -1
  20. package/dist/components/ui/reactHookForm/OverflowableChip.js +24 -13
  21. package/dist/components/ui/reactHookForm/OverflowableChipWithHelperText.js +9 -4
  22. package/dist/components/ui/reactHookForm/autocompleteInputs/AutocompleteInput.js +11 -5
  23. package/dist/components/ui/reactHookForm/directory-item-input/directory-item-input.js +13 -3
  24. package/dist/components/ui/reactHookForm/expandableInput/DeletableRow.js +3 -1
  25. package/dist/components/ui/reactHookForm/utils/HelperPreviousValue.js +11 -1
  26. package/dist/features/authentication/AuthenticationRouter.js +62 -53
  27. package/dist/features/authentication/Login.js +15 -7
  28. package/dist/features/authentication/Logout.js +9 -1
  29. package/dist/features/cardErrorBoundary/CardErrorBoundary.js +28 -10
  30. package/dist/features/global-filter/ui/global-filter-panel.js +4 -10
  31. package/dist/features/network-modifications/battery/creation/BatteryCreationForm.js +22 -12
  32. package/dist/features/network-modifications/battery/modification/BatteryDialogTabsContent.js +21 -11
  33. package/dist/features/network-modifications/by-filter/deletion/ByFilterDeletionForm.js +35 -25
  34. package/dist/features/network-modifications/common/currentLimits/LimitsPane.js +28 -16
  35. package/dist/features/network-modifications/common/currentLimits/limitsEditor/LimitsEditor.js +16 -4
  36. package/dist/features/network-modifications/common/currentLimits/limitsEditor/LimitsPropertiesSideStack.js +81 -68
  37. package/dist/features/network-modifications/common/measurements/BusbarSectionVoltageMeasurementsForm.js +31 -21
  38. package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.js +32 -21
  39. package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.d.ts +1 -1
  40. package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.js +1 -1
  41. package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.js +20 -9
  42. package/dist/features/network-modifications/generator/creation/GeneratorCreationForm.js +22 -12
  43. package/dist/features/network-modifications/generator/modification/GeneratorDialogTabsContent.js +28 -18
  44. package/dist/features/network-modifications/hvdcLine/vsc/common/converterStation/VscConverterStationPane.js +15 -4
  45. package/dist/features/network-modifications/hvdcLine/vsc/creation/vscHvdcLineCreation.utils.js +2 -2
  46. package/dist/features/network-modifications/hvdcLine/vsc/modification/vscHvdcLineModification.utils.js +7 -4
  47. package/dist/features/network-modifications/static-var-compensator/common/set-points-limits-form.js +70 -40
  48. package/dist/features/network-modifications/static-var-compensator/common/standby-automaton-form.js +35 -6
  49. package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-tabs-content.js +16 -7
  50. package/dist/features/network-modifications/tabular/TabularForm.js +102 -72
  51. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js +20 -10
  52. package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.js +35 -17
  53. package/dist/features/network-modifications/voltageLevel/moveFeederBays/MoveVoltageLevelFeederBaysForm.js +9 -1
  54. package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayPositionCellRender.js +6 -4
  55. package/dist/features/network-modifications/voltageLevel/section/VoltageLevelSectionCreationForm.js +17 -7
  56. package/dist/features/network-modifications/voltageLevel/topology/creation/CreateVoltageLevelTopologyForm.js +23 -13
  57. package/dist/features/network-modifications/voltageLevel/topology/modification/VoltageLevelTopologyModificationForm.js +25 -15
  58. package/dist/features/parameters/common/parameter-field.js +17 -4
  59. package/dist/features/parameters/common/parameter-table-field/parameter-table-field.js +23 -12
  60. package/dist/features/parameters/common/provider-param.js +1 -1
  61. package/dist/features/parameters/common/widget/parameter-float.js +16 -4
  62. package/dist/features/parameters/common/widget/parameter-line-directory-items-input.js +1 -1
  63. package/dist/features/parameters/common/widget/parameter-switch.js +13 -1
  64. package/dist/features/parameters/dynamic-simulation/curve/common/checkbox-select.js +6 -4
  65. package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector-dialog.js +43 -32
  66. package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector.js +47 -25
  67. package/dist/features/parameters/network-visualizations/map-parameters.js +7 -3
  68. package/dist/features/parameters/network-visualizations/network-area-diagram-parameters.js +7 -3
  69. package/dist/features/parameters/network-visualizations/single-line-diagram-parameters.js +7 -3
  70. package/dist/features/parameters/security-analysis/security-analysis-violations-hiding.js +23 -13
  71. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-factor-count.js +2 -2
  72. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.js +12 -1
  73. package/dist/features/parameters/sensi/sensitivity-parameters-fields.js +36 -26
  74. package/dist/features/parameters/short-circuit/short-circuit-general-tab-panel.js +67 -26
  75. package/dist/features/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +15 -4
  76. package/dist/features/parameters/voltage-init/equipment-selection-parameters.js +51 -15
  77. package/dist/features/parameters/voltage-init/general-parameters.js +9 -1
  78. package/dist/features/process-configs/common/FormSubSection.js +2 -2
  79. package/dist/features/process-configs/common/GeneralInformationSection.js +1 -1
  80. package/dist/features/process-configs/common/SpecificInformationSection.js +12 -4
  81. package/dist/features/process-configs/common/process-config-modifications-edition.js +3 -3
  82. package/dist/features/process-configs/form/components/ProcessTypeChangeDialog.js +5 -2
  83. package/dist/features/side-bar/AppSideBarHeader.js +36 -16
  84. package/dist/features/side-bar/footer/AppSideBarFooter.js +46 -38
  85. package/dist/features/side-bar/footer/applications/OtherAppRedirection.js +10 -8
  86. package/dist/features/side-bar/footer/common/SideBarMenuItem.js +9 -1
  87. package/dist/features/side-bar/footer/profile/ProfileInfos.js +15 -6
  88. package/dist/features/side-bar/footer/settings/DarkModeToggle.js +16 -4
  89. package/dist/features/side-bar/footer/settings/SettingsMenu.js +16 -6
  90. package/dist/features/topBar/AboutDialog.js +46 -17
  91. package/dist/features/topBar/TopBar.js +2 -2
  92. package/dist/features/topBar/UserInformationDialog.js +198 -45
  93. package/package.json +16 -11
@@ -33,10 +33,22 @@ function ParameterFloat({
33
33
  labelSize,
34
34
  inputSize
35
35
  }) {
36
- const content = /* @__PURE__ */ jsxs(Grid, { container: true, direction: "row", spacing: 1, paddingTop: 3, sx: { width: "100%" }, children: [
37
- /* @__PURE__ */ jsx(Grid, { size: labelSize, sx: style, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
38
- /* @__PURE__ */ jsx(Grid, { size: inputSize, children: /* @__PURE__ */ jsx(FloatInput, { name, adornment }) })
39
- ] });
36
+ const content = /* @__PURE__ */ jsxs(
37
+ Grid,
38
+ {
39
+ container: true,
40
+ direction: "row",
41
+ spacing: 1,
42
+ sx: {
43
+ paddingTop: 3,
44
+ width: "100%"
45
+ },
46
+ children: [
47
+ /* @__PURE__ */ jsx(Grid, { size: labelSize, sx: style, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
48
+ /* @__PURE__ */ jsx(Grid, { size: inputSize, children: /* @__PURE__ */ jsx(FloatInput, { name, adornment }) })
49
+ ]
50
+ }
51
+ );
40
52
  if (tooltip) {
41
53
  return /* @__PURE__ */ jsx(CustomTooltip, { title: /* @__PURE__ */ jsx(FormattedMessage, { id: tooltip }), children: content });
42
54
  }
@@ -35,7 +35,7 @@ function ParameterLineDirectoryItemsInput({
35
35
  inputGridSize = 5,
36
36
  showPlaceHolder = false
37
37
  }) {
38
- return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, paddingTop: 1, paddingBottom: 1, sx: { width: "100%" }, children: [
38
+ return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, sx: { paddingTop: 1, paddingBottom: 1, alignItems: "center", width: "100%" }, children: [
39
39
  /* @__PURE__ */ jsx(Grid, { size: labelGridSize, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: label }) }),
40
40
  /* @__PURE__ */ jsx(Grid, { size: inputGridSize, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
41
41
  DirectoryItemsInput,
@@ -2,7 +2,19 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { Grid } from "@mui/material";
3
3
  import { SwitchWithLabel } from "../parameters.js";
4
4
  function ParameterSwitch({ label, value, onChange, key }) {
5
- return /* @__PURE__ */ jsx(Grid, { container: true, spacing: 1, paddingTop: 1, justifyContent: "space-between", children: /* @__PURE__ */ jsx(SwitchWithLabel, { value, label, callback: onChange }) }, key);
5
+ return /* @__PURE__ */ jsx(
6
+ Grid,
7
+ {
8
+ container: true,
9
+ spacing: 1,
10
+ sx: {
11
+ paddingTop: 1,
12
+ justifyContent: "space-between"
13
+ },
14
+ children: /* @__PURE__ */ jsx(SwitchWithLabel, { value, label, callback: onChange })
15
+ },
16
+ key
17
+ );
6
18
  }
7
19
  export {
8
20
  ParameterSwitch
@@ -5,10 +5,12 @@ import { useIntl } from "react-intl";
5
5
  const ITEM_HEIGHT = 48;
6
6
  const ITEM_PADDING_TOP = 8;
7
7
  const MenuProps = {
8
- PaperProps: {
9
- style: {
10
- maxHeight: ITEM_HEIGHT * 4.5 + ITEM_PADDING_TOP,
11
- maxWidth: "200"
8
+ slotProps: {
9
+ paper: {
10
+ style: {
11
+ maxHeight: ITEM_HEIGHT * 4.5 + ITEM_PADDING_TOP,
12
+ maxWidth: "200"
13
+ }
12
14
  }
13
15
  }
14
16
  };
@@ -74,42 +74,53 @@ function CurveSelectorDialog({
74
74
  modelsFetcher
75
75
  }
76
76
  ) }),
77
- /* @__PURE__ */ jsx(Grid, { size: 0.5, display: "flex", justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ jsxs(Stack, { children: [
78
- /* @__PURE__ */ jsx(
79
- CustomTooltip,
80
- {
81
- title: intl.formatMessage({
82
- id: "AddRows"
83
- }),
84
- children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(
85
- IconButton,
77
+ /* @__PURE__ */ jsx(
78
+ Grid,
79
+ {
80
+ size: 0.5,
81
+ sx: {
82
+ display: "flex",
83
+ justifyContent: "center",
84
+ alignItems: "center"
85
+ },
86
+ children: /* @__PURE__ */ jsxs(Stack, { children: [
87
+ /* @__PURE__ */ jsx(
88
+ CustomTooltip,
86
89
  {
87
- color: "primary",
88
- onClick: () => handleAddButton(),
89
- disabled: hasSelectedRow,
90
- children: /* @__PURE__ */ jsx(ArrowCircleRight, {})
90
+ title: intl.formatMessage({
91
+ id: "AddRows"
92
+ }),
93
+ children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(
94
+ IconButton,
95
+ {
96
+ color: "primary",
97
+ onClick: () => handleAddButton(),
98
+ disabled: hasSelectedRow,
99
+ children: /* @__PURE__ */ jsx(ArrowCircleRight, {})
100
+ }
101
+ ) })
91
102
  }
92
- ) })
93
- }
94
- ),
95
- /* @__PURE__ */ jsx(
96
- CustomTooltip,
97
- {
98
- title: intl.formatMessage({
99
- id: "DeleteRows"
100
- }),
101
- children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(
102
- IconButton,
103
+ ),
104
+ /* @__PURE__ */ jsx(
105
+ CustomTooltip,
103
106
  {
104
- color: "primary",
105
- onClick: () => handleDeleteButton(),
106
- disabled: hasSelectedRow,
107
- children: /* @__PURE__ */ jsx(ArrowCircleLeft, {})
107
+ title: intl.formatMessage({
108
+ id: "DeleteRows"
109
+ }),
110
+ children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(
111
+ IconButton,
112
+ {
113
+ color: "primary",
114
+ onClick: () => handleDeleteButton(),
115
+ disabled: hasSelectedRow,
116
+ children: /* @__PURE__ */ jsx(ArrowCircleLeft, {})
117
+ }
118
+ ) })
108
119
  }
109
- ) })
110
- }
111
- )
112
- ] }) }),
120
+ )
121
+ ] })
122
+ }
123
+ ),
113
124
  /* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(CurvePreview, { ref: previewRef }) })
114
125
  ]
115
126
  }
@@ -39,31 +39,53 @@ const CurveSelector = forwardRef(
39
39
  []
40
40
  );
41
41
  return /* @__PURE__ */ jsxs(Fragment, { children: [
42
- /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsxs(Stack, { alignItems: "flex-start", justifyContent: "flex-start", spacing: 1, sx: { height: "100%" }, children: [
43
- /* @__PURE__ */ jsx(Typography, { sx: styles.h6, variant: "h6", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "DynamicSimulationCurveEquipmentFilter" }) }),
44
- /* @__PURE__ */ jsx(
45
- EquipmentFilter,
46
- {
47
- ref: equipmentFilterRef,
48
- equipmentType,
49
- onChangeEquipmentType: handleChangeEquipmentType,
50
- voltageLevelsFetcher,
51
- countriesFetcher,
52
- evaluateFilterFetcher
53
- }
54
- )
55
- ] }) }),
56
- /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsxs(Stack, { alignItems: "flex-start", justifyContent: "flex-start", spacing: 1, sx: { height: "100%" }, children: [
57
- /* @__PURE__ */ jsx(Typography, { sx: styles.h6, variant: "h6", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "DynamicSimulationCurveCurveFilter" }) }),
58
- /* @__PURE__ */ jsx(
59
- ModelFilter,
60
- {
61
- ref: modelFilterRef,
62
- equipmentType: getReferencedEquipmentTypeForModel(equipmentType),
63
- modelsFetcher
64
- }
65
- )
66
- ] }) })
42
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsxs(
43
+ Stack,
44
+ {
45
+ spacing: 1,
46
+ sx: {
47
+ alignItems: "flex-start",
48
+ justifyContent: "flex-start",
49
+ height: "100%"
50
+ },
51
+ children: [
52
+ /* @__PURE__ */ jsx(Typography, { sx: styles.h6, variant: "h6", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "DynamicSimulationCurveEquipmentFilter" }) }),
53
+ /* @__PURE__ */ jsx(
54
+ EquipmentFilter,
55
+ {
56
+ ref: equipmentFilterRef,
57
+ equipmentType,
58
+ onChangeEquipmentType: handleChangeEquipmentType,
59
+ voltageLevelsFetcher,
60
+ countriesFetcher,
61
+ evaluateFilterFetcher
62
+ }
63
+ )
64
+ ]
65
+ }
66
+ ) }),
67
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsxs(
68
+ Stack,
69
+ {
70
+ spacing: 1,
71
+ sx: {
72
+ alignItems: "flex-start",
73
+ justifyContent: "flex-start",
74
+ height: "100%"
75
+ },
76
+ children: [
77
+ /* @__PURE__ */ jsx(Typography, { sx: styles.h6, variant: "h6", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "DynamicSimulationCurveCurveFilter" }) }),
78
+ /* @__PURE__ */ jsx(
79
+ ModelFilter,
80
+ {
81
+ ref: modelFilterRef,
82
+ equipmentType: getReferencedEquipmentTypeForModel(equipmentType),
83
+ modelsFetcher
84
+ }
85
+ )
86
+ ]
87
+ }
88
+ ) })
67
89
  ] });
68
90
  }
69
91
  );
@@ -77,9 +77,13 @@ function MapParameters() {
77
77
  {
78
78
  container: true,
79
79
  spacing: 1,
80
- sx: parametersStyles.scrollableGrid,
81
- marginTop: -3,
82
- justifyContent: "space-between",
80
+ sx: [
81
+ {
82
+ marginTop: -3,
83
+ justifyContent: "space-between"
84
+ },
85
+ parametersStyles.scrollableGrid
86
+ ],
83
87
  children: [
84
88
  lineSwitch(PARAM_LINE_FULL_PATH, PARAM_LINE_FULL_PATH),
85
89
  lineSwitch(PARAM_LINE_PARALLEL_PATH, PARAM_LINE_PARALLEL_PATH),
@@ -31,9 +31,13 @@ function NetworkAreaDiagramParameters() {
31
31
  {
32
32
  container: true,
33
33
  spacing: 1,
34
- sx: parametersStyles.scrollableGrid,
35
- marginTop: -3,
36
- justifyContent: "space-between",
34
+ sx: [
35
+ {
36
+ marginTop: -3,
37
+ justifyContent: "space-between"
38
+ },
39
+ parametersStyles.scrollableGrid
40
+ ],
37
41
  children: [
38
42
  /* @__PURE__ */ jsx(Grid, { size: 8, sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: NAD_POSITIONS_GENERATION_MODE_LABEL }) }),
39
43
  /* @__PURE__ */ jsx(Grid, { container: true, size: 4, sx: parametersStyles.controlItem, children: /* @__PURE__ */ jsx(
@@ -69,9 +69,13 @@ function SingleLineDiagramParameters({ componentLibraries }) {
69
69
  {
70
70
  container: true,
71
71
  spacing: 1,
72
- sx: parametersStyles.scrollableGrid,
73
- marginTop: -3,
74
- justifyContent: "space-between",
72
+ sx: [
73
+ {
74
+ marginTop: -3,
75
+ justifyContent: "space-between"
76
+ },
77
+ parametersStyles.scrollableGrid
78
+ ],
75
79
  children: [
76
80
  labelPosition(PARAM_DIAGONAL_LABEL, DIAGONAL_LABEL),
77
81
  labelPosition(PARAM_CENTER_LABEL, CENTER_LABEL),
@@ -105,19 +105,29 @@ const fieldsToShow = [
105
105
  function ViolationsHidingParameters() {
106
106
  const intl = useIntl();
107
107
  return /* @__PURE__ */ jsxs(Fragment, { children: [
108
- /* @__PURE__ */ jsx(Grid, { container: true, spacing: 1, paddingBottom: 1, children: /* @__PURE__ */ jsxs(Grid, { size: 8, sx: parametersStyles.text, children: [
109
- /* @__PURE__ */ jsx(Typography, { children: intl.formatMessage({
110
- id: "securityAnalysis.violationsHiding"
111
- }) }),
112
- /* @__PURE__ */ jsx(
113
- CustomTooltip,
114
- {
115
- sx: parametersStyles.tooltip,
116
- title: intl.formatMessage({ id: "securityAnalysis.toolTip.violationsHiding" }),
117
- children: /* @__PURE__ */ jsx(Info, {})
118
- }
119
- )
120
- ] }) }),
108
+ /* @__PURE__ */ jsx(
109
+ Grid,
110
+ {
111
+ container: true,
112
+ spacing: 1,
113
+ sx: {
114
+ paddingBottom: 1
115
+ },
116
+ children: /* @__PURE__ */ jsxs(Grid, { size: 8, sx: parametersStyles.text, children: [
117
+ /* @__PURE__ */ jsx(Typography, { children: intl.formatMessage({
118
+ id: "securityAnalysis.violationsHiding"
119
+ }) }),
120
+ /* @__PURE__ */ jsx(
121
+ CustomTooltip,
122
+ {
123
+ sx: parametersStyles.tooltip,
124
+ title: intl.formatMessage({ id: "securityAnalysis.toolTip.violationsHiding" }),
125
+ children: /* @__PURE__ */ jsx(Info, {})
126
+ }
127
+ )
128
+ ] })
129
+ }
130
+ ),
121
131
  fieldsToShow?.map((item) => /* @__PURE__ */ jsx(SecurityAnalysisFields, { ...item }, item.label))
122
132
  ] });
123
133
  }
@@ -1,7 +1,7 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { Box, CircularProgress } from "@mui/material";
3
3
  import { FormattedMessage } from "react-intl";
4
- import { ErrorOutline } from "@mui/icons-material";
4
+ import { ErrorOutlined } from "@mui/icons-material";
5
5
  const styles = {
6
6
  circularProgress: (theme) => ({
7
7
  display: "flex",
@@ -48,7 +48,7 @@ function SensitivityAnalysisParametersFactorCount(props) {
48
48
  const displayCount = isOverMillion ? "999999" : count.toString();
49
49
  const suffix = isOverMillion ? "+" : "";
50
50
  return /* @__PURE__ */ jsxs(Box, { sx, children: [
51
- isAlert && /* @__PURE__ */ jsx(ErrorOutline, { sx: styles.errorOutlineIcon }),
51
+ isAlert && /* @__PURE__ */ jsx(ErrorOutlined, { sx: styles.errorOutlineIcon }),
52
52
  /* @__PURE__ */ jsx(FormattedMessage, { id: messageId, values: { count: displayCount, suffix } })
53
53
  ] });
54
54
  }
@@ -49,7 +49,18 @@ function SensitivityAnalysisParametersForm({
49
49
  ),
50
50
  /* @__PURE__ */ jsxs(Stack, { children: [
51
51
  /* @__PURE__ */ jsx(SensitivityAnalysisFields, {}),
52
- /* @__PURE__ */ jsx(Grid, { container: true, size: 12, paddingTop: 1, paddingBottom: 1, children: /* @__PURE__ */ jsx(LineSeparator, {}) }),
52
+ /* @__PURE__ */ jsx(
53
+ Grid,
54
+ {
55
+ container: true,
56
+ size: 12,
57
+ sx: {
58
+ paddingTop: 1,
59
+ paddingBottom: 1
60
+ },
61
+ children: /* @__PURE__ */ jsx(LineSeparator, {})
62
+ }
63
+ ),
53
64
  /* @__PURE__ */ jsx(
54
65
  SensitivityParametersSelector,
55
66
  {
@@ -26,32 +26,42 @@ import "react-resizable-panels";
26
26
  import "react-papaparse";
27
27
  import { parametersStyles } from "../parameters-style.js";
28
28
  function SensitivityAnalysisFields() {
29
- return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, paddingTop: 1, children: [
30
- /* @__PURE__ */ jsx(Grid, { sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "flowSensitivityValue" }) }),
31
- /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, children: [
32
- /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
33
- FloatInput,
34
- {
35
- name: FLOW_FLOW_SENSITIVITY_VALUE_THRESHOLD,
36
- label: "flowFlowSensitivityValueThreshold"
37
- }
38
- ) }),
39
- /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
40
- FloatInput,
41
- {
42
- name: ANGLE_FLOW_SENSITIVITY_VALUE_THRESHOLD,
43
- label: "angleFlowSensitivityValueThreshold"
44
- }
45
- ) }),
46
- /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
47
- FloatInput,
48
- {
49
- name: FLOW_VOLTAGE_SENSITIVITY_VALUE_THRESHOLD,
50
- label: "flowVoltageSensitivityValueThreshold"
51
- }
52
- ) })
53
- ] })
54
- ] });
29
+ return /* @__PURE__ */ jsxs(
30
+ Grid,
31
+ {
32
+ container: true,
33
+ spacing: 1,
34
+ sx: {
35
+ paddingTop: 1
36
+ },
37
+ children: [
38
+ /* @__PURE__ */ jsx(Grid, { sx: parametersStyles.parameterName, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "flowSensitivityValue" }) }),
39
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, children: [
40
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
41
+ FloatInput,
42
+ {
43
+ name: FLOW_FLOW_SENSITIVITY_VALUE_THRESHOLD,
44
+ label: "flowFlowSensitivityValueThreshold"
45
+ }
46
+ ) }),
47
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
48
+ FloatInput,
49
+ {
50
+ name: ANGLE_FLOW_SENSITIVITY_VALUE_THRESHOLD,
51
+ label: "angleFlowSensitivityValueThreshold"
52
+ }
53
+ ) }),
54
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
55
+ FloatInput,
56
+ {
57
+ name: FLOW_VOLTAGE_SENSITIVITY_VALUE_THRESHOLD,
58
+ label: "flowVoltageSensitivityValueThreshold"
59
+ }
60
+ ) })
61
+ ] })
62
+ ]
63
+ }
64
+ );
55
65
  }
56
66
  export {
57
67
  SensitivityAnalysisFields
@@ -114,10 +114,21 @@ const ShortCircuitGeneralTabPanel = forwardRef(
114
114
  const newPredefinedParameters = event.target.value;
115
115
  resetAll(newPredefinedParameters);
116
116
  };
117
- const feederResult = /* @__PURE__ */ jsxs(Grid, { container: true, alignItems: "center", spacing: 2, direction: "row", children: [
118
- /* @__PURE__ */ jsx(Grid, { size: 10, children: /* @__PURE__ */ jsx(FieldLabel, { label: "descWithFeederResult" }) }),
119
- /* @__PURE__ */ jsx(Grid, { size: 2, children: /* @__PURE__ */ jsx(SwitchInput, { name: `${COMMON_PARAMETERS}.${SHORT_CIRCUIT_WITH_FEEDER_RESULT}` }) })
120
- ] });
117
+ const feederResult = /* @__PURE__ */ jsxs(
118
+ Grid,
119
+ {
120
+ container: true,
121
+ spacing: 2,
122
+ direction: "row",
123
+ sx: {
124
+ alignItems: "center"
125
+ },
126
+ children: [
127
+ /* @__PURE__ */ jsx(Grid, { size: 10, children: /* @__PURE__ */ jsx(FieldLabel, { label: "descWithFeederResult" }) }),
128
+ /* @__PURE__ */ jsx(Grid, { size: 2, children: /* @__PURE__ */ jsx(SwitchInput, { name: `${COMMON_PARAMETERS}.${SHORT_CIRCUIT_WITH_FEEDER_RESULT}` }) })
129
+ ]
130
+ }
131
+ );
121
132
  const predefinedParameters = /* @__PURE__ */ jsx(
122
133
  MuiSelectInput,
123
134
  {
@@ -175,28 +186,58 @@ const ShortCircuitGeneralTabPanel = forwardRef(
175
186
  isIccMaxFeaturesDefaultConfiguration,
176
187
  isIccMinFeaturesDefaultConfiguration
177
188
  ]);
178
- return /* @__PURE__ */ jsx(TabPanel, { index: ShortCircuitParametersTabValues.GENERAL, ref, ...othersTabPanelProps, children: /* @__PURE__ */ jsxs(Grid, { container: true, paddingLeft: 2, children: [
179
- /* @__PURE__ */ jsx(Grid, { container: true, paddingTop: 2, size: { xl: 6 }, children: /* @__PURE__ */ jsx(GridItem, { size: 10, children: feederResult }) }),
180
- /* @__PURE__ */ jsx(GridSection, { title: "ShortCircuitPredefinedParameters", heading: 4 }),
181
- /* @__PURE__ */ jsxs(Grid, { size: { xl: 6 }, container: true, spacing: 1, alignItems: "center", children: [
182
- /* @__PURE__ */ jsx(GridItem, { size: 9, children: predefinedParameters }),
183
- /* @__PURE__ */ jsx(GridItem, { size: 2, children: statusToShow })
184
- ] }),
185
- /* @__PURE__ */ jsx(GridSection, { title: "ShortCircuitCharacteristics", heading: 4 }),
186
- /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 5, size: 12, children: [
187
- /* @__PURE__ */ jsxs(Grid, { children: [
188
- /* @__PURE__ */ jsx(GridItem, { children: loads }),
189
- /* @__PURE__ */ jsx(GridItem, { children: shuntCompensators })
190
- ] }),
191
- /* @__PURE__ */ jsxs(Grid, { size: 8, children: [
192
- /* @__PURE__ */ jsx(GridItem, { children: vsc }),
193
- /* @__PURE__ */ jsx(GridItem, { children: neutralPosition })
194
- ] })
195
- ] }),
196
- /* @__PURE__ */ jsx(GridSection, { title: "ShortCircuitVoltageProfileMode", heading: 4 }),
197
- /* @__PURE__ */ jsx(Grid, { container: true, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: initialVoltageProfileModeField }) }),
198
- /* @__PURE__ */ jsx(VoltageTable, { voltageProfileMode: watchInitialVoltageProfileMode })
199
- ] }) });
189
+ return /* @__PURE__ */ jsx(TabPanel, { index: ShortCircuitParametersTabValues.GENERAL, ref, ...othersTabPanelProps, children: /* @__PURE__ */ jsxs(
190
+ Grid,
191
+ {
192
+ container: true,
193
+ sx: {
194
+ paddingLeft: 2
195
+ },
196
+ children: [
197
+ /* @__PURE__ */ jsx(
198
+ Grid,
199
+ {
200
+ container: true,
201
+ size: { xl: 6 },
202
+ sx: {
203
+ paddingTop: 2
204
+ },
205
+ children: /* @__PURE__ */ jsx(GridItem, { size: 10, children: feederResult })
206
+ }
207
+ ),
208
+ /* @__PURE__ */ jsx(GridSection, { title: "ShortCircuitPredefinedParameters", heading: 4 }),
209
+ /* @__PURE__ */ jsxs(
210
+ Grid,
211
+ {
212
+ size: { xl: 6 },
213
+ container: true,
214
+ spacing: 1,
215
+ sx: {
216
+ alignItems: "center"
217
+ },
218
+ children: [
219
+ /* @__PURE__ */ jsx(GridItem, { size: 9, children: predefinedParameters }),
220
+ /* @__PURE__ */ jsx(GridItem, { size: 2, children: statusToShow })
221
+ ]
222
+ }
223
+ ),
224
+ /* @__PURE__ */ jsx(GridSection, { title: "ShortCircuitCharacteristics", heading: 4 }),
225
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 5, size: 12, children: [
226
+ /* @__PURE__ */ jsxs(Grid, { children: [
227
+ /* @__PURE__ */ jsx(GridItem, { children: loads }),
228
+ /* @__PURE__ */ jsx(GridItem, { children: shuntCompensators })
229
+ ] }),
230
+ /* @__PURE__ */ jsxs(Grid, { size: 8, children: [
231
+ /* @__PURE__ */ jsx(GridItem, { children: vsc }),
232
+ /* @__PURE__ */ jsx(GridItem, { children: neutralPosition })
233
+ ] })
234
+ ] }),
235
+ /* @__PURE__ */ jsx(GridSection, { title: "ShortCircuitVoltageProfileMode", heading: 4 }),
236
+ /* @__PURE__ */ jsx(Grid, { container: true, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: initialVoltageProfileModeField }) }),
237
+ /* @__PURE__ */ jsx(VoltageTable, { voltageProfileMode: watchInitialVoltageProfileMode })
238
+ ]
239
+ }
240
+ ) });
200
241
  }
201
242
  );
202
243
  export {
@@ -57,10 +57,21 @@ function createRows() {
57
57
  }
58
58
  const ShortCircuitPowerElectronicsTabPanel = forwardRef(
59
59
  ({ ...othersTabPanelProps }, ref) => {
60
- const modelPowerElectronics = /* @__PURE__ */ jsxs(Grid, { container: true, alignItems: "center", spacing: 2, direction: "row", children: [
61
- /* @__PURE__ */ jsx(Grid, { size: 10, children: /* @__PURE__ */ jsx(FieldLabel, { label: "ShortCircuitModelPowerElectronics" }) }),
62
- /* @__PURE__ */ jsx(Grid, { size: 2, children: /* @__PURE__ */ jsx(SwitchInput, { name: `${SPECIFIC_PARAMETERS}.${SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS}` }) })
63
- ] });
60
+ const modelPowerElectronics = /* @__PURE__ */ jsxs(
61
+ Grid,
62
+ {
63
+ container: true,
64
+ spacing: 2,
65
+ direction: "row",
66
+ sx: {
67
+ alignItems: "center"
68
+ },
69
+ children: [
70
+ /* @__PURE__ */ jsx(Grid, { size: 10, children: /* @__PURE__ */ jsx(FieldLabel, { label: "ShortCircuitModelPowerElectronics" }) }),
71
+ /* @__PURE__ */ jsx(Grid, { size: 2, children: /* @__PURE__ */ jsx(SwitchInput, { name: `${SPECIFIC_PARAMETERS}.${SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS}` }) })
72
+ ]
73
+ }
74
+ );
64
75
  return /* @__PURE__ */ jsxs(TabPanel, { index: ShortCircuitParametersTabValues.POWER_ELECTRONICS, ref, ...othersTabPanelProps, children: [
65
76
  /* @__PURE__ */ jsx(GridSection, { title: "ShortCircuitPowerElectronicsSection", heading: 4 }),
66
77
  /* @__PURE__ */ jsx(Grid, { container: true, size: { xl: 6 }, children: /* @__PURE__ */ jsx(GridItem, { size: 10, children: modelPowerElectronics }) }),