@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
@@ -124,6 +124,8 @@ import { SubstationCreationForm } from "./network-modifications/substation/creat
124
124
  import { substationCreationDtoToForm, substationCreationEmptyFormData, substationCreationFormSchema, substationCreationFormToDto } from "./network-modifications/substation/creation/substationCreation.utils.js";
125
125
  import { SubstationModificationForm } from "./network-modifications/substation/modification/SubstationModificationForm.js";
126
126
  import { substationModificationDtoToForm, substationModificationEmptyFormData, substationModificationFormSchema, substationModificationFormToDto } from "./network-modifications/substation/modification/substationModification.utils.js";
127
+ import { CouplingDeviceCreationForm } from "./network-modifications/voltageLevel/coupling-device/coupling-device-creation-form.js";
128
+ import { couplingDeviceCreationDtoToForm, couplingDeviceCreationFormSchema, couplingDeviceCreationFormToDto, emptyCouplingDeviceCreationFormData } from "./network-modifications/voltageLevel/coupling-device/coupling-device-creation-utils.js";
127
129
  import { SwitchesBetweenSections } from "./network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js";
128
130
  import "react/jsx-runtime";
129
131
  import "@mui/material";
@@ -131,9 +133,9 @@ import "react";
131
133
  import "react-hook-form";
132
134
  import "react-intl";
133
135
  import "@mui/icons-material";
134
- import "../components/ui/overflowableText/OverflowableText.js";
135
136
  import "../utils/conversionUtils.js";
136
137
  import "../utils/types/equipmentType.js";
138
+ import "../components/ui/overflowableText/OverflowableText.js";
137
139
  import "localized-countries";
138
140
  import "localized-countries/data/fr";
139
141
  import "localized-countries/data/en";
@@ -162,6 +164,8 @@ import { SWITCH_TYPE, buildNewBusbarSections, getCreateSwitchesEmptyFormData, ge
162
164
  import { SwitchKind } from "./network-modifications/voltageLevel/creation/voltageLevelCreation.types.js";
163
165
  import { VoltageLevelModificationForm } from "./network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js";
164
166
  import { voltageLevelModificationDtoToForm, voltageLevelModificationEmptyFormData, voltageLevelModificationFormSchema, voltageLevelModificationFormToDto, voltageLevelModificationWithMeasurementsDtoToForm, voltageLevelModificationWithMeasurementsFormSchema, voltageLevelModificationWithMeasurementsFormToDto } from "./network-modifications/voltageLevel/modification/voltageLevelModification.utils.js";
167
+ import { createVoltageLevelTopologyDtoToForm, createVoltageLevelTopologyEmptyFormData, createVoltageLevelTopologyFormSchema, createVoltageLevelTopologyFormToDto } from "./network-modifications/voltageLevel/topology/voltageLevelTopologyCreation.utils.js";
168
+ import { CreateVoltageLevelTopologyForm } from "./network-modifications/voltageLevel/topology/CreateVoltageLevelTopologyForm.js";
165
169
  import { LOAD_TAB_FIELDS, LoadDialogTab } from "./network-modifications/load/common/load.utils.js";
166
170
  import { LoadDialogTabs } from "./network-modifications/load/common/LoadDialogTabs.js";
167
171
  import { LoadDialogTabsContent } from "./network-modifications/load/common/LoadDialogTabsContent.js";
@@ -212,6 +216,14 @@ import { LineDialogHeader } from "./network-modifications/line/common/LineDialog
212
216
  import { LineForm } from "./network-modifications/line/common/LineForm.js";
213
217
  import { lineCreationDtoToForm, lineCreationEmptyFormData, lineCreationFormSchema, lineCreationFormToDto } from "./network-modifications/line/creation/lineCreation.utils.js";
214
218
  import { lineModificationDtoToForm, lineModificationEmptyFormData, lineModificationFormSchema, lineModificationFormToDto } from "./network-modifications/line/modification/lineModification.utils.js";
219
+ import { StaticVarCompensatorDialogHeader } from "./network-modifications/static-var-compensator/common/static-var-compensator-dialog-header.js";
220
+ import { StaticVarCompensatorDialogTabs } from "./network-modifications/static-var-compensator/common/static-var-compensator-dialog-tabs.js";
221
+ import { STATIC_VAR_COMPENSATOR_TAB_FIELDS, StaticVarCompensatorDialogTab } from "./network-modifications/static-var-compensator/common/static-var-compensator-tab-utils.js";
222
+ import { VOLTAGE_REGULATION_MODES } from "./network-modifications/static-var-compensator/common/constants.js";
223
+ import { getReactiveFormData, getReactiveFormEmptyFormData, getReactiveFormValidationSchema } from "./network-modifications/static-var-compensator/common/set-points-limits-form-utils.js";
224
+ import { computeQ0, getStandbyAutomatonEmptyFormData, getStandbyAutomatonFormData, getStandbyAutomatonFormValidationSchema } from "./network-modifications/static-var-compensator/common/standby-automaton-form-utils.js";
225
+ import { StaticVarCompensatorCreationForm } from "./network-modifications/static-var-compensator/creation/static-var-compensator-creation-form.js";
226
+ import { staticVarCompensatorCreationEmptyFormData, staticVarCompensatorCreationFormSchema, staticVarCompensatorCreationFormToDto, staticVarCompensatorDtoToForm } from "./network-modifications/static-var-compensator/creation/static-var-compensator-creation-utils.js";
215
227
  import { BuildStatusChip } from "./node/build-status-chip.js";
216
228
  import { BuildStatus } from "./node/constant.js";
217
229
  import { COLUMNS_WITHOUT_BORDER, DEPTH_CELL_WIDTH, DROP_FORBIDDEN_INDICATOR_BOTTOM, DROP_FORBIDDEN_INDICATOR_TOP, DROP_INDICATOR_BOTTOM, DROP_INDICATOR_TOP, MODIFICATION_ROW_HEIGHT, createCellBorderColor, createCellContentWrapperSx, createCellStyle, createEditDescriptionStyle, createHeaderCellStyle, createModificationNameCellStyle, createNameCellLabelBoxSx, createNameCellRootStyle, createRootNetworkChipCellSx, createRowSx, networkModificationTableStyles } from "./network-modification-table/network-modification-table-styles.js";
@@ -237,7 +249,10 @@ import { useGlobalAnnouncement } from "./announcement/useGlobalAnnouncement.js";
237
249
  import { SecurityAnalysisResultNmk } from "./results/securityanalysis/security-analysis-result-nmk.js";
238
250
  import { SecurityAnalysisTable } from "./results/securityanalysis/security-analysis-table.js";
239
251
  import { NmkType } from "./results/securityanalysis/security-analysis.type.js";
240
- import { PAGE_OPTIONS, flattenNmKResultsConstraints, flattenNmKResultsContingencies, getNoRowsMessage, handlePostSortRows, mapNmKResultsCutOffPower } from "./results/securityanalysis/utils.js";
252
+ import { PAGE_OPTIONS, flattenNmKResultsConstraints, flattenNmKResultsContingencies, handlePostSortRows, mapNmKResultsCutOffPower } from "./results/securityanalysis/utils.js";
253
+ import { LimitViolationResult } from "./results/loadflow/limit-violation-result.js";
254
+ import { getNoRowsMessage } from "./results/utils/no-rows-message.js";
255
+ import { RESULTS_LOADING_DELAY } from "./results/constants.js";
241
256
  import { ProcessType } from "./process-configs/common/process-config.type.js";
242
257
  import { emptyProcessConfigModificationsFormData, getProcessConfigModificationsBackendFromFormData, getProcessConfigModificationsFormData, processConfigModificationsShape } from "./process-configs/common/process-config-modifications-edition.utils.js";
243
258
  import { ProcessConfigModificationsEdition } from "./process-configs/common/process-config-modifications-edition.js";
@@ -253,6 +268,8 @@ import { MAX_RECENT_GLOBAL_FILTERS, addSelectedGlobalFiltersToTableState, clearS
253
268
  import { syncGlobalFilters } from "./global-filter/utils/global-filter-sync.utils.js";
254
269
  import { RECENT_FILTER, addGlobalFilterId, getGlobalFilterId, getOptionLabel } from "./global-filter/utils/global-filter-utils.js";
255
270
  import { GlobalFilterContextProvider } from "./global-filter/context/global-filter-context-provider.js";
271
+ import { RenderTableAndExportCsv } from "./common/renderTable-ExportCsv.js";
272
+ import { useIntlResultStatusMessages } from "./results/hooks/useIntlResultStatusMessages.js";
256
273
  export {
257
274
  ACCURACY,
258
275
  ADVANCED_PARAMETERS,
@@ -306,7 +323,9 @@ export {
306
323
  CharacteristicsForm,
307
324
  ConnectivityForm,
308
325
  ContingencyTable,
326
+ CouplingDeviceCreationForm,
309
327
  CreateParameterDialog,
328
+ CreateVoltageLevelTopologyForm,
310
329
  CustomVoltageLevelTable,
311
330
  CustomVoltageLevelTableCell,
312
331
  CustomVoltageLevelTableRow,
@@ -391,6 +410,7 @@ export {
391
410
  LimitReductionTableRow,
392
411
  LimitReductionsTableForm,
393
412
  LimitTypes,
413
+ LimitViolationResult,
394
414
  LimitsChart,
395
415
  LimitsEditor,
396
416
  LimitsGroupsContextualMenu,
@@ -500,11 +520,13 @@ export {
500
520
  REFERENCE_FIELD_OR_VALUE_2,
501
521
  REGULATION_TYPES,
502
522
  REMOVE,
523
+ RESULTS_LOADING_DELAY,
503
524
  ReactiveCapabilityCurveRowForm,
504
525
  ReactiveCapabilityCurveTableForm,
505
526
  ReactiveLimitsForm,
506
527
  ReferenceCellRenderer,
507
528
  RegulatingTerminalForm,
529
+ RenderTableAndExportCsv,
508
530
  RootNetworkCellRenderer,
509
531
  RootNetworkChipCell,
510
532
  RootNetworkHeaderRenderer,
@@ -533,6 +555,7 @@ export {
533
555
  STARTED_GENERATORS_IN_CALCULATION_CLUSTER_THRESHOLD,
534
556
  STARTED_GENERATORS_OUTSIDE_CALCULATION_CLUSTER_THRESHOLD,
535
557
  START_TIME,
558
+ STATIC_VAR_COMPENSATOR_TAB_FIELDS,
536
559
  STOP_TIME,
537
560
  SUBSTATION_LAYOUT,
538
561
  SWITCH_TYPE,
@@ -561,6 +584,10 @@ export {
561
584
  ShuntCompensatorSelectionForm,
562
585
  SignInCallbackHandler,
563
586
  SilentRenewCallbackHandler,
587
+ StaticVarCompensatorCreationForm,
588
+ StaticVarCompensatorDialogHeader,
589
+ StaticVarCompensatorDialogTab,
590
+ StaticVarCompensatorDialogTabs,
564
591
  SubstationCreationForm,
565
592
  SubstationLayout,
566
593
  SubstationModificationForm,
@@ -590,6 +617,7 @@ export {
590
617
  VOLTAGE_LEVELS_FORM,
591
618
  VOLTAGE_LIMITS_DEFAULT,
592
619
  VOLTAGE_LIMITS_MODIFICATION,
620
+ VOLTAGE_REGULATION_MODES,
593
621
  VoltageInitParametersEditionDialog,
594
622
  VoltageInitParametersInLine,
595
623
  VoltageInitTabValues,
@@ -618,6 +646,7 @@ export {
618
646
  byFilterDeletionFormSchema,
619
647
  byFilterDeletionFormToDto,
620
648
  clearSelectedGlobalFiltersFromTableState,
649
+ computeQ0,
621
650
  computeSwitchedOnValue,
622
651
  computeTagMinSize,
623
652
  convertLimitsToOperationalLimitsGroupFormSchema,
@@ -625,6 +654,9 @@ export {
625
654
  convertToLineSegmentsFormData,
626
655
  convertToOperationalLimitsGroupFormSchema,
627
656
  copyEquipmentPropertiesForCreation,
657
+ couplingDeviceCreationDtoToForm,
658
+ couplingDeviceCreationFormSchema,
659
+ couplingDeviceCreationFormToDto,
628
660
  createCellBorderColor,
629
661
  createCellContentWrapperSx,
630
662
  createCellStyle,
@@ -637,8 +669,13 @@ export {
637
669
  createPropertyModification,
638
670
  createRootNetworkChipCellSx,
639
671
  createRowSx,
672
+ createVoltageLevelTopologyDtoToForm,
673
+ createVoltageLevelTopologyEmptyFormData,
674
+ createVoltageLevelTopologyFormSchema,
675
+ createVoltageLevelTopologyFormToDto,
640
676
  creationPropertiesSchema,
641
677
  dispatchUser,
678
+ emptyCouplingDeviceCreationFormData,
642
679
  emptyFormData,
643
680
  emptyLineSegment,
644
681
  emptyModificationByAssignmentFormData,
@@ -743,6 +780,9 @@ export {
743
780
  getPropertyValue,
744
781
  getReactiveCapabilityCurveValidationSchema,
745
782
  getReactiveCapabilityCurveValidationSchemaArray,
783
+ getReactiveFormData,
784
+ getReactiveFormEmptyFormData,
785
+ getReactiveFormValidationSchema,
746
786
  getReactiveLimitsEmptyFormData,
747
787
  getReactiveLimitsEmptyFormDataProps,
748
788
  getReactiveLimitsFormData,
@@ -760,6 +800,9 @@ export {
760
800
  getShortCircuitEmptyFormData,
761
801
  getShortCircuitFormData,
762
802
  getShortCircuitFormSchema,
803
+ getStandbyAutomatonEmptyFormData,
804
+ getStandbyAutomatonFormData,
805
+ getStandbyAutomatonFormValidationSchema,
763
806
  getTabIndicatorStyle,
764
807
  getTabStyle,
765
808
  getVoltageRegulationEmptyFormData,
@@ -835,6 +878,10 @@ export {
835
878
  shuntCompensatorModificationFormSchema,
836
879
  shuntCompensatorModificationFormToDto,
837
880
  standardTextField,
881
+ staticVarCompensatorCreationEmptyFormData,
882
+ staticVarCompensatorCreationFormSchema,
883
+ staticVarCompensatorCreationFormToDto,
884
+ staticVarCompensatorDtoToForm,
838
885
  substationCreationDtoToForm,
839
886
  substationCreationEmptyFormData,
840
887
  substationCreationFormSchema,
@@ -856,6 +903,7 @@ export {
856
903
  updateSubModificationsOfACompositeInTree,
857
904
  useGlobalAnnouncement,
858
905
  useHvdcLccDeletion,
906
+ useIntlResultStatusMessages,
859
907
  useListenerManager,
860
908
  useModificationsDragAndDrop,
861
909
  useNotificationsListener,
@@ -21,7 +21,7 @@ export interface Connectivity {
21
21
  connectionPosition?: number;
22
22
  terminalConnected?: boolean;
23
23
  }
24
- type PositionDiagramPaneType = React.ComponentType<{
24
+ export type PositionDiagramPaneType = React.ComponentType<{
25
25
  open: boolean;
26
26
  onClose: () => void;
27
27
  voltageLevelId: string;
@@ -15,3 +15,4 @@ export * from './generator';
15
15
  export * from './battery';
16
16
  export * from './shunt-compensator';
17
17
  export * from './line';
18
+ export * from './static-var-compensator';
@@ -52,6 +52,8 @@ import { SubstationCreationForm } from "./substation/creation/SubstationCreation
52
52
  import { substationCreationDtoToForm, substationCreationEmptyFormData, substationCreationFormSchema, substationCreationFormToDto } from "./substation/creation/substationCreation.utils.js";
53
53
  import { SubstationModificationForm } from "./substation/modification/SubstationModificationForm.js";
54
54
  import { substationModificationDtoToForm, substationModificationEmptyFormData, substationModificationFormSchema, substationModificationFormToDto } from "./substation/modification/substationModification.utils.js";
55
+ import { CouplingDeviceCreationForm } from "./voltageLevel/coupling-device/coupling-device-creation-form.js";
56
+ import { couplingDeviceCreationDtoToForm, couplingDeviceCreationFormSchema, couplingDeviceCreationFormToDto, emptyCouplingDeviceCreationFormData } from "./voltageLevel/coupling-device/coupling-device-creation-utils.js";
55
57
  import { SwitchesBetweenSections } from "./voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js";
56
58
  import "react/jsx-runtime";
57
59
  import "@mui/material";
@@ -59,9 +61,9 @@ import "react";
59
61
  import "react-hook-form";
60
62
  import "react-intl";
61
63
  import "@mui/icons-material";
62
- import "../../components/ui/overflowableText/OverflowableText.js";
63
64
  import "../../utils/conversionUtils.js";
64
65
  import "../../utils/types/equipmentType.js";
66
+ import "../../components/ui/overflowableText/OverflowableText.js";
65
67
  import "localized-countries";
66
68
  import "localized-countries/data/fr";
67
69
  import "localized-countries/data/en";
@@ -90,6 +92,8 @@ import { SWITCH_TYPE, buildNewBusbarSections, getCreateSwitchesEmptyFormData, ge
90
92
  import { SwitchKind } from "./voltageLevel/creation/voltageLevelCreation.types.js";
91
93
  import { VoltageLevelModificationForm } from "./voltageLevel/modification/VoltageLevelModificationForm.js";
92
94
  import { voltageLevelModificationDtoToForm, voltageLevelModificationEmptyFormData, voltageLevelModificationFormSchema, voltageLevelModificationFormToDto, voltageLevelModificationWithMeasurementsDtoToForm, voltageLevelModificationWithMeasurementsFormSchema, voltageLevelModificationWithMeasurementsFormToDto } from "./voltageLevel/modification/voltageLevelModification.utils.js";
95
+ import { createVoltageLevelTopologyDtoToForm, createVoltageLevelTopologyEmptyFormData, createVoltageLevelTopologyFormSchema, createVoltageLevelTopologyFormToDto } from "./voltageLevel/topology/voltageLevelTopologyCreation.utils.js";
96
+ import { CreateVoltageLevelTopologyForm } from "./voltageLevel/topology/CreateVoltageLevelTopologyForm.js";
93
97
  import { LOAD_TAB_FIELDS, LoadDialogTab } from "./load/common/load.utils.js";
94
98
  import { LoadDialogTabs } from "./load/common/LoadDialogTabs.js";
95
99
  import { LoadDialogTabsContent } from "./load/common/LoadDialogTabsContent.js";
@@ -140,6 +144,14 @@ import { LineDialogHeader } from "./line/common/LineDialogHeader.js";
140
144
  import { LineForm } from "./line/common/LineForm.js";
141
145
  import { lineCreationDtoToForm, lineCreationEmptyFormData, lineCreationFormSchema, lineCreationFormToDto } from "./line/creation/lineCreation.utils.js";
142
146
  import { lineModificationDtoToForm, lineModificationEmptyFormData, lineModificationFormSchema, lineModificationFormToDto } from "./line/modification/lineModification.utils.js";
147
+ import { StaticVarCompensatorDialogHeader } from "./static-var-compensator/common/static-var-compensator-dialog-header.js";
148
+ import { StaticVarCompensatorDialogTabs } from "./static-var-compensator/common/static-var-compensator-dialog-tabs.js";
149
+ import { STATIC_VAR_COMPENSATOR_TAB_FIELDS, StaticVarCompensatorDialogTab } from "./static-var-compensator/common/static-var-compensator-tab-utils.js";
150
+ import { VOLTAGE_REGULATION_MODES } from "./static-var-compensator/common/constants.js";
151
+ import { getReactiveFormData, getReactiveFormEmptyFormData, getReactiveFormValidationSchema } from "./static-var-compensator/common/set-points-limits-form-utils.js";
152
+ import { computeQ0, getStandbyAutomatonEmptyFormData, getStandbyAutomatonFormData, getStandbyAutomatonFormValidationSchema } from "./static-var-compensator/common/standby-automaton-form-utils.js";
153
+ import { StaticVarCompensatorCreationForm } from "./static-var-compensator/creation/static-var-compensator-creation-form.js";
154
+ import { staticVarCompensatorCreationEmptyFormData, staticVarCompensatorCreationFormSchema, staticVarCompensatorCreationFormToDto, staticVarCompensatorDtoToForm } from "./static-var-compensator/creation/static-var-compensator-creation-utils.js";
143
155
  export {
144
156
  APPLICABILITY,
145
157
  ActivePowerControlForm,
@@ -159,6 +171,8 @@ export {
159
171
  CHARACTERISTICS_CHOICES,
160
172
  CharacteristicsForm,
161
173
  ConnectivityForm,
174
+ CouplingDeviceCreationForm,
175
+ CreateVoltageLevelTopologyForm,
162
176
  EQUIPMENTS_FIELDS,
163
177
  EQUIPMENT_TYPE_ORDER,
164
178
  EquipmentDeletionForm,
@@ -214,6 +228,7 @@ export {
214
228
  ReactiveLimitsForm,
215
229
  RegulatingTerminalForm,
216
230
  SHUNT_COMPENSATOR_TYPES,
231
+ STATIC_VAR_COMPENSATOR_TAB_FIELDS,
217
232
  SWITCH_TYPE,
218
233
  SegmentCurrentLimitsSchema,
219
234
  SegmentInfoSchema,
@@ -224,12 +239,17 @@ export {
224
239
  ShuntCompensatorCreationForm,
225
240
  ShuntCompensatorModificationForm,
226
241
  ShuntCompensatorSelectionForm,
242
+ StaticVarCompensatorCreationForm,
243
+ StaticVarCompensatorDialogHeader,
244
+ StaticVarCompensatorDialogTab,
245
+ StaticVarCompensatorDialogTabs,
227
246
  SubstationCreationForm,
228
247
  SubstationModificationForm,
229
248
  SwitchKind,
230
249
  SwitchesBetweenSections,
231
250
  TEMPORARY_LIMIT_MODIFICATION_TYPE,
232
251
  TemporaryLimitsTable,
252
+ VOLTAGE_REGULATION_MODES,
233
253
  VoltageLevelConnectivityForm,
234
254
  VoltageLevelCreationForm,
235
255
  VoltageLevelModificationForm,
@@ -249,15 +269,24 @@ export {
249
269
  byFilterDeletionDtoToForm,
250
270
  byFilterDeletionFormSchema,
251
271
  byFilterDeletionFormToDto,
272
+ computeQ0,
252
273
  computeSwitchedOnValue,
253
274
  convertLimitsToOperationalLimitsGroupFormSchema,
254
275
  convertToLineSegmentInfos,
255
276
  convertToLineSegmentsFormData,
256
277
  convertToOperationalLimitsGroupFormSchema,
257
278
  copyEquipmentPropertiesForCreation,
279
+ couplingDeviceCreationDtoToForm,
280
+ couplingDeviceCreationFormSchema,
281
+ couplingDeviceCreationFormToDto,
258
282
  createConnectivityData,
259
283
  createPropertyModification,
284
+ createVoltageLevelTopologyDtoToForm,
285
+ createVoltageLevelTopologyEmptyFormData,
286
+ createVoltageLevelTopologyFormSchema,
287
+ createVoltageLevelTopologyFormToDto,
260
288
  creationPropertiesSchema,
289
+ emptyCouplingDeviceCreationFormData,
261
290
  emptyFormData,
262
291
  emptyLineSegment,
263
292
  emptyModificationByAssignmentFormData,
@@ -345,6 +374,9 @@ export {
345
374
  getPropertyValue,
346
375
  getReactiveCapabilityCurveValidationSchema,
347
376
  getReactiveCapabilityCurveValidationSchemaArray,
377
+ getReactiveFormData,
378
+ getReactiveFormEmptyFormData,
379
+ getReactiveFormValidationSchema,
348
380
  getReactiveLimitsEmptyFormData,
349
381
  getReactiveLimitsEmptyFormDataProps,
350
382
  getReactiveLimitsFormData,
@@ -362,6 +394,9 @@ export {
362
394
  getShortCircuitEmptyFormData,
363
395
  getShortCircuitFormData,
364
396
  getShortCircuitFormSchema,
397
+ getStandbyAutomatonEmptyFormData,
398
+ getStandbyAutomatonFormData,
399
+ getStandbyAutomatonFormValidationSchema,
365
400
  getVoltageRegulationEmptyFormData,
366
401
  getVoltageRegulationSchema,
367
402
  initializedProperty,
@@ -405,6 +440,10 @@ export {
405
440
  shuntCompensatorModificationFormSchema,
406
441
  shuntCompensatorModificationFormToDto,
407
442
  standardTextField,
443
+ staticVarCompensatorCreationEmptyFormData,
444
+ staticVarCompensatorCreationFormSchema,
445
+ staticVarCompensatorCreationFormToDto,
446
+ staticVarCompensatorDtoToForm,
408
447
  substationCreationDtoToForm,
409
448
  substationCreationEmptyFormData,
410
449
  substationCreationFormSchema,
@@ -0,0 +1,20 @@
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 const VOLTAGE_REGULATION_MODES: {
8
+ readonly VOLTAGE: {
9
+ readonly id: "VOLTAGE";
10
+ readonly label: "VoltageRegulationText";
11
+ };
12
+ readonly REACTIVE_POWER: {
13
+ readonly id: "REACTIVE_POWER";
14
+ readonly label: "ReactivePowerRegulationText";
15
+ };
16
+ readonly OFF: {
17
+ readonly id: "OFF";
18
+ readonly label: "Off";
19
+ };
20
+ };
@@ -0,0 +1,9 @@
1
+ const VOLTAGE_REGULATION_MODES = {
2
+ VOLTAGE: { id: "VOLTAGE", label: "VoltageRegulationText" },
3
+ REACTIVE_POWER: { id: "REACTIVE_POWER", label: "ReactivePowerRegulationText" },
4
+ // used in order to set regulating to false but doesn't exist in powsybl => should not be sent to the back
5
+ OFF: { id: "OFF", label: "Off" }
6
+ };
7
+ export {
8
+ VOLTAGE_REGULATION_MODES
9
+ };
@@ -0,0 +1,13 @@
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 * from './static-var-compensator.types';
8
+ export * from './static-var-compensator-dialog-header';
9
+ export * from './static-var-compensator-dialog-tabs';
10
+ export * from './static-var-compensator-tab-utils';
11
+ export * from './constants';
12
+ export * from './set-points-limits-form-utils';
13
+ export * from './standby-automaton-form-utils';
@@ -0,0 +1,20 @@
1
+ import { StaticVarCompensatorDialogHeader } from "./static-var-compensator-dialog-header.js";
2
+ import { StaticVarCompensatorDialogTabs } from "./static-var-compensator-dialog-tabs.js";
3
+ import { STATIC_VAR_COMPENSATOR_TAB_FIELDS, StaticVarCompensatorDialogTab } from "./static-var-compensator-tab-utils.js";
4
+ import { VOLTAGE_REGULATION_MODES } from "./constants.js";
5
+ import { getReactiveFormData, getReactiveFormEmptyFormData, getReactiveFormValidationSchema } from "./set-points-limits-form-utils.js";
6
+ import { computeQ0, getStandbyAutomatonEmptyFormData, getStandbyAutomatonFormData, getStandbyAutomatonFormValidationSchema } from "./standby-automaton-form-utils.js";
7
+ export {
8
+ STATIC_VAR_COMPENSATOR_TAB_FIELDS,
9
+ StaticVarCompensatorDialogHeader,
10
+ StaticVarCompensatorDialogTab,
11
+ StaticVarCompensatorDialogTabs,
12
+ VOLTAGE_REGULATION_MODES,
13
+ computeQ0,
14
+ getReactiveFormData,
15
+ getReactiveFormEmptyFormData,
16
+ getReactiveFormValidationSchema,
17
+ getStandbyAutomatonEmptyFormData,
18
+ getStandbyAutomatonFormData,
19
+ getStandbyAutomatonFormValidationSchema
20
+ };
@@ -0,0 +1,91 @@
1
+ import { FieldConstants } from '../../../../utils';
2
+ /**
3
+ * Copyright (c) 2026, RTE (http://www.rte-france.com)
4
+ * This Source Code Form is subject to the terms of the Mozilla Public
5
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
6
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
+ */
8
+ import * as yup from 'yup';
9
+ export declare const getReactiveFormEmptyFormData: (id?: FieldConstants) => {
10
+ [x: string]: {
11
+ maxSusceptance: null;
12
+ minSusceptance: null;
13
+ maxQAtNominalV: null;
14
+ minQAtNominalV: null;
15
+ voltageSetpoint: null;
16
+ reactivePowerSetpoint: null;
17
+ characteristicsChoice: "Q_AT_NOMINAL_V";
18
+ voltageRegulationMode: "OFF";
19
+ voltageRegulationType: "LOCAL";
20
+ voltageLevel: null;
21
+ equipment: null;
22
+ };
23
+ };
24
+ export declare const getReactiveFormValidationSchema: () => yup.ObjectSchema<{
25
+ maxSusceptance: number | null | undefined;
26
+ minSusceptance: number | null | undefined;
27
+ maxQAtNominalV: number | null | undefined;
28
+ minQAtNominalV: number | null | undefined;
29
+ voltageSetpoint: number | null | undefined;
30
+ reactivePowerSetpoint: number | null | undefined;
31
+ characteristicsChoice: string;
32
+ voltageRegulationMode: string;
33
+ voltageRegulationType: string;
34
+ voltageLevel: {
35
+ id: string;
36
+ } | null;
37
+ equipment: {
38
+ id: string;
39
+ type: string;
40
+ } | null;
41
+ }, yup.AnyObject, {
42
+ maxSusceptance: undefined;
43
+ minSusceptance: undefined;
44
+ maxQAtNominalV: undefined;
45
+ minQAtNominalV: undefined;
46
+ voltageSetpoint: undefined;
47
+ reactivePowerSetpoint: undefined;
48
+ characteristicsChoice: undefined;
49
+ voltageRegulationMode: undefined;
50
+ voltageRegulationType: undefined;
51
+ voltageLevel: {
52
+ id: undefined;
53
+ };
54
+ equipment: {
55
+ id: undefined;
56
+ type: undefined;
57
+ };
58
+ }, "">;
59
+ export declare const getReactiveFormData: ({ maxSusceptance, minSusceptance, nominalV, maxQAtNominalV, minQAtNominalV, regulationMode, voltageSetpoint, reactivePowerSetpoint, voltageRegulationType, voltageLevelId, equipmentType, equipmentId, }: {
60
+ maxSusceptance: number | null;
61
+ minSusceptance: number | null;
62
+ nominalV?: number | null;
63
+ maxQAtNominalV?: number | null;
64
+ minQAtNominalV?: number | null;
65
+ regulationMode: string;
66
+ voltageSetpoint: number | null;
67
+ reactivePowerSetpoint: number | null;
68
+ voltageRegulationType: string;
69
+ voltageLevelId: string | null;
70
+ equipmentType: string | null;
71
+ equipmentId: string | null;
72
+ }) => {
73
+ setpointsLimits: {
74
+ characteristicsChoice: "Q_AT_NOMINAL_V" | "SUSCEPTANCE";
75
+ voltageRegulationMode: string;
76
+ maxSusceptance: number | null;
77
+ minSusceptance: number | null;
78
+ maxQAtNominalV: number | null | undefined;
79
+ minQAtNominalV: number | null | undefined;
80
+ voltageSetpoint: number | null;
81
+ reactivePowerSetpoint: number | null;
82
+ voltageRegulationType: string;
83
+ voltageLevel: {
84
+ id: string;
85
+ } | null;
86
+ equipment: {
87
+ id: string;
88
+ type: string;
89
+ } | null;
90
+ };
91
+ };