@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.
- package/dist/cdn/js/kendo-react-layout.js +1 -1
- package/dist/es/appbar/AppBar.d.ts +1 -1
- package/dist/es/appbar/AppBarSection.d.ts +1 -1
- package/dist/es/appbar/AppBarSpacer.d.ts +1 -1
- package/dist/es/appbar/interfaces/AppBarProps.js +1 -0
- package/dist/es/appbar/interfaces/AppBarSectionProps.js +1 -0
- package/dist/es/appbar/interfaces/AppBarSpacerProps.d.ts +4 -0
- package/dist/es/appbar/interfaces/AppBarSpacerProps.js +1 -0
- package/dist/es/bottomnavigation/BottomNavigation.d.ts +1 -1
- package/dist/es/bottomnavigation/BottomNavigation.js +1 -1
- package/dist/es/bottomnavigation/BottomNavigationItem.d.ts +1 -1
- package/dist/es/bottomnavigation/BottomNavigationItem.js +1 -1
- package/dist/es/bottomnavigation/BottomNavigationItemProps.js +1 -0
- package/dist/es/bottomnavigation/BottomNavigationProps.js +1 -0
- package/dist/es/bottomnavigation/models/events.js +1 -0
- package/dist/es/bottomnavigation/models/utils.d.ts +16 -16
- package/dist/es/breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/es/breadcrumb/BreadcrumbDelimiter.d.ts +1 -1
- package/dist/es/breadcrumb/BreadcrumbDelimiter.js +0 -1
- package/dist/es/breadcrumb/BreadcrumbLink.d.ts +1 -1
- package/dist/es/breadcrumb/BreadcrumbListItem.d.ts +1 -1
- package/dist/es/breadcrumb/BreadcrumbListItem.js +0 -1
- package/dist/es/breadcrumb/BreadcrumbOrderedList.d.ts +1 -1
- package/dist/es/breadcrumb/BreadcrumbOrderedList.js +0 -1
- package/dist/es/card/Avatar.js +5 -5
- package/dist/es/card/Card.d.ts +1 -1
- package/dist/es/card/Card.js +6 -5
- package/dist/es/card/CardActions.js +1 -1
- package/dist/es/card/interfaces/AvatarProps.js +1 -0
- package/dist/es/card/interfaces/CardActionsProps.js +1 -0
- package/dist/es/card/interfaces/CardBodyProps.js +1 -0
- package/dist/es/card/interfaces/CardFooterProps.js +1 -0
- package/dist/es/card/interfaces/CardHandle.js +1 -0
- package/dist/es/card/interfaces/CardHeaderProps.js +1 -0
- package/dist/es/card/interfaces/CardImageProps.js +1 -0
- package/dist/es/card/interfaces/CardProps.js +1 -0
- package/dist/es/card/interfaces/CardSubtitleProps.js +1 -0
- package/dist/es/card/interfaces/CardTitleProps.js +1 -0
- package/dist/es/drawer/Drawer.d.ts +1 -1
- package/dist/es/drawer/Drawer.js +9 -4
- package/dist/es/drawer/DrawerContent.d.ts +1 -1
- package/dist/es/drawer/DrawerItem.d.ts +1 -1
- package/dist/es/drawer/DrawerItem.js +6 -4
- package/dist/es/drawer/DrawerNavigation.d.ts +1 -1
- package/dist/es/drawer/DrawerNavigation.js +2 -2
- package/dist/es/drawer/context/DrawerContext.d.ts +1 -1
- package/dist/es/drawer/interfaces/DrawerAnimation.js +1 -0
- package/dist/es/drawer/interfaces/DrawerContentProps.js +1 -0
- package/dist/es/drawer/interfaces/DrawerItemHandle.js +1 -0
- package/dist/es/drawer/interfaces/DrawerItemProps.d.ts +1 -1
- package/dist/es/drawer/interfaces/DrawerItemProps.js +1 -0
- package/dist/es/drawer/interfaces/DrawerNavigationProps.js +1 -0
- package/dist/es/drawer/interfaces/DrawerProps.js +1 -0
- package/dist/es/drawer/interfaces/DrawerSelectEvent.js +1 -0
- package/dist/es/expansionpanel/ExpansionPanel.d.ts +1 -1
- package/dist/es/expansionpanel/index.js +1 -0
- package/dist/es/expansionpanel/interfaces.js +1 -0
- package/dist/es/gridlayout/GridLayout.d.ts +1 -1
- package/dist/es/gridlayout/GridLayout.js +3 -3
- package/dist/es/gridlayout/GridLayoutItem.d.ts +1 -1
- package/dist/es/gridlayout/GridLayoutItem.js +1 -1
- package/dist/es/gridlayout/interfaces/GridLayoutColumnProps.js +1 -0
- package/dist/es/gridlayout/interfaces/GridLayoutItemProps.js +1 -0
- package/dist/es/gridlayout/interfaces/GridLayoutProps.js +1 -0
- package/dist/es/gridlayout/interfaces/GridLayoutRowProps.js +1 -0
- package/dist/es/main.js +37 -0
- package/dist/es/menu/BaseMenuItemInternalProps.js +1 -0
- package/dist/es/menu/MenuProps.js +1 -0
- package/dist/es/menu/components/Menu.d.ts +2 -2
- package/dist/es/menu/components/Menu.js +5 -1
- package/dist/es/menu/components/MenuItem.d.ts +1 -1
- package/dist/es/menu/components/MenuItem.js +3 -1
- package/dist/es/menu/components/MenuItemArrow.js +3 -1
- package/dist/es/menu/components/MenuItemInternal.d.ts +4 -4
- package/dist/es/menu/components/MenuItemInternal.js +8 -6
- package/dist/es/menu/components/MenuItemInternalsList.js +3 -1
- package/dist/es/menu/components/MenuItemLink.js +3 -1
- package/dist/es/menu/events.js +1 -0
- package/dist/es/menu/models/BaseMenuItem.d.ts +4 -0
- package/dist/es/menu/models/BaseMenuItem.js +1 -0
- package/dist/es/menu/models/MenuItemModel.js +1 -0
- package/dist/es/menu/utils/DirectionHolder.d.ts +1 -1
- package/dist/es/menu/utils/MouseOverHandler.d.ts +2 -2
- package/dist/es/menu/utils/MouseOverHandler.js +3 -2
- package/dist/es/menu/utils/misc.js +1 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/panelbar/PanelBar.d.ts +6 -6
- package/dist/es/panelbar/PanelBar.js +19 -8
- package/dist/es/panelbar/PanelBarItem.js +6 -4
- package/dist/es/panelbar/interfaces/PanelBarItemClickEventArguments.js +1 -0
- package/dist/es/panelbar/interfaces/PanelBarItemProps.js +1 -0
- package/dist/es/panelbar/interfaces/PanelBarProps.js +1 -0
- package/dist/es/panelbar/interfaces/PanelBarSelectEventArguments.js +1 -0
- package/dist/es/panelbar/interfaces/RenderPanelBarItem.js +1 -0
- package/dist/es/panelbar/util.js +14 -5
- package/dist/es/splitter/Splitter.d.ts +5 -5
- package/dist/es/splitter/Splitter.js +20 -17
- package/dist/es/splitter/SplitterBar.d.ts +3 -3
- package/dist/es/splitter/SplitterBar.js +8 -5
- package/dist/es/splitter/SplitterPane.js +3 -1
- package/dist/es/stacklayout/StackLayout.d.ts +1 -1
- package/dist/es/stacklayout/StackLayout.js +1 -1
- package/dist/es/stacklayout/StackLayoutProps.js +1 -0
- package/dist/es/stepper/Step.d.ts +1 -1
- package/dist/es/stepper/Step.js +8 -6
- package/dist/es/stepper/Stepper.d.ts +1 -1
- package/dist/es/stepper/Stepper.js +4 -1
- package/dist/es/stepper/interfaces/StepChangeEvent.js +1 -0
- package/dist/es/stepper/interfaces/StepFocusEvent.js +1 -0
- package/dist/es/stepper/interfaces/StepHandle.js +1 -0
- package/dist/es/stepper/interfaces/StepProps.js +1 -0
- package/dist/es/stepper/interfaces/StepperChangeEvent.js +1 -0
- package/dist/es/stepper/interfaces/StepperFocusEvent.js +1 -0
- package/dist/es/stepper/interfaces/StepperHandle.js +1 -0
- package/dist/es/stepper/interfaces/StepperOnNavigateEvent.js +1 -0
- package/dist/es/stepper/interfaces/StepperProps.js +1 -0
- package/dist/es/stepper/messages/index.d.ts +1 -1
- package/dist/es/tabstrip/TabStrip.js +4 -2
- package/dist/es/tabstrip/TabStripContent.d.ts +5 -1
- package/dist/es/tabstrip/TabStripContent.js +4 -2
- package/dist/es/tabstrip/TabStripNavigation.d.ts +1 -1
- package/dist/es/tabstrip/TabStripNavigation.js +3 -1
- package/dist/es/tabstrip/TabStripNavigationItem.js +3 -1
- package/dist/es/tabstrip/TabStripTab.d.ts +6 -2
- package/dist/es/tabstrip/TabStripTab.js +9 -1
- package/dist/es/tilelayout/InternalTile.d.ts +4 -3
- package/dist/es/tilelayout/InternalTile.js +12 -10
- package/dist/es/tilelayout/ResizeHandlers.d.ts +1 -1
- package/dist/es/tilelayout/ResizeHandlers.js +3 -1
- package/dist/es/tilelayout/TileLayout.d.ts +2 -2
- package/dist/es/tilelayout/TileLayout.js +6 -4
- package/dist/es/tilelayout/interfaces/main.js +1 -0
- package/dist/npm/appbar/AppBar.d.ts +1 -1
- package/dist/npm/appbar/AppBar.js +5 -4
- package/dist/npm/appbar/AppBarSection.d.ts +1 -1
- package/dist/npm/appbar/AppBarSection.js +3 -2
- package/dist/npm/appbar/AppBarSpacer.d.ts +1 -1
- package/dist/npm/appbar/AppBarSpacer.js +3 -2
- package/dist/npm/appbar/interfaces/AppBarSpacerProps.d.ts +4 -0
- package/dist/npm/bottomnavigation/BottomNavigation.d.ts +1 -1
- package/dist/npm/bottomnavigation/BottomNavigation.js +9 -8
- package/dist/npm/bottomnavigation/BottomNavigationItem.d.ts +1 -1
- package/dist/npm/bottomnavigation/BottomNavigationItem.js +4 -3
- package/dist/npm/bottomnavigation/models/utils.d.ts +16 -16
- package/dist/npm/bottomnavigation/models/utils.js +1 -0
- package/dist/npm/breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/npm/breadcrumb/Breadcrumb.js +6 -5
- package/dist/npm/breadcrumb/BreadcrumbDelimiter.d.ts +1 -1
- package/dist/npm/breadcrumb/BreadcrumbDelimiter.js +3 -3
- package/dist/npm/breadcrumb/BreadcrumbLink.d.ts +1 -1
- package/dist/npm/breadcrumb/BreadcrumbLink.js +6 -5
- package/dist/npm/breadcrumb/BreadcrumbListItem.d.ts +1 -1
- package/dist/npm/breadcrumb/BreadcrumbListItem.js +3 -3
- package/dist/npm/breadcrumb/BreadcrumbOrderedList.d.ts +1 -1
- package/dist/npm/breadcrumb/BreadcrumbOrderedList.js +3 -3
- package/dist/npm/card/Avatar.js +10 -8
- package/dist/npm/card/Card.d.ts +1 -1
- package/dist/npm/card/Card.js +8 -6
- package/dist/npm/card/CardActions.js +4 -2
- package/dist/npm/card/CardBody.js +4 -2
- package/dist/npm/card/CardFooter.js +4 -2
- package/dist/npm/card/CardHeader.js +4 -2
- package/dist/npm/card/CardImage.js +4 -2
- package/dist/npm/card/CardSubtitle.js +4 -2
- package/dist/npm/card/CardTitle.js +4 -2
- package/dist/npm/card/interfaces/Enums.js +1 -0
- package/dist/npm/drawer/Drawer.d.ts +1 -1
- package/dist/npm/drawer/Drawer.js +13 -7
- package/dist/npm/drawer/DrawerContent.d.ts +1 -1
- package/dist/npm/drawer/DrawerContent.js +2 -1
- package/dist/npm/drawer/DrawerItem.d.ts +1 -1
- package/dist/npm/drawer/DrawerItem.js +9 -6
- package/dist/npm/drawer/DrawerNavigation.d.ts +1 -1
- package/dist/npm/drawer/DrawerNavigation.js +4 -3
- package/dist/npm/drawer/context/DrawerContext.d.ts +1 -1
- package/dist/npm/drawer/context/DrawerContext.js +1 -0
- package/dist/npm/drawer/interfaces/DrawerItemProps.d.ts +1 -1
- package/dist/npm/expansionpanel/ExpansionPanel.d.ts +1 -1
- package/dist/npm/expansionpanel/ExpansionPanel.js +8 -7
- package/dist/npm/expansionpanel/ExpansionPanelContent.js +2 -1
- package/dist/npm/expansionpanel/index.js +17 -5
- package/dist/npm/gridlayout/GridLayout.d.ts +1 -1
- package/dist/npm/gridlayout/GridLayout.js +7 -6
- package/dist/npm/gridlayout/GridLayoutItem.d.ts +1 -1
- package/dist/npm/gridlayout/GridLayoutItem.js +4 -3
- package/dist/npm/main.js +95 -47
- package/dist/npm/menu/components/Menu.d.ts +2 -2
- package/dist/npm/menu/components/Menu.js +22 -17
- package/dist/npm/menu/components/MenuItem.d.ts +1 -1
- package/dist/npm/menu/components/MenuItem.js +4 -1
- package/dist/npm/menu/components/MenuItemArrow.js +6 -3
- package/dist/npm/menu/components/MenuItemInternal.d.ts +4 -4
- package/dist/npm/menu/components/MenuItemInternal.js +17 -14
- package/dist/npm/menu/components/MenuItemInternalsList.js +5 -2
- package/dist/npm/menu/components/MenuItemLink.js +6 -3
- package/dist/npm/menu/consts.js +1 -0
- package/dist/npm/menu/models/BaseMenuItem.d.ts +4 -0
- package/dist/npm/menu/utils/DirectionHolder.d.ts +1 -1
- package/dist/npm/menu/utils/DirectionHolder.js +1 -0
- package/dist/npm/menu/utils/MouseOverHandler.d.ts +2 -2
- package/dist/npm/menu/utils/MouseOverHandler.js +4 -2
- package/dist/npm/menu/utils/getNewItemIdUponKeyboardNavigation.js +25 -24
- package/dist/npm/menu/utils/hoverDelay.js +1 -0
- package/dist/npm/menu/utils/itemsIdsUtils.js +1 -0
- package/dist/npm/menu/utils/misc.js +3 -2
- package/dist/npm/menu/utils/prepareInputItemsForInternalWork.js +3 -2
- package/dist/npm/package-metadata.js +2 -1
- package/dist/npm/panelbar/PanelBar.d.ts +6 -6
- package/dist/npm/panelbar/PanelBar.js +28 -16
- package/dist/npm/panelbar/PanelBarItem.js +11 -8
- package/dist/npm/panelbar/interfaces/NavigationAction.js +1 -0
- package/dist/npm/panelbar/util.js +26 -11
- package/dist/npm/splitter/Splitter.d.ts +5 -5
- package/dist/npm/splitter/Splitter.js +22 -18
- package/dist/npm/splitter/SplitterBar.d.ts +3 -3
- package/dist/npm/splitter/SplitterBar.js +12 -8
- package/dist/npm/splitter/SplitterPane.js +5 -2
- package/dist/npm/stacklayout/StackLayout.d.ts +1 -1
- package/dist/npm/stacklayout/StackLayout.js +5 -4
- package/dist/npm/stepper/Step.d.ts +1 -1
- package/dist/npm/stepper/Step.js +14 -11
- package/dist/npm/stepper/Stepper.d.ts +1 -1
- package/dist/npm/stepper/Stepper.js +12 -8
- package/dist/npm/stepper/contants.js +1 -0
- package/dist/npm/stepper/context/StepperContext.js +1 -0
- package/dist/npm/stepper/interfaces/StepperOnNavigateEvent.js +2 -0
- package/dist/npm/stepper/messages/index.d.ts +1 -1
- package/dist/npm/stepper/messages/index.js +2 -1
- package/dist/npm/tabstrip/TabStrip.js +7 -4
- package/dist/npm/tabstrip/TabStripContent.d.ts +5 -1
- package/dist/npm/tabstrip/TabStripContent.js +7 -4
- package/dist/npm/tabstrip/TabStripNavigation.d.ts +1 -1
- package/dist/npm/tabstrip/TabStripNavigation.js +6 -3
- package/dist/npm/tabstrip/TabStripNavigationItem.js +5 -2
- package/dist/npm/tabstrip/TabStripTab.d.ts +6 -2
- package/dist/npm/tabstrip/TabStripTab.js +10 -1
- package/dist/npm/tilelayout/InternalTile.d.ts +4 -3
- package/dist/npm/tilelayout/InternalTile.js +14 -11
- package/dist/npm/tilelayout/ResizeHandlers.d.ts +1 -1
- package/dist/npm/tilelayout/ResizeHandlers.js +4 -1
- package/dist/npm/tilelayout/TileLayout.d.ts +2 -2
- package/dist/npm/tilelayout/TileLayout.js +10 -7
- package/dist/systemjs/kendo-react-layout.js +1 -1
- package/package.json +14 -14
|
@@ -38,7 +38,7 @@ export declare class Menu extends React.Component<MenuProps, MenuState> {
|
|
|
38
38
|
*/
|
|
39
39
|
static propTypes: {
|
|
40
40
|
vertical: PropTypes.Requireable<boolean>;
|
|
41
|
-
items: PropTypes.Requireable<object[]>;
|
|
41
|
+
items: PropTypes.Requireable<(object | null)[]>;
|
|
42
42
|
style: PropTypes.Requireable<object>;
|
|
43
43
|
dir: PropTypes.Requireable<string>;
|
|
44
44
|
hoverOpenDelay: PropTypes.Requireable<number>;
|
|
@@ -46,7 +46,7 @@ export declare class Menu extends React.Component<MenuProps, MenuState> {
|
|
|
46
46
|
openOnClick: PropTypes.Requireable<boolean>;
|
|
47
47
|
itemRender: PropTypes.Requireable<any>;
|
|
48
48
|
linkRender: PropTypes.Requireable<any>;
|
|
49
|
-
customCloseItemIds: PropTypes.Requireable<string[]>;
|
|
49
|
+
customCloseItemIds: PropTypes.Requireable<(string | null)[]>;
|
|
50
50
|
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
51
51
|
};
|
|
52
52
|
/**
|
|
@@ -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 (
|
|
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 __());
|
|
@@ -56,6 +58,8 @@ var Menu = /** @class */ (function (_super) {
|
|
|
56
58
|
var _this = _super.call(this, props) || this;
|
|
57
59
|
_this.guid = guid();
|
|
58
60
|
_this.directionHolder = new DirectionHolder();
|
|
61
|
+
_this.inputItems = [];
|
|
62
|
+
_this.items = [];
|
|
59
63
|
/**
|
|
60
64
|
* Resets the selection and opening of Menu items.
|
|
61
65
|
*/
|
|
@@ -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 (
|
|
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 (
|
|
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 __());
|
|
@@ -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
|
|
35
|
-
private
|
|
36
|
-
private
|
|
37
|
-
private
|
|
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
|
}
|
|
@@ -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 (
|
|
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 __());
|
|
@@ -108,7 +110,7 @@ var MenuItemInternal = /** @class */ (function (_super) {
|
|
|
108
110
|
};
|
|
109
111
|
MenuItemInternal.prototype.renderMenuIconIfApplicable = function () {
|
|
110
112
|
return this.props.item.icon ?
|
|
111
|
-
React.createElement("span", { className: "k-icon k-i-"
|
|
113
|
+
React.createElement("span", { className: "k-icon k-i-".concat(this.props.item.icon), role: "presentation", key: "0" }) : null;
|
|
112
114
|
};
|
|
113
115
|
MenuItemInternal.prototype.renderArrowIfApplicable = function () {
|
|
114
116
|
return this.props.item.items.length > 0 ?
|
|
@@ -118,21 +120,21 @@ var MenuItemInternal = /** @class */ (function (_super) {
|
|
|
118
120
|
get: function () {
|
|
119
121
|
return this.props.item.render || this.props.itemRender;
|
|
120
122
|
},
|
|
121
|
-
enumerable:
|
|
123
|
+
enumerable: false,
|
|
122
124
|
configurable: true
|
|
123
125
|
});
|
|
124
126
|
Object.defineProperty(MenuItemInternal.prototype, "linkRender", {
|
|
125
127
|
get: function () {
|
|
126
128
|
return this.props.item.linkRender || this.props.linkRender;
|
|
127
129
|
},
|
|
128
|
-
enumerable:
|
|
130
|
+
enumerable: false,
|
|
129
131
|
configurable: true
|
|
130
132
|
});
|
|
131
133
|
Object.defineProperty(MenuItemInternal.prototype, "contentRender", {
|
|
132
134
|
get: function () {
|
|
133
135
|
return this.props.item.contentParentItemId ? this.props.item.contentRender : null;
|
|
134
136
|
},
|
|
135
|
-
enumerable:
|
|
137
|
+
enumerable: false,
|
|
136
138
|
configurable: true
|
|
137
139
|
});
|
|
138
140
|
Object.defineProperty(MenuItemInternal.prototype, "Opened", {
|
|
@@ -144,7 +146,7 @@ var MenuItemInternal = /** @class */ (function (_super) {
|
|
|
144
146
|
// popup inside popup throws an error (for example, hover of item with id '0_0').
|
|
145
147
|
!this.isFirstRender;
|
|
146
148
|
},
|
|
147
|
-
enumerable:
|
|
149
|
+
enumerable: false,
|
|
148
150
|
configurable: true
|
|
149
151
|
});
|
|
150
152
|
MenuItemInternal.prototype.getPopupClassName = function () {
|
|
@@ -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 (
|
|
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 (
|
|
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 __());
|
package/dist/es/menu/events.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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
|
}
|
|
@@ -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
|
-
|
|
13
|
+
get IsMouseOverEnabled(): boolean;
|
|
14
14
|
handleItemMouseDown(): void;
|
|
15
15
|
handleItemFocus(): void;
|
|
16
16
|
handleItemClick(itemId: string, clickedItemIsWithDefaultClose: boolean): void;
|
|
@@ -6,6 +6,7 @@ var MouseOverHandler = /** @class */ (function () {
|
|
|
6
6
|
this.openOnClick = openOnClick;
|
|
7
7
|
this.resetMenu = resetMenu;
|
|
8
8
|
this.openItem = openItem;
|
|
9
|
+
this.mouseDown = false;
|
|
9
10
|
this.openOnClick = openOnClick;
|
|
10
11
|
this.isMouseOverEnabled = openOnClick ? false : true;
|
|
11
12
|
}
|
|
@@ -17,7 +18,7 @@ var MouseOverHandler = /** @class */ (function () {
|
|
|
17
18
|
}
|
|
18
19
|
this.openOnClick = value;
|
|
19
20
|
},
|
|
20
|
-
enumerable:
|
|
21
|
+
enumerable: false,
|
|
21
22
|
configurable: true
|
|
22
23
|
});
|
|
23
24
|
MouseOverHandler.prototype.handleItemSelectedViaKeyboard = function () {
|
|
@@ -30,7 +31,7 @@ var MouseOverHandler = /** @class */ (function () {
|
|
|
30
31
|
get: function () {
|
|
31
32
|
return this.isMouseOverEnabled;
|
|
32
33
|
},
|
|
33
|
-
enumerable:
|
|
34
|
+
enumerable: false,
|
|
34
35
|
configurable: true
|
|
35
36
|
});
|
|
36
37
|
MouseOverHandler.prototype.handleItemMouseDown = function () {
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-react-layout',
|
|
6
6
|
productName: 'KendoReact',
|
|
7
7
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1654509261,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
11
11
|
};
|
|
@@ -18,10 +18,10 @@ export declare class PanelBar extends React.Component<PanelBarProps, PanelBarSta
|
|
|
18
18
|
*/
|
|
19
19
|
static propTypes: {
|
|
20
20
|
animation: PropTypes.Requireable<boolean>;
|
|
21
|
-
children: (props: PanelBarProps, propName: any) => Error;
|
|
21
|
+
children: (props: PanelBarProps, propName: any) => Error | null | undefined;
|
|
22
22
|
dir: PropTypes.Requireable<string>;
|
|
23
23
|
selected: PropTypes.Requireable<string>;
|
|
24
|
-
expanded: PropTypes.Requireable<string[]>;
|
|
24
|
+
expanded: PropTypes.Requireable<(string | null)[]>;
|
|
25
25
|
focused: PropTypes.Requireable<string>;
|
|
26
26
|
expandMode: PropTypes.Requireable<string>;
|
|
27
27
|
className: PropTypes.Requireable<string>;
|
|
@@ -44,10 +44,10 @@ export declare class PanelBar extends React.Component<PanelBarProps, PanelBarSta
|
|
|
44
44
|
private activeDescendant?;
|
|
45
45
|
private _element;
|
|
46
46
|
private nextTickId;
|
|
47
|
-
private
|
|
48
|
-
private
|
|
49
|
-
private
|
|
50
|
-
private
|
|
47
|
+
private get expandMode();
|
|
48
|
+
private get selectedItem();
|
|
49
|
+
private get expandedItems();
|
|
50
|
+
private get children();
|
|
51
51
|
constructor(props: PanelBarProps);
|
|
52
52
|
/**
|
|
53
53
|
* @hidden
|
|
@@ -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 (
|
|
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 __());
|
|
@@ -22,6 +24,15 @@ var __assign = (this && this.__assign) || function () {
|
|
|
22
24
|
};
|
|
23
25
|
return __assign.apply(this, arguments);
|
|
24
26
|
};
|
|
27
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
28
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
29
|
+
if (ar || !(i in from)) {
|
|
30
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
31
|
+
ar[i] = from[i];
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
35
|
+
};
|
|
25
36
|
import * as React from 'react';
|
|
26
37
|
import * as PropTypes from 'prop-types';
|
|
27
38
|
import { PanelBarItem } from './PanelBarItem';
|
|
@@ -56,10 +67,10 @@ var PanelBar = /** @class */ (function (_super) {
|
|
|
56
67
|
});
|
|
57
68
|
switch (_this.expandMode) {
|
|
58
69
|
case 'single':
|
|
59
|
-
newExpanded = selectedChild.props.parentUniquePrivateKey
|
|
70
|
+
newExpanded = __spreadArray(__spreadArray([], selectedChild.props.parentUniquePrivateKey, true), [selectedChild.props.uniquePrivateKey], false);
|
|
60
71
|
if (isArrayEqual(_this.expandedItems, newExpanded)) {
|
|
61
72
|
if (selectedChild.props.parentUniquePrivateKey) {
|
|
62
|
-
newExpanded = selectedChild.props.parentUniquePrivateKey
|
|
73
|
+
newExpanded = __spreadArray([], selectedChild.props.parentUniquePrivateKey, true);
|
|
63
74
|
}
|
|
64
75
|
else {
|
|
65
76
|
newExpanded = [];
|
|
@@ -180,7 +191,7 @@ var PanelBar = /** @class */ (function (_super) {
|
|
|
180
191
|
get: function () {
|
|
181
192
|
return this.props.expandMode || 'multiple';
|
|
182
193
|
},
|
|
183
|
-
enumerable:
|
|
194
|
+
enumerable: false,
|
|
184
195
|
configurable: true
|
|
185
196
|
});
|
|
186
197
|
Object.defineProperty(PanelBar.prototype, "selectedItem", {
|
|
@@ -188,7 +199,7 @@ var PanelBar = /** @class */ (function (_super) {
|
|
|
188
199
|
var _a = this.props.selected, selected = _a === void 0 ? this.state.selected : _a;
|
|
189
200
|
return selected;
|
|
190
201
|
},
|
|
191
|
-
enumerable:
|
|
202
|
+
enumerable: false,
|
|
192
203
|
configurable: true
|
|
193
204
|
});
|
|
194
205
|
Object.defineProperty(PanelBar.prototype, "expandedItems", {
|
|
@@ -196,12 +207,12 @@ var PanelBar = /** @class */ (function (_super) {
|
|
|
196
207
|
var expanded = this.props.isControlled ? this.props.expanded || [] : this.state.expanded;
|
|
197
208
|
return expanded;
|
|
198
209
|
},
|
|
199
|
-
enumerable:
|
|
210
|
+
enumerable: false,
|
|
200
211
|
configurable: true
|
|
201
212
|
});
|
|
202
213
|
Object.defineProperty(PanelBar.prototype, "children", {
|
|
203
214
|
get: function () {
|
|
204
|
-
var state = __assign({}, this.state, { selected: this.selectedItem });
|
|
215
|
+
var state = __assign(__assign({}, this.state), { selected: this.selectedItem });
|
|
205
216
|
var renderState = {
|
|
206
217
|
animation: this.props.animation,
|
|
207
218
|
keepItemsMounted: this.props.keepItemsMounted,
|
|
@@ -212,7 +223,7 @@ var PanelBar = /** @class */ (function (_super) {
|
|
|
212
223
|
};
|
|
213
224
|
return renderChildren(renderState);
|
|
214
225
|
},
|
|
215
|
-
enumerable:
|
|
226
|
+
enumerable: false,
|
|
216
227
|
configurable: true
|
|
217
228
|
});
|
|
218
229
|
/**
|
|
@@ -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 (
|
|
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 __());
|
|
@@ -59,7 +61,7 @@ var PanelBarItem = /** @class */ (function (_super) {
|
|
|
59
61
|
};
|
|
60
62
|
_this.childFactory = function (child) {
|
|
61
63
|
if (_this.props.keepItemsMounted) {
|
|
62
|
-
return React.cloneElement(child, __assign({}, child.props, { in: _this.props.expanded }));
|
|
64
|
+
return React.cloneElement(child, __assign(__assign({}, child.props), { in: _this.props.expanded }));
|
|
63
65
|
}
|
|
64
66
|
return child;
|
|
65
67
|
};
|
|
@@ -72,8 +74,8 @@ var PanelBarItem = /** @class */ (function (_super) {
|
|
|
72
74
|
* @hidden
|
|
73
75
|
*/
|
|
74
76
|
PanelBarItem.prototype.render = function () {
|
|
75
|
-
var _this = this;
|
|
76
77
|
var _a;
|
|
78
|
+
var _this = this;
|
|
77
79
|
var _b = this.props, id = _b.id, children = _b.children, title = _b.title, uniquePrivateKey = _b.uniquePrivateKey, disabled = _b.disabled, selected = _b.selected, focused = _b.focused, expanded = _b.expanded, className = _b.className, level = _b.level, headerClassName = _b.headerClassName, animation = _b.animation, keepItemsMounted = _b.keepItemsMounted;
|
|
78
80
|
var panelBarItemAriaAttributes = {
|
|
79
81
|
'role': 'treeitem',
|
|
@@ -86,7 +88,7 @@ var PanelBarItem = /** @class */ (function (_super) {
|
|
|
86
88
|
'k-panelbar-header': level === 0,
|
|
87
89
|
'k-panelbar-item': level !== 0,
|
|
88
90
|
'k-state-expanded': expanded && !!children
|
|
89
|
-
}, "k-level-"
|
|
91
|
+
}, "k-level-".concat(level), className);
|
|
90
92
|
var panelBarLinkClassName = classNames('k-link', {
|
|
91
93
|
'k-selected': !disabled && selected,
|
|
92
94
|
'k-focus': !disabled && focused,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/es/panelbar/util.js
CHANGED
|
@@ -9,6 +9,15 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
13
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
14
|
+
if (ar || !(i in from)) {
|
|
15
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
16
|
+
ar[i] = from[i];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20
|
+
};
|
|
12
21
|
import * as React from 'react';
|
|
13
22
|
import { PanelBarItem } from './PanelBarItem';
|
|
14
23
|
/**
|
|
@@ -30,11 +39,11 @@ export var renderChildren = function (_a) {
|
|
|
30
39
|
children: child.props.children,
|
|
31
40
|
parentExpanded: (expanded || []).indexOf(privateKey) > -1,
|
|
32
41
|
level: level + 1,
|
|
33
|
-
parentPrivateKey:
|
|
42
|
+
parentPrivateKey: __spreadArray(__spreadArray([], parentPrivateKey, true), [privateKey], false)
|
|
34
43
|
};
|
|
35
44
|
nestedChildren = renderChildren(renderState);
|
|
36
45
|
}
|
|
37
|
-
return React.cloneElement(child, __assign({}, child.props, { animation: child.props.animation !== undefined ? child.props.animation : animation, keepItemsMounted: keepItemsMounted, id: child.props.id || "k-panelbar-item-default-"
|
|
46
|
+
return React.cloneElement(child, __assign(__assign({}, child.props), { animation: child.props.animation !== undefined ? child.props.animation : animation, keepItemsMounted: keepItemsMounted, id: child.props.id || "k-panelbar-item-default-".concat(privateKey), uniquePrivateKey: privateKey, parentUniquePrivateKey: parentPrivateKey, parentExpanded: parentExpanded, level: level, expanded: (expanded || []).indexOf(privateKey) > -1, focused: state.focused === privateKey && state.wrapperFocused, selected: state.selected === privateKey, children: nestedChildren, onSelect: handleSelect }));
|
|
38
47
|
}
|
|
39
48
|
else {
|
|
40
49
|
return React.createElement("div", { className: "k-panelbar-content k-content" }, child);
|
|
@@ -82,7 +91,7 @@ export var getInitialState = function (props, expandMode, result, parentExpanded
|
|
|
82
91
|
}
|
|
83
92
|
}
|
|
84
93
|
if (child.props.children) {
|
|
85
|
-
result = getInitialState(child.props, expandMode, result, !!child.props.expanded,
|
|
94
|
+
result = getInitialState(child.props, expandMode, result, !!child.props.expanded, __spreadArray(__spreadArray([], parentPrivateKey, true), [privateKey], false));
|
|
86
95
|
}
|
|
87
96
|
}
|
|
88
97
|
}
|
|
@@ -96,8 +105,8 @@ var getId = function (child, parentPrivateKey, idx) {
|
|
|
96
105
|
return child && child.props && child.props.id
|
|
97
106
|
? child.props.id
|
|
98
107
|
: parentPrivateKey.length
|
|
99
|
-
? parentPrivateKey[parentPrivateKey.length - 1] +
|
|
100
|
-
: "."
|
|
108
|
+
? parentPrivateKey[parentPrivateKey.length - 1] + ".".concat(idx)
|
|
109
|
+
: ".".concat(idx);
|
|
101
110
|
};
|
|
102
111
|
/**
|
|
103
112
|
* @hidden
|
|
@@ -98,12 +98,12 @@ export declare class Splitter extends React.Component<SplitterProps, SplitterSta
|
|
|
98
98
|
*/
|
|
99
99
|
readonly state: SplitterState;
|
|
100
100
|
private panesDuringOnChange?;
|
|
101
|
-
private
|
|
102
|
-
private
|
|
101
|
+
private get isControlledState();
|
|
102
|
+
private get panes();
|
|
103
103
|
private _container;
|
|
104
|
-
private
|
|
105
|
-
private
|
|
106
|
-
private
|
|
104
|
+
private get orientation();
|
|
105
|
+
private get isRtl();
|
|
106
|
+
private get panesContent();
|
|
107
107
|
/**
|
|
108
108
|
* @hidden
|
|
109
109
|
*/
|
|
@@ -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 (
|
|
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++)
|
|
31
|
-
|
|
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
|
|
205
|
+
return el["".concat(sizeType, "Height")];
|
|
203
206
|
}
|
|
204
207
|
else {
|
|
205
|
-
return el[sizeType
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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-"
|
|
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);
|