@progress/kendo-react-grid 5.15.0 → 5.16.0-dev.202307211637

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
@@ -114,6 +114,7 @@ export declare class Grid extends React.Component<GridProps> {
114
114
  private _data;
115
115
  private _slicedData;
116
116
  private wrapperScrollTop;
117
+ private showLicenseWatermark;
117
118
  /**
118
119
  * A getter of the current columns. Gets the current column width or current columns, or any other [`GridColumnProps`]({% slug api_grid_gridcolumnprops %}) for each defined column. Can be used on each Grid instance. To obtain the instance of the rendered Grid, use the `ref` callback. The following example demonstrates how to reorder the columns by dragging their handlers and check the properties afterwards. You can check the result in the browser console.
119
120
  *
package/dist/es/Grid.js CHANGED
@@ -59,7 +59,7 @@ import { operators } from './filterCommon';
59
59
  import { FooterRow } from './footer/FooterRow';
60
60
  import { normalize } from './paging/GridPagerSettings';
61
61
  import { pagerMessagesMap } from './messages';
62
- import { validatePackage } from '@progress/kendo-react-common';
62
+ import { validatePackage, shouldShowValidationUI, WatermarkOverlay } from '@progress/kendo-react-common';
63
63
  import { packageMetadata } from './package-metadata';
64
64
  import { GridDetailCell } from './cells/GridDetailCell';
65
65
  import { GridDetailHierarchyCell } from './cells/GridDetailHierarchyCell';
@@ -106,6 +106,7 @@ var Grid = /** @class */ (function (_super) {
106
106
  _this._data = [];
107
107
  _this._slicedData = undefined;
108
108
  _this.wrapperScrollTop = 0;
109
+ _this.showLicenseWatermark = false;
109
110
  _this.headerRef = React.createRef();
110
111
  _this.headerElementRef = React.createRef();
111
112
  _this._element = null;
@@ -443,6 +444,7 @@ var Grid = /** @class */ (function (_super) {
443
444
  return _this._data.filter(function (item) { return item.rowType === 'data'; }).map(function (item) { return item.dataItem; });
444
445
  };
445
446
  validatePackage(packageMetadata);
447
+ _this.showLicenseWatermark = shouldShowValidationUI(packageMetadata);
446
448
  var groupable = _this.props.groupable === true ||
447
449
  (typeof _this.props.groupable === 'object') && _this.props.groupable.enabled !== false;
448
450
  var VS = _this.getVirtualScroll(props);
@@ -808,7 +810,8 @@ var Grid = /** @class */ (function (_super) {
808
810
  this.props.pageable && pager,
809
811
  enableDragClues && (React.createElement(React.Fragment, null,
810
812
  React.createElement(DropClue, { ref: this.dragLogic.refDropElementClue }),
811
- React.createElement(DragClue, { ref: this.dragLogic.refDragElementClue }))))));
813
+ React.createElement(DragClue, { ref: this.dragLogic.refDragElementClue }))),
814
+ this.showLicenseWatermark && React.createElement(WatermarkOverlay, null))));
812
815
  };
813
816
  Grid.prototype.selectionChange = function (options) {
814
817
  if (this.props.onSelectionChange) {
@@ -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: 1689765577,
8
+ publishDate: 1689956031,
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
  };
@@ -114,6 +114,7 @@ export declare class Grid extends React.Component<GridProps> {
114
114
  private _data;
115
115
  private _slicedData;
116
116
  private wrapperScrollTop;
117
+ private showLicenseWatermark;
117
118
  /**
118
119
  * A getter of the current columns. Gets the current column width or current columns, or any other [`GridColumnProps`]({% slug api_grid_gridcolumnprops %}) for each defined column. Can be used on each Grid instance. To obtain the instance of the rendered Grid, use the `ref` callback. The following example demonstrates how to reorder the columns by dragging their handlers and check the properties afterwards. You can check the result in the browser console.
119
120
  *
package/dist/npm/Grid.js CHANGED
@@ -109,6 +109,7 @@ var Grid = /** @class */ (function (_super) {
109
109
  _this._data = [];
110
110
  _this._slicedData = undefined;
111
111
  _this.wrapperScrollTop = 0;
112
+ _this.showLicenseWatermark = false;
112
113
  _this.headerRef = React.createRef();
113
114
  _this.headerElementRef = React.createRef();
114
115
  _this._element = null;
@@ -446,6 +447,7 @@ var Grid = /** @class */ (function (_super) {
446
447
  return _this._data.filter(function (item) { return item.rowType === 'data'; }).map(function (item) { return item.dataItem; });
447
448
  };
448
449
  (0, kendo_react_common_2.validatePackage)(package_metadata_1.packageMetadata);
450
+ _this.showLicenseWatermark = (0, kendo_react_common_2.shouldShowValidationUI)(package_metadata_1.packageMetadata);
449
451
  var groupable = _this.props.groupable === true ||
450
452
  (typeof _this.props.groupable === 'object') && _this.props.groupable.enabled !== false;
451
453
  var VS = _this.getVirtualScroll(props);
@@ -811,7 +813,8 @@ var Grid = /** @class */ (function (_super) {
811
813
  this.props.pageable && pager,
812
814
  enableDragClues && (React.createElement(React.Fragment, null,
813
815
  React.createElement(kendo_react_data_tools_1.DropClue, { ref: this.dragLogic.refDropElementClue }),
814
- React.createElement(kendo_react_data_tools_1.DragClue, { ref: this.dragLogic.refDragElementClue }))))));
816
+ React.createElement(kendo_react_data_tools_1.DragClue, { ref: this.dragLogic.refDragElementClue }))),
817
+ this.showLicenseWatermark && React.createElement(kendo_react_common_2.WatermarkOverlay, null))));
815
818
  };
816
819
  Grid.prototype.selectionChange = function (options) {
817
820
  if (this.props.onSelectionChange) {
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-react-grid',
9
9
  productName: 'KendoReact',
10
10
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
11
- publishDate: 1689765577,
11
+ publishDate: 1689956031,
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
  };