@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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StepperOnNavigateEvent = void 0;
|
|
3
4
|
/**
|
|
4
5
|
* The `StepperOnNavigateEvent` event.
|
|
5
6
|
*/
|
|
@@ -8,6 +9,7 @@ var StepperOnNavigateEvent = /** @class */ (function () {
|
|
|
8
9
|
* @hidden
|
|
9
10
|
*/
|
|
10
11
|
function StepperOnNavigateEvent(target, prevIndex, nextIndex) {
|
|
12
|
+
this.syntheticEvent = null;
|
|
11
13
|
this.target = target;
|
|
12
14
|
this.prevIndex = prevIndex;
|
|
13
15
|
this.nextIndex = nextIndex;
|
|
@@ -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.TabStrip = void 0;
|
|
27
30
|
var React = require("react");
|
|
28
31
|
var PropTypes = require("prop-types");
|
|
29
32
|
var TabStripNavigation_1 = require("./TabStripNavigation");
|
|
@@ -156,7 +159,7 @@ var TabStrip = /** @class */ (function (_super) {
|
|
|
156
159
|
}
|
|
157
160
|
}
|
|
158
161
|
};
|
|
159
|
-
kendo_react_common_1.validatePackage(package_metadata_1.packageMetadata);
|
|
162
|
+
(0, kendo_react_common_1.validatePackage)(package_metadata_1.packageMetadata);
|
|
160
163
|
return _this;
|
|
161
164
|
}
|
|
162
165
|
/**
|
|
@@ -164,10 +167,10 @@ var TabStrip = /** @class */ (function (_super) {
|
|
|
164
167
|
*/
|
|
165
168
|
TabStrip.prototype.render = function () {
|
|
166
169
|
var _this = this;
|
|
167
|
-
var tabProps = __assign({}, this.props, { children: this.children(), onKeyDown: this.onKeyDown, onSelect: this.onSelect });
|
|
170
|
+
var tabProps = __assign(__assign({}, this.props), { children: this.children(), onKeyDown: this.onKeyDown, onSelect: this.onSelect });
|
|
168
171
|
var tabPosition = tabProps.tabPosition, _a = tabProps.tabIndex, tabIndex = _a === void 0 ? 0 : _a;
|
|
169
172
|
var bottom = tabPosition === 'bottom';
|
|
170
|
-
var componentClasses = kendo_react_common_1.classNames('k-tabstrip', 'k-floatwrap', {
|
|
173
|
+
var componentClasses = (0, kendo_react_common_1.classNames)('k-tabstrip', 'k-floatwrap', {
|
|
171
174
|
'k-tabstrip-left': tabPosition === 'left',
|
|
172
175
|
'k-tabstrip-right': tabPosition === 'right',
|
|
173
176
|
'k-tabstrip-bottom': tabPosition === 'bottom',
|
|
@@ -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
|
};
|
|
@@ -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.TabStripContent = void 0;
|
|
27
30
|
var React = require("react");
|
|
28
31
|
var PropTypes = require("prop-types");
|
|
29
32
|
var kendo_react_animation_1 = require("@progress/kendo-react-animation");
|
|
@@ -32,9 +35,9 @@ var TabStripContent = /** @class */ (function (_super) {
|
|
|
32
35
|
__extends(TabStripContent, _super);
|
|
33
36
|
function TabStripContent() {
|
|
34
37
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
35
|
-
_this.contentId = kendo_react_common_1.guid();
|
|
38
|
+
_this.contentId = (0, kendo_react_common_1.guid)();
|
|
36
39
|
_this.childFactory = function (child) {
|
|
37
|
-
return React.cloneElement(child, __assign({}, child.props, { in: child.props.children.props.id === String(_this.contentId + _this.props.selected) }));
|
|
40
|
+
return React.cloneElement(child, __assign(__assign({}, child.props), { in: child.props.children.props.id === String(_this.contentId + _this.props.selected) }));
|
|
38
41
|
};
|
|
39
42
|
return _this;
|
|
40
43
|
}
|
|
@@ -45,7 +48,7 @@ var TabStripContent = /** @class */ (function (_super) {
|
|
|
45
48
|
var _a = this.props, children = _a.children, selected = _a.selected;
|
|
46
49
|
var selectedTab = children && typeof selected === 'number' &&
|
|
47
50
|
React.Children.toArray(children)[selected];
|
|
48
|
-
var contentClasses = kendo_react_common_1.classNames('k-content', 'k-active', selectedTab && selectedTab.props.contentClassName);
|
|
51
|
+
var contentClasses = (0, kendo_react_common_1.classNames)('k-content', 'k-active', selectedTab && selectedTab.props.contentClassName);
|
|
49
52
|
return (React.createElement("div", { className: contentClasses, style: this.props.style }, this.renderContent(children)));
|
|
50
53
|
};
|
|
51
54
|
TabStripContent.prototype.renderContent = function (children) {
|
|
@@ -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>;
|
|
@@ -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.TabStripNavigation = void 0;
|
|
27
30
|
var React = require("react");
|
|
28
31
|
var PropTypes = require("prop-types");
|
|
29
32
|
var TabStripNavigationItem_1 = require("./TabStripNavigationItem");
|
|
@@ -60,11 +63,11 @@ var TabStripNavigation = /** @class */ (function (_super) {
|
|
|
60
63
|
return (React.createElement(TabStripNavigationItem_1.TabStripNavigationItem, __assign({ key: index }, tabProps)));
|
|
61
64
|
});
|
|
62
65
|
}
|
|
63
|
-
var wrapperClasses = kendo_react_common_1.classNames('k-tabstrip-items-wrapper', {
|
|
66
|
+
var wrapperClasses = (0, kendo_react_common_1.classNames)('k-tabstrip-items-wrapper', {
|
|
64
67
|
'k-hstack': tabPosition === 'top' || tabPosition === 'bottom',
|
|
65
68
|
'k-vstack': tabPosition === 'left' || tabPosition === 'right'
|
|
66
69
|
});
|
|
67
|
-
var navClasses = kendo_react_common_1.classNames('k-tabstrip-items', 'k-reset');
|
|
70
|
+
var navClasses = (0, kendo_react_common_1.classNames)('k-tabstrip-items', 'k-reset');
|
|
68
71
|
return (React.createElement("div", { className: wrapperClasses },
|
|
69
72
|
React.createElement("ul", { className: navClasses, role: 'tablist', tabIndex: this.props.tabIndex, onKeyDown: onKeyDown }, tabs)));
|
|
70
73
|
};
|
|
@@ -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.TabStripNavigationItem = 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");
|
|
@@ -53,7 +56,7 @@ var TabStripNavigationItem = /** @class */ (function (_super) {
|
|
|
53
56
|
'role': 'tab',
|
|
54
57
|
onClick: !disabled ? this.onClick : undefined
|
|
55
58
|
};
|
|
56
|
-
var itemClasses = kendo_react_common_1.classNames('k-item', (_a = {},
|
|
59
|
+
var itemClasses = (0, kendo_react_common_1.classNames)('k-item', (_a = {},
|
|
57
60
|
_a['k-first'] = first,
|
|
58
61
|
_a['k-last'] = last,
|
|
59
62
|
_a['k-disabled'] = disabled,
|
|
@@ -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
|
}
|
|
@@ -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.TabStripTab = void 0;
|
|
16
19
|
var React = require("react");
|
|
17
20
|
var PropTypes = require("prop-types");
|
|
18
21
|
var TabStripTab = /** @class */ (function (_super) {
|
|
@@ -20,6 +23,12 @@ var TabStripTab = /** @class */ (function (_super) {
|
|
|
20
23
|
function TabStripTab() {
|
|
21
24
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
22
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* @hidden
|
|
28
|
+
*/
|
|
29
|
+
TabStripTab.prototype.render = function () {
|
|
30
|
+
return null;
|
|
31
|
+
};
|
|
23
32
|
/**
|
|
24
33
|
* @hidden
|
|
25
34
|
*/
|
|
@@ -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
|
*/
|
|
@@ -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.InternalTile = 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");
|
|
@@ -72,7 +75,7 @@ var InternalTile = /** @class */ (function (_super) {
|
|
|
72
75
|
else {
|
|
73
76
|
_this.dragElement.style.marginRight = -dX + 'px';
|
|
74
77
|
}
|
|
75
|
-
_this.dragElement.style.height = "calc(100% + "
|
|
78
|
+
_this.dragElement.style.height = "calc(100% + ".concat(dY, "px)");
|
|
76
79
|
}
|
|
77
80
|
_this.element.classList.add('k-layout-item-hint', 'k-layout-item-hint-resize');
|
|
78
81
|
if (_this.preventDataOps) {
|
|
@@ -99,9 +102,6 @@ var InternalTile = /** @class */ (function (_super) {
|
|
|
99
102
|
}
|
|
100
103
|
};
|
|
101
104
|
_this.handlePress = function (e) {
|
|
102
|
-
if (!_this.reorderable) {
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
105
|
if (!_this.dragElement) {
|
|
106
106
|
return;
|
|
107
107
|
}
|
|
@@ -127,7 +127,7 @@ var InternalTile = /** @class */ (function (_super) {
|
|
|
127
127
|
};
|
|
128
128
|
};
|
|
129
129
|
_this.handleDrag = function (e) {
|
|
130
|
-
if (
|
|
130
|
+
if (_this.ignoreDrag) {
|
|
131
131
|
return;
|
|
132
132
|
}
|
|
133
133
|
var dragElement = _this.dragElement;
|
|
@@ -141,7 +141,7 @@ var InternalTile = /** @class */ (function (_super) {
|
|
|
141
141
|
x: e.event.clientX - rec.x - _this.pressOffset.x + _this.currentTranslate.x,
|
|
142
142
|
y: e.event.clientY - rec.y - _this.pressOffset.y + _this.currentTranslate.y
|
|
143
143
|
};
|
|
144
|
-
dragElement.style.transform = "translate("
|
|
144
|
+
dragElement.style.transform = "translate(".concat(_this.currentTranslate.x, "px, ").concat(_this.currentTranslate.y, "px)");
|
|
145
145
|
dragElement.style.transition = 'transform 0s';
|
|
146
146
|
if (_this.preventDataOps) {
|
|
147
147
|
return;
|
|
@@ -163,9 +163,6 @@ var InternalTile = /** @class */ (function (_super) {
|
|
|
163
163
|
_this.props.update(_this.props.index, row, _this.state.rtl ? -col : col, 0, 0);
|
|
164
164
|
};
|
|
165
165
|
_this.handleRelease = function () {
|
|
166
|
-
if (!_this.reorderable) {
|
|
167
|
-
return;
|
|
168
|
-
}
|
|
169
166
|
_this.dragging = _this.resizing = false;
|
|
170
167
|
_this.currentTranslate = { x: 0, y: 0 };
|
|
171
168
|
if (_this.element) {
|
|
@@ -175,7 +172,7 @@ var InternalTile = /** @class */ (function (_super) {
|
|
|
175
172
|
var dragElement = _this.dragElement;
|
|
176
173
|
if (dragElement) {
|
|
177
174
|
dragElement.style.transform = 'translate(0px, 0px)';
|
|
178
|
-
dragElement.style.transition = "transform "
|
|
175
|
+
dragElement.style.transition = "transform ".concat(ANIMATION_DURATION, "ms cubic-bezier(0.2, 0, 0, 1) 0s");
|
|
179
176
|
dragElement.style.marginRight = '0px';
|
|
180
177
|
dragElement.style.marginLeft = '0px';
|
|
181
178
|
dragElement.style.height = '100%';
|
|
@@ -189,14 +186,14 @@ var InternalTile = /** @class */ (function (_super) {
|
|
|
189
186
|
get: function () {
|
|
190
187
|
return this.props.reorderable !== undefined ? this.props.reorderable : InternalTile.defaultProps.reorderable;
|
|
191
188
|
},
|
|
192
|
-
enumerable:
|
|
189
|
+
enumerable: false,
|
|
193
190
|
configurable: true
|
|
194
191
|
});
|
|
195
192
|
Object.defineProperty(InternalTile.prototype, "dragElement", {
|
|
196
193
|
get: function () {
|
|
197
194
|
return this.draggable ? this.draggable.element : undefined;
|
|
198
195
|
},
|
|
199
|
-
enumerable:
|
|
196
|
+
enumerable: false,
|
|
200
197
|
configurable: true
|
|
201
198
|
});
|
|
202
199
|
InternalTile.prototype.componentDidMount = function () {
|
|
@@ -217,12 +214,12 @@ var InternalTile = /** @class */ (function (_super) {
|
|
|
217
214
|
}
|
|
218
215
|
var position = this.props.defaultPosition;
|
|
219
216
|
var resizable = this.props.resizable !== undefined ? this.props.resizable : InternalTile.defaultProps.resizable;
|
|
220
|
-
var itemStyles = __assign({ gridColumnStart: position.col, gridColumnEnd: "span "
|
|
221
|
-
var card = (React.createElement("div", { ref: function (e) { _this.draggable = e ? ({ element: e }) : null; }, className: kendo_react_common_1.classNames('k-tilelayout-item k-card', { 'k-cursor-grab': this.reorderable }, this.props.className), style: __assign({ height: '100%' }, this.props.style) },
|
|
217
|
+
var itemStyles = __assign({ gridColumnStart: position.col, gridColumnEnd: "span ".concat(position.colSpan), gridRowStart: position.row, gridRowEnd: "span ".concat(position.rowSpan), outline: 'none', order: position.order }, this.props.hintStyle);
|
|
218
|
+
var card = (React.createElement("div", { ref: function (e) { _this.draggable = e ? ({ element: e }) : null; }, className: (0, kendo_react_common_1.classNames)('k-tilelayout-item k-card', { 'k-cursor-grab': this.reorderable }, this.props.className), style: __assign({ height: '100%' }, this.props.style) },
|
|
222
219
|
this.props.children,
|
|
223
220
|
React.createElement(ResizeHandlers_1.ResizeHandlers, { onPress: this.handlePress, onResize: this.handleResize, resizable: resizable, rtl: this.state.rtl })));
|
|
224
221
|
return (React.createElement("div", { ref: function (e) { _this.element = e; }, style: itemStyles, className: this.props.hintClassName },
|
|
225
|
-
React.createElement(kendo_react_common_1.Draggable, { ref: function (e) { _this.draggable = e; }, onDrag: this.handleDrag, onRelease: this.handleRelease, onPress: this.handlePress }, card)));
|
|
222
|
+
React.createElement(kendo_react_common_1.Draggable, { ref: function (e) { _this.draggable = e; }, onDrag: this.props.reorderable ? this.handleDrag : undefined, onRelease: this.props.reorderable ? this.handleRelease : undefined, onPress: this.props.reorderable ? this.handlePress : undefined }, card)));
|
|
226
223
|
};
|
|
227
224
|
/**
|
|
228
225
|
* @hidden
|
|
@@ -258,7 +255,7 @@ var InternalTile = /** @class */ (function (_super) {
|
|
|
258
255
|
this.pressXY.x += this.state.rtl ? -diffCol : diffCol;
|
|
259
256
|
var diffRow = newBox.height - oldBox.height;
|
|
260
257
|
var currentBot = parseFloat(dragElement.style.height.substring(12));
|
|
261
|
-
dragElement.style.height = "calc(100% + "
|
|
258
|
+
dragElement.style.height = "calc(100% + ".concat((currentBot + diffRow), "px)");
|
|
262
259
|
this.pressXY.y += diffRow;
|
|
263
260
|
}
|
|
264
261
|
var deltaX = oldBox.left - newBox.left;
|
|
@@ -284,11 +281,11 @@ var InternalTile = /** @class */ (function (_super) {
|
|
|
284
281
|
if (!domNode) {
|
|
285
282
|
return;
|
|
286
283
|
}
|
|
287
|
-
domNode.style.transform = "translate("
|
|
284
|
+
domNode.style.transform = "translate(".concat(deltaX, "px, ").concat(deltaY, "px)");
|
|
288
285
|
domNode.style.transition = 'transform 0s';
|
|
289
286
|
requestAnimationFrame(function () {
|
|
290
287
|
domNode.style.transform = '';
|
|
291
|
-
domNode.style.transition = "transform "
|
|
288
|
+
domNode.style.transition = "transform ".concat(ANIMATION_DURATION, "ms cubic-bezier(0.2, 0, 0, 1) 0s");
|
|
292
289
|
});
|
|
293
290
|
});
|
|
294
291
|
};
|
|
@@ -16,5 +16,5 @@ export interface ResizeHandlersProps {
|
|
|
16
16
|
*/
|
|
17
17
|
export declare class ResizeHandlers extends React.Component<ResizeHandlersProps, {}> {
|
|
18
18
|
handleResize: (event: any, isEnd: boolean, direction: any) => void;
|
|
19
|
-
render(): JSX.Element;
|
|
19
|
+
render(): JSX.Element | null;
|
|
20
20
|
}
|
|
@@ -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.ResizeHandlers = void 0;
|
|
27
30
|
var React = require("react");
|
|
28
31
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
29
32
|
/**
|
|
@@ -124,7 +124,7 @@ export declare class TileLayout extends React.Component<TileLayoutProps, TileLay
|
|
|
124
124
|
/**
|
|
125
125
|
* Gets the HTML element of the TileLayout component.
|
|
126
126
|
*/
|
|
127
|
-
|
|
127
|
+
get element(): HTMLDivElement | null;
|
|
128
128
|
/**
|
|
129
129
|
* @hidden
|
|
130
130
|
*/
|
|
@@ -138,7 +138,7 @@ export declare class TileLayout extends React.Component<TileLayoutProps, TileLay
|
|
|
138
138
|
rowSpan: number;
|
|
139
139
|
colSpan: number;
|
|
140
140
|
} & TilePosition)[];
|
|
141
|
-
};
|
|
141
|
+
} | null;
|
|
142
142
|
/**
|
|
143
143
|
* @hidden
|
|
144
144
|
*/
|
|
@@ -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.TileLayout = 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");
|
|
@@ -98,7 +101,7 @@ var TileLayout = /** @class */ (function (_super) {
|
|
|
98
101
|
}
|
|
99
102
|
if (shouldUpdate) {
|
|
100
103
|
_this.setState({ positions: positions });
|
|
101
|
-
kendo_react_common_1.dispatchEvent(_this.props.onReposition, {}, _this, { value: positions });
|
|
104
|
+
(0, kendo_react_common_1.dispatchEvent)(_this.props.onReposition, {}, _this, { value: positions });
|
|
102
105
|
}
|
|
103
106
|
};
|
|
104
107
|
return _this;
|
|
@@ -110,7 +113,7 @@ var TileLayout = /** @class */ (function (_super) {
|
|
|
110
113
|
get: function () {
|
|
111
114
|
return this._element;
|
|
112
115
|
},
|
|
113
|
-
enumerable:
|
|
116
|
+
enumerable: false,
|
|
114
117
|
configurable: true
|
|
115
118
|
});
|
|
116
119
|
/**
|
|
@@ -135,11 +138,11 @@ var TileLayout = /** @class */ (function (_super) {
|
|
|
135
138
|
var _this = this;
|
|
136
139
|
var _a = this.props, className = _a.className, _b = _a.columns, columns = _b === void 0 ? 3 : _b, _c = _a.columnWidth, columnWidth = _c === void 0 ? '1fr' : _c, gap = _a.gap, _d = _a.rowHeight, rowHeight = _d === void 0 ? '1fr' : _d, style = _a.style, _e = _a.autoFlow, autoFlow = _e === void 0 ? 'column' : _e, _f = _a.items, items = _f === void 0 ? [] : _f;
|
|
137
140
|
var gapValue = gap
|
|
138
|
-
? ""
|
|
141
|
+
? "".concat(typeof gap.rows === 'number' ? gap.rows + 'px' : gap.rows) + ' ' + "".concat(typeof gap.columns === 'number' ? gap.columns + 'px' : gap.columns)
|
|
139
142
|
: 16;
|
|
140
|
-
var tileLayoutStyles = __assign({ gridTemplateColumns: "repeat("
|
|
141
|
-
return (React.createElement("div", { ref: function (el) { _this._element = el; }, dir: this.props.dir, className: kendo_react_common_1.classNames('k-tilelayout', AUTO_FLOW_CLASSES[autoFlow], className), style: tileLayoutStyles, id: this.props.id, children: items.map(function (tile, index) {
|
|
142
|
-
return (React.createElement(InternalTile_1.InternalTile, { key: _this.props.dataItemKey ? kendo_react_common_1.getter(_this.props.dataItemKey)(tile) : index, update: _this.update, defaultPosition: _this.state.positions[index], index: index, resizable: tile.resizable, reorderable: tile.reorderable, style: tile.style, className: tile.className, hintClassName: tile.hintClassName, hintStyle: tile.hintStyle, ignoreDrag: _this.props.ignoreDrag }, tile.item ? tile.item : (React.createElement(React.Fragment, null,
|
|
143
|
+
var tileLayoutStyles = __assign({ gridTemplateColumns: "repeat(".concat(columns, ", minmax(0px, ").concat(typeof columnWidth === 'number' ? columnWidth + 'px' : columnWidth, "))"), gridAutoRows: "minmax(0px, ".concat(typeof rowHeight === 'number' ? rowHeight + 'px' : rowHeight, ")"), gap: gapValue, padding: gapValue }, style);
|
|
144
|
+
return (React.createElement("div", { ref: function (el) { _this._element = el; }, dir: this.props.dir, className: (0, kendo_react_common_1.classNames)('k-tilelayout', AUTO_FLOW_CLASSES[autoFlow], className), style: tileLayoutStyles, id: this.props.id, children: items.map(function (tile, index) {
|
|
145
|
+
return (React.createElement(InternalTile_1.InternalTile, { key: _this.props.dataItemKey ? (0, kendo_react_common_1.getter)(_this.props.dataItemKey)(tile) : index, update: _this.update, defaultPosition: _this.state.positions[index], index: index, resizable: tile.resizable, reorderable: tile.reorderable, style: tile.style, className: tile.className, hintClassName: tile.hintClassName, hintStyle: tile.hintStyle, ignoreDrag: _this.props.ignoreDrag }, tile.item ? tile.item : (React.createElement(React.Fragment, null,
|
|
143
146
|
React.createElement("div", { className: "k-tilelayout-item-header k-card-header" }, React.isValidElement(tile.header) ? tile.header : React.createElement("h5", { className: 'k-card-title' }, tile.header)),
|
|
144
147
|
React.createElement("div", { className: 'k-tilelayout-item-body k-card-body' }, tile.body)))));
|
|
145
148
|
}) }));
|