@progress/kendo-react-layout 5.4.0-dev.202205271059 → 5.4.0-dev.202206090823

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.
Files changed (159) hide show
  1. package/dist/cdn/js/kendo-react-layout.js +1 -1
  2. package/dist/es/appbar/AppBar.d.ts +1 -1
  3. package/dist/es/appbar/AppBarSection.d.ts +1 -1
  4. package/dist/es/appbar/AppBarSpacer.d.ts +1 -1
  5. package/dist/es/appbar/interfaces/AppBarSpacerProps.d.ts +4 -0
  6. package/dist/es/bottomnavigation/BottomNavigation.d.ts +1 -1
  7. package/dist/es/bottomnavigation/BottomNavigation.js +1 -1
  8. package/dist/es/bottomnavigation/BottomNavigationItem.d.ts +1 -1
  9. package/dist/es/bottomnavigation/BottomNavigationItem.js +1 -1
  10. package/dist/es/breadcrumb/Breadcrumb.d.ts +5 -1
  11. package/dist/es/breadcrumb/Breadcrumb.js +9 -4
  12. package/dist/es/breadcrumb/BreadcrumbDelimiter.d.ts +1 -1
  13. package/dist/es/breadcrumb/BreadcrumbDelimiter.js +0 -1
  14. package/dist/es/breadcrumb/BreadcrumbLink.d.ts +1 -1
  15. package/dist/es/breadcrumb/BreadcrumbListItem.d.ts +1 -1
  16. package/dist/es/breadcrumb/BreadcrumbListItem.js +0 -1
  17. package/dist/es/breadcrumb/BreadcrumbOrderedList.d.ts +1 -1
  18. package/dist/es/breadcrumb/BreadcrumbOrderedList.js +0 -1
  19. package/dist/es/card/Avatar.js +5 -5
  20. package/dist/es/card/Card.d.ts +1 -1
  21. package/dist/es/card/Card.js +1 -1
  22. package/dist/es/card/CardActions.js +1 -1
  23. package/dist/es/drawer/Drawer.d.ts +1 -1
  24. package/dist/es/drawer/Drawer.js +9 -4
  25. package/dist/es/drawer/DrawerContent.d.ts +1 -1
  26. package/dist/es/drawer/DrawerItem.d.ts +1 -1
  27. package/dist/es/drawer/DrawerItem.js +2 -2
  28. package/dist/es/drawer/DrawerNavigation.d.ts +1 -1
  29. package/dist/es/drawer/context/DrawerContext.d.ts +1 -1
  30. package/dist/es/drawer/interfaces/DrawerItemProps.d.ts +1 -1
  31. package/dist/es/expansionpanel/ExpansionPanel.d.ts +1 -1
  32. package/dist/es/gridlayout/GridLayout.d.ts +1 -1
  33. package/dist/es/gridlayout/GridLayout.js +3 -3
  34. package/dist/es/gridlayout/GridLayoutItem.d.ts +1 -1
  35. package/dist/es/gridlayout/GridLayoutItem.js +1 -1
  36. package/dist/es/menu/components/Menu.d.ts +2 -2
  37. package/dist/es/menu/components/Menu.js +2 -0
  38. package/dist/es/menu/components/MenuItem.d.ts +1 -1
  39. package/dist/es/menu/components/MenuItemInternal.js +1 -1
  40. package/dist/es/menu/models/BaseMenuItem.d.ts +4 -0
  41. package/dist/es/menu/utils/DirectionHolder.d.ts +1 -1
  42. package/dist/es/menu/utils/MouseOverHandler.js +1 -0
  43. package/dist/es/menu/utils/misc.js +1 -1
  44. package/dist/es/package-metadata.js +1 -1
  45. package/dist/es/panelbar/PanelBar.d.ts +2 -2
  46. package/dist/es/panelbar/PanelBar.js +10 -6
  47. package/dist/es/panelbar/PanelBarItem.d.ts +1 -1
  48. package/dist/es/panelbar/PanelBarItem.js +2 -2
  49. package/dist/es/panelbar/util.js +13 -9
  50. package/dist/es/splitter/Splitter.js +4 -3
  51. package/dist/es/splitter/SplitterBar.js +1 -0
  52. package/dist/es/stacklayout/StackLayout.d.ts +1 -1
  53. package/dist/es/stacklayout/StackLayout.js +1 -1
  54. package/dist/es/stepper/Step.d.ts +1 -1
  55. package/dist/es/stepper/Step.js +4 -4
  56. package/dist/es/stepper/Stepper.d.ts +1 -1
  57. package/dist/es/stepper/Stepper.js +4 -1
  58. package/dist/es/stepper/interfaces/StepperOnNavigateEvent.js +1 -0
  59. package/dist/es/tabstrip/TabStripContent.d.ts +5 -1
  60. package/dist/es/tabstrip/TabStripNavigation.d.ts +1 -1
  61. package/dist/es/tabstrip/TabStripTab.d.ts +3 -3
  62. package/dist/es/tilelayout/InternalTile.d.ts +3 -2
  63. package/dist/es/tilelayout/InternalTile.js +9 -15
  64. package/dist/es/tilelayout/ResizeHandlers.d.ts +1 -1
  65. package/dist/es/tilelayout/TileLayout.d.ts +1 -1
  66. package/dist/es/tilelayout/TileLayout.js +2 -2
  67. package/dist/npm/appbar/AppBar.d.ts +1 -1
  68. package/dist/npm/appbar/AppBar.js +4 -4
  69. package/dist/npm/appbar/AppBarSection.d.ts +1 -1
  70. package/dist/npm/appbar/AppBarSection.js +2 -2
  71. package/dist/npm/appbar/AppBarSpacer.d.ts +1 -1
  72. package/dist/npm/appbar/AppBarSpacer.js +2 -2
  73. package/dist/npm/appbar/interfaces/AppBarSpacerProps.d.ts +4 -0
  74. package/dist/npm/bottomnavigation/BottomNavigation.d.ts +1 -1
  75. package/dist/npm/bottomnavigation/BottomNavigation.js +8 -8
  76. package/dist/npm/bottomnavigation/BottomNavigationItem.d.ts +1 -1
  77. package/dist/npm/bottomnavigation/BottomNavigationItem.js +3 -3
  78. package/dist/npm/breadcrumb/Breadcrumb.d.ts +5 -1
  79. package/dist/npm/breadcrumb/Breadcrumb.js +14 -9
  80. package/dist/npm/breadcrumb/BreadcrumbDelimiter.d.ts +1 -1
  81. package/dist/npm/breadcrumb/BreadcrumbDelimiter.js +2 -3
  82. package/dist/npm/breadcrumb/BreadcrumbLink.d.ts +1 -1
  83. package/dist/npm/breadcrumb/BreadcrumbLink.js +5 -5
  84. package/dist/npm/breadcrumb/BreadcrumbListItem.d.ts +1 -1
  85. package/dist/npm/breadcrumb/BreadcrumbListItem.js +2 -3
  86. package/dist/npm/breadcrumb/BreadcrumbOrderedList.d.ts +1 -1
  87. package/dist/npm/breadcrumb/BreadcrumbOrderedList.js +2 -3
  88. package/dist/npm/card/Avatar.js +7 -7
  89. package/dist/npm/card/Card.d.ts +1 -1
  90. package/dist/npm/card/Card.js +2 -2
  91. package/dist/npm/card/CardActions.js +1 -1
  92. package/dist/npm/card/CardBody.js +1 -1
  93. package/dist/npm/card/CardFooter.js +1 -1
  94. package/dist/npm/card/CardHeader.js +1 -1
  95. package/dist/npm/card/CardImage.js +1 -1
  96. package/dist/npm/card/CardSubtitle.js +1 -1
  97. package/dist/npm/card/CardTitle.js +1 -1
  98. package/dist/npm/drawer/Drawer.d.ts +1 -1
  99. package/dist/npm/drawer/Drawer.js +12 -7
  100. package/dist/npm/drawer/DrawerContent.d.ts +1 -1
  101. package/dist/npm/drawer/DrawerContent.js +1 -1
  102. package/dist/npm/drawer/DrawerItem.d.ts +1 -1
  103. package/dist/npm/drawer/DrawerItem.js +4 -4
  104. package/dist/npm/drawer/DrawerNavigation.d.ts +1 -1
  105. package/dist/npm/drawer/DrawerNavigation.js +1 -1
  106. package/dist/npm/drawer/context/DrawerContext.d.ts +1 -1
  107. package/dist/npm/drawer/interfaces/DrawerItemProps.d.ts +1 -1
  108. package/dist/npm/expansionpanel/ExpansionPanel.d.ts +1 -1
  109. package/dist/npm/expansionpanel/ExpansionPanel.js +7 -7
  110. package/dist/npm/expansionpanel/ExpansionPanelContent.js +1 -1
  111. package/dist/npm/expansionpanel/index.js +5 -1
  112. package/dist/npm/gridlayout/GridLayout.d.ts +1 -1
  113. package/dist/npm/gridlayout/GridLayout.js +6 -6
  114. package/dist/npm/gridlayout/GridLayoutItem.d.ts +1 -1
  115. package/dist/npm/gridlayout/GridLayoutItem.js +3 -3
  116. package/dist/npm/main.js +5 -1
  117. package/dist/npm/menu/components/Menu.d.ts +2 -2
  118. package/dist/npm/menu/components/Menu.js +18 -16
  119. package/dist/npm/menu/components/MenuItem.d.ts +1 -1
  120. package/dist/npm/menu/components/MenuItemArrow.js +2 -2
  121. package/dist/npm/menu/components/MenuItemInternal.js +9 -9
  122. package/dist/npm/menu/components/MenuItemInternalsList.js +1 -1
  123. package/dist/npm/menu/components/MenuItemLink.js +2 -2
  124. package/dist/npm/menu/models/BaseMenuItem.d.ts +4 -0
  125. package/dist/npm/menu/utils/DirectionHolder.d.ts +1 -1
  126. package/dist/npm/menu/utils/MouseOverHandler.js +1 -0
  127. package/dist/npm/menu/utils/getNewItemIdUponKeyboardNavigation.js +24 -24
  128. package/dist/npm/menu/utils/misc.js +2 -2
  129. package/dist/npm/menu/utils/prepareInputItemsForInternalWork.js +2 -2
  130. package/dist/npm/package-metadata.js +1 -1
  131. package/dist/npm/panelbar/PanelBar.d.ts +2 -2
  132. package/dist/npm/panelbar/PanelBar.js +18 -14
  133. package/dist/npm/panelbar/PanelBarItem.d.ts +1 -1
  134. package/dist/npm/panelbar/PanelBarItem.js +6 -6
  135. package/dist/npm/panelbar/util.js +14 -10
  136. package/dist/npm/splitter/Splitter.js +5 -4
  137. package/dist/npm/splitter/SplitterBar.js +4 -3
  138. package/dist/npm/splitter/SplitterPane.js +1 -1
  139. package/dist/npm/stacklayout/StackLayout.d.ts +1 -1
  140. package/dist/npm/stacklayout/StackLayout.js +4 -4
  141. package/dist/npm/stepper/Step.d.ts +1 -1
  142. package/dist/npm/stepper/Step.js +9 -9
  143. package/dist/npm/stepper/Stepper.d.ts +1 -1
  144. package/dist/npm/stepper/Stepper.js +11 -8
  145. package/dist/npm/stepper/interfaces/StepperOnNavigateEvent.js +1 -0
  146. package/dist/npm/tabstrip/TabStrip.js +2 -2
  147. package/dist/npm/tabstrip/TabStripContent.d.ts +5 -1
  148. package/dist/npm/tabstrip/TabStripContent.js +2 -2
  149. package/dist/npm/tabstrip/TabStripNavigation.d.ts +1 -1
  150. package/dist/npm/tabstrip/TabStripNavigation.js +2 -2
  151. package/dist/npm/tabstrip/TabStripNavigationItem.js +1 -1
  152. package/dist/npm/tabstrip/TabStripTab.d.ts +3 -3
  153. package/dist/npm/tilelayout/InternalTile.d.ts +3 -2
  154. package/dist/npm/tilelayout/InternalTile.js +10 -16
  155. package/dist/npm/tilelayout/ResizeHandlers.d.ts +1 -1
  156. package/dist/npm/tilelayout/TileLayout.d.ts +1 -1
  157. package/dist/npm/tilelayout/TileLayout.js +5 -5
  158. package/dist/systemjs/kendo-react-layout.js +1 -1
  159. package/package.json +14 -14
@@ -10,10 +10,14 @@ var __assign = (this && this.__assign) || function () {
10
10
  };
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
- var __spreadArray = (this && this.__spreadArray) || function (to, from) {
14
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
15
- to[j] = from[i];
16
- return to;
13
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
14
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
15
+ if (ar || !(i in from)) {
16
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
17
+ ar[i] = from[i];
18
+ }
19
+ }
20
+ return to.concat(ar || Array.prototype.slice.call(from));
17
21
  };
18
22
  Object.defineProperty(exports, "__esModule", { value: true });
19
23
  exports.isArrayEqual = exports.PanelBarUtils = exports.isPresent = exports.flatVisibleChildren = exports.flatChildren = exports.flatVisibleItems = exports.getInitialState = exports.getFirstId = exports.renderChildren = void 0;
@@ -38,11 +42,11 @@ var renderChildren = function (_a) {
38
42
  children: child.props.children,
39
43
  parentExpanded: (expanded || []).indexOf(privateKey) > -1,
40
44
  level: level + 1,
41
- parentPrivateKey: __spreadArray(__spreadArray([], parentPrivateKey), [privateKey])
45
+ parentPrivateKey: __spreadArray(__spreadArray([], parentPrivateKey, true), [privateKey], false)
42
46
  };
43
- nestedChildren = exports.renderChildren(renderState);
47
+ nestedChildren = (0, exports.renderChildren)(renderState);
44
48
  }
45
- return React.cloneElement(child, __assign(__assign({}, child.props), { animation: child.props.animation !== undefined ? child.props.animation : animation, keepItemsMounted: keepItemsMounted, id: child.props.id || "k-panelbar-item-default-" + privateKey, uniquePrivateKey: privateKey, parentUniquePrivateKey: parentPrivateKey, parentExpanded: parentExpanded, level: level, expanded: (expanded || []).indexOf(privateKey) > -1, focused: state.focused === privateKey && state.wrapperFocused, selected: state.selected === privateKey, children: nestedChildren, onSelect: handleSelect }));
49
+ return React.cloneElement(child, __assign(__assign({}, child.props), { animation: child.props.animation !== undefined ? child.props.animation : animation, keepItemsMounted: keepItemsMounted, id: child.props.id || "k-panelbar-item-default-".concat(privateKey), uniquePrivateKey: privateKey, parentUniquePrivateKey: parentPrivateKey, parentExpanded: parentExpanded, level: level, expanded: (expanded || []).indexOf(privateKey) > -1, focused: state.focused === privateKey && state.wrapperFocused, selected: state.selected === privateKey, children: nestedChildren, onSelect: handleSelect }));
46
50
  }
47
51
  else {
48
52
  return React.createElement("div", { className: "k-panelbar-content k-content" }, child);
@@ -92,7 +96,7 @@ var getInitialState = function (props, expandMode, result, parentExpanded, paren
92
96
  }
93
97
  }
94
98
  if (child.props.children) {
95
- result = exports.getInitialState(child.props, expandMode, result, !!child.props.expanded, __spreadArray(__spreadArray([], parentPrivateKey), [privateKey]));
99
+ result = (0, exports.getInitialState)(child.props, expandMode, result, !!child.props.expanded, __spreadArray(__spreadArray([], parentPrivateKey, true), [privateKey], false));
96
100
  }
97
101
  }
98
102
  }
@@ -107,8 +111,8 @@ var getId = function (child, parentPrivateKey, idx) {
107
111
  return child && child.props && child.props.id
108
112
  ? child.props.id
109
113
  : parentPrivateKey.length
110
- ? parentPrivateKey[parentPrivateKey.length - 1] + ("." + idx)
111
- : "." + idx;
114
+ ? parentPrivateKey[parentPrivateKey.length - 1] + ".".concat(idx)
115
+ : ".".concat(idx);
112
116
  };
113
117
  /**
114
118
  * @hidden
@@ -89,6 +89,7 @@ var Splitter = /** @class */ (function (_super) {
89
89
  */
90
90
  function Splitter(props) {
91
91
  var _this = _super.call(this, props) || this;
92
+ _this._container = null;
92
93
  _this.validatePanes = function (panesOptions) {
93
94
  var withoutSize = panesOptions.filter(function (pane) { return pane.size === undefined; });
94
95
  if (!withoutSize.length) {
@@ -204,15 +205,15 @@ var Splitter = /** @class */ (function (_super) {
204
205
  _this.elementSize = function (el, isContainer) {
205
206
  var sizeType = isContainer ? 'client' : 'offset';
206
207
  if (_this.orientation === 'vertical') {
207
- return el[sizeType + "Height"];
208
+ return el["".concat(sizeType, "Height")];
208
209
  }
209
210
  else {
210
- return el[sizeType + "Width"];
211
+ return el["".concat(sizeType, "Width")];
211
212
  }
212
213
  };
213
214
  _this.clamp = function (min, max, v) { return Math.min(max, Math.max(min, v)); };
214
215
  _this.fixedSize = function (size) { return size && size.length > 0; };
215
- kendo_react_common_2.validatePackage(package_metadata_1.packageMetadata);
216
+ (0, kendo_react_common_2.validatePackage)(package_metadata_1.packageMetadata);
216
217
  _this.state = {
217
218
  isDragging: false,
218
219
  dragIndex: undefined,
@@ -269,7 +270,7 @@ var Splitter = /** @class */ (function (_super) {
269
270
  var _this = this;
270
271
  var panesContent = this.panesContent;
271
272
  var panesOptions = this.panesOptions(panesContent);
272
- var className = kendo_react_common_1.classNames('k-widget', 'k-splitter', 'k-splitter-flex', "k-splitter-" + this.orientation, this.props.className);
273
+ var className = (0, kendo_react_common_1.classNames)('k-widget', 'k-splitter', 'k-splitter-flex', "k-splitter-".concat(this.orientation), this.props.className);
273
274
  this.validatePanes(panesOptions);
274
275
  return (React.createElement("div", { style: this.props.style, ref: function (ref) { return _this._container = ref; }, className: className }, this.mapSplitterPanes(panesOptions, panesContent)));
275
276
  };
@@ -25,6 +25,7 @@ var SplitterBar = /** @class */ (function (_super) {
25
25
  __extends(SplitterBar, _super);
26
26
  function SplitterBar(props) {
27
27
  var _this = _super.call(this, props) || this;
28
+ _this.draggable = null;
28
29
  _this.onDrag = function (data, isFirst, isLast) {
29
30
  var event = data.event;
30
31
  var _a = _this.props, onDrag = _a.onDrag, index = _a.index;
@@ -100,7 +101,7 @@ var SplitterBar = /** @class */ (function (_super) {
100
101
  var prev = _this.props.prev;
101
102
  var isCollapsible = prev.collapsible;
102
103
  var isCollapsed = prev.collapsed;
103
- return kendo_react_common_1.classNames('k-icon', (_a = {},
104
+ return (0, kendo_react_common_1.classNames)('k-icon', (_a = {},
104
105
  _a['k-hidden'] = !isCollapsible,
105
106
  _a['k-collapse-prev'] = isCollapsible,
106
107
  _a['k-i-arrow-60-left'] = isCollapsible && isHorizontal && !isCollapsed,
@@ -114,7 +115,7 @@ var SplitterBar = /** @class */ (function (_super) {
114
115
  var next = _this.props.next;
115
116
  var isCollapsible = next.collapsible;
116
117
  var isCollapsed = next.collapsed;
117
- return kendo_react_common_1.classNames('k-icon', (_a = {},
118
+ return (0, kendo_react_common_1.classNames)('k-icon', (_a = {},
118
119
  _a['k-hidden'] = !isCollapsible,
119
120
  _a['k-collapse-next'] = isCollapsible,
120
121
  _a['k-i-arrow-60-right'] = isCollapsible && isHorizontal && !isCollapsed,
@@ -161,7 +162,7 @@ var SplitterBar = /** @class */ (function (_super) {
161
162
  var isDraggable = this.isDraggable;
162
163
  var isStatic = this.isStatic;
163
164
  var isHorizontal = this.isHorizontal;
164
- var barClasses = kendo_react_common_1.classNames('k-splitbar', (_a = {},
165
+ var barClasses = (0, kendo_react_common_1.classNames)('k-splitbar', (_a = {},
165
166
  _a['k-focus'] = this.state.focused,
166
167
  _a['k-splitbar-horizontal'] = isHorizontal,
167
168
  _a['k-splitbar-vertical'] = !isHorizontal,
@@ -33,7 +33,7 @@ var SplitterPane = /** @class */ (function (_super) {
33
33
  var style = {
34
34
  flexBasis: size
35
35
  };
36
- var paneClasses = kendo_react_common_1.classNames('k-pane', (_a = {},
36
+ var paneClasses = (0, kendo_react_common_1.classNames)('k-pane', (_a = {},
37
37
  _a['k-state-hidden'] = collapsed,
38
38
  _a['hidden'] = collapsed,
39
39
  _a['k-pane-flex'] = containsSplitter,
@@ -34,4 +34,4 @@ export interface StackLayoutHandle {
34
34
  * ReactDOM.render(<App />, document.querySelector('my-app'));
35
35
  * ```
36
36
  */
37
- export declare const StackLayout: React.ForwardRefExoticComponent<StackLayoutProps & React.RefAttributes<StackLayoutHandle>>;
37
+ export declare const StackLayout: React.ForwardRefExoticComponent<StackLayoutProps & React.RefAttributes<StackLayoutHandle | null>>;
@@ -42,19 +42,19 @@ var kendo_react_common_1 = require("@progress/kendo-react-common");
42
42
  * ```
43
43
  */
44
44
  exports.StackLayout = React.forwardRef(function (props, ref) {
45
- kendo_licensing_1.validatePackage(package_metadata_1.packageMetadata);
45
+ (0, kendo_licensing_1.validatePackage)(package_metadata_1.packageMetadata);
46
46
  var elementRef = React.useRef(null);
47
47
  var getImperativeHandle = React.useCallback(function () { return ({
48
48
  element: elementRef.current
49
49
  }); }, []);
50
50
  React.useImperativeHandle(ref, getImperativeHandle);
51
51
  var className = props.className, style = props.style, id = props.id, children = props.children;
52
- var layoutId = React.useMemo(function () { return kendo_react_common_1.guid(); }, []);
52
+ var layoutId = React.useMemo(function () { return (0, kendo_react_common_1.guid)(); }, []);
53
53
  var orientation = React.useMemo(function () { return props.orientation || defaultProps.orientation; }, [props.orientation]);
54
54
  var isHorizontal = orientation === 'horizontal';
55
55
  var hAlign = React.useMemo(function () { return props.align && props.align.horizontal ? props.align.horizontal : defaultProps.hAlign; }, [props.align]);
56
56
  var vAlign = React.useMemo(function () { return props.align && props.align.vertical ? props.align.vertical : defaultProps.vAlign; }, [props.align]);
57
- var stackLayoutClasses = React.useMemo(function () { return kendo_react_common_1.classNames('k-stack-layout', {
57
+ var stackLayoutClasses = React.useMemo(function () { return (0, kendo_react_common_1.classNames)('k-stack-layout', {
58
58
  'k-hstack': orientation === 'horizontal',
59
59
  'k-vstack': orientation === 'vertical',
60
60
  'k-justify-content-start': isHorizontal && hAlign === 'start' || !isHorizontal && vAlign === 'top',
@@ -66,7 +66,7 @@ exports.StackLayout = React.forwardRef(function (props, ref) {
66
66
  'k-align-items-end': !isHorizontal && hAlign === 'end' || isHorizontal && vAlign === 'bottom',
67
67
  'k-align-items-stretch': !isHorizontal && hAlign === 'stretch' || isHorizontal && vAlign === 'stretch'
68
68
  }, className); }, [orientation, isHorizontal, hAlign, vAlign, className]);
69
- var stackLayoutStyles = __assign({ gap: "" + (typeof props.gap === 'number' ? props.gap + 'px' : props.gap) }, style);
69
+ var stackLayoutStyles = __assign({ gap: "".concat(typeof props.gap === 'number' ? props.gap + 'px' : props.gap) }, style);
70
70
  return (React.createElement("div", { ref: elementRef, className: stackLayoutClasses, style: stackLayoutStyles, id: id || layoutId }, children));
71
71
  });
72
72
  var defaultProps = {
@@ -20,4 +20,4 @@ import { StepProps } from './interfaces/StepProps';
20
20
  * ReactDOM.render(<App />, document.querySelector('my-app'));
21
21
  * ```
22
22
  */
23
- export declare const Step: React.ForwardRefExoticComponent<Pick<StepProps, string | number> & React.RefAttributes<StepHandle>>;
23
+ export declare const Step: React.ForwardRefExoticComponent<Pick<StepProps, keyof StepProps> & React.RefAttributes<StepHandle | null>>;
@@ -57,7 +57,7 @@ exports.Step = React.forwardRef(function (props, target) {
57
57
  var elementRef = React.useRef(null);
58
58
  var focusElement = React.useCallback(function () {
59
59
  if (elementRef.current) {
60
- kendo_react_common_1.focusFirstFocusableChild(elementRef.current);
60
+ (0, kendo_react_common_1.focusFirstFocusableChild)(elementRef.current);
61
61
  }
62
62
  }, []);
63
63
  var getImperativeHandle = React.useCallback(function () { return ({
@@ -67,7 +67,7 @@ exports.Step = React.forwardRef(function (props, target) {
67
67
  React.useImperativeHandle(target, getImperativeHandle);
68
68
  var allowClick = !linear || (index === value - 1 || index === value || index === value + 1);
69
69
  var isInLabel = mode === 'labels' || (Boolean(icon) && Boolean(label));
70
- var localizationService = kendo_react_intl_1.useLocalization();
70
+ var localizationService = (0, kendo_react_intl_1.useLocalization)();
71
71
  var localizeMessage = function (message) {
72
72
  return localizationService.toLanguageString(message, messages_1.messages[message]);
73
73
  };
@@ -79,15 +79,15 @@ exports.Step = React.forwardRef(function (props, target) {
79
79
  : contants_1.NO_ANIMATION;
80
80
  var handleClick = React.useCallback(function (event) {
81
81
  if (onChange && !disabled) {
82
- kendo_react_common_1.dispatchEvent(onChange, event, getImperativeHandle(), { value: index });
82
+ (0, kendo_react_common_1.dispatchEvent)(onChange, event, getImperativeHandle(), { value: index });
83
83
  }
84
84
  }, [onChange, value, disabled]);
85
85
  var handleFocus = React.useCallback(function (event) {
86
86
  if (onFocus && !disabled) {
87
- kendo_react_common_1.dispatchEvent(onFocus, event, getImperativeHandle(), undefined);
87
+ (0, kendo_react_common_1.dispatchEvent)(onFocus, event, getImperativeHandle(), undefined);
88
88
  }
89
89
  }, [onFocus, disabled]);
90
- var itemClassNames = React.useMemo(function () { return kendo_react_common_1.classNames('k-step', {
90
+ var itemClassNames = React.useMemo(function () { return (0, kendo_react_common_1.classNames)('k-step', {
91
91
  'k-step-first': index === 0,
92
92
  'k-step-last': numOfSteps && index === numOfSteps - 1,
93
93
  'k-step-done': index < value,
@@ -98,16 +98,16 @@ exports.Step = React.forwardRef(function (props, target) {
98
98
  'k-step-error': isValid !== undefined && !isValid,
99
99
  'k-step-success': isValid
100
100
  }, className); }, [index, numOfSteps, value, current, optional, disabled, focused, isValid, className]);
101
- var itemStyles = React.useMemo(function () { return (__assign({ maxWidth: !isVertical ? "calc(100% / " + numOfSteps + ")" : undefined, maxHeight: isVertical ? "calc(100% / " + numOfSteps + ")" : undefined, pointerEvents: !allowClick ? 'none' : undefined }, style)); }, [isVertical, numOfSteps, style, allowClick]);
101
+ var itemStyles = React.useMemo(function () { return (__assign({ maxWidth: !isVertical ? "calc(100% / ".concat(numOfSteps, ")") : undefined, maxHeight: isVertical ? "calc(100% / ".concat(numOfSteps, ")") : undefined, pointerEvents: !allowClick ? 'none' : undefined }, style)); }, [isVertical, numOfSteps, style, allowClick]);
102
102
  var validationIconClasses = (isValid
103
- ? successIcon ? "" + successIcon : 'k-icon k-i-check'
104
- : errorIcon ? "" + errorIcon : 'k-icon k-i-warning');
103
+ ? successIcon ? "".concat(successIcon) : 'k-icon k-i-check'
104
+ : errorIcon ? "".concat(errorIcon) : 'k-icon k-i-warning');
105
105
  var validationIcons = (React.createElement("span", { className: 'k-step-indicator-icon ' + validationIconClasses, "aria-hidden": "true" }));
106
106
  var stepIndicator = (React.createElement(React.Fragment, null, mode !== 'labels' ?
107
107
  React.createElement("span", { className: "k-step-indicator", "aria-hidden": true, style: { transitionDuration: progressAnimation + 'ms' } }, icon
108
108
  ? !isInLabel && isValid !== undefined
109
109
  ? validationIcons
110
- : React.createElement("span", { className: "k-step-indicator-icon k-icon " + icon })
110
+ : React.createElement("span", { className: "k-step-indicator-icon k-icon ".concat(icon) })
111
111
  : isValid !== undefined
112
112
  ? validationIcons
113
113
  : React.createElement("span", { className: "k-step-indicator-text" }, text ? text : index + 1)) :
@@ -20,4 +20,4 @@ import { StepperHandle } from './interfaces/StepperHandle';
20
20
  * ReactDOM.render(<App />, document.querySelector('my-app'));
21
21
  * ```
22
22
  */
23
- export declare const Stepper: React.ForwardRefExoticComponent<StepperProps & React.RefAttributes<StepperHandle>>;
23
+ export declare const Stepper: React.ForwardRefExoticComponent<StepperProps & React.RefAttributes<StepperHandle | null>>;
@@ -41,12 +41,12 @@ var package_metadata_1 = require("../package-metadata");
41
41
  * ```
42
42
  */
43
43
  exports.Stepper = React.forwardRef(function (props, target) {
44
- kendo_react_common_2.validatePackage(package_metadata_1.packageMetadata);
44
+ (0, kendo_react_common_2.validatePackage)(package_metadata_1.packageMetadata);
45
45
  var animationDuration = props.animationDuration, children = props.children, className = props.className, disabled = props.disabled, errorIcon = props.errorIcon, item = props.item, items = props.items, linear = props.linear, mode = props.mode, orientation = props.orientation, style = props.style, successIcon = props.successIcon, onChange = props.onChange, onFocus = props.onFocus;
46
46
  var elementRef = React.useRef(null);
47
47
  var focusElement = React.useCallback(function () {
48
48
  if (elementRef.current) {
49
- kendo_react_common_1.focusFirstFocusableChild(elementRef.current);
49
+ (0, kendo_react_common_1.focusFirstFocusableChild)(elementRef.current);
50
50
  }
51
51
  }, []);
52
52
  var getImperativeHandle = React.useCallback(function () { return ({
@@ -58,7 +58,7 @@ exports.Stepper = React.forwardRef(function (props, target) {
58
58
  var _a = React.useState(value), focusedIdx = _a[0], setFocusedIdx = _a[1];
59
59
  var numOfSteps = items ? items.length : 0;
60
60
  var isVertical = orientation === 'vertical';
61
- var dir = kendo_react_common_1.useRtl(elementRef, props.dir);
61
+ var dir = (0, kendo_react_common_1.useRtl)(elementRef, props.dir);
62
62
  var animation = typeof animationDuration === 'number'
63
63
  ? animationDuration
64
64
  : animationDuration !== false
@@ -70,7 +70,7 @@ exports.Stepper = React.forwardRef(function (props, target) {
70
70
  var nextIdx = val === value + 1;
71
71
  var allowClick = !linear || (prevIdx || currIdx || nextIdx);
72
72
  if (value !== val && onChange && !disabled && allowClick) {
73
- kendo_react_common_1.dispatchEvent(onChange, event, getImperativeHandle(), { value: val });
73
+ (0, kendo_react_common_1.dispatchEvent)(onChange, event, getImperativeHandle(), { value: val });
74
74
  setFocusedIdx(val);
75
75
  }
76
76
  }, [value, linear, onChange, disabled, setFocusedIdx]);
@@ -81,7 +81,7 @@ exports.Stepper = React.forwardRef(function (props, target) {
81
81
  }, [dispatchChangeEvent]);
82
82
  var handleFocus = React.useCallback(function (event) {
83
83
  if (onFocus && !disabled) {
84
- kendo_react_common_1.dispatchEvent(onFocus, event.syntheticEvent, getImperativeHandle(), undefined);
84
+ (0, kendo_react_common_1.dispatchEvent)(onFocus, event.syntheticEvent, getImperativeHandle(), undefined);
85
85
  }
86
86
  }, [onFocus, disabled]);
87
87
  var handleEnter = React.useCallback(function (event) {
@@ -146,11 +146,11 @@ exports.Stepper = React.forwardRef(function (props, target) {
146
146
  default:
147
147
  }
148
148
  }, [items, setFocusedIdx, focusedIdx, dir, handleEnter]);
149
- var stepperClasses = React.useMemo(function () { return kendo_react_common_1.classNames('k-stepper', {
149
+ var stepperClasses = React.useMemo(function () { return (0, kendo_react_common_1.classNames)('k-stepper', {
150
150
  'k-stepper-linear': linear
151
151
  }, className); }, [linear, className]);
152
152
  var stepperStyles = React.useMemo(function () { return (__assign({ display: 'grid', gridTemplateColumns: !isVertical ? 'repeat(' + numOfSteps * 2 + ', 1fr)' : undefined, gridTemplateRows: isVertical ? 'repeat(' + numOfSteps + ', 1fr)' : undefined }, style)); }, [isVertical, numOfSteps, style]);
153
- var listClasses = React.useMemo(function () { return kendo_react_common_1.classNames('k-step-list', {
153
+ var listClasses = React.useMemo(function () { return (0, kendo_react_common_1.classNames)('k-step-list', {
154
154
  'k-step-list-horizontal': !isVertical,
155
155
  'k-step-list-vertical': isVertical
156
156
  }); }, [isVertical]);
@@ -191,15 +191,18 @@ exports.Stepper = React.forwardRef(function (props, target) {
191
191
  });
192
192
  exports.Stepper.propTypes = {
193
193
  animationDuration: PropTypes.oneOfType([PropTypes.bool, PropTypes.number]),
194
+ children: PropTypes.any,
194
195
  className: PropTypes.string,
195
196
  dir: PropTypes.string,
196
197
  disabled: PropTypes.bool,
198
+ errorIcon: PropTypes.string,
197
199
  item: PropTypes.any,
198
- items: PropTypes.arrayOf(PropTypes.any),
200
+ items: PropTypes.any,
199
201
  linear: PropTypes.bool,
200
202
  mode: PropTypes.oneOf(['steps', 'labels']),
201
203
  orientation: PropTypes.oneOf(['horizontal', 'vertical']),
202
204
  style: PropTypes.object,
205
+ successIcon: PropTypes.string,
203
206
  value: PropTypes.number.isRequired,
204
207
  onChange: PropTypes.func,
205
208
  onFocus: PropTypes.func
@@ -9,6 +9,7 @@ var StepperOnNavigateEvent = /** @class */ (function () {
9
9
  * @hidden
10
10
  */
11
11
  function StepperOnNavigateEvent(target, prevIndex, nextIndex) {
12
+ this.syntheticEvent = null;
12
13
  this.target = target;
13
14
  this.prevIndex = prevIndex;
14
15
  this.nextIndex = nextIndex;
@@ -159,7 +159,7 @@ var TabStrip = /** @class */ (function (_super) {
159
159
  }
160
160
  }
161
161
  };
162
- kendo_react_common_1.validatePackage(package_metadata_1.packageMetadata);
162
+ (0, kendo_react_common_1.validatePackage)(package_metadata_1.packageMetadata);
163
163
  return _this;
164
164
  }
165
165
  /**
@@ -170,7 +170,7 @@ var TabStrip = /** @class */ (function (_super) {
170
170
  var tabProps = __assign(__assign({}, this.props), { children: this.children(), onKeyDown: this.onKeyDown, onSelect: this.onSelect });
171
171
  var tabPosition = tabProps.tabPosition, _a = tabProps.tabIndex, tabIndex = _a === void 0 ? 0 : _a;
172
172
  var bottom = tabPosition === 'bottom';
173
- var componentClasses = kendo_react_common_1.classNames('k-tabstrip', 'k-floatwrap', {
173
+ var componentClasses = (0, kendo_react_common_1.classNames)('k-tabstrip', 'k-floatwrap', {
174
174
  'k-tabstrip-left': tabPosition === 'left',
175
175
  'k-tabstrip-right': tabPosition === 'right',
176
176
  'k-tabstrip-bottom': tabPosition === 'bottom',
@@ -24,6 +24,10 @@ export interface TabStripContentProps {
24
24
  * @hidden
25
25
  */
26
26
  keepTabsMounted?: boolean;
27
+ /**
28
+ * @hidden
29
+ */
30
+ children?: React.ReactNode;
27
31
  }
28
32
  export declare class TabStripContent extends React.Component<TabStripContentProps, {}> {
29
33
  /**
@@ -31,7 +35,7 @@ export declare class TabStripContent extends React.Component<TabStripContentProp
31
35
  */
32
36
  static propTypes: {
33
37
  animation: PropTypes.Requireable<boolean>;
34
- children: PropTypes.Requireable<PropTypes.ReactElementLike | PropTypes.ReactElementLike[]>;
38
+ children: PropTypes.Requireable<PropTypes.ReactElementLike | (PropTypes.ReactElementLike | null | undefined)[]>;
35
39
  selected: PropTypes.Requireable<number>;
36
40
  style: PropTypes.Requireable<object>;
37
41
  };
@@ -35,7 +35,7 @@ var TabStripContent = /** @class */ (function (_super) {
35
35
  __extends(TabStripContent, _super);
36
36
  function TabStripContent() {
37
37
  var _this = _super !== null && _super.apply(this, arguments) || this;
38
- _this.contentId = kendo_react_common_1.guid();
38
+ _this.contentId = (0, kendo_react_common_1.guid)();
39
39
  _this.childFactory = function (child) {
40
40
  return React.cloneElement(child, __assign(__assign({}, child.props), { in: child.props.children.props.id === String(_this.contentId + _this.props.selected) }));
41
41
  };
@@ -48,7 +48,7 @@ var TabStripContent = /** @class */ (function (_super) {
48
48
  var _a = this.props, children = _a.children, selected = _a.selected;
49
49
  var selectedTab = children && typeof selected === 'number' &&
50
50
  React.Children.toArray(children)[selected];
51
- var contentClasses = kendo_react_common_1.classNames('k-content', 'k-active', selectedTab && selectedTab.props.contentClassName);
51
+ var contentClasses = (0, kendo_react_common_1.classNames)('k-content', 'k-active', selectedTab && selectedTab.props.contentClassName);
52
52
  return (React.createElement("div", { className: contentClasses, style: this.props.style }, this.renderContent(children)));
53
53
  };
54
54
  TabStripContent.prototype.renderContent = function (children) {
@@ -34,7 +34,7 @@ export declare class TabStripNavigation extends React.Component<TabStripNavigati
34
34
  * @hidden
35
35
  */
36
36
  static propTypes: {
37
- children: PropTypes.Requireable<PropTypes.ReactElementLike | PropTypes.ReactElementLike[]>;
37
+ children: PropTypes.Requireable<PropTypes.ReactElementLike | (PropTypes.ReactElementLike | null | undefined)[]>;
38
38
  onSelect: PropTypes.Requireable<(...args: any[]) => any>;
39
39
  onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
40
40
  selected: PropTypes.Requireable<number>;
@@ -63,11 +63,11 @@ var TabStripNavigation = /** @class */ (function (_super) {
63
63
  return (React.createElement(TabStripNavigationItem_1.TabStripNavigationItem, __assign({ key: index }, tabProps)));
64
64
  });
65
65
  }
66
- var wrapperClasses = kendo_react_common_1.classNames('k-tabstrip-items-wrapper', {
66
+ var wrapperClasses = (0, kendo_react_common_1.classNames)('k-tabstrip-items-wrapper', {
67
67
  'k-hstack': tabPosition === 'top' || tabPosition === 'bottom',
68
68
  'k-vstack': tabPosition === 'left' || tabPosition === 'right'
69
69
  });
70
- var navClasses = kendo_react_common_1.classNames('k-tabstrip-items', 'k-reset');
70
+ var navClasses = (0, kendo_react_common_1.classNames)('k-tabstrip-items', 'k-reset');
71
71
  return (React.createElement("div", { className: wrapperClasses },
72
72
  React.createElement("ul", { className: navClasses, role: 'tablist', tabIndex: this.props.tabIndex, onKeyDown: onKeyDown }, tabs)));
73
73
  };
@@ -56,7 +56,7 @@ var TabStripNavigationItem = /** @class */ (function (_super) {
56
56
  'role': 'tab',
57
57
  onClick: !disabled ? this.onClick : undefined
58
58
  };
59
- var itemClasses = kendo_react_common_1.classNames('k-item', (_a = {},
59
+ var itemClasses = (0, kendo_react_common_1.classNames)('k-item', (_a = {},
60
60
  _a['k-first'] = first,
61
61
  _a['k-last'] = last,
62
62
  _a['k-disabled'] = disabled,
@@ -28,11 +28,11 @@ export declare class TabStripTab extends React.Component<TabStripTabProps, {}> {
28
28
  static propTypes: {
29
29
  disabled: PropTypes.Requireable<boolean>;
30
30
  contentClassName: PropTypes.Requireable<string>;
31
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
32
- title: PropTypes.Requireable<PropTypes.ReactNodeLike>;
31
+ children: PropTypes.Requireable<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
32
+ title: PropTypes.Requireable<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
33
33
  };
34
34
  /**
35
35
  * @hidden
36
36
  */
37
- render(): any;
37
+ render(): null;
38
38
  }
@@ -9,6 +9,7 @@ export interface InternalTileProps extends TileLayoutItem {
9
9
  index: number;
10
10
  defaultPosition: TileStrictPosition;
11
11
  ignoreDrag?: (event: any) => boolean;
12
+ children?: React.ReactNode;
12
13
  }
13
14
  /**
14
15
  * @hidden
@@ -53,7 +54,7 @@ export declare class InternalTile extends React.Component<InternalTileProps, {
53
54
  dragging: boolean;
54
55
  resizing: boolean;
55
56
  element: HTMLElement | null;
56
- get dragElement(): HTMLElement;
57
+ get dragElement(): HTMLElement | null | undefined;
57
58
  ignoreDrag: boolean;
58
59
  pressOffset: {
59
60
  x: number;
@@ -80,7 +81,7 @@ export declare class InternalTile extends React.Component<InternalTileProps, {
80
81
  /**
81
82
  * @hidden
82
83
  */
83
- getSnapshotBeforeUpdate(_: any): any;
84
+ getSnapshotBeforeUpdate(_: any): null;
84
85
  /**
85
86
  * @hidden
86
87
  */
@@ -75,7 +75,7 @@ var InternalTile = /** @class */ (function (_super) {
75
75
  else {
76
76
  _this.dragElement.style.marginRight = -dX + 'px';
77
77
  }
78
- _this.dragElement.style.height = "calc(100% + " + dY + "px)";
78
+ _this.dragElement.style.height = "calc(100% + ".concat(dY, "px)");
79
79
  }
80
80
  _this.element.classList.add('k-layout-item-hint', 'k-layout-item-hint-resize');
81
81
  if (_this.preventDataOps) {
@@ -102,9 +102,6 @@ var InternalTile = /** @class */ (function (_super) {
102
102
  }
103
103
  };
104
104
  _this.handlePress = function (e) {
105
- if (!_this.reorderable) {
106
- return;
107
- }
108
105
  if (!_this.dragElement) {
109
106
  return;
110
107
  }
@@ -130,7 +127,7 @@ var InternalTile = /** @class */ (function (_super) {
130
127
  };
131
128
  };
132
129
  _this.handleDrag = function (e) {
133
- if (!_this.reorderable || _this.ignoreDrag) {
130
+ if (_this.ignoreDrag) {
134
131
  return;
135
132
  }
136
133
  var dragElement = _this.dragElement;
@@ -144,7 +141,7 @@ var InternalTile = /** @class */ (function (_super) {
144
141
  x: e.event.clientX - rec.x - _this.pressOffset.x + _this.currentTranslate.x,
145
142
  y: e.event.clientY - rec.y - _this.pressOffset.y + _this.currentTranslate.y
146
143
  };
147
- dragElement.style.transform = "translate(" + _this.currentTranslate.x + "px, " + _this.currentTranslate.y + "px)";
144
+ dragElement.style.transform = "translate(".concat(_this.currentTranslate.x, "px, ").concat(_this.currentTranslate.y, "px)");
148
145
  dragElement.style.transition = 'transform 0s';
149
146
  if (_this.preventDataOps) {
150
147
  return;
@@ -166,9 +163,6 @@ var InternalTile = /** @class */ (function (_super) {
166
163
  _this.props.update(_this.props.index, row, _this.state.rtl ? -col : col, 0, 0);
167
164
  };
168
165
  _this.handleRelease = function () {
169
- if (!_this.reorderable) {
170
- return;
171
- }
172
166
  _this.dragging = _this.resizing = false;
173
167
  _this.currentTranslate = { x: 0, y: 0 };
174
168
  if (_this.element) {
@@ -178,7 +172,7 @@ var InternalTile = /** @class */ (function (_super) {
178
172
  var dragElement = _this.dragElement;
179
173
  if (dragElement) {
180
174
  dragElement.style.transform = 'translate(0px, 0px)';
181
- dragElement.style.transition = "transform " + ANIMATION_DURATION + "ms cubic-bezier(0.2, 0, 0, 1) 0s";
175
+ dragElement.style.transition = "transform ".concat(ANIMATION_DURATION, "ms cubic-bezier(0.2, 0, 0, 1) 0s");
182
176
  dragElement.style.marginRight = '0px';
183
177
  dragElement.style.marginLeft = '0px';
184
178
  dragElement.style.height = '100%';
@@ -220,12 +214,12 @@ var InternalTile = /** @class */ (function (_super) {
220
214
  }
221
215
  var position = this.props.defaultPosition;
222
216
  var resizable = this.props.resizable !== undefined ? this.props.resizable : InternalTile.defaultProps.resizable;
223
- var itemStyles = __assign({ gridColumnStart: position.col, gridColumnEnd: "span " + position.colSpan, gridRowStart: position.row, gridRowEnd: "span " + position.rowSpan, outline: 'none', order: position.order }, this.props.hintStyle);
224
- var card = (React.createElement("div", { ref: function (e) { _this.draggable = e ? ({ element: e }) : null; }, className: kendo_react_common_1.classNames('k-tilelayout-item k-card', { 'k-cursor-grab': this.reorderable }, this.props.className), style: __assign({ height: '100%' }, this.props.style) },
217
+ var itemStyles = __assign({ gridColumnStart: position.col, gridColumnEnd: "span ".concat(position.colSpan), gridRowStart: position.row, gridRowEnd: "span ".concat(position.rowSpan), outline: 'none', order: position.order }, this.props.hintStyle);
218
+ var card = (React.createElement("div", { ref: function (e) { _this.draggable = e ? ({ element: e }) : null; }, className: (0, kendo_react_common_1.classNames)('k-tilelayout-item k-card', { 'k-cursor-grab': this.reorderable }, this.props.className), style: __assign({ height: '100%' }, this.props.style) },
225
219
  this.props.children,
226
220
  React.createElement(ResizeHandlers_1.ResizeHandlers, { onPress: this.handlePress, onResize: this.handleResize, resizable: resizable, rtl: this.state.rtl })));
227
221
  return (React.createElement("div", { ref: function (e) { _this.element = e; }, style: itemStyles, className: this.props.hintClassName },
228
- React.createElement(kendo_react_common_1.Draggable, { ref: function (e) { _this.draggable = e; }, onDrag: this.handleDrag, onRelease: this.handleRelease, onPress: this.handlePress }, card)));
222
+ React.createElement(kendo_react_common_1.Draggable, { ref: function (e) { _this.draggable = e; }, onDrag: this.props.reorderable ? this.handleDrag : undefined, onRelease: this.props.reorderable ? this.handleRelease : undefined, onPress: this.props.reorderable ? this.handlePress : undefined }, card)));
229
223
  };
230
224
  /**
231
225
  * @hidden
@@ -261,7 +255,7 @@ var InternalTile = /** @class */ (function (_super) {
261
255
  this.pressXY.x += this.state.rtl ? -diffCol : diffCol;
262
256
  var diffRow = newBox.height - oldBox.height;
263
257
  var currentBot = parseFloat(dragElement.style.height.substring(12));
264
- dragElement.style.height = "calc(100% + " + (currentBot + diffRow) + "px)";
258
+ dragElement.style.height = "calc(100% + ".concat((currentBot + diffRow), "px)");
265
259
  this.pressXY.y += diffRow;
266
260
  }
267
261
  var deltaX = oldBox.left - newBox.left;
@@ -287,11 +281,11 @@ var InternalTile = /** @class */ (function (_super) {
287
281
  if (!domNode) {
288
282
  return;
289
283
  }
290
- domNode.style.transform = "translate(" + deltaX + "px, " + deltaY + "px)";
284
+ domNode.style.transform = "translate(".concat(deltaX, "px, ").concat(deltaY, "px)");
291
285
  domNode.style.transition = 'transform 0s';
292
286
  requestAnimationFrame(function () {
293
287
  domNode.style.transform = '';
294
- domNode.style.transition = "transform " + ANIMATION_DURATION + "ms cubic-bezier(0.2, 0, 0, 1) 0s";
288
+ domNode.style.transition = "transform ".concat(ANIMATION_DURATION, "ms cubic-bezier(0.2, 0, 0, 1) 0s");
295
289
  });
296
290
  });
297
291
  };
@@ -16,5 +16,5 @@ export interface ResizeHandlersProps {
16
16
  */
17
17
  export declare class ResizeHandlers extends React.Component<ResizeHandlersProps, {}> {
18
18
  handleResize: (event: any, isEnd: boolean, direction: any) => void;
19
- render(): JSX.Element;
19
+ render(): JSX.Element | null;
20
20
  }
@@ -138,7 +138,7 @@ export declare class TileLayout extends React.Component<TileLayoutProps, TileLay
138
138
  rowSpan: number;
139
139
  colSpan: number;
140
140
  } & TilePosition)[];
141
- };
141
+ } | null;
142
142
  /**
143
143
  * @hidden
144
144
  */
@@ -101,7 +101,7 @@ var TileLayout = /** @class */ (function (_super) {
101
101
  }
102
102
  if (shouldUpdate) {
103
103
  _this.setState({ positions: positions });
104
- kendo_react_common_1.dispatchEvent(_this.props.onReposition, {}, _this, { value: positions });
104
+ (0, kendo_react_common_1.dispatchEvent)(_this.props.onReposition, {}, _this, { value: positions });
105
105
  }
106
106
  };
107
107
  return _this;
@@ -138,11 +138,11 @@ var TileLayout = /** @class */ (function (_super) {
138
138
  var _this = this;
139
139
  var _a = this.props, className = _a.className, _b = _a.columns, columns = _b === void 0 ? 3 : _b, _c = _a.columnWidth, columnWidth = _c === void 0 ? '1fr' : _c, gap = _a.gap, _d = _a.rowHeight, rowHeight = _d === void 0 ? '1fr' : _d, style = _a.style, _e = _a.autoFlow, autoFlow = _e === void 0 ? 'column' : _e, _f = _a.items, items = _f === void 0 ? [] : _f;
140
140
  var gapValue = gap
141
- ? "" + (typeof gap.rows === 'number' ? gap.rows + 'px' : gap.rows) + ' ' + ("" + (typeof gap.columns === 'number' ? gap.columns + 'px' : gap.columns))
141
+ ? "".concat(typeof gap.rows === 'number' ? gap.rows + 'px' : gap.rows) + ' ' + "".concat(typeof gap.columns === 'number' ? gap.columns + 'px' : gap.columns)
142
142
  : 16;
143
- var tileLayoutStyles = __assign({ gridTemplateColumns: "repeat(" + columns + ", minmax(0px, " + (typeof columnWidth === 'number' ? columnWidth + 'px' : columnWidth) + "))", gridAutoRows: "minmax(0px, " + (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: 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 ? 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,
143
+ 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
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
147
  React.createElement("div", { className: 'k-tilelayout-item-body k-card-body' }, tile.body)))));
148
148
  }) }));