@progress/kendo-react-layout 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.
@@ -14,6 +14,8 @@ import * as PropTypes from 'prop-types';
14
14
  import { DrawerContext } from './context/DrawerContext';
15
15
  import { DrawerItem } from './DrawerItem';
16
16
  import { classNames } from '@progress/kendo-react-common';
17
+ import { packageMetadata } from '../package-metadata';
18
+ import { shouldShowValidationUI, validatePackage, WatermarkOverlay } from '@progress/kendo-react-common';
17
19
  /**
18
20
  * @hidden
19
21
  */
@@ -65,6 +67,8 @@ var NO_ANIMATION = { type: 'slide', duration: 0 };
65
67
  */
66
68
  export var DrawerNavigation = React.forwardRef(function (props, target) {
67
69
  var children = props.children, className = props.className, style = props.style;
70
+ validatePackage(packageMetadata);
71
+ var showLicenseWatermark = shouldShowValidationUI(packageMetadata);
68
72
  var _a = React.useContext(DrawerContext), animation = _a.animation, expanded = _a.expanded, mode = _a.mode, position = _a.position, onOverlayClick = _a.onOverlayClick, mini = _a.mini, dir = _a.dir, width = _a.width, miniWidth = _a.miniWidth, items = _a.items, item = _a.item, onSelect = _a.onSelect;
69
73
  var elementRef = React.useRef(null);
70
74
  var focusElement = React.useCallback(function () {
@@ -131,7 +135,8 @@ export var DrawerNavigation = React.forwardRef(function (props, target) {
131
135
  return (React.createElement(ItemComp, __assign({ key: index }, drawerItemProps)));
132
136
  }))));
133
137
  var drawerNavigation = (React.createElement("div", { style: customSettings ? __assign(__assign({}, drawerAnimation), style) : style, className: navigationClassNames, ref: elementRef },
134
- React.createElement("div", { className: 'k-drawer-wrapper', style: !expanded && mini && mode === 'overlay' ? { width: navMiniWidth } : { width: navWidth } }, drawerItems || children)));
138
+ React.createElement("div", { className: 'k-drawer-wrapper', style: !expanded && mini && mode === 'overlay' ? { width: navMiniWidth } : { width: navWidth } }, drawerItems || children),
139
+ showLicenseWatermark && React.createElement(WatermarkOverlay, null)));
135
140
  return (mode === 'overlay' ?
136
141
  (React.createElement(React.Fragment, null,
137
142
  expanded && React.createElement("div", { className: "k-overlay", onClick: onOverlayClick }),
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-react-layout',
6
6
  productName: 'KendoReact',
7
7
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
8
- publishDate: 1689764707,
8
+ publishDate: 1689955136,
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
  };
@@ -43,6 +43,7 @@ export declare class PanelBar extends React.Component<PanelBarProps, PanelBarSta
43
43
  readonly state: PanelBarState;
44
44
  private activeDescendant?;
45
45
  private _element;
46
+ private showLicenseWatermark;
46
47
  private nextTickId;
47
48
  private get expandMode();
48
49
  private get selectedItem();
@@ -37,8 +37,7 @@ import * as React from 'react';
37
37
  import * as PropTypes from 'prop-types';
38
38
  import { PanelBarItem } from './PanelBarItem';
39
39
  import { renderChildren, getInitialState, flatVisibleChildren, flatChildren, isArrayEqual, getFirstId } from './util';
40
- import { classNames, Keys } from '@progress/kendo-react-common';
41
- import { validatePackage } from '@progress/kendo-react-common';
40
+ import { classNames, Keys, validatePackage, shouldShowValidationUI, WatermarkOverlay } from '@progress/kendo-react-common';
42
41
  import { packageMetadata } from '../package-metadata';
43
42
  import { NavigationAction } from './interfaces/NavigationAction';
44
43
  var PanelBar = /** @class */ (function (_super) {
@@ -46,6 +45,7 @@ var PanelBar = /** @class */ (function (_super) {
46
45
  function PanelBar(props) {
47
46
  var _this = _super.call(this, props) || this;
48
47
  _this._element = null;
48
+ _this.showLicenseWatermark = false;
49
49
  /**
50
50
  * @hidden
51
51
  */
@@ -180,6 +180,7 @@ var PanelBar = /** @class */ (function (_super) {
180
180
  }
181
181
  };
182
182
  validatePackage(packageMetadata);
183
+ _this.showLicenseWatermark = shouldShowValidationUI(packageMetadata);
183
184
  var initialState = getInitialState(props, _this.expandMode);
184
185
  if (!initialState.focused) {
185
186
  initialState.focused = getFirstId(props);
@@ -234,8 +235,10 @@ var PanelBar = /** @class */ (function (_super) {
234
235
  var ariaProps = {
235
236
  'aria-activedescendant': this.activeDescendant
236
237
  };
237
- var className = classNames('k-panelbar', this.props.className);
238
- return (React.createElement("ul", __assign({ ref: function (div) { _this._element = div; }, dir: this.props.dir, role: 'tree', tabIndex: 0, onKeyDown: this.handleKeyDown, onFocus: this.handleWrapperFocus, onBlur: this.handleWrapperBlur, className: className, style: this.props.style }, ariaProps), this.children));
238
+ var className = classNames('k-panelbar', 'k-pos-relative', this.props.className);
239
+ return (React.createElement("ul", __assign({ ref: function (div) { _this._element = div; }, dir: this.props.dir, role: 'tree', tabIndex: 0, onKeyDown: this.handleKeyDown, onFocus: this.handleWrapperFocus, onBlur: this.handleWrapperBlur, className: className, style: this.props.style }, ariaProps),
240
+ this.children,
241
+ this.showLicenseWatermark && React.createElement(WatermarkOverlay, null)));
239
242
  };
240
243
  PanelBar.prototype.nextTick = function (f) {
241
244
  this.nextTickId = window.setTimeout(function () { return f(); });
@@ -122,6 +122,7 @@ export declare class TabStrip extends React.Component<TabStripProps, {}> {
122
122
  mouseScrollSpeed: number;
123
123
  };
124
124
  private _element;
125
+ private showLicenseWatermark;
125
126
  private keyBinding;
126
127
  constructor(props: TabStripProps);
127
128
  /**
@@ -28,7 +28,7 @@ import * as React from 'react';
28
28
  import * as PropTypes from 'prop-types';
29
29
  import { TabStripNavigation } from './TabStripNavigation';
30
30
  import { TabStripContent } from './TabStripContent';
31
- import { Keys, classNames, validatePackage } from '@progress/kendo-react-common';
31
+ import { Keys, classNames, validatePackage, shouldShowValidationUI, WatermarkOverlay } from '@progress/kendo-react-common';
32
32
  import { packageMetadata } from '../package-metadata';
33
33
  var TabStrip = /** @class */ (function (_super) {
34
34
  __extends(TabStrip, _super);
@@ -36,6 +36,7 @@ var TabStrip = /** @class */ (function (_super) {
36
36
  var _a;
37
37
  var _this = _super.call(this, props) || this;
38
38
  _this._element = null;
39
+ _this.showLicenseWatermark = false;
39
40
  _this.keyBinding = (_a = {},
40
41
  _a[Keys.left] = function () { return _this.prevNavigatableTab(); },
41
42
  _a[Keys.right] = function () { return _this.nextNavigatableTab(); },
@@ -156,6 +157,7 @@ var TabStrip = /** @class */ (function (_super) {
156
157
  }
157
158
  };
158
159
  validatePackage(packageMetadata);
160
+ _this.showLicenseWatermark = shouldShowValidationUI(packageMetadata);
159
161
  return _this;
160
162
  }
161
163
  /**
@@ -166,7 +168,7 @@ var TabStrip = /** @class */ (function (_super) {
166
168
  var tabProps = __assign(__assign({}, this.props), { children: this.children(), onKeyDown: this.onKeyDown, onSelect: this.onSelect });
167
169
  var tabPosition = tabProps.tabPosition, _a = tabProps.tabIndex, tabIndex = _a === void 0 ? 0 : _a;
168
170
  var bottom = tabPosition === 'bottom';
169
- var componentClasses = classNames('k-tabstrip', {
171
+ var componentClasses = classNames('k-tabstrip k-pos-relative', {
170
172
  'k-tabstrip-left': tabPosition === 'left',
171
173
  'k-tabstrip-right': tabPosition === 'right',
172
174
  'k-tabstrip-bottom': tabPosition === 'bottom',
@@ -176,7 +178,8 @@ var TabStrip = /** @class */ (function (_super) {
176
178
  return (React.createElement("div", { id: this.props.id, ref: function (div) { return _this._element = div; }, dir: this.props.dir, className: componentClasses, style: this.props.style },
177
179
  !bottom && React.createElement(TabStripNavigation, __assign({}, tabProps, { tabIndex: tabIndex })),
178
180
  this.renderContent(tabProps),
179
- bottom && React.createElement(TabStripNavigation, __assign({}, tabProps, { tabIndex: tabIndex }))));
181
+ bottom && React.createElement(TabStripNavigation, __assign({}, tabProps, { tabIndex: tabIndex })),
182
+ this.showLicenseWatermark && React.createElement(WatermarkOverlay, null)));
180
183
  };
181
184
  TabStrip.prototype.invertKeys = function (original, inverted) {
182
185
  var rtl = this._element && (getComputedStyle(this._element).direction === 'rtl') || false;
@@ -121,6 +121,8 @@ export declare class TileLayout extends React.Component<TileLayoutProps, TileLay
121
121
  colSpan: number;
122
122
  } & TilePosition)[];
123
123
  };
124
+ private showLicenseWatermark;
125
+ constructor(props: TileLayoutProps);
124
126
  /**
125
127
  * Gets the HTML element of the TileLayout component.
126
128
  */
@@ -26,8 +26,9 @@ var __assign = (this && this.__assign) || function () {
26
26
  };
27
27
  import * as React from 'react';
28
28
  import * as PropTypes from 'prop-types';
29
- import { getter, classNames, dispatchEvent } from '@progress/kendo-react-common';
29
+ import { getter, classNames, dispatchEvent, WatermarkOverlay, shouldShowValidationUI, validatePackage } from '@progress/kendo-react-common';
30
30
  import { InternalTile } from './InternalTile';
31
+ import { packageMetadata } from '../package-metadata';
31
32
  /**
32
33
  * @hidden
33
34
  */
@@ -43,8 +44,8 @@ var AUTO_FLOW_CLASSES = {
43
44
  */
44
45
  var TileLayout = /** @class */ (function (_super) {
45
46
  __extends(TileLayout, _super);
46
- function TileLayout() {
47
- var _this = _super !== null && _super.apply(this, arguments) || this;
47
+ function TileLayout(props) {
48
+ var _this = _super.call(this, props) || this;
48
49
  /**
49
50
  * @hidden
50
51
  */
@@ -53,6 +54,7 @@ var TileLayout = /** @class */ (function (_super) {
53
54
  * @hidden
54
55
  */
55
56
  _this.state = { positions: (_this.props.items || []).map(function (p, i) { return (Object.assign({ order: i, rowSpan: 1, colSpan: 1 }, p.defaultPosition)); }) };
57
+ _this.showLicenseWatermark = false;
56
58
  /**
57
59
  * @hidden
58
60
  */
@@ -101,6 +103,8 @@ var TileLayout = /** @class */ (function (_super) {
101
103
  dispatchEvent(_this.props.onReposition, {}, _this, { value: positions });
102
104
  }
103
105
  };
106
+ validatePackage(packageMetadata);
107
+ _this.showLicenseWatermark = shouldShowValidationUI(packageMetadata);
104
108
  return _this;
105
109
  }
106
110
  Object.defineProperty(TileLayout.prototype, "element", {
@@ -138,10 +142,12 @@ var TileLayout = /** @class */ (function (_super) {
138
142
  ? "".concat(typeof gap.rows === 'number' ? gap.rows + 'px' : gap.rows) + ' ' + "".concat(typeof gap.columns === 'number' ? gap.columns + 'px' : gap.columns)
139
143
  : 16;
140
144
  var tileLayoutStyles = __assign({ gridTemplateColumns: "repeat(".concat(columns, ", minmax(0px, ").concat(typeof columnWidth === 'number' ? columnWidth + 'px' : columnWidth, "))"), gridAutoRows: "minmax(0px, ".concat(typeof rowHeight === 'number' ? rowHeight + 'px' : rowHeight, ")"), gap: gapValue, padding: gapValue }, style);
141
- return (React.createElement("div", { ref: function (el) { _this._element = el; }, dir: this.props.dir, className: classNames('k-tilelayout', AUTO_FLOW_CLASSES[autoFlow], className), style: tileLayoutStyles, id: this.props.id, children: items.map(function (tile, index) {
142
- return (React.createElement(InternalTile, { key: _this.props.dataItemKey ? getter(_this.props.dataItemKey)(tile) : index, update: _this.update, defaultPosition: _this.state.positions[index], index: index, resizable: tile.resizable, reorderable: tile.reorderable, style: tile.style, className: tile.className, hintClassName: tile.hintClassName, hintStyle: tile.hintStyle, ignoreDrag: _this.props.ignoreDrag }, tile.item ? tile.item : (React.createElement(React.Fragment, null,
143
- React.createElement("div", { className: "k-tilelayout-item-header k-card-header" }, React.isValidElement(tile.header) ? tile.header : React.createElement("h5", { className: 'k-card-title' }, tile.header)),
144
- React.createElement("div", { className: 'k-tilelayout-item-body k-card-body' }, tile.body)))));
145
+ return (React.createElement("div", { ref: function (el) { _this._element = el; }, dir: this.props.dir, className: classNames('k-tilelayout k-pos-relative', AUTO_FLOW_CLASSES[autoFlow], className), style: tileLayoutStyles, id: this.props.id, children: items.map(function (tile, index) {
146
+ return (React.createElement(React.Fragment, { key: _this.props.dataItemKey ? getter(_this.props.dataItemKey)(tile) : index },
147
+ React.createElement(InternalTile, { update: _this.update, defaultPosition: _this.state.positions[index], index: index, resizable: tile.resizable, reorderable: tile.reorderable, style: tile.style, className: tile.className, hintClassName: tile.hintClassName, hintStyle: tile.hintStyle, ignoreDrag: _this.props.ignoreDrag }, tile.item ? tile.item : (React.createElement(React.Fragment, null,
148
+ React.createElement("div", { className: "k-tilelayout-item-header k-card-header" }, React.isValidElement(tile.header) ? tile.header : React.createElement("h5", { className: 'k-card-title' }, tile.header)),
149
+ React.createElement("div", { className: 'k-tilelayout-item-body k-card-body' }, tile.body)))),
150
+ _this.showLicenseWatermark && React.createElement(WatermarkOverlay, null)));
145
151
  }) }));
146
152
  };
147
153
  /**
@@ -17,6 +17,8 @@ var PropTypes = require("prop-types");
17
17
  var DrawerContext_1 = require("./context/DrawerContext");
18
18
  var DrawerItem_1 = require("./DrawerItem");
19
19
  var kendo_react_common_1 = require("@progress/kendo-react-common");
20
+ var package_metadata_1 = require("../package-metadata");
21
+ var kendo_react_common_2 = require("@progress/kendo-react-common");
20
22
  /**
21
23
  * @hidden
22
24
  */
@@ -68,6 +70,8 @@ var NO_ANIMATION = { type: 'slide', duration: 0 };
68
70
  */
69
71
  exports.DrawerNavigation = React.forwardRef(function (props, target) {
70
72
  var children = props.children, className = props.className, style = props.style;
73
+ (0, kendo_react_common_2.validatePackage)(package_metadata_1.packageMetadata);
74
+ var showLicenseWatermark = (0, kendo_react_common_2.shouldShowValidationUI)(package_metadata_1.packageMetadata);
71
75
  var _a = React.useContext(DrawerContext_1.DrawerContext), animation = _a.animation, expanded = _a.expanded, mode = _a.mode, position = _a.position, onOverlayClick = _a.onOverlayClick, mini = _a.mini, dir = _a.dir, width = _a.width, miniWidth = _a.miniWidth, items = _a.items, item = _a.item, onSelect = _a.onSelect;
72
76
  var elementRef = React.useRef(null);
73
77
  var focusElement = React.useCallback(function () {
@@ -134,7 +138,8 @@ exports.DrawerNavigation = React.forwardRef(function (props, target) {
134
138
  return (React.createElement(ItemComp, __assign({ key: index }, drawerItemProps)));
135
139
  }))));
136
140
  var drawerNavigation = (React.createElement("div", { style: customSettings ? __assign(__assign({}, drawerAnimation), style) : style, className: navigationClassNames, ref: elementRef },
137
- React.createElement("div", { className: 'k-drawer-wrapper', style: !expanded && mini && mode === 'overlay' ? { width: navMiniWidth } : { width: navWidth } }, drawerItems || children)));
141
+ React.createElement("div", { className: 'k-drawer-wrapper', style: !expanded && mini && mode === 'overlay' ? { width: navMiniWidth } : { width: navWidth } }, drawerItems || children),
142
+ showLicenseWatermark && React.createElement(kendo_react_common_2.WatermarkOverlay, null)));
138
143
  return (mode === 'overlay' ?
139
144
  (React.createElement(React.Fragment, null,
140
145
  expanded && React.createElement("div", { className: "k-overlay", onClick: onOverlayClick }),
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-react-layout',
9
9
  productName: 'KendoReact',
10
10
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
11
- publishDate: 1689764707,
11
+ publishDate: 1689955136,
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
  };
@@ -43,6 +43,7 @@ export declare class PanelBar extends React.Component<PanelBarProps, PanelBarSta
43
43
  readonly state: PanelBarState;
44
44
  private activeDescendant?;
45
45
  private _element;
46
+ private showLicenseWatermark;
46
47
  private nextTickId;
47
48
  private get expandMode();
48
49
  private get selectedItem();
@@ -41,7 +41,6 @@ var PropTypes = require("prop-types");
41
41
  var PanelBarItem_1 = require("./PanelBarItem");
42
42
  var util_1 = require("./util");
43
43
  var kendo_react_common_1 = require("@progress/kendo-react-common");
44
- var kendo_react_common_2 = require("@progress/kendo-react-common");
45
44
  var package_metadata_1 = require("../package-metadata");
46
45
  var NavigationAction_1 = require("./interfaces/NavigationAction");
47
46
  var PanelBar = /** @class */ (function (_super) {
@@ -49,6 +48,7 @@ var PanelBar = /** @class */ (function (_super) {
49
48
  function PanelBar(props) {
50
49
  var _this = _super.call(this, props) || this;
51
50
  _this._element = null;
51
+ _this.showLicenseWatermark = false;
52
52
  /**
53
53
  * @hidden
54
54
  */
@@ -182,7 +182,8 @@ var PanelBar = /** @class */ (function (_super) {
182
182
  }
183
183
  }
184
184
  };
185
- (0, kendo_react_common_2.validatePackage)(package_metadata_1.packageMetadata);
185
+ (0, kendo_react_common_1.validatePackage)(package_metadata_1.packageMetadata);
186
+ _this.showLicenseWatermark = (0, kendo_react_common_1.shouldShowValidationUI)(package_metadata_1.packageMetadata);
186
187
  var initialState = (0, util_1.getInitialState)(props, _this.expandMode);
187
188
  if (!initialState.focused) {
188
189
  initialState.focused = (0, util_1.getFirstId)(props);
@@ -237,8 +238,10 @@ var PanelBar = /** @class */ (function (_super) {
237
238
  var ariaProps = {
238
239
  'aria-activedescendant': this.activeDescendant
239
240
  };
240
- var className = (0, kendo_react_common_1.classNames)('k-panelbar', this.props.className);
241
- return (React.createElement("ul", __assign({ ref: function (div) { _this._element = div; }, dir: this.props.dir, role: 'tree', tabIndex: 0, onKeyDown: this.handleKeyDown, onFocus: this.handleWrapperFocus, onBlur: this.handleWrapperBlur, className: className, style: this.props.style }, ariaProps), this.children));
241
+ var className = (0, kendo_react_common_1.classNames)('k-panelbar', 'k-pos-relative', this.props.className);
242
+ return (React.createElement("ul", __assign({ ref: function (div) { _this._element = div; }, dir: this.props.dir, role: 'tree', tabIndex: 0, onKeyDown: this.handleKeyDown, onFocus: this.handleWrapperFocus, onBlur: this.handleWrapperBlur, className: className, style: this.props.style }, ariaProps),
243
+ this.children,
244
+ this.showLicenseWatermark && React.createElement(kendo_react_common_1.WatermarkOverlay, null)));
242
245
  };
243
246
  PanelBar.prototype.nextTick = function (f) {
244
247
  this.nextTickId = window.setTimeout(function () { return f(); });
@@ -122,6 +122,7 @@ export declare class TabStrip extends React.Component<TabStripProps, {}> {
122
122
  mouseScrollSpeed: number;
123
123
  };
124
124
  private _element;
125
+ private showLicenseWatermark;
125
126
  private keyBinding;
126
127
  constructor(props: TabStripProps);
127
128
  /**
@@ -39,6 +39,7 @@ var TabStrip = /** @class */ (function (_super) {
39
39
  var _a;
40
40
  var _this = _super.call(this, props) || this;
41
41
  _this._element = null;
42
+ _this.showLicenseWatermark = false;
42
43
  _this.keyBinding = (_a = {},
43
44
  _a[kendo_react_common_1.Keys.left] = function () { return _this.prevNavigatableTab(); },
44
45
  _a[kendo_react_common_1.Keys.right] = function () { return _this.nextNavigatableTab(); },
@@ -159,6 +160,7 @@ var TabStrip = /** @class */ (function (_super) {
159
160
  }
160
161
  };
161
162
  (0, kendo_react_common_1.validatePackage)(package_metadata_1.packageMetadata);
163
+ _this.showLicenseWatermark = (0, kendo_react_common_1.shouldShowValidationUI)(package_metadata_1.packageMetadata);
162
164
  return _this;
163
165
  }
164
166
  /**
@@ -169,7 +171,7 @@ var TabStrip = /** @class */ (function (_super) {
169
171
  var tabProps = __assign(__assign({}, this.props), { children: this.children(), onKeyDown: this.onKeyDown, onSelect: this.onSelect });
170
172
  var tabPosition = tabProps.tabPosition, _a = tabProps.tabIndex, tabIndex = _a === void 0 ? 0 : _a;
171
173
  var bottom = tabPosition === 'bottom';
172
- var componentClasses = (0, kendo_react_common_1.classNames)('k-tabstrip', {
174
+ var componentClasses = (0, kendo_react_common_1.classNames)('k-tabstrip k-pos-relative', {
173
175
  'k-tabstrip-left': tabPosition === 'left',
174
176
  'k-tabstrip-right': tabPosition === 'right',
175
177
  'k-tabstrip-bottom': tabPosition === 'bottom',
@@ -179,7 +181,8 @@ var TabStrip = /** @class */ (function (_super) {
179
181
  return (React.createElement("div", { id: this.props.id, ref: function (div) { return _this._element = div; }, dir: this.props.dir, className: componentClasses, style: this.props.style },
180
182
  !bottom && React.createElement(TabStripNavigation_1.TabStripNavigation, __assign({}, tabProps, { tabIndex: tabIndex })),
181
183
  this.renderContent(tabProps),
182
- bottom && React.createElement(TabStripNavigation_1.TabStripNavigation, __assign({}, tabProps, { tabIndex: tabIndex }))));
184
+ bottom && React.createElement(TabStripNavigation_1.TabStripNavigation, __assign({}, tabProps, { tabIndex: tabIndex })),
185
+ this.showLicenseWatermark && React.createElement(kendo_react_common_1.WatermarkOverlay, null)));
183
186
  };
184
187
  TabStrip.prototype.invertKeys = function (original, inverted) {
185
188
  var rtl = this._element && (getComputedStyle(this._element).direction === 'rtl') || false;
@@ -121,6 +121,8 @@ export declare class TileLayout extends React.Component<TileLayoutProps, TileLay
121
121
  colSpan: number;
122
122
  } & TilePosition)[];
123
123
  };
124
+ private showLicenseWatermark;
125
+ constructor(props: TileLayoutProps);
124
126
  /**
125
127
  * Gets the HTML element of the TileLayout component.
126
128
  */
@@ -31,6 +31,7 @@ var React = require("react");
31
31
  var PropTypes = require("prop-types");
32
32
  var kendo_react_common_1 = require("@progress/kendo-react-common");
33
33
  var InternalTile_1 = require("./InternalTile");
34
+ var package_metadata_1 = require("../package-metadata");
34
35
  /**
35
36
  * @hidden
36
37
  */
@@ -46,8 +47,8 @@ var AUTO_FLOW_CLASSES = {
46
47
  */
47
48
  var TileLayout = /** @class */ (function (_super) {
48
49
  __extends(TileLayout, _super);
49
- function TileLayout() {
50
- var _this = _super !== null && _super.apply(this, arguments) || this;
50
+ function TileLayout(props) {
51
+ var _this = _super.call(this, props) || this;
51
52
  /**
52
53
  * @hidden
53
54
  */
@@ -56,6 +57,7 @@ var TileLayout = /** @class */ (function (_super) {
56
57
  * @hidden
57
58
  */
58
59
  _this.state = { positions: (_this.props.items || []).map(function (p, i) { return (Object.assign({ order: i, rowSpan: 1, colSpan: 1 }, p.defaultPosition)); }) };
60
+ _this.showLicenseWatermark = false;
59
61
  /**
60
62
  * @hidden
61
63
  */
@@ -104,6 +106,8 @@ var TileLayout = /** @class */ (function (_super) {
104
106
  (0, kendo_react_common_1.dispatchEvent)(_this.props.onReposition, {}, _this, { value: positions });
105
107
  }
106
108
  };
109
+ (0, kendo_react_common_1.validatePackage)(package_metadata_1.packageMetadata);
110
+ _this.showLicenseWatermark = (0, kendo_react_common_1.shouldShowValidationUI)(package_metadata_1.packageMetadata);
107
111
  return _this;
108
112
  }
109
113
  Object.defineProperty(TileLayout.prototype, "element", {
@@ -141,10 +145,12 @@ var TileLayout = /** @class */ (function (_super) {
141
145
  ? "".concat(typeof gap.rows === 'number' ? gap.rows + 'px' : gap.rows) + ' ' + "".concat(typeof gap.columns === 'number' ? gap.columns + 'px' : gap.columns)
142
146
  : 16;
143
147
  var tileLayoutStyles = __assign({ gridTemplateColumns: "repeat(".concat(columns, ", minmax(0px, ").concat(typeof columnWidth === 'number' ? columnWidth + 'px' : columnWidth, "))"), gridAutoRows: "minmax(0px, ".concat(typeof rowHeight === 'number' ? rowHeight + 'px' : rowHeight, ")"), gap: gapValue, padding: gapValue }, style);
144
- return (React.createElement("div", { ref: function (el) { _this._element = el; }, dir: this.props.dir, className: (0, kendo_react_common_1.classNames)('k-tilelayout', AUTO_FLOW_CLASSES[autoFlow], className), style: tileLayoutStyles, id: this.props.id, children: items.map(function (tile, index) {
145
- return (React.createElement(InternalTile_1.InternalTile, { key: _this.props.dataItemKey ? (0, kendo_react_common_1.getter)(_this.props.dataItemKey)(tile) : index, update: _this.update, defaultPosition: _this.state.positions[index], index: index, resizable: tile.resizable, reorderable: tile.reorderable, style: tile.style, className: tile.className, hintClassName: tile.hintClassName, hintStyle: tile.hintStyle, ignoreDrag: _this.props.ignoreDrag }, tile.item ? tile.item : (React.createElement(React.Fragment, null,
146
- React.createElement("div", { className: "k-tilelayout-item-header k-card-header" }, React.isValidElement(tile.header) ? tile.header : React.createElement("h5", { className: 'k-card-title' }, tile.header)),
147
- React.createElement("div", { className: 'k-tilelayout-item-body k-card-body' }, tile.body)))));
148
+ return (React.createElement("div", { ref: function (el) { _this._element = el; }, dir: this.props.dir, className: (0, kendo_react_common_1.classNames)('k-tilelayout k-pos-relative', AUTO_FLOW_CLASSES[autoFlow], className), style: tileLayoutStyles, id: this.props.id, children: items.map(function (tile, index) {
149
+ return (React.createElement(React.Fragment, { key: _this.props.dataItemKey ? (0, kendo_react_common_1.getter)(_this.props.dataItemKey)(tile) : index },
150
+ React.createElement(InternalTile_1.InternalTile, { update: _this.update, defaultPosition: _this.state.positions[index], index: index, resizable: tile.resizable, reorderable: tile.reorderable, style: tile.style, className: tile.className, hintClassName: tile.hintClassName, hintStyle: tile.hintStyle, ignoreDrag: _this.props.ignoreDrag }, tile.item ? tile.item : (React.createElement(React.Fragment, null,
151
+ React.createElement("div", { className: "k-tilelayout-item-header k-card-header" }, React.isValidElement(tile.header) ? tile.header : React.createElement("h5", { className: 'k-card-title' }, tile.header)),
152
+ React.createElement("div", { className: 'k-tilelayout-item-body k-card-body' }, tile.body)))),
153
+ _this.showLicenseWatermark && React.createElement(kendo_react_common_1.WatermarkOverlay, null)));
148
154
  }) }));
149
155
  };
150
156
  /**