@progress/kendo-react-layout 7.2.4-develop.2 → 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
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as p from "react";
|
|
10
|
+
import l from "prop-types";
|
|
11
|
+
import { canUseDOM as u, classNames as g, Draggable as y } from "@progress/kendo-react-common";
|
|
12
|
+
import { ResizeHandlers as b } from "./ResizeHandlers.mjs";
|
|
13
|
+
const m = 200, h = class h extends p.Component {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments), this.state = {
|
|
16
|
+
rtl: !1
|
|
17
|
+
}, this.oldSize = {}, this.draggable = null, this.dragging = !1, this.resizing = !1, this.element = null, this.hintElement = null, this.ignoreDrag = !1, this.pressOffset = { x: 0, y: 0 }, this.pressXY = { x: 0, y: 0 }, this.currentTranslate = { x: 0, y: 0 }, this.preventDataOps = void 0, this.handleResize = (t, e) => {
|
|
18
|
+
if (e.end) {
|
|
19
|
+
this.handleRelease();
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
if (!this.element || !this.hintElement)
|
|
23
|
+
return;
|
|
24
|
+
const i = t.clientX, n = t.clientY;
|
|
25
|
+
this.resizing = !0;
|
|
26
|
+
const a = (e.direction !== "ns" ? i - this.pressXY.x : 0) * (this.state.rtl ? -1 : 1), s = e.direction !== "ew" ? n - this.pressXY.y : 0;
|
|
27
|
+
if (this.dragElement && (this.state.rtl ? this.dragElement.style.marginLeft = -a + "px" : this.dragElement.style.marginRight = -a + "px", this.dragElement.style.height = `calc(100% + ${s}px)`), this.hintElement.classList.add("k-layout-item-hint-resize"), this.preventDataOps)
|
|
28
|
+
return;
|
|
29
|
+
let r = 0, o = 0;
|
|
30
|
+
const d = this.element.getBoundingClientRect();
|
|
31
|
+
a > d.width / this.props.defaultPosition.colSpan / 3 && (r = 1), a < -d.width / this.props.defaultPosition.colSpan / 1.25 && (r = -1), s > d.height / this.props.defaultPosition.rowSpan / 3 && (o = 1), s < -d.height / this.props.defaultPosition.rowSpan / 1.25 && (o = -1), (r !== 0 || o !== 0) && this.props.update(this.props.index, 0, 0, o, r);
|
|
32
|
+
}, this.handlePress = (t) => {
|
|
33
|
+
if (!this.dragElement)
|
|
34
|
+
return;
|
|
35
|
+
if (this.pressXY = {
|
|
36
|
+
x: t.event.clientX,
|
|
37
|
+
y: t.event.clientY
|
|
38
|
+
}, this.ignoreDrag = !1, this.props.ignoreDrag && this.props.ignoreDrag(t.event.originalEvent)) {
|
|
39
|
+
this.ignoreDrag = !0;
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
this.element && this.hintElement && (this.element.style.zIndex = "10", this.hintElement.style.display = "block"), this.dragElement.classList.remove("k-cursor-grab"), this.dragElement.classList.add("k-cursor-grabbing");
|
|
43
|
+
const e = this.dragElement.getBoundingClientRect();
|
|
44
|
+
this.pressOffset = {
|
|
45
|
+
x: t.event.clientX - e.x,
|
|
46
|
+
y: t.event.clientY - e.y
|
|
47
|
+
};
|
|
48
|
+
}, this.handleDrag = (t) => {
|
|
49
|
+
if (this.ignoreDrag)
|
|
50
|
+
return;
|
|
51
|
+
const e = this.dragElement;
|
|
52
|
+
if (t.event.originalEvent.defaultPrevented || !e)
|
|
53
|
+
return;
|
|
54
|
+
this.dragging = !0, t.event.originalEvent.preventDefault();
|
|
55
|
+
const i = e.getBoundingClientRect();
|
|
56
|
+
if (this.currentTranslate = {
|
|
57
|
+
x: t.event.clientX - i.x - this.pressOffset.x + this.currentTranslate.x,
|
|
58
|
+
y: t.event.clientY - i.y - this.pressOffset.y + this.currentTranslate.y
|
|
59
|
+
}, e.style.transform = `translate(${this.currentTranslate.x}px, ${this.currentTranslate.y}px)`, e.style.transition = "transform 0s", this.preventDataOps)
|
|
60
|
+
return;
|
|
61
|
+
let n = 0, a = 0;
|
|
62
|
+
this.currentTranslate.y > 0.7 * i.height / this.props.defaultPosition.rowSpan && (a = 1), this.currentTranslate.y < 0.7 * -i.height / this.props.defaultPosition.rowSpan && (a = -1), this.currentTranslate.x > 0.7 * i.width / this.props.defaultPosition.colSpan && (n = 1), this.currentTranslate.x < 0.7 * -i.width / this.props.defaultPosition.colSpan && (n = -1), this.props.update(this.props.index, a, this.state.rtl ? -n : n, 0, 0);
|
|
63
|
+
}, this.handleRelease = () => {
|
|
64
|
+
this.dragging = this.resizing = !1, this.currentTranslate = { x: 0, y: 0 }, this.element && this.hintElement && (this.element.style.zIndex = "1", this.hintElement.classList.remove("k-layout-item-hint-resize"), this.hintElement.style.display = "none");
|
|
65
|
+
const t = this.dragElement;
|
|
66
|
+
t && (t.style.transform = "translate(0px, 0px)", t.style.transition = `transform ${m}ms cubic-bezier(0.2, 0, 0, 1) 0s`, t.style.marginRight = "0px", t.style.marginLeft = "0px", t.style.height = "100%", t.classList.remove("k-cursor-grabbing"), t.classList.add("k-cursor-grab"));
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
get reorderable() {
|
|
70
|
+
return this.props.reorderable !== void 0 ? this.props.reorderable : h.defaultProps.reorderable;
|
|
71
|
+
}
|
|
72
|
+
get dragElement() {
|
|
73
|
+
return this.draggable ? this.draggable.element : void 0;
|
|
74
|
+
}
|
|
75
|
+
componentDidMount() {
|
|
76
|
+
this.element && (getComputedStyle(this.element).direction === "rtl" && this.setState({
|
|
77
|
+
rtl: !0
|
|
78
|
+
}), this.hintElement && (this.hintElement.style.height = this.element.offsetHeight + "px", this.hintElement.style.width = this.element.offsetWidth + "px"));
|
|
79
|
+
}
|
|
80
|
+
render() {
|
|
81
|
+
u && clearTimeout && typeof clearTimeout == "function" && (clearTimeout(this.preventDataOps), this.preventDataOps = window.setTimeout(() => {
|
|
82
|
+
this.preventDataOps = void 0;
|
|
83
|
+
}, 200));
|
|
84
|
+
const t = this.props.defaultPosition, e = this.props.resizable !== void 0 ? this.props.resizable : h.defaultProps.resizable, i = {
|
|
85
|
+
gridColumnStart: t.col,
|
|
86
|
+
gridColumnEnd: `span ${t.colSpan}`,
|
|
87
|
+
gridRowStart: t.row,
|
|
88
|
+
gridRowEnd: `span ${t.rowSpan}`,
|
|
89
|
+
outline: "none",
|
|
90
|
+
order: t.order,
|
|
91
|
+
display: "none",
|
|
92
|
+
...this.props.hintStyle
|
|
93
|
+
}, n = {
|
|
94
|
+
gridColumnStart: t.col,
|
|
95
|
+
gridColumnEnd: `span ${t.colSpan}`,
|
|
96
|
+
gridRowStart: t.row,
|
|
97
|
+
gridRowEnd: `span ${t.rowSpan}`,
|
|
98
|
+
order: t.order
|
|
99
|
+
}, a = /* @__PURE__ */ p.createElement(
|
|
100
|
+
"div",
|
|
101
|
+
{
|
|
102
|
+
ref: (s) => {
|
|
103
|
+
this.draggable = s ? { element: s } : null;
|
|
104
|
+
},
|
|
105
|
+
className: g("k-tilelayout-item k-card", { "k-cursor-grab": this.reorderable }, this.props.className),
|
|
106
|
+
style: { height: "100%", ...n, ...this.props.style }
|
|
107
|
+
},
|
|
108
|
+
this.props.children,
|
|
109
|
+
/* @__PURE__ */ p.createElement(
|
|
110
|
+
b,
|
|
111
|
+
{
|
|
112
|
+
onPress: this.handlePress,
|
|
113
|
+
onResize: this.handleResize,
|
|
114
|
+
resizable: e,
|
|
115
|
+
rtl: this.state.rtl
|
|
116
|
+
}
|
|
117
|
+
)
|
|
118
|
+
);
|
|
119
|
+
return /* @__PURE__ */ p.createElement("div", { ref: (s) => {
|
|
120
|
+
this.element = s;
|
|
121
|
+
}, style: n }, /* @__PURE__ */ p.createElement(
|
|
122
|
+
"div",
|
|
123
|
+
{
|
|
124
|
+
ref: (s) => {
|
|
125
|
+
this.hintElement = s;
|
|
126
|
+
},
|
|
127
|
+
style: { position: "absolute", ...i },
|
|
128
|
+
className: g("k-layout-item-hint", this.props.hintClassName)
|
|
129
|
+
}
|
|
130
|
+
), /* @__PURE__ */ p.createElement(
|
|
131
|
+
y,
|
|
132
|
+
{
|
|
133
|
+
ref: (s) => {
|
|
134
|
+
this.draggable = s;
|
|
135
|
+
},
|
|
136
|
+
onDrag: this.props.reorderable ? this.handleDrag : void 0,
|
|
137
|
+
onRelease: this.props.reorderable ? this.handleRelease : void 0,
|
|
138
|
+
onPress: this.props.reorderable ? this.handlePress : void 0
|
|
139
|
+
},
|
|
140
|
+
a
|
|
141
|
+
));
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* @hidden
|
|
145
|
+
*/
|
|
146
|
+
getSnapshotBeforeUpdate(t) {
|
|
147
|
+
return this.oldSize = {}, this.dragElement && (this.oldSize = this.dragElement.getBoundingClientRect()), null;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* @hidden
|
|
151
|
+
*/
|
|
152
|
+
componentDidUpdate(t) {
|
|
153
|
+
const e = this.dragElement;
|
|
154
|
+
if (!e)
|
|
155
|
+
return;
|
|
156
|
+
const i = e.getBoundingClientRect(), n = this.oldSize;
|
|
157
|
+
if (this.resizing) {
|
|
158
|
+
const r = i.width - n.width;
|
|
159
|
+
if (this.state.rtl) {
|
|
160
|
+
const c = parseFloat(e.style.marginLeft || "0");
|
|
161
|
+
e.style.marginLeft = c - r + "px";
|
|
162
|
+
} else {
|
|
163
|
+
const c = parseFloat(e.style.marginRight || "0");
|
|
164
|
+
e.style.marginRight = c + r + "px";
|
|
165
|
+
}
|
|
166
|
+
this.pressXY.x += this.state.rtl ? -r : r;
|
|
167
|
+
const o = i.height - n.height, d = parseFloat(e.style.height.substring(12));
|
|
168
|
+
e.style.height = `calc(100% + ${d + o}px)`, this.pressXY.y += o;
|
|
169
|
+
}
|
|
170
|
+
const a = n.left - i.left, s = n.top - i.top;
|
|
171
|
+
if (!(a === 0 && s === 0)) {
|
|
172
|
+
if (this.dragging) {
|
|
173
|
+
(t.defaultPosition.order !== this.props.defaultPosition.order || t.defaultPosition.col !== this.props.defaultPosition.col) && (this.currentTranslate.x = 0, this.currentTranslate.y = 0, e.style.transform = "");
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
Math.abs(s) < 15 && Math.abs(a) < 15 || requestAnimationFrame(() => {
|
|
177
|
+
const r = this.element;
|
|
178
|
+
r && (r.style.transform = `translate(${a}px, ${s}px)`, r.style.transition = "transform 0s", requestAnimationFrame(() => {
|
|
179
|
+
r.style.transform = "", r.style.transition = `transform ${m}ms cubic-bezier(0.2, 0, 0, 1) 0s`;
|
|
180
|
+
}));
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
h.propTypes = {
|
|
186
|
+
defaultPosition: l.object.isRequired,
|
|
187
|
+
style: l.object,
|
|
188
|
+
className: l.string,
|
|
189
|
+
hintStyle: l.object,
|
|
190
|
+
hintClassName: l.string,
|
|
191
|
+
header: l.any,
|
|
192
|
+
body: l.any,
|
|
193
|
+
item: l.any,
|
|
194
|
+
resizable: l.oneOf(["horizontal", "vertical", !0, !1]),
|
|
195
|
+
reorderable: l.bool
|
|
196
|
+
}, h.displayName = "KendoTileLayoutItem", h.defaultProps = {
|
|
197
|
+
resizable: !0,
|
|
198
|
+
reorderable: !0
|
|
199
|
+
};
|
|
200
|
+
let f = h;
|
|
201
|
+
export {
|
|
202
|
+
f as InternalTile
|
|
203
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),a=require("@progress/kendo-react-common");function o(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const s=o(l),i=t=>s.createElement(a.Draggable,{onPress:t.onPress,onDrag:e=>{t.onResize(e.event,!1,t.d)},onRelease:e=>{t.onResize(e.event,!0,t.d)}},s.createElement("div",{className:"k-resize-handle k-cursor-"+t.d+"-resize",style:{bottom:0,right:0,...t.style}}));class c extends s.Component{constructor(){super(...arguments),this.handleResize=(e,n,r)=>{e.originalEvent.preventDefault(),this.props.onResize(e,{end:n,direction:r})}}render(){const{resizable:e,onPress:n,rtl:r}=this.props;return e?s.createElement(s.Fragment,null,e!=="vertical"&&s.createElement(i,{onPress:n,onResize:this.handleResize,d:"ew",style:r?{top:0,width:9,left:0,right:""}:{top:0,width:9,right:0,left:""}}),e!=="horizontal"&&s.createElement(i,{onPress:n,onResize:this.handleResize,d:"ns",style:{left:0,height:9}}),e===!0&&s.createElement(i,{onPress:n,onResize:this.handleResize,d:r?"nesw":"nwse",style:r?{width:9,height:9,right:"",left:0}:{width:9,height:9,right:0,left:""}})):null}}exports.ResizeHandlers=c;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as n from "react";
|
|
10
|
+
import { Draggable as l } from "@progress/kendo-react-common";
|
|
11
|
+
const r = (t) => /* @__PURE__ */ n.createElement(
|
|
12
|
+
l,
|
|
13
|
+
{
|
|
14
|
+
onPress: t.onPress,
|
|
15
|
+
onDrag: (e) => {
|
|
16
|
+
t.onResize(e.event, !1, t.d);
|
|
17
|
+
},
|
|
18
|
+
onRelease: (e) => {
|
|
19
|
+
t.onResize(e.event, !0, t.d);
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
/* @__PURE__ */ n.createElement("div", { className: "k-resize-handle k-cursor-" + t.d + "-resize", style: { bottom: 0, right: 0, ...t.style } })
|
|
23
|
+
);
|
|
24
|
+
class h extends n.Component {
|
|
25
|
+
constructor() {
|
|
26
|
+
super(...arguments), this.handleResize = (e, s, i) => {
|
|
27
|
+
e.originalEvent.preventDefault(), this.props.onResize(e, { end: s, direction: i });
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
render() {
|
|
31
|
+
const { resizable: e, onPress: s, rtl: i } = this.props;
|
|
32
|
+
return e ? /* @__PURE__ */ n.createElement(n.Fragment, null, e !== "vertical" && /* @__PURE__ */ n.createElement(
|
|
33
|
+
r,
|
|
34
|
+
{
|
|
35
|
+
onPress: s,
|
|
36
|
+
onResize: this.handleResize,
|
|
37
|
+
d: "ew",
|
|
38
|
+
style: i ? { top: 0, width: 9, left: 0, right: "" } : { top: 0, width: 9, right: 0, left: "" }
|
|
39
|
+
}
|
|
40
|
+
), e !== "horizontal" && /* @__PURE__ */ n.createElement(r, { onPress: s, onResize: this.handleResize, d: "ns", style: { left: 0, height: 9 } }), e === !0 && /* @__PURE__ */ n.createElement(
|
|
41
|
+
r,
|
|
42
|
+
{
|
|
43
|
+
onPress: s,
|
|
44
|
+
onResize: this.handleResize,
|
|
45
|
+
d: i ? "nesw" : "nwse",
|
|
46
|
+
style: i ? { width: 9, height: 9, right: "", left: 0 } : { width: 9, height: 9, right: 0, left: "" }
|
|
47
|
+
}
|
|
48
|
+
)) : null;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
export {
|
|
52
|
+
h as ResizeHandlers
|
|
53
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react"),t=require("prop-types"),u=require("@progress/kendo-react-common"),N=require("./InternalTile.js"),k=require("../package-metadata.js");function O(d){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(d){for(const a in d)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(d,a);Object.defineProperty(n,a,s.get?s:{enumerable:!0,get:()=>d[a]})}}return n.default=d,Object.freeze(n)}const i=O(S),j={column:"k-grid-flow-col",row:"k-grid-flow-row","column dense":"k-grid-flow-col-dense","row dense":"k-grid-flow-row-dense",unset:"k-grid-flow-unset"},f=class f extends i.Component{constructor(n){super(n),this._element=null,this.state={positions:(this.props.items||[]).map((a,s)=>Object.assign({order:s,rowSpan:1,colSpan:1},a.defaultPosition))},this.showLicenseWatermark=!1,this.focus=()=>{this._element&&this._element.focus()},this.update=(a,s,o,l=0,h=0)=>{if(s===0&&o===0&&!h&&!l)return;let c=!1;const m=this.state.positions.map(y=>Object.assign({},y)),r=m[a],g=m.find(y=>y.order===r.order+s);g&&g!==r&&(r.order+=s,g.order+=-s,c=!0);const e=r.col+o;o!==0&&e>=1&&e+r.colSpan<=(this.props.columns||3)+1&&(r.col=e,c=!0);const p=r.colSpan+h;h&&p>=1&&p+r.col<=(this.props.columns||3)+1&&(r.colSpan=p,c=!0);const w=r.rowSpan+l;l&&w>=1&&(r.rowSpan=w,c=!0),c&&(this.setState({positions:m}),u.dispatchEvent(this.props.onReposition,{},this,{value:m}))},u.validatePackage(k.packageMetadata),this.showLicenseWatermark=u.shouldShowValidationUI(k.packageMetadata)}get element(){return this._element}static getDerivedStateFromProps(n,a){return n.positions?{positions:n.positions.map((s,o)=>Object.assign({order:o,rowSpan:1,colSpan:1},s))}:n.items&&(!a.positions||n.items.length!==a.positions.length)?{positions:n.items.map((s,o)=>Object.assign({order:o,rowSpan:1,colSpan:1},s.defaultPosition))}:null}render(){const{className:n,columns:a=3,columnWidth:s="1fr",gap:o,rowHeight:l="1fr",style:h,autoFlow:c="column",items:m=[]}=this.props,r=o?`${typeof o.rows=="number"?o.rows+"px":o.rows} ${typeof o.columns=="number"?o.columns+"px":o.columns}`:16,g={gridTemplateColumns:`repeat(${a}, minmax(0px, ${typeof s=="number"?s+"px":s}))`,gridAutoRows:`minmax(0px, ${typeof l=="number"?l+"px":l})`,gap:r,padding:r,...h};return i.createElement("div",{ref:e=>{this._element=e},dir:this.props.dir,className:u.classNames("k-tilelayout k-pos-relative",j[c],n),style:g,id:this.props.id,children:m.map((e,p)=>i.createElement(i.Fragment,{key:this.props.dataItemKey?u.getter(this.props.dataItemKey)(e):p},i.createElement(N.InternalTile,{update:this.update,defaultPosition:this.state.positions[p],index:p,resizable:e.resizable,reorderable:e.reorderable,style:e.style,className:e.className,hintClassName:e.hintClassName,hintStyle:e.hintStyle,ignoreDrag:this.props.ignoreDrag},e.item?e.item:i.createElement(i.Fragment,null,i.createElement("div",{className:"k-tilelayout-item-header k-card-header"},i.isValidElement(e.header)?e.header:i.createElement("h5",{className:"k-card-title"},e.header)),i.createElement("div",{className:"k-tilelayout-item-body k-card-body"},e.body))),this.showLicenseWatermark&&i.createElement(u.WatermarkOverlay,null)))})}};f.propTypes={id:t.string,style:t.object,className:t.string,dir:t.string,gap:t.object,columns:t.number,columnWidth:t.oneOfType([t.number,t.string]),rowHeight:t.oneOfType([t.number,t.string]),dataItemKey:t.string,items:t.array,positions:t.array,autoFlow:t.oneOf(["column","row","column dense","row dense","unset"]),onReposition:t.func,ignoreDrag:t.func},f.displayName="KendoTileLayout";let b=f;exports.TileLayout=b;
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as n from "react";
|
|
10
|
+
import t from "prop-types";
|
|
11
|
+
import { dispatchEvent as b, validatePackage as k, shouldShowValidationUI as S, classNames as N, getter as E, WatermarkOverlay as v } from "@progress/kendo-react-common";
|
|
12
|
+
import { InternalTile as x } from "./InternalTile.mjs";
|
|
13
|
+
import { packageMetadata as y } from "../package-metadata.mjs";
|
|
14
|
+
const O = {
|
|
15
|
+
column: "k-grid-flow-col",
|
|
16
|
+
row: "k-grid-flow-row",
|
|
17
|
+
"column dense": "k-grid-flow-col-dense",
|
|
18
|
+
"row dense": "k-grid-flow-row-dense",
|
|
19
|
+
unset: "k-grid-flow-unset"
|
|
20
|
+
}, h = class h extends n.Component {
|
|
21
|
+
constructor(a) {
|
|
22
|
+
super(a), this._element = null, this.state = { positions: (this.props.items || []).map((i, o) => Object.assign({ order: o, rowSpan: 1, colSpan: 1 }, i.defaultPosition)) }, this.showLicenseWatermark = !1, this.focus = () => {
|
|
23
|
+
this._element && this._element.focus();
|
|
24
|
+
}, this.update = (i, o, s, l = 0, u = 0) => {
|
|
25
|
+
if (o === 0 && s === 0 && !u && !l)
|
|
26
|
+
return;
|
|
27
|
+
let m = !1;
|
|
28
|
+
const c = this.state.positions.map((f) => Object.assign({}, f)), r = c[i], d = c.find((f) => f.order === r.order + o);
|
|
29
|
+
d && d !== r && (r.order += o, d.order += -o, m = !0);
|
|
30
|
+
const e = r.col + s;
|
|
31
|
+
s !== 0 && e >= 1 && e + r.colSpan <= (this.props.columns || 3) + 1 && (r.col = e, m = !0);
|
|
32
|
+
const p = r.colSpan + u;
|
|
33
|
+
u && p >= 1 && p + r.col <= (this.props.columns || 3) + 1 && (r.colSpan = p, m = !0);
|
|
34
|
+
const g = r.rowSpan + l;
|
|
35
|
+
l && g >= 1 && (r.rowSpan = g, m = !0), m && (this.setState({ positions: c }), b(this.props.onReposition, {}, this, { value: c }));
|
|
36
|
+
}, k(y), this.showLicenseWatermark = S(y);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Gets the HTML element of the TileLayout component.
|
|
40
|
+
*/
|
|
41
|
+
get element() {
|
|
42
|
+
return this._element;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @hidden
|
|
46
|
+
*/
|
|
47
|
+
static getDerivedStateFromProps(a, i) {
|
|
48
|
+
return a.positions ? {
|
|
49
|
+
positions: a.positions.map((o, s) => Object.assign({ order: s, rowSpan: 1, colSpan: 1 }, o))
|
|
50
|
+
} : a.items && (!i.positions || a.items.length !== i.positions.length) ? {
|
|
51
|
+
positions: a.items.map((o, s) => Object.assign({ order: s, rowSpan: 1, colSpan: 1 }, o.defaultPosition))
|
|
52
|
+
} : null;
|
|
53
|
+
}
|
|
54
|
+
render() {
|
|
55
|
+
const {
|
|
56
|
+
className: a,
|
|
57
|
+
columns: i = 3,
|
|
58
|
+
columnWidth: o = "1fr",
|
|
59
|
+
gap: s,
|
|
60
|
+
rowHeight: l = "1fr",
|
|
61
|
+
style: u,
|
|
62
|
+
autoFlow: m = "column",
|
|
63
|
+
items: c = []
|
|
64
|
+
} = this.props, r = s ? `${typeof s.rows == "number" ? s.rows + "px" : s.rows} ${typeof s.columns == "number" ? s.columns + "px" : s.columns}` : 16, d = {
|
|
65
|
+
gridTemplateColumns: `repeat(${i}, minmax(0px, ${typeof o == "number" ? o + "px" : o}))`,
|
|
66
|
+
gridAutoRows: `minmax(0px, ${typeof l == "number" ? l + "px" : l})`,
|
|
67
|
+
gap: r,
|
|
68
|
+
padding: r,
|
|
69
|
+
...u
|
|
70
|
+
};
|
|
71
|
+
return /* @__PURE__ */ n.createElement(
|
|
72
|
+
"div",
|
|
73
|
+
{
|
|
74
|
+
ref: (e) => {
|
|
75
|
+
this._element = e;
|
|
76
|
+
},
|
|
77
|
+
dir: this.props.dir,
|
|
78
|
+
className: N("k-tilelayout k-pos-relative", O[m], a),
|
|
79
|
+
style: d,
|
|
80
|
+
id: this.props.id,
|
|
81
|
+
children: c.map(
|
|
82
|
+
(e, p) => /* @__PURE__ */ n.createElement(n.Fragment, { key: this.props.dataItemKey ? E(this.props.dataItemKey)(e) : p }, /* @__PURE__ */ n.createElement(
|
|
83
|
+
x,
|
|
84
|
+
{
|
|
85
|
+
update: this.update,
|
|
86
|
+
defaultPosition: this.state.positions[p],
|
|
87
|
+
index: p,
|
|
88
|
+
resizable: e.resizable,
|
|
89
|
+
reorderable: e.reorderable,
|
|
90
|
+
style: e.style,
|
|
91
|
+
className: e.className,
|
|
92
|
+
hintClassName: e.hintClassName,
|
|
93
|
+
hintStyle: e.hintStyle,
|
|
94
|
+
ignoreDrag: this.props.ignoreDrag
|
|
95
|
+
},
|
|
96
|
+
e.item ? e.item : /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("div", { className: "k-tilelayout-item-header k-card-header" }, n.isValidElement(e.header) ? e.header : /* @__PURE__ */ n.createElement("h5", { className: "k-card-title" }, e.header)), /* @__PURE__ */ n.createElement("div", { className: "k-tilelayout-item-body k-card-body" }, e.body))
|
|
97
|
+
), this.showLicenseWatermark && /* @__PURE__ */ n.createElement(v, null))
|
|
98
|
+
)
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
h.propTypes = {
|
|
104
|
+
id: t.string,
|
|
105
|
+
style: t.object,
|
|
106
|
+
className: t.string,
|
|
107
|
+
dir: t.string,
|
|
108
|
+
gap: t.object,
|
|
109
|
+
columns: t.number,
|
|
110
|
+
columnWidth: t.oneOfType([t.number, t.string]),
|
|
111
|
+
rowHeight: t.oneOfType([t.number, t.string]),
|
|
112
|
+
dataItemKey: t.string,
|
|
113
|
+
items: t.array,
|
|
114
|
+
positions: t.array,
|
|
115
|
+
autoFlow: t.oneOf(["column", "row", "column dense", "row dense", "unset"]),
|
|
116
|
+
onReposition: t.func,
|
|
117
|
+
ignoreDrag: t.func
|
|
118
|
+
}, h.displayName = "KendoTileLayout";
|
|
119
|
+
let w = h;
|
|
120
|
+
export {
|
|
121
|
+
w as TileLayout
|
|
122
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react"),k=require("prop-types"),T=require("@progress/kendo-react-common"),v=require("./TimelineHorizontal.js"),h=require("./TimelineVertical.js");function M(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return i.default=e,Object.freeze(i)}const n=M(g),d=e=>{const i={alterMode:!1,collapsibleEvents:!1,dateFormat:"MMM dd, yyyy",...e},{collapsibleEvents:t,transitionDuration:a,className:f,alterMode:o,navigatable:s,horizontal:r,events:c,dateFormat:m,onChange:p,onActionClick:u}=i,[b,y]=n.useState(),l=n.useRef(null);return n.useEffect(()=>{l.current&&y(l.current.offsetWidth)},[]),n.createElement("div",{ref:l,className:T.classNames("k-timeline",{"k-timeline-collapsible":t,"k-timeline-vertical":!r,"k-timeline-alternating":o,"k-timeline-horizontal":r},f),style:{width:`${b}px`}},r?n.createElement(v.TimelineHorizontal,{navigatable:s,eventsData:c,dateFormat:m,transitionDuration:a,onActionClick:u}):n.createElement(h.TimelineVertical,{navigatable:s,eventsData:c,dateFormat:m,alterMode:o,collapsibleEvents:t,transitionDuration:a,onChange:p,onActionClick:u}))};d.propTypes={className:k.string};exports.Timeline=d;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as e from "react";
|
|
10
|
+
import v from "prop-types";
|
|
11
|
+
import { classNames as h } from "@progress/kendo-react-common";
|
|
12
|
+
import { TimelineHorizontal as y } from "./TimelineHorizontal.mjs";
|
|
13
|
+
import { TimelineVertical as E } from "./TimelineVertical.mjs";
|
|
14
|
+
const T = (m) => {
|
|
15
|
+
const p = {
|
|
16
|
+
alterMode: !1,
|
|
17
|
+
collapsibleEvents: !1,
|
|
18
|
+
dateFormat: "MMM dd, yyyy",
|
|
19
|
+
...m
|
|
20
|
+
}, {
|
|
21
|
+
collapsibleEvents: a,
|
|
22
|
+
transitionDuration: n,
|
|
23
|
+
className: f,
|
|
24
|
+
alterMode: r,
|
|
25
|
+
navigatable: l,
|
|
26
|
+
horizontal: t,
|
|
27
|
+
events: o,
|
|
28
|
+
dateFormat: s,
|
|
29
|
+
onChange: d,
|
|
30
|
+
onActionClick: c
|
|
31
|
+
} = p, [k, u] = e.useState(), i = e.useRef(null);
|
|
32
|
+
return e.useEffect(() => {
|
|
33
|
+
i.current && u(i.current.offsetWidth);
|
|
34
|
+
}, []), /* @__PURE__ */ e.createElement(
|
|
35
|
+
"div",
|
|
36
|
+
{
|
|
37
|
+
ref: i,
|
|
38
|
+
className: h(
|
|
39
|
+
"k-timeline",
|
|
40
|
+
{
|
|
41
|
+
"k-timeline-collapsible": a,
|
|
42
|
+
"k-timeline-vertical": !t,
|
|
43
|
+
"k-timeline-alternating": r,
|
|
44
|
+
"k-timeline-horizontal": t
|
|
45
|
+
},
|
|
46
|
+
f
|
|
47
|
+
),
|
|
48
|
+
style: { width: `${k}px` }
|
|
49
|
+
},
|
|
50
|
+
t ? /* @__PURE__ */ e.createElement(
|
|
51
|
+
y,
|
|
52
|
+
{
|
|
53
|
+
navigatable: l,
|
|
54
|
+
eventsData: o,
|
|
55
|
+
dateFormat: s,
|
|
56
|
+
transitionDuration: n,
|
|
57
|
+
onActionClick: c
|
|
58
|
+
}
|
|
59
|
+
) : /* @__PURE__ */ e.createElement(
|
|
60
|
+
E,
|
|
61
|
+
{
|
|
62
|
+
navigatable: l,
|
|
63
|
+
eventsData: o,
|
|
64
|
+
dateFormat: s,
|
|
65
|
+
alterMode: r,
|
|
66
|
+
collapsibleEvents: a,
|
|
67
|
+
transitionDuration: n,
|
|
68
|
+
onChange: d,
|
|
69
|
+
onActionClick: c
|
|
70
|
+
}
|
|
71
|
+
)
|
|
72
|
+
);
|
|
73
|
+
};
|
|
74
|
+
T.propTypes = {
|
|
75
|
+
className: v.string
|
|
76
|
+
};
|
|
77
|
+
export {
|
|
78
|
+
T as Timeline
|
|
79
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react"),b=require("prop-types"),y=require("../card/Card.js"),A=require("../card/CardHeader.js"),D=require("../card/CardTitle.js"),I=require("../card/CardSubtitle.js"),O=require("../card/CardBody.js"),T=require("../card/CardImage.js"),h=require("../card/CardActions.js"),r=require("@progress/kendo-react-common"),q=require("@progress/kendo-react-animation"),S=require("@progress/kendo-svg-icons");function R(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const c=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(i,l,c.get?c:{enumerable:!0,get:()=>e[l]})}}return i.default=e,Object.freeze(i)}const t=R(N),v=e=>{const{title:l,subtitle:c,actions:o,images:d,description:E}=e.eventData,[s,C]=t.useState(e.eventData.opened||!1),[u,m]=t.useState(e.eventData.opened||!!e.collapsible),f=n=>{if(C(!s),e.onChange){const a={syntheticEvent:n,nativeEvent:n.nativeEvent,eventData:e.eventData};e.onChange.call(void 0,a)}},g=n=>{if(e.onActionClick){const a={syntheticEvent:n,nativeEvent:n.nativeEvent,eventData:e.eventData};e.onActionClick.call(void 0,a)}},k=()=>t.createElement(t.Fragment,null,t.createElement(O.CardBody,null,t.createElement("div",{className:"k-card-description"},t.createElement("p",null,E),d&&d.map((n,a)=>t.createElement(T.CardImage,{key:a,src:n.src})))),t.createElement(h.CardActions,null,o&&o.map((n,a)=>t.createElement("a",{key:a,href:n.url,className:"k-button k-button-md k-rounded-md k-button-flat k-button-flat-primary",onClick:g},n.text))));return t.createElement("div",{"data-testid":"k-timeline-card",className:r.classNames("k-timeline-card",{"k-collapsed":e.collapsible&&u})},t.createElement(y.Card,{"aria-live":"polite","aria-describedby":e.id,"aria-atomic":"true",tabIndex:e.tabindex,role:e.horizontal?"tabpanel":"button","aria-expanded":e.collapsible&&u,className:"k-card-with-callout",onClick:n=>f(n)},t.createElement("span",{style:e.calloutStyle,className:r.classNames("k-timeline-card-callout","k-card-callout",{"k-callout-n":e.horizontal},{"k-callout-e":e.alternated&&!e.horizontal},{"k-callout-w":!e.alternated&&!e.horizontal})}),t.createElement("div",{className:"k-card-inner"},t.createElement(A.CardHeader,null,t.createElement(D.CardTitle,null,t.createElement("span",{className:"k-event-title"},l),e.collapsible&&t.createElement("span",{className:"k-event-collapse k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button"},t.createElement(r.SvgIcon,{icon:S.chevronRightIcon}))),c&&t.createElement(I.CardSubtitle,null,c)),e.collapsible?t.createElement(q.Reveal,{transitionEnterDuration:e.transitionDuration||400,transitionExitDuration:e.transitionDuration||400,onBeforeEnter:()=>m(!1),onAfterExited:()=>m(!0)},s?k():null):k())))};v.propTypes={onChange:b.func,onActionClick:b.func};exports.TimelineCard=v;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as t from "react";
|
|
10
|
+
import s from "prop-types";
|
|
11
|
+
import { Card as C } from "../card/Card.mjs";
|
|
12
|
+
import { CardHeader as N } from "../card/CardHeader.mjs";
|
|
13
|
+
import { CardTitle as A } from "../card/CardTitle.mjs";
|
|
14
|
+
import { CardSubtitle as D } from "../card/CardSubtitle.mjs";
|
|
15
|
+
import { CardBody as h } from "../card/CardBody.mjs";
|
|
16
|
+
import { CardImage as I } from "../card/CardImage.mjs";
|
|
17
|
+
import { CardActions as g } from "../card/CardActions.mjs";
|
|
18
|
+
import { classNames as u, SvgIcon as y } from "@progress/kendo-react-common";
|
|
19
|
+
import { Reveal as T } from "@progress/kendo-react-animation";
|
|
20
|
+
import { chevronRightIcon as O } from "@progress/kendo-svg-icons";
|
|
21
|
+
const x = (e) => {
|
|
22
|
+
const { title: k, subtitle: l, actions: i, images: o, description: E } = e.eventData, [c, v] = t.useState(e.eventData.opened || !1), [r, m] = t.useState(e.eventData.opened || !!e.collapsible), f = (a) => {
|
|
23
|
+
if (v(!c), e.onChange) {
|
|
24
|
+
const n = {
|
|
25
|
+
syntheticEvent: a,
|
|
26
|
+
nativeEvent: a.nativeEvent,
|
|
27
|
+
eventData: e.eventData
|
|
28
|
+
};
|
|
29
|
+
e.onChange.call(void 0, n);
|
|
30
|
+
}
|
|
31
|
+
}, b = (a) => {
|
|
32
|
+
if (e.onActionClick) {
|
|
33
|
+
const n = {
|
|
34
|
+
syntheticEvent: a,
|
|
35
|
+
nativeEvent: a.nativeEvent,
|
|
36
|
+
eventData: e.eventData
|
|
37
|
+
};
|
|
38
|
+
e.onActionClick.call(void 0, n);
|
|
39
|
+
}
|
|
40
|
+
}, d = () => /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(h, null, /* @__PURE__ */ t.createElement("div", { className: "k-card-description" }, /* @__PURE__ */ t.createElement("p", null, E), o && o.map((a, n) => /* @__PURE__ */ t.createElement(I, { key: n, src: a.src })))), /* @__PURE__ */ t.createElement(g, null, i && i.map((a, n) => /* @__PURE__ */ t.createElement(
|
|
41
|
+
"a",
|
|
42
|
+
{
|
|
43
|
+
key: n,
|
|
44
|
+
href: a.url,
|
|
45
|
+
className: "k-button k-button-md k-rounded-md k-button-flat k-button-flat-primary",
|
|
46
|
+
onClick: b
|
|
47
|
+
},
|
|
48
|
+
a.text
|
|
49
|
+
))));
|
|
50
|
+
return /* @__PURE__ */ t.createElement(
|
|
51
|
+
"div",
|
|
52
|
+
{
|
|
53
|
+
"data-testid": "k-timeline-card",
|
|
54
|
+
className: u(
|
|
55
|
+
"k-timeline-card",
|
|
56
|
+
{ "k-collapsed": e.collapsible && r }
|
|
57
|
+
)
|
|
58
|
+
},
|
|
59
|
+
/* @__PURE__ */ t.createElement(
|
|
60
|
+
C,
|
|
61
|
+
{
|
|
62
|
+
"aria-live": "polite",
|
|
63
|
+
"aria-describedby": e.id,
|
|
64
|
+
"aria-atomic": "true",
|
|
65
|
+
tabIndex: e.tabindex,
|
|
66
|
+
role: e.horizontal ? "tabpanel" : "button",
|
|
67
|
+
"aria-expanded": e.collapsible && r,
|
|
68
|
+
className: "k-card-with-callout",
|
|
69
|
+
onClick: (a) => f(a)
|
|
70
|
+
},
|
|
71
|
+
/* @__PURE__ */ t.createElement(
|
|
72
|
+
"span",
|
|
73
|
+
{
|
|
74
|
+
style: e.calloutStyle,
|
|
75
|
+
className: u(
|
|
76
|
+
"k-timeline-card-callout",
|
|
77
|
+
"k-card-callout",
|
|
78
|
+
{ "k-callout-n": e.horizontal },
|
|
79
|
+
{ "k-callout-e": e.alternated && !e.horizontal },
|
|
80
|
+
{ "k-callout-w": !e.alternated && !e.horizontal }
|
|
81
|
+
)
|
|
82
|
+
}
|
|
83
|
+
),
|
|
84
|
+
/* @__PURE__ */ t.createElement("div", { className: "k-card-inner" }, /* @__PURE__ */ t.createElement(N, null, /* @__PURE__ */ t.createElement(A, null, /* @__PURE__ */ t.createElement("span", { className: "k-event-title" }, k), e.collapsible && /* @__PURE__ */ t.createElement(
|
|
85
|
+
"span",
|
|
86
|
+
{
|
|
87
|
+
className: "k-event-collapse k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button"
|
|
88
|
+
},
|
|
89
|
+
/* @__PURE__ */ t.createElement(y, { icon: O })
|
|
90
|
+
)), l && /* @__PURE__ */ t.createElement(D, null, l)), e.collapsible ? /* @__PURE__ */ t.createElement(
|
|
91
|
+
T,
|
|
92
|
+
{
|
|
93
|
+
transitionEnterDuration: e.transitionDuration || 400,
|
|
94
|
+
transitionExitDuration: e.transitionDuration || 400,
|
|
95
|
+
onBeforeEnter: () => m(!1),
|
|
96
|
+
onAfterExited: () => m(!0)
|
|
97
|
+
},
|
|
98
|
+
c ? d() : null
|
|
99
|
+
) : d())
|
|
100
|
+
)
|
|
101
|
+
);
|
|
102
|
+
};
|
|
103
|
+
x.propTypes = {
|
|
104
|
+
onChange: s.func,
|
|
105
|
+
onActionClick: s.func
|
|
106
|
+
};
|
|
107
|
+
export {
|
|
108
|
+
x as TimelineCard
|
|
109
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const mt=require("react"),kt=require("prop-types"),bt=require("./TimelineCard.js"),Tt=require("./utils.js"),M=require("@progress/kendo-svg-icons"),gt=require("@progress/kendo-react-intl"),k=require("@progress/kendo-react-common");function vt(l){const p=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(l){for(const T in l)if(T!=="default"){const N=Object.getOwnPropertyDescriptor(l,T);Object.defineProperty(p,T,N.get?N:{enumerable:!0,get:()=>l[T]})}}return p.default=l,Object.freeze(p)}const n=vt(mt),K=l=>{const N=gt.useInternationalization(),[O,X]=n.useState(!1),[D,Y]=n.useState(!0),[B,G]=n.useState(),[f,L]=n.useState(0),[y,J]=n.useState(),[u,Q]=n.useState(0),[b,Z]=n.useState(0),[a,W]=n.useState(1),[d,S]=n.useState(),[i,tt]=n.useState(),[_,U]=n.useState([0,0,0]),[C,P]=n.useState(0),[et,nt]=n.useState(1),m=n.useRef(null),c=n.useRef(null),F=n.useRef(null),{eventsData:st,dateFormat:rt,navigatable:at,onActionClick:ot}=l,x=y?`${y}%`:"150px",g=n.useRef(new k.Navigation({tabIndex:0,root:m,selectors:[".k-timeline-scrollable-wrap"]}));n.useEffect(()=>{m.current&&l.navigatable&&(setTimeout(()=>{const t=g.current.first;t&&t.setAttribute("tabindex",String(0))},0),g.current.keyboardEvents={keydown:{ArrowRight:it,ArrowLeft:lt,End:ft,Home:ut}})},[l.navigatable,a,u]),n.useEffect(()=>{g.current.update()});const ct=t=>{at&&g.current&&g.current.triggerKeyboardEvent(t)};n.useEffect(()=>{var r;const t=k.canUseDOM&&window.ResizeObserver&&new window.ResizeObserver(I),e=c.current,s=((r=m==null?void 0:m.current)==null?void 0:r.offsetWidth)||0;return t&&e&&t.observe(e),V(),I(),U([s,0,-s]),()=>{t&&t.disconnect()}},[]),n.useEffect(()=>{const t=c.current,e=t&&t.children[a];if(e){const s=e.offsetWidth,r=!(f>=0);if(X(r),i){const o=i.length*s>u*s*((f*-1+100)/100);Y(o)}(t==null?void 0:t.offsetWidth)*-f/100>=t.children.length*s&&(V(),I(),L((e.offsetLeft-e.offsetWidth)/(u*e.offsetWidth)*100*-1)),z(e)}},[u,y,a]);const it=(t,e,s)=>{if(c.current){const r=c.current.children[a+1],o=r&&r.classList.contains("k-timeline-flag-wrap")?a+2:a+1;if(i&&i.length<=o)return;u+b<=o&&j(),E(o,s)}},lt=(t,e,s)=>{if(c.current){const r=c.current&&c.current.children[a-1],o=r&&r.classList.contains("k-timeline-flag-wrap")?a-2:a-1;if(o<=0)return;o<b&&$(),E(o,s)}},ut=(t,e,s)=>{if(c.current){if(a<=1)return;const r=1;w(!0,r,0,0),E(r,s)}},ft=(t,e,s)=>{if(c.current){const r=c.current&&c.current.children.length-1;if(r<=a)return;const o=Math.floor(r/u),h=o*-100,R=o*u;w(!0,r,R,h),E(r,s)}},V=()=>{const t=Tt.addYearsFlags(st);tt(t),S([t[a-1],t[a],t[a+1]])},$=()=>{var e;if(c.current&&i){const s=b-u,r=b-1,o=i[r]&&((e=i[r])!=null&&e.yearFlag)?r-1:r,h=f+100>0?0:f+100;w(!1,o,s,h)}},j=()=>{if(c.current&&i){const e=b+u,s=i[e]&&i[e].yearFlag?e+1:e,r=f-100;w(!0,s,e,r)}},w=(t,e,s,r)=>{A(t,e),I(),Z(s),L(r),W(e)},A=(t,e)=>{if(d&&i){const s=v(t,et),r=Object.assign([],d,{[s]:i[e]});S(r),nt(s),P(t?-100:100),setTimeout(()=>{var q;const o=(q=m.current)==null?void 0:q.offsetWidth,h=Object.assign([],_,{[s]:0,[v(!0,s)]:o,[v(!1,s)]:o&&-o}),R=Object.assign([],r,{[v(!0,s)]:{},[v(!1,s)]:{}});S(R),U(h),P(0)},l.transitionDuration||300)}},v=(t,e)=>{const s=t?e+1:e-1;return d?s<0?d.length-1:s%d.length:0},z=t=>{var s;const e=(a-b)*t.offsetWidth+t.offsetWidth/2+(((s=F.current)==null?void 0:s.offsetWidth)||0);G(e)},E=(t,e)=>{e.preventDefault(),t>a?A(!0,t):t<a&&A(!1,t),W(t)},I=n.useCallback(()=>{const t=c.current,e=t&&t.children[a];if(t instanceof HTMLElement&&e){const s=Math.round(t.offsetWidth/150);z(e),J(100/s),Q(s)}},[]),dt=()=>({transitionDuration:"300ms"}),H=t=>({transform:`translateX(${t}%)`,transformOrigin:"left top"});return n.createElement(n.Fragment,null,n.createElement("div",{className:"k-timeline-track-wrap",ref:m,onKeyDown:ct},n.createElement("button",{ref:F,"aria-hidden":"true",onClick:()=>O&&$(),className:k.classNames("k-timeline-arrow","k-timeline-arrow-left","k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-icon-button",{"k-disabled":!O})},n.createElement(k.SvgIcon,{icon:M.caretAltLeftIcon})),n.createElement("button",{"aria-hidden":"true",onClick:()=>D&&j(),className:k.classNames("k-timeline-arrow","k-timeline-arrow-right","k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-icon-button",{"k-disabled":!D})},n.createElement(k.SvgIcon,{icon:M.caretAltRightIcon})),n.createElement("div",{className:"k-timeline-track"},n.createElement("ul",{ref:c,className:"k-timeline-scrollable-wrap",role:"tablist",tabIndex:0,style:{transform:`translateX(${f}%)`}},i&&i.map((t,e)=>t.yearFlag?n.createElement("li",{role:"none",className:"k-timeline-track-item k-timeline-flag-wrap",style:{flex:`1 0 ${x}`},key:e},n.createElement("span",{className:"k-timeline-flag"},t.yearFlag)):n.createElement("li",{role:"tab",className:k.classNames("k-timeline-track-item",{"k-focus":e===a}),"aria-selected":e===a,style:{flex:`1 0 ${x}`},key:e},n.createElement("div",{className:"k-timeline-date-wrap"},n.createElement("span",{className:"k-timeline-date"},N.formatDate(t.date,rt))),n.createElement("span",{onClick:s=>E(e,s),className:"k-timeline-circle"})))))),n.createElement("div",{className:"k-timeline-events-list"},n.createElement("ul",{className:"k-timeline-scrollable-wrap",style:C===0?{...H(C)}:{...H(C),...dt()}},d&&d.map((t,e)=>n.createElement("li",{key:e,className:"k-timeline-event",style:{transform:`translate3d(${_[e]}px, 0px, 0px)`}},t&&n.createElement(bt.TimelineCard,{tabindex:_[e]===0?0:-1,eventData:t,onActionClick:ot,horizontal:!0,collapsible:!1,calloutStyle:{left:`${B}px`}}))))))};K.propTypes={onActionClick:kt.func};exports.TimelineHorizontal=K;
|