@progress/kendo-react-layout 5.4.0-dev.202205250548 → 5.4.0-dev.202205271059
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/interfaces/AppBarProps.js +1 -0
- package/dist/es/appbar/interfaces/AppBarSectionProps.js +1 -0
- package/dist/es/appbar/interfaces/AppBarSpacerProps.js +1 -0
- 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/card/Card.js +5 -4
- 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/DrawerItem.js +4 -2
- package/dist/es/drawer/DrawerNavigation.js +2 -2
- 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.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/index.js +1 -0
- package/dist/es/expansionpanel/interfaces.js +1 -0
- 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.js +3 -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 +7 -5
- 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.js +1 -0
- package/dist/es/menu/models/MenuItemModel.js +1 -0
- package/dist/es/menu/utils/MouseOverHandler.d.ts +2 -2
- package/dist/es/menu/utils/MouseOverHandler.js +2 -2
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/panelbar/PanelBar.d.ts +4 -4
- package/dist/es/panelbar/PanelBar.js +15 -8
- package/dist/es/panelbar/PanelBarItem.js +5 -3
- 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 +8 -3
- package/dist/es/splitter/Splitter.d.ts +5 -5
- package/dist/es/splitter/Splitter.js +16 -14
- package/dist/es/splitter/SplitterBar.d.ts +3 -3
- package/dist/es/splitter/SplitterBar.js +7 -5
- package/dist/es/splitter/SplitterPane.js +3 -1
- package/dist/es/stacklayout/StackLayoutProps.js +1 -0
- package/dist/es/stepper/Step.js +4 -2
- 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/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.js +4 -2
- package/dist/es/tabstrip/TabStripNavigation.js +3 -1
- package/dist/es/tabstrip/TabStripNavigationItem.js +3 -1
- package/dist/es/tabstrip/TabStripTab.d.ts +4 -0
- package/dist/es/tabstrip/TabStripTab.js +9 -1
- package/dist/es/tilelayout/InternalTile.d.ts +2 -2
- package/dist/es/tilelayout/InternalTile.js +5 -3
- package/dist/es/tilelayout/ResizeHandlers.js +3 -1
- package/dist/es/tilelayout/TileLayout.d.ts +1 -1
- package/dist/es/tilelayout/TileLayout.js +4 -2
- package/dist/es/tilelayout/interfaces/main.js +1 -0
- package/dist/npm/appbar/AppBar.js +1 -0
- package/dist/npm/appbar/AppBarSection.js +1 -0
- package/dist/npm/appbar/AppBarSpacer.js +1 -0
- package/dist/npm/bottomnavigation/BottomNavigation.js +1 -0
- package/dist/npm/bottomnavigation/BottomNavigationItem.js +1 -0
- package/dist/npm/bottomnavigation/models/utils.d.ts +16 -16
- package/dist/npm/bottomnavigation/models/utils.js +1 -0
- package/dist/npm/breadcrumb/Breadcrumb.js +1 -0
- package/dist/npm/breadcrumb/BreadcrumbDelimiter.js +1 -0
- package/dist/npm/breadcrumb/BreadcrumbLink.js +1 -0
- package/dist/npm/breadcrumb/BreadcrumbListItem.js +1 -0
- package/dist/npm/breadcrumb/BreadcrumbOrderedList.js +1 -0
- package/dist/npm/card/Avatar.js +3 -1
- package/dist/npm/card/Card.js +6 -4
- package/dist/npm/card/CardActions.js +3 -1
- package/dist/npm/card/CardBody.js +3 -1
- package/dist/npm/card/CardFooter.js +3 -1
- package/dist/npm/card/CardHeader.js +3 -1
- package/dist/npm/card/CardImage.js +3 -1
- package/dist/npm/card/CardSubtitle.js +3 -1
- package/dist/npm/card/CardTitle.js +3 -1
- package/dist/npm/card/interfaces/Enums.js +1 -0
- package/dist/npm/drawer/Drawer.js +1 -0
- package/dist/npm/drawer/DrawerContent.js +1 -0
- package/dist/npm/drawer/DrawerItem.js +5 -2
- package/dist/npm/drawer/DrawerNavigation.js +3 -2
- package/dist/npm/drawer/context/DrawerContext.js +1 -0
- package/dist/npm/expansionpanel/ExpansionPanel.js +1 -0
- package/dist/npm/expansionpanel/ExpansionPanelContent.js +1 -0
- package/dist/npm/expansionpanel/index.js +13 -5
- package/dist/npm/gridlayout/GridLayout.js +1 -0
- package/dist/npm/gridlayout/GridLayoutItem.js +1 -0
- package/dist/npm/main.js +91 -47
- package/dist/npm/menu/components/Menu.js +4 -1
- package/dist/npm/menu/components/MenuItem.js +4 -1
- package/dist/npm/menu/components/MenuItemArrow.js +4 -1
- package/dist/npm/menu/components/MenuItemInternal.d.ts +4 -4
- package/dist/npm/menu/components/MenuItemInternal.js +8 -5
- package/dist/npm/menu/components/MenuItemInternalsList.js +4 -1
- package/dist/npm/menu/components/MenuItemLink.js +4 -1
- package/dist/npm/menu/consts.js +1 -0
- 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 +3 -2
- package/dist/npm/menu/utils/getNewItemIdUponKeyboardNavigation.js +1 -0
- 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 +1 -0
- package/dist/npm/menu/utils/prepareInputItemsForInternalWork.js +1 -0
- package/dist/npm/package-metadata.js +2 -1
- package/dist/npm/panelbar/PanelBar.d.ts +4 -4
- package/dist/npm/panelbar/PanelBar.js +16 -8
- package/dist/npm/panelbar/PanelBarItem.js +6 -3
- package/dist/npm/panelbar/interfaces/NavigationAction.js +1 -0
- package/dist/npm/panelbar/util.js +19 -8
- package/dist/npm/splitter/Splitter.d.ts +5 -5
- package/dist/npm/splitter/Splitter.js +17 -14
- package/dist/npm/splitter/SplitterBar.d.ts +3 -3
- package/dist/npm/splitter/SplitterBar.js +8 -5
- package/dist/npm/splitter/SplitterPane.js +4 -1
- package/dist/npm/stacklayout/StackLayout.js +1 -0
- package/dist/npm/stepper/Step.js +5 -2
- package/dist/npm/stepper/Stepper.js +1 -0
- package/dist/npm/stepper/contants.js +1 -0
- package/dist/npm/stepper/context/StepperContext.js +1 -0
- package/dist/npm/stepper/interfaces/StepperOnNavigateEvent.js +1 -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 +5 -2
- package/dist/npm/tabstrip/TabStripContent.js +5 -2
- package/dist/npm/tabstrip/TabStripNavigation.js +4 -1
- package/dist/npm/tabstrip/TabStripNavigationItem.js +4 -1
- package/dist/npm/tabstrip/TabStripTab.d.ts +4 -0
- package/dist/npm/tabstrip/TabStripTab.js +10 -1
- package/dist/npm/tilelayout/InternalTile.d.ts +2 -2
- package/dist/npm/tilelayout/InternalTile.js +6 -3
- package/dist/npm/tilelayout/ResizeHandlers.js +4 -1
- package/dist/npm/tilelayout/TileLayout.d.ts +1 -1
- package/dist/npm/tilelayout/TileLayout.js +5 -2
- package/dist/systemjs/kendo-react-layout.js +1 -1
- package/package.json +13 -13
|
@@ -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 (
|
|
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");
|
package/dist/npm/menu/consts.js
CHANGED
|
@@ -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;
|
|
@@ -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
|
*/
|
|
@@ -19,7 +20,7 @@ var MouseOverHandler = /** @class */ (function () {
|
|
|
19
20
|
}
|
|
20
21
|
this.openOnClick = value;
|
|
21
22
|
},
|
|
22
|
-
enumerable:
|
|
23
|
+
enumerable: false,
|
|
23
24
|
configurable: true
|
|
24
25
|
});
|
|
25
26
|
MouseOverHandler.prototype.handleItemSelectedViaKeyboard = function () {
|
|
@@ -32,7 +33,7 @@ var MouseOverHandler = /** @class */ (function () {
|
|
|
32
33
|
get: function () {
|
|
33
34
|
return this.isMouseOverEnabled;
|
|
34
35
|
},
|
|
35
|
-
enumerable:
|
|
36
|
+
enumerable: false,
|
|
36
37
|
configurable: true
|
|
37
38
|
});
|
|
38
39
|
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/;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDirectSiblingIdForLevelZero = exports.getShortId = exports.isFirstItemFromSiblings = exports.isIdFirstLevel = exports.isIdZeroLevel = exports.isIdEmptyOrZeroLevel = exports.getDirectParentId = exports.createId = exports.shouldOpenItem = exports.getFirstChildId = exports.getIdWithoutRootParentId = exports.getRootParentId = exports.getItemById = exports.SEPARATOR = exports.ZERO_LEVEL_ZERO_ITEM_ID = exports.EMPTY_ID = void 0;
|
|
3
4
|
/**
|
|
4
5
|
* @hidden
|
|
5
6
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDOMElementId = exports.convertBoolDirectionToString = exports.getChildrenPosition = exports.getPopupSettings = void 0;
|
|
3
4
|
var consts_1 = require("../consts");
|
|
4
5
|
var itemsIdsUtils_1 = require("./itemsIdsUtils");
|
|
5
6
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.packageMetadata = void 0;
|
|
3
4
|
/**
|
|
4
5
|
* @hidden
|
|
5
6
|
*/
|
|
@@ -7,7 +8,7 @@ exports.packageMetadata = {
|
|
|
7
8
|
name: '@progress/kendo-react-layout',
|
|
8
9
|
productName: 'KendoReact',
|
|
9
10
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
10
|
-
publishDate:
|
|
11
|
+
publishDate: 1653648336,
|
|
11
12
|
version: '',
|
|
12
13
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
13
14
|
};
|
|
@@ -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
|
|
@@ -3,10 +3,12 @@ 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 (
|
|
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 __());
|
|
@@ -23,7 +25,13 @@ var __assign = (this && this.__assign) || function () {
|
|
|
23
25
|
};
|
|
24
26
|
return __assign.apply(this, arguments);
|
|
25
27
|
};
|
|
28
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
29
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
30
|
+
to[j] = from[i];
|
|
31
|
+
return to;
|
|
32
|
+
};
|
|
26
33
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
exports.PanelBar = void 0;
|
|
27
35
|
var React = require("react");
|
|
28
36
|
var PropTypes = require("prop-types");
|
|
29
37
|
var PanelBarItem_1 = require("./PanelBarItem");
|
|
@@ -58,10 +66,10 @@ var PanelBar = /** @class */ (function (_super) {
|
|
|
58
66
|
});
|
|
59
67
|
switch (_this.expandMode) {
|
|
60
68
|
case 'single':
|
|
61
|
-
newExpanded = selectedChild.props.parentUniquePrivateKey
|
|
69
|
+
newExpanded = __spreadArray(__spreadArray([], selectedChild.props.parentUniquePrivateKey), [selectedChild.props.uniquePrivateKey]);
|
|
62
70
|
if (util_1.isArrayEqual(_this.expandedItems, newExpanded)) {
|
|
63
71
|
if (selectedChild.props.parentUniquePrivateKey) {
|
|
64
|
-
newExpanded = selectedChild.props.parentUniquePrivateKey
|
|
72
|
+
newExpanded = __spreadArray([], selectedChild.props.parentUniquePrivateKey);
|
|
65
73
|
}
|
|
66
74
|
else {
|
|
67
75
|
newExpanded = [];
|
|
@@ -182,7 +190,7 @@ var PanelBar = /** @class */ (function (_super) {
|
|
|
182
190
|
get: function () {
|
|
183
191
|
return this.props.expandMode || 'multiple';
|
|
184
192
|
},
|
|
185
|
-
enumerable:
|
|
193
|
+
enumerable: false,
|
|
186
194
|
configurable: true
|
|
187
195
|
});
|
|
188
196
|
Object.defineProperty(PanelBar.prototype, "selectedItem", {
|
|
@@ -190,7 +198,7 @@ var PanelBar = /** @class */ (function (_super) {
|
|
|
190
198
|
var _a = this.props.selected, selected = _a === void 0 ? this.state.selected : _a;
|
|
191
199
|
return selected;
|
|
192
200
|
},
|
|
193
|
-
enumerable:
|
|
201
|
+
enumerable: false,
|
|
194
202
|
configurable: true
|
|
195
203
|
});
|
|
196
204
|
Object.defineProperty(PanelBar.prototype, "expandedItems", {
|
|
@@ -198,12 +206,12 @@ var PanelBar = /** @class */ (function (_super) {
|
|
|
198
206
|
var expanded = this.props.isControlled ? this.props.expanded || [] : this.state.expanded;
|
|
199
207
|
return expanded;
|
|
200
208
|
},
|
|
201
|
-
enumerable:
|
|
209
|
+
enumerable: false,
|
|
202
210
|
configurable: true
|
|
203
211
|
});
|
|
204
212
|
Object.defineProperty(PanelBar.prototype, "children", {
|
|
205
213
|
get: function () {
|
|
206
|
-
var state = __assign({}, this.state, { selected: this.selectedItem });
|
|
214
|
+
var state = __assign(__assign({}, this.state), { selected: this.selectedItem });
|
|
207
215
|
var renderState = {
|
|
208
216
|
animation: this.props.animation,
|
|
209
217
|
keepItemsMounted: this.props.keepItemsMounted,
|
|
@@ -214,7 +222,7 @@ var PanelBar = /** @class */ (function (_super) {
|
|
|
214
222
|
};
|
|
215
223
|
return util_1.renderChildren(renderState);
|
|
216
224
|
},
|
|
217
|
-
enumerable:
|
|
225
|
+
enumerable: false,
|
|
218
226
|
configurable: true
|
|
219
227
|
});
|
|
220
228
|
/**
|
|
@@ -3,10 +3,12 @@ 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 (
|
|
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 __());
|
|
@@ -24,6 +26,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
24
26
|
return __assign.apply(this, arguments);
|
|
25
27
|
};
|
|
26
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.PanelBarItem = void 0;
|
|
27
30
|
var React = require("react");
|
|
28
31
|
var PropTypes = require("prop-types");
|
|
29
32
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
@@ -61,7 +64,7 @@ var PanelBarItem = /** @class */ (function (_super) {
|
|
|
61
64
|
};
|
|
62
65
|
_this.childFactory = function (child) {
|
|
63
66
|
if (_this.props.keepItemsMounted) {
|
|
64
|
-
return React.cloneElement(child, __assign({}, child.props, { in: _this.props.expanded }));
|
|
67
|
+
return React.cloneElement(child, __assign(__assign({}, child.props), { in: _this.props.expanded }));
|
|
65
68
|
}
|
|
66
69
|
return child;
|
|
67
70
|
};
|
|
@@ -74,8 +77,8 @@ var PanelBarItem = /** @class */ (function (_super) {
|
|
|
74
77
|
* @hidden
|
|
75
78
|
*/
|
|
76
79
|
PanelBarItem.prototype.render = function () {
|
|
77
|
-
var _this = this;
|
|
78
80
|
var _a;
|
|
81
|
+
var _this = this;
|
|
79
82
|
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;
|
|
80
83
|
var panelBarItemAriaAttributes = {
|
|
81
84
|
'role': 'treeitem',
|
|
@@ -10,13 +10,19 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
14
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
15
|
+
to[j] = from[i];
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
13
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.isArrayEqual = exports.PanelBarUtils = exports.isPresent = exports.flatVisibleChildren = exports.flatChildren = exports.flatVisibleItems = exports.getInitialState = exports.getFirstId = exports.renderChildren = void 0;
|
|
14
20
|
var React = require("react");
|
|
15
21
|
var PanelBarItem_1 = require("./PanelBarItem");
|
|
16
22
|
/**
|
|
17
23
|
* @hidden
|
|
18
24
|
*/
|
|
19
|
-
|
|
25
|
+
var renderChildren = function (_a) {
|
|
20
26
|
var _b = _a.animation, animation = _b === void 0 ? true : _b, _c = _a.keepItemsMounted, keepItemsMounted = _c === void 0 ? false : _c, state = _a.state, expanded = _a.expanded, handleSelect = _a.handleSelect, children = _a.children, _d = _a.parentExpanded, parentExpanded = _d === void 0 ? true : _d, _e = _a.level, level = _e === void 0 ? 0 : _e, _f = _a.parentPrivateKey, parentPrivateKey = _f === void 0 ? [] : _f;
|
|
21
27
|
return React.Children.map(children, function (child, idx) {
|
|
22
28
|
if (child && child.type === PanelBarItem_1.PanelBarItem) {
|
|
@@ -32,31 +38,33 @@ exports.renderChildren = function (_a) {
|
|
|
32
38
|
children: child.props.children,
|
|
33
39
|
parentExpanded: (expanded || []).indexOf(privateKey) > -1,
|
|
34
40
|
level: level + 1,
|
|
35
|
-
parentPrivateKey:
|
|
41
|
+
parentPrivateKey: __spreadArray(__spreadArray([], parentPrivateKey), [privateKey])
|
|
36
42
|
};
|
|
37
43
|
nestedChildren = exports.renderChildren(renderState);
|
|
38
44
|
}
|
|
39
|
-
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-" + 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 }));
|
|
45
|
+
return React.cloneElement(child, __assign(__assign({}, child.props), { animation: child.props.animation !== undefined ? child.props.animation : animation, keepItemsMounted: keepItemsMounted, id: child.props.id || "k-panelbar-item-default-" + privateKey, uniquePrivateKey: privateKey, parentUniquePrivateKey: parentPrivateKey, parentExpanded: parentExpanded, level: level, expanded: (expanded || []).indexOf(privateKey) > -1, focused: state.focused === privateKey && state.wrapperFocused, selected: state.selected === privateKey, children: nestedChildren, onSelect: handleSelect }));
|
|
40
46
|
}
|
|
41
47
|
else {
|
|
42
48
|
return React.createElement("div", { className: "k-panelbar-content k-content" }, child);
|
|
43
49
|
}
|
|
44
50
|
});
|
|
45
51
|
};
|
|
52
|
+
exports.renderChildren = renderChildren;
|
|
46
53
|
/**
|
|
47
54
|
* @hidden
|
|
48
55
|
*/
|
|
49
|
-
|
|
56
|
+
var getFirstId = function (props) {
|
|
50
57
|
var firstItem = React.Children.toArray(props.children)[0];
|
|
51
58
|
if (firstItem) {
|
|
52
59
|
return getId(firstItem, [], 0);
|
|
53
60
|
}
|
|
54
61
|
return '';
|
|
55
62
|
};
|
|
63
|
+
exports.getFirstId = getFirstId;
|
|
56
64
|
/**
|
|
57
65
|
* @hidden
|
|
58
66
|
*/
|
|
59
|
-
|
|
67
|
+
var getInitialState = function (props, expandMode, result, parentExpanded, parentPrivateKey) {
|
|
60
68
|
if (result === void 0) { result = {
|
|
61
69
|
expanded: props.expanded || [],
|
|
62
70
|
selected: props.selected || '',
|
|
@@ -84,13 +92,14 @@ exports.getInitialState = function (props, expandMode, result, parentExpanded, p
|
|
|
84
92
|
}
|
|
85
93
|
}
|
|
86
94
|
if (child.props.children) {
|
|
87
|
-
result = exports.getInitialState(child.props, expandMode, result, !!child.props.expanded,
|
|
95
|
+
result = exports.getInitialState(child.props, expandMode, result, !!child.props.expanded, __spreadArray(__spreadArray([], parentPrivateKey), [privateKey]));
|
|
88
96
|
}
|
|
89
97
|
}
|
|
90
98
|
}
|
|
91
99
|
});
|
|
92
100
|
return result;
|
|
93
101
|
};
|
|
102
|
+
exports.getInitialState = getInitialState;
|
|
94
103
|
/**
|
|
95
104
|
* @hidden
|
|
96
105
|
*/
|
|
@@ -154,7 +163,8 @@ exports.flatVisibleChildren = flatVisibleChildren;
|
|
|
154
163
|
/**
|
|
155
164
|
* @hidden
|
|
156
165
|
*/
|
|
157
|
-
|
|
166
|
+
var isPresent = function (value) { return value !== null && value !== undefined; };
|
|
167
|
+
exports.isPresent = isPresent;
|
|
158
168
|
/**
|
|
159
169
|
* Represents the PanelBarUtils functions.
|
|
160
170
|
*/
|
|
@@ -185,9 +195,10 @@ var PanelBarUtils;
|
|
|
185
195
|
/**
|
|
186
196
|
* @hidden
|
|
187
197
|
*/
|
|
188
|
-
|
|
198
|
+
var isArrayEqual = function (firstArray, secondArray) {
|
|
189
199
|
if (firstArray.length !== secondArray.length) {
|
|
190
200
|
return false;
|
|
191
201
|
}
|
|
192
202
|
return firstArray.every(function (ex, i) { return ex === secondArray[i]; });
|
|
193
203
|
};
|
|
204
|
+
exports.isArrayEqual = isArrayEqual;
|
|
@@ -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
|
*/
|
|
@@ -3,10 +3,12 @@ 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 (
|
|
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 __());
|
|
@@ -28,11 +30,14 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
28
30
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
29
31
|
t[p] = s[p];
|
|
30
32
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
31
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
|
32
|
-
|
|
33
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
34
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
35
|
+
t[p[i]] = s[p[i]];
|
|
36
|
+
}
|
|
33
37
|
return t;
|
|
34
38
|
};
|
|
35
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.Splitter = void 0;
|
|
36
41
|
var React = require("react");
|
|
37
42
|
var SplitterPane_1 = require("./SplitterPane");
|
|
38
43
|
var SplitterBar_1 = require("./SplitterBar");
|
|
@@ -104,9 +109,7 @@ var Splitter = /** @class */ (function (_super) {
|
|
|
104
109
|
if (isDragging && dragIndex !== undefined) {
|
|
105
110
|
overlay = dragIndex === index || dragIndex + 1 === index;
|
|
106
111
|
}
|
|
107
|
-
paneOptions.push(__assign({}, PANE_DEFAULTS, { orientation: orientation,
|
|
108
|
-
containsSplitter: containsSplitter,
|
|
109
|
-
overlay: overlay }, (panes || [])[index]));
|
|
112
|
+
paneOptions.push(__assign(__assign(__assign({}, PANE_DEFAULTS), { orientation: orientation, containsSplitter: containsSplitter, overlay: overlay }), (panes || [])[index]));
|
|
110
113
|
}
|
|
111
114
|
return paneOptions;
|
|
112
115
|
};
|
|
@@ -128,7 +131,7 @@ var Splitter = /** @class */ (function (_super) {
|
|
|
128
131
|
var updatedState = panesOptions.map(function (pane, idx) {
|
|
129
132
|
var paneProps = _this.getPaneProps(pane);
|
|
130
133
|
if (idx === index) {
|
|
131
|
-
return __assign({}, paneProps, { collapsed: !pane.collapsed });
|
|
134
|
+
return __assign(__assign({}, paneProps), { collapsed: !pane.collapsed });
|
|
132
135
|
}
|
|
133
136
|
else {
|
|
134
137
|
return __assign({}, paneProps);
|
|
@@ -226,7 +229,7 @@ var Splitter = /** @class */ (function (_super) {
|
|
|
226
229
|
get: function () {
|
|
227
230
|
return this.props.panes !== undefined;
|
|
228
231
|
},
|
|
229
|
-
enumerable:
|
|
232
|
+
enumerable: false,
|
|
230
233
|
configurable: true
|
|
231
234
|
});
|
|
232
235
|
Object.defineProperty(Splitter.prototype, "panes", {
|
|
@@ -235,28 +238,28 @@ var Splitter = /** @class */ (function (_super) {
|
|
|
235
238
|
this.panesDuringOnChange :
|
|
236
239
|
(this.isControlledState ? this.props.panes : this.state.panes);
|
|
237
240
|
},
|
|
238
|
-
enumerable:
|
|
241
|
+
enumerable: false,
|
|
239
242
|
configurable: true
|
|
240
243
|
});
|
|
241
244
|
Object.defineProperty(Splitter.prototype, "orientation", {
|
|
242
245
|
get: function () {
|
|
243
246
|
return this.props.orientation || 'horizontal';
|
|
244
247
|
},
|
|
245
|
-
enumerable:
|
|
248
|
+
enumerable: false,
|
|
246
249
|
configurable: true
|
|
247
250
|
});
|
|
248
251
|
Object.defineProperty(Splitter.prototype, "isRtl", {
|
|
249
252
|
get: function () {
|
|
250
253
|
return this._container && (getComputedStyle(this._container).direction === 'rtl') || false;
|
|
251
254
|
},
|
|
252
|
-
enumerable:
|
|
255
|
+
enumerable: false,
|
|
253
256
|
configurable: true
|
|
254
257
|
});
|
|
255
258
|
Object.defineProperty(Splitter.prototype, "panesContent", {
|
|
256
259
|
get: function () {
|
|
257
260
|
return React.Children.toArray(this.props.children).filter(function (c) { return c; });
|
|
258
261
|
},
|
|
259
|
-
enumerable:
|
|
262
|
+
enumerable: false,
|
|
260
263
|
configurable: true
|
|
261
264
|
});
|
|
262
265
|
/**
|
|
@@ -342,10 +345,10 @@ var Splitter = /** @class */ (function (_super) {
|
|
|
342
345
|
var updatedState = panesOptions.map(function (pane, idx) {
|
|
343
346
|
var paneProps = _this.getPaneProps(pane);
|
|
344
347
|
if (idx === prevIndex) {
|
|
345
|
-
return __assign({}, paneProps, { size: prevSize });
|
|
348
|
+
return __assign(__assign({}, paneProps), { size: prevSize });
|
|
346
349
|
}
|
|
347
350
|
else if (idx === nextIndex) {
|
|
348
|
-
return __assign({}, paneProps, { size: nextSize });
|
|
351
|
+
return __assign(__assign({}, paneProps), { size: nextSize });
|
|
349
352
|
}
|
|
350
353
|
else {
|
|
351
354
|
return __assign({}, paneProps);
|
|
@@ -23,9 +23,9 @@ export interface SplitterBarState {
|
|
|
23
23
|
*/
|
|
24
24
|
export declare class SplitterBar extends React.Component<SplitterBarProps, SplitterBarState> {
|
|
25
25
|
private draggable;
|
|
26
|
-
private
|
|
27
|
-
private
|
|
28
|
-
private
|
|
26
|
+
private get isStatic();
|
|
27
|
+
private get isDraggable();
|
|
28
|
+
private get isHorizontal();
|
|
29
29
|
constructor(props: SplitterBarProps);
|
|
30
30
|
render(): JSX.Element;
|
|
31
31
|
private onDrag;
|
|
@@ -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 (
|
|
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.SplitterBar = void 0;
|
|
16
19
|
var React = require("react");
|
|
17
20
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
18
21
|
/**
|
|
@@ -132,7 +135,7 @@ var SplitterBar = /** @class */ (function (_super) {
|
|
|
132
135
|
var nearCollapsiblePane = prev.collapsible || next.collapsible;
|
|
133
136
|
return !betweenResizablePanes && !nearCollapsiblePane;
|
|
134
137
|
},
|
|
135
|
-
enumerable:
|
|
138
|
+
enumerable: false,
|
|
136
139
|
configurable: true
|
|
137
140
|
});
|
|
138
141
|
Object.defineProperty(SplitterBar.prototype, "isDraggable", {
|
|
@@ -142,19 +145,19 @@ var SplitterBar = /** @class */ (function (_super) {
|
|
|
142
145
|
var nearCollapsedPane = prev.collapsed || next.collapsed;
|
|
143
146
|
return !!betweenResizablePanes && !nearCollapsedPane;
|
|
144
147
|
},
|
|
145
|
-
enumerable:
|
|
148
|
+
enumerable: false,
|
|
146
149
|
configurable: true
|
|
147
150
|
});
|
|
148
151
|
Object.defineProperty(SplitterBar.prototype, "isHorizontal", {
|
|
149
152
|
get: function () {
|
|
150
153
|
return this.props.orientation === 'horizontal';
|
|
151
154
|
},
|
|
152
|
-
enumerable:
|
|
155
|
+
enumerable: false,
|
|
153
156
|
configurable: true
|
|
154
157
|
});
|
|
155
158
|
SplitterBar.prototype.render = function () {
|
|
156
|
-
var _this = this;
|
|
157
159
|
var _a;
|
|
160
|
+
var _this = this;
|
|
158
161
|
var isDraggable = this.isDraggable;
|
|
159
162
|
var isStatic = this.isStatic;
|
|
160
163
|
var isHorizontal = this.isHorizontal;
|
|
@@ -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 (
|
|
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.SplitterPane = void 0;
|
|
16
19
|
var React = require("react");
|
|
17
20
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
18
21
|
/**
|
|
@@ -11,6 +11,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.StackLayout = void 0;
|
|
14
15
|
var React = require("react");
|
|
15
16
|
var PropTypes = require("prop-types");
|
|
16
17
|
var kendo_licensing_1 = require("@progress/kendo-licensing");
|
package/dist/npm/stepper/Step.js
CHANGED
|
@@ -15,11 +15,14 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
15
15
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
16
|
t[p] = s[p];
|
|
17
17
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
|
19
|
-
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
20
22
|
return t;
|
|
21
23
|
};
|
|
22
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.Step = void 0;
|
|
23
26
|
var React = require("react");
|
|
24
27
|
var PropTypes = require("prop-types");
|
|
25
28
|
var StepperContext_1 = require("./context/StepperContext");
|
|
@@ -11,6 +11,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.Stepper = void 0;
|
|
14
15
|
var React = require("react");
|
|
15
16
|
var PropTypes = require("prop-types");
|
|
16
17
|
var StepperContext_1 = require("./context/StepperContext");
|