@progress/kendo-react-layout 13.3.0 → 13.4.0-develop.2
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/actionsheet/ActionSheet.d.ts +242 -0
- package/actionsheet/ActionSheetContent.d.ts +17 -0
- package/actionsheet/ActionSheetFooter.d.ts +42 -0
- package/actionsheet/ActionSheetHeader.d.ts +17 -0
- package/actionsheet/ActionSheetItem.d.ts +13 -0
- package/actionsheet/ActionSheetView.d.ts +16 -0
- package/actionsheet/interfaces/ActionSheetChildrenProps.d.ts +20 -0
- package/actionsheet/interfaces/ActionSheetItemProps.d.ts +76 -0
- package/appbar/AppBar.d.ts +56 -0
- package/appbar/AppBar.js +1 -1
- package/appbar/AppBar.mjs +10 -10
- package/appbar/AppBarSection.d.ts +55 -0
- package/appbar/AppBarSpacer.d.ts +56 -0
- package/appbar/interfaces/AppBarProps.d.ts +143 -0
- package/appbar/interfaces/AppBarSectionProps.d.ts +25 -0
- package/appbar/interfaces/AppBarSpacerProps.d.ts +26 -0
- package/bottomnavigation/BottomNavigation.d.ts +44 -0
- package/bottomnavigation/BottomNavigation.js +1 -1
- package/bottomnavigation/BottomNavigation.mjs +13 -13
- package/bottomnavigation/BottomNavigationItem.d.ts +19 -0
- package/bottomnavigation/BottomNavigationItem.mjs +3 -3
- package/bottomnavigation/BottomNavigationItemProps.d.ts +120 -0
- package/bottomnavigation/BottomNavigationProps.d.ts +238 -0
- package/bottomnavigation/models/events.d.ts +27 -0
- package/bottomnavigation/models/utils.d.ts +43 -0
- package/breadcrumb/Breadcrumb.d.ts +276 -0
- package/breadcrumb/Breadcrumb.js +1 -1
- package/breadcrumb/Breadcrumb.mjs +0 -1
- package/breadcrumb/BreadcrumbDelimiter.d.ts +50 -0
- package/breadcrumb/BreadcrumbLink.d.ts +136 -0
- package/breadcrumb/BreadcrumbLink.mjs +3 -3
- package/breadcrumb/BreadcrumbListItem.d.ts +58 -0
- package/breadcrumb/BreadcrumbOrderedList.d.ts +62 -0
- package/breadcrumb/BreadcrumbOrderedList.mjs +5 -5
- package/card/Avatar.d.ts +10 -0
- package/card/Avatar.js +1 -1
- package/card/Avatar.mjs +20 -22
- package/card/Card.d.ts +11 -0
- package/card/CardActions.d.ts +10 -0
- package/card/CardActions.mjs +1 -1
- package/card/CardBody.d.ts +10 -0
- package/card/CardFooter.d.ts +10 -0
- package/card/CardHeader.d.ts +10 -0
- package/card/CardImage.d.ts +10 -0
- package/card/CardSubtitle.d.ts +10 -0
- package/card/CardTitle.d.ts +10 -0
- package/card/interfaces/AvatarProps.d.ts +141 -0
- package/card/interfaces/CardActionsProps.d.ts +76 -0
- package/card/interfaces/CardBodyProps.d.ts +36 -0
- package/card/interfaces/CardFooterProps.d.ts +36 -0
- package/card/interfaces/CardHandle.d.ts +21 -0
- package/card/interfaces/CardHeaderProps.d.ts +36 -0
- package/card/interfaces/CardImageProps.d.ts +45 -0
- package/card/interfaces/CardProps.d.ts +91 -0
- package/card/interfaces/CardSubtitleProps.d.ts +36 -0
- package/card/interfaces/CardTitleProps.d.ts +21 -0
- package/card/interfaces/Enums.d.ts +30 -0
- package/contextmenu/ContextMenu.d.ts +50 -0
- package/dist/cdn/js/kendo-react-layout.js +1 -1
- package/drawer/Drawer.d.ts +52 -0
- package/drawer/DrawerContent.d.ts +48 -0
- package/drawer/DrawerItem.d.ts +37 -0
- package/drawer/DrawerNavigation.d.ts +49 -0
- package/drawer/DrawerNavigation.js +1 -1
- package/drawer/DrawerNavigation.mjs +27 -27
- package/drawer/context/DrawerContext.d.ts +27 -0
- package/drawer/interfaces/DrawerAnimation.d.ts +21 -0
- package/drawer/interfaces/DrawerContentProps.d.ts +24 -0
- package/drawer/interfaces/DrawerItemHandle.d.ts +24 -0
- package/drawer/interfaces/DrawerItemProps.d.ts +129 -0
- package/drawer/interfaces/DrawerNavigationProps.d.ts +24 -0
- package/drawer/interfaces/DrawerProps.d.ts +171 -0
- package/drawer/interfaces/DrawerSelectEvent.d.ts +22 -0
- package/expansionpanel/ExpansionPanel.d.ts +13 -0
- package/expansionpanel/ExpansionPanel.mjs +1 -1
- package/expansionpanel/ExpansionPanelContent.d.ts +12 -0
- package/expansionpanel/index.d.ts +10 -0
- package/expansionpanel/interfaces.d.ts +99 -0
- package/gridlayout/GridLayout.d.ts +45 -0
- package/gridlayout/GridLayoutItem.d.ts +44 -0
- package/gridlayout/interfaces/GridLayoutColumnProps.d.ts +21 -0
- package/gridlayout/interfaces/GridLayoutItemProps.d.ts +87 -0
- package/gridlayout/interfaces/GridLayoutProps.d.ts +144 -0
- package/gridlayout/interfaces/GridLayoutRowProps.d.ts +21 -0
- package/index.d.mts +101 -6278
- package/index.d.ts +101 -6278
- package/menu/BaseMenuItemInternalProps.d.ts +29 -0
- package/menu/MenuProps.d.ts +189 -0
- package/menu/components/Menu.d.ts +132 -0
- package/menu/components/Menu.mjs +1 -1
- package/menu/components/MenuItem.d.ts +43 -0
- package/menu/components/MenuItemArrow.d.ts +53 -0
- package/menu/components/MenuItemInternal.d.ts +70 -0
- package/menu/components/MenuItemLink.d.ts +37 -0
- package/menu/consts.d.ts +65 -0
- package/menu/events.d.ts +45 -0
- package/menu/models/BaseMenuItem.d.ts +65 -0
- package/menu/models/MenuItemModel.d.ts +30 -0
- package/menu/utils/DirectionHolder.d.ts +18 -0
- package/menu/utils/MouseOverHandler.d.ts +24 -0
- package/menu/utils/getNewItemIdUponKeyboardNavigation.d.ts +14 -0
- package/menu/utils/hoverDelay.d.ts +16 -0
- package/menu/utils/itemsIdsUtils.d.ts +71 -0
- package/menu/utils/itemsIdsUtils.mjs +49 -49
- package/menu/utils/misc.d.ts +23 -0
- package/menu/utils/prepareInputItemsForInternalWork.d.ts +13 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +10 -16
- package/package.json +8 -8
- package/panelbar/PanelBar.d.ts +89 -0
- package/panelbar/PanelBarItem.d.ts +61 -0
- package/panelbar/interfaces/NavigationAction.d.ts +19 -0
- package/panelbar/interfaces/PanelBarItemClickEventArguments.d.ts +15 -0
- package/panelbar/interfaces/PanelBarItemProps.d.ts +116 -0
- package/panelbar/interfaces/PanelBarProps.d.ts +140 -0
- package/panelbar/interfaces/PanelBarSelectEventArguments.d.ts +21 -0
- package/panelbar/interfaces/RenderPanelBarItem.d.ts +22 -0
- package/panelbar/util.d.ts +63 -0
- package/splitter/Splitter.d.ts +150 -0
- package/splitter/SplitterBar.d.ts +51 -0
- package/splitter/SplitterPane.d.ts +76 -0
- package/splitter/messages/index.d.ts +17 -0
- package/stacklayout/StackLayout.d.ts +43 -0
- package/stacklayout/StackLayoutProps.d.ts +97 -0
- package/stepper/Step.d.ts +29 -0
- package/stepper/Stepper.d.ts +29 -0
- package/stepper/contants.d.ts +15 -0
- package/stepper/context/StepperContext.d.ts +30 -0
- package/stepper/interfaces/StepChangeEvent.d.ts +18 -0
- package/stepper/interfaces/StepFocusEvent.d.ts +14 -0
- package/stepper/interfaces/StepHandle.d.ts +20 -0
- package/stepper/interfaces/StepProps.d.ts +95 -0
- package/stepper/interfaces/StepperChangeEvent.d.ts +18 -0
- package/stepper/interfaces/StepperFocusEvent.d.ts +14 -0
- package/stepper/interfaces/StepperHandle.d.ts +20 -0
- package/stepper/interfaces/StepperOnNavigateEvent.d.ts +38 -0
- package/stepper/interfaces/StepperProps.d.ts +216 -0
- package/stepper/messages/index.d.ts +22 -0
- package/tabstrip/TabStrip.d.ts +297 -0
- package/tabstrip/TabStrip.js +1 -1
- package/tabstrip/TabStrip.mjs +1 -1
- package/tabstrip/TabStripContent.d.ts +70 -0
- package/tabstrip/TabStripNavigation.d.ts +144 -0
- package/tabstrip/TabStripNavigation.mjs +6 -6
- package/tabstrip/TabStripNavigationItem.d.ts +82 -0
- package/tabstrip/TabStripTab.d.ts +50 -0
- package/tabstrip/messages/index.d.ts +22 -0
- package/tilelayout/InternalTile.d.ts +112 -0
- package/tilelayout/ResizeHandlers.d.ts +27 -0
- package/tilelayout/TileLayout.d.ts +228 -0
- package/tilelayout/interfaces/index.d.ts +159 -0
- package/timeline/Timeline.d.ts +205 -0
- package/timeline/TimelineCard.d.ts +44 -0
- package/timeline/TimelineHorizontal.d.ts +10 -0
- package/timeline/TimelineHorizontal.js +1 -1
- package/timeline/TimelineHorizontal.mjs +0 -2
- package/timeline/TimelineVertical.d.ts +19 -0
- package/timeline/utils.d.ts +22 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { default as PropTypes } from 'prop-types';
|
|
9
|
+
import { TabStripSize, ScrollButtons, ScrollButtonsPosition } from './TabStrip.js';
|
|
10
|
+
import { ButtonProps } from '@progress/kendo-react-buttons';
|
|
11
|
+
import * as React from 'react';
|
|
12
|
+
/**
|
|
13
|
+
* The props that are passed to the TabStripNavigation by the TabStrip.
|
|
14
|
+
*/
|
|
15
|
+
export interface TabStripNavigationProps {
|
|
16
|
+
/**
|
|
17
|
+
* Sets the index of the selected tab. Controlled by the TabStrip component.
|
|
18
|
+
*/
|
|
19
|
+
selected?: number;
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
tabIndex?: number;
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
onKeyDown?: any;
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
tabPosition?: string;
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
*/
|
|
35
|
+
tabAlignment?: string;
|
|
36
|
+
/**
|
|
37
|
+
* @hidden
|
|
38
|
+
*/
|
|
39
|
+
children?: any;
|
|
40
|
+
/**
|
|
41
|
+
* @hidden
|
|
42
|
+
*/
|
|
43
|
+
onSelect?(idx: number): void;
|
|
44
|
+
/**
|
|
45
|
+
* @hidden
|
|
46
|
+
*/
|
|
47
|
+
onScroll?(): void;
|
|
48
|
+
/**
|
|
49
|
+
* @hidden
|
|
50
|
+
*/
|
|
51
|
+
scrollable?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* @hidden
|
|
54
|
+
*/
|
|
55
|
+
scrollButtons?: ScrollButtons;
|
|
56
|
+
/**
|
|
57
|
+
* @hidden
|
|
58
|
+
*/
|
|
59
|
+
scrollButtonsPosition?: ScrollButtonsPosition;
|
|
60
|
+
/**
|
|
61
|
+
* @hidden
|
|
62
|
+
*/
|
|
63
|
+
size?: TabStripSize;
|
|
64
|
+
/**
|
|
65
|
+
* @hidden
|
|
66
|
+
*/
|
|
67
|
+
buttonScrollSpeed?: number;
|
|
68
|
+
/**
|
|
69
|
+
* @hidden
|
|
70
|
+
*/
|
|
71
|
+
mouseScrollSpeed?: number;
|
|
72
|
+
/**
|
|
73
|
+
* @hidden
|
|
74
|
+
*/
|
|
75
|
+
prevButton?: React.ComponentType<ButtonProps>;
|
|
76
|
+
/**
|
|
77
|
+
* @hidden
|
|
78
|
+
*/
|
|
79
|
+
nextButton?: React.ComponentType<ButtonProps>;
|
|
80
|
+
/**
|
|
81
|
+
* @hidden
|
|
82
|
+
*/
|
|
83
|
+
dir?: 'ltr' | 'rtl';
|
|
84
|
+
/**
|
|
85
|
+
* @hidden
|
|
86
|
+
*/
|
|
87
|
+
contentPanelId?: string;
|
|
88
|
+
/**
|
|
89
|
+
* @hidden
|
|
90
|
+
*/
|
|
91
|
+
navItemId?: string;
|
|
92
|
+
/**
|
|
93
|
+
* @hidden
|
|
94
|
+
*/
|
|
95
|
+
renderAllContent?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* @hidden
|
|
98
|
+
*/
|
|
99
|
+
containerScrollPosition?: 'start' | 'end' | 'top' | 'bottom' | 'middle' | null;
|
|
100
|
+
/**
|
|
101
|
+
* @hidden
|
|
102
|
+
*/
|
|
103
|
+
itemsNavRef?: React.RefObject<HTMLUListElement | null>;
|
|
104
|
+
}
|
|
105
|
+
export declare class TabStripNavigation extends React.Component<TabStripNavigationProps, {}> {
|
|
106
|
+
/**
|
|
107
|
+
* @hidden
|
|
108
|
+
*/
|
|
109
|
+
static propTypes: {
|
|
110
|
+
children: PropTypes.Requireable<NonNullable<PropTypes.ReactElementLike | (PropTypes.ReactElementLike | null | undefined)[] | null | undefined>>;
|
|
111
|
+
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
112
|
+
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
113
|
+
onScroll: PropTypes.Requireable<(...args: any[]) => any>;
|
|
114
|
+
selected: PropTypes.Requireable<number>;
|
|
115
|
+
tabIndex: PropTypes.Requireable<number>;
|
|
116
|
+
scrollable: PropTypes.Requireable<boolean>;
|
|
117
|
+
size: PropTypes.Requireable<string>;
|
|
118
|
+
scrollButtons: PropTypes.Requireable<string>;
|
|
119
|
+
scrollButtonsPosition: PropTypes.Requireable<string>;
|
|
120
|
+
containerScrollPosition: PropTypes.Requireable<string | null>;
|
|
121
|
+
};
|
|
122
|
+
private itemsNavRef;
|
|
123
|
+
/**
|
|
124
|
+
* @hidden
|
|
125
|
+
*/
|
|
126
|
+
componentDidMount(): void;
|
|
127
|
+
/**
|
|
128
|
+
* @hidden
|
|
129
|
+
*/
|
|
130
|
+
componentDidUpdate(prevProps: Readonly<TabStripNavigationProps>): void;
|
|
131
|
+
private onScroll;
|
|
132
|
+
/**
|
|
133
|
+
* @hidden
|
|
134
|
+
*/
|
|
135
|
+
render(): React.JSX.Element;
|
|
136
|
+
private scrollToSelected;
|
|
137
|
+
private horizontalScroll;
|
|
138
|
+
private isRtl;
|
|
139
|
+
private arrowClickPrev;
|
|
140
|
+
private arrowClickNext;
|
|
141
|
+
private handleArrowClick;
|
|
142
|
+
private setNewScrollPosition;
|
|
143
|
+
private renderArrow;
|
|
144
|
+
}
|
|
@@ -10,9 +10,9 @@ import n from "prop-types";
|
|
|
10
10
|
import { TabStripNavigationItem as x } from "./TabStripNavigationItem.mjs";
|
|
11
11
|
import { classNames as v } from "@progress/kendo-react-common";
|
|
12
12
|
import { Button as M } from "@progress/kendo-react-buttons";
|
|
13
|
-
import {
|
|
13
|
+
import { caretAltLeftIcon as k, caretAltRightIcon as I, caretAltDownIcon as D, caretAltUpIcon as H } from "@progress/kendo-svg-icons";
|
|
14
14
|
import { provideLocalizationService as y } from "@progress/kendo-react-intl";
|
|
15
|
-
import {
|
|
15
|
+
import { nextArrowTitle as A, messages as P, prevArrowTitle as R } from "./messages/index.mjs";
|
|
16
16
|
const W = (z) => Array.apply(null, Array(z)), b = "smooth", f = "prev", m = "next", w = class w extends h.Component {
|
|
17
17
|
constructor() {
|
|
18
18
|
super(...arguments), this.itemsNavRef = this.props.itemsNavRef || h.createRef(), this.onScroll = () => {
|
|
@@ -38,14 +38,14 @@ const W = (z) => Array.apply(null, Array(z)), b = "smooth", f = "prev", m = "nex
|
|
|
38
38
|
prev: {
|
|
39
39
|
arrowTab: "k-tabstrip-prev",
|
|
40
40
|
fontIcon: o ? this.isRtl() ? "caret-alt-right" : "caret-alt-left" : "caret-alt-up",
|
|
41
|
-
svgIcon: o ? this.isRtl() ?
|
|
42
|
-
title: s.toLanguageString(
|
|
41
|
+
svgIcon: o ? this.isRtl() ? I : k : H,
|
|
42
|
+
title: s.toLanguageString(R, P[R])
|
|
43
43
|
},
|
|
44
44
|
next: {
|
|
45
45
|
arrowTab: "k-tabstrip-next",
|
|
46
46
|
fontIcon: o ? this.isRtl() ? "caret-alt-left" : "caret-alt-right" : "caret-alt-down",
|
|
47
|
-
svgIcon: o ? this.isRtl() ?
|
|
48
|
-
title: s.toLanguageString(
|
|
47
|
+
svgIcon: o ? this.isRtl() ? k : I : D,
|
|
48
|
+
title: s.toLanguageString(A, P[A])
|
|
49
49
|
}
|
|
50
50
|
}, l = (t === f ? this.props.prevButton : this.props.nextButton) || M, i = t === f ? this.arrowClickPrev : this.arrowClickNext, e = this.props.containerScrollPosition === null || t === f && (this.props.containerScrollPosition === "start" || this.props.containerScrollPosition === "top") || t === m && (this.props.containerScrollPosition === "end" || this.props.containerScrollPosition === "bottom");
|
|
51
51
|
return /* @__PURE__ */ h.createElement(
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { default as PropTypes } from 'prop-types';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* The props that are passed by the TabStripNavigation to the TabStripNavigationItem.
|
|
12
|
+
*/
|
|
13
|
+
export interface TabStripNavigationItemProps {
|
|
14
|
+
/**
|
|
15
|
+
* Sets the `id` property of the top element of the TabStripNavigationItem.
|
|
16
|
+
*/
|
|
17
|
+
id?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Defines whether the current TabStripNavigationItem is selected.
|
|
20
|
+
*/
|
|
21
|
+
active?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Defines whether the TabStripNavigationItem is disabled.
|
|
24
|
+
*/
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Sets the index of the TabStripNavigationItem that is used to identify it.
|
|
28
|
+
*/
|
|
29
|
+
index: number;
|
|
30
|
+
/**
|
|
31
|
+
* Sets the title of the TabStripNavigationItem.
|
|
32
|
+
*/
|
|
33
|
+
title?: React.ReactNode;
|
|
34
|
+
/**
|
|
35
|
+
* @hidden
|
|
36
|
+
*/
|
|
37
|
+
first?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* @hidden
|
|
40
|
+
*/
|
|
41
|
+
last?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* @hidden
|
|
44
|
+
*/
|
|
45
|
+
onSelect?(idx: number): void;
|
|
46
|
+
/**
|
|
47
|
+
* @hidden
|
|
48
|
+
*/
|
|
49
|
+
contentPanelId?: string;
|
|
50
|
+
/**
|
|
51
|
+
* @hidden
|
|
52
|
+
*/
|
|
53
|
+
renderAllContent?: boolean;
|
|
54
|
+
}
|
|
55
|
+
export declare class TabStripNavigationItem extends React.Component<TabStripNavigationItemProps, {}> {
|
|
56
|
+
/**
|
|
57
|
+
* @hidden
|
|
58
|
+
*/
|
|
59
|
+
static propTypes: {
|
|
60
|
+
active: PropTypes.Requireable<boolean>;
|
|
61
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
62
|
+
index: PropTypes.Requireable<number>;
|
|
63
|
+
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
64
|
+
title: PropTypes.Requireable<NonNullable<string | PropTypes.ReactElementLike | null | undefined>>;
|
|
65
|
+
first: PropTypes.Requireable<boolean>;
|
|
66
|
+
last: PropTypes.Requireable<boolean>;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* @hidden
|
|
70
|
+
*/
|
|
71
|
+
private itemRef;
|
|
72
|
+
/**
|
|
73
|
+
* @hidden
|
|
74
|
+
*/
|
|
75
|
+
focus: () => void;
|
|
76
|
+
blur: () => void;
|
|
77
|
+
/**
|
|
78
|
+
* @hidden
|
|
79
|
+
*/
|
|
80
|
+
render(): React.JSX.Element;
|
|
81
|
+
private onClick;
|
|
82
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { default as PropTypes } from 'prop-types';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* Represents the props of the TabStrip tabs.
|
|
12
|
+
*/
|
|
13
|
+
export interface TabStripTabProps {
|
|
14
|
+
/**
|
|
15
|
+
* Defines whether a TabStripTab is disabled ([see example](https://www.telerik.com/kendo-react-ui/components/layout/tabstrip/tabs#toc-disabled-items)).
|
|
16
|
+
*
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
children?: React.ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* Sets the TabStripTab title ([see example](https://www.telerik.com/kendo-react-ui/components/layout/tabstrip/tabs#toc-titles)).
|
|
26
|
+
*/
|
|
27
|
+
title?: React.ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* Specifies the CSS class names of the TabStripTab content.
|
|
30
|
+
*/
|
|
31
|
+
contentClassName?: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Represents the TabStripTab component.
|
|
35
|
+
*/
|
|
36
|
+
export declare class TabStripTab extends React.Component<TabStripTabProps, {}> {
|
|
37
|
+
/**
|
|
38
|
+
* @hidden
|
|
39
|
+
*/
|
|
40
|
+
static propTypes: {
|
|
41
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
42
|
+
contentClassName: PropTypes.Requireable<string>;
|
|
43
|
+
children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
44
|
+
title: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* @hidden
|
|
48
|
+
*/
|
|
49
|
+
render(): null;
|
|
50
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare const prevArrowTitle = "prevArrow.title";
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export declare const nextArrowTitle = "nextArrow.title";
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
*/
|
|
19
|
+
export declare const messages: {
|
|
20
|
+
"prevArrow.title": string;
|
|
21
|
+
"nextArrow.title": string;
|
|
22
|
+
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { default as PropTypes } from 'prop-types';
|
|
9
|
+
import { TileStrictPosition, TileLayoutItem } from './interfaces/index.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export interface InternalTileProps extends TileLayoutItem {
|
|
15
|
+
update: (index: number, dRow: number, dCol: number, row: number, col: number) => void;
|
|
16
|
+
index: number;
|
|
17
|
+
defaultPosition: TileStrictPosition;
|
|
18
|
+
ignoreDrag?: (event: any) => boolean;
|
|
19
|
+
onPress: () => void;
|
|
20
|
+
onRelease: () => void;
|
|
21
|
+
children?: React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
export interface InternalTileState {
|
|
27
|
+
rtl: boolean;
|
|
28
|
+
visibleHint: boolean;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @hidden
|
|
32
|
+
*/
|
|
33
|
+
export declare class InternalTile extends React.Component<InternalTileProps, InternalTileState> {
|
|
34
|
+
/**
|
|
35
|
+
* @hidden
|
|
36
|
+
*/
|
|
37
|
+
static propTypes: {
|
|
38
|
+
defaultPosition: PropTypes.Validator<object>;
|
|
39
|
+
style: PropTypes.Requireable<object>;
|
|
40
|
+
className: PropTypes.Requireable<string>;
|
|
41
|
+
hintStyle: PropTypes.Requireable<object>;
|
|
42
|
+
hintClassName: PropTypes.Requireable<string>;
|
|
43
|
+
header: PropTypes.Requireable<any>;
|
|
44
|
+
body: PropTypes.Requireable<any>;
|
|
45
|
+
item: PropTypes.Requireable<any>;
|
|
46
|
+
resizable: PropTypes.Requireable<string | boolean>;
|
|
47
|
+
reorderable: PropTypes.Requireable<boolean>;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* @hidden
|
|
51
|
+
*/
|
|
52
|
+
static displayName: string;
|
|
53
|
+
/**
|
|
54
|
+
* @hidden
|
|
55
|
+
*/
|
|
56
|
+
static defaultProps: {
|
|
57
|
+
resizable: boolean;
|
|
58
|
+
reorderable: boolean;
|
|
59
|
+
};
|
|
60
|
+
protected get reorderable(): boolean;
|
|
61
|
+
state: {
|
|
62
|
+
rtl: boolean;
|
|
63
|
+
visibleHint: boolean;
|
|
64
|
+
};
|
|
65
|
+
oldSize: {};
|
|
66
|
+
draggable: {
|
|
67
|
+
element: HTMLElement | null;
|
|
68
|
+
} | null;
|
|
69
|
+
dragging: boolean;
|
|
70
|
+
resizing: boolean;
|
|
71
|
+
element: HTMLElement | null;
|
|
72
|
+
hintElement: HTMLElement | null;
|
|
73
|
+
get dragElement(): HTMLElement | null | undefined;
|
|
74
|
+
ignoreDrag: boolean;
|
|
75
|
+
pressOffset: {
|
|
76
|
+
x: number;
|
|
77
|
+
y: number;
|
|
78
|
+
};
|
|
79
|
+
pressXY: {
|
|
80
|
+
x: number;
|
|
81
|
+
y: number;
|
|
82
|
+
};
|
|
83
|
+
currentTranslate: {
|
|
84
|
+
x: number;
|
|
85
|
+
y: number;
|
|
86
|
+
};
|
|
87
|
+
preventDataOps: any;
|
|
88
|
+
handleResize: (e: any, q: {
|
|
89
|
+
end: boolean;
|
|
90
|
+
direction: any;
|
|
91
|
+
}) => void;
|
|
92
|
+
handlePress: (e: any) => void;
|
|
93
|
+
handleDrag: (e: any) => void;
|
|
94
|
+
handleRelease: () => void;
|
|
95
|
+
handleMouseDown: () => void;
|
|
96
|
+
handleMouseUp: () => void;
|
|
97
|
+
componentDidMount(): void;
|
|
98
|
+
render(): React.JSX.Element;
|
|
99
|
+
/**
|
|
100
|
+
* @hidden
|
|
101
|
+
*/
|
|
102
|
+
getSnapshotBeforeUpdate(_: any): null;
|
|
103
|
+
/**
|
|
104
|
+
* @hidden
|
|
105
|
+
*/
|
|
106
|
+
setInitialHintPosition(): void;
|
|
107
|
+
calcNewHintPosition: () => void;
|
|
108
|
+
/**
|
|
109
|
+
* @hidden
|
|
110
|
+
*/
|
|
111
|
+
componentDidUpdate(prevProps: any): void;
|
|
112
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface ResizeHandlersProps {
|
|
13
|
+
resizable: string | boolean;
|
|
14
|
+
onResize: (e: any, args: {
|
|
15
|
+
end: boolean;
|
|
16
|
+
direction: any;
|
|
17
|
+
}) => void;
|
|
18
|
+
onPress: (e: any) => void;
|
|
19
|
+
rtl: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @hidden
|
|
23
|
+
*/
|
|
24
|
+
export declare class ResizeHandlers extends React.Component<ResizeHandlersProps, {}> {
|
|
25
|
+
handleResize: (event: any, isEnd: boolean, direction: any) => void;
|
|
26
|
+
render(): React.JSX.Element | null;
|
|
27
|
+
}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { default as PropTypes } from 'prop-types';
|
|
9
|
+
import { TileLayoutGap, TileLayoutItem, TilePosition, TileLayoutRepositionEvent, TileStrictPosition, TileLayoutAutoFlow } from './interfaces/index.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* Represents the props of the [TileLayout](https://www.telerik.com/kendo-react-ui/components/layout/tilelayout) component.
|
|
13
|
+
*/
|
|
14
|
+
export interface TileLayoutProps {
|
|
15
|
+
/**
|
|
16
|
+
* Sets the `id` property of the root element.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```jsx
|
|
20
|
+
* <TileLayout id="tile-layout" />
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Sets additional CSS styles to the TileLayout.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```jsx
|
|
29
|
+
* <TileLayout style={{ backgroundColor: 'lightgray' }} />
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
style?: React.CSSProperties;
|
|
33
|
+
/**
|
|
34
|
+
* Sets additional classes to the TileLayout.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```jsx
|
|
38
|
+
* <TileLayout className="custom-class" />
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
className?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Represents the `dir` HTML attribute. Use this to switch from LTR to RTL.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```jsx
|
|
47
|
+
* <TileLayout dir="rtl" />
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
dir?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Specifies the gaps between the tiles ([see example](https://www.telerik.com/kendo-react-ui/components/layout/tilelayout#toc-tilelayout-configuration-options)).
|
|
53
|
+
*
|
|
54
|
+
* * The possible keys are:
|
|
55
|
+
* * `rows`
|
|
56
|
+
* * `columns`
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```jsx
|
|
60
|
+
* <TileLayout gap={{ rows: 10, columns: 10 }} />
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
gap?: TileLayoutGap;
|
|
64
|
+
/**
|
|
65
|
+
* Specifies the default number of columns ([see example](https://www.telerik.com/kendo-react-ui/components/layout/tilelayout#toc-tilelayout-configuration-options)).
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```jsx
|
|
69
|
+
* <TileLayout columns={4} />
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
columns?: number;
|
|
73
|
+
/**
|
|
74
|
+
* Specifies the default width of the columns ([see example](https://www.telerik.com/kendo-react-ui/components/layout/tilelayout#toc-tilelayout-configuration-options)).
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```jsx
|
|
78
|
+
* <TileLayout columnWidth={200} />
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
columnWidth?: number | string;
|
|
82
|
+
/**
|
|
83
|
+
* Specifies the default height of the rows ([see example](https://www.telerik.com/kendo-react-ui/components/layout/tilelayout#toc-tilelayout-configuration-options)).
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```jsx
|
|
87
|
+
* <TileLayout rowHeight={100} />
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
90
|
+
rowHeight?: number | string;
|
|
91
|
+
/**
|
|
92
|
+
* Represents the `key` field of the TileLayout item. Used for setting unique keys to the TileLayout items.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```jsx
|
|
96
|
+
* <TileLayout dataItemKey="id" />
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
dataItemKey?: string;
|
|
100
|
+
/**
|
|
101
|
+
* The collection of items that will be rendered in the TileLayout
|
|
102
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/layout/tilelayout#toc-tilelayout-configuration-options)).
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* ```jsx
|
|
106
|
+
* <TileLayout items={[{ header: 'Header', body: 'Body' }]} />
|
|
107
|
+
* ```
|
|
108
|
+
*/
|
|
109
|
+
items?: TileLayoutItem[];
|
|
110
|
+
/**
|
|
111
|
+
* The list of tiles' positions which are used when the TileLayout is in controlled mode
|
|
112
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/layout/tilelayout/tiles#toc-controlling-the-position)).
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* ```jsx
|
|
116
|
+
* <TileLayout positions={[{ col: 1, row: 1 }]} />
|
|
117
|
+
* ```
|
|
118
|
+
*/
|
|
119
|
+
positions?: TilePosition[];
|
|
120
|
+
/**
|
|
121
|
+
* Fires when the user repositions the tile by either dragging or resizing
|
|
122
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/layout/tilelayout/tiles#toc-controlling-the-position)).
|
|
123
|
+
*
|
|
124
|
+
* @example
|
|
125
|
+
* ```jsx
|
|
126
|
+
* <TileLayout onReposition={(e) => console.log(e.value)} />
|
|
127
|
+
* ```
|
|
128
|
+
*/
|
|
129
|
+
onReposition?: (event: TileLayoutRepositionEvent) => void;
|
|
130
|
+
/**
|
|
131
|
+
* Controls how the auto-placement algorithm works, specifying exactly how auto-placed items get flowed into the TileLayout.
|
|
132
|
+
* For further reference, check [grid-auto-flow CSS](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow) article.
|
|
133
|
+
*
|
|
134
|
+
* @default column
|
|
135
|
+
*
|
|
136
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/layout/tilelayout/auto-flows)).
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* ```jsx
|
|
140
|
+
* <TileLayout autoFlow="row" />
|
|
141
|
+
* ```
|
|
142
|
+
*/
|
|
143
|
+
autoFlow?: TileLayoutAutoFlow;
|
|
144
|
+
/**
|
|
145
|
+
* Use this callback to prevent or allow dragging of the tiles based on specific DOM events.
|
|
146
|
+
* Setting `ignoreDrag={(e) => { return !(e.target.classList.contains("k-card-title")); }}` makes only the headers draggable.
|
|
147
|
+
* Setting `ignoreDrag={(e) => { return e.target.nodeName == "INPUT"; }}` ignores dragging input elements.
|
|
148
|
+
*
|
|
149
|
+
* @example
|
|
150
|
+
* ```jsx
|
|
151
|
+
* <TileLayout ignoreDrag={(e) => e.target.nodeName === 'INPUT'} />
|
|
152
|
+
* ```
|
|
153
|
+
*/
|
|
154
|
+
ignoreDrag?: (event: any) => boolean;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* @hidden
|
|
158
|
+
*/
|
|
159
|
+
export interface TileLayoutState {
|
|
160
|
+
positions: TileStrictPosition[];
|
|
161
|
+
activeHint?: boolean;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Represents the [KendoReact TileLayout component](https://www.telerik.com/kendo-react-ui/components/layout/tilelayout).
|
|
165
|
+
*/
|
|
166
|
+
export declare class TileLayout extends React.Component<TileLayoutProps, TileLayoutState> {
|
|
167
|
+
/**
|
|
168
|
+
* @hidden
|
|
169
|
+
*/
|
|
170
|
+
static propTypes: {
|
|
171
|
+
id: PropTypes.Requireable<string>;
|
|
172
|
+
style: PropTypes.Requireable<object>;
|
|
173
|
+
className: PropTypes.Requireable<string>;
|
|
174
|
+
dir: PropTypes.Requireable<string>;
|
|
175
|
+
gap: PropTypes.Requireable<object>;
|
|
176
|
+
columns: PropTypes.Requireable<number>;
|
|
177
|
+
columnWidth: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
178
|
+
rowHeight: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
179
|
+
dataItemKey: PropTypes.Requireable<string>;
|
|
180
|
+
items: PropTypes.Requireable<any[]>;
|
|
181
|
+
positions: PropTypes.Requireable<any[]>;
|
|
182
|
+
autoFlow: PropTypes.Requireable<string>;
|
|
183
|
+
onReposition: PropTypes.Requireable<(...args: any[]) => any>;
|
|
184
|
+
ignoreDrag: PropTypes.Requireable<(...args: any[]) => any>;
|
|
185
|
+
};
|
|
186
|
+
/**
|
|
187
|
+
* @hidden
|
|
188
|
+
*/
|
|
189
|
+
static displayName: string;
|
|
190
|
+
/**
|
|
191
|
+
* @hidden
|
|
192
|
+
*/
|
|
193
|
+
_element: HTMLDivElement | null;
|
|
194
|
+
/**
|
|
195
|
+
* @hidden
|
|
196
|
+
*/
|
|
197
|
+
state: {
|
|
198
|
+
positions: ({
|
|
199
|
+
order: number;
|
|
200
|
+
rowSpan: number;
|
|
201
|
+
colSpan: number;
|
|
202
|
+
} & TilePosition)[];
|
|
203
|
+
activeHint: boolean;
|
|
204
|
+
};
|
|
205
|
+
/**
|
|
206
|
+
* Gets the HTML element of the TileLayout component.
|
|
207
|
+
*/
|
|
208
|
+
get element(): HTMLDivElement | null;
|
|
209
|
+
/**
|
|
210
|
+
* @hidden
|
|
211
|
+
*/
|
|
212
|
+
focus: () => void;
|
|
213
|
+
/**
|
|
214
|
+
* @hidden
|
|
215
|
+
*/
|
|
216
|
+
static getDerivedStateFromProps(props: TileLayoutProps, state: TileLayoutState): {
|
|
217
|
+
positions: ({
|
|
218
|
+
order: number;
|
|
219
|
+
rowSpan: number;
|
|
220
|
+
colSpan: number;
|
|
221
|
+
} & TilePosition)[];
|
|
222
|
+
} | null;
|
|
223
|
+
/**
|
|
224
|
+
* @hidden
|
|
225
|
+
*/
|
|
226
|
+
update: (index: number, dOrder: number, dCol: number, dRowSpan?: number, dColSpan?: number) => void;
|
|
227
|
+
render(): React.JSX.Element;
|
|
228
|
+
}
|