@progress/kendo-react-grid 5.4.0-dev.202205200719 → 5.4.0-dev.202205250548

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.d.ts CHANGED
@@ -149,9 +149,13 @@ export declare class Grid extends React.Component<GridProps, {}> {
149
149
  * ```
150
150
  */
151
151
  readonly columns: GridColumnProps[];
152
+ /**
153
+ * Returns the HTML element of the Grid component.
154
+ */
155
+ readonly element: HTMLDivElement | null;
152
156
  private readonly document;
153
157
  private headerRef;
154
- private element;
158
+ private _element;
155
159
  private tableElement;
156
160
  private vs;
157
161
  private columnResize;
package/dist/es/Grid.js CHANGED
@@ -92,7 +92,7 @@ var Grid = /** @class */ (function (_super) {
92
92
  _this.navigationStateRef = { current: undefined };
93
93
  _this.wrapperScrollTop = 0;
94
94
  _this.headerRef = React.createRef();
95
- _this.element = null;
95
+ _this._element = null;
96
96
  _this.tableElement = null;
97
97
  _this._footer = null;
98
98
  _this.forceUpdateTimeout = undefined;
@@ -316,6 +316,16 @@ var Grid = /** @class */ (function (_super) {
316
316
  enumerable: true,
317
317
  configurable: true
318
318
  });
319
+ Object.defineProperty(Grid.prototype, "element", {
320
+ /**
321
+ * Returns the HTML element of the Grid component.
322
+ */
323
+ get: function () {
324
+ return this._element;
325
+ },
326
+ enumerable: true,
327
+ configurable: true
328
+ });
319
329
  Object.defineProperty(Grid.prototype, "document", {
320
330
  get: function () {
321
331
  if (!canUseDOM) {
@@ -576,7 +586,7 @@ var Grid = /** @class */ (function (_super) {
576
586
  var tableDisplay = this.props.columnVirtualization ? 'block' : 'table';
577
587
  if (this.props.scrollable === 'none') {
578
588
  return (React.createElement(TableKeyboardNavigationContext.Provider, { value: this.contextStateRef.current },
579
- React.createElement("div", __assign({ id: this.props.id, style: this.props.style, className: classNames('k-widget k-grid', this.props.className), "aria-colcount": leafColumns.length, "aria-rowcount": total, ref: function (el) { _this.element = el; }, onKeyDown: this.onKeyDown, onFocus: this.onFocus }, tableKeyboardNavigationScopeAttributes),
589
+ React.createElement("div", __assign({ id: this.props.id, style: this.props.style, className: classNames('k-widget k-grid', this.props.className), "aria-colcount": leafColumns.length, "aria-rowcount": total, ref: function (el) { _this._element = el; }, onKeyDown: this.onKeyDown, onFocus: this.onFocus }, tableKeyboardNavigationScopeAttributes),
580
590
  toolbar,
581
591
  groupingPanel,
582
592
  React.createElement(TableSelection, { selectable: this.props.selectable, onRelease: this.selectionRelease, childRef: function (table) {
@@ -605,7 +615,7 @@ var Grid = /** @class */ (function (_super) {
605
615
  React.createElement("div", __assign({ style: wrapperStyle, className: classNames('k-widget k-grid', {
606
616
  'k-grid-virtual': this.props.scrollable === 'virtual'
607
617
  }, this.props.className), ref: function (el) {
608
- _this.element = el;
618
+ _this._element = el;
609
619
  _this.resetTableWidth();
610
620
  }, role: "grid", "aria-colcount": leafColumns.length, "aria-rowcount": total, onKeyDown: this.onKeyDown, onFocus: this.onFocus }, tableKeyboardNavigationScopeAttributes),
611
621
  toolbar,
@@ -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: 1653030502,
8
+ publishDate: 1653457163,
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
  };
@@ -149,9 +149,13 @@ export declare class Grid extends React.Component<GridProps, {}> {
149
149
  * ```
150
150
  */
151
151
  readonly columns: GridColumnProps[];
152
+ /**
153
+ * Returns the HTML element of the Grid component.
154
+ */
155
+ readonly element: HTMLDivElement | null;
152
156
  private readonly document;
153
157
  private headerRef;
154
- private element;
158
+ private _element;
155
159
  private tableElement;
156
160
  private vs;
157
161
  private columnResize;
package/dist/npm/Grid.js CHANGED
@@ -94,7 +94,7 @@ var Grid = /** @class */ (function (_super) {
94
94
  _this.navigationStateRef = { current: undefined };
95
95
  _this.wrapperScrollTop = 0;
96
96
  _this.headerRef = React.createRef();
97
- _this.element = null;
97
+ _this._element = null;
98
98
  _this.tableElement = null;
99
99
  _this._footer = null;
100
100
  _this.forceUpdateTimeout = undefined;
@@ -318,6 +318,16 @@ var Grid = /** @class */ (function (_super) {
318
318
  enumerable: true,
319
319
  configurable: true
320
320
  });
321
+ Object.defineProperty(Grid.prototype, "element", {
322
+ /**
323
+ * Returns the HTML element of the Grid component.
324
+ */
325
+ get: function () {
326
+ return this._element;
327
+ },
328
+ enumerable: true,
329
+ configurable: true
330
+ });
321
331
  Object.defineProperty(Grid.prototype, "document", {
322
332
  get: function () {
323
333
  if (!kendo_react_common_1.canUseDOM) {
@@ -578,7 +588,7 @@ var Grid = /** @class */ (function (_super) {
578
588
  var tableDisplay = this.props.columnVirtualization ? 'block' : 'table';
579
589
  if (this.props.scrollable === 'none') {
580
590
  return (React.createElement(kendo_react_data_tools_1.TableKeyboardNavigationContext.Provider, { value: this.contextStateRef.current },
581
- React.createElement("div", __assign({ id: this.props.id, style: this.props.style, className: kendo_react_common_1.classNames('k-widget k-grid', this.props.className), "aria-colcount": leafColumns.length, "aria-rowcount": total, ref: function (el) { _this.element = el; }, onKeyDown: this.onKeyDown, onFocus: this.onFocus }, kendo_react_data_tools_1.tableKeyboardNavigationScopeAttributes),
591
+ React.createElement("div", __assign({ id: this.props.id, style: this.props.style, className: kendo_react_common_1.classNames('k-widget k-grid', this.props.className), "aria-colcount": leafColumns.length, "aria-rowcount": total, ref: function (el) { _this._element = el; }, onKeyDown: this.onKeyDown, onFocus: this.onFocus }, kendo_react_data_tools_1.tableKeyboardNavigationScopeAttributes),
582
592
  toolbar,
583
593
  groupingPanel,
584
594
  React.createElement(kendo_react_data_tools_1.TableSelection, { selectable: this.props.selectable, onRelease: this.selectionRelease, childRef: function (table) {
@@ -607,7 +617,7 @@ var Grid = /** @class */ (function (_super) {
607
617
  React.createElement("div", __assign({ style: wrapperStyle, className: kendo_react_common_1.classNames('k-widget k-grid', {
608
618
  'k-grid-virtual': this.props.scrollable === 'virtual'
609
619
  }, this.props.className), ref: function (el) {
610
- _this.element = el;
620
+ _this._element = el;
611
621
  _this.resetTableWidth();
612
622
  }, role: "grid", "aria-colcount": leafColumns.length, "aria-rowcount": total, onKeyDown: this.onKeyDown, onFocus: this.onFocus }, kendo_react_data_tools_1.tableKeyboardNavigationScopeAttributes),
613
623
  toolbar,
@@ -7,7 +7,7 @@ exports.packageMetadata = {
7
7
  name: '@progress/kendo-react-grid',
8
8
  productName: 'KendoReact',
9
9
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
10
- publishDate: 1653030502,
10
+ publishDate: 1653457163,
11
11
  version: '',
12
12
  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'
13
13
  };