@gridsuite/commons-ui 0.269.0 → 0.271.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 (142) hide show
  1. package/dist/components/ui/dialogs/customMuiDialog/CustomMuiDialog.d.ts +10 -3
  2. package/dist/components/ui/dialogs/customMuiDialog/CustomMuiDialog.js +33 -28
  3. package/dist/features/index.js +96 -3
  4. package/dist/features/network-modifications/common/branch/branchCreation.types.d.ts +26 -0
  5. package/dist/features/network-modifications/common/branch/branchModification.types.d.ts +36 -0
  6. package/dist/features/network-modifications/common/branch/branchModification.types.js +1 -0
  7. package/dist/features/network-modifications/{line/characteristics/lineCharacteristicsPane.types.d.ts → common/branch/index.d.ts} +2 -8
  8. package/dist/features/network-modifications/common/branch/index.js +1 -0
  9. package/dist/features/network-modifications/common/connectivity/connectivityForm.utils.d.ts +2 -0
  10. package/dist/features/network-modifications/common/currentLimits/limits.types.d.ts +1 -0
  11. package/dist/features/network-modifications/common/currentLimits/limitsPane.utils.d.ts +2 -2
  12. package/dist/features/network-modifications/common/index.d.ts +1 -0
  13. package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/reactiveCapability.utils.js +1 -1
  14. package/dist/features/network-modifications/common/regulatingTerminal/regulatingTerminal.utils.d.ts +2 -2
  15. package/dist/features/network-modifications/common/regulatingTerminal/regulatingTerminal.utils.js +2 -2
  16. package/dist/features/network-modifications/index.d.ts +1 -0
  17. package/dist/features/network-modifications/index.js +96 -3
  18. package/dist/features/network-modifications/line/characteristics/index.d.ts +0 -1
  19. package/dist/features/network-modifications/line/characteristics/index.js +1 -2
  20. package/dist/features/network-modifications/line/characteristics/lineCharacteristicsPane.utils.d.ts +4 -19
  21. package/dist/features/network-modifications/line/characteristics/lineCharacteristicsPane.utils.js +0 -14
  22. package/dist/features/network-modifications/line/creation/lineCreation.types.d.ts +6 -26
  23. package/dist/features/network-modifications/line/index.js +1 -2
  24. package/dist/features/network-modifications/line/modification/lineModification.types.d.ts +3 -35
  25. package/dist/features/network-modifications/twoWindingsTransformer/characteristics/TwoWindingsTransformerCharacteristicsPane.d.ts +7 -0
  26. package/dist/features/network-modifications/twoWindingsTransformer/characteristics/TwoWindingsTransformerCharacteristicsPane.js +168 -0
  27. package/dist/features/network-modifications/twoWindingsTransformer/characteristics/index.d.ts +8 -0
  28. package/dist/features/network-modifications/twoWindingsTransformer/characteristics/index.js +8 -0
  29. package/dist/features/network-modifications/twoWindingsTransformer/characteristics/twoWindingsTransformerCharacteristicsPane.utils.d.ts +41 -0
  30. package/dist/features/network-modifications/twoWindingsTransformer/characteristics/twoWindingsTransformerCharacteristicsPane.utils.js +51 -0
  31. package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogHeader.d.ts +6 -0
  32. package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogHeader.js +123 -0
  33. package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogTabs.d.ts +9 -0
  34. package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogTabs.js +89 -0
  35. package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogTabsContent.d.ts +14 -0
  36. package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogTabsContent.js +118 -0
  37. package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerForm.d.ts +6 -0
  38. package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerForm.js +47 -0
  39. package/dist/features/network-modifications/twoWindingsTransformer/common/index.d.ts +12 -0
  40. package/dist/features/network-modifications/twoWindingsTransformer/common/index.js +13 -0
  41. package/dist/features/network-modifications/twoWindingsTransformer/common/twoWindingsTransformer.types.d.ts +87 -0
  42. package/dist/features/network-modifications/twoWindingsTransformer/common/twoWindingsTransformer.types.js +1 -0
  43. package/dist/features/network-modifications/twoWindingsTransformer/common/twoWindingsTransformer.utils.d.ts +10 -0
  44. package/dist/features/network-modifications/twoWindingsTransformer/common/twoWindingsTransformer.utils.js +50 -0
  45. package/dist/features/network-modifications/twoWindingsTransformer/creation/index.d.ts +8 -0
  46. package/dist/features/network-modifications/twoWindingsTransformer/creation/index.js +12 -0
  47. package/dist/features/network-modifications/twoWindingsTransformer/creation/twoWindingsTransformerCreation.types.d.ts +47 -0
  48. package/dist/features/network-modifications/twoWindingsTransformer/creation/twoWindingsTransformerCreation.types.js +8 -0
  49. package/dist/features/network-modifications/twoWindingsTransformer/creation/twoWindingsTransformerCreation.utils.d.ts +248 -0
  50. package/dist/features/network-modifications/twoWindingsTransformer/creation/twoWindingsTransformerCreation.utils.js +325 -0
  51. package/dist/features/network-modifications/twoWindingsTransformer/index.d.ts +11 -0
  52. package/dist/features/network-modifications/twoWindingsTransformer/index.js +88 -0
  53. package/dist/features/network-modifications/twoWindingsTransformer/modification/index.d.ts +9 -0
  54. package/dist/features/network-modifications/twoWindingsTransformer/modification/index.js +10 -0
  55. package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/ToBeEstimatedForm.d.ts +6 -0
  56. package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/ToBeEstimatedForm.js +104 -0
  57. package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/index.d.ts +9 -0
  58. package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/index.js +7 -0
  59. package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/toBeEstimated.type.d.ts +10 -0
  60. package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/toBeEstimated.type.js +1 -0
  61. package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/toBeEstimated.utils.d.ts +12 -0
  62. package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/toBeEstimated.utils.js +18 -0
  63. package/dist/features/network-modifications/twoWindingsTransformer/modification/twoWindingsTransformerModification.types.d.ts +39 -0
  64. package/dist/features/network-modifications/twoWindingsTransformer/modification/twoWindingsTransformerModification.types.js +1 -0
  65. package/dist/features/network-modifications/twoWindingsTransformer/modification/twoWindingsTransformerModification.utils.d.ts +265 -0
  66. package/dist/features/network-modifications/twoWindingsTransformer/modification/twoWindingsTransformerModification.utils.js +100 -0
  67. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/RegulatedTerminalSection.d.ts +13 -0
  68. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/RegulatedTerminalSection.js +130 -0
  69. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/TapChangerSteps.d.ts +20 -0
  70. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/TapChangerSteps.js +311 -0
  71. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/index.d.ts +12 -0
  72. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/index.js +53 -0
  73. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/PhaseTapChangerPane.d.ts +2 -0
  74. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/PhaseTapChangerPane.js +198 -0
  75. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/PhaseTapChangerPaneSteps.d.ts +9 -0
  76. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/PhaseTapChangerPaneSteps.js +201 -0
  77. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/index.d.ts +9 -0
  78. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/index.js +15 -0
  79. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/phaseTapChanger.utils.d.ts +114 -0
  80. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/phaseTapChanger.utils.js +242 -0
  81. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/RatioTapChangerPane.d.ts +2 -0
  82. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/RatioTapChangerPane.js +283 -0
  83. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/RatioTapChangerPaneSteps.d.ts +9 -0
  84. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/RatioTapChangerPaneSteps.js +181 -0
  85. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/index.d.ts +9 -0
  86. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/index.js +18 -0
  87. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/ratioTapChanger.utils.d.ts +132 -0
  88. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/ratioTapChanger.utils.js +211 -0
  89. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleDialog.d.ts +2 -0
  90. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleDialog.js +102 -0
  91. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleDialogSubmitButton.d.ts +7 -0
  92. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleDialogSubmitButton.js +22 -0
  93. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleForm.d.ts +6 -0
  94. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleForm.js +86 -0
  95. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/ImportRuleDialog.d.ts +10 -0
  96. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/ImportRuleDialog.js +140 -0
  97. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/index.d.ts +12 -0
  98. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/index.js +13 -0
  99. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/regulationRule.types.d.ts +12 -0
  100. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/regulationRule.types.js +1 -0
  101. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/regulationRule.utils.d.ts +9 -0
  102. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/regulationRule.utils.js +19 -0
  103. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/tapChanger.utils.d.ts +14 -0
  104. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/tapChanger.utils.js +79 -0
  105. package/dist/features/network-modifications/voltageLevel/index.d.ts +1 -0
  106. package/dist/features/network-modifications/voltageLevel/index.js +9 -1
  107. package/dist/features/network-modifications/voltageLevel/section/VoltageLevelSectionCreationForm.d.ts +10 -0
  108. package/dist/features/network-modifications/voltageLevel/section/VoltageLevelSectionCreationForm.js +375 -0
  109. package/dist/features/network-modifications/voltageLevel/section/index.d.ts +9 -0
  110. package/dist/features/network-modifications/voltageLevel/section/index.js +10 -0
  111. package/dist/features/network-modifications/voltageLevel/section/voltageLevelSectionCreation.types.d.ts +15 -0
  112. package/dist/features/network-modifications/voltageLevel/section/voltageLevelSectionCreation.types.js +1 -0
  113. package/dist/features/network-modifications/voltageLevel/section/voltageLevelSectionCreation.utils.d.ts +48 -0
  114. package/dist/features/network-modifications/voltageLevel/section/voltageLevelSectionCreation.utils.js +100 -0
  115. package/dist/index.js +107 -7
  116. package/dist/translations/en/filterExpertEn.d.ts +0 -3
  117. package/dist/translations/en/filterExpertEn.js +0 -3
  118. package/dist/translations/en/network-modification-validationEn.d.ts +1 -0
  119. package/dist/translations/en/network-modification-validationEn.js +2 -1
  120. package/dist/translations/en/networkModificationsEn.d.ts +87 -9
  121. package/dist/translations/en/networkModificationsEn.js +91 -12
  122. package/dist/translations/fr/filterExpertFr.d.ts +0 -3
  123. package/dist/translations/fr/filterExpertFr.js +0 -3
  124. package/dist/translations/fr/network-modification-validationFr.d.ts +1 -0
  125. package/dist/translations/fr/network-modification-validationFr.js +2 -1
  126. package/dist/translations/fr/networkModificationsFr.d.ts +87 -9
  127. package/dist/translations/fr/networkModificationsFr.js +91 -12
  128. package/dist/utils/constants/fieldConstants.d.ts +37 -0
  129. package/dist/utils/constants/fieldConstants.js +37 -0
  130. package/dist/utils/constants/index.js +2 -1
  131. package/dist/utils/constants/translationKeys.d.ts +1 -0
  132. package/dist/utils/constants/translationKeys.js +2 -0
  133. package/dist/utils/functions.d.ts +9 -0
  134. package/dist/utils/functions.js +40 -0
  135. package/dist/utils/index.js +11 -4
  136. package/dist/utils/langs.d.ts +1 -0
  137. package/dist/utils/langs.js +9 -1
  138. package/dist/utils/types/equipmentType.d.ts +34 -0
  139. package/dist/utils/types/equipmentType.js +28 -0
  140. package/dist/utils/types/index.js +4 -1
  141. package/package.json +1 -1
  142. /package/dist/features/network-modifications/{line/characteristics/lineCharacteristicsPane.types.js → common/branch/branchCreation.types.js} +0 -0
@@ -94,6 +94,8 @@ import { VoltageLevelModificationForm } from "./voltageLevel/modification/Voltag
94
94
  import { voltageLevelModificationDtoToForm, voltageLevelModificationEmptyFormData, voltageLevelModificationFormSchema, voltageLevelModificationFormToDto, voltageLevelModificationWithMeasurementsDtoToForm, voltageLevelModificationWithMeasurementsFormSchema, voltageLevelModificationWithMeasurementsFormToDto } from "./voltageLevel/modification/voltageLevelModification.utils.js";
95
95
  import { createVoltageLevelTopologyDtoToForm, createVoltageLevelTopologyEmptyFormData, createVoltageLevelTopologyFormSchema, createVoltageLevelTopologyFormToDto } from "./voltageLevel/topology/voltageLevelTopologyCreation.utils.js";
96
96
  import { CreateVoltageLevelTopologyForm } from "./voltageLevel/topology/CreateVoltageLevelTopologyForm.js";
97
+ import { VoltageLevelSectionCreationForm } from "./voltageLevel/section/VoltageLevelSectionCreationForm.js";
98
+ import { POSITION_NEW_SECTION_SIDE, voltageLevelSectionCreationDtoToForm, voltageLevelSectionCreationEmptyFormData, voltageLevelSectionCreationFormSchema, voltageLevelSectionCreationFormToDto } from "./voltageLevel/section/voltageLevelSectionCreation.utils.js";
97
99
  import { LOAD_TAB_FIELDS, LoadDialogTab } from "./load/common/load.utils.js";
98
100
  import { LoadDialogTabs } from "./load/common/LoadDialogTabs.js";
99
101
  import { LoadDialogTabsContent } from "./load/common/LoadDialogTabsContent.js";
@@ -133,7 +135,7 @@ import { ShuntCompensatorCreationForm } from "./shunt-compensator/creation/Shunt
133
135
  import { shuntCompensatorCreationDtoToForm, shuntCompensatorCreationEmptyFormData, shuntCompensatorCreationFormSchema, shuntCompensatorCreationFormToDto } from "./shunt-compensator/creation/shuntCompensatorCreation.utils.js";
134
136
  import { ShuntCompensatorModificationForm } from "./shunt-compensator/modification/ShuntCompensatorModificationForm.js";
135
137
  import { shuntCompensatorModificationDtoToForm, shuntCompensatorModificationEmptyFormData, shuntCompensatorModificationFormSchema, shuntCompensatorModificationFormToDto } from "./shunt-compensator/modification/shuntCompensatorModification.utils.js";
136
- import { getCharacteristicsValidationSchema, getLineCharacteristicsEmptyFormData, getLineCharacteristicsFormData, getLineCharacteristicsValidationSchemaProps } from "./line/characteristics/lineCharacteristicsPane.utils.js";
138
+ import { getLineCharacteristicsEmptyFormData, getLineCharacteristicsFormData, getLineCharacteristicsValidationSchemaProps } from "./line/characteristics/lineCharacteristicsPane.utils.js";
137
139
  import { LineCharacteristicsPane } from "./line/characteristics/LineCharacteristicsPane.js";
138
140
  import { CATEGORIES_TABS } from "./line/catalog/lineCatalog.type.js";
139
141
  import { LineSegmentsInfoSchema, SegmentCurrentLimitsSchema, SegmentInfoSchema, SegmentSchema, SegmentTemporaryLimitSchema, convertLimitsToOperationalLimitsGroupFormSchema, convertToLineSegmentInfos, convertToLineSegmentsFormData, emptyLineSegment } from "./line/catalog/segment.utils.js";
@@ -144,6 +146,32 @@ import { LineDialogHeader } from "./line/common/LineDialogHeader.js";
144
146
  import { LineForm } from "./line/common/LineForm.js";
145
147
  import { lineCreationDtoToForm, lineCreationEmptyFormData, lineCreationFormSchema, lineCreationFormToDto } from "./line/creation/lineCreation.utils.js";
146
148
  import { lineModificationDtoToForm, lineModificationEmptyFormData, lineModificationFormSchema, lineModificationFormToDto } from "./line/modification/lineModification.utils.js";
149
+ import { TWT_TAB_FIELDS, TwoWindingsTransformerDialogTab } from "./twoWindingsTransformer/common/twoWindingsTransformer.utils.js";
150
+ import { TwoWindingsTransformerDialogHeader } from "./twoWindingsTransformer/common/TwoWindingsTransformerDialogHeader.js";
151
+ import { TwoWindingsTransformerDialogTabs } from "./twoWindingsTransformer/common/TwoWindingsTransformerDialogTabs.js";
152
+ import { TwoWindingsTransformerDialogTabsContent } from "./twoWindingsTransformer/common/TwoWindingsTransformerDialogTabsContent.js";
153
+ import { TwoWindingsTransformerForm } from "./twoWindingsTransformer/common/TwoWindingsTransformerForm.js";
154
+ import { getTwtCharacteristicsEmptyFormData, getTwtCharacteristicsFormData, getTwtCharacteristicsValidationSchemaProps } from "./twoWindingsTransformer/characteristics/twoWindingsTransformerCharacteristicsPane.utils.js";
155
+ import { TwoWindingsTransformerCharacteristicsPane } from "./twoWindingsTransformer/characteristics/TwoWindingsTransformerCharacteristicsPane.js";
156
+ import { compareStepsWithPreviousValues, computeHighTapPosition, getRegulationTypeLabel, getTapChangerEquipmentSectionTypeValue, getTapSideLabel, toTapChangerStepList } from "./twoWindingsTransformer/tapChanger/tapChanger.utils.js";
157
+ import { getCreateRuleEmptyFormData, getCreateRuleValidationSchema } from "./twoWindingsTransformer/tapChanger/regulationRule/regulationRule.utils.js";
158
+ import { CreateRuleDialogSubmitButton } from "./twoWindingsTransformer/tapChanger/regulationRule/CreateRuleDialogSubmitButton.js";
159
+ import { CreateRuleForm } from "./twoWindingsTransformer/tapChanger/regulationRule/CreateRuleForm.js";
160
+ import { CreateRuleDialog } from "./twoWindingsTransformer/tapChanger/regulationRule/CreateRuleDialog.js";
161
+ import { ImportRuleDialog } from "./twoWindingsTransformer/tapChanger/regulationRule/ImportRuleDialog.js";
162
+ import { getComputedPhaseRegulationType, getComputedPhaseRegulationTypeId, getComputedPhaseTapChangerRegulationMode, getComputedPreviousPhaseRegulationType, getPhaseTapChangerEmptyFormData, getPhaseTapChangerFormData, getPhaseTapChangerValidationSchemaProps, getPhaseTapRegulationSideId } from "./twoWindingsTransformer/tapChanger/phaseTapChanger/phaseTapChanger.utils.js";
163
+ import { PhaseTapChangerPaneSteps } from "./twoWindingsTransformer/tapChanger/phaseTapChanger/PhaseTapChangerPaneSteps.js";
164
+ import { PhaseTapChangerPane } from "./twoWindingsTransformer/tapChanger/phaseTapChanger/PhaseTapChangerPane.js";
165
+ import { getComputedPreviousRatioRegulationType, getComputedRegulationMode, getComputedRegulationModeId, getComputedRegulationType, getComputedRegulationTypeId, getComputedTapSide, getComputedTapSideId, getInitialTwtRatioRegulationModeId, getRatioTapChangerEmptyFormData, getRatioTapChangerFormData, getRatioTapChangerValidationSchemaProps } from "./twoWindingsTransformer/tapChanger/ratioTapChanger/ratioTapChanger.utils.js";
166
+ import { RatioTapChangerPaneSteps } from "./twoWindingsTransformer/tapChanger/ratioTapChanger/RatioTapChangerPaneSteps.js";
167
+ import { RatioTapChangerPane } from "./twoWindingsTransformer/tapChanger/ratioTapChanger/RatioTapChangerPane.js";
168
+ import { RegulatedTerminalSection } from "./twoWindingsTransformer/tapChanger/RegulatedTerminalSection.js";
169
+ import { TapChangerSteps } from "./twoWindingsTransformer/tapChanger/TapChangerSteps.js";
170
+ import { PhaseTapChangerRegulationMode } from "./twoWindingsTransformer/creation/twoWindingsTransformerCreation.types.js";
171
+ import { computeRatioTapChangerRegulationMode, getRegulationTypeForEdit, getTapSideForEdit, twoWindingsTransformerCreationDtoToForm, twoWindingsTransformerCreationEmptyFormData, twoWindingsTransformerCreationFormSchema, twoWindingsTransformerCreationFormToDto } from "./twoWindingsTransformer/creation/twoWindingsTransformerCreation.utils.js";
172
+ import { twoWindingsTransformerModificationEmptyFormData, twoWindingsTransformerModificationFormSchema } from "./twoWindingsTransformer/modification/twoWindingsTransformerModification.utils.js";
173
+ import { getToBeEstimatedValidationSchemaObject, toBeEstimatedEmptyFormData } from "./twoWindingsTransformer/modification/measurements/toBeEstimated.utils.js";
174
+ import { ToBeEstimatedForm } from "./twoWindingsTransformer/modification/measurements/ToBeEstimatedForm.js";
147
175
  import { StaticVarCompensatorDialogHeader } from "./static-var-compensator/common/static-var-compensator-dialog-header.js";
148
176
  import { StaticVarCompensatorDialogTabs } from "./static-var-compensator/common/static-var-compensator-dialog-tabs.js";
149
177
  import { STATIC_VAR_COMPENSATOR_TAB_FIELDS, StaticVarCompensatorDialogTab } from "./static-var-compensator/common/static-var-compensator-tab-utils.js";
@@ -172,6 +200,9 @@ export {
172
200
  CharacteristicsForm,
173
201
  ConnectivityForm,
174
202
  CouplingDeviceCreationForm,
203
+ CreateRuleDialog,
204
+ CreateRuleDialogSubmitButton,
205
+ CreateRuleForm,
175
206
  CreateVoltageLevelTopologyForm,
176
207
  EQUIPMENTS_FIELDS,
177
208
  EQUIPMENT_TYPE_ORDER,
@@ -186,6 +217,7 @@ export {
186
217
  GeneratorModificationForm,
187
218
  HvdcLccDeletionSpecificForm,
188
219
  INSERT,
220
+ ImportRuleDialog,
189
221
  LINE_TAB_FIELDS,
190
222
  LOAD_TAB_FIELDS,
191
223
  LimitsChart,
@@ -214,6 +246,10 @@ export {
214
246
  OPERATOR,
215
247
  OperationalLimitsGroupTabLabel,
216
248
  OperationalLimitsGroups,
249
+ POSITION_NEW_SECTION_SIDE,
250
+ PhaseTapChangerPane,
251
+ PhaseTapChangerPaneSteps,
252
+ PhaseTapChangerRegulationMode,
217
253
  PowerMeasurementsForm,
218
254
  PowerWithValidityForm,
219
255
  PropertiesForm,
@@ -223,9 +259,12 @@ export {
223
259
  REFERENCE_FIELD_OR_VALUE_2,
224
260
  REGULATION_TYPES,
225
261
  REMOVE,
262
+ RatioTapChangerPane,
263
+ RatioTapChangerPaneSteps,
226
264
  ReactiveCapabilityCurveRowForm,
227
265
  ReactiveCapabilityCurveTableForm,
228
266
  ReactiveLimitsForm,
267
+ RegulatedTerminalSection,
229
268
  RegulatingTerminalForm,
230
269
  SHUNT_COMPENSATOR_TYPES,
231
270
  STATIC_VAR_COMPENSATOR_TAB_FIELDS,
@@ -248,11 +287,21 @@ export {
248
287
  SwitchKind,
249
288
  SwitchesBetweenSections,
250
289
  TEMPORARY_LIMIT_MODIFICATION_TYPE,
290
+ TWT_TAB_FIELDS,
291
+ TapChangerSteps,
251
292
  TemporaryLimitsTable,
293
+ ToBeEstimatedForm,
294
+ TwoWindingsTransformerCharacteristicsPane,
295
+ TwoWindingsTransformerDialogHeader,
296
+ TwoWindingsTransformerDialogTab,
297
+ TwoWindingsTransformerDialogTabs,
298
+ TwoWindingsTransformerDialogTabsContent,
299
+ TwoWindingsTransformerForm,
252
300
  VOLTAGE_REGULATION_MODES,
253
301
  VoltageLevelConnectivityForm,
254
302
  VoltageLevelCreationForm,
255
303
  VoltageLevelModificationForm,
304
+ VoltageLevelSectionCreationForm,
256
305
  VoltageRegulationForm,
257
306
  addModificationTypeToOpLimitsGroups,
258
307
  addModificationTypeToTemporaryLimits,
@@ -269,7 +318,10 @@ export {
269
318
  byFilterDeletionDtoToForm,
270
319
  byFilterDeletionFormSchema,
271
320
  byFilterDeletionFormToDto,
321
+ compareStepsWithPreviousValues,
322
+ computeHighTapPosition,
272
323
  computeQ0,
324
+ computeRatioTapChangerRegulationMode,
273
325
  computeSwitchedOnValue,
274
326
  convertLimitsToOperationalLimitsGroupFormSchema,
275
327
  convertToLineSegmentInfos,
@@ -329,7 +381,17 @@ export {
329
381
  getCharacteristicsEmptyFormData,
330
382
  getCharacteristicsFormData,
331
383
  getCharacteristicsFormValidationSchema,
332
- getCharacteristicsValidationSchema,
384
+ getComputedPhaseRegulationType,
385
+ getComputedPhaseRegulationTypeId,
386
+ getComputedPhaseTapChangerRegulationMode,
387
+ getComputedPreviousPhaseRegulationType,
388
+ getComputedPreviousRatioRegulationType,
389
+ getComputedRegulationMode,
390
+ getComputedRegulationModeId,
391
+ getComputedRegulationType,
392
+ getComputedRegulationTypeId,
393
+ getComputedTapSide,
394
+ getComputedTapSideId,
333
395
  getCon1andCon2WithPositionValidationSchema,
334
396
  getConcatenatedProperties,
335
397
  getConnectivityBusBarSectionData,
@@ -347,12 +409,15 @@ export {
347
409
  getConnectivityWithoutPositionEmptyFormData,
348
410
  getConnectivityWithoutPositionValidationSchema,
349
411
  getCont1Cont2WithPositionEmptyFormData,
412
+ getCreateRuleEmptyFormData,
413
+ getCreateRuleValidationSchema,
350
414
  getCreateSwitchesEmptyFormData,
351
415
  getCreateSwitchesValidationSchema,
352
416
  getFilledPropertiesFromModification,
353
417
  getFormulaInitialValue,
354
418
  getFormulaSchema,
355
419
  getHvdcLccDeletionSchema,
420
+ getInitialTwtRatioRegulationModeId,
356
421
  getInjectionActiveReactivePowerEditDataProperties,
357
422
  getInjectionActiveReactivePowerEmptyFormData,
358
423
  getInjectionActiveReactivePowerEmptyFormDataProperties,
@@ -366,12 +431,19 @@ export {
366
431
  getLineCharacteristicsFormData,
367
432
  getLineCharacteristicsValidationSchemaProps,
368
433
  getNewVoltageLevelData,
434
+ getPhaseTapChangerEmptyFormData,
435
+ getPhaseTapChangerFormData,
436
+ getPhaseTapChangerValidationSchemaProps,
437
+ getPhaseTapRegulationSideId,
369
438
  getPowerWithValidityEditData,
370
439
  getPowerWithValidityEmptyFormData,
371
440
  getPowerWithValidityValidationSchema,
372
441
  getPropertiesFromModification,
373
442
  getPropertyAvatar,
374
443
  getPropertyValue,
444
+ getRatioTapChangerEmptyFormData,
445
+ getRatioTapChangerFormData,
446
+ getRatioTapChangerValidationSchemaProps,
375
447
  getReactiveCapabilityCurveValidationSchema,
376
448
  getReactiveCapabilityCurveValidationSchemaArray,
377
449
  getReactiveFormData,
@@ -388,6 +460,8 @@ export {
388
460
  getRegulatingTerminalEquipmentData,
389
461
  getRegulatingTerminalFormData,
390
462
  getRegulatingTerminalVoltageLevelData,
463
+ getRegulationTypeForEdit,
464
+ getRegulationTypeLabel,
391
465
  getRowEmptyFormData,
392
466
  getSetPointsEmptyFormData,
393
467
  getSetPointsSchema,
@@ -397,6 +471,13 @@ export {
397
471
  getStandbyAutomatonEmptyFormData,
398
472
  getStandbyAutomatonFormData,
399
473
  getStandbyAutomatonFormValidationSchema,
474
+ getTapChangerEquipmentSectionTypeValue,
475
+ getTapSideForEdit,
476
+ getTapSideLabel,
477
+ getToBeEstimatedValidationSchemaObject,
478
+ getTwtCharacteristicsEmptyFormData,
479
+ getTwtCharacteristicsFormData,
480
+ getTwtCharacteristicsValidationSchemaProps,
400
481
  getVoltageRegulationEmptyFormData,
401
482
  getVoltageRegulationSchema,
402
483
  initializedProperty,
@@ -453,10 +534,18 @@ export {
453
534
  substationModificationFormSchema,
454
535
  substationModificationFormToDto,
455
536
  testValueWithinPowerInterval,
537
+ toBeEstimatedEmptyFormData,
456
538
  toModificationProperties,
457
539
  toReactiveCapabilityCurveChoiceForGeneratorCreation,
458
540
  toReactiveCapabilityCurveChoiceForGeneratorModification,
541
+ toTapChangerStepList,
459
542
  translateSwitchKinds,
543
+ twoWindingsTransformerCreationDtoToForm,
544
+ twoWindingsTransformerCreationEmptyFormData,
545
+ twoWindingsTransformerCreationFormSchema,
546
+ twoWindingsTransformerCreationFormToDto,
547
+ twoWindingsTransformerModificationEmptyFormData,
548
+ twoWindingsTransformerModificationFormSchema,
460
549
  useHvdcLccDeletion,
461
550
  useTabsWithError,
462
551
  voltageLevelCreationDtoToForm,
@@ -469,5 +558,9 @@ export {
469
558
  voltageLevelModificationFormToDto,
470
559
  voltageLevelModificationWithMeasurementsDtoToForm,
471
560
  voltageLevelModificationWithMeasurementsFormSchema,
472
- voltageLevelModificationWithMeasurementsFormToDto
561
+ voltageLevelModificationWithMeasurementsFormToDto,
562
+ voltageLevelSectionCreationDtoToForm,
563
+ voltageLevelSectionCreationEmptyFormData,
564
+ voltageLevelSectionCreationFormSchema,
565
+ voltageLevelSectionCreationFormToDto
473
566
  };
@@ -4,6 +4,5 @@
4
4
  * License, v. 2.0. If a copy of the MPL was not distributed with this
5
5
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
6
  */
7
- export * from './lineCharacteristicsPane.types';
8
7
  export * from './lineCharacteristicsPane.utils';
9
8
  export * from './LineCharacteristicsPane';
@@ -1,8 +1,7 @@
1
- import { getCharacteristicsValidationSchema, getLineCharacteristicsEmptyFormData, getLineCharacteristicsFormData, getLineCharacteristicsValidationSchemaProps } from "./lineCharacteristicsPane.utils.js";
1
+ import { getLineCharacteristicsEmptyFormData, getLineCharacteristicsFormData, getLineCharacteristicsValidationSchemaProps } from "./lineCharacteristicsPane.utils.js";
2
2
  import { LineCharacteristicsPane } from "./LineCharacteristicsPane.js";
3
3
  export {
4
4
  LineCharacteristicsPane,
5
- getCharacteristicsValidationSchema,
6
5
  getLineCharacteristicsEmptyFormData,
7
6
  getLineCharacteristicsFormData,
8
7
  getLineCharacteristicsValidationSchemaProps
@@ -1,5 +1,5 @@
1
+ import { InferType } from 'yup';
1
2
  import { FieldConstants } from '../../../../utils';
2
- import { LineCharacteristics } from './lineCharacteristicsPane.types';
3
3
  export declare const getLineCharacteristicsValidationSchemaProps: (isEquipmentModification?: boolean) => import('yup').ObjectSchema<{
4
4
  r: number | null | undefined;
5
5
  x: number | null | undefined;
@@ -15,23 +15,7 @@ export declare const getLineCharacteristicsValidationSchemaProps: (isEquipmentMo
15
15
  b2: undefined;
16
16
  g2: undefined;
17
17
  }, "">;
18
- export declare const getCharacteristicsValidationSchema: (id: string, modification?: boolean) => {
19
- [x: string]: import('yup').ObjectSchema<{
20
- r: number | null | undefined;
21
- x: number | null | undefined;
22
- b1: number | null | undefined;
23
- g1: number | null | undefined;
24
- b2: number | null | undefined;
25
- g2: number | null | undefined;
26
- }, import('yup').AnyObject, {
27
- r: undefined;
28
- x: undefined;
29
- b1: undefined;
30
- g1: undefined;
31
- b2: undefined;
32
- g2: undefined;
33
- }, "">;
34
- };
18
+ type LineCharacteristicsFormData = InferType<ReturnType<typeof getLineCharacteristicsValidationSchemaProps>>;
35
19
  export declare const getLineCharacteristicsEmptyFormData: () => {
36
20
  r: null;
37
21
  x: null;
@@ -40,7 +24,7 @@ export declare const getLineCharacteristicsEmptyFormData: () => {
40
24
  b2: null;
41
25
  g2: null;
42
26
  };
43
- export declare const getLineCharacteristicsFormData: ({ r, x, g1, b1, g2, b2 }: LineCharacteristics, id?: FieldConstants) => {
27
+ export declare const getLineCharacteristicsFormData: ({ r, x, g1, b1, g2, b2 }: LineCharacteristicsFormData, id?: FieldConstants) => {
44
28
  [x: string]: {
45
29
  r: number | null;
46
30
  x: number | null;
@@ -50,3 +34,4 @@ export declare const getLineCharacteristicsFormData: ({ r, x, g1, b1, g2, b2 }:
50
34
  b2: number | null;
51
35
  };
52
36
  };
37
+ export {};
@@ -13,19 +13,6 @@ const getLineCharacteristicsValidationSchemaProps = (isEquipmentModification = f
13
13
  [FieldConstants.B2]: number().nullable(),
14
14
  [FieldConstants.G2]: number().nullable().min(0, MUST_BE_GREATER_OR_EQUAL_TO_ZERO)
15
15
  });
16
- const characteristicsValidationSchema = (id, modification) => ({
17
- [id]: object().shape({
18
- [FieldConstants.R]: modification ? number().nullable().min(0, MUST_BE_GREATER_OR_EQUAL_TO_ZERO) : number().nullable().min(0, MUST_BE_GREATER_OR_EQUAL_TO_ZERO).required(),
19
- [FieldConstants.X]: modification ? number().nullable() : number().nullable().required(),
20
- [FieldConstants.B1]: number().nullable(),
21
- [FieldConstants.G1]: number().nullable().min(0, MUST_BE_GREATER_OR_EQUAL_TO_ZERO),
22
- [FieldConstants.B2]: number().nullable(),
23
- [FieldConstants.G2]: number().nullable().min(0, MUST_BE_GREATER_OR_EQUAL_TO_ZERO)
24
- })
25
- });
26
- const getCharacteristicsValidationSchema = (id, modification = false) => {
27
- return characteristicsValidationSchema(id, modification);
28
- };
29
16
  const getLineCharacteristicsEmptyFormData = () => {
30
17
  return {
31
18
  [FieldConstants.R]: null,
@@ -47,7 +34,6 @@ const getLineCharacteristicsFormData = ({ r = null, x = null, g1 = null, b1 = nu
47
34
  }
48
35
  });
49
36
  export {
50
- getCharacteristicsValidationSchema,
51
37
  getLineCharacteristicsEmptyFormData,
52
38
  getLineCharacteristicsFormData,
53
39
  getLineCharacteristicsValidationSchemaProps
@@ -1,33 +1,13 @@
1
- import { ModificationType } from '../../../../utils';
2
- import { Property } from '../../common/properties/properties.type';
3
- import { OperationalLimitsGroupFormSchema } from '../../common/currentLimits/operationalLimitsGroups/operationalLimitsGroups.types';
1
+ import { UUID } from 'node:crypto';
4
2
  import { LineSegmentInfos } from '../common/line.types';
5
- export interface LineCreationDto {
6
- type: ModificationType;
7
- uuid?: string | null;
8
- equipmentId: string;
9
- equipmentName: string | null;
10
- r: number | null;
11
- x: number | null;
3
+ import { BranchCreationDto } from '../../common/branch/branchCreation.types';
4
+ export interface LineCreationDto extends BranchCreationDto {
12
5
  g1: number | null;
13
6
  b1: number | null;
14
7
  g2: number | null;
15
8
  b2: number | null;
16
- operationalLimitsGroups: OperationalLimitsGroupFormSchema[];
17
- selectedOperationalLimitsGroupId1?: string | null;
18
- selectedOperationalLimitsGroupId2?: string | null;
19
- voltageLevelId1: string | null;
20
- busOrBusbarSectionId1: string | null;
21
- connectionName1: string | null;
22
- connectionDirection1?: string | null;
23
- connectionPosition1?: number | null;
24
- connected1?: boolean | null;
25
- voltageLevelId2: string | null;
26
- busOrBusbarSectionId2: string | null;
27
- connectionName2: string | null;
28
- connectionDirection2?: string | null;
29
- connectionPosition2?: number | null;
30
- connected2?: boolean | null;
31
- properties: Property[] | null;
32
9
  lineSegments?: LineSegmentInfos[];
33
10
  }
11
+ export type LineCreationDtoWithId = LineCreationDto & {
12
+ uuid?: UUID;
13
+ };
@@ -1,4 +1,4 @@
1
- import { getCharacteristicsValidationSchema, getLineCharacteristicsEmptyFormData, getLineCharacteristicsFormData, getLineCharacteristicsValidationSchemaProps } from "./characteristics/lineCharacteristicsPane.utils.js";
1
+ import { getLineCharacteristicsEmptyFormData, getLineCharacteristicsFormData, getLineCharacteristicsValidationSchemaProps } from "./characteristics/lineCharacteristicsPane.utils.js";
2
2
  import { LineCharacteristicsPane } from "./characteristics/LineCharacteristicsPane.js";
3
3
  import { CATEGORIES_TABS } from "./catalog/lineCatalog.type.js";
4
4
  import { LineSegmentsInfoSchema, SegmentCurrentLimitsSchema, SegmentInfoSchema, SegmentSchema, SegmentTemporaryLimitSchema, convertLimitsToOperationalLimitsGroupFormSchema, convertToLineSegmentInfos, convertToLineSegmentsFormData, emptyLineSegment } from "./catalog/segment.utils.js";
@@ -27,7 +27,6 @@ export {
27
27
  convertToLineSegmentInfos,
28
28
  convertToLineSegmentsFormData,
29
29
  emptyLineSegment,
30
- getCharacteristicsValidationSchema,
31
30
  getLineCharacteristicsEmptyFormData,
32
31
  getLineCharacteristicsFormData,
33
32
  getLineCharacteristicsValidationSchemaProps,
@@ -1,39 +1,7 @@
1
- import { Property } from '../../common/properties/properties.type';
2
- import { AttributeModification, ModificationType } from '../../../../utils';
3
- import { OperationalLimitsGroup } from '../../common/currentLimits/operationalLimitsGroups/operationalLimitsGroups.types';
1
+ import { AttributeModification } from '../../../../utils';
4
2
  import { LineSegmentInfos } from '../common/line.types';
5
- export interface LineModificationDto {
6
- type: ModificationType;
7
- equipmentId: string;
8
- equipmentName: AttributeModification<string> | null;
9
- properties: Property[] | null;
10
- r: AttributeModification<number> | null;
11
- x: AttributeModification<number> | null;
12
- enableOLGModification: boolean;
13
- operationalLimitsGroups: OperationalLimitsGroup[];
14
- operationalLimitsGroupsModificationType: 'MODIFY' | 'REPLACE' | null;
15
- selectedOperationalLimitsGroupId1: AttributeModification<string> | null;
16
- selectedOperationalLimitsGroupId2: AttributeModification<string> | null;
17
- voltageLevelId1: AttributeModification<string> | null;
18
- voltageLevelId2: AttributeModification<string> | null;
19
- busOrBusbarSectionId1: AttributeModification<string> | null;
20
- busOrBusbarSectionId2: AttributeModification<string> | null;
21
- connectionName1: AttributeModification<string> | null;
22
- connectionName2: AttributeModification<string> | null;
23
- connectionDirection1: AttributeModification<string> | null;
24
- connectionDirection2: AttributeModification<string> | null;
25
- connectionPosition1: AttributeModification<number> | null;
26
- connectionPosition2: AttributeModification<number> | null;
27
- terminal1Connected: AttributeModification<boolean> | null;
28
- terminal2Connected: AttributeModification<boolean> | null;
29
- p1MeasurementValue: AttributeModification<number> | null;
30
- p1MeasurementValidity: AttributeModification<boolean> | null;
31
- q1MeasurementValue: AttributeModification<number> | null;
32
- q1MeasurementValidity: AttributeModification<boolean> | null;
33
- p2MeasurementValue: AttributeModification<number> | null;
34
- p2MeasurementValidity: AttributeModification<boolean> | null;
35
- q2MeasurementValue: AttributeModification<number> | null;
36
- q2MeasurementValidity: AttributeModification<boolean> | null;
3
+ import { BranchModificationDto } from '../../common';
4
+ export interface LineModificationDto extends BranchModificationDto {
37
5
  g1: AttributeModification<number> | null;
38
6
  b1: AttributeModification<number> | null;
39
7
  g2: AttributeModification<number> | null;
@@ -0,0 +1,7 @@
1
+ import { TwoWindingsTransformerMapInfos } from '../common/twoWindingsTransformer.types';
2
+ export interface TwoWindingsTransformerCharacteristicsPaneProps {
3
+ id?: string;
4
+ twtToModify?: TwoWindingsTransformerMapInfos | null;
5
+ isModification?: boolean;
6
+ }
7
+ export declare function TwoWindingsTransformerCharacteristicsPane({ id, twtToModify, isModification, }: Readonly<TwoWindingsTransformerCharacteristicsPaneProps>): import("react").JSX.Element;
@@ -0,0 +1,168 @@
1
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
+ import { Grid } from "@mui/material";
3
+ import { FormattedMessage } from "react-intl";
4
+ import { OhmAdornment, MicroSusceptanceAdornment, MVAPowerAdornment, VoltageAdornment } from "../../../../utils/constants/adornments.js";
5
+ import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
6
+ import { convertInputValue } from "../../../../utils/conversionUtils.js";
7
+ import "../../../../utils/types/equipmentType.js";
8
+ import { FieldType } from "../../../../utils/types/fieldType.js";
9
+ import "@mui/icons-material";
10
+ import "../../../../components/ui/overflowableText/OverflowableText.js";
11
+ import "react";
12
+ import "react-hook-form";
13
+ import "localized-countries";
14
+ import "localized-countries/data/fr";
15
+ import "localized-countries/data/en";
16
+ import "notistack";
17
+ import "../../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
18
+ import "yup";
19
+ import "../../../../components/ui/treeViewFinder/TreeViewFinder.js";
20
+ import { FloatInput } from "../../../../components/ui/reactHookForm/numbers/FloatInput.js";
21
+ import "../../../../components/ui/reactHookForm/numbers/RangeInput.js";
22
+ import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
23
+ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
24
+ import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
25
+ import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
26
+ import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
27
+ import "../../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
28
+ import "../../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
29
+ import "../../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
30
+ import "@hello-pangea/dnd";
31
+ import "../../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
32
+ import "../../../../components/ui/snackbarProvider/SnackbarProvider.js";
33
+ import "mui-nested-menu";
34
+ import "react-resizable-panels";
35
+ import "react-papaparse";
36
+ import "react-dom";
37
+ import "autosuggest-highlight/match";
38
+ import "autosuggest-highlight/parse";
39
+ import "clsx";
40
+ import "../../../../components/composite/filter/FilterCreationDialog.js";
41
+ import "../../../../components/composite/filter/HeaderFilterForm.js";
42
+ import "../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js";
43
+ import "../../../../components/composite/filter/expert/ExpertFilterForm.js";
44
+ import "../../../../components/composite/filter/expert/ExpertFilterEditionDialog.js";
45
+ import "../../../../components/composite/filter/expert/expertFilterConstants.js";
46
+ import "react-querybuilder";
47
+ import "uuid";
48
+ import "../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js";
49
+ import "../../../../components/composite/filter/utils/filterFormUtils.js";
50
+ import { GridItem } from "../../../../components/composite/grid/grid-item.js";
51
+ import { GridSection } from "../../../../components/composite/grid/grid-section.js";
52
+ import "@react-querybuilder/material";
53
+ import "../../../../components/composite/reactQueryBuilder/CustomReactQueryBuilder.js";
54
+ import "../../../../components/composite/reactQueryBuilder/PropertyValueEditor.js";
55
+ import "../../../../components/composite/agGridTable/BottomTableButtons.js";
56
+ import "../../../../components/composite/agGridTable/CustomAgGridTable.js";
57
+ import "ag-grid-community";
58
+ import "../../../../components/composite/customAGGrid/customAggrid.js";
59
+ import "../../../../components/composite/customAGGrid/context/custom-aggrid-context.js";
60
+ import "mathjs";
61
+ import "../../../../components/composite/report/report-viewer/log-table/log-table.js";
62
+ import "react-window";
63
+ import "../../../../components/composite/report/report-treeview/treeview-item.js";
64
+ import "../../../../components/composite/report/report-viewer/context/report-viewer-context.js";
65
+ import { PropertiesForm } from "../../common/properties/PropertiesForm.js";
66
+ import "../../common/properties/propertyUtils.js";
67
+ import "../../common/regulatingTerminal/RegulatingTerminalForm.js";
68
+ import "@mui/material/colors";
69
+ import "@mui/x-charts";
70
+ import "../../common/currentLimits/limitsPane.utils.js";
71
+ function TwoWindingsTransformerCharacteristicsPane({
72
+ id = FieldConstants.CHARACTERISTICS,
73
+ twtToModify,
74
+ isModification = false
75
+ }) {
76
+ const seriesResistanceField = /* @__PURE__ */ jsx(
77
+ FloatInput,
78
+ {
79
+ name: `${id}.${FieldConstants.R}`,
80
+ label: "SeriesResistanceText",
81
+ adornment: OhmAdornment,
82
+ previousValue: twtToModify?.r,
83
+ clearable: isModification
84
+ }
85
+ );
86
+ const seriesReactanceField = /* @__PURE__ */ jsx(
87
+ FloatInput,
88
+ {
89
+ name: `${id}.${FieldConstants.X}`,
90
+ label: "SeriesReactanceText",
91
+ adornment: OhmAdornment,
92
+ previousValue: twtToModify?.x,
93
+ clearable: isModification
94
+ }
95
+ );
96
+ const magnetizingConductanceField = /* @__PURE__ */ jsx(
97
+ FloatInput,
98
+ {
99
+ name: `${id}.${FieldConstants.G}`,
100
+ label: "G",
101
+ adornment: MicroSusceptanceAdornment,
102
+ previousValue: convertInputValue(FieldType.G, twtToModify?.g),
103
+ clearable: isModification
104
+ }
105
+ );
106
+ const magnetizingSusceptanceField = /* @__PURE__ */ jsx(
107
+ FloatInput,
108
+ {
109
+ name: `${id}.${FieldConstants.B}`,
110
+ label: "B",
111
+ adornment: MicroSusceptanceAdornment,
112
+ previousValue: convertInputValue(FieldType.B, twtToModify?.b),
113
+ clearable: isModification
114
+ }
115
+ );
116
+ const ratedSField = /* @__PURE__ */ jsx(
117
+ FloatInput,
118
+ {
119
+ name: `${id}.${FieldConstants.RATED_S}`,
120
+ label: "RatedNominalPowerText",
121
+ adornment: MVAPowerAdornment,
122
+ previousValue: twtToModify?.ratedS,
123
+ clearable: isModification
124
+ }
125
+ );
126
+ const ratedVoltage1Field = /* @__PURE__ */ jsx(
127
+ FloatInput,
128
+ {
129
+ name: `${id}.${FieldConstants.RATED_U1}`,
130
+ label: "RatedVoltage",
131
+ adornment: VoltageAdornment,
132
+ previousValue: twtToModify?.ratedU1,
133
+ clearable: isModification
134
+ }
135
+ );
136
+ const ratedVoltage2Field = /* @__PURE__ */ jsx(
137
+ FloatInput,
138
+ {
139
+ name: `${id}.${FieldConstants.RATED_U2}`,
140
+ label: "RatedVoltage",
141
+ adornment: VoltageAdornment,
142
+ previousValue: twtToModify?.ratedU2,
143
+ clearable: isModification
144
+ }
145
+ );
146
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
147
+ /* @__PURE__ */ jsx(GridSection, { title: "Characteristics" }),
148
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
149
+ /* @__PURE__ */ jsx(GridItem, { children: seriesResistanceField }),
150
+ /* @__PURE__ */ jsx(GridItem, { children: seriesReactanceField }),
151
+ /* @__PURE__ */ jsx(GridItem, { children: magnetizingConductanceField }),
152
+ /* @__PURE__ */ jsx(GridItem, { children: magnetizingSusceptanceField }),
153
+ /* @__PURE__ */ jsx(GridItem, { children: ratedSField })
154
+ ] }),
155
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
156
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsx("h4", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Side1" }) }) }),
157
+ /* @__PURE__ */ jsx(Grid, { size: 6, children: /* @__PURE__ */ jsx("h4", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Side2" }) }) })
158
+ ] }),
159
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
160
+ /* @__PURE__ */ jsx(GridItem, { children: ratedVoltage1Field }),
161
+ /* @__PURE__ */ jsx(GridItem, { children: ratedVoltage2Field })
162
+ ] }),
163
+ /* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "twt", isModification })
164
+ ] });
165
+ }
166
+ export {
167
+ TwoWindingsTransformerCharacteristicsPane
168
+ };
@@ -0,0 +1,8 @@
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 './twoWindingsTransformerCharacteristicsPane.utils';
8
+ export * from './TwoWindingsTransformerCharacteristicsPane';
@@ -0,0 +1,8 @@
1
+ import { getTwtCharacteristicsEmptyFormData, getTwtCharacteristicsFormData, getTwtCharacteristicsValidationSchemaProps } from "./twoWindingsTransformerCharacteristicsPane.utils.js";
2
+ import { TwoWindingsTransformerCharacteristicsPane } from "./TwoWindingsTransformerCharacteristicsPane.js";
3
+ export {
4
+ TwoWindingsTransformerCharacteristicsPane,
5
+ getTwtCharacteristicsEmptyFormData,
6
+ getTwtCharacteristicsFormData,
7
+ getTwtCharacteristicsValidationSchemaProps
8
+ };