@progress/kendo-react-layout 5.4.0-dev.202205250548 → 5.4.0-dev.202206081230

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 (247) 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/AppBarProps.js +1 -0
  6. package/dist/es/appbar/interfaces/AppBarSectionProps.js +1 -0
  7. package/dist/es/appbar/interfaces/AppBarSpacerProps.d.ts +4 -0
  8. package/dist/es/appbar/interfaces/AppBarSpacerProps.js +1 -0
  9. package/dist/es/bottomnavigation/BottomNavigation.d.ts +1 -1
  10. package/dist/es/bottomnavigation/BottomNavigation.js +1 -1
  11. package/dist/es/bottomnavigation/BottomNavigationItem.d.ts +1 -1
  12. package/dist/es/bottomnavigation/BottomNavigationItem.js +1 -1
  13. package/dist/es/bottomnavigation/BottomNavigationItemProps.js +1 -0
  14. package/dist/es/bottomnavigation/BottomNavigationProps.js +1 -0
  15. package/dist/es/bottomnavigation/models/events.js +1 -0
  16. package/dist/es/bottomnavigation/models/utils.d.ts +16 -16
  17. package/dist/es/breadcrumb/Breadcrumb.d.ts +5 -1
  18. package/dist/es/breadcrumb/Breadcrumb.js +9 -4
  19. package/dist/es/breadcrumb/BreadcrumbDelimiter.d.ts +1 -1
  20. package/dist/es/breadcrumb/BreadcrumbDelimiter.js +0 -1
  21. package/dist/es/breadcrumb/BreadcrumbLink.d.ts +1 -1
  22. package/dist/es/breadcrumb/BreadcrumbListItem.d.ts +1 -1
  23. package/dist/es/breadcrumb/BreadcrumbListItem.js +0 -1
  24. package/dist/es/breadcrumb/BreadcrumbOrderedList.d.ts +1 -1
  25. package/dist/es/breadcrumb/BreadcrumbOrderedList.js +0 -1
  26. package/dist/es/card/Avatar.js +5 -5
  27. package/dist/es/card/Card.d.ts +1 -1
  28. package/dist/es/card/Card.js +6 -5
  29. package/dist/es/card/CardActions.js +1 -1
  30. package/dist/es/card/interfaces/AvatarProps.js +1 -0
  31. package/dist/es/card/interfaces/CardActionsProps.js +1 -0
  32. package/dist/es/card/interfaces/CardBodyProps.js +1 -0
  33. package/dist/es/card/interfaces/CardFooterProps.js +1 -0
  34. package/dist/es/card/interfaces/CardHandle.js +1 -0
  35. package/dist/es/card/interfaces/CardHeaderProps.js +1 -0
  36. package/dist/es/card/interfaces/CardImageProps.js +1 -0
  37. package/dist/es/card/interfaces/CardProps.js +1 -0
  38. package/dist/es/card/interfaces/CardSubtitleProps.js +1 -0
  39. package/dist/es/card/interfaces/CardTitleProps.js +1 -0
  40. package/dist/es/drawer/Drawer.d.ts +1 -1
  41. package/dist/es/drawer/Drawer.js +9 -4
  42. package/dist/es/drawer/DrawerContent.d.ts +1 -1
  43. package/dist/es/drawer/DrawerItem.d.ts +1 -1
  44. package/dist/es/drawer/DrawerItem.js +6 -4
  45. package/dist/es/drawer/DrawerNavigation.d.ts +1 -1
  46. package/dist/es/drawer/DrawerNavigation.js +2 -2
  47. package/dist/es/drawer/context/DrawerContext.d.ts +1 -1
  48. package/dist/es/drawer/interfaces/DrawerAnimation.js +1 -0
  49. package/dist/es/drawer/interfaces/DrawerContentProps.js +1 -0
  50. package/dist/es/drawer/interfaces/DrawerItemHandle.js +1 -0
  51. package/dist/es/drawer/interfaces/DrawerItemProps.d.ts +1 -1
  52. package/dist/es/drawer/interfaces/DrawerItemProps.js +1 -0
  53. package/dist/es/drawer/interfaces/DrawerNavigationProps.js +1 -0
  54. package/dist/es/drawer/interfaces/DrawerProps.js +1 -0
  55. package/dist/es/drawer/interfaces/DrawerSelectEvent.js +1 -0
  56. package/dist/es/expansionpanel/ExpansionPanel.d.ts +1 -1
  57. package/dist/es/expansionpanel/index.js +1 -0
  58. package/dist/es/expansionpanel/interfaces.js +1 -0
  59. package/dist/es/gridlayout/GridLayout.d.ts +1 -1
  60. package/dist/es/gridlayout/GridLayout.js +3 -3
  61. package/dist/es/gridlayout/GridLayoutItem.d.ts +1 -1
  62. package/dist/es/gridlayout/GridLayoutItem.js +1 -1
  63. package/dist/es/gridlayout/interfaces/GridLayoutColumnProps.js +1 -0
  64. package/dist/es/gridlayout/interfaces/GridLayoutItemProps.js +1 -0
  65. package/dist/es/gridlayout/interfaces/GridLayoutProps.js +1 -0
  66. package/dist/es/gridlayout/interfaces/GridLayoutRowProps.js +1 -0
  67. package/dist/es/main.js +37 -0
  68. package/dist/es/menu/BaseMenuItemInternalProps.js +1 -0
  69. package/dist/es/menu/MenuProps.js +1 -0
  70. package/dist/es/menu/components/Menu.d.ts +2 -2
  71. package/dist/es/menu/components/Menu.js +5 -1
  72. package/dist/es/menu/components/MenuItem.d.ts +1 -1
  73. package/dist/es/menu/components/MenuItem.js +3 -1
  74. package/dist/es/menu/components/MenuItemArrow.js +3 -1
  75. package/dist/es/menu/components/MenuItemInternal.d.ts +4 -4
  76. package/dist/es/menu/components/MenuItemInternal.js +8 -6
  77. package/dist/es/menu/components/MenuItemInternalsList.js +3 -1
  78. package/dist/es/menu/components/MenuItemLink.js +3 -1
  79. package/dist/es/menu/events.js +1 -0
  80. package/dist/es/menu/models/BaseMenuItem.d.ts +4 -0
  81. package/dist/es/menu/models/BaseMenuItem.js +1 -0
  82. package/dist/es/menu/models/MenuItemModel.js +1 -0
  83. package/dist/es/menu/utils/DirectionHolder.d.ts +1 -1
  84. package/dist/es/menu/utils/MouseOverHandler.d.ts +2 -2
  85. package/dist/es/menu/utils/MouseOverHandler.js +3 -2
  86. package/dist/es/menu/utils/misc.js +1 -1
  87. package/dist/es/package-metadata.js +1 -1
  88. package/dist/es/panelbar/PanelBar.d.ts +6 -6
  89. package/dist/es/panelbar/PanelBar.js +19 -8
  90. package/dist/es/panelbar/PanelBarItem.d.ts +1 -1
  91. package/dist/es/panelbar/PanelBarItem.js +7 -5
  92. package/dist/es/panelbar/interfaces/PanelBarItemClickEventArguments.js +1 -0
  93. package/dist/es/panelbar/interfaces/PanelBarItemProps.js +1 -0
  94. package/dist/es/panelbar/interfaces/PanelBarProps.js +1 -0
  95. package/dist/es/panelbar/interfaces/PanelBarSelectEventArguments.js +1 -0
  96. package/dist/es/panelbar/interfaces/RenderPanelBarItem.js +1 -0
  97. package/dist/es/panelbar/util.js +14 -5
  98. package/dist/es/splitter/Splitter.d.ts +5 -5
  99. package/dist/es/splitter/Splitter.js +20 -17
  100. package/dist/es/splitter/SplitterBar.d.ts +3 -3
  101. package/dist/es/splitter/SplitterBar.js +8 -5
  102. package/dist/es/splitter/SplitterPane.js +3 -1
  103. package/dist/es/stacklayout/StackLayout.d.ts +1 -1
  104. package/dist/es/stacklayout/StackLayout.js +1 -1
  105. package/dist/es/stacklayout/StackLayoutProps.js +1 -0
  106. package/dist/es/stepper/Step.d.ts +1 -1
  107. package/dist/es/stepper/Step.js +8 -6
  108. package/dist/es/stepper/Stepper.d.ts +1 -1
  109. package/dist/es/stepper/Stepper.js +4 -1
  110. package/dist/es/stepper/interfaces/StepChangeEvent.js +1 -0
  111. package/dist/es/stepper/interfaces/StepFocusEvent.js +1 -0
  112. package/dist/es/stepper/interfaces/StepHandle.js +1 -0
  113. package/dist/es/stepper/interfaces/StepProps.js +1 -0
  114. package/dist/es/stepper/interfaces/StepperChangeEvent.js +1 -0
  115. package/dist/es/stepper/interfaces/StepperFocusEvent.js +1 -0
  116. package/dist/es/stepper/interfaces/StepperHandle.js +1 -0
  117. package/dist/es/stepper/interfaces/StepperOnNavigateEvent.js +1 -0
  118. package/dist/es/stepper/interfaces/StepperProps.js +1 -0
  119. package/dist/es/stepper/messages/index.d.ts +1 -1
  120. package/dist/es/tabstrip/TabStrip.js +4 -2
  121. package/dist/es/tabstrip/TabStripContent.d.ts +5 -1
  122. package/dist/es/tabstrip/TabStripContent.js +4 -2
  123. package/dist/es/tabstrip/TabStripNavigation.d.ts +1 -1
  124. package/dist/es/tabstrip/TabStripNavigation.js +3 -1
  125. package/dist/es/tabstrip/TabStripNavigationItem.js +3 -1
  126. package/dist/es/tabstrip/TabStripTab.d.ts +6 -2
  127. package/dist/es/tabstrip/TabStripTab.js +9 -1
  128. package/dist/es/tilelayout/InternalTile.d.ts +4 -3
  129. package/dist/es/tilelayout/InternalTile.js +14 -18
  130. package/dist/es/tilelayout/ResizeHandlers.d.ts +1 -1
  131. package/dist/es/tilelayout/ResizeHandlers.js +3 -1
  132. package/dist/es/tilelayout/TileLayout.d.ts +2 -2
  133. package/dist/es/tilelayout/TileLayout.js +6 -4
  134. package/dist/es/tilelayout/interfaces/main.js +1 -0
  135. package/dist/npm/appbar/AppBar.d.ts +1 -1
  136. package/dist/npm/appbar/AppBar.js +5 -4
  137. package/dist/npm/appbar/AppBarSection.d.ts +1 -1
  138. package/dist/npm/appbar/AppBarSection.js +3 -2
  139. package/dist/npm/appbar/AppBarSpacer.d.ts +1 -1
  140. package/dist/npm/appbar/AppBarSpacer.js +3 -2
  141. package/dist/npm/appbar/interfaces/AppBarSpacerProps.d.ts +4 -0
  142. package/dist/npm/bottomnavigation/BottomNavigation.d.ts +1 -1
  143. package/dist/npm/bottomnavigation/BottomNavigation.js +9 -8
  144. package/dist/npm/bottomnavigation/BottomNavigationItem.d.ts +1 -1
  145. package/dist/npm/bottomnavigation/BottomNavigationItem.js +4 -3
  146. package/dist/npm/bottomnavigation/models/utils.d.ts +16 -16
  147. package/dist/npm/bottomnavigation/models/utils.js +1 -0
  148. package/dist/npm/breadcrumb/Breadcrumb.d.ts +5 -1
  149. package/dist/npm/breadcrumb/Breadcrumb.js +15 -9
  150. package/dist/npm/breadcrumb/BreadcrumbDelimiter.d.ts +1 -1
  151. package/dist/npm/breadcrumb/BreadcrumbDelimiter.js +3 -3
  152. package/dist/npm/breadcrumb/BreadcrumbLink.d.ts +1 -1
  153. package/dist/npm/breadcrumb/BreadcrumbLink.js +6 -5
  154. package/dist/npm/breadcrumb/BreadcrumbListItem.d.ts +1 -1
  155. package/dist/npm/breadcrumb/BreadcrumbListItem.js +3 -3
  156. package/dist/npm/breadcrumb/BreadcrumbOrderedList.d.ts +1 -1
  157. package/dist/npm/breadcrumb/BreadcrumbOrderedList.js +3 -3
  158. package/dist/npm/card/Avatar.js +10 -8
  159. package/dist/npm/card/Card.d.ts +1 -1
  160. package/dist/npm/card/Card.js +8 -6
  161. package/dist/npm/card/CardActions.js +4 -2
  162. package/dist/npm/card/CardBody.js +4 -2
  163. package/dist/npm/card/CardFooter.js +4 -2
  164. package/dist/npm/card/CardHeader.js +4 -2
  165. package/dist/npm/card/CardImage.js +4 -2
  166. package/dist/npm/card/CardSubtitle.js +4 -2
  167. package/dist/npm/card/CardTitle.js +4 -2
  168. package/dist/npm/card/interfaces/Enums.js +1 -0
  169. package/dist/npm/drawer/Drawer.d.ts +1 -1
  170. package/dist/npm/drawer/Drawer.js +13 -7
  171. package/dist/npm/drawer/DrawerContent.d.ts +1 -1
  172. package/dist/npm/drawer/DrawerContent.js +2 -1
  173. package/dist/npm/drawer/DrawerItem.d.ts +1 -1
  174. package/dist/npm/drawer/DrawerItem.js +9 -6
  175. package/dist/npm/drawer/DrawerNavigation.d.ts +1 -1
  176. package/dist/npm/drawer/DrawerNavigation.js +4 -3
  177. package/dist/npm/drawer/context/DrawerContext.d.ts +1 -1
  178. package/dist/npm/drawer/context/DrawerContext.js +1 -0
  179. package/dist/npm/drawer/interfaces/DrawerItemProps.d.ts +1 -1
  180. package/dist/npm/expansionpanel/ExpansionPanel.d.ts +1 -1
  181. package/dist/npm/expansionpanel/ExpansionPanel.js +8 -7
  182. package/dist/npm/expansionpanel/ExpansionPanelContent.js +2 -1
  183. package/dist/npm/expansionpanel/index.js +17 -5
  184. package/dist/npm/gridlayout/GridLayout.d.ts +1 -1
  185. package/dist/npm/gridlayout/GridLayout.js +7 -6
  186. package/dist/npm/gridlayout/GridLayoutItem.d.ts +1 -1
  187. package/dist/npm/gridlayout/GridLayoutItem.js +4 -3
  188. package/dist/npm/main.js +95 -47
  189. package/dist/npm/menu/components/Menu.d.ts +2 -2
  190. package/dist/npm/menu/components/Menu.js +22 -17
  191. package/dist/npm/menu/components/MenuItem.d.ts +1 -1
  192. package/dist/npm/menu/components/MenuItem.js +4 -1
  193. package/dist/npm/menu/components/MenuItemArrow.js +6 -3
  194. package/dist/npm/menu/components/MenuItemInternal.d.ts +4 -4
  195. package/dist/npm/menu/components/MenuItemInternal.js +17 -14
  196. package/dist/npm/menu/components/MenuItemInternalsList.js +5 -2
  197. package/dist/npm/menu/components/MenuItemLink.js +6 -3
  198. package/dist/npm/menu/consts.js +1 -0
  199. package/dist/npm/menu/models/BaseMenuItem.d.ts +4 -0
  200. package/dist/npm/menu/utils/DirectionHolder.d.ts +1 -1
  201. package/dist/npm/menu/utils/DirectionHolder.js +1 -0
  202. package/dist/npm/menu/utils/MouseOverHandler.d.ts +2 -2
  203. package/dist/npm/menu/utils/MouseOverHandler.js +4 -2
  204. package/dist/npm/menu/utils/getNewItemIdUponKeyboardNavigation.js +25 -24
  205. package/dist/npm/menu/utils/hoverDelay.js +1 -0
  206. package/dist/npm/menu/utils/itemsIdsUtils.js +1 -0
  207. package/dist/npm/menu/utils/misc.js +3 -2
  208. package/dist/npm/menu/utils/prepareInputItemsForInternalWork.js +3 -2
  209. package/dist/npm/package-metadata.js +2 -1
  210. package/dist/npm/panelbar/PanelBar.d.ts +6 -6
  211. package/dist/npm/panelbar/PanelBar.js +28 -16
  212. package/dist/npm/panelbar/PanelBarItem.d.ts +1 -1
  213. package/dist/npm/panelbar/PanelBarItem.js +12 -9
  214. package/dist/npm/panelbar/interfaces/NavigationAction.js +1 -0
  215. package/dist/npm/panelbar/util.js +26 -11
  216. package/dist/npm/splitter/Splitter.d.ts +5 -5
  217. package/dist/npm/splitter/Splitter.js +22 -18
  218. package/dist/npm/splitter/SplitterBar.d.ts +3 -3
  219. package/dist/npm/splitter/SplitterBar.js +12 -8
  220. package/dist/npm/splitter/SplitterPane.js +5 -2
  221. package/dist/npm/stacklayout/StackLayout.d.ts +1 -1
  222. package/dist/npm/stacklayout/StackLayout.js +5 -4
  223. package/dist/npm/stepper/Step.d.ts +1 -1
  224. package/dist/npm/stepper/Step.js +14 -11
  225. package/dist/npm/stepper/Stepper.d.ts +1 -1
  226. package/dist/npm/stepper/Stepper.js +12 -8
  227. package/dist/npm/stepper/contants.js +1 -0
  228. package/dist/npm/stepper/context/StepperContext.js +1 -0
  229. package/dist/npm/stepper/interfaces/StepperOnNavigateEvent.js +2 -0
  230. package/dist/npm/stepper/messages/index.d.ts +1 -1
  231. package/dist/npm/stepper/messages/index.js +2 -1
  232. package/dist/npm/tabstrip/TabStrip.js +7 -4
  233. package/dist/npm/tabstrip/TabStripContent.d.ts +5 -1
  234. package/dist/npm/tabstrip/TabStripContent.js +7 -4
  235. package/dist/npm/tabstrip/TabStripNavigation.d.ts +1 -1
  236. package/dist/npm/tabstrip/TabStripNavigation.js +6 -3
  237. package/dist/npm/tabstrip/TabStripNavigationItem.js +5 -2
  238. package/dist/npm/tabstrip/TabStripTab.d.ts +6 -2
  239. package/dist/npm/tabstrip/TabStripTab.js +10 -1
  240. package/dist/npm/tilelayout/InternalTile.d.ts +4 -3
  241. package/dist/npm/tilelayout/InternalTile.js +16 -19
  242. package/dist/npm/tilelayout/ResizeHandlers.d.ts +1 -1
  243. package/dist/npm/tilelayout/ResizeHandlers.js +4 -1
  244. package/dist/npm/tilelayout/TileLayout.d.ts +2 -2
  245. package/dist/npm/tilelayout/TileLayout.js +10 -7
  246. package/dist/systemjs/kendo-react-layout.js +1 -1
  247. package/package.json +14 -14
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -27,8 +29,10 @@ var __rest = (this && this.__rest) || function (s, e) {
27
29
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28
30
  t[p] = s[p];
29
31
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
30
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
31
- t[p[i]] = s[p[i]];
32
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
33
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
34
+ t[p[i]] = s[p[i]];
35
+ }
32
36
  return t;
33
37
  };
34
38
  import * as React from 'react';
@@ -82,6 +86,7 @@ var Splitter = /** @class */ (function (_super) {
82
86
  */
83
87
  function Splitter(props) {
84
88
  var _this = _super.call(this, props) || this;
89
+ _this._container = null;
85
90
  _this.validatePanes = function (panesOptions) {
86
91
  var withoutSize = panesOptions.filter(function (pane) { return pane.size === undefined; });
87
92
  if (!withoutSize.length) {
@@ -102,9 +107,7 @@ var Splitter = /** @class */ (function (_super) {
102
107
  if (isDragging && dragIndex !== undefined) {
103
108
  overlay = dragIndex === index || dragIndex + 1 === index;
104
109
  }
105
- paneOptions.push(__assign({}, PANE_DEFAULTS, { orientation: orientation,
106
- containsSplitter: containsSplitter,
107
- overlay: overlay }, (panes || [])[index]));
110
+ paneOptions.push(__assign(__assign(__assign({}, PANE_DEFAULTS), { orientation: orientation, containsSplitter: containsSplitter, overlay: overlay }), (panes || [])[index]));
108
111
  }
109
112
  return paneOptions;
110
113
  };
@@ -126,7 +129,7 @@ var Splitter = /** @class */ (function (_super) {
126
129
  var updatedState = panesOptions.map(function (pane, idx) {
127
130
  var paneProps = _this.getPaneProps(pane);
128
131
  if (idx === index) {
129
- return __assign({}, paneProps, { collapsed: !pane.collapsed });
132
+ return __assign(__assign({}, paneProps), { collapsed: !pane.collapsed });
130
133
  }
131
134
  else {
132
135
  return __assign({}, paneProps);
@@ -199,10 +202,10 @@ var Splitter = /** @class */ (function (_super) {
199
202
  _this.elementSize = function (el, isContainer) {
200
203
  var sizeType = isContainer ? 'client' : 'offset';
201
204
  if (_this.orientation === 'vertical') {
202
- return el[sizeType + "Height"];
205
+ return el["".concat(sizeType, "Height")];
203
206
  }
204
207
  else {
205
- return el[sizeType + "Width"];
208
+ return el["".concat(sizeType, "Width")];
206
209
  }
207
210
  };
208
211
  _this.clamp = function (min, max, v) { return Math.min(max, Math.max(min, v)); };
@@ -224,7 +227,7 @@ var Splitter = /** @class */ (function (_super) {
224
227
  get: function () {
225
228
  return this.props.panes !== undefined;
226
229
  },
227
- enumerable: true,
230
+ enumerable: false,
228
231
  configurable: true
229
232
  });
230
233
  Object.defineProperty(Splitter.prototype, "panes", {
@@ -233,28 +236,28 @@ var Splitter = /** @class */ (function (_super) {
233
236
  this.panesDuringOnChange :
234
237
  (this.isControlledState ? this.props.panes : this.state.panes);
235
238
  },
236
- enumerable: true,
239
+ enumerable: false,
237
240
  configurable: true
238
241
  });
239
242
  Object.defineProperty(Splitter.prototype, "orientation", {
240
243
  get: function () {
241
244
  return this.props.orientation || 'horizontal';
242
245
  },
243
- enumerable: true,
246
+ enumerable: false,
244
247
  configurable: true
245
248
  });
246
249
  Object.defineProperty(Splitter.prototype, "isRtl", {
247
250
  get: function () {
248
251
  return this._container && (getComputedStyle(this._container).direction === 'rtl') || false;
249
252
  },
250
- enumerable: true,
253
+ enumerable: false,
251
254
  configurable: true
252
255
  });
253
256
  Object.defineProperty(Splitter.prototype, "panesContent", {
254
257
  get: function () {
255
258
  return React.Children.toArray(this.props.children).filter(function (c) { return c; });
256
259
  },
257
- enumerable: true,
260
+ enumerable: false,
258
261
  configurable: true
259
262
  });
260
263
  /**
@@ -264,7 +267,7 @@ var Splitter = /** @class */ (function (_super) {
264
267
  var _this = this;
265
268
  var panesContent = this.panesContent;
266
269
  var panesOptions = this.panesOptions(panesContent);
267
- var className = classNames('k-widget', 'k-splitter', 'k-splitter-flex', "k-splitter-" + this.orientation, this.props.className);
270
+ var className = classNames('k-widget', 'k-splitter', 'k-splitter-flex', "k-splitter-".concat(this.orientation), this.props.className);
268
271
  this.validatePanes(panesOptions);
269
272
  return (React.createElement("div", { style: this.props.style, ref: function (ref) { return _this._container = ref; }, className: className }, this.mapSplitterPanes(panesOptions, panesContent)));
270
273
  };
@@ -340,10 +343,10 @@ var Splitter = /** @class */ (function (_super) {
340
343
  var updatedState = panesOptions.map(function (pane, idx) {
341
344
  var paneProps = _this.getPaneProps(pane);
342
345
  if (idx === prevIndex) {
343
- return __assign({}, paneProps, { size: prevSize });
346
+ return __assign(__assign({}, paneProps), { size: prevSize });
344
347
  }
345
348
  else if (idx === nextIndex) {
346
- return __assign({}, paneProps, { size: nextSize });
349
+ return __assign(__assign({}, paneProps), { size: nextSize });
347
350
  }
348
351
  else {
349
352
  return __assign({}, paneProps);
@@ -23,9 +23,9 @@ export interface SplitterBarState {
23
23
  */
24
24
  export declare class SplitterBar extends React.Component<SplitterBarProps, SplitterBarState> {
25
25
  private draggable;
26
- private readonly isStatic;
27
- private readonly isDraggable;
28
- private readonly isHorizontal;
26
+ private get isStatic();
27
+ private get isDraggable();
28
+ private get isHorizontal();
29
29
  constructor(props: SplitterBarProps);
30
30
  render(): JSX.Element;
31
31
  private onDrag;
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -20,6 +22,7 @@ var SplitterBar = /** @class */ (function (_super) {
20
22
  __extends(SplitterBar, _super);
21
23
  function SplitterBar(props) {
22
24
  var _this = _super.call(this, props) || this;
25
+ _this.draggable = null;
23
26
  _this.onDrag = function (data, isFirst, isLast) {
24
27
  var event = data.event;
25
28
  var _a = _this.props, onDrag = _a.onDrag, index = _a.index;
@@ -130,7 +133,7 @@ var SplitterBar = /** @class */ (function (_super) {
130
133
  var nearCollapsiblePane = prev.collapsible || next.collapsible;
131
134
  return !betweenResizablePanes && !nearCollapsiblePane;
132
135
  },
133
- enumerable: true,
136
+ enumerable: false,
134
137
  configurable: true
135
138
  });
136
139
  Object.defineProperty(SplitterBar.prototype, "isDraggable", {
@@ -140,19 +143,19 @@ var SplitterBar = /** @class */ (function (_super) {
140
143
  var nearCollapsedPane = prev.collapsed || next.collapsed;
141
144
  return !!betweenResizablePanes && !nearCollapsedPane;
142
145
  },
143
- enumerable: true,
146
+ enumerable: false,
144
147
  configurable: true
145
148
  });
146
149
  Object.defineProperty(SplitterBar.prototype, "isHorizontal", {
147
150
  get: function () {
148
151
  return this.props.orientation === 'horizontal';
149
152
  },
150
- enumerable: true,
153
+ enumerable: false,
151
154
  configurable: true
152
155
  });
153
156
  SplitterBar.prototype.render = function () {
154
- var _this = this;
155
157
  var _a;
158
+ var _this = this;
156
159
  var isDraggable = this.isDraggable;
157
160
  var isStatic = this.isStatic;
158
161
  var isHorizontal = this.isHorizontal;
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -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>>;
@@ -63,7 +63,7 @@ export var StackLayout = React.forwardRef(function (props, ref) {
63
63
  'k-align-items-end': !isHorizontal && hAlign === 'end' || isHorizontal && vAlign === 'bottom',
64
64
  'k-align-items-stretch': !isHorizontal && hAlign === 'stretch' || isHorizontal && vAlign === 'stretch'
65
65
  }, className); }, [orientation, isHorizontal, hAlign, vAlign, className]);
66
- var stackLayoutStyles = __assign({ gap: "" + (typeof props.gap === 'number' ? props.gap + 'px' : props.gap) }, style);
66
+ var stackLayoutStyles = __assign({ gap: "".concat(typeof props.gap === 'number' ? props.gap + 'px' : props.gap) }, style);
67
67
  return (React.createElement("div", { ref: elementRef, className: stackLayoutClasses, style: stackLayoutStyles, id: id || layoutId }, children));
68
68
  });
69
69
  var defaultProps = {
@@ -0,0 +1 @@
1
+ export {};
@@ -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>>;
@@ -14,8 +14,10 @@ var __rest = (this && this.__rest) || function (s, e) {
14
14
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
15
  t[p] = s[p];
16
16
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
18
- t[p[i]] = s[p[i]];
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
19
21
  return t;
20
22
  };
21
23
  import * as React from 'react';
@@ -93,16 +95,16 @@ export var Step = React.forwardRef(function (props, target) {
93
95
  'k-step-error': isValid !== undefined && !isValid,
94
96
  'k-step-success': isValid
95
97
  }, className); }, [index, numOfSteps, value, current, optional, disabled, focused, isValid, className]);
96
- 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]);
98
+ 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]);
97
99
  var validationIconClasses = (isValid
98
- ? successIcon ? "" + successIcon : 'k-icon k-i-check'
99
- : errorIcon ? "" + errorIcon : 'k-icon k-i-warning');
100
+ ? successIcon ? "".concat(successIcon) : 'k-icon k-i-check'
101
+ : errorIcon ? "".concat(errorIcon) : 'k-icon k-i-warning');
100
102
  var validationIcons = (React.createElement("span", { className: 'k-step-indicator-icon ' + validationIconClasses, "aria-hidden": "true" }));
101
103
  var stepIndicator = (React.createElement(React.Fragment, null, mode !== 'labels' ?
102
104
  React.createElement("span", { className: "k-step-indicator", "aria-hidden": true, style: { transitionDuration: progressAnimation + 'ms' } }, icon
103
105
  ? !isInLabel && isValid !== undefined
104
106
  ? validationIcons
105
- : React.createElement("span", { className: "k-step-indicator-icon k-icon " + icon })
107
+ : React.createElement("span", { className: "k-step-indicator-icon k-icon ".concat(icon) })
106
108
  : isValid !== undefined
107
109
  ? validationIcons
108
110
  : 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>>;
@@ -188,15 +188,18 @@ export var Stepper = React.forwardRef(function (props, target) {
188
188
  });
189
189
  Stepper.propTypes = {
190
190
  animationDuration: PropTypes.oneOfType([PropTypes.bool, PropTypes.number]),
191
+ children: PropTypes.any,
191
192
  className: PropTypes.string,
192
193
  dir: PropTypes.string,
193
194
  disabled: PropTypes.bool,
195
+ errorIcon: PropTypes.string,
194
196
  item: PropTypes.any,
195
- items: PropTypes.arrayOf(PropTypes.any),
197
+ items: PropTypes.any,
196
198
  linear: PropTypes.bool,
197
199
  mode: PropTypes.oneOf(['steps', 'labels']),
198
200
  orientation: PropTypes.oneOf(['horizontal', 'vertical']),
199
201
  style: PropTypes.object,
202
+ successIcon: PropTypes.string,
200
203
  value: PropTypes.number.isRequired,
201
204
  onChange: PropTypes.func,
202
205
  onFocus: PropTypes.func
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,4 @@
1
1
  /**
2
2
  * The Step ref.
3
3
  */
4
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,4 @@
1
1
  /**
2
2
  * The Stepper ref.
3
3
  */
4
+ export {};
@@ -6,6 +6,7 @@ var StepperOnNavigateEvent = /** @class */ (function () {
6
6
  * @hidden
7
7
  */
8
8
  function StepperOnNavigateEvent(target, prevIndex, nextIndex) {
9
+ this.syntheticEvent = null;
9
10
  this.target = target;
10
11
  this.prevIndex = prevIndex;
11
12
  this.nextIndex = nextIndex;
@@ -0,0 +1 @@
1
+ export {};
@@ -6,5 +6,5 @@ export declare const optionalText = "stepper.optionalText";
6
6
  * @hidden
7
7
  */
8
8
  export declare const messages: {
9
- [optionalText]: string;
9
+ "stepper.optionalText": string;
10
10
  };
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -162,7 +164,7 @@ var TabStrip = /** @class */ (function (_super) {
162
164
  */
163
165
  TabStrip.prototype.render = function () {
164
166
  var _this = this;
165
- var tabProps = __assign({}, this.props, { children: this.children(), onKeyDown: this.onKeyDown, onSelect: this.onSelect });
167
+ var tabProps = __assign(__assign({}, this.props), { children: this.children(), onKeyDown: this.onKeyDown, onSelect: this.onSelect });
166
168
  var tabPosition = tabProps.tabPosition, _a = tabProps.tabIndex, tabIndex = _a === void 0 ? 0 : _a;
167
169
  var bottom = tabPosition === 'bottom';
168
170
  var componentClasses = classNames('k-tabstrip', 'k-floatwrap', {
@@ -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
  };
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -32,7 +34,7 @@ var TabStripContent = /** @class */ (function (_super) {
32
34
  var _this = _super !== null && _super.apply(this, arguments) || this;
33
35
  _this.contentId = guid();
34
36
  _this.childFactory = function (child) {
35
- return React.cloneElement(child, __assign({}, child.props, { in: child.props.children.props.id === String(_this.contentId + _this.props.selected) }));
37
+ return React.cloneElement(child, __assign(__assign({}, child.props), { in: child.props.children.props.id === String(_this.contentId + _this.props.selected) }));
36
38
  };
37
39
  return _this;
38
40
  }
@@ -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>;
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -28,7 +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
+ /**
35
+ * @hidden
36
+ */
37
+ render(): null;
34
38
  }
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -18,6 +20,12 @@ var TabStripTab = /** @class */ (function (_super) {
18
20
  function TabStripTab() {
19
21
  return _super !== null && _super.apply(this, arguments) || this;
20
22
  }
23
+ /**
24
+ * @hidden
25
+ */
26
+ TabStripTab.prototype.render = function () {
27
+ return null;
28
+ };
21
29
  /**
22
30
  * @hidden
23
31
  */
@@ -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
@@ -42,7 +43,7 @@ export declare class InternalTile extends React.Component<InternalTileProps, {
42
43
  resizable: boolean;
43
44
  reorderable: boolean;
44
45
  };
45
- protected readonly reorderable: boolean;
46
+ protected get reorderable(): boolean;
46
47
  state: {
47
48
  rtl: boolean;
48
49
  };
@@ -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
- readonly 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
  */