@gridsuite/commons-ui 0.215.0 → 0.217.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 (296) hide show
  1. package/dist/components/composite/agGridTable/CustomAgGridTable.js +0 -1
  2. package/dist/components/composite/agGridTable/csvUploader/CsvUploader.js +0 -1
  3. package/dist/components/composite/customAGGrid/cell-renderers.js +0 -1
  4. package/dist/components/composite/customAGGrid/separatorCellRenderer.js +0 -1
  5. package/dist/components/composite/dnd-table/dnd-table-add-rows-dialog.js +0 -1
  6. package/dist/components/composite/dnd-table/dnd-table.js +0 -1
  7. package/dist/components/composite/dnd-table-v2/dnd-table-add-rows-dialog.js +0 -1
  8. package/dist/components/composite/dnd-table-v2/dnd-table-row.js +0 -1
  9. package/dist/components/composite/dnd-table-v2/dnd-table.js +0 -1
  10. package/dist/components/composite/filter/FilterCreationDialog.js +1 -2
  11. package/dist/components/composite/filter/FilterForm.js +0 -1
  12. package/dist/components/composite/filter/HeaderFilterForm.d.ts +1 -1
  13. package/dist/components/composite/filter/HeaderFilterForm.js +1 -2
  14. package/dist/components/composite/filter/expert/ExpertFilterEditionDialog.js +1 -2
  15. package/dist/components/composite/filter/expert/ExpertFilterForm.d.ts +1 -1
  16. package/dist/components/composite/filter/expert/ExpertFilterForm.js +1 -2
  17. package/dist/components/composite/filter/expert/expertFilterConstants.js +0 -1
  18. package/dist/components/composite/filter/expert/expertFilterUtils.js +0 -1
  19. package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js +1 -2
  20. package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.d.ts +1 -1
  21. package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js +1 -2
  22. package/dist/components/composite/filter/utils/filterApi.js +0 -1
  23. package/dist/components/composite/filter/utils/filterFormUtils.js +0 -1
  24. package/dist/components/composite/reactQueryBuilder/CountryValueEditor.js +0 -1
  25. package/dist/components/composite/reactQueryBuilder/ElementValueEditor.js +0 -1
  26. package/dist/components/composite/reactQueryBuilder/OperatorSelector.js +0 -1
  27. package/dist/components/ui/checkBoxList/CheckBoxListItem.js +0 -1
  28. package/dist/components/ui/checkBoxList/CheckBoxListItemContent.js +0 -1
  29. package/dist/components/ui/checkBoxList/DraggableCheckBoxListItem.js +0 -1
  30. package/dist/components/ui/checkBoxList/DraggableCheckBoxListItemContent.js +0 -1
  31. package/dist/components/ui/csvDownloader/use-csv-export.js +0 -1
  32. package/dist/components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js +1 -2
  33. package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +1 -2
  34. package/dist/components/ui/dialogs/modifyElementSelection/ModifyElementSelection.js +0 -1
  35. package/dist/components/ui/directoryItemSelector/DirectoryItemSelector.js +0 -1
  36. package/dist/components/ui/directoryItemSelector/utils.js +0 -1
  37. package/dist/components/ui/overflowableText/OverflowableText.js +0 -1
  38. package/dist/components/ui/reactHookForm/CountrySelectionInput.js +0 -1
  39. package/dist/components/ui/reactHookForm/DirectoryItemsInput.js +0 -1
  40. package/dist/components/ui/reactHookForm/OverflowableChipWithHelperText.js +0 -1
  41. package/dist/components/ui/reactHookForm/chip-items-input.js +0 -1
  42. package/dist/components/ui/reactHookForm/numbers/RangeInput.d.ts +2 -2
  43. package/dist/components/ui/reactHookForm/numbers/RangeInput.js +1 -2
  44. package/dist/components/ui/reactHookForm/tableInputs/table-numerical-input.js +0 -1
  45. package/dist/components/ui/reactHookForm/text/DescriptionField.js +0 -1
  46. package/dist/configureYup.d.ts +1 -0
  47. package/dist/configureYup.js +22 -0
  48. package/dist/features/index.js +14 -3
  49. package/dist/features/network-modification-table/network-modifications-table.js +0 -1
  50. package/dist/features/network-modification-table/renderers/description-cell.js +0 -1
  51. package/dist/features/network-modification-table/renderers/name-cell.js +0 -1
  52. package/dist/features/network-modification-table/renderers/root-network-chip-cell.js +0 -1
  53. package/dist/features/network-modification-table/renderers/switch-cell.js +0 -1
  54. package/dist/features/network-modification-table/row/drag-row-clone.js +0 -1
  55. package/dist/features/network-modification-table/row/modification-row.js +0 -1
  56. package/dist/features/network-modification-table/use-modifications-drag-and-drop.js +0 -1
  57. package/dist/features/network-modification-table/utils.js +0 -1
  58. package/dist/features/network-modifications/battery/creation/BatteryCreationForm.js +23 -2
  59. package/dist/features/network-modifications/battery/creation/batteryCreation.utils.js +26 -6
  60. package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-constants.js +0 -1
  61. package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-form.js +0 -1
  62. package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-utils.d.ts +7 -1
  63. package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-utils.js +5 -6
  64. package/dist/features/network-modifications/by-filter/assignment/modification-by-assignment-form.js +0 -1
  65. package/dist/features/network-modifications/by-filter/assignment/modificationByAssignment.utils.d.ts +9 -3
  66. package/dist/features/network-modifications/by-filter/assignment/modificationByAssignment.utils.js +1 -3
  67. package/dist/features/network-modifications/by-filter/deletion/ByFilterDeletionForm.js +0 -1
  68. package/dist/features/network-modifications/by-filter/deletion/byFilterDeletion.utils.d.ts +9 -3
  69. package/dist/features/network-modifications/by-filter/deletion/byFilterDeletion.utils.js +2 -3
  70. package/dist/features/network-modifications/common/activePowerControl/ActivePowerControlForm.js +0 -1
  71. package/dist/features/network-modifications/common/activePowerControl/activePowerControlForm.utils.js +3 -5
  72. package/dist/features/network-modifications/common/connectivity/BranchConnectivityForm.js +0 -1
  73. package/dist/features/network-modifications/common/connectivity/ConnectivityForm.js +0 -1
  74. package/dist/features/network-modifications/common/connectivity/PositionForm.js +0 -1
  75. package/dist/features/network-modifications/common/connectivity/VoltageLevelConnectivityForm.js +0 -1
  76. package/dist/features/network-modifications/common/connectivity/connectivityForm.utils.js +3 -5
  77. package/dist/features/network-modifications/common/index.js +2 -0
  78. package/dist/features/network-modifications/common/measurements/BusbarSectionVoltageMeasurementsForm.d.ts +10 -0
  79. package/dist/features/network-modifications/common/measurements/BusbarSectionVoltageMeasurementsForm.js +99 -0
  80. package/dist/features/network-modifications/common/measurements/PowerMeasurementsForm.js +0 -1
  81. package/dist/features/network-modifications/common/measurements/PowerWithValidityForm.js +0 -1
  82. package/dist/features/network-modifications/common/measurements/branchActiveReactivePowerForm.utils.js +0 -1
  83. package/dist/features/network-modifications/common/measurements/index.d.ts +1 -0
  84. package/dist/features/network-modifications/common/measurements/index.js +2 -0
  85. package/dist/features/network-modifications/common/measurements/injectionActiveReactivePowerForm.utils.js +0 -1
  86. package/dist/features/network-modifications/common/measurements/powerWithValidity.utils.js +1 -3
  87. package/dist/features/network-modifications/common/properties/PropertiesForm.js +0 -1
  88. package/dist/features/network-modifications/common/properties/PropertyForm.js +0 -1
  89. package/dist/features/network-modifications/common/properties/propertyUtils.js +9 -10
  90. package/dist/features/network-modifications/common/reactiveLimits/ReactiveLimitsForm.js +0 -1
  91. package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveRowForm.js +0 -1
  92. package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.js +0 -1
  93. package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/reactiveCapability.utils.js +3 -5
  94. package/dist/features/network-modifications/common/reactiveLimits/reactiveLimits.utils.js +3 -5
  95. package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.js +0 -1
  96. package/dist/features/network-modifications/common/regulatingTerminal/regulatingTerminal.utils.js +0 -1
  97. package/dist/features/network-modifications/common/setpoints/SetPointsForm.js +0 -1
  98. package/dist/features/network-modifications/common/setpoints/setPoints.utils.js +5 -6
  99. package/dist/features/network-modifications/common/shortCircuit/ShortCircuitForm.js +0 -1
  100. package/dist/features/network-modifications/common/shortCircuit/shortCircuitForm.utils.js +3 -5
  101. package/dist/features/network-modifications/common/voltageRegulation/VoltageRegulationForm.js +0 -1
  102. package/dist/features/network-modifications/common/voltageRegulation/voltageRegulation.utils.js +6 -8
  103. package/dist/features/network-modifications/equipmentDeletion/EquipmentDeletionForm.js +22 -1
  104. package/dist/features/network-modifications/equipmentDeletion/equipmentDeletion.utils.js +2 -4
  105. package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/HvdcLccDeletionSpecificForm.js +0 -1
  106. package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.js +0 -1
  107. package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/hvdcLccDeletion.utils.js +3 -5
  108. package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/useHvdcLccDeletion.js +0 -1
  109. package/dist/features/network-modifications/index.js +14 -3
  110. package/dist/features/network-modifications/load/common/LoadDialogHeader.js +22 -1
  111. package/dist/features/network-modifications/load/common/load.utils.js +0 -1
  112. package/dist/features/network-modifications/load/creation/loadCreation.utils.js +4 -6
  113. package/dist/features/network-modifications/load/modification/loadModification.utils.js +22 -1
  114. package/dist/features/network-modifications/shunt-compensator/common/CharacteristicsForm.js +0 -1
  115. package/dist/features/network-modifications/shunt-compensator/common/characteristicsForm.utils.js +16 -18
  116. package/dist/features/network-modifications/shunt-compensator/creation/ShuntCompensatorCreationForm.js +22 -1
  117. package/dist/features/network-modifications/shunt-compensator/creation/shuntCompensatorCreation.utils.js +24 -4
  118. package/dist/features/network-modifications/shunt-compensator/index.d.ts +1 -0
  119. package/dist/features/network-modifications/shunt-compensator/index.js +8 -1
  120. package/dist/features/network-modifications/shunt-compensator/modification/ShuntCompensatorModificationForm.d.ts +6 -0
  121. package/dist/features/network-modifications/shunt-compensator/modification/ShuntCompensatorModificationForm.js +126 -0
  122. package/dist/features/network-modifications/shunt-compensator/modification/index.d.ts +9 -0
  123. package/dist/features/network-modifications/shunt-compensator/modification/index.js +9 -0
  124. package/dist/features/network-modifications/shunt-compensator/modification/shuntCompensatorModification.types.d.ts +22 -0
  125. package/dist/features/network-modifications/shunt-compensator/modification/shuntCompensatorModification.types.js +1 -0
  126. package/dist/features/network-modifications/shunt-compensator/modification/shuntCompensatorModification.utils.d.ts +142 -0
  127. package/dist/features/network-modifications/shunt-compensator/modification/shuntCompensatorModification.utils.js +132 -0
  128. package/dist/features/network-modifications/substation/creation/SubstationCreationForm.js +22 -1
  129. package/dist/features/network-modifications/substation/creation/substationCreation.utils.js +2 -4
  130. package/dist/features/network-modifications/substation/modification/SubstationModificationForm.js +22 -1
  131. package/dist/features/network-modifications/substation/modification/substationModification.utils.d.ts +7 -1
  132. package/dist/features/network-modifications/substation/modification/substationModification.utils.js +1 -2
  133. package/dist/features/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +22 -1
  134. package/dist/features/network-modifications/voltageLevel/creation/index.js +22 -1
  135. package/dist/features/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.js +0 -1
  136. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.js +0 -1
  137. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/couplingOmnibus/CouplingOmnibusCreation.js +0 -1
  138. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/couplingOmnibus/CouplingOmnibusForm.js +0 -1
  139. package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js +0 -1
  140. package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationCreationSection.js +22 -1
  141. package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.js +0 -1
  142. package/dist/features/network-modifications/voltageLevel/creation/voltageLevel.constants.js +0 -1
  143. package/dist/features/network-modifications/voltageLevel/creation/voltageLevelCreation.utils.js +44 -24
  144. package/dist/features/network-modifications/voltageLevel/index.js +27 -3
  145. package/dist/features/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.d.ts +3 -1
  146. package/dist/features/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js +170 -99
  147. package/dist/features/network-modifications/voltageLevel/modification/index.js +5 -2
  148. package/dist/features/network-modifications/voltageLevel/modification/voltageLevelModification.types.d.ts +6 -0
  149. package/dist/features/network-modifications/voltageLevel/modification/voltageLevelModification.utils.d.ts +46 -0
  150. package/dist/features/network-modifications/voltageLevel/modification/voltageLevelModification.utils.js +41 -11
  151. package/dist/features/node/build-status-chip.js +0 -1
  152. package/dist/features/parameters/common/ProviderParam.js +0 -1
  153. package/dist/features/parameters/common/contingency-table/columns-definitions.d.ts +1 -1
  154. package/dist/features/parameters/common/contingency-table/columns-definitions.js +1 -2
  155. package/dist/features/parameters/common/contingency-table/contingency-table.js +0 -1
  156. package/dist/features/parameters/common/hook/use-parameters-form.js +0 -1
  157. package/dist/features/parameters/common/limitreductions/columns-definitions.d.ts +7 -1
  158. package/dist/features/parameters/common/limitreductions/columns-definitions.js +0 -1
  159. package/dist/features/parameters/common/limitreductions/limit-reduction-table-cell.js +0 -1
  160. package/dist/features/parameters/common/limitreductions/limit-reductions-table-form.js +0 -1
  161. package/dist/features/parameters/common/name-element-editor/name-element-editor-form.js +0 -1
  162. package/dist/features/parameters/common/name-element-editor/name-element-editor-utils.d.ts +7 -1
  163. package/dist/features/parameters/common/name-element-editor/name-element-editor-utils.js +1 -2
  164. package/dist/features/parameters/common/parameter-field.js +0 -1
  165. package/dist/features/parameters/common/parameter-table/table-cell.js +0 -1
  166. package/dist/features/parameters/common/parameter-table-field/parameter-table-field.js +0 -1
  167. package/dist/features/parameters/common/parameters-creation-dialog.js +0 -1
  168. package/dist/features/parameters/common/utils.d.ts +3 -4
  169. package/dist/features/parameters/common/utils.js +1 -2
  170. package/dist/features/parameters/common/voltage-level-table/custom-voltage-level-table-cell.js +0 -1
  171. package/dist/features/parameters/common/widget/parameter-float.js +0 -1
  172. package/dist/features/parameters/common/widget/parameter-line-directory-items-input.js +0 -1
  173. package/dist/features/parameters/common/widget/parameter-line-slider.js +0 -1
  174. package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +0 -1
  175. package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-inline.js +0 -1
  176. package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.d.ts +1 -1
  177. package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.js +1 -2
  178. package/dist/features/parameters/dynamic-margin-calculation/time-delay-parameters.d.ts +7 -1
  179. package/dist/features/parameters/dynamic-margin-calculation/time-delay-parameters.js +1 -2
  180. package/dist/features/parameters/dynamic-margin-calculation/use-dynamic-margin-calculation-parameters-form.js +1 -2
  181. package/dist/features/parameters/dynamic-security-analysis/contingency-parameters.js +0 -1
  182. package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-inline.js +0 -1
  183. package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +0 -1
  184. package/dist/features/parameters/dynamic-security-analysis/scenario-parameters.js +0 -1
  185. package/dist/features/parameters/dynamic-security-analysis/use-dynamic-security-analysis-parameters-form.d.ts +1 -1
  186. package/dist/features/parameters/dynamic-security-analysis/use-dynamic-security-analysis-parameters-form.js +1 -2
  187. package/dist/features/parameters/dynamic-simulation/curve/curve-parameters-utils.d.ts +7 -1
  188. package/dist/features/parameters/dynamic-simulation/curve/curve-parameters-utils.js +1 -2
  189. package/dist/features/parameters/dynamic-simulation/curve/curve-parameters.js +0 -1
  190. package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-preview.js +0 -1
  191. package/dist/features/parameters/dynamic-simulation/curve/dialog/equipment-filter.js +0 -1
  192. package/dist/features/parameters/dynamic-simulation/dynamic-simulation-inline.js +0 -1
  193. package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +0 -1
  194. package/dist/features/parameters/dynamic-simulation/mapping/mapping-parameters-utils.d.ts +7 -1
  195. package/dist/features/parameters/dynamic-simulation/mapping/mapping-parameters-utils.js +1 -2
  196. package/dist/features/parameters/dynamic-simulation/mapping/mapping-parameters.js +0 -1
  197. package/dist/features/parameters/dynamic-simulation/network/network-parameters-utils.d.ts +7 -1
  198. package/dist/features/parameters/dynamic-simulation/network/network-parameters-utils.js +1 -2
  199. package/dist/features/parameters/dynamic-simulation/network/network-parameters.js +0 -1
  200. package/dist/features/parameters/dynamic-simulation/solver/common-solver/common-solver-parameters-utils.d.ts +7 -1
  201. package/dist/features/parameters/dynamic-simulation/solver/common-solver/common-solver-parameters-utils.js +1 -2
  202. package/dist/features/parameters/dynamic-simulation/solver/common-solver/common-solver-parameters.js +0 -1
  203. package/dist/features/parameters/dynamic-simulation/solver/ida-solver/ida-solver-parameters-utils.d.ts +7 -1
  204. package/dist/features/parameters/dynamic-simulation/solver/ida-solver/ida-solver-parameters-utils.js +1 -2
  205. package/dist/features/parameters/dynamic-simulation/solver/ida-solver/ida-solver-parameters.js +1 -1
  206. package/dist/features/parameters/dynamic-simulation/solver/sim-solver/simplified-solver-parameters-utils.d.ts +7 -1
  207. package/dist/features/parameters/dynamic-simulation/solver/sim-solver/simplified-solver-parameters-utils.js +1 -2
  208. package/dist/features/parameters/dynamic-simulation/solver/sim-solver/simplified-solver-parameters.js +1 -1
  209. package/dist/features/parameters/dynamic-simulation/solver/solver-parameters-utils.d.ts +7 -1
  210. package/dist/features/parameters/dynamic-simulation/solver/solver-parameters-utils.js +1 -2
  211. package/dist/features/parameters/dynamic-simulation/solver/solver-parameters.js +1 -1
  212. package/dist/features/parameters/dynamic-simulation/time-delay/time-delay-parameters-utils.d.ts +7 -1
  213. package/dist/features/parameters/dynamic-simulation/time-delay/time-delay-parameters-utils.js +1 -2
  214. package/dist/features/parameters/dynamic-simulation/time-delay/time-delay-parameters.js +0 -1
  215. package/dist/features/parameters/dynamic-simulation/use-dynamic-simulation-parameters-form.js +1 -2
  216. package/dist/features/parameters/loadflow/load-flow-general-parameters.js +0 -1
  217. package/dist/features/parameters/loadflow/load-flow-parameters-content.js +0 -1
  218. package/dist/features/parameters/loadflow/load-flow-parameters-dialog.js +0 -1
  219. package/dist/features/parameters/loadflow/load-flow-parameters-form.js +0 -1
  220. package/dist/features/parameters/loadflow/load-flow-parameters-header.js +0 -1
  221. package/dist/features/parameters/loadflow/load-flow-parameters-inline.js +0 -1
  222. package/dist/features/parameters/loadflow/load-flow-parameters-utils.d.ts +1 -1
  223. package/dist/features/parameters/loadflow/load-flow-parameters-utils.js +1 -2
  224. package/dist/features/parameters/loadflow/use-load-flow-parameters-form.d.ts +2 -2
  225. package/dist/features/parameters/loadflow/use-load-flow-parameters-form.js +1 -2
  226. package/dist/features/parameters/network-visualizations/map-parameters.js +0 -1
  227. package/dist/features/parameters/network-visualizations/network-area-diagram-parameters.js +0 -1
  228. package/dist/features/parameters/network-visualizations/network-visualizations-form.js +0 -1
  229. package/dist/features/parameters/network-visualizations/network-visualizations-parameters-dialog.js +1 -2
  230. package/dist/features/parameters/network-visualizations/network-visualizations-parameters-inline.js +0 -1
  231. package/dist/features/parameters/network-visualizations/single-line-diagram-parameters.js +0 -1
  232. package/dist/features/parameters/network-visualizations/use-network-visualizations-parameters-form.d.ts +2 -2
  233. package/dist/features/parameters/network-visualizations/use-network-visualizations-parameters-form.js +1 -2
  234. package/dist/features/parameters/pcc-min/pcc-min-form-utils.js +0 -1
  235. package/dist/features/parameters/pcc-min/pcc-min-parameters-dialog.js +1 -2
  236. package/dist/features/parameters/pcc-min/pcc-min-parameters-form.js +0 -1
  237. package/dist/features/parameters/pcc-min/pcc-min-parameters-inline.js +0 -1
  238. package/dist/features/parameters/pcc-min/use-pcc-min-parameters-form.d.ts +2 -2
  239. package/dist/features/parameters/pcc-min/use-pcc-min-parameters-form.js +1 -2
  240. package/dist/features/parameters/security-analysis/columns-definitions.d.ts +7 -1
  241. package/dist/features/parameters/security-analysis/columns-definitions.js +1 -2
  242. package/dist/features/parameters/security-analysis/security-analysis-parameters-dialog.js +0 -1
  243. package/dist/features/parameters/security-analysis/security-analysis-parameters-form.js +0 -1
  244. package/dist/features/parameters/security-analysis/security-analysis-parameters-inline.js +0 -1
  245. package/dist/features/parameters/security-analysis/security-analysis-parameters-selector.js +0 -1
  246. package/dist/features/parameters/security-analysis/security-analysis-violations-hiding.js +0 -1
  247. package/dist/features/parameters/security-analysis/use-security-analysis-parameters-form.js +0 -1
  248. package/dist/features/parameters/sensi/columns-definitions.js +0 -1
  249. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-dialog.js +0 -1
  250. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.js +0 -1
  251. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-inline.js +0 -1
  252. package/dist/features/parameters/sensi/sensitivity-parameters-fields.js +0 -1
  253. package/dist/features/parameters/sensi/sensitivity-parameters-selector.js +0 -1
  254. package/dist/features/parameters/sensi/use-sensitivity-analysis-parameters.js +0 -1
  255. package/dist/features/parameters/sensi/utils.d.ts +1 -1
  256. package/dist/features/parameters/sensi/utils.js +1 -2
  257. package/dist/features/parameters/short-circuit/columns-definition.js +0 -1
  258. package/dist/features/parameters/short-circuit/short-circuit-general-tab-panel.js +0 -1
  259. package/dist/features/parameters/short-circuit/short-circuit-icc-cluster-table-cell.js +0 -1
  260. package/dist/features/parameters/short-circuit/short-circuit-icc-material-table-cell.js +0 -1
  261. package/dist/features/parameters/short-circuit/short-circuit-parameters-content.js +0 -1
  262. package/dist/features/parameters/short-circuit/short-circuit-parameters-dialog.js +1 -2
  263. package/dist/features/parameters/short-circuit/short-circuit-parameters-form.js +0 -1
  264. package/dist/features/parameters/short-circuit/short-circuit-parameters-inline.js +0 -1
  265. package/dist/features/parameters/short-circuit/short-circuit-parameters-utils.d.ts +7 -1
  266. package/dist/features/parameters/short-circuit/short-circuit-parameters-utils.js +1 -2
  267. package/dist/features/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +0 -1
  268. package/dist/features/parameters/short-circuit/short-circuit-study-area-tab-panel.js +0 -1
  269. package/dist/features/parameters/short-circuit/use-short-circuit-parameters-form.d.ts +2 -2
  270. package/dist/features/parameters/short-circuit/use-short-circuit-parameters-form.js +1 -2
  271. package/dist/features/parameters/voltage-init/equipment-selection-parameters.js +0 -1
  272. package/dist/features/parameters/voltage-init/general-parameters.js +0 -1
  273. package/dist/features/parameters/voltage-init/use-voltage-init-parameters-form.d.ts +2 -2
  274. package/dist/features/parameters/voltage-init/use-voltage-init-parameters-form.js +1 -2
  275. package/dist/features/parameters/voltage-init/voltage-init-form-utils.js +0 -1
  276. package/dist/features/parameters/voltage-init/voltage-init-parameters-dialog.js +1 -2
  277. package/dist/features/parameters/voltage-init/voltage-init-parameters-form.js +0 -1
  278. package/dist/features/parameters/voltage-init/voltage-init-parameters-inline.js +0 -1
  279. package/dist/features/parameters/voltage-init/voltage-limits-parameters.js +0 -1
  280. package/dist/hooks/use-unique-name-validation.js +0 -1
  281. package/dist/hooks/useConfidentialityWarning.js +0 -1
  282. package/dist/hooks/useGetLabelEquipmentTypes.js +0 -1
  283. package/dist/hooks/useModificationLabelComputer.js +0 -1
  284. package/dist/hooks/usePredefinedProperties.js +0 -1
  285. package/dist/index.js +13 -4
  286. package/dist/services/config.js +0 -1
  287. package/dist/services/sensitivity-analysis.js +0 -1
  288. package/dist/translations/en/networkModificationsEn.d.ts +4 -0
  289. package/dist/translations/en/networkModificationsEn.js +4 -1
  290. package/dist/translations/fr/networkModificationsFr.d.ts +4 -0
  291. package/dist/translations/fr/networkModificationsFr.js +4 -1
  292. package/dist/utils/index.d.ts +0 -1
  293. package/dist/utils/index.js +1 -4
  294. package/package.json +13 -5
  295. package/dist/utils/yupConfig.d.ts +0 -8
  296. package/dist/utils/yupConfig.js +0 -15
@@ -1,7 +1,6 @@
1
1
  import { object, array, string, number, boolean, ref } from "yup";
2
2
  import { creationPropertiesSchema, toModificationProperties, getPropertiesFromModification, emptyProperties } from "../../common/properties/propertyUtils.js";
3
3
  import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
4
- import { YUP_REQUIRED, YUP_NOT_TYPE_NUMBER } from "../../../../utils/constants/translationKeys.js";
5
4
  import { convertOutputValue, convertInputValue } from "../../../../utils/conversionUtils.js";
6
5
  import "../../../../utils/types/equipmentType.js";
7
6
  import { MODIFICATION_TYPES } from "../../../../utils/types/modificationType.js";
@@ -9,7 +8,6 @@ import { FieldType } from "../../../../utils/types/fieldType.js";
9
8
  import "react/jsx-runtime";
10
9
  import "@mui/icons-material";
11
10
  import { sanitizeString } from "../../../../utils/ts-utils.js";
12
- import "../../../../utils/yupConfig.js";
13
11
  import { MAX_SECTIONS_COUNT } from "./voltageLevel.constants.js";
14
12
  import "@mui/material";
15
13
  import "react-intl";
@@ -35,6 +33,28 @@ import "../../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js
35
33
  import "../../../../components/ui/snackbarProvider/SnackbarProvider.js";
36
34
  import "mui-nested-menu";
37
35
  import "react-resizable-panels";
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 "@react-querybuilder/material";
51
+ import "../../../../components/composite/reactQueryBuilder/CustomReactQueryBuilder.js";
52
+ import "../../../../components/composite/reactQueryBuilder/PropertyValueEditor.js";
53
+ import "../../../../components/composite/agGridTable/BottomRightButtons.js";
54
+ import "../../../../components/composite/customAGGrid/customAggrid.js";
55
+ import "ag-grid-community";
56
+ import "react-papaparse";
57
+ import "react-csv-downloader";
38
58
  import "../../common/regulatingTerminal/RegulatingTerminalForm.js";
39
59
  import { substationCreationEmptyFormData } from "../../substation/creation/substationCreation.utils.js";
40
60
  import "../../substation/modification/substationModification.utils.js";
@@ -58,7 +78,7 @@ const getCreateSwitchesValidationSchema = (id = FieldConstants.SWITCH_KINDS) =>
58
78
  return {
59
79
  [id]: array().nullable().of(
60
80
  object().shape({
61
- [FieldConstants.SWITCH_KIND]: string().nullable().required(YUP_REQUIRED)
81
+ [FieldConstants.SWITCH_KIND]: string().nullable().required()
62
82
  })
63
83
  )
64
84
  };
@@ -67,7 +87,7 @@ const getCreateSwitchesEmptyFormData = (sectionCount, id = FieldConstants.SWITCH
67
87
  [id]: new Array(sectionCount - 1).fill({ [FieldConstants.SWITCH_KIND]: "" })
68
88
  });
69
89
  const voltageLevelCreationFormSchema = object().shape({
70
- [FieldConstants.EQUIPMENT_ID]: string().required(YUP_REQUIRED).when([FieldConstants.ADD_SUBSTATION_CREATION], {
90
+ [FieldConstants.EQUIPMENT_ID]: string().required().when([FieldConstants.ADD_SUBSTATION_CREATION], {
71
91
  is: (addSubstationCreation) => !addSubstationCreation,
72
92
  then: (schema) => schema.notOneOf(
73
93
  [ref(FieldConstants.SUBSTATION_ID), null],
@@ -81,17 +101,17 @@ const voltageLevelCreationFormSchema = object().shape({
81
101
  )
82
102
  }),
83
103
  [FieldConstants.EQUIPMENT_NAME]: string().nullable(),
84
- [FieldConstants.ADD_SUBSTATION_CREATION]: boolean().required(YUP_REQUIRED),
104
+ [FieldConstants.ADD_SUBSTATION_CREATION]: boolean().required(),
85
105
  [FieldConstants.SUBSTATION_ID]: string().nullable().when([FieldConstants.ADD_SUBSTATION_CREATION], {
86
106
  is: (addSubstationCreation) => !addSubstationCreation,
87
- then: (schema) => schema.required(YUP_REQUIRED).notOneOf(
107
+ then: (schema) => schema.required().notOneOf(
88
108
  [ref(FieldConstants.EQUIPMENT_ID), null],
89
109
  "CreateSubstationInVoltageLevelIdenticalId"
90
110
  )
91
111
  }),
92
112
  [FieldConstants.SUBSTATION_CREATION_ID]: string().nullable().when([FieldConstants.ADD_SUBSTATION_CREATION], {
93
113
  is: (addSubstationCreation) => addSubstationCreation,
94
- then: (schema) => schema.required(YUP_REQUIRED).notOneOf(
114
+ then: (schema) => schema.required().notOneOf(
95
115
  [ref(FieldConstants.EQUIPMENT_ID), null],
96
116
  "CreateSubstationInVoltageLevelIdenticalId"
97
117
  )
@@ -99,41 +119,41 @@ const voltageLevelCreationFormSchema = object().shape({
99
119
  [FieldConstants.SUBSTATION_NAME]: string().nullable(),
100
120
  [FieldConstants.COUNTRY]: string().nullable(),
101
121
  [FieldConstants.SUBSTATION_CREATION]: creationPropertiesSchema,
102
- [FieldConstants.HIDE_NOMINAL_VOLTAGE]: boolean().required(YUP_REQUIRED),
103
- [FieldConstants.NOMINAL_V]: number().typeError(YUP_NOT_TYPE_NUMBER).nullable().when([FieldConstants.HIDE_NOMINAL_VOLTAGE], {
122
+ [FieldConstants.HIDE_NOMINAL_VOLTAGE]: boolean().required(),
123
+ [FieldConstants.NOMINAL_V]: number().nullable().when([FieldConstants.HIDE_NOMINAL_VOLTAGE], {
104
124
  is: (hideNominalVoltage) => !hideNominalVoltage,
105
- then: (schema) => schema.min(0, "mustBeGreaterOrEqualToZero").required(YUP_REQUIRED)
125
+ then: (schema) => schema.min(0, "mustBeGreaterOrEqualToZero").required()
106
126
  }),
107
- [FieldConstants.LOW_VOLTAGE_LIMIT]: number().typeError(YUP_NOT_TYPE_NUMBER).nullable().min(0, "mustBeGreaterOrEqualToZero").max(ref(FieldConstants.HIGH_VOLTAGE_LIMIT), "voltageLevelNominalVoltageMaxValueError"),
108
- [FieldConstants.HIGH_VOLTAGE_LIMIT]: number().typeError(YUP_NOT_TYPE_NUMBER).nullable().min(0, "mustBeGreaterOrEqualToZero"),
109
- [FieldConstants.LOW_SHORT_CIRCUIT_CURRENT_LIMIT]: number().typeError(YUP_NOT_TYPE_NUMBER).nullable().min(0, "ShortCircuitCurrentLimitMustBeGreaterOrEqualToZero").max(ref(FieldConstants.HIGH_SHORT_CIRCUIT_CURRENT_LIMIT), "ShortCircuitCurrentLimitMinMaxError"),
110
- [FieldConstants.HIGH_SHORT_CIRCUIT_CURRENT_LIMIT]: number().typeError(YUP_NOT_TYPE_NUMBER).nullable().min(0, "ShortCircuitCurrentLimitMustBeGreaterOrEqualToZero").when([FieldConstants.LOW_SHORT_CIRCUIT_CURRENT_LIMIT], {
127
+ [FieldConstants.LOW_VOLTAGE_LIMIT]: number().nullable().min(0, "mustBeGreaterOrEqualToZero").max(ref(FieldConstants.HIGH_VOLTAGE_LIMIT), "voltageLevelNominalVoltageMaxValueError"),
128
+ [FieldConstants.HIGH_VOLTAGE_LIMIT]: number().nullable().min(0, "mustBeGreaterOrEqualToZero"),
129
+ [FieldConstants.LOW_SHORT_CIRCUIT_CURRENT_LIMIT]: number().nullable().min(0, "ShortCircuitCurrentLimitMustBeGreaterOrEqualToZero").max(ref(FieldConstants.HIGH_SHORT_CIRCUIT_CURRENT_LIMIT), "ShortCircuitCurrentLimitMinMaxError"),
130
+ [FieldConstants.HIGH_SHORT_CIRCUIT_CURRENT_LIMIT]: number().nullable().min(0, "ShortCircuitCurrentLimitMustBeGreaterOrEqualToZero").when([FieldConstants.LOW_SHORT_CIRCUIT_CURRENT_LIMIT], {
111
131
  is: (lowShortCircuitCurrentLimit) => lowShortCircuitCurrentLimit != null,
112
- then: (schema) => schema.required(YUP_REQUIRED)
132
+ then: (schema) => schema.required()
113
133
  }),
114
- [FieldConstants.HIDE_BUS_BAR_SECTION]: boolean().required(YUP_REQUIRED),
115
- [FieldConstants.BUS_BAR_COUNT]: number().typeError(YUP_NOT_TYPE_NUMBER).nullable().when([FieldConstants.HIDE_BUS_BAR_SECTION], {
134
+ [FieldConstants.HIDE_BUS_BAR_SECTION]: boolean().required(),
135
+ [FieldConstants.BUS_BAR_COUNT]: number().nullable().when([FieldConstants.HIDE_BUS_BAR_SECTION], {
116
136
  is: (hideBusBarSection) => !hideBusBarSection,
117
- then: (schema) => schema.min(1, "BusBarCountMustBeGreaterThanOrEqualToOne").required(YUP_REQUIRED)
137
+ then: (schema) => schema.min(1, "BusBarCountMustBeGreaterThanOrEqualToOne").required()
118
138
  }),
119
- [FieldConstants.SECTION_COUNT]: number().typeError(YUP_NOT_TYPE_NUMBER).nullable().when([FieldConstants.HIDE_BUS_BAR_SECTION], {
139
+ [FieldConstants.SECTION_COUNT]: number().nullable().when([FieldConstants.HIDE_BUS_BAR_SECTION], {
120
140
  is: (hideBusBarSection) => !hideBusBarSection,
121
- then: (schema) => schema.min(1, "SectionCountMustBeGreaterThanOrEqualToOne").max(MAX_SECTIONS_COUNT, "SectionCountMustBeLessThanOrEqualToTwenty").required(YUP_REQUIRED)
141
+ then: (schema) => schema.min(1, "SectionCountMustBeGreaterThanOrEqualToOne").max(MAX_SECTIONS_COUNT, "SectionCountMustBeLessThanOrEqualToTwenty").required()
122
142
  }),
123
143
  [FieldConstants.SWITCHES_BETWEEN_SECTIONS]: string().nullable().when([FieldConstants.SECTION_COUNT], {
124
144
  is: (sectionCount) => sectionCount > 1,
125
- then: (schema) => schema.required(YUP_REQUIRED)
145
+ then: (schema) => schema.required()
126
146
  }),
127
147
  [FieldConstants.SWITCH_KINDS]: array().of(
128
148
  object().shape({
129
- [FieldConstants.SWITCH_KIND]: string().required(YUP_REQUIRED)
149
+ [FieldConstants.SWITCH_KIND]: string().required()
130
150
  })
131
151
  ),
132
152
  [FieldConstants.TOPOLOGY_KIND]: string().nullable(),
133
153
  [FieldConstants.COUPLING_OMNIBUS]: array().of(
134
154
  object().shape({
135
- [FieldConstants.BUS_BAR_SECTION_ID1]: string().nullable().required(YUP_REQUIRED),
136
- [FieldConstants.BUS_BAR_SECTION_ID2]: string().nullable().required(YUP_REQUIRED).notOneOf([ref(FieldConstants.BUS_BAR_SECTION_ID1), null], "CreateCouplingDeviceIdenticalBusBar")
155
+ [FieldConstants.BUS_BAR_SECTION_ID1]: string().nullable().required(),
156
+ [FieldConstants.BUS_BAR_SECTION_ID2]: string().nullable().required().notOneOf([ref(FieldConstants.BUS_BAR_SECTION_ID1), null], "CreateCouplingDeviceIdenticalBusBar")
137
157
  })
138
158
  )
139
159
  }).concat(creationPropertiesSchema);
@@ -8,7 +8,6 @@ import "@mui/icons-material";
8
8
  import "../../../components/ui/overflowableText/OverflowableText.js";
9
9
  import "../../../utils/conversionUtils.js";
10
10
  import "../../../utils/types/equipmentType.js";
11
- import "../../../utils/yupConfig.js";
12
11
  import "localized-countries";
13
12
  import "localized-countries/data/fr";
14
13
  import "localized-countries/data/en";
@@ -30,13 +29,35 @@ import "../../../components/ui/snackbarProvider/SnackbarProvider.js";
30
29
  import "mui-nested-menu";
31
30
  import "react-resizable-panels";
32
31
  import "../common/properties/propertyUtils.js";
32
+ import "react-dom";
33
+ import "autosuggest-highlight/match";
34
+ import "autosuggest-highlight/parse";
35
+ import "clsx";
36
+ import "../../../components/composite/filter/FilterCreationDialog.js";
37
+ import "../../../components/composite/filter/HeaderFilterForm.js";
38
+ import "../../../components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js";
39
+ import "../../../components/composite/filter/expert/ExpertFilterForm.js";
40
+ import "../../../components/composite/filter/expert/ExpertFilterEditionDialog.js";
41
+ import "../../../components/composite/filter/expert/expertFilterConstants.js";
42
+ import "react-querybuilder";
43
+ import "uuid";
44
+ import "../../../components/composite/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js";
45
+ import "../../../components/composite/filter/utils/filterFormUtils.js";
46
+ import "@react-querybuilder/material";
47
+ import "../../../components/composite/reactQueryBuilder/CustomReactQueryBuilder.js";
48
+ import "../../../components/composite/reactQueryBuilder/PropertyValueEditor.js";
49
+ import "../../../components/composite/agGridTable/BottomRightButtons.js";
50
+ import "../../../components/composite/customAGGrid/customAggrid.js";
51
+ import "ag-grid-community";
52
+ import "react-papaparse";
53
+ import "react-csv-downloader";
33
54
  import "../common/regulatingTerminal/RegulatingTerminalForm.js";
34
55
  import { MAX_SECTIONS_COUNT } from "./creation/voltageLevel.constants.js";
35
56
  import { VoltageLevelCreationForm } from "./creation/VoltageLevelCreationForm.js";
36
57
  import { SWITCH_TYPE, buildNewBusbarSections, getCreateSwitchesEmptyFormData, getCreateSwitchesValidationSchema, translateSwitchKinds, voltageLevelCreationDtoToForm, voltageLevelCreationEmptyFormData, voltageLevelCreationFormSchema, voltageLevelCreationFormToDto } from "./creation/voltageLevelCreation.utils.js";
37
58
  import { SwitchKind } from "./creation/voltageLevelCreation.types.js";
38
59
  import { VoltageLevelModificationForm } from "./modification/VoltageLevelModificationForm.js";
39
- import { voltageLevelModificationDtoToForm, voltageLevelModificationEmptyFormData, voltageLevelModificationFormSchema, voltageLevelModificationFormToDto } from "./modification/voltageLevelModification.utils.js";
60
+ import { voltageLevelModificationDtoToForm, voltageLevelModificationEmptyFormData, voltageLevelModificationFormSchema, voltageLevelModificationFormToDto, voltageLevelModificationWithMeasurementsDtoToForm, voltageLevelModificationWithMeasurementsFormSchema, voltageLevelModificationWithMeasurementsFormToDto } from "./modification/voltageLevelModification.utils.js";
40
61
  export {
41
62
  MAX_SECTIONS_COUNT,
42
63
  SWITCH_TYPE,
@@ -55,5 +76,8 @@ export {
55
76
  voltageLevelModificationDtoToForm,
56
77
  voltageLevelModificationEmptyFormData,
57
78
  voltageLevelModificationFormSchema,
58
- voltageLevelModificationFormToDto
79
+ voltageLevelModificationFormToDto,
80
+ voltageLevelModificationWithMeasurementsDtoToForm,
81
+ voltageLevelModificationWithMeasurementsFormSchema,
82
+ voltageLevelModificationWithMeasurementsFormToDto
59
83
  };
@@ -1,5 +1,7 @@
1
1
  import { VoltageLevelDto } from './voltageLevelModification.types';
2
+ import { BusbarSectionVMeasurementInfo } from '../../common/measurements/BusbarSectionVoltageMeasurementsForm';
2
3
  export interface VoltageLevelModificationFormProps {
3
4
  voltageLevelToModify?: VoltageLevelDto | null;
5
+ busbarSections?: BusbarSectionVMeasurementInfo[];
4
6
  }
5
- export declare function VoltageLevelModificationForm({ voltageLevelToModify }: Readonly<VoltageLevelModificationFormProps>): import("react/jsx-runtime").JSX.Element;
7
+ export declare function VoltageLevelModificationForm({ voltageLevelToModify, busbarSections, }: Readonly<VoltageLevelModificationFormProps>): import("react/jsx-runtime").JSX.Element;
@@ -1,16 +1,16 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Grid, TextField } from "@mui/material";
1
+ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
+ import { useState } from "react";
3
+ import { Tabs, Tab, Box, Grid, TextField } from "@mui/material";
4
+ import { FormattedMessage } from "react-intl";
3
5
  import { useWatch } from "react-hook-form";
4
- import GridSection from "../../../../components/composite/grid/grid-section.js";
5
- import "@mui/icons-material";
6
- import "react-intl";
7
- import "../../../../components/ui/overflowableText/OverflowableText.js";
8
6
  import { VoltageAdornment, KiloAmpereAdornment } from "../../../../utils/constants/adornments.js";
9
7
  import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
10
8
  import "../../../../utils/conversionUtils.js";
11
9
  import "../../../../utils/types/equipmentType.js";
12
- import "../../../../utils/yupConfig.js";
13
- import "react";
10
+ import "@mui/icons-material";
11
+ import { filledTextField } from "../../common/form.utils.js";
12
+ import { PropertiesForm } from "../../common/properties/PropertiesForm.js";
13
+ import "../../../../components/ui/overflowableText/OverflowableText.js";
14
14
  import "localized-countries";
15
15
  import "localized-countries/data/fr";
16
16
  import "localized-countries/data/en";
@@ -34,113 +34,184 @@ import "../../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js
34
34
  import "../../../../components/ui/snackbarProvider/SnackbarProvider.js";
35
35
  import "mui-nested-menu";
36
36
  import "react-resizable-panels";
37
- import { PropertiesForm } from "../../common/properties/PropertiesForm.js";
38
- import { filledTextField } from "../../common/form.utils.js";
39
37
  import "../../common/properties/propertyUtils.js";
38
+ import GridSection from "../../../../components/composite/grid/grid-section.js";
39
+ import { BusbarSectionVoltageMeasurementsForm } from "../../common/measurements/BusbarSectionVoltageMeasurementsForm.js";
40
40
  import "../../common/regulatingTerminal/RegulatingTerminalForm.js";
41
- function VoltageLevelModificationForm({ voltageLevelToModify }) {
41
+ import { getTabIndicatorStyle, getTabStyle } from "../../../parameters/parameters-style.js";
42
+ import "react-dom";
43
+ import "autosuggest-highlight/match";
44
+ import "autosuggest-highlight/parse";
45
+ import "clsx";
46
+ import "../../../../components/composite/filter/FilterCreationDialog.js";
47
+ import "../../../../components/composite/filter/HeaderFilterForm.js";
48
+ import "../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js";
49
+ import "../../../../components/composite/filter/expert/ExpertFilterForm.js";
50
+ import "../../../../components/composite/filter/expert/ExpertFilterEditionDialog.js";
51
+ import "../../../../components/composite/filter/expert/expertFilterConstants.js";
52
+ import "react-querybuilder";
53
+ import "uuid";
54
+ import "../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js";
55
+ import "../../../../components/composite/filter/utils/filterFormUtils.js";
56
+ import "@react-querybuilder/material";
57
+ import "../../../../components/composite/reactQueryBuilder/CustomReactQueryBuilder.js";
58
+ import "../../../../components/composite/reactQueryBuilder/PropertyValueEditor.js";
59
+ import "../../../../components/composite/agGridTable/BottomRightButtons.js";
60
+ import "../../../../components/composite/customAGGrid/customAggrid.js";
61
+ import "ag-grid-community";
62
+ import "react-papaparse";
63
+ import "react-csv-downloader";
64
+ function VoltageLevelModificationForm({
65
+ voltageLevelToModify,
66
+ busbarSections = []
67
+ }) {
42
68
  const equipmentId = useWatch({ name: FieldConstants.EQUIPMENT_ID });
43
69
  const watchHideSubstationField = useWatch({ name: FieldConstants.HIDE_SUBSTATION_FIELD, defaultValue: true });
44
- return /* @__PURE__ */ jsxs(Grid, { container: true, direction: "column", spacing: 2, children: [
45
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
46
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
47
- TextField,
48
- {
49
- size: "small",
50
- fullWidth: true,
51
- label: "ID",
52
- value: equipmentId ?? "",
53
- InputProps: {
54
- readOnly: true
55
- },
56
- disabled: true,
57
- ...filledTextField
58
- }
59
- ) }),
60
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
61
- TextInput,
62
- {
63
- name: FieldConstants.EQUIPMENT_NAME,
64
- label: "Name",
65
- formProps: filledTextField,
66
- clearable: true,
67
- previousValue: voltageLevelToModify?.name ?? void 0
68
- }
69
- ) }),
70
- !watchHideSubstationField && /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
71
- AutocompleteInput,
72
- {
73
- allowNewValue: true,
74
- forcePopupIcon: true,
75
- name: FieldConstants.SUBSTATION_ID,
76
- label: "SUBSTATION",
77
- options: [voltageLevelToModify?.substationId ?? ""],
78
- inputTransform: (value) => value === null ? "" : value,
79
- outputTransform: (value) => value,
80
- size: "small",
81
- formProps: filledTextField,
82
- disabled: true
83
- }
84
- ) })
85
- ] }) }),
86
- /* @__PURE__ */ jsxs(Grid, { item: true, children: [
87
- /* @__PURE__ */ jsx(GridSection, { title: "VoltageText" }),
88
- /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
70
+ const [tabIndex, setTabIndex] = useState(
71
+ 0
72
+ /* CHARACTERISTICS_TAB */
73
+ );
74
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
75
+ /* @__PURE__ */ jsxs(
76
+ Tabs,
77
+ {
78
+ value: tabIndex,
79
+ variant: "scrollable",
80
+ onChange: (_event, newValue) => setTabIndex(newValue),
81
+ TabIndicatorProps: {
82
+ sx: getTabIndicatorStyle([], tabIndex)
83
+ },
84
+ children: [
85
+ /* @__PURE__ */ jsx(
86
+ Tab,
87
+ {
88
+ label: /* @__PURE__ */ jsx(FormattedMessage, { id: "CharacteristicsTab" }),
89
+ sx: getTabStyle(
90
+ [],
91
+ 0
92
+ /* CHARACTERISTICS_TAB */
93
+ )
94
+ }
95
+ ),
96
+ /* @__PURE__ */ jsx(
97
+ Tab,
98
+ {
99
+ label: /* @__PURE__ */ jsx(FormattedMessage, { id: "StateEstimationTab" }),
100
+ sx: getTabStyle(
101
+ [],
102
+ 1
103
+ /* STATE_ESTIMATION_TAB */
104
+ )
105
+ }
106
+ )
107
+ ]
108
+ }
109
+ ),
110
+ /* @__PURE__ */ jsx(Box, { hidden: tabIndex !== 0, p: 1, children: /* @__PURE__ */ jsxs(Grid, { container: true, direction: "column", spacing: 2, children: [
111
+ /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
89
112
  /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
90
- FloatInput,
113
+ TextField,
91
114
  {
92
- name: FieldConstants.NOMINAL_V,
93
- label: "NominalVoltage",
94
- adornment: VoltageAdornment,
95
- clearable: true,
96
- previousValue: voltageLevelToModify?.nominalV
115
+ size: "small",
116
+ fullWidth: true,
117
+ label: "ID",
118
+ value: equipmentId ?? "",
119
+ InputProps: {
120
+ readOnly: true
121
+ },
122
+ disabled: true,
123
+ ...filledTextField
97
124
  }
98
125
  ) }),
99
126
  /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
100
- FloatInput,
127
+ TextInput,
101
128
  {
102
- name: FieldConstants.LOW_VOLTAGE_LIMIT,
103
- label: "LowVoltageLimit",
104
- adornment: VoltageAdornment,
129
+ name: FieldConstants.EQUIPMENT_NAME,
130
+ label: "Name",
131
+ formProps: filledTextField,
105
132
  clearable: true,
106
- previousValue: voltageLevelToModify?.lowVoltageLimit ?? void 0
133
+ previousValue: voltageLevelToModify?.name ?? void 0
107
134
  }
108
135
  ) }),
109
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
110
- FloatInput,
136
+ !watchHideSubstationField && /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
137
+ AutocompleteInput,
111
138
  {
112
- name: FieldConstants.HIGH_VOLTAGE_LIMIT,
113
- label: "HighVoltageLimit",
114
- adornment: VoltageAdornment,
115
- clearable: true,
116
- previousValue: voltageLevelToModify?.highVoltageLimit ?? void 0
117
- }
118
- ) })
119
- ] }),
120
- /* @__PURE__ */ jsx(GridSection, { title: "ShortCircuit" }),
121
- /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
122
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
123
- FloatInput,
124
- {
125
- name: FieldConstants.LOW_SHORT_CIRCUIT_CURRENT_LIMIT,
126
- label: "LowShortCircuitCurrentLimit",
127
- adornment: KiloAmpereAdornment,
128
- clearable: true,
129
- previousValue: voltageLevelToModify?.identifiableShortCircuit?.ipMin ?? void 0
130
- }
131
- ) }),
132
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
133
- FloatInput,
134
- {
135
- name: FieldConstants.HIGH_SHORT_CIRCUIT_CURRENT_LIMIT,
136
- label: "HighShortCircuitCurrentLimit",
137
- adornment: KiloAmpereAdornment,
138
- clearable: true,
139
- previousValue: voltageLevelToModify?.identifiableShortCircuit?.ipMax ?? void 0
139
+ allowNewValue: true,
140
+ forcePopupIcon: true,
141
+ name: FieldConstants.SUBSTATION_ID,
142
+ label: "SUBSTATION",
143
+ options: [voltageLevelToModify?.substationId ?? ""],
144
+ inputTransform: (value) => value === null ? "" : value,
145
+ outputTransform: (value) => value,
146
+ size: "small",
147
+ formProps: filledTextField,
148
+ disabled: true
140
149
  }
141
150
  ) })
142
- ] }),
143
- /* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "voltageLevel", isModification: true })
151
+ ] }) }),
152
+ /* @__PURE__ */ jsxs(Grid, { item: true, children: [
153
+ /* @__PURE__ */ jsx(GridSection, { title: "VoltageText" }),
154
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
155
+ /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
156
+ FloatInput,
157
+ {
158
+ name: FieldConstants.NOMINAL_V,
159
+ label: "NominalVoltage",
160
+ adornment: VoltageAdornment,
161
+ clearable: true,
162
+ previousValue: voltageLevelToModify?.nominalV
163
+ }
164
+ ) }),
165
+ /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
166
+ FloatInput,
167
+ {
168
+ name: FieldConstants.LOW_VOLTAGE_LIMIT,
169
+ label: "LowVoltageLimit",
170
+ adornment: VoltageAdornment,
171
+ clearable: true,
172
+ previousValue: voltageLevelToModify?.lowVoltageLimit ?? void 0
173
+ }
174
+ ) }),
175
+ /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
176
+ FloatInput,
177
+ {
178
+ name: FieldConstants.HIGH_VOLTAGE_LIMIT,
179
+ label: "HighVoltageLimit",
180
+ adornment: VoltageAdornment,
181
+ clearable: true,
182
+ previousValue: voltageLevelToModify?.highVoltageLimit ?? void 0
183
+ }
184
+ ) })
185
+ ] }),
186
+ /* @__PURE__ */ jsx(GridSection, { title: "ShortCircuit" }),
187
+ /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
188
+ /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
189
+ FloatInput,
190
+ {
191
+ name: FieldConstants.LOW_SHORT_CIRCUIT_CURRENT_LIMIT,
192
+ label: "LowShortCircuitCurrentLimit",
193
+ adornment: KiloAmpereAdornment,
194
+ clearable: true,
195
+ previousValue: voltageLevelToModify?.identifiableShortCircuit?.ipMin ?? void 0
196
+ }
197
+ ) }),
198
+ /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
199
+ FloatInput,
200
+ {
201
+ name: FieldConstants.HIGH_SHORT_CIRCUIT_CURRENT_LIMIT,
202
+ label: "HighShortCircuitCurrentLimit",
203
+ adornment: KiloAmpereAdornment,
204
+ clearable: true,
205
+ previousValue: voltageLevelToModify?.identifiableShortCircuit?.ipMax ?? void 0
206
+ }
207
+ ) })
208
+ ] }),
209
+ /* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "voltageLevel", isModification: true })
210
+ ] })
211
+ ] }) }),
212
+ /* @__PURE__ */ jsxs(Box, { hidden: tabIndex !== 1, p: 1, children: [
213
+ /* @__PURE__ */ jsx(GridSection, { title: "MeasurementsSection" }),
214
+ /* @__PURE__ */ jsx(BusbarSectionVoltageMeasurementsForm, { busbarSections })
144
215
  ] })
145
216
  ] });
146
217
  }
@@ -1,9 +1,12 @@
1
1
  import { VoltageLevelModificationForm } from "./VoltageLevelModificationForm.js";
2
- import { voltageLevelModificationDtoToForm, voltageLevelModificationEmptyFormData, voltageLevelModificationFormSchema, voltageLevelModificationFormToDto } from "./voltageLevelModification.utils.js";
2
+ import { voltageLevelModificationDtoToForm, voltageLevelModificationEmptyFormData, voltageLevelModificationFormSchema, voltageLevelModificationFormToDto, voltageLevelModificationWithMeasurementsDtoToForm, voltageLevelModificationWithMeasurementsFormSchema, voltageLevelModificationWithMeasurementsFormToDto } from "./voltageLevelModification.utils.js";
3
3
  export {
4
4
  VoltageLevelModificationForm,
5
5
  voltageLevelModificationDtoToForm,
6
6
  voltageLevelModificationEmptyFormData,
7
7
  voltageLevelModificationFormSchema,
8
- voltageLevelModificationFormToDto
8
+ voltageLevelModificationFormToDto,
9
+ voltageLevelModificationWithMeasurementsDtoToForm,
10
+ voltageLevelModificationWithMeasurementsFormSchema,
11
+ voltageLevelModificationWithMeasurementsFormToDto
9
12
  };
@@ -2,6 +2,11 @@ import { UUID } from 'node:crypto';
2
2
  import { AttributeModification, ModificationType } from '../../../../utils';
3
3
  import { Property } from '../../common';
4
4
  import { SwitchKind } from '../creation/voltageLevelCreation.types';
5
+ export interface BusbarSectionVMeasurementDto {
6
+ busbarSectionId: string;
7
+ vMeasurementValue?: AttributeModification<number> | null;
8
+ vMeasurementValidity?: AttributeModification<boolean> | null;
9
+ }
5
10
  export interface IdentifiableShortCircuitDto {
6
11
  ipMin: number | null;
7
12
  ipMax: number | null;
@@ -32,4 +37,5 @@ export interface VoltageLevelModificationDto {
32
37
  ipMax?: AttributeModification<number> | null;
33
38
  properties?: Property[] | null;
34
39
  type?: ModificationType;
40
+ busbarSectionVMeasurements?: BusbarSectionVMeasurementDto[] | null;
35
41
  }
@@ -34,3 +34,49 @@ export type VoltageLevelModificationFormData = InferType<typeof voltageLevelModi
34
34
  export declare const voltageLevelModificationEmptyFormData: VoltageLevelModificationFormData;
35
35
  export declare const voltageLevelModificationFormToDto: (formData: VoltageLevelModificationFormData) => VoltageLevelModificationDto;
36
36
  export declare const voltageLevelModificationDtoToForm: (voltageLevelDto: VoltageLevelModificationDto, includePreviousValues?: boolean) => VoltageLevelModificationFormData;
37
+ export declare const voltageLevelModificationWithMeasurementsFormSchema: import('yup').ObjectSchema<{
38
+ equipmentID: string;
39
+ equipmentName: string | null | undefined;
40
+ hideSubstationField: NonNullable<boolean | undefined>;
41
+ substationId: string | null | undefined;
42
+ nominalV: number | null | undefined;
43
+ lowVoltageLimit: number | null | undefined;
44
+ highVoltageLimit: number | null | undefined;
45
+ lowShortCircuitCurrentLimit: number | null | undefined;
46
+ highShortCircuitCurrentLimit: number | null | undefined;
47
+ AdditionalProperties: {
48
+ previousValue?: string | null | undefined;
49
+ value?: string | null | undefined;
50
+ added: NonNullable<boolean | undefined>;
51
+ deletionMark: NonNullable<boolean | undefined>;
52
+ name: string;
53
+ }[] | undefined;
54
+ } & {
55
+ busbarSectionVMeasurements: {
56
+ value: number | null;
57
+ busbarSectionId: string;
58
+ validity: boolean | null;
59
+ }[] | null;
60
+ }, import('yup').AnyObject, {
61
+ equipmentID: undefined;
62
+ equipmentName: undefined;
63
+ hideSubstationField: undefined;
64
+ substationId: undefined;
65
+ nominalV: undefined;
66
+ lowVoltageLimit: undefined;
67
+ highVoltageLimit: undefined;
68
+ lowShortCircuitCurrentLimit: undefined;
69
+ highShortCircuitCurrentLimit: undefined;
70
+ AdditionalProperties: "";
71
+ busbarSectionVMeasurements: "";
72
+ }, "">;
73
+ export type BbsMeasurementItem = {
74
+ busbarSectionId: string;
75
+ value: number | null;
76
+ validity: boolean | null;
77
+ };
78
+ export type VoltageLevelModificationWithMeasurementsFormData = VoltageLevelModificationFormData & {
79
+ busbarSectionVMeasurements: BbsMeasurementItem[] | null;
80
+ };
81
+ export declare const voltageLevelModificationWithMeasurementsDtoToForm: (dto: VoltageLevelModificationDto, includePreviousValues?: boolean) => VoltageLevelModificationWithMeasurementsFormData;
82
+ export declare const voltageLevelModificationWithMeasurementsFormToDto: (formData: VoltageLevelModificationWithMeasurementsFormData) => VoltageLevelModificationDto;