@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.
@@ -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: () => {
@@ -104,7 +104,6 @@ function ExplicitNamingFilterForm({
104
104
  headerName: intl.formatMessage({
105
105
  id: FieldConstants.EQUIPMENT_ID
106
106
  }),
107
- rowDrag: true,
108
107
  field: FieldConstants.EQUIPMENT_ID,
109
108
  editable: true,
110
109
  singleClickEdit: true,
@@ -34,7 +34,7 @@ const getActivePowerSetPointSchema = (isEquipmentModification = false) => ({
34
34
  }).when([], {
35
35
  is: () => !isEquipmentModification,
36
36
  then: (schema) => {
37
- return schema.required().nonNullable().test(
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.VSC_CONVERTER_STATION],
61
+ equipmentTypes: [EquipmentType.GENERATOR, EquipmentType.BATTERY, EquipmentType.HVDC_LINE],
62
62
  elementType: ElementType.FILTER,
63
63
  titleId: "FiltersListsSelection",
64
64
  initialValue: null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.221.1",
3
+ "version": "0.222.0",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "author": "gridsuite team",
6
6
  "homepage": "https://github.com/gridsuite",