@progress/kendo-react-layout 5.4.0-dev.202205200719 → 5.4.0-dev.202206061009
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-react-layout.js +1 -1
- package/dist/es/appbar/AppBar.d.ts +1 -1
- package/dist/es/appbar/AppBarSection.d.ts +1 -1
- package/dist/es/appbar/AppBarSpacer.d.ts +1 -1
- package/dist/es/appbar/interfaces/AppBarProps.js +1 -0
- package/dist/es/appbar/interfaces/AppBarSectionProps.js +1 -0
- package/dist/es/appbar/interfaces/AppBarSpacerProps.d.ts +4 -0
- package/dist/es/appbar/interfaces/AppBarSpacerProps.js +1 -0
- package/dist/es/bottomnavigation/BottomNavigation.d.ts +1 -1
- package/dist/es/bottomnavigation/BottomNavigation.js +1 -1
- package/dist/es/bottomnavigation/BottomNavigationItem.d.ts +1 -1
- package/dist/es/bottomnavigation/BottomNavigationItem.js +1 -1
- package/dist/es/bottomnavigation/BottomNavigationItemProps.js +1 -0
- package/dist/es/bottomnavigation/BottomNavigationProps.js +1 -0
- package/dist/es/bottomnavigation/models/events.js +1 -0
- package/dist/es/bottomnavigation/models/utils.d.ts +16 -16
- package/dist/es/breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/es/breadcrumb/BreadcrumbDelimiter.d.ts +1 -1
- package/dist/es/breadcrumb/BreadcrumbDelimiter.js +0 -1
- package/dist/es/breadcrumb/BreadcrumbLink.d.ts +1 -1
- package/dist/es/breadcrumb/BreadcrumbListItem.d.ts +1 -1
- package/dist/es/breadcrumb/BreadcrumbListItem.js +0 -1
- package/dist/es/breadcrumb/BreadcrumbOrderedList.d.ts +1 -1
- package/dist/es/breadcrumb/BreadcrumbOrderedList.js +0 -1
- package/dist/es/card/Avatar.js +5 -5
- package/dist/es/card/Card.d.ts +1 -1
- package/dist/es/card/Card.js +6 -5
- package/dist/es/card/CardActions.js +1 -1
- package/dist/es/card/interfaces/AvatarProps.js +1 -0
- package/dist/es/card/interfaces/CardActionsProps.js +1 -0
- package/dist/es/card/interfaces/CardBodyProps.js +1 -0
- package/dist/es/card/interfaces/CardFooterProps.js +1 -0
- package/dist/es/card/interfaces/CardHandle.js +1 -0
- package/dist/es/card/interfaces/CardHeaderProps.js +1 -0
- package/dist/es/card/interfaces/CardImageProps.js +1 -0
- package/dist/es/card/interfaces/CardProps.js +1 -0
- package/dist/es/card/interfaces/CardSubtitleProps.js +1 -0
- package/dist/es/card/interfaces/CardTitleProps.js +1 -0
- package/dist/es/drawer/Drawer.d.ts +1 -1
- package/dist/es/drawer/Drawer.js +9 -4
- package/dist/es/drawer/DrawerContent.d.ts +1 -1
- package/dist/es/drawer/DrawerItem.d.ts +1 -1
- package/dist/es/drawer/DrawerItem.js +6 -4
- package/dist/es/drawer/DrawerNavigation.d.ts +1 -1
- package/dist/es/drawer/DrawerNavigation.js +2 -2
- package/dist/es/drawer/context/DrawerContext.d.ts +1 -1
- package/dist/es/drawer/interfaces/DrawerAnimation.js +1 -0
- package/dist/es/drawer/interfaces/DrawerContentProps.js +1 -0
- package/dist/es/drawer/interfaces/DrawerItemHandle.js +1 -0
- package/dist/es/drawer/interfaces/DrawerItemProps.d.ts +1 -1
- package/dist/es/drawer/interfaces/DrawerItemProps.js +1 -0
- package/dist/es/drawer/interfaces/DrawerNavigationProps.js +1 -0
- package/dist/es/drawer/interfaces/DrawerProps.js +1 -0
- package/dist/es/drawer/interfaces/DrawerSelectEvent.js +1 -0
- package/dist/es/expansionpanel/ExpansionPanel.d.ts +1 -1
- package/dist/es/expansionpanel/index.js +1 -0
- package/dist/es/expansionpanel/interfaces.js +1 -0
- package/dist/es/gridlayout/GridLayout.d.ts +1 -1
- package/dist/es/gridlayout/GridLayout.js +3 -3
- package/dist/es/gridlayout/GridLayoutItem.d.ts +1 -1
- package/dist/es/gridlayout/GridLayoutItem.js +1 -1
- package/dist/es/gridlayout/interfaces/GridLayoutColumnProps.js +1 -0
- package/dist/es/gridlayout/interfaces/GridLayoutItemProps.js +1 -0
- package/dist/es/gridlayout/interfaces/GridLayoutProps.js +1 -0
- package/dist/es/gridlayout/interfaces/GridLayoutRowProps.js +1 -0
- package/dist/es/main.js +37 -0
- package/dist/es/menu/BaseMenuItemInternalProps.js +1 -0
- package/dist/es/menu/MenuProps.js +1 -0
- package/dist/es/menu/components/Menu.d.ts +2 -2
- package/dist/es/menu/components/Menu.js +5 -1
- package/dist/es/menu/components/MenuItem.d.ts +1 -1
- package/dist/es/menu/components/MenuItem.js +3 -1
- package/dist/es/menu/components/MenuItemArrow.js +3 -1
- package/dist/es/menu/components/MenuItemInternal.d.ts +4 -4
- package/dist/es/menu/components/MenuItemInternal.js +8 -6
- package/dist/es/menu/components/MenuItemInternalsList.js +3 -1
- package/dist/es/menu/components/MenuItemLink.js +3 -1
- package/dist/es/menu/events.js +1 -0
- package/dist/es/menu/models/BaseMenuItem.d.ts +4 -0
- package/dist/es/menu/models/BaseMenuItem.js +1 -0
- package/dist/es/menu/models/MenuItemModel.js +1 -0
- package/dist/es/menu/utils/DirectionHolder.d.ts +1 -1
- package/dist/es/menu/utils/MouseOverHandler.d.ts +2 -2
- package/dist/es/menu/utils/MouseOverHandler.js +3 -2
- package/dist/es/menu/utils/misc.js +1 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/panelbar/PanelBar.d.ts +6 -6
- package/dist/es/panelbar/PanelBar.js +19 -8
- package/dist/es/panelbar/PanelBarItem.js +6 -4
- package/dist/es/panelbar/interfaces/PanelBarItemClickEventArguments.js +1 -0
- package/dist/es/panelbar/interfaces/PanelBarItemProps.js +1 -0
- package/dist/es/panelbar/interfaces/PanelBarProps.js +1 -0
- package/dist/es/panelbar/interfaces/PanelBarSelectEventArguments.js +1 -0
- package/dist/es/panelbar/interfaces/RenderPanelBarItem.js +1 -0
- package/dist/es/panelbar/util.js +14 -5
- package/dist/es/splitter/Splitter.d.ts +5 -5
- package/dist/es/splitter/Splitter.js +20 -17
- package/dist/es/splitter/SplitterBar.d.ts +3 -3
- package/dist/es/splitter/SplitterBar.js +8 -5
- package/dist/es/splitter/SplitterPane.js +3 -1
- package/dist/es/stacklayout/StackLayout.d.ts +1 -1
- package/dist/es/stacklayout/StackLayout.js +1 -1
- package/dist/es/stacklayout/StackLayoutProps.js +1 -0
- package/dist/es/stepper/Step.d.ts +1 -1
- package/dist/es/stepper/Step.js +8 -6
- package/dist/es/stepper/Stepper.d.ts +1 -1
- package/dist/es/stepper/Stepper.js +4 -1
- package/dist/es/stepper/interfaces/StepChangeEvent.js +1 -0
- package/dist/es/stepper/interfaces/StepFocusEvent.js +1 -0
- package/dist/es/stepper/interfaces/StepHandle.js +1 -0
- package/dist/es/stepper/interfaces/StepProps.js +1 -0
- package/dist/es/stepper/interfaces/StepperChangeEvent.js +1 -0
- package/dist/es/stepper/interfaces/StepperFocusEvent.js +1 -0
- package/dist/es/stepper/interfaces/StepperHandle.js +1 -0
- package/dist/es/stepper/interfaces/StepperOnNavigateEvent.js +1 -0
- package/dist/es/stepper/interfaces/StepperProps.js +1 -0
- package/dist/es/stepper/messages/index.d.ts +1 -1
- package/dist/es/tabstrip/TabStrip.js +4 -2
- package/dist/es/tabstrip/TabStripContent.d.ts +5 -1
- package/dist/es/tabstrip/TabStripContent.js +4 -2
- package/dist/es/tabstrip/TabStripNavigation.d.ts +1 -1
- package/dist/es/tabstrip/TabStripNavigation.js +3 -1
- package/dist/es/tabstrip/TabStripNavigationItem.js +3 -1
- package/dist/es/tabstrip/TabStripTab.d.ts +6 -2
- package/dist/es/tabstrip/TabStripTab.js +9 -1
- package/dist/es/tilelayout/InternalTile.d.ts +4 -3
- package/dist/es/tilelayout/InternalTile.js +12 -10
- package/dist/es/tilelayout/ResizeHandlers.d.ts +1 -1
- package/dist/es/tilelayout/ResizeHandlers.js +3 -1
- package/dist/es/tilelayout/TileLayout.d.ts +2 -2
- package/dist/es/tilelayout/TileLayout.js +6 -4
- package/dist/es/tilelayout/interfaces/main.js +1 -0
- package/dist/npm/appbar/AppBar.d.ts +1 -1
- package/dist/npm/appbar/AppBar.js +5 -4
- package/dist/npm/appbar/AppBarSection.d.ts +1 -1
- package/dist/npm/appbar/AppBarSection.js +3 -2
- package/dist/npm/appbar/AppBarSpacer.d.ts +1 -1
- package/dist/npm/appbar/AppBarSpacer.js +3 -2
- package/dist/npm/appbar/interfaces/AppBarSpacerProps.d.ts +4 -0
- package/dist/npm/bottomnavigation/BottomNavigation.d.ts +1 -1
- package/dist/npm/bottomnavigation/BottomNavigation.js +9 -8
- package/dist/npm/bottomnavigation/BottomNavigationItem.d.ts +1 -1
- package/dist/npm/bottomnavigation/BottomNavigationItem.js +4 -3
- package/dist/npm/bottomnavigation/models/utils.d.ts +16 -16
- package/dist/npm/bottomnavigation/models/utils.js +1 -0
- package/dist/npm/breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/npm/breadcrumb/Breadcrumb.js +6 -5
- package/dist/npm/breadcrumb/BreadcrumbDelimiter.d.ts +1 -1
- package/dist/npm/breadcrumb/BreadcrumbDelimiter.js +3 -3
- package/dist/npm/breadcrumb/BreadcrumbLink.d.ts +1 -1
- package/dist/npm/breadcrumb/BreadcrumbLink.js +6 -5
- package/dist/npm/breadcrumb/BreadcrumbListItem.d.ts +1 -1
- package/dist/npm/breadcrumb/BreadcrumbListItem.js +3 -3
- package/dist/npm/breadcrumb/BreadcrumbOrderedList.d.ts +1 -1
- package/dist/npm/breadcrumb/BreadcrumbOrderedList.js +3 -3
- package/dist/npm/card/Avatar.js +10 -8
- package/dist/npm/card/Card.d.ts +1 -1
- package/dist/npm/card/Card.js +8 -6
- package/dist/npm/card/CardActions.js +4 -2
- package/dist/npm/card/CardBody.js +4 -2
- package/dist/npm/card/CardFooter.js +4 -2
- package/dist/npm/card/CardHeader.js +4 -2
- package/dist/npm/card/CardImage.js +4 -2
- package/dist/npm/card/CardSubtitle.js +4 -2
- package/dist/npm/card/CardTitle.js +4 -2
- package/dist/npm/card/interfaces/Enums.js +1 -0
- package/dist/npm/drawer/Drawer.d.ts +1 -1
- package/dist/npm/drawer/Drawer.js +13 -7
- package/dist/npm/drawer/DrawerContent.d.ts +1 -1
- package/dist/npm/drawer/DrawerContent.js +2 -1
- package/dist/npm/drawer/DrawerItem.d.ts +1 -1
- package/dist/npm/drawer/DrawerItem.js +9 -6
- package/dist/npm/drawer/DrawerNavigation.d.ts +1 -1
- package/dist/npm/drawer/DrawerNavigation.js +4 -3
- package/dist/npm/drawer/context/DrawerContext.d.ts +1 -1
- package/dist/npm/drawer/context/DrawerContext.js +1 -0
- package/dist/npm/drawer/interfaces/DrawerItemProps.d.ts +1 -1
- package/dist/npm/expansionpanel/ExpansionPanel.d.ts +1 -1
- package/dist/npm/expansionpanel/ExpansionPanel.js +8 -7
- package/dist/npm/expansionpanel/ExpansionPanelContent.js +2 -1
- package/dist/npm/expansionpanel/index.js +17 -5
- package/dist/npm/gridlayout/GridLayout.d.ts +1 -1
- package/dist/npm/gridlayout/GridLayout.js +7 -6
- package/dist/npm/gridlayout/GridLayoutItem.d.ts +1 -1
- package/dist/npm/gridlayout/GridLayoutItem.js +4 -3
- package/dist/npm/main.js +95 -47
- package/dist/npm/menu/components/Menu.d.ts +2 -2
- package/dist/npm/menu/components/Menu.js +22 -17
- package/dist/npm/menu/components/MenuItem.d.ts +1 -1
- package/dist/npm/menu/components/MenuItem.js +4 -1
- package/dist/npm/menu/components/MenuItemArrow.js +6 -3
- package/dist/npm/menu/components/MenuItemInternal.d.ts +4 -4
- package/dist/npm/menu/components/MenuItemInternal.js +17 -14
- package/dist/npm/menu/components/MenuItemInternalsList.js +5 -2
- package/dist/npm/menu/components/MenuItemLink.js +6 -3
- package/dist/npm/menu/consts.js +1 -0
- package/dist/npm/menu/models/BaseMenuItem.d.ts +4 -0
- package/dist/npm/menu/utils/DirectionHolder.d.ts +1 -1
- package/dist/npm/menu/utils/DirectionHolder.js +1 -0
- package/dist/npm/menu/utils/MouseOverHandler.d.ts +2 -2
- package/dist/npm/menu/utils/MouseOverHandler.js +4 -2
- package/dist/npm/menu/utils/getNewItemIdUponKeyboardNavigation.js +25 -24
- package/dist/npm/menu/utils/hoverDelay.js +1 -0
- package/dist/npm/menu/utils/itemsIdsUtils.js +1 -0
- package/dist/npm/menu/utils/misc.js +3 -2
- package/dist/npm/menu/utils/prepareInputItemsForInternalWork.js +3 -2
- package/dist/npm/package-metadata.js +2 -1
- package/dist/npm/panelbar/PanelBar.d.ts +6 -6
- package/dist/npm/panelbar/PanelBar.js +28 -16
- package/dist/npm/panelbar/PanelBarItem.js +11 -8
- package/dist/npm/panelbar/interfaces/NavigationAction.js +1 -0
- package/dist/npm/panelbar/util.js +26 -11
- package/dist/npm/splitter/Splitter.d.ts +5 -5
- package/dist/npm/splitter/Splitter.js +22 -18
- package/dist/npm/splitter/SplitterBar.d.ts +3 -3
- package/dist/npm/splitter/SplitterBar.js +12 -8
- package/dist/npm/splitter/SplitterPane.js +5 -2
- package/dist/npm/stacklayout/StackLayout.d.ts +1 -1
- package/dist/npm/stacklayout/StackLayout.js +5 -4
- package/dist/npm/stepper/Step.d.ts +1 -1
- package/dist/npm/stepper/Step.js +14 -11
- package/dist/npm/stepper/Stepper.d.ts +1 -1
- package/dist/npm/stepper/Stepper.js +12 -8
- package/dist/npm/stepper/contants.js +1 -0
- package/dist/npm/stepper/context/StepperContext.js +1 -0
- package/dist/npm/stepper/interfaces/StepperOnNavigateEvent.js +2 -0
- package/dist/npm/stepper/messages/index.d.ts +1 -1
- package/dist/npm/stepper/messages/index.js +2 -1
- package/dist/npm/tabstrip/TabStrip.js +7 -4
- package/dist/npm/tabstrip/TabStripContent.d.ts +5 -1
- package/dist/npm/tabstrip/TabStripContent.js +7 -4
- package/dist/npm/tabstrip/TabStripNavigation.d.ts +1 -1
- package/dist/npm/tabstrip/TabStripNavigation.js +6 -3
- package/dist/npm/tabstrip/TabStripNavigationItem.js +5 -2
- package/dist/npm/tabstrip/TabStripTab.d.ts +6 -2
- package/dist/npm/tabstrip/TabStripTab.js +10 -1
- package/dist/npm/tilelayout/InternalTile.d.ts +4 -3
- package/dist/npm/tilelayout/InternalTile.js +14 -11
- package/dist/npm/tilelayout/ResizeHandlers.d.ts +1 -1
- package/dist/npm/tilelayout/ResizeHandlers.js +4 -1
- package/dist/npm/tilelayout/TileLayout.d.ts +2 -2
- package/dist/npm/tilelayout/TileLayout.js +10 -7
- package/dist/systemjs/kendo-react-layout.js +1 -1
- package/package.json +14 -14
|
@@ -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)[]>;
|
|
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)[]>;
|
|
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
|
*/
|
|
@@ -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 __());
|
|
@@ -70,7 +72,7 @@ var InternalTile = /** @class */ (function (_super) {
|
|
|
70
72
|
else {
|
|
71
73
|
_this.dragElement.style.marginRight = -dX + 'px';
|
|
72
74
|
}
|
|
73
|
-
_this.dragElement.style.height = "calc(100% + "
|
|
75
|
+
_this.dragElement.style.height = "calc(100% + ".concat(dY, "px)");
|
|
74
76
|
}
|
|
75
77
|
_this.element.classList.add('k-layout-item-hint', 'k-layout-item-hint-resize');
|
|
76
78
|
if (_this.preventDataOps) {
|
|
@@ -139,7 +141,7 @@ var InternalTile = /** @class */ (function (_super) {
|
|
|
139
141
|
x: e.event.clientX - rec.x - _this.pressOffset.x + _this.currentTranslate.x,
|
|
140
142
|
y: e.event.clientY - rec.y - _this.pressOffset.y + _this.currentTranslate.y
|
|
141
143
|
};
|
|
142
|
-
dragElement.style.transform = "translate("
|
|
144
|
+
dragElement.style.transform = "translate(".concat(_this.currentTranslate.x, "px, ").concat(_this.currentTranslate.y, "px)");
|
|
143
145
|
dragElement.style.transition = 'transform 0s';
|
|
144
146
|
if (_this.preventDataOps) {
|
|
145
147
|
return;
|
|
@@ -173,7 +175,7 @@ var InternalTile = /** @class */ (function (_super) {
|
|
|
173
175
|
var dragElement = _this.dragElement;
|
|
174
176
|
if (dragElement) {
|
|
175
177
|
dragElement.style.transform = 'translate(0px, 0px)';
|
|
176
|
-
dragElement.style.transition = "transform "
|
|
178
|
+
dragElement.style.transition = "transform ".concat(ANIMATION_DURATION, "ms cubic-bezier(0.2, 0, 0, 1) 0s");
|
|
177
179
|
dragElement.style.marginRight = '0px';
|
|
178
180
|
dragElement.style.marginLeft = '0px';
|
|
179
181
|
dragElement.style.height = '100%';
|
|
@@ -187,14 +189,14 @@ var InternalTile = /** @class */ (function (_super) {
|
|
|
187
189
|
get: function () {
|
|
188
190
|
return this.props.reorderable !== undefined ? this.props.reorderable : InternalTile.defaultProps.reorderable;
|
|
189
191
|
},
|
|
190
|
-
enumerable:
|
|
192
|
+
enumerable: false,
|
|
191
193
|
configurable: true
|
|
192
194
|
});
|
|
193
195
|
Object.defineProperty(InternalTile.prototype, "dragElement", {
|
|
194
196
|
get: function () {
|
|
195
197
|
return this.draggable ? this.draggable.element : undefined;
|
|
196
198
|
},
|
|
197
|
-
enumerable:
|
|
199
|
+
enumerable: false,
|
|
198
200
|
configurable: true
|
|
199
201
|
});
|
|
200
202
|
InternalTile.prototype.componentDidMount = function () {
|
|
@@ -215,7 +217,7 @@ var InternalTile = /** @class */ (function (_super) {
|
|
|
215
217
|
}
|
|
216
218
|
var position = this.props.defaultPosition;
|
|
217
219
|
var resizable = this.props.resizable !== undefined ? this.props.resizable : InternalTile.defaultProps.resizable;
|
|
218
|
-
var itemStyles = __assign({ gridColumnStart: position.col, gridColumnEnd: "span "
|
|
220
|
+
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);
|
|
219
221
|
var card = (React.createElement("div", { ref: function (e) { _this.draggable = e ? ({ element: e }) : null; }, className: classNames('k-tilelayout-item k-card', { 'k-cursor-grab': this.reorderable }, this.props.className), style: __assign({ height: '100%' }, this.props.style) },
|
|
220
222
|
this.props.children,
|
|
221
223
|
React.createElement(ResizeHandlers, { onPress: this.handlePress, onResize: this.handleResize, resizable: resizable, rtl: this.state.rtl })));
|
|
@@ -256,7 +258,7 @@ var InternalTile = /** @class */ (function (_super) {
|
|
|
256
258
|
this.pressXY.x += this.state.rtl ? -diffCol : diffCol;
|
|
257
259
|
var diffRow = newBox.height - oldBox.height;
|
|
258
260
|
var currentBot = parseFloat(dragElement.style.height.substring(12));
|
|
259
|
-
dragElement.style.height = "calc(100% + "
|
|
261
|
+
dragElement.style.height = "calc(100% + ".concat((currentBot + diffRow), "px)");
|
|
260
262
|
this.pressXY.y += diffRow;
|
|
261
263
|
}
|
|
262
264
|
var deltaX = oldBox.left - newBox.left;
|
|
@@ -282,11 +284,11 @@ var InternalTile = /** @class */ (function (_super) {
|
|
|
282
284
|
if (!domNode) {
|
|
283
285
|
return;
|
|
284
286
|
}
|
|
285
|
-
domNode.style.transform = "translate("
|
|
287
|
+
domNode.style.transform = "translate(".concat(deltaX, "px, ").concat(deltaY, "px)");
|
|
286
288
|
domNode.style.transition = 'transform 0s';
|
|
287
289
|
requestAnimationFrame(function () {
|
|
288
290
|
domNode.style.transform = '';
|
|
289
|
-
domNode.style.transition = "transform "
|
|
291
|
+
domNode.style.transition = "transform ".concat(ANIMATION_DURATION, "ms cubic-bezier(0.2, 0, 0, 1) 0s");
|
|
290
292
|
});
|
|
291
293
|
});
|
|
292
294
|
};
|
|
@@ -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
|
}
|
|
@@ -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 __());
|
|
@@ -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
|
*/
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -108,7 +110,7 @@ var TileLayout = /** @class */ (function (_super) {
|
|
|
108
110
|
get: function () {
|
|
109
111
|
return this._element;
|
|
110
112
|
},
|
|
111
|
-
enumerable:
|
|
113
|
+
enumerable: false,
|
|
112
114
|
configurable: true
|
|
113
115
|
});
|
|
114
116
|
/**
|
|
@@ -133,9 +135,9 @@ var TileLayout = /** @class */ (function (_super) {
|
|
|
133
135
|
var _this = this;
|
|
134
136
|
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;
|
|
135
137
|
var gapValue = gap
|
|
136
|
-
? ""
|
|
138
|
+
? "".concat(typeof gap.rows === 'number' ? gap.rows + 'px' : gap.rows) + ' ' + "".concat(typeof gap.columns === 'number' ? gap.columns + 'px' : gap.columns)
|
|
137
139
|
: 16;
|
|
138
|
-
var tileLayoutStyles = __assign({ gridTemplateColumns: "repeat("
|
|
140
|
+
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);
|
|
139
141
|
return (React.createElement("div", { ref: function (el) { _this._element = el; }, dir: this.props.dir, className: classNames('k-tilelayout', AUTO_FLOW_CLASSES[autoFlow], className), style: tileLayoutStyles, id: this.props.id, children: items.map(function (tile, index) {
|
|
140
142
|
return (React.createElement(InternalTile, { key: _this.props.dataItemKey ? 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,
|
|
141
143
|
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)),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -47,4 +47,4 @@ export interface AppBarHandle {
|
|
|
47
47
|
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
48
48
|
* ```
|
|
49
49
|
*/
|
|
50
|
-
export declare const AppBar: React.ForwardRefExoticComponent<AppBarProps & React.RefAttributes<AppBarHandle>>;
|
|
50
|
+
export declare const AppBar: React.ForwardRefExoticComponent<AppBarProps & React.RefAttributes<AppBarHandle | null>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AppBar = void 0;
|
|
3
4
|
var React = require("react");
|
|
4
5
|
var PropTypes = require("prop-types");
|
|
5
6
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
@@ -40,12 +41,12 @@ var package_metadata_1 = require("../package-metadata");
|
|
|
40
41
|
* ```
|
|
41
42
|
*/
|
|
42
43
|
exports.AppBar = React.forwardRef(function (props, target) {
|
|
43
|
-
kendo_react_common_2.validatePackage(package_metadata_1.packageMetadata);
|
|
44
|
+
(0, kendo_react_common_2.validatePackage)(package_metadata_1.packageMetadata);
|
|
44
45
|
var children = props.children, className = props.className, style = props.style, id = props.id;
|
|
45
46
|
var elementRef = React.useRef(null);
|
|
46
47
|
var focusElement = React.useCallback(function () {
|
|
47
48
|
if (elementRef.current) {
|
|
48
|
-
kendo_react_common_1.focusFirstFocusableChild(elementRef.current);
|
|
49
|
+
(0, kendo_react_common_1.focusFirstFocusableChild)(elementRef.current);
|
|
49
50
|
}
|
|
50
51
|
}, []);
|
|
51
52
|
var getImperativeHandle = React.useCallback(function () { return ({
|
|
@@ -53,11 +54,11 @@ exports.AppBar = React.forwardRef(function (props, target) {
|
|
|
53
54
|
focus: focusElement
|
|
54
55
|
}); }, [focusElement]);
|
|
55
56
|
React.useImperativeHandle(target, getImperativeHandle);
|
|
56
|
-
var calculatedId = React.useMemo(function () { return kendo_react_common_1.guid(); }, []);
|
|
57
|
+
var calculatedId = React.useMemo(function () { return (0, kendo_react_common_1.guid)(); }, []);
|
|
57
58
|
var themeColor = React.useMemo(function () { return props.themeColor || defaultProps.themeColor; }, [props.themeColor]);
|
|
58
59
|
var position = React.useMemo(function () { return props.position || defaultProps.position; }, [props.position]);
|
|
59
60
|
var positionMode = React.useMemo(function () { return props.positionMode || defaultProps.positionMode; }, [props.positionMode]);
|
|
60
|
-
var appbarClasses = React.useMemo(function () { return kendo_react_common_1.classNames('k-appbar', {
|
|
61
|
+
var appbarClasses = React.useMemo(function () { return (0, kendo_react_common_1.classNames)('k-appbar', {
|
|
61
62
|
'k-appbar-top': position === 'top',
|
|
62
63
|
'k-appbar-bottom': position === 'bottom',
|
|
63
64
|
'k-appbar-static': positionMode === 'static',
|