@progress/kendo-react-layout 7.2.4-develop.3 → 7.2.4-develop.4
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.js +8 -0
- package/actionsheet/ActionSheet.mjs +184 -0
- package/actionsheet/ActionSheetContent.js +8 -0
- package/actionsheet/ActionSheetContent.mjs +32 -0
- package/actionsheet/ActionSheetFooter.js +8 -0
- package/actionsheet/ActionSheetFooter.mjs +32 -0
- package/actionsheet/ActionSheetHeader.js +8 -0
- package/actionsheet/ActionSheetHeader.mjs +32 -0
- package/actionsheet/ActionSheetItem.js +8 -0
- package/actionsheet/ActionSheetItem.mjs +52 -0
- package/appbar/AppBar.js +8 -0
- package/appbar/AppBar.mjs +86 -0
- package/appbar/AppBarSection.js +8 -0
- package/appbar/AppBarSection.mjs +47 -0
- package/appbar/AppBarSpacer.js +8 -0
- package/appbar/AppBarSpacer.mjs +55 -0
- package/bottomnavigation/BottomNavigation.js +8 -0
- package/bottomnavigation/BottomNavigation.mjs +160 -0
- package/bottomnavigation/BottomNavigationItem.js +8 -0
- package/bottomnavigation/BottomNavigationItem.mjs +93 -0
- package/bottomnavigation/models/utils.js +8 -0
- package/bottomnavigation/models/utils.mjs +19 -0
- package/breadcrumb/Breadcrumb.js +8 -0
- package/breadcrumb/Breadcrumb.mjs +158 -0
- package/breadcrumb/BreadcrumbDelimiter.js +8 -0
- package/breadcrumb/BreadcrumbDelimiter.mjs +48 -0
- package/breadcrumb/BreadcrumbLink.js +8 -0
- package/breadcrumb/BreadcrumbLink.mjs +82 -0
- package/breadcrumb/BreadcrumbListItem.js +8 -0
- package/breadcrumb/BreadcrumbListItem.mjs +52 -0
- package/breadcrumb/BreadcrumbOrderedList.js +8 -0
- package/breadcrumb/BreadcrumbOrderedList.mjs +67 -0
- package/card/Avatar.js +8 -0
- package/card/Avatar.mjs +53 -0
- package/card/Card.js +8 -0
- package/card/Card.mjs +52 -0
- package/card/CardActions.js +8 -0
- package/card/CardActions.mjs +40 -0
- package/card/CardBody.js +8 -0
- package/card/CardBody.mjs +28 -0
- package/card/CardFooter.js +8 -0
- package/card/CardFooter.mjs +28 -0
- package/card/CardHeader.js +8 -0
- package/card/CardHeader.mjs +28 -0
- package/card/CardImage.js +8 -0
- package/card/CardImage.mjs +36 -0
- package/card/CardSubtitle.js +8 -0
- package/card/CardSubtitle.mjs +28 -0
- package/card/CardTitle.js +8 -0
- package/card/CardTitle.mjs +28 -0
- package/card/interfaces/Enums.js +8 -0
- package/card/interfaces/Enums.mjs +15 -0
- package/contextmenu/ContextMenu.js +8 -0
- package/contextmenu/ContextMenu.mjs +48 -0
- package/dist/cdn/js/kendo-react-layout.js +8 -5
- package/drawer/Drawer.js +8 -0
- package/drawer/Drawer.mjs +130 -0
- package/drawer/DrawerContent.js +8 -0
- package/drawer/DrawerContent.mjs +33 -0
- package/drawer/DrawerItem.js +8 -0
- package/drawer/DrawerItem.mjs +89 -0
- package/drawer/DrawerNavigation.js +8 -0
- package/drawer/DrawerNavigation.mjs +132 -0
- package/drawer/context/DrawerContext.js +8 -0
- package/drawer/context/DrawerContext.mjs +22 -0
- package/expansionpanel/ExpansionPanel.js +8 -0
- package/expansionpanel/ExpansionPanel.mjs +116 -0
- package/expansionpanel/ExpansionPanelContent.js +8 -0
- package/expansionpanel/ExpansionPanelContent.mjs +23 -0
- package/gridlayout/GridLayout.js +8 -0
- package/gridlayout/GridLayout.mjs +83 -0
- package/gridlayout/GridLayoutItem.js +8 -0
- package/gridlayout/GridLayoutItem.mjs +46 -0
- package/index.d.mts +4593 -5
- package/index.d.ts +4593 -103
- package/index.js +8 -5
- package/index.mjs +139 -5037
- package/menu/components/Menu.js +8 -0
- package/menu/components/Menu.mjs +193 -0
- package/menu/components/MenuItem.js +8 -0
- package/menu/components/MenuItem.mjs +34 -0
- package/menu/components/MenuItemArrow.js +8 -0
- package/menu/components/MenuItemArrow.mjs +49 -0
- package/menu/components/MenuItemInternal.js +8 -0
- package/menu/components/MenuItemInternal.mjs +222 -0
- package/menu/components/MenuItemLink.js +8 -0
- package/menu/components/MenuItemLink.mjs +54 -0
- package/menu/consts.js +8 -0
- package/menu/consts.mjs +59 -0
- package/menu/utils/DirectionHolder.js +8 -0
- package/menu/utils/DirectionHolder.mjs +25 -0
- package/menu/utils/MouseOverHandler.js +8 -0
- package/menu/utils/MouseOverHandler.mjs +34 -0
- package/menu/utils/getNewItemIdUponKeyboardNavigation.js +8 -0
- package/menu/utils/getNewItemIdUponKeyboardNavigation.mjs +124 -0
- package/menu/utils/hoverDelay.js +8 -0
- package/menu/utils/hoverDelay.mjs +18 -0
- package/menu/utils/itemsIdsUtils.js +8 -0
- package/menu/utils/itemsIdsUtils.mjs +81 -0
- package/menu/utils/misc.js +8 -0
- package/menu/utils/misc.mjs +29 -0
- package/menu/utils/prepareInputItemsForInternalWork.js +8 -0
- package/menu/utils/prepareInputItemsForInternalWork.mjs +59 -0
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +19 -0
- package/package.json +6 -6
- package/panelbar/PanelBar.js +8 -0
- package/panelbar/PanelBar.mjs +195 -0
- package/panelbar/PanelBarItem.js +8 -0
- package/panelbar/PanelBarItem.mjs +148 -0
- package/panelbar/interfaces/NavigationAction.js +8 -0
- package/panelbar/interfaces/NavigationAction.mjs +12 -0
- package/panelbar/util.js +8 -0
- package/panelbar/util.mjs +122 -0
- package/splitter/Splitter.js +8 -0
- package/splitter/Splitter.mjs +238 -0
- package/splitter/SplitterBar.js +8 -0
- package/splitter/SplitterBar.mjs +129 -0
- package/splitter/SplitterPane.js +8 -0
- package/splitter/SplitterPane.mjs +50 -0
- package/splitter/messages/index.js +8 -0
- package/splitter/messages/index.mjs +15 -0
- package/stacklayout/StackLayout.js +8 -0
- package/stacklayout/StackLayout.mjs +84 -0
- package/stepper/Step.js +8 -0
- package/stepper/Step.mjs +177 -0
- package/stepper/Stepper.js +8 -0
- package/stepper/Stepper.mjs +252 -0
- package/stepper/contants.js +8 -0
- package/stepper/contants.mjs +13 -0
- package/stepper/context/StepperContext.js +8 -0
- package/stepper/context/StepperContext.mjs +17 -0
- package/stepper/messages/index.js +8 -0
- package/stepper/messages/index.mjs +17 -0
- package/tabstrip/TabStrip.js +8 -0
- package/tabstrip/TabStrip.mjs +163 -0
- package/tabstrip/TabStripContent.js +8 -0
- package/tabstrip/TabStripContent.mjs +81 -0
- package/tabstrip/TabStripNavigation.js +8 -0
- package/tabstrip/TabStripNavigation.mjs +171 -0
- package/tabstrip/TabStripNavigationItem.js +8 -0
- package/tabstrip/TabStripNavigationItem.mjs +55 -0
- package/tabstrip/TabStripTab.js +8 -0
- package/tabstrip/TabStripTab.mjs +35 -0
- package/tilelayout/InternalTile.js +8 -0
- package/tilelayout/InternalTile.mjs +203 -0
- package/tilelayout/ResizeHandlers.js +8 -0
- package/tilelayout/ResizeHandlers.mjs +53 -0
- package/tilelayout/TileLayout.js +8 -0
- package/tilelayout/TileLayout.mjs +122 -0
- package/timeline/Timeline.js +8 -0
- package/timeline/Timeline.mjs +79 -0
- package/timeline/TimelineCard.js +8 -0
- package/timeline/TimelineCard.mjs +109 -0
- package/timeline/TimelineHorizontal.js +8 -0
- package/timeline/TimelineHorizontal.mjs +239 -0
- package/timeline/TimelineVertical.js +8 -0
- package/timeline/TimelineVertical.mjs +78 -0
- package/timeline/utils.js +8 -0
- package/timeline/utils.mjs +16 -0
- package/actionsheet/ActionSheet.d.ts +0 -138
- package/actionsheet/ActionSheetContent.d.ts +0 -14
- package/actionsheet/ActionSheetFooter.d.ts +0 -14
- package/actionsheet/ActionSheetHeader.d.ts +0 -14
- package/actionsheet/ActionSheetItem.d.ts +0 -10
- package/actionsheet/interfaces/ActionSheetChildrenProps.d.ts +0 -17
- package/actionsheet/interfaces/ActionSheetItemProps.d.ts +0 -70
- package/appbar/AppBar.d.ts +0 -54
- package/appbar/AppBarSection.d.ts +0 -53
- package/appbar/AppBarSpacer.d.ts +0 -54
- package/appbar/interfaces/AppBarProps.d.ts +0 -83
- package/appbar/interfaces/AppBarSectionProps.d.ts +0 -22
- package/appbar/interfaces/AppBarSpacerProps.d.ts +0 -23
- package/bottomnavigation/BottomNavigation.d.ts +0 -42
- package/bottomnavigation/BottomNavigationItem.d.ts +0 -16
- package/bottomnavigation/BottomNavigationItemProps.d.ts +0 -64
- package/bottomnavigation/BottomNavigationProps.d.ts +0 -157
- package/bottomnavigation/models/events.d.ts +0 -24
- package/bottomnavigation/models/utils.d.ts +0 -40
- package/breadcrumb/Breadcrumb.d.ts +0 -163
- package/breadcrumb/BreadcrumbDelimiter.d.ts +0 -47
- package/breadcrumb/BreadcrumbLink.d.ts +0 -135
- package/breadcrumb/BreadcrumbListItem.d.ts +0 -55
- package/breadcrumb/BreadcrumbOrderedList.d.ts +0 -59
- package/card/Avatar.d.ts +0 -7
- package/card/Card.d.ts +0 -8
- package/card/CardActions.d.ts +0 -7
- package/card/CardBody.d.ts +0 -7
- package/card/CardFooter.d.ts +0 -7
- package/card/CardHeader.d.ts +0 -7
- package/card/CardImage.d.ts +0 -7
- package/card/CardSubtitle.d.ts +0 -7
- package/card/CardTitle.d.ts +0 -7
- package/card/interfaces/AvatarProps.d.ts +0 -88
- package/card/interfaces/CardActionsProps.d.ts +0 -38
- package/card/interfaces/CardBodyProps.d.ts +0 -18
- package/card/interfaces/CardFooterProps.d.ts +0 -18
- package/card/interfaces/CardHandle.d.ts +0 -18
- package/card/interfaces/CardHeaderProps.d.ts +0 -18
- package/card/interfaces/CardImageProps.d.ts +0 -22
- package/card/interfaces/CardProps.d.ts +0 -48
- package/card/interfaces/CardSubtitleProps.d.ts +0 -18
- package/card/interfaces/CardTitleProps.d.ts +0 -18
- package/card/interfaces/Enums.d.ts +0 -27
- package/contextmenu/ContextMenu.d.ts +0 -31
- package/drawer/Drawer.d.ts +0 -44
- package/drawer/DrawerContent.d.ts +0 -43
- package/drawer/DrawerItem.d.ts +0 -36
- package/drawer/DrawerNavigation.d.ts +0 -47
- package/drawer/context/DrawerContext.d.ts +0 -24
- package/drawer/interfaces/DrawerAnimation.d.ts +0 -18
- package/drawer/interfaces/DrawerContentProps.d.ts +0 -21
- package/drawer/interfaces/DrawerItemHandle.d.ts +0 -21
- package/drawer/interfaces/DrawerItemProps.d.ts +0 -64
- package/drawer/interfaces/DrawerNavigationProps.d.ts +0 -21
- package/drawer/interfaces/DrawerProps.d.ts +0 -86
- package/drawer/interfaces/DrawerSelectEvent.d.ts +0 -19
- package/expansionpanel/ExpansionPanel.d.ts +0 -10
- package/expansionpanel/ExpansionPanelContent.d.ts +0 -9
- package/expansionpanel/index.d.ts +0 -7
- package/expansionpanel/interfaces.d.ts +0 -92
- package/gridlayout/GridLayout.d.ts +0 -43
- package/gridlayout/GridLayoutItem.d.ts +0 -42
- package/gridlayout/interfaces/GridLayoutColumnProps.d.ts +0 -13
- package/gridlayout/interfaces/GridLayoutItemProps.d.ts +0 -44
- package/gridlayout/interfaces/GridLayoutProps.d.ts +0 -99
- package/gridlayout/interfaces/GridLayoutRowProps.d.ts +0 -13
- package/menu/BaseMenuItemInternalProps.d.ts +0 -24
- package/menu/MenuProps.d.ts +0 -75
- package/menu/components/Menu.d.ts +0 -118
- package/menu/components/MenuItem.d.ts +0 -33
- package/menu/components/MenuItemArrow.d.ts +0 -50
- package/menu/components/MenuItemInternal.d.ts +0 -63
- package/menu/components/MenuItemLink.d.ts +0 -34
- package/menu/consts.d.ts +0 -58
- package/menu/events.d.ts +0 -20
- package/menu/models/BaseMenuItem.d.ts +0 -58
- package/menu/models/MenuItemModel.d.ts +0 -23
- package/menu/utils/DirectionHolder.d.ts +0 -15
- package/menu/utils/MouseOverHandler.d.ts +0 -21
- package/menu/utils/getNewItemIdUponKeyboardNavigation.d.ts +0 -11
- package/menu/utils/hoverDelay.d.ts +0 -13
- package/menu/utils/itemsIdsUtils.d.ts +0 -68
- package/menu/utils/misc.d.ts +0 -20
- package/menu/utils/prepareInputItemsForInternalWork.d.ts +0 -10
- package/package-metadata.d.ts +0 -9
- package/panelbar/PanelBar.d.ts +0 -81
- package/panelbar/PanelBarItem.d.ts +0 -52
- package/panelbar/interfaces/NavigationAction.d.ts +0 -12
- package/panelbar/interfaces/PanelBarItemClickEventArguments.d.ts +0 -12
- package/panelbar/interfaces/PanelBarItemProps.d.ts +0 -98
- package/panelbar/interfaces/PanelBarProps.d.ts +0 -66
- package/panelbar/interfaces/PanelBarSelectEventArguments.d.ts +0 -18
- package/panelbar/interfaces/RenderPanelBarItem.d.ts +0 -19
- package/panelbar/util.d.ts +0 -56
- package/splitter/Splitter.d.ts +0 -136
- package/splitter/SplitterBar.d.ts +0 -44
- package/splitter/SplitterPane.d.ts +0 -57
- package/splitter/messages/index.d.ts +0 -14
- package/stacklayout/StackLayout.d.ts +0 -41
- package/stacklayout/StackLayoutProps.d.ts +0 -92
- package/stepper/Step.d.ts +0 -27
- package/stepper/Stepper.d.ts +0 -27
- package/stepper/contants.d.ts +0 -12
- package/stepper/context/StepperContext.d.ts +0 -27
- package/stepper/interfaces/StepChangeEvent.d.ts +0 -15
- package/stepper/interfaces/StepFocusEvent.d.ts +0 -11
- package/stepper/interfaces/StepHandle.d.ts +0 -17
- package/stepper/interfaces/StepProps.d.ts +0 -83
- package/stepper/interfaces/StepperChangeEvent.d.ts +0 -15
- package/stepper/interfaces/StepperFocusEvent.d.ts +0 -11
- package/stepper/interfaces/StepperHandle.d.ts +0 -17
- package/stepper/interfaces/StepperProps.d.ts +0 -98
- package/stepper/messages/index.d.ts +0 -19
- package/tabstrip/TabStrip.d.ts +0 -158
- package/tabstrip/TabStripContent.d.ts +0 -62
- package/tabstrip/TabStripNavigation.d.ts +0 -110
- package/tabstrip/TabStripNavigationItem.d.ts +0 -75
- package/tabstrip/TabStripTab.d.ts +0 -42
- package/tilelayout/InternalTile.d.ts +0 -94
- package/tilelayout/ResizeHandlers.d.ts +0 -24
- package/tilelayout/TileLayout.d.ts +0 -153
- package/tilelayout/interfaces/index.d.ts +0 -145
- package/timeline/Timeline.d.ts +0 -102
- package/timeline/TimelineCard.d.ts +0 -38
- package/timeline/TimelineHorizontal.d.ts +0 -7
- package/timeline/TimelineVertical.d.ts +0 -16
- package/timeline/utils.d.ts +0 -19
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import PropTypes from 'prop-types';
|
|
7
|
-
import { TileLayoutGap, TileLayoutItem, TilePosition, TileLayoutRepositionEvent, TileStrictPosition, TileLayoutAutoFlow } from './interfaces';
|
|
8
|
-
/**
|
|
9
|
-
* Represents the properties of [TileLayout](% slug overview_tilelayout %) component.
|
|
10
|
-
*/
|
|
11
|
-
export interface TileLayoutProps {
|
|
12
|
-
/**
|
|
13
|
-
* Sets the `id` property of the root element.
|
|
14
|
-
*/
|
|
15
|
-
id?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Sets additional CSS styles to the TileLayout.
|
|
18
|
-
*/
|
|
19
|
-
style?: React.CSSProperties;
|
|
20
|
-
/**
|
|
21
|
-
* Sets additional classes to the TileLayout.
|
|
22
|
-
*/
|
|
23
|
-
className?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Represents the `dir` HTML attribute. This is used to switch from LTR to RTL.
|
|
26
|
-
*/
|
|
27
|
-
dir?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Specifies the gaps between the tiles ([see example]({% slug overview_tilelayout %}#toc-tilelayout-configuration-options)).
|
|
30
|
-
*
|
|
31
|
-
* * The possible keys are:
|
|
32
|
-
* * `rows`
|
|
33
|
-
* * `columns`
|
|
34
|
-
*/
|
|
35
|
-
gap?: TileLayoutGap;
|
|
36
|
-
/**
|
|
37
|
-
* Specifies the default number of columns ([see example]({% slug overview_tilelayout %}#toc-tilelayout-configuration-options)).
|
|
38
|
-
*/
|
|
39
|
-
columns?: number;
|
|
40
|
-
/**
|
|
41
|
-
* Specifies the default width of the columns ([see example]({% slug overview_tilelayout %}#toc-tilelayout-configuration-options)).
|
|
42
|
-
*/
|
|
43
|
-
columnWidth?: number | string;
|
|
44
|
-
/**
|
|
45
|
-
* Specifies the default height of the rows ([see example]({% slug overview_tilelayout %}#toc-tilelayout-configuration-options)).
|
|
46
|
-
*/
|
|
47
|
-
rowHeight?: number | string;
|
|
48
|
-
/**
|
|
49
|
-
* Represents the `key` field of the TileLayout item. Used for setting unique keys to the TileLayout items.
|
|
50
|
-
*/
|
|
51
|
-
dataItemKey?: string;
|
|
52
|
-
/**
|
|
53
|
-
* The collection of items that will be rendered in the TileLayout
|
|
54
|
-
* ([see example]({% slug overview_tilelayout %}#toc-tilelayout-configuration-options)).
|
|
55
|
-
*/
|
|
56
|
-
items?: TileLayoutItem[];
|
|
57
|
-
/**
|
|
58
|
-
* The list of tiles' positions which are used when the TileLayout is in controlled mode
|
|
59
|
-
* ([see example]({% slug tiles_tilelayout %}#toc-controlling-the-position)).
|
|
60
|
-
*/
|
|
61
|
-
positions?: TilePosition[];
|
|
62
|
-
/**
|
|
63
|
-
* Fires when the user repositions the tile by either dragging or resizing
|
|
64
|
-
* ([see example]({% slug tiles_tilelayout %}#toc-controlling-the-position)).
|
|
65
|
-
*/
|
|
66
|
-
onReposition?: (event: TileLayoutRepositionEvent) => void;
|
|
67
|
-
/**
|
|
68
|
-
* Controls how the auto-placement algorithm works, specifying exactly how auto-placed items get flowed into the TileLayout.
|
|
69
|
-
* For further reference, check [grid-auto-flow CSS](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow) article.
|
|
70
|
-
* Defaults to `column`
|
|
71
|
-
* ([see example]({% slug autoflows_tilelayout %})).
|
|
72
|
-
*/
|
|
73
|
-
autoFlow?: TileLayoutAutoFlow;
|
|
74
|
-
/**
|
|
75
|
-
* Use this callback to prevent or allow dragging of the tiles based on specific dom event.
|
|
76
|
-
* Setting `ignoreDrag={(e) => { return !(e.target.classList.contains("k-card-title")); }}` will make only the headers draggable.
|
|
77
|
-
* Setting `ignoreDrag={(e) => { return e.target.nodeName == "INPUT"; }}` will ignore dragging input elements.
|
|
78
|
-
*/
|
|
79
|
-
ignoreDrag?: (event: any) => boolean;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* @hidden
|
|
83
|
-
*/
|
|
84
|
-
export interface TileLayoutState {
|
|
85
|
-
positions: TileStrictPosition[];
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Represents the [KendoReact TileLayout component]({% slug overview_tilelayout %}).
|
|
89
|
-
*/
|
|
90
|
-
export declare class TileLayout extends React.Component<TileLayoutProps, TileLayoutState> {
|
|
91
|
-
/**
|
|
92
|
-
* @hidden
|
|
93
|
-
*/
|
|
94
|
-
static propTypes: {
|
|
95
|
-
id: PropTypes.Requireable<string>;
|
|
96
|
-
style: PropTypes.Requireable<object>;
|
|
97
|
-
className: PropTypes.Requireable<string>;
|
|
98
|
-
dir: PropTypes.Requireable<string>;
|
|
99
|
-
gap: PropTypes.Requireable<object>;
|
|
100
|
-
columns: PropTypes.Requireable<number>;
|
|
101
|
-
columnWidth: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
102
|
-
rowHeight: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
103
|
-
dataItemKey: PropTypes.Requireable<string>;
|
|
104
|
-
items: PropTypes.Requireable<any[]>;
|
|
105
|
-
positions: PropTypes.Requireable<any[]>;
|
|
106
|
-
autoFlow: PropTypes.Requireable<string>;
|
|
107
|
-
onReposition: PropTypes.Requireable<(...args: any[]) => any>;
|
|
108
|
-
ignoreDrag: PropTypes.Requireable<(...args: any[]) => any>;
|
|
109
|
-
};
|
|
110
|
-
/**
|
|
111
|
-
* @hidden
|
|
112
|
-
*/
|
|
113
|
-
static displayName: string;
|
|
114
|
-
/**
|
|
115
|
-
* @hidden
|
|
116
|
-
*/
|
|
117
|
-
_element: HTMLDivElement | null;
|
|
118
|
-
/**
|
|
119
|
-
* @hidden
|
|
120
|
-
*/
|
|
121
|
-
state: {
|
|
122
|
-
positions: ({
|
|
123
|
-
order: number;
|
|
124
|
-
rowSpan: number;
|
|
125
|
-
colSpan: number;
|
|
126
|
-
} & TilePosition)[];
|
|
127
|
-
};
|
|
128
|
-
private showLicenseWatermark;
|
|
129
|
-
constructor(props: TileLayoutProps);
|
|
130
|
-
/**
|
|
131
|
-
* Gets the HTML element of the TileLayout component.
|
|
132
|
-
*/
|
|
133
|
-
get element(): HTMLDivElement | null;
|
|
134
|
-
/**
|
|
135
|
-
* @hidden
|
|
136
|
-
*/
|
|
137
|
-
focus: () => void;
|
|
138
|
-
/**
|
|
139
|
-
* @hidden
|
|
140
|
-
*/
|
|
141
|
-
static getDerivedStateFromProps(props: TileLayoutProps, state: TileLayoutState): {
|
|
142
|
-
positions: ({
|
|
143
|
-
order: number;
|
|
144
|
-
rowSpan: number;
|
|
145
|
-
colSpan: number;
|
|
146
|
-
} & TilePosition)[];
|
|
147
|
-
} | null;
|
|
148
|
-
/**
|
|
149
|
-
* @hidden
|
|
150
|
-
*/
|
|
151
|
-
update: (index: number, dOrder: number, dCol: number, dRowSpan?: number, dColSpan?: number) => void;
|
|
152
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
153
|
-
}
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { BaseEvent } from '@progress/kendo-react-common';
|
|
6
|
-
import { TileLayout } from '../TileLayout';
|
|
7
|
-
/**
|
|
8
|
-
* The interface for describing items that can be passed to the `items` property of the TileLayout component.
|
|
9
|
-
*/
|
|
10
|
-
export interface TileLayoutItem {
|
|
11
|
-
/**
|
|
12
|
-
* The position which is used when the TileLayout is in uncontrolled mode
|
|
13
|
-
* ([see example]({% slug tiles_tilelayout %}#toc-position-and-dimensions)).
|
|
14
|
-
*/
|
|
15
|
-
defaultPosition?: TilePosition;
|
|
16
|
-
/**
|
|
17
|
-
* Sets additional CSS styles to the TileLayoutItem.
|
|
18
|
-
*/
|
|
19
|
-
style?: React.CSSProperties;
|
|
20
|
-
/**
|
|
21
|
-
* Sets additional classes to the TileLayoutItem.
|
|
22
|
-
*/
|
|
23
|
-
className?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Sets additional CSS styles to the TileLayoutItem hint element.
|
|
26
|
-
*/
|
|
27
|
-
hintStyle?: React.CSSProperties;
|
|
28
|
-
/**
|
|
29
|
-
* Sets additional classes to the TileLayoutItem hint element.
|
|
30
|
-
*/
|
|
31
|
-
hintClassName?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Sets the title in the TileLayoutItem's header
|
|
34
|
-
* ([see example]({% slug tiles_tilelayout %})).
|
|
35
|
-
*/
|
|
36
|
-
header?: React.ReactNode;
|
|
37
|
-
/**
|
|
38
|
-
* Sets the content in TileLayoutItem's body
|
|
39
|
-
* ([see example]({% slug tiles_tilelayout %})).
|
|
40
|
-
*/
|
|
41
|
-
body?: React.ReactNode;
|
|
42
|
-
/**
|
|
43
|
-
* Overrides the default rendering of the TileLayoutItem
|
|
44
|
-
* ([see example]({% slug tiles_tilelayout %}#toc-custom-rendering)).
|
|
45
|
-
*/
|
|
46
|
-
item?: React.ReactNode;
|
|
47
|
-
/**
|
|
48
|
-
* Specifies if the user is allowed to resize the TileLayoutItem and in which direction
|
|
49
|
-
* ([see example]({% slug tiles_tilelayout %}#toc-resizing)).
|
|
50
|
-
* If `resizable` is not specified, the resizing of the TileLayoutItem will be enabled for both directions.
|
|
51
|
-
*/
|
|
52
|
-
resizable?: TileResizeMode;
|
|
53
|
-
/**
|
|
54
|
-
* Specifies if the user is allowed to reorder the TileLayoutItem by dragging and dropping it
|
|
55
|
-
* ([see example]({% slug tiles_tilelayout %}#toc-reordering)).
|
|
56
|
-
* If `reorderable` is not specified, the dragging functionality of the TileLayoutItem will be enabled.
|
|
57
|
-
*/
|
|
58
|
-
reorderable?: boolean;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Specifies the position of each tile.
|
|
62
|
-
*/
|
|
63
|
-
export interface TilePosition {
|
|
64
|
-
/**
|
|
65
|
-
* Defines the order index of the TileLayoutItem.
|
|
66
|
-
* If not set, items will receive a sequential order.
|
|
67
|
-
*/
|
|
68
|
-
order?: number;
|
|
69
|
-
/**
|
|
70
|
-
* (Required) Defines on which column-line the TileLayoutItem will start.
|
|
71
|
-
* It is required in order reordering and resizing functionalities to work as expected as they rely on it.
|
|
72
|
-
*/
|
|
73
|
-
col: number;
|
|
74
|
-
/**
|
|
75
|
-
* Specifies how many columns will the TileLayoutItem spans.
|
|
76
|
-
* Defaults to `1`.
|
|
77
|
-
*/
|
|
78
|
-
colSpan?: number;
|
|
79
|
-
/**
|
|
80
|
-
* Defines on which row-line the TileLayoutItem will start.
|
|
81
|
-
*/
|
|
82
|
-
row?: number;
|
|
83
|
-
/**
|
|
84
|
-
* Specifies how many rows will the TileLayoutItem spans.
|
|
85
|
-
* Defaults to `1`.
|
|
86
|
-
*/
|
|
87
|
-
rowSpan?: number;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Specifies the strict position of each tile.
|
|
91
|
-
* Used in the [TileLayoutRepositionEvent]({% slug api_layout_tilelayoutrepositionevent %}).
|
|
92
|
-
*/
|
|
93
|
-
export interface TileStrictPosition extends TilePosition {
|
|
94
|
-
/**
|
|
95
|
-
* Defines the order index of the TileLayoutItem.
|
|
96
|
-
* If not set, items will receive a sequential order.
|
|
97
|
-
*/
|
|
98
|
-
order: number;
|
|
99
|
-
/**
|
|
100
|
-
* Specifies how many rows will the TileLayoutItem spans.
|
|
101
|
-
* Defaults to `1`.
|
|
102
|
-
*/
|
|
103
|
-
rowSpan: number;
|
|
104
|
-
/**
|
|
105
|
-
* Specifies how many columns will the TileLayoutItem spans.
|
|
106
|
-
* Defaults to `1`.
|
|
107
|
-
*/
|
|
108
|
-
colSpan: number;
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Specifies if the user is allowed to resize the TileLayoutItem and in which direction
|
|
112
|
-
* ([see example]({% slug tiles_tilelayout %}#toc-resizing)).
|
|
113
|
-
* If `resizable` is not specified, the resizing of the TileLayoutItem will be enabled for both directions.
|
|
114
|
-
*/
|
|
115
|
-
export type TileResizeMode = 'horizontal' | 'vertical' | boolean;
|
|
116
|
-
/**
|
|
117
|
-
* Specifies the gaps between the tiles.
|
|
118
|
-
*/
|
|
119
|
-
export interface TileLayoutGap {
|
|
120
|
-
/**
|
|
121
|
-
* The rows gap between tiles.
|
|
122
|
-
* Defaults to `16px`.
|
|
123
|
-
*/
|
|
124
|
-
rows?: number | string;
|
|
125
|
-
/**
|
|
126
|
-
* The columns gap between tiles.
|
|
127
|
-
* Defaults to `16px`.
|
|
128
|
-
*/
|
|
129
|
-
columns?: number | string;
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* Controls how the auto-placement algorithm works, specifying exactly how auto-placed items get flowed into the TileLayout.
|
|
133
|
-
* For further reference, check [grid-auto-flow CSS](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow) article.
|
|
134
|
-
* Defaults to `column`.
|
|
135
|
-
*/
|
|
136
|
-
export type TileLayoutAutoFlow = 'column' | 'row' | 'column dense' | 'row dense' | 'unset';
|
|
137
|
-
/**
|
|
138
|
-
* The arguments for the `onReposition` TileLayout event.
|
|
139
|
-
*/
|
|
140
|
-
export interface TileLayoutRepositionEvent extends BaseEvent<TileLayout> {
|
|
141
|
-
/**
|
|
142
|
-
* The new positions of the TileLayout tiles.
|
|
143
|
-
*/
|
|
144
|
-
value: Array<TileStrictPosition>;
|
|
145
|
-
}
|
package/timeline/Timeline.d.ts
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { Navigation } from '@progress/kendo-react-common';
|
|
7
|
-
import { EventDataProps } from './TimelineCard';
|
|
8
|
-
export interface TimelineEventProps {
|
|
9
|
-
/**
|
|
10
|
-
* Specifies if the event card is default collapsed.
|
|
11
|
-
*/
|
|
12
|
-
opened?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Specifies the text that is rendered as body of the event card.
|
|
15
|
-
*/
|
|
16
|
-
description: string;
|
|
17
|
-
/**
|
|
18
|
-
* Represent event point on the axis.
|
|
19
|
-
*/
|
|
20
|
-
date: Date;
|
|
21
|
-
/**
|
|
22
|
-
* Specifies the text that is rendered as title.
|
|
23
|
-
*/
|
|
24
|
-
title: string;
|
|
25
|
-
/**
|
|
26
|
-
* Specifies the text that is rendered under the title.
|
|
27
|
-
*/
|
|
28
|
-
subtitle?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Specifies the images that are rendered under the description.
|
|
31
|
-
*/
|
|
32
|
-
images?: {
|
|
33
|
-
src: string;
|
|
34
|
-
alt?: string;
|
|
35
|
-
}[];
|
|
36
|
-
/**
|
|
37
|
-
* Specifies the corresponding links that are rendered under the images.
|
|
38
|
-
*/
|
|
39
|
-
actions?: {
|
|
40
|
-
text: string;
|
|
41
|
-
url: string;
|
|
42
|
-
}[];
|
|
43
|
-
/**
|
|
44
|
-
* @Hidden
|
|
45
|
-
*/
|
|
46
|
-
yearFlag?: number;
|
|
47
|
-
}
|
|
48
|
-
export interface TimelineProps {
|
|
49
|
-
events: TimelineEventProps[];
|
|
50
|
-
/**
|
|
51
|
-
* Specifies the CSS class names which are set to the Timeline.
|
|
52
|
-
*/
|
|
53
|
-
className?: string;
|
|
54
|
-
/**
|
|
55
|
-
* Specifies option for expanding and collapsing the event card.
|
|
56
|
-
*/
|
|
57
|
-
collapsibleEvents?: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* @hidden
|
|
60
|
-
*/
|
|
61
|
-
horizontal?: boolean;
|
|
62
|
-
/**
|
|
63
|
-
* The date format for displaying the event date.
|
|
64
|
-
*/
|
|
65
|
-
dateFormat?: string;
|
|
66
|
-
/**
|
|
67
|
-
* Render events alternatingly on both sides of the axis.
|
|
68
|
-
*/
|
|
69
|
-
alterMode?: boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Specifies the time for sliding to next event in horizontal mode and time for collapsing the event in vertical mode.
|
|
72
|
-
* The default value are:
|
|
73
|
-
* - `300ms` for horizontal
|
|
74
|
-
* - `400ms` for vertical
|
|
75
|
-
*/
|
|
76
|
-
transitionDuration?: number;
|
|
77
|
-
/**
|
|
78
|
-
* If set to `true`, the user can use dedicated shortcuts to interact with the Timeline.
|
|
79
|
-
* By default, navigation is disabled.
|
|
80
|
-
*/
|
|
81
|
-
navigatable?: boolean;
|
|
82
|
-
/**
|
|
83
|
-
* An event that is called when event card is toggled.
|
|
84
|
-
*/
|
|
85
|
-
onChange?: (event: EventDataProps) => void;
|
|
86
|
-
/**
|
|
87
|
-
* An event that is called when card action is clicked.
|
|
88
|
-
*/
|
|
89
|
-
onActionClick?: (event: EventDataProps) => void;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* @hidden
|
|
93
|
-
*/
|
|
94
|
-
export interface TimelineDirectionsProps {
|
|
95
|
-
eventsData: TimelineEventProps[];
|
|
96
|
-
dateFormat?: string;
|
|
97
|
-
transitionDuration?: number;
|
|
98
|
-
navigatable?: boolean;
|
|
99
|
-
navigation?: React.MutableRefObject<Navigation>;
|
|
100
|
-
onActionClick?: (event: EventDataProps) => void;
|
|
101
|
-
}
|
|
102
|
-
export declare const Timeline: React.FunctionComponent<TimelineProps>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { TimelineEventProps } from './Timeline';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
interface TimelineCardProps {
|
|
11
|
-
tabindex?: number;
|
|
12
|
-
id?: string;
|
|
13
|
-
eventData: TimelineEventProps;
|
|
14
|
-
alternated?: boolean;
|
|
15
|
-
horizontal?: boolean;
|
|
16
|
-
collapsible?: boolean;
|
|
17
|
-
navigatable?: boolean;
|
|
18
|
-
calloutStyle?: React.CSSProperties;
|
|
19
|
-
transitionDuration?: number;
|
|
20
|
-
onChange?: (event: EventDataProps) => void;
|
|
21
|
-
onActionClick?: (event: EventDataProps) => void;
|
|
22
|
-
}
|
|
23
|
-
export interface EventDataProps {
|
|
24
|
-
/**
|
|
25
|
-
* A React Synthetic Event.
|
|
26
|
-
*/
|
|
27
|
-
syntheticEvent?: React.SyntheticEvent<any>;
|
|
28
|
-
/**
|
|
29
|
-
* A native DOM event.
|
|
30
|
-
*/
|
|
31
|
-
nativeEvent?: any;
|
|
32
|
-
/**
|
|
33
|
-
* The selected card value.
|
|
34
|
-
*/
|
|
35
|
-
eventData: TimelineEventProps;
|
|
36
|
-
}
|
|
37
|
-
export declare const TimelineCard: React.FunctionComponent<TimelineCardProps>;
|
|
38
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { TimelineDirectionsProps } from './Timeline';
|
|
7
|
-
export declare const TimelineHorizontal: React.FunctionComponent<TimelineDirectionsProps>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { EventDataProps } from './TimelineCard';
|
|
7
|
-
import { TimelineDirectionsProps } from './Timeline';
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export interface TimelineVerticalProps extends TimelineDirectionsProps {
|
|
12
|
-
alterMode?: boolean;
|
|
13
|
-
collapsibleEvents?: boolean;
|
|
14
|
-
onChange?: (event: EventDataProps) => void;
|
|
15
|
-
}
|
|
16
|
-
export declare const TimelineVertical: React.FunctionComponent<TimelineVerticalProps>;
|
package/timeline/utils.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { TimelineEventProps } from './Timeline';
|
|
6
|
-
/**
|
|
7
|
-
* Sort the events list based on event date.
|
|
8
|
-
*/
|
|
9
|
-
export declare const sortEventList: (eventList: TimelineEventProps[]) => TimelineEventProps[];
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
export interface yearFlagProps {
|
|
14
|
-
yearFlag?: number;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
export declare const addYearsFlags: (eventsData: TimelineEventProps[]) => (TimelineEventProps | yearFlagProps)[];
|