@progress/kendo-react-layout 5.4.0-dev.202205200719 → 5.4.0-dev.202206061009

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 (244) 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 +1 -1
  18. package/dist/es/breadcrumb/BreadcrumbDelimiter.d.ts +1 -1
  19. package/dist/es/breadcrumb/BreadcrumbDelimiter.js +0 -1
  20. package/dist/es/breadcrumb/BreadcrumbLink.d.ts +1 -1
  21. package/dist/es/breadcrumb/BreadcrumbListItem.d.ts +1 -1
  22. package/dist/es/breadcrumb/BreadcrumbListItem.js +0 -1
  23. package/dist/es/breadcrumb/BreadcrumbOrderedList.d.ts +1 -1
  24. package/dist/es/breadcrumb/BreadcrumbOrderedList.js +0 -1
  25. package/dist/es/card/Avatar.js +5 -5
  26. package/dist/es/card/Card.d.ts +1 -1
  27. package/dist/es/card/Card.js +6 -5
  28. package/dist/es/card/CardActions.js +1 -1
  29. package/dist/es/card/interfaces/AvatarProps.js +1 -0
  30. package/dist/es/card/interfaces/CardActionsProps.js +1 -0
  31. package/dist/es/card/interfaces/CardBodyProps.js +1 -0
  32. package/dist/es/card/interfaces/CardFooterProps.js +1 -0
  33. package/dist/es/card/interfaces/CardHandle.js +1 -0
  34. package/dist/es/card/interfaces/CardHeaderProps.js +1 -0
  35. package/dist/es/card/interfaces/CardImageProps.js +1 -0
  36. package/dist/es/card/interfaces/CardProps.js +1 -0
  37. package/dist/es/card/interfaces/CardSubtitleProps.js +1 -0
  38. package/dist/es/card/interfaces/CardTitleProps.js +1 -0
  39. package/dist/es/drawer/Drawer.d.ts +1 -1
  40. package/dist/es/drawer/Drawer.js +9 -4
  41. package/dist/es/drawer/DrawerContent.d.ts +1 -1
  42. package/dist/es/drawer/DrawerItem.d.ts +1 -1
  43. package/dist/es/drawer/DrawerItem.js +6 -4
  44. package/dist/es/drawer/DrawerNavigation.d.ts +1 -1
  45. package/dist/es/drawer/DrawerNavigation.js +2 -2
  46. package/dist/es/drawer/context/DrawerContext.d.ts +1 -1
  47. package/dist/es/drawer/interfaces/DrawerAnimation.js +1 -0
  48. package/dist/es/drawer/interfaces/DrawerContentProps.js +1 -0
  49. package/dist/es/drawer/interfaces/DrawerItemHandle.js +1 -0
  50. package/dist/es/drawer/interfaces/DrawerItemProps.d.ts +1 -1
  51. package/dist/es/drawer/interfaces/DrawerItemProps.js +1 -0
  52. package/dist/es/drawer/interfaces/DrawerNavigationProps.js +1 -0
  53. package/dist/es/drawer/interfaces/DrawerProps.js +1 -0
  54. package/dist/es/drawer/interfaces/DrawerSelectEvent.js +1 -0
  55. package/dist/es/expansionpanel/ExpansionPanel.d.ts +1 -1
  56. package/dist/es/expansionpanel/index.js +1 -0
  57. package/dist/es/expansionpanel/interfaces.js +1 -0
  58. package/dist/es/gridlayout/GridLayout.d.ts +1 -1
  59. package/dist/es/gridlayout/GridLayout.js +3 -3
  60. package/dist/es/gridlayout/GridLayoutItem.d.ts +1 -1
  61. package/dist/es/gridlayout/GridLayoutItem.js +1 -1
  62. package/dist/es/gridlayout/interfaces/GridLayoutColumnProps.js +1 -0
  63. package/dist/es/gridlayout/interfaces/GridLayoutItemProps.js +1 -0
  64. package/dist/es/gridlayout/interfaces/GridLayoutProps.js +1 -0
  65. package/dist/es/gridlayout/interfaces/GridLayoutRowProps.js +1 -0
  66. package/dist/es/main.js +37 -0
  67. package/dist/es/menu/BaseMenuItemInternalProps.js +1 -0
  68. package/dist/es/menu/MenuProps.js +1 -0
  69. package/dist/es/menu/components/Menu.d.ts +2 -2
  70. package/dist/es/menu/components/Menu.js +5 -1
  71. package/dist/es/menu/components/MenuItem.d.ts +1 -1
  72. package/dist/es/menu/components/MenuItem.js +3 -1
  73. package/dist/es/menu/components/MenuItemArrow.js +3 -1
  74. package/dist/es/menu/components/MenuItemInternal.d.ts +4 -4
  75. package/dist/es/menu/components/MenuItemInternal.js +8 -6
  76. package/dist/es/menu/components/MenuItemInternalsList.js +3 -1
  77. package/dist/es/menu/components/MenuItemLink.js +3 -1
  78. package/dist/es/menu/events.js +1 -0
  79. package/dist/es/menu/models/BaseMenuItem.d.ts +4 -0
  80. package/dist/es/menu/models/BaseMenuItem.js +1 -0
  81. package/dist/es/menu/models/MenuItemModel.js +1 -0
  82. package/dist/es/menu/utils/DirectionHolder.d.ts +1 -1
  83. package/dist/es/menu/utils/MouseOverHandler.d.ts +2 -2
  84. package/dist/es/menu/utils/MouseOverHandler.js +3 -2
  85. package/dist/es/menu/utils/misc.js +1 -1
  86. package/dist/es/package-metadata.js +1 -1
  87. package/dist/es/panelbar/PanelBar.d.ts +6 -6
  88. package/dist/es/panelbar/PanelBar.js +19 -8
  89. package/dist/es/panelbar/PanelBarItem.js +6 -4
  90. package/dist/es/panelbar/interfaces/PanelBarItemClickEventArguments.js +1 -0
  91. package/dist/es/panelbar/interfaces/PanelBarItemProps.js +1 -0
  92. package/dist/es/panelbar/interfaces/PanelBarProps.js +1 -0
  93. package/dist/es/panelbar/interfaces/PanelBarSelectEventArguments.js +1 -0
  94. package/dist/es/panelbar/interfaces/RenderPanelBarItem.js +1 -0
  95. package/dist/es/panelbar/util.js +14 -5
  96. package/dist/es/splitter/Splitter.d.ts +5 -5
  97. package/dist/es/splitter/Splitter.js +20 -17
  98. package/dist/es/splitter/SplitterBar.d.ts +3 -3
  99. package/dist/es/splitter/SplitterBar.js +8 -5
  100. package/dist/es/splitter/SplitterPane.js +3 -1
  101. package/dist/es/stacklayout/StackLayout.d.ts +1 -1
  102. package/dist/es/stacklayout/StackLayout.js +1 -1
  103. package/dist/es/stacklayout/StackLayoutProps.js +1 -0
  104. package/dist/es/stepper/Step.d.ts +1 -1
  105. package/dist/es/stepper/Step.js +8 -6
  106. package/dist/es/stepper/Stepper.d.ts +1 -1
  107. package/dist/es/stepper/Stepper.js +4 -1
  108. package/dist/es/stepper/interfaces/StepChangeEvent.js +1 -0
  109. package/dist/es/stepper/interfaces/StepFocusEvent.js +1 -0
  110. package/dist/es/stepper/interfaces/StepHandle.js +1 -0
  111. package/dist/es/stepper/interfaces/StepProps.js +1 -0
  112. package/dist/es/stepper/interfaces/StepperChangeEvent.js +1 -0
  113. package/dist/es/stepper/interfaces/StepperFocusEvent.js +1 -0
  114. package/dist/es/stepper/interfaces/StepperHandle.js +1 -0
  115. package/dist/es/stepper/interfaces/StepperOnNavigateEvent.js +1 -0
  116. package/dist/es/stepper/interfaces/StepperProps.js +1 -0
  117. package/dist/es/stepper/messages/index.d.ts +1 -1
  118. package/dist/es/tabstrip/TabStrip.js +4 -2
  119. package/dist/es/tabstrip/TabStripContent.d.ts +5 -1
  120. package/dist/es/tabstrip/TabStripContent.js +4 -2
  121. package/dist/es/tabstrip/TabStripNavigation.d.ts +1 -1
  122. package/dist/es/tabstrip/TabStripNavigation.js +3 -1
  123. package/dist/es/tabstrip/TabStripNavigationItem.js +3 -1
  124. package/dist/es/tabstrip/TabStripTab.d.ts +6 -2
  125. package/dist/es/tabstrip/TabStripTab.js +9 -1
  126. package/dist/es/tilelayout/InternalTile.d.ts +4 -3
  127. package/dist/es/tilelayout/InternalTile.js +12 -10
  128. package/dist/es/tilelayout/ResizeHandlers.d.ts +1 -1
  129. package/dist/es/tilelayout/ResizeHandlers.js +3 -1
  130. package/dist/es/tilelayout/TileLayout.d.ts +2 -2
  131. package/dist/es/tilelayout/TileLayout.js +6 -4
  132. package/dist/es/tilelayout/interfaces/main.js +1 -0
  133. package/dist/npm/appbar/AppBar.d.ts +1 -1
  134. package/dist/npm/appbar/AppBar.js +5 -4
  135. package/dist/npm/appbar/AppBarSection.d.ts +1 -1
  136. package/dist/npm/appbar/AppBarSection.js +3 -2
  137. package/dist/npm/appbar/AppBarSpacer.d.ts +1 -1
  138. package/dist/npm/appbar/AppBarSpacer.js +3 -2
  139. package/dist/npm/appbar/interfaces/AppBarSpacerProps.d.ts +4 -0
  140. package/dist/npm/bottomnavigation/BottomNavigation.d.ts +1 -1
  141. package/dist/npm/bottomnavigation/BottomNavigation.js +9 -8
  142. package/dist/npm/bottomnavigation/BottomNavigationItem.d.ts +1 -1
  143. package/dist/npm/bottomnavigation/BottomNavigationItem.js +4 -3
  144. package/dist/npm/bottomnavigation/models/utils.d.ts +16 -16
  145. package/dist/npm/bottomnavigation/models/utils.js +1 -0
  146. package/dist/npm/breadcrumb/Breadcrumb.d.ts +1 -1
  147. package/dist/npm/breadcrumb/Breadcrumb.js +6 -5
  148. package/dist/npm/breadcrumb/BreadcrumbDelimiter.d.ts +1 -1
  149. package/dist/npm/breadcrumb/BreadcrumbDelimiter.js +3 -3
  150. package/dist/npm/breadcrumb/BreadcrumbLink.d.ts +1 -1
  151. package/dist/npm/breadcrumb/BreadcrumbLink.js +6 -5
  152. package/dist/npm/breadcrumb/BreadcrumbListItem.d.ts +1 -1
  153. package/dist/npm/breadcrumb/BreadcrumbListItem.js +3 -3
  154. package/dist/npm/breadcrumb/BreadcrumbOrderedList.d.ts +1 -1
  155. package/dist/npm/breadcrumb/BreadcrumbOrderedList.js +3 -3
  156. package/dist/npm/card/Avatar.js +10 -8
  157. package/dist/npm/card/Card.d.ts +1 -1
  158. package/dist/npm/card/Card.js +8 -6
  159. package/dist/npm/card/CardActions.js +4 -2
  160. package/dist/npm/card/CardBody.js +4 -2
  161. package/dist/npm/card/CardFooter.js +4 -2
  162. package/dist/npm/card/CardHeader.js +4 -2
  163. package/dist/npm/card/CardImage.js +4 -2
  164. package/dist/npm/card/CardSubtitle.js +4 -2
  165. package/dist/npm/card/CardTitle.js +4 -2
  166. package/dist/npm/card/interfaces/Enums.js +1 -0
  167. package/dist/npm/drawer/Drawer.d.ts +1 -1
  168. package/dist/npm/drawer/Drawer.js +13 -7
  169. package/dist/npm/drawer/DrawerContent.d.ts +1 -1
  170. package/dist/npm/drawer/DrawerContent.js +2 -1
  171. package/dist/npm/drawer/DrawerItem.d.ts +1 -1
  172. package/dist/npm/drawer/DrawerItem.js +9 -6
  173. package/dist/npm/drawer/DrawerNavigation.d.ts +1 -1
  174. package/dist/npm/drawer/DrawerNavigation.js +4 -3
  175. package/dist/npm/drawer/context/DrawerContext.d.ts +1 -1
  176. package/dist/npm/drawer/context/DrawerContext.js +1 -0
  177. package/dist/npm/drawer/interfaces/DrawerItemProps.d.ts +1 -1
  178. package/dist/npm/expansionpanel/ExpansionPanel.d.ts +1 -1
  179. package/dist/npm/expansionpanel/ExpansionPanel.js +8 -7
  180. package/dist/npm/expansionpanel/ExpansionPanelContent.js +2 -1
  181. package/dist/npm/expansionpanel/index.js +17 -5
  182. package/dist/npm/gridlayout/GridLayout.d.ts +1 -1
  183. package/dist/npm/gridlayout/GridLayout.js +7 -6
  184. package/dist/npm/gridlayout/GridLayoutItem.d.ts +1 -1
  185. package/dist/npm/gridlayout/GridLayoutItem.js +4 -3
  186. package/dist/npm/main.js +95 -47
  187. package/dist/npm/menu/components/Menu.d.ts +2 -2
  188. package/dist/npm/menu/components/Menu.js +22 -17
  189. package/dist/npm/menu/components/MenuItem.d.ts +1 -1
  190. package/dist/npm/menu/components/MenuItem.js +4 -1
  191. package/dist/npm/menu/components/MenuItemArrow.js +6 -3
  192. package/dist/npm/menu/components/MenuItemInternal.d.ts +4 -4
  193. package/dist/npm/menu/components/MenuItemInternal.js +17 -14
  194. package/dist/npm/menu/components/MenuItemInternalsList.js +5 -2
  195. package/dist/npm/menu/components/MenuItemLink.js +6 -3
  196. package/dist/npm/menu/consts.js +1 -0
  197. package/dist/npm/menu/models/BaseMenuItem.d.ts +4 -0
  198. package/dist/npm/menu/utils/DirectionHolder.d.ts +1 -1
  199. package/dist/npm/menu/utils/DirectionHolder.js +1 -0
  200. package/dist/npm/menu/utils/MouseOverHandler.d.ts +2 -2
  201. package/dist/npm/menu/utils/MouseOverHandler.js +4 -2
  202. package/dist/npm/menu/utils/getNewItemIdUponKeyboardNavigation.js +25 -24
  203. package/dist/npm/menu/utils/hoverDelay.js +1 -0
  204. package/dist/npm/menu/utils/itemsIdsUtils.js +1 -0
  205. package/dist/npm/menu/utils/misc.js +3 -2
  206. package/dist/npm/menu/utils/prepareInputItemsForInternalWork.js +3 -2
  207. package/dist/npm/package-metadata.js +2 -1
  208. package/dist/npm/panelbar/PanelBar.d.ts +6 -6
  209. package/dist/npm/panelbar/PanelBar.js +28 -16
  210. package/dist/npm/panelbar/PanelBarItem.js +11 -8
  211. package/dist/npm/panelbar/interfaces/NavigationAction.js +1 -0
  212. package/dist/npm/panelbar/util.js +26 -11
  213. package/dist/npm/splitter/Splitter.d.ts +5 -5
  214. package/dist/npm/splitter/Splitter.js +22 -18
  215. package/dist/npm/splitter/SplitterBar.d.ts +3 -3
  216. package/dist/npm/splitter/SplitterBar.js +12 -8
  217. package/dist/npm/splitter/SplitterPane.js +5 -2
  218. package/dist/npm/stacklayout/StackLayout.d.ts +1 -1
  219. package/dist/npm/stacklayout/StackLayout.js +5 -4
  220. package/dist/npm/stepper/Step.d.ts +1 -1
  221. package/dist/npm/stepper/Step.js +14 -11
  222. package/dist/npm/stepper/Stepper.d.ts +1 -1
  223. package/dist/npm/stepper/Stepper.js +12 -8
  224. package/dist/npm/stepper/contants.js +1 -0
  225. package/dist/npm/stepper/context/StepperContext.js +1 -0
  226. package/dist/npm/stepper/interfaces/StepperOnNavigateEvent.js +2 -0
  227. package/dist/npm/stepper/messages/index.d.ts +1 -1
  228. package/dist/npm/stepper/messages/index.js +2 -1
  229. package/dist/npm/tabstrip/TabStrip.js +7 -4
  230. package/dist/npm/tabstrip/TabStripContent.d.ts +5 -1
  231. package/dist/npm/tabstrip/TabStripContent.js +7 -4
  232. package/dist/npm/tabstrip/TabStripNavigation.d.ts +1 -1
  233. package/dist/npm/tabstrip/TabStripNavigation.js +6 -3
  234. package/dist/npm/tabstrip/TabStripNavigationItem.js +5 -2
  235. package/dist/npm/tabstrip/TabStripTab.d.ts +6 -2
  236. package/dist/npm/tabstrip/TabStripTab.js +10 -1
  237. package/dist/npm/tilelayout/InternalTile.d.ts +4 -3
  238. package/dist/npm/tilelayout/InternalTile.js +14 -11
  239. package/dist/npm/tilelayout/ResizeHandlers.d.ts +1 -1
  240. package/dist/npm/tilelayout/ResizeHandlers.js +4 -1
  241. package/dist/npm/tilelayout/TileLayout.d.ts +2 -2
  242. package/dist/npm/tilelayout/TileLayout.js +10 -7
  243. package/dist/systemjs/kendo-react-layout.js +1 -1
  244. package/package.json +14 -14
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
15
  };
14
16
  })();
15
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.Menu = void 0;
16
19
  var React = require("react");
17
20
  var PropTypes = require("prop-types");
18
21
  var kendo_react_common_1 = require("@progress/kendo-react-common");
@@ -56,8 +59,10 @@ var Menu = /** @class */ (function (_super) {
56
59
  __extends(Menu, _super);
57
60
  function Menu(props) {
58
61
  var _this = _super.call(this, props) || this;
59
- _this.guid = kendo_react_common_1.guid();
62
+ _this.guid = (0, kendo_react_common_1.guid)();
60
63
  _this.directionHolder = new DirectionHolder_1.DirectionHolder();
64
+ _this.inputItems = [];
65
+ _this.items = [];
61
66
  /**
62
67
  * Resets the selection and opening of Menu items.
63
68
  */
@@ -69,8 +74,8 @@ var Menu = /** @class */ (function (_super) {
69
74
  // The focusedItemId may be empty when contentRender is used.
70
75
  // For example, content with input.
71
76
  if (_this.state.focusedItemId !== itemsIdsUtils_1.EMPTY_ID) {
72
- var currentItem = itemsIdsUtils_1.getItemById(_this.state.focusedItemId, _this.items);
73
- var newItemId = getNewItemIdUponKeyboardNavigation_1.getNewItemIdUponKeyboardNavigation(_this.items, currentItem.id, event.keyCode, event.key, _this.props.vertical, _this.directionHolder.getIsDirectionRightToLeft());
77
+ var currentItem = (0, itemsIdsUtils_1.getItemById)(_this.state.focusedItemId, _this.items);
78
+ var newItemId = (0, getNewItemIdUponKeyboardNavigation_1.getNewItemIdUponKeyboardNavigation)(_this.items, currentItem.id, event.keyCode, event.key, _this.props.vertical, _this.directionHolder.getIsDirectionRightToLeft());
74
79
  if (currentItem.id !== newItemId) {
75
80
  event.preventDefault();
76
81
  _this.setFocusedItemId(newItemId);
@@ -92,7 +97,7 @@ var Menu = /** @class */ (function (_super) {
92
97
  _this.itemHoverRequest = window.setTimeout(function () {
93
98
  _this.setHoveredItemId(itemId);
94
99
  _this.itemHoverRequest = null;
95
- }, hoverDelay_1.getHoverOpenDelay(_this.props));
100
+ }, (0, hoverDelay_1.getHoverOpenDelay)(_this.props));
96
101
  }
97
102
  };
98
103
  _this.onItemMouseLeave = function (itemId) {
@@ -103,7 +108,7 @@ var Menu = /** @class */ (function (_super) {
103
108
  _this.itemLeaveRequest = window.setTimeout(function () {
104
109
  _this.setHoveredItemId(itemsIdsUtils_1.EMPTY_ID);
105
110
  _this.itemLeaveRequest = null;
106
- }, hoverDelay_1.getHoverCloseDelay(_this.props));
111
+ }, (0, hoverDelay_1.getHoverCloseDelay)(_this.props));
107
112
  }
108
113
  };
109
114
  _this.onItemMouseDown = function () {
@@ -114,7 +119,7 @@ var Menu = /** @class */ (function (_super) {
114
119
  _this.mouseOverHandler.handleItemFocus();
115
120
  };
116
121
  _this.onItemClick = function (event, itemId) {
117
- var item = itemsIdsUtils_1.getItemById(itemId, _this.items);
122
+ var item = (0, itemsIdsUtils_1.getItemById)(itemId, _this.items);
118
123
  if (!item.disabled) {
119
124
  _this.setFocusedItemId(itemId);
120
125
  _this.mouseOverHandler.handleItemClick(itemId, _this.isItemWithDefaultClose(itemId));
@@ -130,9 +135,9 @@ var Menu = /** @class */ (function (_super) {
130
135
  }
131
136
  };
132
137
  _this.getInputItem = function (itemId) {
133
- return itemsIdsUtils_1.getItemById(itemId, _this.inputItems);
138
+ return (0, itemsIdsUtils_1.getItemById)(itemId, _this.inputItems);
134
139
  };
135
- kendo_react_common_2.validatePackage(package_metadata_1.packageMetadata);
140
+ (0, kendo_react_common_2.validatePackage)(package_metadata_1.packageMetadata);
136
141
  _this.mouseOverHandler = new MouseOverHandler_1.MouseOverHandler(_this.props.openOnClick, _this.reset, _this.onItemMouseOver);
137
142
  _this.state = Object.assign({}, initialItemsIds, { isFirstRender: true });
138
143
  return _this;
@@ -148,7 +153,7 @@ var Menu = /** @class */ (function (_super) {
148
153
  }
149
154
  var lastItemIdToBeOpened = this.state.hoveredItemId ?
150
155
  this.state.hoveredItemId :
151
- this.state.focusedItemId ? itemsIdsUtils_1.getDirectParentId(this.state.focusedItemId) : itemsIdsUtils_1.EMPTY_ID;
156
+ this.state.focusedItemId ? (0, itemsIdsUtils_1.getDirectParentId)(this.state.focusedItemId) : itemsIdsUtils_1.EMPTY_ID;
152
157
  return (React.createElement("div", { onKeyDown: this.onKeyDown, style: this.props.style, className: this.getMenuWrapperClassName(), ref: function (el) { return _this.menuWrapperEl = el; } },
153
158
  React.createElement(MenuItemInternalsList_1.MenuItemInternalsList, { className: this.getMenuClassName(), "aria-orientation": this.props.vertical ? 'vertical' : undefined, items: this.items, isMenuVertical: this.props.vertical, isDirectionRightToLeft: this.directionHolder.getIsDirectionRightToLeft(), focusedItemId: this.state.focusedItemId, lastItemIdToBeOpened: lastItemIdToBeOpened, tabbableItemId: this.state.tabbableItemId, itemRender: this.props.itemRender, linkRender: this.props.linkRender, menuGuid: this.guid, onMouseLeave: this.onItemMouseLeave, onMouseOver: this.onItemMouseOver, onMouseDown: this.onItemMouseDown, onFocus: this.onItemFocus, onClick: this.onItemClick, onBlur: this.onItemBlur, onOriginalItemNeeded: this.getInputItem })));
154
159
  };
@@ -180,16 +185,16 @@ var Menu = /** @class */ (function (_super) {
180
185
  Menu.prototype.setFocusedItemId = function (focusedItemId) {
181
186
  this.setState(function (prevState) {
182
187
  var tabbableItemId = focusedItemId === itemsIdsUtils_1.EMPTY_ID ?
183
- prevState.tabbableItemId : itemsIdsUtils_1.getRootParentId(focusedItemId);
188
+ prevState.tabbableItemId : (0, itemsIdsUtils_1.getRootParentId)(focusedItemId);
184
189
  var hoveredItemId = focusedItemId === itemsIdsUtils_1.EMPTY_ID ||
185
- (itemsIdsUtils_1.isIdEmptyOrZeroLevel(prevState.hoveredItemId) && itemsIdsUtils_1.isIdEmptyOrZeroLevel(focusedItemId)) ?
190
+ ((0, itemsIdsUtils_1.isIdEmptyOrZeroLevel)(prevState.hoveredItemId) && (0, itemsIdsUtils_1.isIdEmptyOrZeroLevel)(focusedItemId)) ?
186
191
  prevState.hoveredItemId : itemsIdsUtils_1.EMPTY_ID;
187
192
  return { hoveredItemId: hoveredItemId, focusedItemId: focusedItemId, tabbableItemId: tabbableItemId };
188
193
  });
189
194
  };
190
195
  Menu.prototype.setHoveredItemId = function (hoveredItemId) {
191
196
  this.setState(function (prevState) {
192
- if (itemsIdsUtils_1.isIdEmptyOrZeroLevel(hoveredItemId) && itemsIdsUtils_1.isIdEmptyOrZeroLevel(prevState.focusedItemId)) {
197
+ if ((0, itemsIdsUtils_1.isIdEmptyOrZeroLevel)(hoveredItemId) && (0, itemsIdsUtils_1.isIdEmptyOrZeroLevel)(prevState.focusedItemId)) {
193
198
  return {
194
199
  hoveredItemId: hoveredItemId,
195
200
  focusedItemId: prevState.focusedItemId,
@@ -202,12 +207,12 @@ var Menu = /** @class */ (function (_super) {
202
207
  });
203
208
  };
204
209
  Menu.prototype.getMenuWrapperClassName = function () {
205
- return kendo_react_common_1.classNames({
210
+ return (0, kendo_react_common_1.classNames)({
206
211
  'k-rtl': this.directionHolder.getIsDirectionRightToLeft()
207
212
  }, this.props.className);
208
213
  };
209
214
  Menu.prototype.getMenuClassName = function () {
210
- return kendo_react_common_1.classNames('k-widget', 'k-reset', 'k-header', 'k-menu', { 'k-menu-horizontal': !this.props.vertical }, { 'k-menu-vertical': this.props.vertical });
215
+ return (0, kendo_react_common_1.classNames)('k-widget', 'k-reset', 'k-header', 'k-menu', { 'k-menu-horizontal': !this.props.vertical }, { 'k-menu-vertical': this.props.vertical });
211
216
  };
212
217
  Menu.prototype.clearItemHoverAndLeaveRequestsIfApplicable = function () {
213
218
  if (this.itemHoverRequest) {
@@ -227,12 +232,12 @@ var Menu = /** @class */ (function (_super) {
227
232
  this.menuWrapperEl && getComputedStyle(this.menuWrapperEl).direction === 'rtl';
228
233
  };
229
234
  Menu.prototype.prepareItems = function () {
230
- var _a = prepareInputItemsForInternalWork_1.prepareInputItemsForInternalWork(this.props.items, this.props.children), items = _a.items, inputItems = _a.inputItems;
235
+ var _a = (0, prepareInputItemsForInternalWork_1.prepareInputItemsForInternalWork)(this.props.items, this.props.children), items = _a.items, inputItems = _a.inputItems;
231
236
  this.items = items;
232
237
  this.inputItems = inputItems;
233
238
  };
234
239
  Menu.prototype.dispatchSelectEventIfWired = function (event, itemId) {
235
- kendo_react_common_1.dispatchEvent(this.props.onSelect, event, this, { item: this.getInputItem(itemId), itemId: itemId });
240
+ (0, kendo_react_common_1.dispatchEvent)(this.props.onSelect, event, this, { item: this.getInputItem(itemId), itemId: itemId });
236
241
  };
237
242
  /**
238
243
  * @hidden
@@ -25,5 +25,5 @@ export declare class MenuItem extends React.Component<MenuItemProps, {}> {
25
25
  /**
26
26
  * @hidden
27
27
  */
28
- render(): any;
28
+ render(): null;
29
29
  }
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
15
  };
14
16
  })();
15
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.MenuItem = void 0;
16
19
  var React = require("react");
17
20
  var PropTypes = require("prop-types");
18
21
  var MenuItem = /** @class */ (function (_super) {
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
15
  };
14
16
  })();
15
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.MenuItemArrow = exports.leftArrowClass = exports.rightArrowClass = exports.downArrowClass = void 0;
16
19
  var React = require("react");
17
20
  var PropTypes = require("prop-types");
18
21
  var kendo_react_common_1 = require("@progress/kendo-react-common");
@@ -43,8 +46,8 @@ var MenuItemArrow = /** @class */ (function (_super) {
43
46
  };
44
47
  MenuItemArrow.prototype.getArrowClassName = function () {
45
48
  var _a;
46
- var childrenPosition = misc_1.getChildrenPosition(this.props.itemId, this.props.verticalMenu === true, this.props.dir === 'rtl');
47
- return kendo_react_common_1.classNames('k-icon', (_a = {},
49
+ var childrenPosition = (0, misc_1.getChildrenPosition)(this.props.itemId, this.props.verticalMenu === true, this.props.dir === 'rtl');
50
+ return (0, kendo_react_common_1.classNames)('k-icon', (_a = {},
48
51
  _a[exports.downArrowClass] = childrenPosition === 'downward',
49
52
  _a[exports.rightArrowClass] = childrenPosition === 'rightward',
50
53
  _a[exports.leftArrowClass] = childrenPosition === 'leftward',
@@ -31,10 +31,10 @@ export declare class MenuItemInternal extends React.Component<MenuItemInternalPr
31
31
  private renderArrowIfApplicable;
32
32
  private onMouseOver;
33
33
  private onMouseLeave;
34
- private readonly itemRender;
35
- private readonly linkRender;
36
- private readonly contentRender;
37
- private readonly Opened;
34
+ private get itemRender();
35
+ private get linkRender();
36
+ private get contentRender();
37
+ private get Opened();
38
38
  private getPopupClassName;
39
39
  private getMenuItemClassName;
40
40
  }
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
15
  };
14
16
  })();
15
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.MenuItemInternal = void 0;
16
19
  var React = require("react");
17
20
  var kendo_react_common_1 = require("@progress/kendo-react-common");
18
21
  var kendo_react_popup_1 = require("@progress/kendo-react-popup");
@@ -74,7 +77,7 @@ var MenuItemInternal = /** @class */ (function (_super) {
74
77
  var item = this.props.item;
75
78
  var itemId = item.id;
76
79
  return (React.createElement(React.Fragment, null,
77
- React.createElement("li", { className: this.getMenuItemClassName(item), style: item.cssStyle, tabIndex: itemId === this.props.tabbableItemId ? 0 : -1, onMouseOver: this.onMouseOver, onMouseLeave: this.onMouseLeave, onMouseDown: function (event) { return _this.props.onMouseDown(event); }, onBlur: function () { return _this.props.onBlur(itemId); }, onFocus: function () { return _this.props.onFocus(itemId); }, onClick: function (event) { return _this.props.onClick(event, itemId); }, role: "menuitem", "aria-disabled": item.disabled ? true : undefined, "aria-haspopup": item.items.length > 0 ? true : undefined, "aria-expanded": item.items.length > 0 ? this.Opened : undefined, "aria-label": item.text, "aria-owns": this.Opened ? misc_1.getDOMElementId(this.props.menuGuid, itemId) : undefined, ref: function (el) { return _this.itemElement = el; }, key: "0" }, this.contentRender ? this.renderContent() : this.renderMenuItemLink()),
80
+ React.createElement("li", { className: this.getMenuItemClassName(item), style: item.cssStyle, tabIndex: itemId === this.props.tabbableItemId ? 0 : -1, onMouseOver: this.onMouseOver, onMouseLeave: this.onMouseLeave, onMouseDown: function (event) { return _this.props.onMouseDown(event); }, onBlur: function () { return _this.props.onBlur(itemId); }, onFocus: function () { return _this.props.onFocus(itemId); }, onClick: function (event) { return _this.props.onClick(event, itemId); }, role: "menuitem", "aria-disabled": item.disabled ? true : undefined, "aria-haspopup": item.items.length > 0 ? true : undefined, "aria-expanded": item.items.length > 0 ? this.Opened : undefined, "aria-label": item.text, "aria-owns": this.Opened ? (0, misc_1.getDOMElementId)(this.props.menuGuid, itemId) : undefined, ref: function (el) { return _this.itemElement = el; }, key: "0" }, this.contentRender ? this.renderContent() : this.renderMenuItemLink()),
78
81
  this.renderPopupIfOpened()));
79
82
  };
80
83
  MenuItemInternal.prototype.renderContent = function () {
@@ -85,7 +88,7 @@ var MenuItemInternal = /** @class */ (function (_super) {
85
88
  MenuItemInternal.prototype.renderMenuItemLink = function () {
86
89
  var item = this.props.item;
87
90
  if (this.linkRender) {
88
- return (React.createElement(this.linkRender, { item: this.props.onOriginalItemNeeded(item.id), itemId: item.id, opened: this.Opened, dir: misc_1.convertBoolDirectionToString(this.props.isDirectionRightToLeft) }));
91
+ return (React.createElement(this.linkRender, { item: this.props.onOriginalItemNeeded(item.id), itemId: item.id, opened: this.Opened, dir: (0, misc_1.convertBoolDirectionToString)(this.props.isDirectionRightToLeft) }));
89
92
  }
90
93
  else {
91
94
  var textOrItemRender = this.itemRender ?
@@ -100,7 +103,7 @@ var MenuItemInternal = /** @class */ (function (_super) {
100
103
  MenuItemInternal.prototype.renderPopupIfOpened = function () {
101
104
  if (this.Opened) {
102
105
  var itemId = this.props.item.id;
103
- var _a = misc_1.getPopupSettings(itemId, this.props.isMenuVertical, this.props.isDirectionRightToLeft), anchorAlign = _a.anchorAlign, popupAlign = _a.popupAlign, collision = _a.collision;
106
+ var _a = (0, misc_1.getPopupSettings)(itemId, this.props.isMenuVertical, this.props.isDirectionRightToLeft), anchorAlign = _a.anchorAlign, popupAlign = _a.popupAlign, collision = _a.collision;
104
107
  return (React.createElement(kendo_react_popup_1.Popup, { anchor: this.itemElement, show: true, popupClass: this.getPopupClassName(), anchorAlign: anchorAlign, popupAlign: popupAlign, collision: collision, animate: false, key: "1" },
105
108
  React.createElement(MenuItemInternalsList_1.MenuItemInternalsList, { parentItemId: itemId, items: this.props.item.items, menuGuid: this.props.menuGuid, focusedItemId: this.props.focusedItemId, lastItemIdToBeOpened: this.props.lastItemIdToBeOpened, tabbableItemId: this.props.tabbableItemId, itemRender: this.props.itemRender, linkRender: this.props.linkRender, isMenuVertical: this.props.isMenuVertical, isDirectionRightToLeft: this.props.isDirectionRightToLeft, className: "k-group k-menu-group k-reset", onMouseOver: this.props.onMouseOver, onMouseLeave: this.props.onMouseLeave, onMouseDown: this.props.onMouseDown, onBlur: this.props.onBlur, onFocus: this.props.onFocus, onClick: this.props.onClick, onOriginalItemNeeded: this.props.onOriginalItemNeeded })));
106
109
  }
@@ -110,51 +113,51 @@ var MenuItemInternal = /** @class */ (function (_super) {
110
113
  };
111
114
  MenuItemInternal.prototype.renderMenuIconIfApplicable = function () {
112
115
  return this.props.item.icon ?
113
- React.createElement("span", { className: "k-icon k-i-" + this.props.item.icon, role: "presentation", key: "0" }) : null;
116
+ React.createElement("span", { className: "k-icon k-i-".concat(this.props.item.icon), role: "presentation", key: "0" }) : null;
114
117
  };
115
118
  MenuItemInternal.prototype.renderArrowIfApplicable = function () {
116
119
  return this.props.item.items.length > 0 ?
117
- (React.createElement(MenuItemArrow_1.MenuItemArrow, { itemId: this.props.item.id, verticalMenu: this.props.isMenuVertical, dir: misc_1.convertBoolDirectionToString(this.props.isDirectionRightToLeft), key: "2" })) : null;
120
+ (React.createElement(MenuItemArrow_1.MenuItemArrow, { itemId: this.props.item.id, verticalMenu: this.props.isMenuVertical, dir: (0, misc_1.convertBoolDirectionToString)(this.props.isDirectionRightToLeft), key: "2" })) : null;
118
121
  };
119
122
  Object.defineProperty(MenuItemInternal.prototype, "itemRender", {
120
123
  get: function () {
121
124
  return this.props.item.render || this.props.itemRender;
122
125
  },
123
- enumerable: true,
126
+ enumerable: false,
124
127
  configurable: true
125
128
  });
126
129
  Object.defineProperty(MenuItemInternal.prototype, "linkRender", {
127
130
  get: function () {
128
131
  return this.props.item.linkRender || this.props.linkRender;
129
132
  },
130
- enumerable: true,
133
+ enumerable: false,
131
134
  configurable: true
132
135
  });
133
136
  Object.defineProperty(MenuItemInternal.prototype, "contentRender", {
134
137
  get: function () {
135
138
  return this.props.item.contentParentItemId ? this.props.item.contentRender : null;
136
139
  },
137
- enumerable: true,
140
+ enumerable: false,
138
141
  configurable: true
139
142
  });
140
143
  Object.defineProperty(MenuItemInternal.prototype, "Opened", {
141
144
  get: function () {
142
145
  var props = this.props;
143
146
  return props.item.items.length > 0 &&
144
- itemsIdsUtils_1.shouldOpenItem(props.item.id, props.lastItemIdToBeOpened) &&
147
+ (0, itemsIdsUtils_1.shouldOpenItem)(props.item.id, props.lastItemIdToBeOpened) &&
145
148
  // HACK: Wait for the second render because otherwise the scenario of
146
149
  // popup inside popup throws an error (for example, hover of item with id '0_0').
147
150
  !this.isFirstRender;
148
151
  },
149
- enumerable: true,
152
+ enumerable: false,
150
153
  configurable: true
151
154
  });
152
155
  MenuItemInternal.prototype.getPopupClassName = function () {
153
- return kendo_react_common_1.classNames('k-menu-popup', { 'k-rtl': this.props.isDirectionRightToLeft });
156
+ return (0, kendo_react_common_1.classNames)('k-menu-popup', { 'k-rtl': this.props.isDirectionRightToLeft });
154
157
  };
155
158
  MenuItemInternal.prototype.getMenuItemClassName = function (item) {
156
- return kendo_react_common_1.classNames('k-item', 'k-menu-item', {
157
- 'k-first': itemsIdsUtils_1.isFirstItemFromSiblings(item.id),
159
+ return (0, kendo_react_common_1.classNames)('k-item', 'k-menu-item', {
160
+ 'k-first': (0, itemsIdsUtils_1.isFirstItemFromSiblings)(item.id),
158
161
  'k-last': item.isLastFromSiblings,
159
162
  'k-disabled': item.disabled
160
163
  }, item.cssClass);
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
15
  };
14
16
  })();
15
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.MenuItemInternalsList = void 0;
16
19
  var React = require("react");
17
20
  var MenuItemInternal_1 = require("./MenuItemInternal");
18
21
  var misc_1 = require("./../utils/misc");
@@ -35,7 +38,7 @@ var MenuItemInternalsList = /** @class */ (function (_super) {
35
38
  }
36
39
  MenuItemInternalsList.prototype.render = function () {
37
40
  var parentItemId = this.props.parentItemId;
38
- return (React.createElement("ul", { className: this.props.className, role: parentItemId !== undefined ? 'menu' : 'menubar', id: parentItemId !== undefined ? misc_1.getDOMElementId(this.props.menuGuid, parentItemId) : undefined, onMouseOver: parentItemId !== undefined ? this.onMouseOver : undefined, onMouseLeave: parentItemId !== undefined ? this.onMouseLeave : undefined, "aria-orientation": this.props['aria-orientation'] }, this.renderChildItems()));
41
+ return (React.createElement("ul", { className: this.props.className, role: parentItemId !== undefined ? 'menu' : 'menubar', id: parentItemId !== undefined ? (0, misc_1.getDOMElementId)(this.props.menuGuid, parentItemId) : undefined, onMouseOver: parentItemId !== undefined ? this.onMouseOver : undefined, onMouseLeave: parentItemId !== undefined ? this.onMouseLeave : undefined, "aria-orientation": this.props['aria-orientation'] }, this.renderChildItems()));
39
42
  };
40
43
  MenuItemInternalsList.prototype.renderChildItems = function () {
41
44
  var _this = this;
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
15
  };
14
16
  })();
15
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.MenuItemLink = void 0;
16
19
  var React = require("react");
17
20
  var PropTypes = require("prop-types");
18
21
  var kendo_react_common_1 = require("@progress/kendo-react-common");
@@ -29,11 +32,11 @@ var MenuItemLink = /** @class */ (function (_super) {
29
32
  return (React.createElement("a", { className: this.getMenuItemClassName(), role: "presentation", href: this.props.url, tabIndex: -1 }, this.props.children));
30
33
  }
31
34
  else {
32
- return (React.createElement("span", { id: this.props.id, className: kendo_react_common_1.classNames(this.getMenuItemClassName(), this.props.className), style: this.props.style, role: "presentation" }, this.props.children));
35
+ return (React.createElement("span", { id: this.props.id, className: (0, kendo_react_common_1.classNames)(this.getMenuItemClassName(), this.props.className), style: this.props.style, role: "presentation" }, this.props.children));
33
36
  }
34
37
  };
35
38
  MenuItemLink.prototype.getMenuItemClassName = function () {
36
- return kendo_react_common_1.classNames('k-link', 'k-menu-link', {
39
+ return (0, kendo_react_common_1.classNames)('k-link', 'k-menu-link', {
37
40
  'k-active': this.props.opened
38
41
  });
39
42
  };
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.POPUP_SETTINGS = exports.POPUP_SETTINGS_RTL = void 0;
3
4
  /**
4
5
  * @hidden
5
6
  */
@@ -43,4 +43,8 @@ export interface BaseMenuItem {
43
43
  * Represents any additional data that is associated with the Menu item.
44
44
  */
45
45
  data?: any;
46
+ /**
47
+ * @hidden
48
+ */
49
+ children?: React.ReactNode;
46
50
  }
@@ -5,7 +5,7 @@ export declare class DirectionHolder {
5
5
  private phase;
6
6
  private previousIsDirectionRightToLeft?;
7
7
  private isDirectionRightToLeft?;
8
- getIsDirectionRightToLeft(): boolean;
8
+ getIsDirectionRightToLeft(): boolean | undefined;
9
9
  setIsDirectionRightToLeft(value: boolean): void;
10
10
  hasDirectionChanged(): boolean;
11
11
  }
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DirectionHolder = void 0;
3
4
  /**
4
5
  * @hidden
5
6
  */
@@ -8,9 +8,9 @@ export declare class MouseOverHandler {
8
8
  private isMouseOverEnabled;
9
9
  private mouseDown;
10
10
  constructor(openOnClick: boolean | undefined, resetMenu: any, openItem: any);
11
- OpenOnClick: boolean | undefined;
11
+ set OpenOnClick(value: boolean | undefined);
12
12
  handleItemSelectedViaKeyboard(): void;
13
- readonly IsMouseOverEnabled: boolean;
13
+ get IsMouseOverEnabled(): boolean;
14
14
  handleItemMouseDown(): void;
15
15
  handleItemFocus(): void;
16
16
  handleItemClick(itemId: string, clickedItemIsWithDefaultClose: boolean): void;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MouseOverHandler = void 0;
3
4
  /**
4
5
  * @hidden
5
6
  */
@@ -8,6 +9,7 @@ var MouseOverHandler = /** @class */ (function () {
8
9
  this.openOnClick = openOnClick;
9
10
  this.resetMenu = resetMenu;
10
11
  this.openItem = openItem;
12
+ this.mouseDown = false;
11
13
  this.openOnClick = openOnClick;
12
14
  this.isMouseOverEnabled = openOnClick ? false : true;
13
15
  }
@@ -19,7 +21,7 @@ var MouseOverHandler = /** @class */ (function () {
19
21
  }
20
22
  this.openOnClick = value;
21
23
  },
22
- enumerable: true,
24
+ enumerable: false,
23
25
  configurable: true
24
26
  });
25
27
  MouseOverHandler.prototype.handleItemSelectedViaKeyboard = function () {
@@ -32,7 +34,7 @@ var MouseOverHandler = /** @class */ (function () {
32
34
  get: function () {
33
35
  return this.isMouseOverEnabled;
34
36
  },
35
- enumerable: true,
37
+ enumerable: false,
36
38
  configurable: true
37
39
  });
38
40
  MouseOverHandler.prototype.handleItemMouseDown = function () {
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getNewItemIdUponKeyboardNavigation = void 0;
3
4
  var kendo_react_common_1 = require("@progress/kendo-react-common");
4
5
  var itemsIdsUtils_1 = require("./itemsIdsUtils");
5
6
  var NO_WHITESPACE_REGEX = /\S/;
@@ -54,7 +55,7 @@ function getNewItemIdUponKeyboardNavigation(sourceItems, sourceItemId, keyCode,
54
55
  return getNextSiblingId();
55
56
  }
56
57
  else {
57
- if (itemsIdsUtils_1.isIdZeroLevel(sourceItemId)) {
58
+ if ((0, itemsIdsUtils_1.isIdZeroLevel)(sourceItemId)) {
58
59
  return getFirstChildIdForEnabledItemOrGetSameId();
59
60
  }
60
61
  else {
@@ -67,7 +68,7 @@ function getNewItemIdUponKeyboardNavigation(sourceItems, sourceItemId, keyCode,
67
68
  return getPrevSiblingId();
68
69
  }
69
70
  else {
70
- if (itemsIdsUtils_1.isIdZeroLevel(sourceItemId)) {
71
+ if ((0, itemsIdsUtils_1.isIdZeroLevel)(sourceItemId)) {
71
72
  return getLastChildIdForEnabledItemOrGetSameId();
72
73
  }
73
74
  else {
@@ -80,7 +81,7 @@ function getNewItemIdUponKeyboardNavigation(sourceItems, sourceItemId, keyCode,
80
81
  return sourceItemId;
81
82
  }
82
83
  else {
83
- return hasChildren() ? itemsIdsUtils_1.getFirstChildId(sourceItemId) : itemsIdsUtils_1.getRootParentId(sourceItemId);
84
+ return hasChildren() ? (0, itemsIdsUtils_1.getFirstChildId)(sourceItemId) : (0, itemsIdsUtils_1.getRootParentId)(sourceItemId);
84
85
  }
85
86
  }
86
87
  function getIdUponHomeKey() {
@@ -91,12 +92,12 @@ function getNewItemIdUponKeyboardNavigation(sourceItems, sourceItemId, keyCode,
91
92
  return siblings[siblings.length - 1].id;
92
93
  }
93
94
  function getIdUponEscKey() {
94
- return itemsIdsUtils_1.isIdZeroLevel(sourceItemId) ? sourceItemId : itemsIdsUtils_1.getDirectParentId(sourceItemId);
95
+ return (0, itemsIdsUtils_1.isIdZeroLevel)(sourceItemId) ? sourceItemId : (0, itemsIdsUtils_1.getDirectParentId)(sourceItemId);
95
96
  }
96
97
  function getIdUponSearchByChar() {
97
98
  var searchChar = key.toLowerCase();
98
99
  var siblings = getSiblings();
99
- var currentItemIndex = Number(itemsIdsUtils_1.getShortId(sourceItemId));
100
+ var currentItemIndex = Number((0, itemsIdsUtils_1.getShortId)(sourceItemId));
100
101
  var itemsToSearch = siblings.slice(currentItemIndex + 1).concat(siblings.slice(0, currentItemIndex + 1));
101
102
  var matchedSibling = itemsToSearch.find(function (item) {
102
103
  return (item.text || '').toLowerCase().startsWith(searchChar);
@@ -105,37 +106,37 @@ function getNewItemIdUponKeyboardNavigation(sourceItems, sourceItemId, keyCode,
105
106
  }
106
107
  // #region Left Key Internals
107
108
  function getIdUponLeftKeyForHorizontalMenu() {
108
- if (itemsIdsUtils_1.isIdZeroLevel(sourceItemId)) {
109
+ if ((0, itemsIdsUtils_1.isIdZeroLevel)(sourceItemId)) {
109
110
  return getPrevSiblingId();
110
111
  }
111
- else if (itemsIdsUtils_1.isIdFirstLevel(sourceItemId)) {
112
- return getFirstChildIdForEnabledItemOrGetSameId(getPrevSiblingId(itemsIdsUtils_1.getRootParentId(sourceItemId)));
112
+ else if ((0, itemsIdsUtils_1.isIdFirstLevel)(sourceItemId)) {
113
+ return getFirstChildIdForEnabledItemOrGetSameId(getPrevSiblingId((0, itemsIdsUtils_1.getRootParentId)(sourceItemId)));
113
114
  }
114
115
  else {
115
- return itemsIdsUtils_1.getDirectParentId(sourceItemId);
116
+ return (0, itemsIdsUtils_1.getDirectParentId)(sourceItemId);
116
117
  }
117
118
  }
118
119
  function getIdUponLeftKeyForVerticalMenu() {
119
- if (itemsIdsUtils_1.isIdZeroLevel(sourceItemId)) {
120
+ if ((0, itemsIdsUtils_1.isIdZeroLevel)(sourceItemId)) {
120
121
  return getLastChildIdForEnabledItemOrGetSameId();
121
122
  }
122
123
  else {
123
- return itemsIdsUtils_1.getDirectParentId(sourceItemId);
124
+ return (0, itemsIdsUtils_1.getDirectParentId)(sourceItemId);
124
125
  }
125
126
  }
126
127
  // #endregion
127
128
  // #region Right Key Internals
128
129
  function getIdUponRightKeyForHorizontalMenu() {
129
- if (itemsIdsUtils_1.isIdZeroLevel(sourceItemId)) {
130
+ if ((0, itemsIdsUtils_1.isIdZeroLevel)(sourceItemId)) {
130
131
  return getNextSiblingId();
131
132
  }
132
133
  else {
133
- return getFirstChildIdForEnabledItemOrGetSameId(hasChildren() ? sourceItemId : getNextSiblingId(itemsIdsUtils_1.getRootParentId(sourceItemId)));
134
+ return getFirstChildIdForEnabledItemOrGetSameId(hasChildren() ? sourceItemId : getNextSiblingId((0, itemsIdsUtils_1.getRootParentId)(sourceItemId)));
134
135
  }
135
136
  }
136
137
  function getIdUponRightKeyForVerticalMenu() {
137
- return getFirstChildIdForEnabledItemOrGetSameId(itemsIdsUtils_1.isIdZeroLevel(sourceItemId) || hasChildren() ?
138
- sourceItemId : getNextSiblingId(itemsIdsUtils_1.getRootParentId(sourceItemId)));
138
+ return getFirstChildIdForEnabledItemOrGetSameId((0, itemsIdsUtils_1.isIdZeroLevel)(sourceItemId) || hasChildren() ?
139
+ sourceItemId : getNextSiblingId((0, itemsIdsUtils_1.getRootParentId)(sourceItemId)));
139
140
  }
140
141
  // #endregion
141
142
  // #region Utils
@@ -155,7 +156,7 @@ function getNewItemIdUponKeyboardNavigation(sourceItems, sourceItemId, keyCode,
155
156
  if (items === undefined) {
156
157
  items = sourceItems;
157
158
  }
158
- return itemsIdsUtils_1.getItemById(itemId, items);
159
+ return (0, itemsIdsUtils_1.getItemById)(itemId, items);
159
160
  }
160
161
  function hasChildren(itemId) {
161
162
  return getItemById(itemId).items.length > 0;
@@ -171,8 +172,8 @@ function getNewItemIdUponKeyboardNavigation(sourceItems, sourceItemId, keyCode,
171
172
  return itemChildren[itemChildren.length - 1].id;
172
173
  }
173
174
  function getSiblings() {
174
- return itemsIdsUtils_1.isIdZeroLevel(sourceItemId) ?
175
- sourceItems : getItemById(itemsIdsUtils_1.getDirectParentId(sourceItemId), sourceItems).items;
175
+ return (0, itemsIdsUtils_1.isIdZeroLevel)(sourceItemId) ?
176
+ sourceItems : getItemById((0, itemsIdsUtils_1.getDirectParentId)(sourceItemId), sourceItems).items;
176
177
  }
177
178
  function getFirstOrLastChildIdForEnabledItemOrGetSameId(getFirstChild, itemId) {
178
179
  if (itemId === undefined) {
@@ -180,7 +181,7 @@ function getNewItemIdUponKeyboardNavigation(sourceItems, sourceItemId, keyCode,
180
181
  }
181
182
  var item = getItemById(itemId);
182
183
  if (hasChildren(itemId) && !item.disabled) {
183
- return getFirstChild ? itemsIdsUtils_1.getFirstChildId(itemId) : getLastChildId(itemId);
184
+ return getFirstChild ? (0, itemsIdsUtils_1.getFirstChildId)(itemId) : getLastChildId(itemId);
184
185
  }
185
186
  else {
186
187
  return itemId;
@@ -190,14 +191,14 @@ function getNewItemIdUponKeyboardNavigation(sourceItems, sourceItemId, keyCode,
190
191
  if (itemId === undefined) {
191
192
  itemId = sourceItemId;
192
193
  }
193
- if (itemsIdsUtils_1.isIdZeroLevel(itemId)) {
194
- return itemsIdsUtils_1.getDirectSiblingIdForLevelZero(next, itemId, sourceItems.length);
194
+ if ((0, itemsIdsUtils_1.isIdZeroLevel)(itemId)) {
195
+ return (0, itemsIdsUtils_1.getDirectSiblingIdForLevelZero)(next, itemId, sourceItems.length);
195
196
  }
196
197
  else {
197
- var directParentId = itemsIdsUtils_1.getDirectParentId(itemId);
198
- var shortId = itemsIdsUtils_1.getShortId(itemId);
198
+ var directParentId = (0, itemsIdsUtils_1.getDirectParentId)(itemId);
199
+ var shortId = (0, itemsIdsUtils_1.getShortId)(itemId);
199
200
  var siblingsCount = getItemById(directParentId).items.length;
200
- return itemsIdsUtils_1.createId(itemsIdsUtils_1.getDirectSiblingIdForLevelZero(next, shortId, siblingsCount), directParentId);
201
+ return (0, itemsIdsUtils_1.createId)((0, itemsIdsUtils_1.getDirectSiblingIdForLevelZero)(next, shortId, siblingsCount), directParentId);
201
202
  }
202
203
  }
203
204
  // #endregion
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getHoverCloseDelay = exports.getHoverOpenDelay = void 0;
3
4
  /**
4
5
  * @hidden
5
6
  */