@gridsuite/commons-ui 0.29.0 → 0.29.1
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.
|
@@ -227,22 +227,20 @@ var MuiVirtualizedTable = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
227
227
|
return (0, _clsx3["default"])(classes.tableRow, classes.flexContainer, index % 2 === 0 && classes.rowBackgroundDark, index % 2 !== 0 && classes.rowBackgroundLight, ((_rowGetter = rowGetter(index)) === null || _rowGetter === void 0 ? void 0 : _rowGetter.notClickable) === true && classes.noClick, (_clsx = {}, _clsx[classes.tableRowHover] = index !== -1 && onRowClick != null && !(((_rowGetter2 = rowGetter(index)) === null || _rowGetter2 === void 0 ? void 0 : _rowGetter2.notClickable) === true), _clsx));
|
|
228
228
|
});
|
|
229
229
|
|
|
230
|
-
_defineProperty(_assertThisInitialized(_this), "onClickableRowClick", function (
|
|
231
|
-
var
|
|
232
|
-
index = _ref3.index,
|
|
233
|
-
rowData = _ref3.rowData;
|
|
230
|
+
_defineProperty(_assertThisInitialized(_this), "onClickableRowClick", function (event) {
|
|
231
|
+
var _event$rowData;
|
|
234
232
|
|
|
235
|
-
if (!((rowData === null || rowData === void 0 ? void 0 : rowData.notClickable) === true)) {
|
|
236
|
-
_this.props.onRowClick(
|
|
233
|
+
if (!(((_event$rowData = event.rowData) === null || _event$rowData === void 0 ? void 0 : _event$rowData.notClickable) === true)) {
|
|
234
|
+
_this.props.onRowClick(event);
|
|
237
235
|
}
|
|
238
236
|
});
|
|
239
237
|
|
|
240
|
-
_defineProperty(_assertThisInitialized(_this), "cellRenderer", function (
|
|
238
|
+
_defineProperty(_assertThisInitialized(_this), "cellRenderer", function (_ref3) {
|
|
241
239
|
var _rows$rowIndex, _rows$rowIndex2, _clsx2;
|
|
242
240
|
|
|
243
|
-
var cellData =
|
|
244
|
-
columnIndex =
|
|
245
|
-
rowIndex =
|
|
241
|
+
var cellData = _ref3.cellData,
|
|
242
|
+
columnIndex = _ref3.columnIndex,
|
|
243
|
+
rowIndex = _ref3.rowIndex;
|
|
246
244
|
var _this$props3 = _this.props,
|
|
247
245
|
columns = _this$props3.columns,
|
|
248
246
|
classes = _this$props3.classes,
|
|
@@ -274,9 +272,9 @@ var MuiVirtualizedTable = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
274
272
|
}));
|
|
275
273
|
});
|
|
276
274
|
|
|
277
|
-
_defineProperty(_assertThisInitialized(_this), "headerRenderer", function (
|
|
278
|
-
var label =
|
|
279
|
-
columnIndex =
|
|
275
|
+
_defineProperty(_assertThisInitialized(_this), "headerRenderer", function (_ref4) {
|
|
276
|
+
var label = _ref4.label,
|
|
277
|
+
columnIndex = _ref4.columnIndex;
|
|
280
278
|
var _this$props4 = _this.props,
|
|
281
279
|
columns = _this$props4.columns,
|
|
282
280
|
classes = _this$props4.classes;
|
|
@@ -487,9 +485,9 @@ var MuiVirtualizedTable = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
487
485
|
style: {
|
|
488
486
|
flexGrow: 1
|
|
489
487
|
}
|
|
490
|
-
}, /*#__PURE__*/_react["default"].createElement(_reactVirtualized.AutoSizer, null, function (
|
|
491
|
-
var height =
|
|
492
|
-
width =
|
|
488
|
+
}, /*#__PURE__*/_react["default"].createElement(_reactVirtualized.AutoSizer, null, function (_ref5) {
|
|
489
|
+
var height = _ref5.height,
|
|
490
|
+
width = _ref5.width;
|
|
493
491
|
return /*#__PURE__*/_react["default"].createElement(_reactVirtualized.Table, _extends({
|
|
494
492
|
height: height,
|
|
495
493
|
width: width,
|
|
@@ -501,20 +499,20 @@ var MuiVirtualizedTable = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
501
499
|
className: classes.table
|
|
502
500
|
}, tableProps, {
|
|
503
501
|
rowCount: reorderedIndex.length,
|
|
504
|
-
rowClassName: function rowClassName(
|
|
505
|
-
var index =
|
|
502
|
+
rowClassName: function rowClassName(_ref6) {
|
|
503
|
+
var index = _ref6.index;
|
|
506
504
|
return _this2.getRowClassName({
|
|
507
505
|
index: index,
|
|
508
506
|
rowGetter: _rowGetter3
|
|
509
507
|
});
|
|
510
508
|
},
|
|
511
|
-
rowGetter: function rowGetter(
|
|
512
|
-
var index =
|
|
509
|
+
rowGetter: function rowGetter(_ref7) {
|
|
510
|
+
var index = _ref7.index;
|
|
513
511
|
return _rowGetter3(index);
|
|
514
512
|
}
|
|
515
|
-
}), columns.map(function (
|
|
516
|
-
var dataKey =
|
|
517
|
-
other = _objectWithoutPropertiesLoose(
|
|
513
|
+
}), columns.map(function (_ref8, index) {
|
|
514
|
+
var dataKey = _ref8.dataKey,
|
|
515
|
+
other = _objectWithoutPropertiesLoose(_ref8, _excluded2);
|
|
518
516
|
|
|
519
517
|
return /*#__PURE__*/_react["default"].createElement(_reactVirtualized.Column, _extends({
|
|
520
518
|
key: dataKey,
|