@gridsuite/commons-ui 0.221.1 → 0.222.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 +9 -0
- package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js +0 -1
- package/dist/features/network-modifications/common/setpoints/setPoints.utils.js +1 -1
- package/dist/features/parameters/short-circuit/columns-definition.js +1 -1
- package/package.json +1 -1
|
@@ -61,6 +61,14 @@ const style = (customProps) => ({
|
|
|
61
61
|
outlineOffset: "-1px",
|
|
62
62
|
backgroundColor: theme.agGridBackground.color
|
|
63
63
|
},
|
|
64
|
+
// The selection column carries the row-drag handle on each row (see selectionColumnDef).
|
|
65
|
+
// Nudge the row checkbox slightly to the right, and align the header "select all" checkbox.
|
|
66
|
+
"& .ag-selection-checkbox": {
|
|
67
|
+
marginLeft: "6px"
|
|
68
|
+
},
|
|
69
|
+
"& .ag-header-select-all": {
|
|
70
|
+
marginLeft: "33px"
|
|
71
|
+
},
|
|
64
72
|
...customProps
|
|
65
73
|
})
|
|
66
74
|
});
|
|
@@ -158,6 +166,7 @@ const CustomAgGridTable = forwardRef(
|
|
|
158
166
|
onGridReady,
|
|
159
167
|
cacheOverflowSize: 10,
|
|
160
168
|
rowSelection: rowSelection ?? "multiple",
|
|
169
|
+
selectionColumnDef: { rowDrag: true, width: 80, pinned: "left" },
|
|
161
170
|
onRowDragMove: (e) => move(getIndex(e.node.data), e.overIndex),
|
|
162
171
|
detailRowAutoHeight: true,
|
|
163
172
|
onSelectionChanged: () => {
|
|
@@ -34,7 +34,7 @@ const getActivePowerSetPointSchema = (isEquipmentModification = false) => ({
|
|
|
34
34
|
}).when([], {
|
|
35
35
|
is: () => !isEquipmentModification,
|
|
36
36
|
then: (schema) => {
|
|
37
|
-
return schema.required().
|
|
37
|
+
return schema.required().test(
|
|
38
38
|
"activePowerSetPoint",
|
|
39
39
|
"ActivePowerMustBeZeroOrBetweenMinAndMaxActivePower",
|
|
40
40
|
testValueWithinPowerIntervalOrEqualToZero
|
|
@@ -58,7 +58,7 @@ const COLUMNS_DEFINITIONS_ICC_CLUSTERS = [
|
|
|
58
58
|
label: "ShortCircuitIccClusterFilters",
|
|
59
59
|
dataKey: SHORT_CIRCUIT_ICC_CLUSTER_FILTERS,
|
|
60
60
|
tooltip: "ShortCircuitIccClusterFiltersTooltip",
|
|
61
|
-
equipmentTypes: [EquipmentType.GENERATOR, EquipmentType.BATTERY, EquipmentType.
|
|
61
|
+
equipmentTypes: [EquipmentType.GENERATOR, EquipmentType.BATTERY, EquipmentType.HVDC_LINE],
|
|
62
62
|
elementType: ElementType.FILTER,
|
|
63
63
|
titleId: "FiltersListsSelection",
|
|
64
64
|
initialValue: null
|