@progress/kendo-react-grid 5.10.0 → 5.10.1-dev.202301251437

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/es/Grid.js CHANGED
@@ -562,7 +562,14 @@ var Grid = /** @class */ (function (_super) {
562
562
  currentAriaRowIndex = absoluteIndex + rowIndexStart + detailRowCount_1;
563
563
  body.push((React.createElement("tr", { key: detailRowId, className: classNames('k-table-row', isAlt ? 'k-detail-row k-table-alt-row k-alt' : 'k-detail-row'), style: { visibility: hidden(rowIndex) ? 'hidden' : '' }, role: "row", "aria-rowindex": currentAriaRowIndex },
564
564
  _this.props.group && _this.props.group.map(function (gr, idx) {
565
- return (React.createElement(GridGroupCell, { id: '', dataIndex: item.dataIndex, field: gr.field, dataItem: item.dataItem, key: idx, style: {}, ariaColumnIndex: 1 + idx, isSelected: false, locked: _this.props.lockGroups }));
565
+ var _a;
566
+ var columnStyle = (_a = gridRow === null || gridRow === void 0 ? void 0 : gridRow.row[idx]) === null || _a === void 0 ? void 0 : _a.props.style;
567
+ var style = columnStyle
568
+ ? !_this.isRtl
569
+ ? { left: columnStyle.left, right: columnStyle.right }
570
+ : { left: columnStyle.right, right: columnStyle.left }
571
+ : {};
572
+ return (React.createElement(GridGroupCell, { id: '', dataIndex: item.dataIndex, field: gr.field, dataItem: item.dataItem, key: idx, style: style, ariaColumnIndex: 1 + idx, isSelected: false, locked: _this.props.lockGroups }));
566
573
  }),
567
574
  _this.props.expandField &&
568
575
  React.createElement(GridDetailHierarchyCell, { id: navigationTools.generateNavigatableId("".concat(detailRowId, "-dhcell"), idPrefix) }),
@@ -17,7 +17,7 @@ var CommonDragLogic = /** @class */ (function () {
17
17
  this.currentGroup = -1;
18
18
  this.groupPanelDivElement = null;
19
19
  this.refGroupPanelDiv = function (e) {
20
- _this.groupPanelDivElement = e.children ? e.children[0] : e;
20
+ _this.groupPanelDivElement = (e && e.children) ? e.children[0] : e;
21
21
  };
22
22
  this.pressHandler = function (event, element) {
23
23
  var startColumn = _this.getColumnIndex(event, element);
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-react-grid',
6
6
  productName: 'KendoReact',
7
7
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
8
- publishDate: 1674030888,
8
+ publishDate: 1674656368,
9
9
  version: '',
10
10
  licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
11
11
  };
package/dist/npm/Grid.js CHANGED
@@ -565,7 +565,14 @@ var Grid = /** @class */ (function (_super) {
565
565
  currentAriaRowIndex = absoluteIndex + rowIndexStart + detailRowCount_1;
566
566
  body.push((React.createElement("tr", { key: detailRowId, className: (0, kendo_react_common_1.classNames)('k-table-row', isAlt ? 'k-detail-row k-table-alt-row k-alt' : 'k-detail-row'), style: { visibility: hidden(rowIndex) ? 'hidden' : '' }, role: "row", "aria-rowindex": currentAriaRowIndex },
567
567
  _this.props.group && _this.props.group.map(function (gr, idx) {
568
- return (React.createElement(GridGroupCell_1.GridGroupCell, { id: '', dataIndex: item.dataIndex, field: gr.field, dataItem: item.dataItem, key: idx, style: {}, ariaColumnIndex: 1 + idx, isSelected: false, locked: _this.props.lockGroups }));
568
+ var _a;
569
+ var columnStyle = (_a = gridRow === null || gridRow === void 0 ? void 0 : gridRow.row[idx]) === null || _a === void 0 ? void 0 : _a.props.style;
570
+ var style = columnStyle
571
+ ? !_this.isRtl
572
+ ? { left: columnStyle.left, right: columnStyle.right }
573
+ : { left: columnStyle.right, right: columnStyle.left }
574
+ : {};
575
+ return (React.createElement(GridGroupCell_1.GridGroupCell, { id: '', dataIndex: item.dataIndex, field: gr.field, dataItem: item.dataItem, key: idx, style: style, ariaColumnIndex: 1 + idx, isSelected: false, locked: _this.props.lockGroups }));
569
576
  }),
570
577
  _this.props.expandField &&
571
578
  React.createElement(GridDetailHierarchyCell_1.GridDetailHierarchyCell, { id: kendo_react_data_tools_1.tableKeyboardNavigationTools.generateNavigatableId("".concat(detailRowId, "-dhcell"), idPrefix) }),
@@ -20,7 +20,7 @@ var CommonDragLogic = /** @class */ (function () {
20
20
  this.currentGroup = -1;
21
21
  this.groupPanelDivElement = null;
22
22
  this.refGroupPanelDiv = function (e) {
23
- _this.groupPanelDivElement = e.children ? e.children[0] : e;
23
+ _this.groupPanelDivElement = (e && e.children) ? e.children[0] : e;
24
24
  };
25
25
  this.pressHandler = function (event, element) {
26
26
  var startColumn = _this.getColumnIndex(event, element);
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-react-grid',
9
9
  productName: 'KendoReact',
10
10
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
11
- publishDate: 1674030888,
11
+ publishDate: 1674656368,
12
12
  version: '',
13
13
  licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
14
14
  };