@gridsuite/commons-ui 0.266.0 → 0.268.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 (110) hide show
  1. package/dist/components/composite/grid/grid-section.d.ts +5 -2
  2. package/dist/components/composite/grid/grid-section.js +56 -4
  3. package/dist/components/ui/inputs/checkbox-autocomplete/checkbox-autocomplete.js +2 -1
  4. package/dist/components/ui/reactHookForm/CheckboxNullableInput.js +4 -2
  5. package/dist/components/ui/reactHookForm/autocompleteInputs/MultipleAutocompleteInput.js +3 -2
  6. package/dist/components/ui/reactHookForm/booleans/BooleanInput.d.ts +1 -1
  7. package/dist/components/ui/reactHookForm/booleans/BooleanInput.js +5 -7
  8. package/dist/components/ui/reactHookForm/tableInputs/table-numerical-input.js +4 -2
  9. package/dist/components/ui/reactHookForm/tableInputs/table-text-input.d.ts +1 -1
  10. package/dist/components/ui/reactHookForm/tableInputs/table-text-input.js +2 -3
  11. package/dist/components/ui/reactHookForm/text/ExpandingTextField.js +15 -13
  12. package/dist/components/ui/reactHookForm/text/TextInput.js +4 -2
  13. package/dist/components/ui/reactHookForm/text/UniqueNameInput.js +4 -2
  14. package/dist/components/ui/reactHookForm/utils/TextFieldWithAdornment.js +2 -1
  15. package/dist/features/common/index.d.ts +7 -0
  16. package/dist/features/common/index.js +4 -0
  17. package/dist/features/common/renderTable-ExportCsv.d.ts +18 -0
  18. package/dist/features/common/renderTable-ExportCsv.js +136 -0
  19. package/dist/features/index.d.ts +5 -0
  20. package/dist/features/index.js +50 -2
  21. package/dist/features/network-modifications/common/connectivity/connectivity.type.d.ts +1 -1
  22. package/dist/features/network-modifications/index.d.ts +1 -0
  23. package/dist/features/network-modifications/index.js +40 -1
  24. package/dist/features/network-modifications/static-var-compensator/common/constants.d.ts +20 -0
  25. package/dist/features/network-modifications/static-var-compensator/common/constants.js +9 -0
  26. package/dist/features/network-modifications/static-var-compensator/common/index.d.ts +13 -0
  27. package/dist/features/network-modifications/static-var-compensator/common/index.js +20 -0
  28. package/dist/features/network-modifications/static-var-compensator/common/set-points-limits-form-utils.d.ts +91 -0
  29. package/dist/features/network-modifications/static-var-compensator/common/set-points-limits-form-utils.js +166 -0
  30. package/dist/features/network-modifications/static-var-compensator/common/set-points-limits-form.d.ts +8 -0
  31. package/dist/features/network-modifications/static-var-compensator/common/set-points-limits-form.js +200 -0
  32. package/dist/features/network-modifications/static-var-compensator/common/standby-automaton-form-utils.d.ts +66 -0
  33. package/dist/features/network-modifications/static-var-compensator/common/standby-automaton-form-utils.js +149 -0
  34. package/dist/features/network-modifications/static-var-compensator/common/standby-automaton-form.d.ts +7 -0
  35. package/dist/features/network-modifications/static-var-compensator/common/standby-automaton-form.js +153 -0
  36. package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-dialog-header.d.ts +7 -0
  37. package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-dialog-header.js +72 -0
  38. package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-dialog-tabs.d.ts +7 -0
  39. package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-dialog-tabs.js +44 -0
  40. package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-tab-utils.d.ts +8 -0
  41. package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-tab-utils.js +34 -0
  42. package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-tabs-content.d.ts +9 -0
  43. package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-tabs-content.js +100 -0
  44. package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator.types.d.ts +68 -0
  45. package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator.types.js +1 -0
  46. package/dist/features/network-modifications/static-var-compensator/common/susceptance-area.d.ts +7 -0
  47. package/dist/features/network-modifications/static-var-compensator/common/susceptance-area.js +161 -0
  48. package/dist/features/network-modifications/static-var-compensator/creation/index.d.ts +9 -0
  49. package/dist/features/network-modifications/static-var-compensator/creation/index.js +9 -0
  50. package/dist/features/network-modifications/static-var-compensator/creation/static-var-compensator-creation-form.d.ts +8 -0
  51. package/dist/features/network-modifications/static-var-compensator/creation/static-var-compensator-creation-form.js +105 -0
  52. package/dist/features/network-modifications/static-var-compensator/creation/static-var-compensator-creation-utils.d.ts +114 -0
  53. package/dist/features/network-modifications/static-var-compensator/creation/static-var-compensator-creation-utils.js +189 -0
  54. package/dist/features/network-modifications/static-var-compensator/creation/static-var-compensator-creation.types.d.ts +34 -0
  55. package/dist/features/network-modifications/static-var-compensator/creation/static-var-compensator-creation.types.js +1 -0
  56. package/dist/features/network-modifications/static-var-compensator/index.d.ts +8 -0
  57. package/dist/features/network-modifications/static-var-compensator/index.js +27 -0
  58. package/dist/features/network-modifications/voltageLevel/coupling-device/coupling-device-creation-form.d.ts +8 -0
  59. package/dist/features/network-modifications/voltageLevel/coupling-device/coupling-device-creation-form.js +153 -0
  60. package/dist/features/network-modifications/voltageLevel/coupling-device/coupling-device-creation-utils.d.ts +20 -0
  61. package/dist/features/network-modifications/voltageLevel/coupling-device/coupling-device-creation-utils.js +40 -0
  62. package/dist/features/network-modifications/voltageLevel/coupling-device/coupling-device-creation.types.d.ts +11 -0
  63. package/dist/features/network-modifications/voltageLevel/coupling-device/coupling-device-creation.types.js +1 -0
  64. package/dist/features/network-modifications/voltageLevel/coupling-device/index.d.ts +3 -0
  65. package/dist/features/network-modifications/voltageLevel/coupling-device/index.js +9 -0
  66. package/dist/features/network-modifications/voltageLevel/creation/index.js +1 -1
  67. package/dist/features/network-modifications/voltageLevel/index.d.ts +2 -0
  68. package/dist/features/network-modifications/voltageLevel/index.js +15 -1
  69. package/dist/features/network-modifications/voltageLevel/topology/CreateVoltageLevelTopologyForm.d.ts +6 -0
  70. package/dist/features/network-modifications/voltageLevel/topology/CreateVoltageLevelTopologyForm.js +145 -0
  71. package/dist/features/network-modifications/voltageLevel/topology/index.d.ts +9 -0
  72. package/dist/features/network-modifications/voltageLevel/topology/index.js +9 -0
  73. package/dist/features/network-modifications/voltageLevel/topology/voltageLevelTopologyCreation.types.d.ts +8 -0
  74. package/dist/features/network-modifications/voltageLevel/topology/voltageLevelTopologyCreation.types.js +1 -0
  75. package/dist/features/network-modifications/voltageLevel/topology/voltageLevelTopologyCreation.utils.d.ts +25 -0
  76. package/dist/features/network-modifications/voltageLevel/topology/voltageLevelTopologyCreation.utils.js +48 -0
  77. package/dist/features/results/constants.d.ts +7 -0
  78. package/dist/features/results/constants.js +4 -0
  79. package/dist/features/results/hooks/index.d.ts +7 -0
  80. package/dist/features/results/hooks/index.js +4 -0
  81. package/dist/features/results/hooks/useIntlResultStatusMessages.d.ts +19 -0
  82. package/dist/features/results/hooks/useIntlResultStatusMessages.js +23 -0
  83. package/dist/features/results/loadflow/index.d.ts +8 -0
  84. package/dist/features/results/loadflow/index.js +4 -0
  85. package/dist/features/results/loadflow/limit-violation-result.d.ts +2 -0
  86. package/dist/features/results/loadflow/limit-violation-result.js +134 -0
  87. package/dist/features/results/loadflow/load-flow-result.type.d.ts +29 -0
  88. package/dist/features/results/loadflow/load-flow-result.type.js +1 -0
  89. package/dist/features/results/securityanalysis/index.js +1 -2
  90. package/dist/features/results/securityanalysis/security-analysis-result-nmk.js +2 -1
  91. package/dist/features/results/securityanalysis/utils.d.ts +0 -2
  92. package/dist/features/results/securityanalysis/utils.js +0 -22
  93. package/dist/features/results/utils/index.d.ts +7 -0
  94. package/dist/features/results/utils/index.js +4 -0
  95. package/dist/features/results/utils/no-rows-message.d.ts +2 -0
  96. package/dist/features/results/utils/no-rows-message.js +24 -0
  97. package/dist/hooks/index.d.ts +1 -0
  98. package/dist/hooks/index.js +2 -0
  99. package/dist/hooks/useOpenLoaderShortWait.d.ts +18 -0
  100. package/dist/hooks/useOpenLoaderShortWait.js +19 -0
  101. package/dist/index.js +53 -1
  102. package/dist/translations/en/networkModificationsEn.d.ts +35 -0
  103. package/dist/translations/en/networkModificationsEn.js +38 -1
  104. package/dist/translations/fr/networkModificationsFr.d.ts +35 -0
  105. package/dist/translations/fr/networkModificationsFr.js +38 -1
  106. package/dist/utils/constants/fieldConstants.d.ts +28 -1
  107. package/dist/utils/constants/fieldConstants.js +27 -0
  108. package/dist/utils/index.d.ts +1 -0
  109. package/dist/utils/index.js +2 -0
  110. package/package.json +1 -1
@@ -0,0 +1,153 @@
1
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
+ import { useState, useMemo, useEffect } from "react";
3
+ import { useFormContext, useWatch } from "react-hook-form";
4
+ import { useIntl, FormattedMessage } from "react-intl";
5
+ import { WarningAmber } from "@mui/icons-material";
6
+ import { Grid, FormControlLabel, Box, Tooltip, TextField } from "@mui/material";
7
+ import { VoltageAdornment } from "../../../../utils/constants/adornments.js";
8
+ import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
9
+ import "../../../../utils/conversionUtils.js";
10
+ import "../../../../utils/types/equipmentType.js";
11
+ import "../../../../components/ui/overflowableText/OverflowableText.js";
12
+ import "localized-countries";
13
+ import "localized-countries/data/fr";
14
+ import "localized-countries/data/en";
15
+ import "notistack";
16
+ import "../../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
17
+ import "yup";
18
+ import "../../../../components/ui/treeViewFinder/TreeViewFinder.js";
19
+ import { CheckboxInput } from "../../../../components/ui/reactHookForm/booleans/CheckboxInput.js";
20
+ import { SwitchInput } from "../../../../components/ui/reactHookForm/booleans/SwitchInput.js";
21
+ import { FloatInput } from "../../../../components/ui/reactHookForm/numbers/FloatInput.js";
22
+ import "../../../../components/ui/reactHookForm/numbers/RangeInput.js";
23
+ import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
24
+ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
25
+ import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
26
+ import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
27
+ import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
28
+ import "../../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
29
+ import "../../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
30
+ import "../../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
31
+ import "@hello-pangea/dnd";
32
+ import "../../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
33
+ import "../../../../components/ui/snackbarProvider/SnackbarProvider.js";
34
+ import "mui-nested-menu";
35
+ import "react-resizable-panels";
36
+ import "react-papaparse";
37
+ import "react-dom";
38
+ import "autosuggest-highlight/match";
39
+ import "autosuggest-highlight/parse";
40
+ import "clsx";
41
+ import "../../../../components/composite/filter/FilterCreationDialog.js";
42
+ import "../../../../components/composite/filter/HeaderFilterForm.js";
43
+ import "../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js";
44
+ import "../../../../components/composite/filter/expert/ExpertFilterForm.js";
45
+ import "../../../../components/composite/filter/expert/ExpertFilterEditionDialog.js";
46
+ import "../../../../components/composite/filter/expert/expertFilterConstants.js";
47
+ import "react-querybuilder";
48
+ import "uuid";
49
+ import "../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js";
50
+ import "../../../../components/composite/filter/utils/filterFormUtils.js";
51
+ import "@react-querybuilder/material";
52
+ import "../../../../components/composite/reactQueryBuilder/CustomReactQueryBuilder.js";
53
+ import "../../../../components/composite/reactQueryBuilder/PropertyValueEditor.js";
54
+ import "../../../../components/composite/agGridTable/BottomTableButtons.js";
55
+ import "../../../../components/composite/agGridTable/CustomAgGridTable.js";
56
+ import "ag-grid-community";
57
+ import "../../../../components/composite/customAGGrid/customAggrid.js";
58
+ import "../../../../components/composite/customAGGrid/context/custom-aggrid-context.js";
59
+ import "mathjs";
60
+ import "../../../../components/composite/report/report-viewer/log-table/log-table.js";
61
+ import "react-window";
62
+ import "../../../../components/composite/report/report-treeview/treeview-item.js";
63
+ import "../../../../components/composite/report/report-viewer/context/report-viewer-context.js";
64
+ import { SusceptanceArea } from "./susceptance-area.js";
65
+ import { VOLTAGE_REGULATION_MODES } from "./constants.js";
66
+ function StandbyAutomatonForm() {
67
+ const intl = useIntl();
68
+ const id = FieldConstants.AUTOMATON;
69
+ const { setValue } = useFormContext();
70
+ const [hover, setHover] = useState(false);
71
+ const watchAddStandbyAutomatonProps = useWatch({
72
+ name: `${id}.${FieldConstants.ADD_STAND_BY_AUTOMATON}`
73
+ });
74
+ const watchVoltageMode = useWatch({
75
+ name: `${FieldConstants.SETPOINTS_LIMITS}.${FieldConstants.VOLTAGE_REGULATION_MODE}`
76
+ });
77
+ const watchVoltageModeLabel = useMemo(() => {
78
+ return Object.values(VOLTAGE_REGULATION_MODES).find((voltageMode) => voltageMode.id === watchVoltageMode)?.label;
79
+ }, [watchVoltageMode]);
80
+ const standbyDisabled = useMemo(() => {
81
+ return watchVoltageMode !== VOLTAGE_REGULATION_MODES.VOLTAGE.id;
82
+ }, [watchVoltageMode]);
83
+ useEffect(() => {
84
+ if (standbyDisabled) {
85
+ setValue(`${id}.${FieldConstants.STAND_BY_AUTOMATON}`, false);
86
+ }
87
+ }, [standbyDisabled, setValue, id]);
88
+ const createField = (name, label, adornment, additionalProps) => /* @__PURE__ */ jsx(FloatInput, { name, label, adornment, formProps: additionalProps });
89
+ const fields = {
90
+ modeAutomaton: /* @__PURE__ */ jsx(
91
+ TextField,
92
+ {
93
+ value: watchVoltageModeLabel ? intl.formatMessage({ id: watchVoltageModeLabel }) : "",
94
+ label: intl.formatMessage({ id: "ModeAutomaton" }),
95
+ disabled: true,
96
+ size: "small"
97
+ }
98
+ ),
99
+ standby: /* @__PURE__ */ jsx(Grid, { container: true, onMouseEnter: () => setHover(true), onMouseLeave: () => setHover(false), children: /* @__PURE__ */ jsxs(Grid, { container: true, sx: { width: "100%" }, children: [
100
+ /* @__PURE__ */ jsx(
101
+ FormControlLabel,
102
+ {
103
+ value: "StandbyAutomaton",
104
+ control: /* @__PURE__ */ jsx(
105
+ SwitchInput,
106
+ {
107
+ name: `${id}.${FieldConstants.STAND_BY_AUTOMATON}`,
108
+ formProps: {
109
+ disabled: standbyDisabled
110
+ }
111
+ }
112
+ ),
113
+ label: /* @__PURE__ */ jsx(FormattedMessage, { id: "StandbyAutomaton" }),
114
+ labelPlacement: "start"
115
+ }
116
+ ),
117
+ hover && watchVoltageMode !== VOLTAGE_REGULATION_MODES.VOLTAGE.id && /* @__PURE__ */ jsx(Box, { marginLeft: 2, marginTop: "5px", children: /* @__PURE__ */ jsx(Tooltip, { title: /* @__PURE__ */ jsx(FormattedMessage, { id: "StandbyNotAvailable" }), children: /* @__PURE__ */ jsx(WarningAmber, { color: "warning" }) }) })
118
+ ] }) }),
119
+ lVoltageSetLimit: createField(
120
+ `${id}.${FieldConstants.LOW_VOLTAGE_SET_POINT}`,
121
+ "LowVoltageSetpoint",
122
+ VoltageAdornment
123
+ ),
124
+ hVoltageSetLimit: createField(
125
+ `${id}.${FieldConstants.HIGH_VOLTAGE_SET_POINT}`,
126
+ "HighVoltageSetpoint",
127
+ VoltageAdornment
128
+ ),
129
+ lVoltageThreshold: createField(
130
+ `${id}.${FieldConstants.LOW_VOLTAGE_THRESHOLD}`,
131
+ "LowVoltageThreshold",
132
+ VoltageAdornment
133
+ ),
134
+ hVoltageThreshold: createField(
135
+ `${id}.${FieldConstants.HIGH_VOLTAGE_THRESHOLD}`,
136
+ "HighVoltageThreshold",
137
+ VoltageAdornment
138
+ )
139
+ };
140
+ return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
141
+ /* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(CheckboxInput, { name: `${id}.${FieldConstants.ADD_STAND_BY_AUTOMATON}`, label: "AddAutomaton" }) }) }),
142
+ watchAddStandbyAutomatonProps && /* @__PURE__ */ jsxs(Fragment, { children: [
143
+ /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, padding: 2, children: Object.keys(fields).map((key) => {
144
+ const typedKey = key;
145
+ return /* @__PURE__ */ jsx(Grid, { size: 6, children: fields[typedKey] }, key);
146
+ }) }),
147
+ /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, padding: 2, children: /* @__PURE__ */ jsx(SusceptanceArea, {}) })
148
+ ] })
149
+ ] });
150
+ }
151
+ export {
152
+ StandbyAutomatonForm
153
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Copyright (c) 2026, 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 function StaticVarCompensatorDialogHeader(): import("react").JSX.Element;
@@ -0,0 +1,72 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { Grid } from "@mui/material";
3
+ import "@mui/icons-material";
4
+ import "react-intl";
5
+ import "../../../../components/ui/overflowableText/OverflowableText.js";
6
+ import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
7
+ import "../../../../utils/conversionUtils.js";
8
+ import "../../../../utils/types/equipmentType.js";
9
+ import "react";
10
+ import "react-hook-form";
11
+ import "localized-countries";
12
+ import "localized-countries/data/fr";
13
+ import "localized-countries/data/en";
14
+ import "notistack";
15
+ import "../../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
16
+ import "yup";
17
+ import "../../../../components/ui/treeViewFinder/TreeViewFinder.js";
18
+ import { TextInput } from "../../../../components/ui/reactHookForm/text/TextInput.js";
19
+ import "../../../../components/ui/reactHookForm/numbers/RangeInput.js";
20
+ import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
21
+ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
22
+ import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
23
+ import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
24
+ import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
25
+ import "../../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
26
+ import "../../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
27
+ import "../../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
28
+ import "@hello-pangea/dnd";
29
+ import "../../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
30
+ import "../../../../components/ui/snackbarProvider/SnackbarProvider.js";
31
+ import "mui-nested-menu";
32
+ import "react-resizable-panels";
33
+ import "react-papaparse";
34
+ import "react-dom";
35
+ import "autosuggest-highlight/match";
36
+ import "autosuggest-highlight/parse";
37
+ import "clsx";
38
+ import "../../../../components/composite/filter/FilterCreationDialog.js";
39
+ import "../../../../components/composite/filter/HeaderFilterForm.js";
40
+ import "../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js";
41
+ import "../../../../components/composite/filter/expert/ExpertFilterForm.js";
42
+ import "../../../../components/composite/filter/expert/ExpertFilterEditionDialog.js";
43
+ import "../../../../components/composite/filter/expert/expertFilterConstants.js";
44
+ import "react-querybuilder";
45
+ import "uuid";
46
+ import "../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js";
47
+ import "../../../../components/composite/filter/utils/filterFormUtils.js";
48
+ import { GridItem } from "../../../../components/composite/grid/grid-item.js";
49
+ import "@react-querybuilder/material";
50
+ import "../../../../components/composite/reactQueryBuilder/CustomReactQueryBuilder.js";
51
+ import "../../../../components/composite/reactQueryBuilder/PropertyValueEditor.js";
52
+ import "../../../../components/composite/agGridTable/BottomTableButtons.js";
53
+ import "../../../../components/composite/agGridTable/CustomAgGridTable.js";
54
+ import "ag-grid-community";
55
+ import "../../../../components/composite/customAGGrid/customAggrid.js";
56
+ import "../../../../components/composite/customAGGrid/context/custom-aggrid-context.js";
57
+ import "mathjs";
58
+ import "../../../../components/composite/report/report-viewer/log-table/log-table.js";
59
+ import "react-window";
60
+ import "../../../../components/composite/report/report-treeview/treeview-item.js";
61
+ import "../../../../components/composite/report/report-viewer/context/report-viewer-context.js";
62
+ function StaticVarCompensatorDialogHeader() {
63
+ const staticCompensatorIdField = /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.EQUIPMENT_ID, label: "ID", formProps: { autoFocus: true, variant: "filled" } });
64
+ const staticCompensatorNameField = /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.EQUIPMENT_NAME, label: "Name", formProps: { variant: "filled" } });
65
+ return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, sx: { width: "100%" }, children: [
66
+ /* @__PURE__ */ jsx(GridItem, { size: 4, children: staticCompensatorIdField }),
67
+ /* @__PURE__ */ jsx(GridItem, { size: 4, children: staticCompensatorNameField })
68
+ ] });
69
+ }
70
+ export {
71
+ StaticVarCompensatorDialogHeader
72
+ };
@@ -0,0 +1,7 @@
1
+ import { StaticVarCompensatorDialogTab } from './static-var-compensator-tab-utils';
2
+ export interface StaticVarCompensatorCreationDialogTabsProps {
3
+ tabIndex: number;
4
+ tabIndexesWithError: StaticVarCompensatorDialogTab[];
5
+ setTabIndex: (newValue: StaticVarCompensatorDialogTab) => void;
6
+ }
7
+ export declare function StaticVarCompensatorDialogTabs({ tabIndex, tabIndexesWithError, setTabIndex, }: StaticVarCompensatorCreationDialogTabsProps): import("react").JSX.Element;
@@ -0,0 +1,44 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { Grid, Tabs, Tab } from "@mui/material";
3
+ import { FormattedMessage } from "react-intl";
4
+ import { getTabStyle } from "../../../parameters/parameters-style.js";
5
+ import { StaticVarCompensatorDialogTab } from "./static-var-compensator-tab-utils.js";
6
+ function StaticVarCompensatorDialogTabs({
7
+ tabIndex,
8
+ tabIndexesWithError,
9
+ setTabIndex
10
+ }) {
11
+ return /* @__PURE__ */ jsx(Grid, { container: true, sx: { width: "100%" }, children: /* @__PURE__ */ jsxs(Tabs, { value: tabIndex, onChange: (event, newValue) => setTabIndex(newValue), children: [
12
+ /* @__PURE__ */ jsx(
13
+ Tab,
14
+ {
15
+ label: /* @__PURE__ */ jsx(FormattedMessage, { id: "StaticVarCompensatorConnectivityTab" }),
16
+ sx: getTabStyle(tabIndexesWithError, StaticVarCompensatorDialogTab.CONNECTIVITY_TAB)
17
+ }
18
+ ),
19
+ /* @__PURE__ */ jsx(
20
+ Tab,
21
+ {
22
+ label: /* @__PURE__ */ jsx(FormattedMessage, { id: "StaticVarCompensatorSetPointsAndLimitsTab" }),
23
+ sx: getTabStyle(tabIndexesWithError, StaticVarCompensatorDialogTab.SET_POINTS_LIMITS_TAB)
24
+ }
25
+ ),
26
+ /* @__PURE__ */ jsx(
27
+ Tab,
28
+ {
29
+ label: /* @__PURE__ */ jsx(FormattedMessage, { id: "StaticVarCompensatorAutomatonTab" }),
30
+ sx: getTabStyle(tabIndexesWithError, StaticVarCompensatorDialogTab.AUTOMATON_TAB)
31
+ }
32
+ ),
33
+ /* @__PURE__ */ jsx(
34
+ Tab,
35
+ {
36
+ label: /* @__PURE__ */ jsx(FormattedMessage, { id: "StaticVarCompensatorAdditionalInfosTab" }),
37
+ sx: getTabStyle(tabIndexesWithError, StaticVarCompensatorDialogTab.ADDITIONAL_INFO_TAB)
38
+ }
39
+ )
40
+ ] }) });
41
+ }
42
+ export {
43
+ StaticVarCompensatorDialogTabs
44
+ };
@@ -0,0 +1,8 @@
1
+ import { FieldConstants } from '../../../../utils';
2
+ export declare enum StaticVarCompensatorDialogTab {
3
+ CONNECTIVITY_TAB = 0,
4
+ SET_POINTS_LIMITS_TAB = 1,
5
+ AUTOMATON_TAB = 2,
6
+ ADDITIONAL_INFO_TAB = 3
7
+ }
8
+ export declare const STATIC_VAR_COMPENSATOR_TAB_FIELDS: Readonly<Partial<Record<StaticVarCompensatorDialogTab, FieldConstants[]>>>;
@@ -0,0 +1,34 @@
1
+ import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
2
+ import "../../../../utils/conversionUtils.js";
3
+ import "../../../../utils/types/equipmentType.js";
4
+ import "react/jsx-runtime";
5
+ import "@mui/icons-material";
6
+ var StaticVarCompensatorDialogTab = /* @__PURE__ */ ((StaticVarCompensatorDialogTab2) => {
7
+ StaticVarCompensatorDialogTab2[StaticVarCompensatorDialogTab2["CONNECTIVITY_TAB"] = 0] = "CONNECTIVITY_TAB";
8
+ StaticVarCompensatorDialogTab2[StaticVarCompensatorDialogTab2["SET_POINTS_LIMITS_TAB"] = 1] = "SET_POINTS_LIMITS_TAB";
9
+ StaticVarCompensatorDialogTab2[StaticVarCompensatorDialogTab2["AUTOMATON_TAB"] = 2] = "AUTOMATON_TAB";
10
+ StaticVarCompensatorDialogTab2[StaticVarCompensatorDialogTab2["ADDITIONAL_INFO_TAB"] = 3] = "ADDITIONAL_INFO_TAB";
11
+ return StaticVarCompensatorDialogTab2;
12
+ })(StaticVarCompensatorDialogTab || {});
13
+ const STATIC_VAR_COMPENSATOR_TAB_FIELDS = {
14
+ [
15
+ 0
16
+ /* CONNECTIVITY_TAB */
17
+ ]: [FieldConstants.CONNECTIVITY],
18
+ [
19
+ 1
20
+ /* SET_POINTS_LIMITS_TAB */
21
+ ]: [FieldConstants.SETPOINTS_LIMITS],
22
+ [
23
+ 2
24
+ /* AUTOMATON_TAB */
25
+ ]: [FieldConstants.AUTOMATON],
26
+ [
27
+ 3
28
+ /* ADDITIONAL_INFO_TAB */
29
+ ]: [FieldConstants.ADDITIONAL_PROPERTIES]
30
+ };
31
+ export {
32
+ STATIC_VAR_COMPENSATOR_TAB_FIELDS,
33
+ StaticVarCompensatorDialogTab
34
+ };
@@ -0,0 +1,9 @@
1
+ import { ConnectivityNetworkProps } from '../../common';
2
+ import { EquipmentType, Identifiable } from '../../../../utils';
3
+ export interface StaticVarCompensatorTabsContentProps extends ConnectivityNetworkProps {
4
+ tabIndex: number;
5
+ fetchVoltageLevelEquipments: (voltageLevelId: string) => Promise<(Identifiable & {
6
+ type: EquipmentType;
7
+ })[]>;
8
+ }
9
+ export declare function StaticVarCompensatorTabsContent({ voltageLevelOptions, PositionDiagramPane, fetchBusesOrBusbarSections, tabIndex, fetchVoltageLevelEquipments, }: Readonly<StaticVarCompensatorTabsContentProps>): import("react").JSX.Element;
@@ -0,0 +1,100 @@
1
+ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
+ import { Box, Grid } from "@mui/material";
3
+ import { PropertiesForm } from "../../common/properties/PropertiesForm.js";
4
+ import "react";
5
+ import "react-hook-form";
6
+ import "../../../../utils/conversionUtils.js";
7
+ import "../../../../utils/types/equipmentType.js";
8
+ import "@mui/icons-material";
9
+ import "react-intl";
10
+ import "../../../../components/ui/overflowableText/OverflowableText.js";
11
+ import "localized-countries";
12
+ import "localized-countries/data/fr";
13
+ import "localized-countries/data/en";
14
+ import "notistack";
15
+ import "../../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
16
+ import "yup";
17
+ import "../../../../components/ui/treeViewFinder/TreeViewFinder.js";
18
+ import "../../../../components/ui/reactHookForm/numbers/RangeInput.js";
19
+ import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
20
+ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
21
+ import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
22
+ import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
23
+ import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
24
+ import "../../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
25
+ import "../../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
26
+ import "../../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
27
+ import "@hello-pangea/dnd";
28
+ import "../../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
29
+ import "../../../../components/ui/snackbarProvider/SnackbarProvider.js";
30
+ import "mui-nested-menu";
31
+ import "react-resizable-panels";
32
+ import "react-papaparse";
33
+ import "../../common/properties/propertyUtils.js";
34
+ import "react-dom";
35
+ import "autosuggest-highlight/match";
36
+ import "autosuggest-highlight/parse";
37
+ import "clsx";
38
+ import "../../../../components/composite/filter/FilterCreationDialog.js";
39
+ import "../../../../components/composite/filter/HeaderFilterForm.js";
40
+ import "../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js";
41
+ import "../../../../components/composite/filter/expert/ExpertFilterForm.js";
42
+ import "../../../../components/composite/filter/expert/ExpertFilterEditionDialog.js";
43
+ import "../../../../components/composite/filter/expert/expertFilterConstants.js";
44
+ import "react-querybuilder";
45
+ import "uuid";
46
+ import "../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js";
47
+ import "../../../../components/composite/filter/utils/filterFormUtils.js";
48
+ import { GridItem } from "../../../../components/composite/grid/grid-item.js";
49
+ import "@react-querybuilder/material";
50
+ import "../../../../components/composite/reactQueryBuilder/CustomReactQueryBuilder.js";
51
+ import "../../../../components/composite/reactQueryBuilder/PropertyValueEditor.js";
52
+ import "../../../../components/composite/agGridTable/BottomTableButtons.js";
53
+ import "../../../../components/composite/agGridTable/CustomAgGridTable.js";
54
+ import "ag-grid-community";
55
+ import "../../../../components/composite/customAGGrid/customAggrid.js";
56
+ import "../../../../components/composite/customAGGrid/context/custom-aggrid-context.js";
57
+ import "mathjs";
58
+ import "../../../../components/composite/report/report-viewer/log-table/log-table.js";
59
+ import "react-window";
60
+ import "../../../../components/composite/report/report-treeview/treeview-item.js";
61
+ import "../../../../components/composite/report/report-viewer/context/report-viewer-context.js";
62
+ import { ConnectivityForm } from "../../common/connectivity/ConnectivityForm.js";
63
+ import "../../common/regulatingTerminal/RegulatingTerminalForm.js";
64
+ import "@mui/material/colors";
65
+ import "@mui/x-charts";
66
+ import "../../common/currentLimits/limitsPane.utils.js";
67
+ import { StandbyAutomatonForm } from "./standby-automaton-form.js";
68
+ import { SetPointsLimitsForm } from "./set-points-limits-form.js";
69
+ import { StaticVarCompensatorDialogTab } from "./static-var-compensator-tab-utils.js";
70
+ function StaticVarCompensatorTabsContent({
71
+ voltageLevelOptions = [],
72
+ PositionDiagramPane,
73
+ fetchBusesOrBusbarSections,
74
+ tabIndex,
75
+ fetchVoltageLevelEquipments
76
+ }) {
77
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
78
+ /* @__PURE__ */ jsx(Box, { hidden: tabIndex !== StaticVarCompensatorDialogTab.CONNECTIVITY_TAB, p: 1, children: /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: /* @__PURE__ */ jsx(
79
+ ConnectivityForm,
80
+ {
81
+ previousValues: void 0,
82
+ voltageLevelOptions,
83
+ PositionDiagramPane,
84
+ fetchBusesOrBusbarSections
85
+ }
86
+ ) }) }) }),
87
+ /* @__PURE__ */ jsx(Box, { hidden: tabIndex !== StaticVarCompensatorDialogTab.SET_POINTS_LIMITS_TAB, children: /* @__PURE__ */ jsx(
88
+ SetPointsLimitsForm,
89
+ {
90
+ voltageLevelOptions,
91
+ fetchVoltageLevelEquipments
92
+ }
93
+ ) }),
94
+ /* @__PURE__ */ jsx(Box, { hidden: tabIndex !== StaticVarCompensatorDialogTab.AUTOMATON_TAB, children: /* @__PURE__ */ jsx(StandbyAutomatonForm, {}) }),
95
+ /* @__PURE__ */ jsx(Box, { hidden: tabIndex !== StaticVarCompensatorDialogTab.ADDITIONAL_INFO_TAB, children: /* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "staticCompensator" }) })
96
+ ] });
97
+ }
98
+ export {
99
+ StaticVarCompensatorTabsContent
100
+ };
@@ -0,0 +1,68 @@
1
+ import { UUID } from 'node:crypto';
2
+ import { ConnectablePositionFormInfos } from '../../common';
3
+ import { ModificationType } from '../../../../utils';
4
+ import { Property } from '../../common/properties';
5
+ interface StandbyAutomatonInfos {
6
+ lowVoltageSetpoint: number | null;
7
+ highVoltageSetpoint: number | null;
8
+ lowVoltageThreshold: number | null;
9
+ highVoltageThreshold: number | null;
10
+ b0: number | null;
11
+ q0: number | null;
12
+ standby: boolean;
13
+ }
14
+ export interface StaticVarCompensatorDto {
15
+ type: ModificationType.STATIC_VAR_COMPENSATOR_CREATION;
16
+ uuid?: UUID;
17
+ equipmentId: string;
18
+ equipmentName?: string | null;
19
+ voltageLevelId: string | null;
20
+ busOrBusbarSectionId?: string | null;
21
+ connectionDirection?: string | null;
22
+ connectionName?: string | null;
23
+ connectionPosition?: number | null;
24
+ terminalConnected?: boolean | null;
25
+ maxSusceptance: number | null;
26
+ minSusceptance: number | null;
27
+ maxQAtNominalV: number | null;
28
+ minQAtNominalV: number | null;
29
+ regulationMode: string;
30
+ isRegulating: boolean;
31
+ voltageSetpoint: number | null;
32
+ reactivePowerSetpoint: number | null;
33
+ voltageRegulationType: string;
34
+ regulatingTerminalId: string | null;
35
+ regulatingTerminalType: string | null;
36
+ regulatingTerminalVlId: string | null;
37
+ regulatingTerminalConnectableId: string | null;
38
+ standbyAutomatonOn: boolean;
39
+ standby: boolean;
40
+ lowVoltageSetpoint: number | null;
41
+ highVoltageSetpoint: number | null;
42
+ lowVoltageThreshold: number | null;
43
+ highVoltageThreshold: number | null;
44
+ b0: number | null;
45
+ q0: number | null;
46
+ properties: Property[] | null;
47
+ }
48
+ export interface StaticVarCompensatorFormInfo {
49
+ id: string;
50
+ name: string;
51
+ voltageLevelId: string;
52
+ busOrBusbarSectionId: string;
53
+ connectablePosition: ConnectablePositionFormInfos;
54
+ minSusceptance: number | null;
55
+ maxSusceptance: number | null;
56
+ nominalV: number;
57
+ isRegulating: boolean;
58
+ regulationMode: string;
59
+ voltageSetpoint: number;
60
+ reactivePowerSetpoint: number;
61
+ regulatingTerminalConnectableId: string | null;
62
+ regulatingTerminalId: string | null;
63
+ regulatingTerminalVlId: string | null;
64
+ regulatingTerminalConnectableType: string;
65
+ standbyAutomatonInfos?: StandbyAutomatonInfos;
66
+ properties: Record<string, string> | undefined;
67
+ }
68
+ export {};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Copyright (c) 2026, 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 function SusceptanceArea(): import("react").JSX.Element;