@progress/kendo-react-layout 5.4.0-dev.202205250548 → 5.4.0-dev.202206081230
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +5 -1
- package/dist/es/breadcrumb/Breadcrumb.js +9 -4
- 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.d.ts +1 -1
- package/dist/es/panelbar/PanelBarItem.js +7 -5
- 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 +14 -18
- 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 +5 -1
- package/dist/npm/breadcrumb/Breadcrumb.js +15 -9
- 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.d.ts +1 -1
- package/dist/npm/panelbar/PanelBarItem.js +12 -9
- 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 +16 -19
- 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
|
@@ -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);
|
|
@@ -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;
|
|
@@ -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 __());
|
|
@@ -20,6 +22,7 @@ var SplitterBar = /** @class */ (function (_super) {
|
|
|
20
22
|
__extends(SplitterBar, _super);
|
|
21
23
|
function SplitterBar(props) {
|
|
22
24
|
var _this = _super.call(this, props) || this;
|
|
25
|
+
_this.draggable = null;
|
|
23
26
|
_this.onDrag = function (data, isFirst, isLast) {
|
|
24
27
|
var event = data.event;
|
|
25
28
|
var _a = _this.props, onDrag = _a.onDrag, index = _a.index;
|
|
@@ -130,7 +133,7 @@ var SplitterBar = /** @class */ (function (_super) {
|
|
|
130
133
|
var nearCollapsiblePane = prev.collapsible || next.collapsible;
|
|
131
134
|
return !betweenResizablePanes && !nearCollapsiblePane;
|
|
132
135
|
},
|
|
133
|
-
enumerable:
|
|
136
|
+
enumerable: false,
|
|
134
137
|
configurable: true
|
|
135
138
|
});
|
|
136
139
|
Object.defineProperty(SplitterBar.prototype, "isDraggable", {
|
|
@@ -140,19 +143,19 @@ var SplitterBar = /** @class */ (function (_super) {
|
|
|
140
143
|
var nearCollapsedPane = prev.collapsed || next.collapsed;
|
|
141
144
|
return !!betweenResizablePanes && !nearCollapsedPane;
|
|
142
145
|
},
|
|
143
|
-
enumerable:
|
|
146
|
+
enumerable: false,
|
|
144
147
|
configurable: true
|
|
145
148
|
});
|
|
146
149
|
Object.defineProperty(SplitterBar.prototype, "isHorizontal", {
|
|
147
150
|
get: function () {
|
|
148
151
|
return this.props.orientation === 'horizontal';
|
|
149
152
|
},
|
|
150
|
-
enumerable:
|
|
153
|
+
enumerable: false,
|
|
151
154
|
configurable: true
|
|
152
155
|
});
|
|
153
156
|
SplitterBar.prototype.render = function () {
|
|
154
|
-
var _this = this;
|
|
155
157
|
var _a;
|
|
158
|
+
var _this = this;
|
|
156
159
|
var isDraggable = this.isDraggable;
|
|
157
160
|
var isStatic = this.isStatic;
|
|
158
161
|
var isHorizontal = this.isHorizontal;
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -34,4 +34,4 @@ export interface StackLayoutHandle {
|
|
|
34
34
|
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
37
|
-
export declare const StackLayout: React.ForwardRefExoticComponent<StackLayoutProps & React.RefAttributes<StackLayoutHandle>>;
|
|
37
|
+
export declare const StackLayout: React.ForwardRefExoticComponent<StackLayoutProps & React.RefAttributes<StackLayoutHandle | null>>;
|
|
@@ -63,7 +63,7 @@ export var StackLayout = React.forwardRef(function (props, ref) {
|
|
|
63
63
|
'k-align-items-end': !isHorizontal && hAlign === 'end' || isHorizontal && vAlign === 'bottom',
|
|
64
64
|
'k-align-items-stretch': !isHorizontal && hAlign === 'stretch' || isHorizontal && vAlign === 'stretch'
|
|
65
65
|
}, className); }, [orientation, isHorizontal, hAlign, vAlign, className]);
|
|
66
|
-
var stackLayoutStyles = __assign({ gap: ""
|
|
66
|
+
var stackLayoutStyles = __assign({ gap: "".concat(typeof props.gap === 'number' ? props.gap + 'px' : props.gap) }, style);
|
|
67
67
|
return (React.createElement("div", { ref: elementRef, className: stackLayoutClasses, style: stackLayoutStyles, id: id || layoutId }, children));
|
|
68
68
|
});
|
|
69
69
|
var defaultProps = {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -20,4 +20,4 @@ import { StepProps } from './interfaces/StepProps';
|
|
|
20
20
|
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
|
-
export declare const Step: React.ForwardRefExoticComponent<Pick<StepProps,
|
|
23
|
+
export declare const Step: React.ForwardRefExoticComponent<Pick<StepProps, keyof StepProps> & React.RefAttributes<StepHandle | null>>;
|
package/dist/es/stepper/Step.js
CHANGED
|
@@ -14,8 +14,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
14
14
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
15
|
t[p] = s[p];
|
|
16
16
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
|
18
|
-
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
19
21
|
return t;
|
|
20
22
|
};
|
|
21
23
|
import * as React from 'react';
|
|
@@ -93,16 +95,16 @@ export var Step = React.forwardRef(function (props, target) {
|
|
|
93
95
|
'k-step-error': isValid !== undefined && !isValid,
|
|
94
96
|
'k-step-success': isValid
|
|
95
97
|
}, className); }, [index, numOfSteps, value, current, optional, disabled, focused, isValid, className]);
|
|
96
|
-
var itemStyles = React.useMemo(function () { return (__assign({ maxWidth: !isVertical ? "calc(100% / "
|
|
98
|
+
var itemStyles = React.useMemo(function () { return (__assign({ maxWidth: !isVertical ? "calc(100% / ".concat(numOfSteps, ")") : undefined, maxHeight: isVertical ? "calc(100% / ".concat(numOfSteps, ")") : undefined, pointerEvents: !allowClick ? 'none' : undefined }, style)); }, [isVertical, numOfSteps, style, allowClick]);
|
|
97
99
|
var validationIconClasses = (isValid
|
|
98
|
-
? successIcon ? ""
|
|
99
|
-
: errorIcon ? ""
|
|
100
|
+
? successIcon ? "".concat(successIcon) : 'k-icon k-i-check'
|
|
101
|
+
: errorIcon ? "".concat(errorIcon) : 'k-icon k-i-warning');
|
|
100
102
|
var validationIcons = (React.createElement("span", { className: 'k-step-indicator-icon ' + validationIconClasses, "aria-hidden": "true" }));
|
|
101
103
|
var stepIndicator = (React.createElement(React.Fragment, null, mode !== 'labels' ?
|
|
102
104
|
React.createElement("span", { className: "k-step-indicator", "aria-hidden": true, style: { transitionDuration: progressAnimation + 'ms' } }, icon
|
|
103
105
|
? !isInLabel && isValid !== undefined
|
|
104
106
|
? validationIcons
|
|
105
|
-
: React.createElement("span", { className: "k-step-indicator-icon k-icon "
|
|
107
|
+
: React.createElement("span", { className: "k-step-indicator-icon k-icon ".concat(icon) })
|
|
106
108
|
: isValid !== undefined
|
|
107
109
|
? validationIcons
|
|
108
110
|
: React.createElement("span", { className: "k-step-indicator-text" }, text ? text : index + 1)) :
|
|
@@ -20,4 +20,4 @@ import { StepperHandle } from './interfaces/StepperHandle';
|
|
|
20
20
|
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
|
-
export declare const Stepper: React.ForwardRefExoticComponent<StepperProps & React.RefAttributes<StepperHandle>>;
|
|
23
|
+
export declare const Stepper: React.ForwardRefExoticComponent<StepperProps & React.RefAttributes<StepperHandle | null>>;
|
|
@@ -188,15 +188,18 @@ export var Stepper = React.forwardRef(function (props, target) {
|
|
|
188
188
|
});
|
|
189
189
|
Stepper.propTypes = {
|
|
190
190
|
animationDuration: PropTypes.oneOfType([PropTypes.bool, PropTypes.number]),
|
|
191
|
+
children: PropTypes.any,
|
|
191
192
|
className: PropTypes.string,
|
|
192
193
|
dir: PropTypes.string,
|
|
193
194
|
disabled: PropTypes.bool,
|
|
195
|
+
errorIcon: PropTypes.string,
|
|
194
196
|
item: PropTypes.any,
|
|
195
|
-
items: PropTypes.
|
|
197
|
+
items: PropTypes.any,
|
|
196
198
|
linear: PropTypes.bool,
|
|
197
199
|
mode: PropTypes.oneOf(['steps', 'labels']),
|
|
198
200
|
orientation: PropTypes.oneOf(['horizontal', 'vertical']),
|
|
199
201
|
style: PropTypes.object,
|
|
202
|
+
successIcon: PropTypes.string,
|
|
200
203
|
value: PropTypes.number.isRequired,
|
|
201
204
|
onChange: PropTypes.func,
|
|
202
205
|
onFocus: PropTypes.func
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 __());
|
|
@@ -162,7 +164,7 @@ var TabStrip = /** @class */ (function (_super) {
|
|
|
162
164
|
*/
|
|
163
165
|
TabStrip.prototype.render = function () {
|
|
164
166
|
var _this = this;
|
|
165
|
-
var tabProps = __assign({}, this.props, { children: this.children(), onKeyDown: this.onKeyDown, onSelect: this.onSelect });
|
|
167
|
+
var tabProps = __assign(__assign({}, this.props), { children: this.children(), onKeyDown: this.onKeyDown, onSelect: this.onSelect });
|
|
166
168
|
var tabPosition = tabProps.tabPosition, _a = tabProps.tabIndex, tabIndex = _a === void 0 ? 0 : _a;
|
|
167
169
|
var bottom = tabPosition === 'bottom';
|
|
168
170
|
var componentClasses = classNames('k-tabstrip', 'k-floatwrap', {
|
|
@@ -24,6 +24,10 @@ export interface TabStripContentProps {
|
|
|
24
24
|
* @hidden
|
|
25
25
|
*/
|
|
26
26
|
keepTabsMounted?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* @hidden
|
|
29
|
+
*/
|
|
30
|
+
children?: React.ReactNode;
|
|
27
31
|
}
|
|
28
32
|
export declare class TabStripContent extends React.Component<TabStripContentProps, {}> {
|
|
29
33
|
/**
|
|
@@ -31,7 +35,7 @@ export declare class TabStripContent extends React.Component<TabStripContentProp
|
|
|
31
35
|
*/
|
|
32
36
|
static propTypes: {
|
|
33
37
|
animation: PropTypes.Requireable<boolean>;
|
|
34
|
-
children: PropTypes.Requireable<PropTypes.ReactElementLike | PropTypes.ReactElementLike[]>;
|
|
38
|
+
children: PropTypes.Requireable<PropTypes.ReactElementLike | (PropTypes.ReactElementLike | null | undefined)[]>;
|
|
35
39
|
selected: PropTypes.Requireable<number>;
|
|
36
40
|
style: PropTypes.Requireable<object>;
|
|
37
41
|
};
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -32,7 +34,7 @@ var TabStripContent = /** @class */ (function (_super) {
|
|
|
32
34
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
33
35
|
_this.contentId = guid();
|
|
34
36
|
_this.childFactory = function (child) {
|
|
35
|
-
return React.cloneElement(child, __assign({}, child.props, { in: child.props.children.props.id === String(_this.contentId + _this.props.selected) }));
|
|
37
|
+
return React.cloneElement(child, __assign(__assign({}, child.props), { in: child.props.children.props.id === String(_this.contentId + _this.props.selected) }));
|
|
36
38
|
};
|
|
37
39
|
return _this;
|
|
38
40
|
}
|
|
@@ -34,7 +34,7 @@ export declare class TabStripNavigation extends React.Component<TabStripNavigati
|
|
|
34
34
|
* @hidden
|
|
35
35
|
*/
|
|
36
36
|
static propTypes: {
|
|
37
|
-
children: PropTypes.Requireable<PropTypes.ReactElementLike | PropTypes.ReactElementLike[]>;
|
|
37
|
+
children: PropTypes.Requireable<PropTypes.ReactElementLike | (PropTypes.ReactElementLike | null | undefined)[]>;
|
|
38
38
|
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
39
39
|
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
40
40
|
selected: PropTypes.Requireable<number>;
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
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 __());
|
|
@@ -28,7 +28,11 @@ export declare class TabStripTab extends React.Component<TabStripTabProps, {}> {
|
|
|
28
28
|
static propTypes: {
|
|
29
29
|
disabled: PropTypes.Requireable<boolean>;
|
|
30
30
|
contentClassName: PropTypes.Requireable<string>;
|
|
31
|
-
children: PropTypes.Requireable<PropTypes.
|
|
32
|
-
title: PropTypes.Requireable<PropTypes.
|
|
31
|
+
children: PropTypes.Requireable<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
32
|
+
title: PropTypes.Requireable<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
33
33
|
};
|
|
34
|
+
/**
|
|
35
|
+
* @hidden
|
|
36
|
+
*/
|
|
37
|
+
render(): null;
|
|
34
38
|
}
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -18,6 +20,12 @@ var TabStripTab = /** @class */ (function (_super) {
|
|
|
18
20
|
function TabStripTab() {
|
|
19
21
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
20
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
TabStripTab.prototype.render = function () {
|
|
27
|
+
return null;
|
|
28
|
+
};
|
|
21
29
|
/**
|
|
22
30
|
* @hidden
|
|
23
31
|
*/
|
|
@@ -9,6 +9,7 @@ export interface InternalTileProps extends TileLayoutItem {
|
|
|
9
9
|
index: number;
|
|
10
10
|
defaultPosition: TileStrictPosition;
|
|
11
11
|
ignoreDrag?: (event: any) => boolean;
|
|
12
|
+
children?: React.ReactNode;
|
|
12
13
|
}
|
|
13
14
|
/**
|
|
14
15
|
* @hidden
|
|
@@ -42,7 +43,7 @@ export declare class InternalTile extends React.Component<InternalTileProps, {
|
|
|
42
43
|
resizable: boolean;
|
|
43
44
|
reorderable: boolean;
|
|
44
45
|
};
|
|
45
|
-
protected
|
|
46
|
+
protected get reorderable(): boolean;
|
|
46
47
|
state: {
|
|
47
48
|
rtl: boolean;
|
|
48
49
|
};
|
|
@@ -53,7 +54,7 @@ export declare class InternalTile extends React.Component<InternalTileProps, {
|
|
|
53
54
|
dragging: boolean;
|
|
54
55
|
resizing: boolean;
|
|
55
56
|
element: HTMLElement | null;
|
|
56
|
-
|
|
57
|
+
get dragElement(): HTMLElement | null | undefined;
|
|
57
58
|
ignoreDrag: boolean;
|
|
58
59
|
pressOffset: {
|
|
59
60
|
x: number;
|
|
@@ -80,7 +81,7 @@ export declare class InternalTile extends React.Component<InternalTileProps, {
|
|
|
80
81
|
/**
|
|
81
82
|
* @hidden
|
|
82
83
|
*/
|
|
83
|
-
getSnapshotBeforeUpdate(_: any):
|
|
84
|
+
getSnapshotBeforeUpdate(_: any): null;
|
|
84
85
|
/**
|
|
85
86
|
* @hidden
|
|
86
87
|
*/
|