@gridsuite/commons-ui 0.265.0 → 0.267.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/dnd-table/dnd-table-add-rows-dialog.js +1 -1
- package/dist/components/composite/dnd-table/dnd-table-row.js +1 -1
- package/dist/components/composite/dnd-table/dnd-table.js +1 -1
- package/dist/components/composite/filter/FilterForm.js +1 -1
- package/dist/components/composite/filter/HeaderFilterForm.js +1 -1
- package/dist/components/composite/filter/expert/ExpertFilterForm.js +1 -1
- package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js +1 -1
- package/dist/components/composite/report/report-viewer/log-table/log-table.js +1 -1
- package/dist/components/ui/csvPicker/csv-picker-confirmation-dialog.js +1 -1
- package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +1 -1
- package/dist/components/ui/dialogs/name-element-editor/name-element-editor-utils.js +1 -1
- package/dist/components/ui/icons/DatasetLinkedIcon.d.ts +2 -0
- package/dist/components/ui/icons/DatasetLinkedIcon.js +9 -0
- package/dist/components/ui/icons/EditNoteIcon.js +1 -1
- package/dist/components/ui/inputs/checkbox-autocomplete/checkbox-autocomplete.js +2 -1
- package/dist/components/ui/reactHookForm/CheckboxNullableInput.js +4 -2
- package/dist/components/ui/reactHookForm/autocompleteInputs/MultipleAutocompleteInput.js +3 -2
- package/dist/components/ui/reactHookForm/booleans/BooleanInput.d.ts +1 -1
- package/dist/components/ui/reactHookForm/booleans/BooleanInput.js +4 -6
- package/dist/components/ui/reactHookForm/tableInputs/table-numerical-input.js +4 -2
- package/dist/components/ui/reactHookForm/tableInputs/table-text-input.d.ts +1 -1
- package/dist/components/ui/reactHookForm/tableInputs/table-text-input.js +2 -3
- package/dist/components/ui/reactHookForm/text/ExpandingTextField.js +15 -13
- package/dist/components/ui/reactHookForm/text/TextInput.js +4 -2
- package/dist/components/ui/reactHookForm/text/UniqueNameInput.js +4 -2
- package/dist/components/ui/reactHookForm/utils/TextFieldWithAdornment.js +2 -1
- package/dist/features/global-filter/ui/global-filter-dropdown-panel.js +1 -1
- package/dist/features/global-filter/ui/global-filter-panel.js +1 -1
- package/dist/features/global-filter/ui/selected-global-filters.js +1 -1
- package/dist/features/index.js +13 -4
- package/dist/features/network-modification-table/columns-definition.d.ts +4 -0
- package/dist/features/network-modification-table/columns-definition.js +4 -0
- package/dist/features/network-modification-table/index.js +5 -3
- package/dist/features/network-modification-table/network-modification-table-styles.js +2 -2
- package/dist/features/network-modification-table/network-modifications-table.d.ts +1 -1
- package/dist/features/network-modification-table/network-modifications-table.js +15 -12
- package/dist/features/network-modification-table/renderers/cell-renderers.d.ts +1 -0
- package/dist/features/network-modification-table/renderers/cell-renderers.js +10 -0
- package/dist/features/network-modification-table/renderers/index.js +2 -1
- package/dist/features/network-modification-table/renderers/name-cell.js +3 -3
- package/dist/features/network-modification-table/renderers/reference-link-cell.d.ts +7 -0
- package/dist/features/network-modification-table/renderers/reference-link-cell.js +128 -0
- package/dist/features/network-modification-table/renderers/root-network-chip-cell.js +3 -1
- package/dist/features/network-modification-table/row/modification-row.js +76 -68
- package/dist/features/network-modification-table/use-modifications-drag-and-drop.js +40 -22
- package/dist/features/network-modification-table/use-modifications-selection.js +14 -14
- package/dist/features/network-modification-table/utils.d.ts +20 -12
- package/dist/features/network-modification-table/utils.js +102 -48
- package/dist/features/network-modifications/battery/creation/BatteryCreationForm.js +1 -1
- package/dist/features/network-modifications/battery/creation/batteryCreation.utils.js +1 -1
- package/dist/features/network-modifications/battery/modification/BatteryDialogHeader.js +1 -1
- package/dist/features/network-modifications/battery/modification/BatteryDialogTabsContent.js +1 -1
- package/dist/features/network-modifications/battery/modification/batteryModification.utils.js +1 -1
- package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-form.js +1 -1
- package/dist/features/network-modifications/by-filter/assignment/modification-by-assignment-form.js +1 -1
- package/dist/features/network-modifications/by-filter/deletion/ByFilterDeletionForm.js +1 -1
- package/dist/features/network-modifications/by-filter/formula/formula/formula-form.js +1 -1
- package/dist/features/network-modifications/by-filter/formula/formula/reference-autocomplete-input.js +1 -1
- package/dist/features/network-modifications/by-filter/formula/modification-by-formula-form.js +1 -1
- package/dist/features/network-modifications/common/activePowerControl/ActivePowerControlForm.js +1 -1
- package/dist/features/network-modifications/common/connectivity/ConnectivityForm.js +1 -1
- package/dist/features/network-modifications/common/connectivity/PositionForm.js +1 -1
- package/dist/features/network-modifications/common/connectivity/VoltageLevelConnectivityForm.js +1 -1
- package/dist/features/network-modifications/common/connectivity/connectivity.type.d.ts +1 -1
- package/dist/features/network-modifications/common/currentLimits/LimitsPane.js +1 -1
- package/dist/features/network-modifications/common/currentLimits/SelectedOperationalLimitGroup.js +1 -1
- package/dist/features/network-modifications/common/currentLimits/limitsEditor/LimitsEditor.js +1 -1
- package/dist/features/network-modifications/common/currentLimits/limitsEditor/LimitsPropertiesSideStack.js +1 -1
- package/dist/features/network-modifications/common/currentLimits/limitsEditor/TemporaryLimitsTable.js +1 -1
- package/dist/features/network-modifications/common/currentLimits/limitsPane.utils.js +1 -1
- package/dist/features/network-modifications/common/measurements/BusbarSectionVoltageMeasurementsForm.js +1 -1
- package/dist/features/network-modifications/common/measurements/PowerWithValidityForm.js +1 -1
- package/dist/features/network-modifications/common/properties/PropertiesForm.js +1 -1
- package/dist/features/network-modifications/common/properties/PropertyForm.js +1 -1
- package/dist/features/network-modifications/common/reactiveLimits/ReactiveLimitsForm.js +1 -1
- package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveRowForm.js +1 -1
- package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.js +1 -1
- package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.js +1 -1
- package/dist/features/network-modifications/common/setpoints/SetPointsForm.js +1 -1
- package/dist/features/network-modifications/common/shortCircuit/ShortCircuitForm.js +1 -1
- package/dist/features/network-modifications/common/voltageRegulation/VoltageRegulationForm.js +1 -1
- package/dist/features/network-modifications/equipmentDeletion/EquipmentDeletionForm.js +1 -1
- package/dist/features/network-modifications/equipmentDeletion/equipmentDeletion.utils.js +1 -1
- package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.js +1 -1
- package/dist/features/network-modifications/generator/creation/GeneratorCreationForm.js +1 -1
- package/dist/features/network-modifications/generator/creation/generatorCreation.utils.js +1 -1
- package/dist/features/network-modifications/generator/modification/GeneratorDialogHeader.js +1 -1
- package/dist/features/network-modifications/generator/modification/GeneratorDialogTabsContent.js +1 -1
- package/dist/features/network-modifications/generator/modification/generatorModification.utils.js +1 -1
- package/dist/features/network-modifications/index.js +8 -1
- package/dist/features/network-modifications/line/characteristics/LineCharacteristicsPane.js +1 -1
- package/dist/features/network-modifications/line/common/LineDialogHeader.js +1 -1
- package/dist/features/network-modifications/line/common/LineDialogTabsContent.js +1 -1
- package/dist/features/network-modifications/line/creation/lineCreation.utils.js +1 -1
- package/dist/features/network-modifications/line/modification/lineModification.utils.js +1 -1
- package/dist/features/network-modifications/load/common/LoadDialogHeader.js +1 -1
- package/dist/features/network-modifications/load/creation/loadCreation.utils.js +1 -1
- package/dist/features/network-modifications/load/modification/loadModification.utils.js +1 -1
- package/dist/features/network-modifications/shunt-compensator/common/CharacteristicsForm.js +1 -1
- package/dist/features/network-modifications/shunt-compensator/creation/ShuntCompensatorCreationForm.js +1 -1
- package/dist/features/network-modifications/shunt-compensator/creation/shuntCompensatorCreation.utils.js +1 -1
- package/dist/features/network-modifications/shunt-compensator/modification/ShuntCompensatorModificationForm.js +1 -1
- package/dist/features/network-modifications/shunt-compensator/modification/shuntCompensatorModification.utils.js +1 -1
- package/dist/features/network-modifications/substation/creation/SubstationCreationForm.js +1 -1
- package/dist/features/network-modifications/substation/modification/SubstationModificationForm.js +1 -1
- package/dist/features/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +1 -1
- package/dist/features/network-modifications/voltageLevel/creation/index.js +1 -1
- package/dist/features/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.js +1 -1
- package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.js +1 -1
- package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/couplingOmnibus/CouplingOmnibusForm.js +1 -1
- package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js +1 -1
- package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationCreationSection.js +1 -1
- package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.js +1 -1
- package/dist/features/network-modifications/voltageLevel/creation/voltageLevelCreation.utils.js +1 -1
- package/dist/features/network-modifications/voltageLevel/index.d.ts +1 -0
- package/dist/features/network-modifications/voltageLevel/index.js +8 -1
- package/dist/features/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js +1 -1
- package/dist/features/network-modifications/voltageLevel/topology/CreateVoltageLevelTopologyForm.d.ts +6 -0
- package/dist/features/network-modifications/voltageLevel/topology/CreateVoltageLevelTopologyForm.js +135 -0
- package/dist/features/network-modifications/voltageLevel/topology/index.d.ts +9 -0
- package/dist/features/network-modifications/voltageLevel/topology/index.js +9 -0
- package/dist/features/network-modifications/voltageLevel/topology/voltageLevelTopologyCreation.types.d.ts +8 -0
- package/dist/features/network-modifications/voltageLevel/topology/voltageLevelTopologyCreation.types.js +1 -0
- package/dist/features/network-modifications/voltageLevel/topology/voltageLevelTopologyCreation.utils.d.ts +25 -0
- package/dist/features/network-modifications/voltageLevel/topology/voltageLevelTopologyCreation.utils.js +48 -0
- package/dist/features/parameters/common/contingency-table/columns-definitions.js +1 -1
- package/dist/features/parameters/common/limitreductions/limit-reduction-table-cell.js +1 -1
- package/dist/features/parameters/common/limitreductions/limit-reductions-table-form.js +1 -1
- package/dist/features/parameters/common/parameter-field.js +1 -1
- package/dist/features/parameters/common/parameter-layout/parameter-layout.js +1 -1
- package/dist/features/parameters/common/parameter-table-field/parameter-table-field.js +1 -1
- package/dist/features/parameters/common/parameters-creation-dialog.js +1 -1
- package/dist/features/parameters/common/provider-param.js +1 -1
- package/dist/features/parameters/common/voltage-level-table/custom-voltage-level-table-cell.js +1 -1
- package/dist/features/parameters/common/widget/parameter-float.js +1 -1
- package/dist/features/parameters/common/widget/parameter-line-directory-items-input.js +1 -1
- package/dist/features/parameters/common/widget/parameter-line-slider.js +1 -1
- package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +1 -1
- package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-inline.js +1 -1
- package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.js +1 -1
- package/dist/features/parameters/dynamic-margin-calculation/use-dynamic-margin-calculation-parameters-form.js +1 -1
- package/dist/features/parameters/dynamic-security-analysis/contingency-parameters.js +1 -1
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-inline.js +1 -1
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +1 -1
- package/dist/features/parameters/dynamic-security-analysis/use-dynamic-security-analysis-parameters-form.js +1 -1
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-inline.js +1 -1
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +1 -1
- package/dist/features/parameters/dynamic-simulation/mapping/mapping-parameters-utils.js +1 -1
- package/dist/features/parameters/dynamic-simulation/mapping/mapping-parameters.js +1 -1
- package/dist/features/parameters/dynamic-simulation/use-dynamic-simulation-parameters-form.js +1 -1
- package/dist/features/parameters/loadflow/load-flow-advanced-parameters.js +1 -1
- package/dist/features/parameters/loadflow/load-flow-general-parameters.js +1 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-content.js +1 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-dialog.js +1 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-header.js +1 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-inline.js +1 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-utils.js +1 -1
- package/dist/features/parameters/loadflow/load-flow-provider-specific-parameters.js +1 -1
- package/dist/features/parameters/loadflow/use-load-flow-parameters-form.js +1 -1
- package/dist/features/parameters/network-visualizations/map-parameters.js +1 -1
- package/dist/features/parameters/network-visualizations/network-area-diagram-parameters.js +1 -1
- package/dist/features/parameters/network-visualizations/network-visualizations-form.js +1 -1
- package/dist/features/parameters/network-visualizations/network-visualizations-parameters-dialog.js +1 -1
- package/dist/features/parameters/network-visualizations/network-visualizations-parameters-inline.js +1 -1
- package/dist/features/parameters/network-visualizations/single-line-diagram-parameters.js +1 -1
- package/dist/features/parameters/network-visualizations/use-network-visualizations-parameters-form.js +1 -1
- package/dist/features/parameters/pcc-min/pcc-min-form-utils.js +1 -1
- package/dist/features/parameters/pcc-min/pcc-min-parameters-dialog.js +1 -1
- package/dist/features/parameters/pcc-min/pcc-min-parameters-inline.js +1 -1
- package/dist/features/parameters/pcc-min/use-pcc-min-parameters-form.js +1 -1
- package/dist/features/parameters/security-analysis/columns-definitions.js +1 -1
- package/dist/features/parameters/security-analysis/security-analysis-parameters-content.js +1 -1
- package/dist/features/parameters/security-analysis/security-analysis-parameters-dialog.js +1 -1
- package/dist/features/parameters/security-analysis/security-analysis-parameters-form.js +1 -1
- package/dist/features/parameters/security-analysis/security-analysis-parameters-inline.js +1 -1
- package/dist/features/parameters/security-analysis/security-analysis-parameters-utils.js +1 -1
- package/dist/features/parameters/security-analysis/security-analysis-violations-hiding.js +1 -1
- package/dist/features/parameters/security-analysis/use-security-analysis-parameters-form.js +1 -1
- package/dist/features/parameters/sensi/columns-definitions.js +1 -1
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-dialog.js +1 -1
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.js +1 -1
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-inline.js +1 -1
- package/dist/features/parameters/sensi/sensitivity-parameters-fields.js +1 -1
- package/dist/features/parameters/sensi/sensitivity-parameters-selector.js +1 -1
- package/dist/features/parameters/sensi/use-sensitivity-analysis-parameters.js +1 -1
- package/dist/features/parameters/sensi/utils.js +1 -1
- package/dist/features/parameters/short-circuit/short-circuit-general-tab-panel.js +1 -1
- package/dist/features/parameters/short-circuit/short-circuit-icc-cluster-table-cell.js +1 -1
- package/dist/features/parameters/short-circuit/short-circuit-icc-material-table-cell.js +1 -1
- package/dist/features/parameters/short-circuit/short-circuit-parameters-content.js +1 -1
- package/dist/features/parameters/short-circuit/short-circuit-parameters-dialog.js +1 -1
- package/dist/features/parameters/short-circuit/short-circuit-parameters-inline.js +1 -1
- package/dist/features/parameters/short-circuit/short-circuit-parameters-utils.js +1 -1
- package/dist/features/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +1 -1
- package/dist/features/parameters/short-circuit/short-circuit-study-area-tab-panel.js +1 -1
- package/dist/features/parameters/short-circuit/use-short-circuit-parameters-form.js +1 -1
- package/dist/features/parameters/voltage-init/equipment-selection-parameters.js +1 -1
- package/dist/features/parameters/voltage-init/general-parameters.js +1 -1
- package/dist/features/parameters/voltage-init/use-voltage-init-parameters-form.js +1 -1
- package/dist/features/parameters/voltage-init/voltage-init-form-utils.js +1 -1
- package/dist/features/parameters/voltage-init/voltage-init-parameters-dialog.js +1 -1
- package/dist/features/parameters/voltage-init/voltage-init-parameters-form.js +1 -1
- package/dist/features/parameters/voltage-init/voltage-init-parameters-inline.js +1 -1
- package/dist/features/parameters/voltage-init/voltage-limits-parameters.js +1 -1
- package/dist/features/process-configs/common/process-config-modifications-edition.js +1 -1
- package/dist/features/process-configs/lf-process-config-edition-dialog.js +1 -1
- package/dist/features/process-configs/loadflow/lf-process-config-edition.js +1 -1
- package/dist/features/process-configs/loadflow/lf-process-config-edition.utils.js +1 -1
- package/dist/features/process-configs/process-config.utils.js +1 -1
- package/dist/features/process-configs/sa-process-config-edition-dialog.js +1 -1
- package/dist/features/process-configs/security-analysis/sa-process-config-edition.js +1 -1
- package/dist/features/process-configs/security-analysis/sa-process-config-edition.utils.js +1 -1
- package/dist/features/results/securityanalysis/security-analysis-result-nmk.js +1 -1
- package/dist/features/results/securityanalysis/security-analysis-table.js +1 -1
- package/dist/index.js +12 -3
- package/dist/translations/en/networkModificationsEn.d.ts +10 -0
- package/dist/translations/en/networkModificationsEn.js +12 -1
- package/dist/translations/fr/networkModificationsFr.d.ts +10 -0
- package/dist/translations/fr/networkModificationsFr.js +12 -1
- package/dist/utils/constants/fieldConstants.d.ts +9 -0
- package/dist/utils/constants/fieldConstants.js +9 -0
- package/dist/utils/types/network-modification-metadata.d.ts +13 -1
- package/package.json +1 -1
|
@@ -20,7 +20,7 @@ import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
|
20
20
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
21
21
|
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
22
22
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
23
|
-
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
23
|
+
import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
|
|
24
24
|
import "../../ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
25
25
|
import "../../ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
26
26
|
import "../../ui/reactHookForm/directory-item-input/directory-item-utils.js";
|
|
@@ -38,7 +38,7 @@ import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
|
38
38
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
39
39
|
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
40
40
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
41
|
-
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
41
|
+
import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
|
|
42
42
|
import "mui-nested-menu";
|
|
43
43
|
import "react-resizable-panels";
|
|
44
44
|
import "react-papaparse";
|
|
@@ -29,7 +29,7 @@ import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
|
29
29
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
30
30
|
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
31
31
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
32
|
-
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
32
|
+
import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
|
|
33
33
|
import "../../ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
34
34
|
import "../../ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
35
35
|
import "../../ui/reactHookForm/directory-item-input/directory-item-utils.js";
|
|
@@ -27,7 +27,7 @@ import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
|
27
27
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
28
28
|
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
29
29
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
30
|
-
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
30
|
+
import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
|
|
31
31
|
import "../../ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
32
32
|
import "../../ui/reactHookForm/directory-item-input/directory-item-utils.js";
|
|
33
33
|
function FilterForm({
|
|
@@ -25,7 +25,7 @@ import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
|
25
25
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
26
26
|
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
27
27
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
28
|
-
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
28
|
+
import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
|
|
29
29
|
import "../../ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
30
30
|
import "../../ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
31
31
|
import "../../ui/reactHookForm/directory-item-input/directory-item-utils.js";
|
|
@@ -35,7 +35,7 @@ import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
|
35
35
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
36
36
|
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
37
37
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
38
|
-
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
38
|
+
import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
|
|
39
39
|
import "../../../ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
40
40
|
import "../../../ui/reactHookForm/directory-item-input/directory-item-utils.js";
|
|
41
41
|
import "../../../ui/snackbarProvider/SnackbarProvider.js";
|
|
@@ -36,7 +36,7 @@ import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
|
36
36
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
37
37
|
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
38
38
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
39
|
-
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
39
|
+
import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
|
|
40
40
|
import "../../../ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
41
41
|
import "../../../ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
42
42
|
import "../../../ui/reactHookForm/directory-item-input/directory-item-utils.js";
|
|
@@ -32,7 +32,7 @@ import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
|
32
32
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
33
33
|
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
34
34
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
35
|
-
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
35
|
+
import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
|
|
36
36
|
import "../../../../ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
37
37
|
import "../../../../ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
38
38
|
import "../../../../ui/reactHookForm/directory-item-input/directory-item-utils.js";
|
|
@@ -20,7 +20,7 @@ import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
|
20
20
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
21
21
|
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
22
22
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
23
|
-
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
23
|
+
import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
|
|
24
24
|
import "../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
25
25
|
import "../reactHookForm/expandableInput/ExpandableInput.js";
|
|
26
26
|
import "../reactHookForm/directory-item-input/directory-item-utils.js";
|
|
@@ -27,7 +27,7 @@ import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
|
27
27
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
28
28
|
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
29
29
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
30
|
-
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
30
|
+
import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
|
|
31
31
|
import "../descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
32
32
|
import "../../reactHookForm/expandableInput/ExpandableInput.js";
|
|
33
33
|
import "../../reactHookForm/directory-item-input/directory-item-utils.js";
|
|
@@ -20,7 +20,7 @@ import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
|
20
20
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
21
21
|
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
22
22
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
23
|
-
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
23
|
+
import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
|
|
24
24
|
import "../descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
25
25
|
import "../../reactHookForm/expandableInput/ExpandableInput.js";
|
|
26
26
|
import "../../reactHookForm/directory-item-input/directory-item-utils.js";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import DatasetLinked from "@material-symbols/svg-400/outlined/dataset_linked-fill.svg?react";
|
|
3
|
+
import { SvgIcon } from "@mui/material";
|
|
4
|
+
function DatasetLinkedIcon(props) {
|
|
5
|
+
return /* @__PURE__ */ jsx(SvgIcon, { component: DatasetLinked, inheritViewBox: true, ...props });
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
DatasetLinkedIcon
|
|
9
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import AddNotes from "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
2
|
+
import AddNotes from "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
|
|
3
3
|
import { SvgIcon } from "@mui/material";
|
|
4
4
|
import { StickyNote2Outlined } from "@mui/icons-material";
|
|
5
5
|
function EditNoteIcon({ empty = false, ...props }) {
|
|
@@ -105,6 +105,7 @@ function CheckboxAutocomplete({
|
|
|
105
105
|
disableCloseOnSelect: true,
|
|
106
106
|
size: "small",
|
|
107
107
|
disableListWrap: true,
|
|
108
|
+
slots: { popper: StyledPopper },
|
|
108
109
|
options,
|
|
109
110
|
noOptionsText: intl.formatMessage({ id: "noOption" }),
|
|
110
111
|
getOptionLabel,
|
|
@@ -116,8 +117,8 @@ function CheckboxAutocomplete({
|
|
|
116
117
|
inputValue,
|
|
117
118
|
onChange: handleChange,
|
|
118
119
|
onBlur: handleBlur,
|
|
119
|
-
slots: { popper: StyledPopper },
|
|
120
120
|
slotProps: {
|
|
121
|
+
...otherProps?.slotProps,
|
|
121
122
|
listbox: { component: virtualize ? VirtualizedList : void 0 }
|
|
122
123
|
}
|
|
123
124
|
}
|
|
@@ -36,6 +36,7 @@ function CheckboxNullableInput({
|
|
|
36
36
|
onChange?.(newValue);
|
|
37
37
|
}, [rhfOnChange, onChange, value]);
|
|
38
38
|
const currentLabel = typeof label === "function" ? label(value) : label;
|
|
39
|
+
const { slotProps, ...otherFormProps } = formProps ?? {};
|
|
39
40
|
return /* @__PURE__ */ jsxs(FormControl, { fullWidth: true, size: "small", children: [
|
|
40
41
|
/* @__PURE__ */ jsx(
|
|
41
42
|
FormControlLabel,
|
|
@@ -51,9 +52,10 @@ function CheckboxNullableInput({
|
|
|
51
52
|
slotProps: {
|
|
52
53
|
input: {
|
|
53
54
|
"aria-label": "primary checkbox"
|
|
54
|
-
}
|
|
55
|
+
},
|
|
56
|
+
...slotProps
|
|
55
57
|
},
|
|
56
|
-
...
|
|
58
|
+
...otherFormProps
|
|
57
59
|
}
|
|
58
60
|
),
|
|
59
61
|
label: !label ? "" : intl.formatMessage({
|
|
@@ -20,6 +20,7 @@ function MultipleAutocompleteInput({ name, ...props }) {
|
|
|
20
20
|
const newValues = values.map((val) => val.trim());
|
|
21
21
|
return newValues.filter((val, index) => newValues.indexOf(val) === index);
|
|
22
22
|
};
|
|
23
|
+
const { slotProps, ...otherProps } = props;
|
|
23
24
|
return /* @__PURE__ */ jsx(
|
|
24
25
|
AutocompleteInput,
|
|
25
26
|
{
|
|
@@ -34,8 +35,8 @@ function MultipleAutocompleteInput({ name, ...props }) {
|
|
|
34
35
|
onBlur: handleOnBlur,
|
|
35
36
|
blurOnSelect: false,
|
|
36
37
|
multiple: true,
|
|
37
|
-
slotProps: { chip: { size: "small" } },
|
|
38
|
-
...
|
|
38
|
+
slotProps: { chip: { size: "small" }, ...slotProps },
|
|
39
|
+
...otherProps
|
|
39
40
|
}
|
|
40
41
|
);
|
|
41
42
|
}
|
|
@@ -8,5 +8,5 @@ export type BooleanInputProps<TInput extends InputTypes> = {
|
|
|
8
8
|
formProps?: InputProps<TInput>;
|
|
9
9
|
Input: TInput;
|
|
10
10
|
};
|
|
11
|
-
export declare function BooleanInput<TInput extends InputTypes>({ name, label, formProps, Input,
|
|
11
|
+
export declare function BooleanInput<TInput extends InputTypes>({ name, label, formProps, Input, }: Readonly<BooleanInputProps<TInput>>): JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -7,10 +7,9 @@ function BooleanInput({
|
|
|
7
7
|
name,
|
|
8
8
|
label,
|
|
9
9
|
formProps,
|
|
10
|
-
Input
|
|
11
|
-
...props
|
|
10
|
+
Input
|
|
12
11
|
}) {
|
|
13
|
-
const { onChange, ...otherFormProps } = formProps ?? { onChange: void 0 };
|
|
12
|
+
const { onChange, slotProps, ...otherFormProps } = formProps ?? { onChange: void 0 };
|
|
14
13
|
const {
|
|
15
14
|
field: { onChange: onChangeRhf, value, ref }
|
|
16
15
|
} = useController({ name });
|
|
@@ -28,9 +27,8 @@ function BooleanInput({
|
|
|
28
27
|
checked: value,
|
|
29
28
|
onChange: handleChangeValue,
|
|
30
29
|
inputRef: ref,
|
|
31
|
-
slotProps: { input: { "aria-label": "primary checkbox" } },
|
|
32
|
-
...otherFormProps
|
|
33
|
-
...props
|
|
30
|
+
slotProps: { input: { "aria-label": "primary checkbox" }, ...slotProps },
|
|
31
|
+
...otherFormProps
|
|
34
32
|
}
|
|
35
33
|
);
|
|
36
34
|
if (label) {
|
|
@@ -64,6 +64,7 @@ function TableNumericalInput({
|
|
|
64
64
|
const handleClearValue = () => {
|
|
65
65
|
onChange(outputTransform(previousValue));
|
|
66
66
|
};
|
|
67
|
+
const { slotProps, ...otherProps } = props;
|
|
67
68
|
return /* @__PURE__ */ jsx(
|
|
68
69
|
TextField,
|
|
69
70
|
{
|
|
@@ -103,10 +104,11 @@ function TableNumericalInput({
|
|
|
103
104
|
// to have '.' as decimal separator
|
|
104
105
|
...inputProps
|
|
105
106
|
}
|
|
106
|
-
}
|
|
107
|
+
},
|
|
108
|
+
...slotProps
|
|
107
109
|
},
|
|
108
110
|
...hideErrorMessage ? {} : genHelperError(error?.message),
|
|
109
|
-
...
|
|
111
|
+
...otherProps
|
|
110
112
|
}
|
|
111
113
|
);
|
|
112
114
|
}
|
|
@@ -4,5 +4,5 @@ interface TableTextInputProps {
|
|
|
4
4
|
hideErrorMessage?: boolean;
|
|
5
5
|
inputProps?: InputBaseComponentProps;
|
|
6
6
|
}
|
|
7
|
-
export declare function TableTextInput({ name, hideErrorMessage, inputProps
|
|
7
|
+
export declare function TableTextInput({ name, hideErrorMessage, inputProps }: Readonly<TableTextInputProps>): import("react").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -5,7 +5,7 @@ import "react-intl";
|
|
|
5
5
|
import "react";
|
|
6
6
|
import "@mui/icons-material";
|
|
7
7
|
import { genHelperError } from "../utils/functions.js";
|
|
8
|
-
function TableTextInput({ name, hideErrorMessage, inputProps
|
|
8
|
+
function TableTextInput({ name, hideErrorMessage, inputProps }) {
|
|
9
9
|
const {
|
|
10
10
|
field: { onChange, value, ref },
|
|
11
11
|
fieldState: { error }
|
|
@@ -37,8 +37,7 @@ function TableTextInput({ name, hideErrorMessage, inputProps, ...props }) {
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
|
-
...hideErrorMessage ? {} : genHelperError(error?.message)
|
|
41
|
-
...props
|
|
40
|
+
...hideErrorMessage ? {} : genHelperError(error?.message)
|
|
42
41
|
}
|
|
43
42
|
);
|
|
44
43
|
}
|
|
@@ -27,34 +27,36 @@ function ExpandingTextField({
|
|
|
27
27
|
const descriptionLength = descriptionWatch?.length ?? 0;
|
|
28
28
|
const descriptionCounter = `${descriptionLength}/${maxCharactersNumber}`;
|
|
29
29
|
const rowsToDisplay = isFocused ? rows : minRows;
|
|
30
|
+
const { slotProps, ...otherProps } = textFieldFormProps ?? {};
|
|
30
31
|
const formProps = {
|
|
31
32
|
size: "medium",
|
|
32
33
|
multiline: true,
|
|
33
34
|
onFocus: handleFocus,
|
|
34
35
|
onBlur: handleBlur,
|
|
35
|
-
InputProps: {
|
|
36
|
-
style: {
|
|
37
|
-
textOverflow: "ellipsis",
|
|
38
|
-
overflow: "hidden",
|
|
39
|
-
// disable scrolling
|
|
40
|
-
whiteSpace: "pre",
|
|
41
|
-
resize: "none"
|
|
42
|
-
// or 'horizontal' for horizontal resizing
|
|
43
|
-
},
|
|
44
|
-
inputProps: { "data-testid": "DescriptionInputField" }
|
|
45
|
-
},
|
|
46
36
|
helperText: /* @__PURE__ */ jsx(Typography, { variant: "caption", children: descriptionCounter }),
|
|
47
37
|
slotProps: {
|
|
38
|
+
input: {
|
|
39
|
+
style: {
|
|
40
|
+
textOverflow: "ellipsis",
|
|
41
|
+
overflow: "hidden",
|
|
42
|
+
// disable scrolling
|
|
43
|
+
whiteSpace: "pre",
|
|
44
|
+
resize: "none"
|
|
45
|
+
// or 'horizontal' for horizontal resizing
|
|
46
|
+
},
|
|
47
|
+
inputProps: { "data-testid": "DescriptionInputField" }
|
|
48
|
+
},
|
|
48
49
|
formHelperText: {
|
|
49
50
|
sx: {
|
|
50
51
|
ml: "auto",
|
|
51
52
|
color: (theme) => isOverTheLimit ? theme.palette.error.main : theme.palette.text.secondary
|
|
52
53
|
}
|
|
53
|
-
}
|
|
54
|
+
},
|
|
55
|
+
...slotProps
|
|
54
56
|
},
|
|
55
57
|
...rowsToDisplay && { rows: rowsToDisplay },
|
|
56
58
|
...sx && { sx },
|
|
57
|
-
...
|
|
59
|
+
...otherProps
|
|
58
60
|
};
|
|
59
61
|
return /* @__PURE__ */ jsx(TextInput, { name, label, formProps, ...otherTexFieldProps });
|
|
60
62
|
}
|
|
@@ -56,6 +56,7 @@ function TextInput({
|
|
|
56
56
|
values: labelValues,
|
|
57
57
|
optional: !isFieldRequired(name, validationSchema, getValues()) && !formProps?.disabled && !removeOptional
|
|
58
58
|
});
|
|
59
|
+
const { slotProps, ...otherFormProps } = formProps ?? {};
|
|
59
60
|
return /* @__PURE__ */ jsx(
|
|
60
61
|
Field,
|
|
61
62
|
{
|
|
@@ -73,7 +74,8 @@ function TextInput({
|
|
|
73
74
|
clearable && transformedValue !== void 0 && transformedValue !== "" && /* @__PURE__ */ jsx(IconButton, { onClick: handleClearValue, size: "small", children: /* @__PURE__ */ jsx(Clear, { fontSize: "small" }) }),
|
|
74
75
|
customAdornment && { ...customAdornment }
|
|
75
76
|
] })
|
|
76
|
-
}
|
|
77
|
+
},
|
|
78
|
+
...slotProps
|
|
77
79
|
},
|
|
78
80
|
inputRef: ref,
|
|
79
81
|
...clearable && adornment && {
|
|
@@ -89,7 +91,7 @@ function TextInput({
|
|
|
89
91
|
}
|
|
90
92
|
),
|
|
91
93
|
...genHelperError(error?.message),
|
|
92
|
-
...
|
|
94
|
+
...otherFormProps,
|
|
93
95
|
...adornment && { ...finalAdornment }
|
|
94
96
|
},
|
|
95
97
|
id ?? label
|
|
@@ -41,6 +41,7 @@ function UniqueNameInput({
|
|
|
41
41
|
isValidating && /* @__PURE__ */ jsx(CircularProgress, { size: "1rem" }),
|
|
42
42
|
showOk && /* @__PURE__ */ jsx(Check, { style: { color: "green" } })
|
|
43
43
|
] });
|
|
44
|
+
const { slotProps, ...otherFormProps } = formProps ?? {};
|
|
44
45
|
return /* @__PURE__ */ jsx(
|
|
45
46
|
TextField,
|
|
46
47
|
{
|
|
@@ -64,9 +65,10 @@ function UniqueNameInput({
|
|
|
64
65
|
inputProps: {
|
|
65
66
|
"data-testid": "NameInputField"
|
|
66
67
|
}
|
|
67
|
-
}
|
|
68
|
+
},
|
|
69
|
+
...slotProps
|
|
68
70
|
},
|
|
69
|
-
...
|
|
71
|
+
...otherFormProps
|
|
70
72
|
}
|
|
71
73
|
);
|
|
72
74
|
}
|
|
@@ -3,7 +3,7 @@ import { useState, useCallback } from "react";
|
|
|
3
3
|
import { Clear } from "@mui/icons-material";
|
|
4
4
|
import { InputAdornment, IconButton, TextField } from "@mui/material";
|
|
5
5
|
function TextFieldWithAdornment(props) {
|
|
6
|
-
const { adornmentPosition, adornmentText, value, variant, handleClearValue, ...otherProps } = props;
|
|
6
|
+
const { adornmentPosition, adornmentText, value, variant, handleClearValue, slotProps, ...otherProps } = props;
|
|
7
7
|
const [isFocused, setIsFocused] = useState(false);
|
|
8
8
|
const getAdornmentStyle = useCallback((innerVariant) => {
|
|
9
9
|
if (innerVariant === "filled") {
|
|
@@ -54,6 +54,7 @@ function TextFieldWithAdornment(props) {
|
|
|
54
54
|
onFocus: () => setIsFocused(true),
|
|
55
55
|
onBlur: () => setIsFocused(false),
|
|
56
56
|
slotProps: {
|
|
57
|
+
...slotProps,
|
|
57
58
|
input: adornmentPosition === "start" ? withStartAdornmentText() : withEndAdornmentText()
|
|
58
59
|
}
|
|
59
60
|
}
|
|
@@ -27,7 +27,7 @@ import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
|
27
27
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
28
28
|
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
29
29
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
30
|
-
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
30
|
+
import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
|
|
31
31
|
import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
32
32
|
import "../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
33
33
|
import "../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
|
|
@@ -25,7 +25,7 @@ import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
|
25
25
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
26
26
|
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
27
27
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
28
|
-
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
28
|
+
import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
|
|
29
29
|
import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
30
30
|
import "../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
31
31
|
import "../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
|
|
@@ -24,7 +24,7 @@ import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
|
24
24
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
25
25
|
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
26
26
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
27
|
-
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
27
|
+
import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
|
|
28
28
|
import "../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
29
29
|
import "../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
30
30
|
import "../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
|
package/dist/features/index.js
CHANGED
|
@@ -146,7 +146,7 @@ import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
|
146
146
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
147
147
|
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
148
148
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
149
|
-
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
149
|
+
import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
|
|
150
150
|
import "../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
151
151
|
import "../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
152
152
|
import "../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
|
|
@@ -162,6 +162,8 @@ import { SWITCH_TYPE, buildNewBusbarSections, getCreateSwitchesEmptyFormData, ge
|
|
|
162
162
|
import { SwitchKind } from "./network-modifications/voltageLevel/creation/voltageLevelCreation.types.js";
|
|
163
163
|
import { VoltageLevelModificationForm } from "./network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js";
|
|
164
164
|
import { voltageLevelModificationDtoToForm, voltageLevelModificationEmptyFormData, voltageLevelModificationFormSchema, voltageLevelModificationFormToDto, voltageLevelModificationWithMeasurementsDtoToForm, voltageLevelModificationWithMeasurementsFormSchema, voltageLevelModificationWithMeasurementsFormToDto } from "./network-modifications/voltageLevel/modification/voltageLevelModification.utils.js";
|
|
165
|
+
import { createVoltageLevelTopologyDtoToForm, createVoltageLevelTopologyEmptyFormData, createVoltageLevelTopologyFormSchema, createVoltageLevelTopologyFormToDto } from "./network-modifications/voltageLevel/topology/voltageLevelTopologyCreation.utils.js";
|
|
166
|
+
import { CreateVoltageLevelTopologyForm } from "./network-modifications/voltageLevel/topology/CreateVoltageLevelTopologyForm.js";
|
|
165
167
|
import { LOAD_TAB_FIELDS, LoadDialogTab } from "./network-modifications/load/common/load.utils.js";
|
|
166
168
|
import { LoadDialogTabs } from "./network-modifications/load/common/LoadDialogTabs.js";
|
|
167
169
|
import { LoadDialogTabsContent } from "./network-modifications/load/common/LoadDialogTabsContent.js";
|
|
@@ -218,7 +220,7 @@ import { COLUMNS_WITHOUT_BORDER, DEPTH_CELL_WIDTH, DROP_FORBIDDEN_INDICATOR_BOTT
|
|
|
218
220
|
import { AUTO_EXTENSIBLE_COLUMNS, BASE_MODIFICATION_TABLE_COLUMNS, computeTagMinSize } from "./network-modification-table/columns-definition.js";
|
|
219
221
|
import { NetworkModificationsTable } from "./network-modification-table/network-modifications-table.js";
|
|
220
222
|
import { useModificationsDragAndDrop } from "./network-modification-table/use-modifications-drag-and-drop.js";
|
|
221
|
-
import { DescriptionCellRenderer, DragHandleRenderer, NameCellRenderer, NameHeaderRenderer, RootNetworkCellRenderer, RootNetworkHeaderRenderer, SelectCellRenderer, SelectHeaderRenderer, SwitchCellRenderer } from "./network-modification-table/renderers/cell-renderers.js";
|
|
223
|
+
import { DescriptionCellRenderer, DragHandleRenderer, NameCellRenderer, NameHeaderRenderer, ReferenceCellRenderer, RootNetworkCellRenderer, RootNetworkHeaderRenderer, SelectCellRenderer, SelectHeaderRenderer, SwitchCellRenderer } from "./network-modification-table/renderers/cell-renderers.js";
|
|
222
224
|
import { DepthBox } from "./network-modification-table/renderers/depth-box.js";
|
|
223
225
|
import { DescriptionCell } from "./network-modification-table/renderers/description-cell.js";
|
|
224
226
|
import { DragHandleCell } from "./network-modification-table/renderers/drag-handle-cell.js";
|
|
@@ -230,7 +232,7 @@ import { SelectHeaderCell } from "./network-modification-table/renderers/select-
|
|
|
230
232
|
import { SwitchCell } from "./network-modification-table/renderers/switch-cell.js";
|
|
231
233
|
import { DragCloneRow } from "./network-modification-table/row/drag-row-clone.js";
|
|
232
234
|
import { ModificationRow } from "./network-modification-table/row/modification-row.js";
|
|
233
|
-
import { MAX_COMPOSITE_NESTING_DEPTH, fetchSubModificationsForExpandedRows, findAllLoadedCompositeModifications, findDepth, findModificationInTree, formatToComposedModification, isCompositeModification,
|
|
235
|
+
import { MAX_COMPOSITE_NESTING_DEPTH, fetchSubModificationsForExpandedRows, findAllLoadedCompositeModifications, findDepth, findModificationInTree, formatToComposedModification, isCompositeModification, isReferenceModification, isTargetChildOfReference, mergeSubModificationsIntoTree, moveSubModificationInTree, removeUuidsFromTree, updateModificationFieldInTree, updateSubModificationsOfACompositeInTree } from "./network-modification-table/utils.js";
|
|
234
236
|
import { AnnouncementBanner } from "./announcement/AnnouncementBanner.js";
|
|
235
237
|
import { AnnouncementNotification } from "./announcement/AnnouncementNotification.js";
|
|
236
238
|
import { useGlobalAnnouncement } from "./announcement/useGlobalAnnouncement.js";
|
|
@@ -307,6 +309,7 @@ export {
|
|
|
307
309
|
ConnectivityForm,
|
|
308
310
|
ContingencyTable,
|
|
309
311
|
CreateParameterDialog,
|
|
312
|
+
CreateVoltageLevelTopologyForm,
|
|
310
313
|
CustomVoltageLevelTable,
|
|
311
314
|
CustomVoltageLevelTableCell,
|
|
312
315
|
CustomVoltageLevelTableRow,
|
|
@@ -503,6 +506,7 @@ export {
|
|
|
503
506
|
ReactiveCapabilityCurveRowForm,
|
|
504
507
|
ReactiveCapabilityCurveTableForm,
|
|
505
508
|
ReactiveLimitsForm,
|
|
509
|
+
ReferenceCellRenderer,
|
|
506
510
|
RegulatingTerminalForm,
|
|
507
511
|
RootNetworkCellRenderer,
|
|
508
512
|
RootNetworkChipCell,
|
|
@@ -636,6 +640,10 @@ export {
|
|
|
636
640
|
createPropertyModification,
|
|
637
641
|
createRootNetworkChipCellSx,
|
|
638
642
|
createRowSx,
|
|
643
|
+
createVoltageLevelTopologyDtoToForm,
|
|
644
|
+
createVoltageLevelTopologyEmptyFormData,
|
|
645
|
+
createVoltageLevelTopologyFormSchema,
|
|
646
|
+
createVoltageLevelTopologyFormToDto,
|
|
639
647
|
creationPropertiesSchema,
|
|
640
648
|
dispatchUser,
|
|
641
649
|
emptyFormData,
|
|
@@ -776,7 +784,8 @@ export {
|
|
|
776
784
|
isCriteriaFilterType,
|
|
777
785
|
isEditingGlobalFilter,
|
|
778
786
|
isProcessType,
|
|
779
|
-
|
|
787
|
+
isReferenceModification,
|
|
788
|
+
isTargetChildOfReference,
|
|
780
789
|
isValidComputingType,
|
|
781
790
|
isValidContingencyRow,
|
|
782
791
|
italicFontTextField,
|
|
@@ -26,6 +26,10 @@ const BASE_MODIFICATION_TABLE_COLUMNS = {
|
|
|
26
26
|
SWITCH: {
|
|
27
27
|
id: "switch",
|
|
28
28
|
autoExtensible: false
|
|
29
|
+
},
|
|
30
|
+
SHARED: {
|
|
31
|
+
id: "shared",
|
|
32
|
+
autoExtensible: false
|
|
29
33
|
}
|
|
30
34
|
};
|
|
31
35
|
const AUTO_EXTENSIBLE_COLUMNS = Object.values(BASE_MODIFICATION_TABLE_COLUMNS).filter((column) => column.autoExtensible).map((column) => column.id);
|
|
@@ -2,7 +2,7 @@ import { COLUMNS_WITHOUT_BORDER, DEPTH_CELL_WIDTH, DROP_FORBIDDEN_INDICATOR_BOTT
|
|
|
2
2
|
import { AUTO_EXTENSIBLE_COLUMNS, BASE_MODIFICATION_TABLE_COLUMNS, computeTagMinSize } from "./columns-definition.js";
|
|
3
3
|
import { NetworkModificationsTable } from "./network-modifications-table.js";
|
|
4
4
|
import { useModificationsDragAndDrop } from "./use-modifications-drag-and-drop.js";
|
|
5
|
-
import { DescriptionCellRenderer, DragHandleRenderer, NameCellRenderer, NameHeaderRenderer, RootNetworkCellRenderer, RootNetworkHeaderRenderer, SelectCellRenderer, SelectHeaderRenderer, SwitchCellRenderer } from "./renderers/cell-renderers.js";
|
|
5
|
+
import { DescriptionCellRenderer, DragHandleRenderer, NameCellRenderer, NameHeaderRenderer, ReferenceCellRenderer, RootNetworkCellRenderer, RootNetworkHeaderRenderer, SelectCellRenderer, SelectHeaderRenderer, SwitchCellRenderer } from "./renderers/cell-renderers.js";
|
|
6
6
|
import { DepthBox } from "./renderers/depth-box.js";
|
|
7
7
|
import { DescriptionCell } from "./renderers/description-cell.js";
|
|
8
8
|
import { DragHandleCell } from "./renderers/drag-handle-cell.js";
|
|
@@ -14,7 +14,7 @@ import { SelectHeaderCell } from "./renderers/select-header-cell.js";
|
|
|
14
14
|
import { SwitchCell } from "./renderers/switch-cell.js";
|
|
15
15
|
import { DragCloneRow } from "./row/drag-row-clone.js";
|
|
16
16
|
import { ModificationRow } from "./row/modification-row.js";
|
|
17
|
-
import { MAX_COMPOSITE_NESTING_DEPTH, fetchSubModificationsForExpandedRows, findAllLoadedCompositeModifications, findDepth, findModificationInTree, formatToComposedModification, isCompositeModification,
|
|
17
|
+
import { MAX_COMPOSITE_NESTING_DEPTH, fetchSubModificationsForExpandedRows, findAllLoadedCompositeModifications, findDepth, findModificationInTree, formatToComposedModification, isCompositeModification, isReferenceModification, isTargetChildOfReference, mergeSubModificationsIntoTree, moveSubModificationInTree, removeUuidsFromTree, updateModificationFieldInTree, updateSubModificationsOfACompositeInTree } from "./utils.js";
|
|
18
18
|
export {
|
|
19
19
|
AUTO_EXTENSIBLE_COLUMNS,
|
|
20
20
|
BASE_MODIFICATION_TABLE_COLUMNS,
|
|
@@ -38,6 +38,7 @@ export {
|
|
|
38
38
|
NameHeaderRenderer,
|
|
39
39
|
NetworkModificationEditorNameHeader,
|
|
40
40
|
NetworkModificationsTable,
|
|
41
|
+
ReferenceCellRenderer,
|
|
41
42
|
RootNetworkCellRenderer,
|
|
42
43
|
RootNetworkChipCell,
|
|
43
44
|
RootNetworkHeaderRenderer,
|
|
@@ -64,7 +65,8 @@ export {
|
|
|
64
65
|
findModificationInTree,
|
|
65
66
|
formatToComposedModification,
|
|
66
67
|
isCompositeModification,
|
|
67
|
-
|
|
68
|
+
isReferenceModification,
|
|
69
|
+
isTargetChildOfReference,
|
|
68
70
|
mergeSubModificationsIntoTree,
|
|
69
71
|
moveSubModificationInTree,
|
|
70
72
|
networkModificationTableStyles,
|
|
@@ -182,11 +182,11 @@ const DROP_INDICATOR_TOP = "inset 0 2px 0 #90caf9";
|
|
|
182
182
|
const DROP_INDICATOR_BOTTOM = "inset 0 -2px 0 #90caf9";
|
|
183
183
|
const DROP_FORBIDDEN_INDICATOR_TOP = "inset 0 2px 0 #FF3636";
|
|
184
184
|
const DROP_FORBIDDEN_INDICATOR_BOTTOM = "inset 0 -2px 0 #FF3636";
|
|
185
|
-
function getRowBackgroundColor(isHighlighted,
|
|
185
|
+
function getRowBackgroundColor(isHighlighted, isCompositeOrIsReference, theme) {
|
|
186
186
|
if (isHighlighted) {
|
|
187
187
|
return HIGHLIGHT_COLOR_BASE;
|
|
188
188
|
}
|
|
189
|
-
if (!
|
|
189
|
+
if (!isCompositeOrIsReference) {
|
|
190
190
|
return "transparent";
|
|
191
191
|
}
|
|
192
192
|
return theme.palette.mode === "light" ? theme.darken(theme.palette.background.paper, 0.04) : theme.lighten(theme.palette.background.paper, 0.08);
|
|
@@ -5,7 +5,7 @@ import { NetworkModificationEditorNameHeaderProps } from './renderers';
|
|
|
5
5
|
import { ExcludedNetworkModifications, RootNetworkRowInfo, ComposedModificationMetadata, NetworkModificationMetadata } from '../../utils';
|
|
6
6
|
interface NetworkModificationsTableProps extends Omit<NetworkModificationEditorNameHeaderProps, 'modificationCount'> {
|
|
7
7
|
modifications: NetworkModificationMetadata[];
|
|
8
|
-
handleCellClick: (modification:
|
|
8
|
+
handleCellClick: (modification: ComposedModificationMetadata) => void;
|
|
9
9
|
isRowDragDisabled?: boolean;
|
|
10
10
|
onRowDragStart: () => void;
|
|
11
11
|
onRowDragEnd: () => void;
|