@gridsuite/commons-ui 0.215.0 → 0.216.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.
- package/dist/components/composite/agGridTable/CustomAgGridTable.js +0 -1
- package/dist/components/composite/agGridTable/csvUploader/CsvUploader.js +0 -1
- package/dist/components/composite/customAGGrid/cell-renderers.js +0 -1
- package/dist/components/composite/customAGGrid/separatorCellRenderer.js +0 -1
- package/dist/components/composite/dnd-table/dnd-table-add-rows-dialog.js +0 -1
- package/dist/components/composite/dnd-table/dnd-table.js +0 -1
- package/dist/components/composite/dnd-table-v2/dnd-table-add-rows-dialog.js +0 -1
- package/dist/components/composite/dnd-table-v2/dnd-table-row.js +0 -1
- package/dist/components/composite/dnd-table-v2/dnd-table.js +0 -1
- package/dist/components/composite/filter/FilterCreationDialog.js +1 -2
- package/dist/components/composite/filter/FilterForm.js +0 -1
- package/dist/components/composite/filter/HeaderFilterForm.d.ts +1 -1
- package/dist/components/composite/filter/HeaderFilterForm.js +1 -2
- package/dist/components/composite/filter/expert/ExpertFilterEditionDialog.js +1 -2
- package/dist/components/composite/filter/expert/ExpertFilterForm.d.ts +1 -1
- package/dist/components/composite/filter/expert/ExpertFilterForm.js +1 -2
- package/dist/components/composite/filter/expert/expertFilterConstants.js +0 -1
- package/dist/components/composite/filter/expert/expertFilterUtils.js +0 -1
- package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js +1 -2
- package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.d.ts +1 -1
- package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js +1 -2
- package/dist/components/composite/filter/utils/filterApi.js +0 -1
- package/dist/components/composite/filter/utils/filterFormUtils.js +0 -1
- package/dist/components/composite/reactQueryBuilder/CountryValueEditor.js +0 -1
- package/dist/components/composite/reactQueryBuilder/ElementValueEditor.js +0 -1
- package/dist/components/composite/reactQueryBuilder/OperatorSelector.js +0 -1
- package/dist/components/ui/checkBoxList/CheckBoxListItem.js +0 -1
- package/dist/components/ui/checkBoxList/CheckBoxListItemContent.js +0 -1
- package/dist/components/ui/checkBoxList/DraggableCheckBoxListItem.js +0 -1
- package/dist/components/ui/checkBoxList/DraggableCheckBoxListItemContent.js +0 -1
- package/dist/components/ui/csvDownloader/use-csv-export.js +0 -1
- package/dist/components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js +1 -2
- package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +1 -2
- package/dist/components/ui/dialogs/modifyElementSelection/ModifyElementSelection.js +0 -1
- package/dist/components/ui/directoryItemSelector/DirectoryItemSelector.js +0 -1
- package/dist/components/ui/directoryItemSelector/utils.js +0 -1
- package/dist/components/ui/overflowableText/OverflowableText.js +0 -1
- package/dist/components/ui/reactHookForm/CountrySelectionInput.js +0 -1
- package/dist/components/ui/reactHookForm/DirectoryItemsInput.js +0 -1
- package/dist/components/ui/reactHookForm/OverflowableChipWithHelperText.js +0 -1
- package/dist/components/ui/reactHookForm/chip-items-input.js +0 -1
- package/dist/components/ui/reactHookForm/numbers/RangeInput.d.ts +2 -2
- package/dist/components/ui/reactHookForm/numbers/RangeInput.js +1 -2
- package/dist/components/ui/reactHookForm/tableInputs/table-numerical-input.js +0 -1
- package/dist/components/ui/reactHookForm/text/DescriptionField.js +0 -1
- package/dist/configureYup.d.ts +1 -0
- package/dist/configureYup.js +22 -0
- package/dist/features/index.js +7 -3
- package/dist/features/network-modification-table/network-modifications-table.js +0 -1
- package/dist/features/network-modification-table/renderers/description-cell.js +0 -1
- package/dist/features/network-modification-table/renderers/name-cell.js +0 -1
- package/dist/features/network-modification-table/renderers/root-network-chip-cell.js +0 -1
- package/dist/features/network-modification-table/renderers/switch-cell.js +0 -1
- package/dist/features/network-modification-table/row/drag-row-clone.js +0 -1
- package/dist/features/network-modification-table/row/modification-row.js +0 -1
- package/dist/features/network-modification-table/use-modifications-drag-and-drop.js +0 -1
- package/dist/features/network-modification-table/utils.js +0 -1
- package/dist/features/network-modifications/battery/creation/BatteryCreationForm.js +23 -2
- package/dist/features/network-modifications/battery/creation/batteryCreation.utils.js +26 -6
- package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-constants.js +0 -1
- package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-form.js +0 -1
- package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-utils.d.ts +7 -1
- package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-utils.js +5 -6
- package/dist/features/network-modifications/by-filter/assignment/modification-by-assignment-form.js +0 -1
- package/dist/features/network-modifications/by-filter/assignment/modificationByAssignment.utils.d.ts +9 -3
- package/dist/features/network-modifications/by-filter/assignment/modificationByAssignment.utils.js +1 -3
- package/dist/features/network-modifications/by-filter/deletion/ByFilterDeletionForm.js +0 -1
- package/dist/features/network-modifications/by-filter/deletion/byFilterDeletion.utils.d.ts +9 -3
- package/dist/features/network-modifications/by-filter/deletion/byFilterDeletion.utils.js +2 -3
- package/dist/features/network-modifications/common/activePowerControl/ActivePowerControlForm.js +0 -1
- package/dist/features/network-modifications/common/activePowerControl/activePowerControlForm.utils.js +3 -5
- package/dist/features/network-modifications/common/connectivity/BranchConnectivityForm.js +0 -1
- package/dist/features/network-modifications/common/connectivity/ConnectivityForm.js +0 -1
- package/dist/features/network-modifications/common/connectivity/PositionForm.js +0 -1
- package/dist/features/network-modifications/common/connectivity/VoltageLevelConnectivityForm.js +0 -1
- package/dist/features/network-modifications/common/connectivity/connectivityForm.utils.js +3 -5
- package/dist/features/network-modifications/common/index.js +2 -0
- package/dist/features/network-modifications/common/measurements/BusbarSectionVoltageMeasurementsForm.d.ts +10 -0
- package/dist/features/network-modifications/common/measurements/BusbarSectionVoltageMeasurementsForm.js +99 -0
- package/dist/features/network-modifications/common/measurements/PowerMeasurementsForm.js +0 -1
- package/dist/features/network-modifications/common/measurements/PowerWithValidityForm.js +0 -1
- package/dist/features/network-modifications/common/measurements/branchActiveReactivePowerForm.utils.js +0 -1
- package/dist/features/network-modifications/common/measurements/index.d.ts +1 -0
- package/dist/features/network-modifications/common/measurements/index.js +2 -0
- package/dist/features/network-modifications/common/measurements/injectionActiveReactivePowerForm.utils.js +0 -1
- package/dist/features/network-modifications/common/measurements/powerWithValidity.utils.js +1 -3
- package/dist/features/network-modifications/common/properties/PropertiesForm.js +0 -1
- package/dist/features/network-modifications/common/properties/PropertyForm.js +0 -1
- package/dist/features/network-modifications/common/properties/propertyUtils.js +9 -10
- package/dist/features/network-modifications/common/reactiveLimits/ReactiveLimitsForm.js +0 -1
- package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveRowForm.js +0 -1
- package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.js +0 -1
- package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/reactiveCapability.utils.js +3 -5
- package/dist/features/network-modifications/common/reactiveLimits/reactiveLimits.utils.js +3 -5
- package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.js +0 -1
- package/dist/features/network-modifications/common/regulatingTerminal/regulatingTerminal.utils.js +0 -1
- package/dist/features/network-modifications/common/setpoints/SetPointsForm.js +0 -1
- package/dist/features/network-modifications/common/setpoints/setPoints.utils.js +5 -6
- package/dist/features/network-modifications/common/shortCircuit/ShortCircuitForm.js +0 -1
- package/dist/features/network-modifications/common/shortCircuit/shortCircuitForm.utils.js +3 -5
- package/dist/features/network-modifications/common/voltageRegulation/VoltageRegulationForm.js +0 -1
- package/dist/features/network-modifications/common/voltageRegulation/voltageRegulation.utils.js +6 -8
- package/dist/features/network-modifications/equipmentDeletion/EquipmentDeletionForm.js +22 -1
- package/dist/features/network-modifications/equipmentDeletion/equipmentDeletion.utils.js +2 -4
- package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/HvdcLccDeletionSpecificForm.js +0 -1
- package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.js +0 -1
- package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/hvdcLccDeletion.utils.js +3 -5
- package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/useHvdcLccDeletion.js +0 -1
- package/dist/features/network-modifications/index.js +7 -3
- package/dist/features/network-modifications/load/common/LoadDialogHeader.js +22 -1
- package/dist/features/network-modifications/load/common/load.utils.js +0 -1
- package/dist/features/network-modifications/load/creation/loadCreation.utils.js +4 -6
- package/dist/features/network-modifications/load/modification/loadModification.utils.js +22 -1
- package/dist/features/network-modifications/shunt-compensator/common/CharacteristicsForm.js +0 -1
- package/dist/features/network-modifications/shunt-compensator/common/characteristicsForm.utils.js +16 -18
- package/dist/features/network-modifications/shunt-compensator/creation/ShuntCompensatorCreationForm.js +22 -1
- package/dist/features/network-modifications/shunt-compensator/creation/shuntCompensatorCreation.utils.js +24 -4
- package/dist/features/network-modifications/substation/creation/SubstationCreationForm.js +22 -1
- package/dist/features/network-modifications/substation/creation/substationCreation.utils.js +2 -4
- package/dist/features/network-modifications/substation/modification/SubstationModificationForm.js +22 -1
- package/dist/features/network-modifications/substation/modification/substationModification.utils.d.ts +7 -1
- package/dist/features/network-modifications/substation/modification/substationModification.utils.js +1 -2
- package/dist/features/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +22 -1
- package/dist/features/network-modifications/voltageLevel/creation/index.js +22 -1
- package/dist/features/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.js +0 -1
- package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.js +0 -1
- package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/couplingOmnibus/CouplingOmnibusCreation.js +0 -1
- package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/couplingOmnibus/CouplingOmnibusForm.js +0 -1
- package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js +0 -1
- package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationCreationSection.js +22 -1
- package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.js +0 -1
- package/dist/features/network-modifications/voltageLevel/creation/voltageLevel.constants.js +0 -1
- package/dist/features/network-modifications/voltageLevel/creation/voltageLevelCreation.utils.js +44 -24
- package/dist/features/network-modifications/voltageLevel/index.js +27 -3
- package/dist/features/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.d.ts +3 -1
- package/dist/features/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js +170 -99
- package/dist/features/network-modifications/voltageLevel/modification/index.js +5 -2
- package/dist/features/network-modifications/voltageLevel/modification/voltageLevelModification.types.d.ts +6 -0
- package/dist/features/network-modifications/voltageLevel/modification/voltageLevelModification.utils.d.ts +46 -0
- package/dist/features/network-modifications/voltageLevel/modification/voltageLevelModification.utils.js +41 -11
- package/dist/features/node/build-status-chip.js +0 -1
- package/dist/features/parameters/common/ProviderParam.js +0 -1
- package/dist/features/parameters/common/contingency-table/columns-definitions.d.ts +1 -1
- package/dist/features/parameters/common/contingency-table/columns-definitions.js +1 -2
- package/dist/features/parameters/common/contingency-table/contingency-table.js +0 -1
- package/dist/features/parameters/common/hook/use-parameters-form.js +0 -1
- package/dist/features/parameters/common/limitreductions/columns-definitions.d.ts +7 -1
- package/dist/features/parameters/common/limitreductions/columns-definitions.js +0 -1
- package/dist/features/parameters/common/limitreductions/limit-reduction-table-cell.js +0 -1
- package/dist/features/parameters/common/limitreductions/limit-reductions-table-form.js +0 -1
- package/dist/features/parameters/common/name-element-editor/name-element-editor-form.js +0 -1
- package/dist/features/parameters/common/name-element-editor/name-element-editor-utils.d.ts +7 -1
- package/dist/features/parameters/common/name-element-editor/name-element-editor-utils.js +1 -2
- package/dist/features/parameters/common/parameter-field.js +0 -1
- package/dist/features/parameters/common/parameter-table/table-cell.js +0 -1
- package/dist/features/parameters/common/parameter-table-field/parameter-table-field.js +0 -1
- package/dist/features/parameters/common/parameters-creation-dialog.js +0 -1
- package/dist/features/parameters/common/utils.d.ts +3 -4
- package/dist/features/parameters/common/utils.js +1 -2
- package/dist/features/parameters/common/voltage-level-table/custom-voltage-level-table-cell.js +0 -1
- package/dist/features/parameters/common/widget/parameter-float.js +0 -1
- package/dist/features/parameters/common/widget/parameter-line-directory-items-input.js +0 -1
- package/dist/features/parameters/common/widget/parameter-line-slider.js +0 -1
- package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +0 -1
- package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-inline.js +0 -1
- package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.d.ts +1 -1
- package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.js +1 -2
- package/dist/features/parameters/dynamic-margin-calculation/time-delay-parameters.d.ts +7 -1
- package/dist/features/parameters/dynamic-margin-calculation/time-delay-parameters.js +1 -2
- package/dist/features/parameters/dynamic-margin-calculation/use-dynamic-margin-calculation-parameters-form.js +1 -2
- package/dist/features/parameters/dynamic-security-analysis/contingency-parameters.js +0 -1
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-inline.js +0 -1
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +0 -1
- package/dist/features/parameters/dynamic-security-analysis/scenario-parameters.js +0 -1
- package/dist/features/parameters/dynamic-security-analysis/use-dynamic-security-analysis-parameters-form.d.ts +1 -1
- package/dist/features/parameters/dynamic-security-analysis/use-dynamic-security-analysis-parameters-form.js +1 -2
- package/dist/features/parameters/dynamic-simulation/curve/curve-parameters-utils.d.ts +7 -1
- package/dist/features/parameters/dynamic-simulation/curve/curve-parameters-utils.js +1 -2
- package/dist/features/parameters/dynamic-simulation/curve/curve-parameters.js +0 -1
- package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-preview.js +0 -1
- package/dist/features/parameters/dynamic-simulation/curve/dialog/equipment-filter.js +0 -1
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-inline.js +0 -1
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +0 -1
- package/dist/features/parameters/dynamic-simulation/mapping/mapping-parameters-utils.d.ts +7 -1
- package/dist/features/parameters/dynamic-simulation/mapping/mapping-parameters-utils.js +1 -2
- package/dist/features/parameters/dynamic-simulation/mapping/mapping-parameters.js +0 -1
- package/dist/features/parameters/dynamic-simulation/network/network-parameters-utils.d.ts +7 -1
- package/dist/features/parameters/dynamic-simulation/network/network-parameters-utils.js +1 -2
- package/dist/features/parameters/dynamic-simulation/network/network-parameters.js +0 -1
- package/dist/features/parameters/dynamic-simulation/solver/common-solver/common-solver-parameters-utils.d.ts +7 -1
- package/dist/features/parameters/dynamic-simulation/solver/common-solver/common-solver-parameters-utils.js +1 -2
- package/dist/features/parameters/dynamic-simulation/solver/common-solver/common-solver-parameters.js +0 -1
- package/dist/features/parameters/dynamic-simulation/solver/ida-solver/ida-solver-parameters-utils.d.ts +7 -1
- package/dist/features/parameters/dynamic-simulation/solver/ida-solver/ida-solver-parameters-utils.js +1 -2
- package/dist/features/parameters/dynamic-simulation/solver/ida-solver/ida-solver-parameters.js +1 -1
- package/dist/features/parameters/dynamic-simulation/solver/sim-solver/simplified-solver-parameters-utils.d.ts +7 -1
- package/dist/features/parameters/dynamic-simulation/solver/sim-solver/simplified-solver-parameters-utils.js +1 -2
- package/dist/features/parameters/dynamic-simulation/solver/sim-solver/simplified-solver-parameters.js +1 -1
- package/dist/features/parameters/dynamic-simulation/solver/solver-parameters-utils.d.ts +7 -1
- package/dist/features/parameters/dynamic-simulation/solver/solver-parameters-utils.js +1 -2
- package/dist/features/parameters/dynamic-simulation/solver/solver-parameters.js +1 -1
- package/dist/features/parameters/dynamic-simulation/time-delay/time-delay-parameters-utils.d.ts +7 -1
- package/dist/features/parameters/dynamic-simulation/time-delay/time-delay-parameters-utils.js +1 -2
- package/dist/features/parameters/dynamic-simulation/time-delay/time-delay-parameters.js +0 -1
- package/dist/features/parameters/dynamic-simulation/use-dynamic-simulation-parameters-form.js +1 -2
- package/dist/features/parameters/loadflow/load-flow-general-parameters.js +0 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-content.js +0 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-dialog.js +0 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-form.js +0 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-header.js +0 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-inline.js +0 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-utils.d.ts +1 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-utils.js +1 -2
- package/dist/features/parameters/loadflow/use-load-flow-parameters-form.d.ts +2 -2
- package/dist/features/parameters/loadflow/use-load-flow-parameters-form.js +1 -2
- package/dist/features/parameters/network-visualizations/map-parameters.js +0 -1
- package/dist/features/parameters/network-visualizations/network-area-diagram-parameters.js +0 -1
- package/dist/features/parameters/network-visualizations/network-visualizations-form.js +0 -1
- package/dist/features/parameters/network-visualizations/network-visualizations-parameters-dialog.js +1 -2
- package/dist/features/parameters/network-visualizations/network-visualizations-parameters-inline.js +0 -1
- package/dist/features/parameters/network-visualizations/single-line-diagram-parameters.js +0 -1
- package/dist/features/parameters/network-visualizations/use-network-visualizations-parameters-form.d.ts +2 -2
- package/dist/features/parameters/network-visualizations/use-network-visualizations-parameters-form.js +1 -2
- package/dist/features/parameters/pcc-min/pcc-min-form-utils.js +0 -1
- package/dist/features/parameters/pcc-min/pcc-min-parameters-dialog.js +1 -2
- package/dist/features/parameters/pcc-min/pcc-min-parameters-form.js +0 -1
- package/dist/features/parameters/pcc-min/pcc-min-parameters-inline.js +0 -1
- package/dist/features/parameters/pcc-min/use-pcc-min-parameters-form.d.ts +2 -2
- package/dist/features/parameters/pcc-min/use-pcc-min-parameters-form.js +1 -2
- package/dist/features/parameters/security-analysis/columns-definitions.d.ts +7 -1
- package/dist/features/parameters/security-analysis/columns-definitions.js +1 -2
- package/dist/features/parameters/security-analysis/security-analysis-parameters-dialog.js +0 -1
- package/dist/features/parameters/security-analysis/security-analysis-parameters-form.js +0 -1
- package/dist/features/parameters/security-analysis/security-analysis-parameters-inline.js +0 -1
- package/dist/features/parameters/security-analysis/security-analysis-parameters-selector.js +0 -1
- package/dist/features/parameters/security-analysis/security-analysis-violations-hiding.js +0 -1
- package/dist/features/parameters/security-analysis/use-security-analysis-parameters-form.js +0 -1
- package/dist/features/parameters/sensi/columns-definitions.js +0 -1
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-dialog.js +0 -1
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.js +0 -1
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-inline.js +0 -1
- package/dist/features/parameters/sensi/sensitivity-parameters-fields.js +0 -1
- package/dist/features/parameters/sensi/sensitivity-parameters-selector.js +0 -1
- package/dist/features/parameters/sensi/use-sensitivity-analysis-parameters.js +0 -1
- package/dist/features/parameters/sensi/utils.d.ts +1 -1
- package/dist/features/parameters/sensi/utils.js +1 -2
- package/dist/features/parameters/short-circuit/columns-definition.js +0 -1
- package/dist/features/parameters/short-circuit/short-circuit-general-tab-panel.js +0 -1
- package/dist/features/parameters/short-circuit/short-circuit-icc-cluster-table-cell.js +0 -1
- package/dist/features/parameters/short-circuit/short-circuit-icc-material-table-cell.js +0 -1
- package/dist/features/parameters/short-circuit/short-circuit-parameters-content.js +0 -1
- package/dist/features/parameters/short-circuit/short-circuit-parameters-dialog.js +1 -2
- package/dist/features/parameters/short-circuit/short-circuit-parameters-form.js +0 -1
- package/dist/features/parameters/short-circuit/short-circuit-parameters-inline.js +0 -1
- package/dist/features/parameters/short-circuit/short-circuit-parameters-utils.d.ts +7 -1
- package/dist/features/parameters/short-circuit/short-circuit-parameters-utils.js +1 -2
- package/dist/features/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +0 -1
- package/dist/features/parameters/short-circuit/short-circuit-study-area-tab-panel.js +0 -1
- package/dist/features/parameters/short-circuit/use-short-circuit-parameters-form.d.ts +2 -2
- package/dist/features/parameters/short-circuit/use-short-circuit-parameters-form.js +1 -2
- package/dist/features/parameters/voltage-init/equipment-selection-parameters.js +0 -1
- package/dist/features/parameters/voltage-init/general-parameters.js +0 -1
- package/dist/features/parameters/voltage-init/use-voltage-init-parameters-form.d.ts +2 -2
- package/dist/features/parameters/voltage-init/use-voltage-init-parameters-form.js +1 -2
- package/dist/features/parameters/voltage-init/voltage-init-form-utils.js +0 -1
- package/dist/features/parameters/voltage-init/voltage-init-parameters-dialog.js +1 -2
- package/dist/features/parameters/voltage-init/voltage-init-parameters-form.js +0 -1
- package/dist/features/parameters/voltage-init/voltage-init-parameters-inline.js +0 -1
- package/dist/features/parameters/voltage-init/voltage-limits-parameters.js +0 -1
- package/dist/hooks/use-unique-name-validation.js +0 -1
- package/dist/hooks/useConfidentialityWarning.js +0 -1
- package/dist/hooks/useGetLabelEquipmentTypes.js +0 -1
- package/dist/hooks/useModificationLabelComputer.js +0 -1
- package/dist/hooks/usePredefinedProperties.js +0 -1
- package/dist/index.js +6 -4
- package/dist/services/config.js +0 -1
- package/dist/services/sensitivity-analysis.js +0 -1
- package/dist/translations/en/networkModificationsEn.d.ts +1 -0
- package/dist/translations/en/networkModificationsEn.js +1 -1
- package/dist/translations/fr/networkModificationsFr.d.ts +1 -0
- package/dist/translations/fr/networkModificationsFr.js +1 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +1 -4
- package/package.json +13 -5
- package/dist/utils/yupConfig.d.ts +0 -8
- package/dist/utils/yupConfig.js +0 -15
package/dist/features/network-modifications/voltageLevel/creation/voltageLevelCreation.utils.js
CHANGED
|
@@ -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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
103
|
-
[FieldConstants.NOMINAL_V]: number().
|
|
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(
|
|
125
|
+
then: (schema) => schema.min(0, "mustBeGreaterOrEqualToZero").required()
|
|
106
126
|
}),
|
|
107
|
-
[FieldConstants.LOW_VOLTAGE_LIMIT]: number().
|
|
108
|
-
[FieldConstants.HIGH_VOLTAGE_LIMIT]: number().
|
|
109
|
-
[FieldConstants.LOW_SHORT_CIRCUIT_CURRENT_LIMIT]: number().
|
|
110
|
-
[FieldConstants.HIGH_SHORT_CIRCUIT_CURRENT_LIMIT]: number().
|
|
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(
|
|
132
|
+
then: (schema) => schema.required()
|
|
113
133
|
}),
|
|
114
|
-
[FieldConstants.HIDE_BUS_BAR_SECTION]: boolean().required(
|
|
115
|
-
[FieldConstants.BUS_BAR_COUNT]: number().
|
|
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(
|
|
137
|
+
then: (schema) => schema.min(1, "BusBarCountMustBeGreaterThanOrEqualToOne").required()
|
|
118
138
|
}),
|
|
119
|
-
[FieldConstants.SECTION_COUNT]: number().
|
|
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(
|
|
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(
|
|
145
|
+
then: (schema) => schema.required()
|
|
126
146
|
}),
|
|
127
147
|
[FieldConstants.SWITCH_KINDS]: array().of(
|
|
128
148
|
object().shape({
|
|
129
|
-
[FieldConstants.SWITCH_KIND]: string().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(
|
|
136
|
-
[FieldConstants.BUS_BAR_SECTION_ID2]: string().nullable().required(
|
|
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 {
|
|
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 "
|
|
13
|
-
import "
|
|
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
|
-
|
|
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
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
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
|
-
|
|
113
|
+
TextField,
|
|
91
114
|
{
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
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
|
-
|
|
127
|
+
TextInput,
|
|
101
128
|
{
|
|
102
|
-
name: FieldConstants.
|
|
103
|
-
label: "
|
|
104
|
-
|
|
129
|
+
name: FieldConstants.EQUIPMENT_NAME,
|
|
130
|
+
label: "Name",
|
|
131
|
+
formProps: filledTextField,
|
|
105
132
|
clearable: true,
|
|
106
|
-
previousValue: voltageLevelToModify?.
|
|
133
|
+
previousValue: voltageLevelToModify?.name ?? void 0
|
|
107
134
|
}
|
|
108
135
|
) }),
|
|
109
|
-
/* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
|
|
110
|
-
|
|
136
|
+
!watchHideSubstationField && /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
|
|
137
|
+
AutocompleteInput,
|
|
111
138
|
{
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
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__ */
|
|
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;
|