@progress/kendo-vue-layout 8.0.3-develop.1 → 8.0.3-develop.3
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 +234 -0
- package/actionsheet/ActionSheetContent.d.ts +25 -0
- package/actionsheet/ActionSheetFooter.d.ts +25 -0
- package/actionsheet/ActionSheetHeader.d.ts +34 -0
- package/actionsheet/ActionSheetItem.d.ts +65 -0
- package/actionsheet/interfaces/ActionSheetContentProps.d.ts +16 -0
- package/actionsheet/interfaces/ActionSheetFooterProps.d.ts +16 -0
- package/actionsheet/interfaces/ActionSheetHeaderProps.d.ts +20 -0
- package/actionsheet/interfaces/ActionSheetItemProps.d.ts +81 -0
- package/appbar/AppBar.d.ts +60 -0
- package/appbar/AppBarSection.d.ts +21 -0
- package/appbar/AppBarSpacer.d.ts +30 -0
- package/appbar/interfaces/AppBarProps.d.ts +74 -0
- package/appbar/interfaces/AppBarSectionProps.d.ts +12 -0
- package/appbar/interfaces/AppBarSpacerProps.d.ts +14 -0
- package/bottomnavigation/BottomNavigation.d.ts +117 -0
- package/bottomnavigation/BottomNavigationItem.d.ts +59 -0
- package/bottomnavigation/BottomNavigationItemProps.d.ts +61 -0
- package/bottomnavigation/BottomNavigationProps.d.ts +154 -0
- package/bottomnavigation/models/events.d.ts +25 -0
- package/bottomnavigation/models/utils.d.ts +43 -0
- package/breadcrumb/Breadcrumb.d.ts +143 -0
- package/breadcrumb/BreadcrumbDelimiter.d.ts +21 -0
- package/breadcrumb/BreadcrumbLink.d.ts +63 -0
- package/breadcrumb/BreadcrumbListItem.d.ts +30 -0
- package/breadcrumb/BreadcrumbOrderedList.d.ts +42 -0
- package/breadcrumb/interfaces/BreadcrumbDelimiterProps.d.ts +24 -0
- package/breadcrumb/interfaces/BreadcrumbLinkProps.d.ts +61 -0
- package/breadcrumb/interfaces/BreadcrumbListItemProps.d.ts +24 -0
- package/breadcrumb/interfaces/BreadcrumbOrderedListProps.d.ts +42 -0
- package/breadcrumb/interfaces/BreadcrumbProps.d.ts +138 -0
- package/card/Avatar.d.ts +76 -0
- package/card/Card.d.ts +50 -0
- package/card/CardActions.d.ts +52 -0
- package/card/CardBody.d.ts +12 -0
- package/card/CardFooter.d.ts +12 -0
- package/card/CardHeader.d.ts +12 -0
- package/card/CardImage.d.ts +17 -0
- package/card/CardSubtitle.d.ts +12 -0
- package/card/CardTitle.d.ts +12 -0
- package/card/interfaces/AvatarProps.d.ts +79 -0
- package/card/interfaces/CardActionsProps.d.ts +29 -0
- package/card/interfaces/CardBodyProps.d.ts +9 -0
- package/card/interfaces/CardFooterProps.d.ts +9 -0
- package/card/interfaces/CardHeaderProps.d.ts +9 -0
- package/card/interfaces/CardImageProps.d.ts +13 -0
- package/card/interfaces/CardProps.d.ts +34 -0
- package/card/interfaces/CardSubtitleProps.d.ts +9 -0
- package/card/interfaces/CardTitleProps.d.ts +9 -0
- package/card/interfaces/Enums.d.ts +39 -0
- package/card/interfaces/Enums.js +1 -1
- package/card/interfaces/Enums.mjs +5 -5
- package/dist/cdn/js/kendo-vue-layout.js +1 -1
- package/drawer/Drawer.d.ts +148 -0
- package/drawer/DrawerContent.d.ts +84 -0
- package/drawer/DrawerItem.d.ts +81 -0
- package/drawer/DrawerNavigation.d.ts +47 -0
- package/drawer/context/DrawerContext.d.ts +24 -0
- package/drawer/interfaces/DrawerAnimation.d.ts +21 -0
- package/drawer/interfaces/DrawerContentProps.d.ts +12 -0
- package/drawer/interfaces/DrawerItemHandle.d.ts +24 -0
- package/drawer/interfaces/DrawerItemProps.d.ts +55 -0
- package/drawer/interfaces/DrawerNavigationProps.d.ts +21 -0
- package/drawer/interfaces/DrawerProps.d.ts +92 -0
- package/drawer/interfaces/DrawerSelectEvent.d.ts +20 -0
- package/expansionpanel/ExpansionPanel.d.ts +59 -0
- package/expansionpanel/ExpansionPanel.mjs +1 -1
- package/expansionpanel/ExpansionPanelContent.d.ts +12 -0
- package/expansionpanel/interfaces.d.ts +95 -0
- package/expansionpanel/main.d.ts +10 -0
- package/gridlayout/GridLayout.d.ts +61 -0
- package/gridlayout/GridLayoutItem.d.ts +35 -0
- package/gridlayout/interfaces/GridLayoutColumnProps.d.ts +17 -0
- package/gridlayout/interfaces/GridLayoutItemProps.d.ts +46 -0
- package/gridlayout/interfaces/GridLayoutProps.d.ts +102 -0
- package/gridlayout/interfaces/GridLayoutRowProps.d.ts +17 -0
- package/index.d.mts +86 -4954
- package/index.d.ts +86 -4954
- package/menu/BaseMenuItemInternalProps.d.ts +27 -0
- package/menu/MenuProps.d.ts +58 -0
- package/menu/components/Menu.d.ts +117 -0
- package/menu/components/MenuItemArrow.d.ts +52 -0
- package/menu/components/MenuItemArrow.mjs +2 -2
- package/menu/components/MenuItemInternal.d.ts +173 -0
- package/menu/components/MenuItemLink.d.ts +53 -0
- package/menu/consts.d.ts +61 -0
- package/menu/events.d.ts +21 -0
- package/menu/models/BaseMenuItem.d.ts +65 -0
- package/menu/models/MenuItemModel.d.ts +26 -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 +12 -0
- package/messages/main.d.ts +22 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +15 -9
- package/panelbar/PanelBar.d.ts +88 -0
- package/panelbar/PanelBarItem.d.ts +87 -0
- package/panelbar/interfaces/NavigationAction.d.ts +15 -0
- package/panelbar/interfaces/PanelBarItemClickEventArguments.d.ts +14 -0
- package/panelbar/interfaces/PanelBarItemProps.d.ts +97 -0
- package/panelbar/interfaces/PanelBarProps.d.ts +65 -0
- package/panelbar/interfaces/PanelBarSelectEventArguments.d.ts +20 -0
- package/panelbar/interfaces/RenderPanelBarItem.d.ts +21 -0
- package/panelbar/util.d.ts +42 -0
- package/splitter/Splitter.d.ts +170 -0
- package/splitter/SplitterBar.d.ts +72 -0
- package/splitter/SplitterPane.d.ts +101 -0
- package/stacklayout/StackLayout.d.ts +64 -0
- package/stacklayout/StackLayoutProps.d.ts +82 -0
- package/stepper/Step.d.ts +120 -0
- package/stepper/Stepper.d.ts +195 -0
- package/stepper/contants.d.ts +15 -0
- package/stepper/context/StepperContext.d.ts +23 -0
- package/stepper/interfaces/StepChangeEvent.d.ts +16 -0
- package/stepper/interfaces/StepFocusEvent.d.ts +12 -0
- package/stepper/interfaces/StepHandle.d.ts +20 -0
- package/stepper/interfaces/StepProps.d.ts +91 -0
- package/stepper/interfaces/StepperChangeEvent.d.ts +16 -0
- package/stepper/interfaces/StepperFocusEvent.d.ts +12 -0
- package/stepper/interfaces/StepperHandle.d.ts +20 -0
- package/stepper/interfaces/StepperOnNavigateEvent.d.ts +30 -0
- package/stepper/interfaces/StepperProps.d.ts +95 -0
- package/stepper/messages/main.d.ts +22 -0
- package/tabstrip/TabStrip.d.ts +171 -0
- package/tabstrip/TabStripContent.d.ts +71 -0
- package/tabstrip/TabStripNavigation.d.ts +101 -0
- package/tabstrip/TabStripNavigationItem.d.ts +118 -0
- package/tabstrip/TabStripTab.d.ts +59 -0
- package/tabstrip/utils.d.ts +8 -0
- package/tilelayout/ResizeHandlers.d.ts +84 -0
- package/tilelayout/Tile.d.ts +105 -0
- package/tilelayout/TileLayout.d.ts +126 -0
- package/tilelayout/interfaces/main.d.ts +205 -0
|
@@ -0,0 +1,84 @@
|
|
|
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 { PropType } from 'vue';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface ResizeHandlersProps {
|
|
13
|
+
direction: string;
|
|
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
|
+
declare const ResizeHandlers: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
25
|
+
direction: PropType<string>;
|
|
26
|
+
rtl: PropType<boolean>;
|
|
27
|
+
onResize: PropType<(e: any, args: {
|
|
28
|
+
end: boolean;
|
|
29
|
+
direction: any;
|
|
30
|
+
}) => void>;
|
|
31
|
+
onPress: PropType<(e: any) => void>;
|
|
32
|
+
}>, {}, {}, {
|
|
33
|
+
handleClass(): string;
|
|
34
|
+
dirStyles(): {
|
|
35
|
+
top: number;
|
|
36
|
+
width: string;
|
|
37
|
+
left: number;
|
|
38
|
+
right: string;
|
|
39
|
+
height?: undefined;
|
|
40
|
+
} | {
|
|
41
|
+
top: number;
|
|
42
|
+
width: string;
|
|
43
|
+
right: number;
|
|
44
|
+
left: string;
|
|
45
|
+
height?: undefined;
|
|
46
|
+
} | {
|
|
47
|
+
left: number;
|
|
48
|
+
height: string;
|
|
49
|
+
top?: undefined;
|
|
50
|
+
width?: undefined;
|
|
51
|
+
right?: undefined;
|
|
52
|
+
} | {
|
|
53
|
+
width: string;
|
|
54
|
+
height: string;
|
|
55
|
+
right: string;
|
|
56
|
+
left: number;
|
|
57
|
+
top?: undefined;
|
|
58
|
+
} | {
|
|
59
|
+
width: string;
|
|
60
|
+
height: string;
|
|
61
|
+
right: number;
|
|
62
|
+
left: string;
|
|
63
|
+
top?: undefined;
|
|
64
|
+
} | {
|
|
65
|
+
top?: undefined;
|
|
66
|
+
width?: undefined;
|
|
67
|
+
left?: undefined;
|
|
68
|
+
right?: undefined;
|
|
69
|
+
height?: undefined;
|
|
70
|
+
};
|
|
71
|
+
handleStyle(): any;
|
|
72
|
+
}, {
|
|
73
|
+
handleResize(event: any, isEnd: boolean, direction: any): void;
|
|
74
|
+
handlePress(event: any): void;
|
|
75
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
76
|
+
direction: PropType<string>;
|
|
77
|
+
rtl: PropType<boolean>;
|
|
78
|
+
onResize: PropType<(e: any, args: {
|
|
79
|
+
end: boolean;
|
|
80
|
+
direction: any;
|
|
81
|
+
}) => void>;
|
|
82
|
+
onPress: PropType<(e: any) => void>;
|
|
83
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
84
|
+
export { ResizeHandlers };
|
|
@@ -0,0 +1,105 @@
|
|
|
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 { TileStrictPosition, TileLayoutItem } from './interfaces/main';
|
|
9
|
+
import { PropType } from 'vue';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export interface TileProps extends TileLayoutItem {
|
|
14
|
+
onUpdate?: (index: number, dRow: number, dCol: number, row: number, col: number) => void;
|
|
15
|
+
index: number;
|
|
16
|
+
defaultPosition: TileStrictPosition;
|
|
17
|
+
ignoreDrag?: (event: any) => boolean;
|
|
18
|
+
tabIndex: number;
|
|
19
|
+
ariaDescribedBy: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @hidden
|
|
23
|
+
*/
|
|
24
|
+
declare const Tile: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
25
|
+
defaultPosition: {
|
|
26
|
+
type: PropType<TileStrictPosition>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
index: PropType<number>;
|
|
30
|
+
tile: PropType<object>;
|
|
31
|
+
hintStyle: PropType<object>;
|
|
32
|
+
hintClass: PropType<string>;
|
|
33
|
+
header: PropType<any>;
|
|
34
|
+
body: PropType<any>;
|
|
35
|
+
item: PropType<any>;
|
|
36
|
+
resizable: {
|
|
37
|
+
type: PropType<string | boolean>;
|
|
38
|
+
default: boolean;
|
|
39
|
+
validator: (value: string) => any;
|
|
40
|
+
};
|
|
41
|
+
reorderable: {
|
|
42
|
+
type: PropType<boolean>;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
tabIndex: {
|
|
46
|
+
type: PropType<number>;
|
|
47
|
+
default: number;
|
|
48
|
+
};
|
|
49
|
+
ariaDescribedBy: PropType<string>;
|
|
50
|
+
ignoreDrag: PropType<(event: any) => boolean>;
|
|
51
|
+
onUpdate: PropType<(index: number, dRow: number, dCol: number, row: number, col: number) => void>;
|
|
52
|
+
}>, {}, {
|
|
53
|
+
rtl: boolean;
|
|
54
|
+
grabbed: boolean;
|
|
55
|
+
showHint: boolean;
|
|
56
|
+
}, {
|
|
57
|
+
wrapperClass(): {
|
|
58
|
+
'k-tilelayout-item': boolean;
|
|
59
|
+
'k-card': boolean;
|
|
60
|
+
'k-cursor-grab': any;
|
|
61
|
+
};
|
|
62
|
+
}, {
|
|
63
|
+
touchStart(e: any): void;
|
|
64
|
+
dragElement(): any;
|
|
65
|
+
handleResize(e: any, q: {
|
|
66
|
+
end: boolean;
|
|
67
|
+
direction: any;
|
|
68
|
+
}): void;
|
|
69
|
+
handlePress(e: any): void;
|
|
70
|
+
handleDrag(e: any): void;
|
|
71
|
+
handleRelease(): void;
|
|
72
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
73
|
+
defaultPosition: {
|
|
74
|
+
type: PropType<TileStrictPosition>;
|
|
75
|
+
required: true;
|
|
76
|
+
};
|
|
77
|
+
index: PropType<number>;
|
|
78
|
+
tile: PropType<object>;
|
|
79
|
+
hintStyle: PropType<object>;
|
|
80
|
+
hintClass: PropType<string>;
|
|
81
|
+
header: PropType<any>;
|
|
82
|
+
body: PropType<any>;
|
|
83
|
+
item: PropType<any>;
|
|
84
|
+
resizable: {
|
|
85
|
+
type: PropType<string | boolean>;
|
|
86
|
+
default: boolean;
|
|
87
|
+
validator: (value: string) => any;
|
|
88
|
+
};
|
|
89
|
+
reorderable: {
|
|
90
|
+
type: PropType<boolean>;
|
|
91
|
+
default: boolean;
|
|
92
|
+
};
|
|
93
|
+
tabIndex: {
|
|
94
|
+
type: PropType<number>;
|
|
95
|
+
default: number;
|
|
96
|
+
};
|
|
97
|
+
ariaDescribedBy: PropType<string>;
|
|
98
|
+
ignoreDrag: PropType<(event: any) => boolean>;
|
|
99
|
+
onUpdate: PropType<(index: number, dRow: number, dCol: number, row: number, col: number) => void>;
|
|
100
|
+
}>> & Readonly<{}>, {
|
|
101
|
+
tabIndex: number;
|
|
102
|
+
resizable: string | boolean;
|
|
103
|
+
reorderable: boolean;
|
|
104
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
105
|
+
export { Tile };
|
|
@@ -0,0 +1,126 @@
|
|
|
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 { TileLayoutGap, TileLayoutItem, TilePosition, TileLayoutRepositionEvent, TileLayoutAutoFlow } from './interfaces/main';
|
|
9
|
+
/**
|
|
10
|
+
* Represents the properties of [TileLayout](% slug overview_tilelayout %) component.
|
|
11
|
+
*/
|
|
12
|
+
export interface TileLayoutProps {
|
|
13
|
+
/**
|
|
14
|
+
* Sets the `id` property of the root element.
|
|
15
|
+
*/
|
|
16
|
+
id?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Represents the `dir` HTML attribute. This is used to switch from LTR to RTL.
|
|
19
|
+
*/
|
|
20
|
+
dir?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Specifies the gaps between the tiles ([see example]({% slug overview_tilelayout %}#toc-tilelayout-configuration-options)).
|
|
23
|
+
*
|
|
24
|
+
* * The possible keys are:
|
|
25
|
+
* * `rows`
|
|
26
|
+
* * `columns`
|
|
27
|
+
*/
|
|
28
|
+
gap?: TileLayoutGap;
|
|
29
|
+
/**
|
|
30
|
+
* Specifies the default number of columns ([see example]({% slug overview_tilelayout %}#toc-tilelayout-configuration-options)).
|
|
31
|
+
*/
|
|
32
|
+
columns?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Specifies the default width of the columns ([see example]({% slug overview_tilelayout %}#toc-tilelayout-configuration-options)).
|
|
35
|
+
*/
|
|
36
|
+
columnWidth?: number | string;
|
|
37
|
+
/**
|
|
38
|
+
* Specifies the default height of the rows ([see example]({% slug overview_tilelayout %}#toc-tilelayout-configuration-options)).
|
|
39
|
+
*/
|
|
40
|
+
rowHeight?: number | string;
|
|
41
|
+
/**
|
|
42
|
+
* Represents the `key` field of the TileLayout item. Used for setting unique keys to the TileLayout items.
|
|
43
|
+
*/
|
|
44
|
+
dataItemKey?: string;
|
|
45
|
+
/**
|
|
46
|
+
* The collection of items that will be rendered in the TileLayout
|
|
47
|
+
* ([see example]({% slug overview_tilelayout %}#toc-tilelayout-configuration-options)).
|
|
48
|
+
*/
|
|
49
|
+
items?: TileLayoutItem[];
|
|
50
|
+
/**
|
|
51
|
+
* The list of tiles' positions which are used when the TileLayout is in controlled mode
|
|
52
|
+
* ([see example]({% slug tiles_position_dimensions_tilelayout %}#toc-controlling-the-position)).
|
|
53
|
+
*/
|
|
54
|
+
positions?: TilePosition[];
|
|
55
|
+
/**
|
|
56
|
+
* Fires when the user repositions the tile by either dragging or resizing
|
|
57
|
+
* ([see example]({% slug tiles_position_dimensions_tilelayout %}#toc-controlling-the-position)).
|
|
58
|
+
*/
|
|
59
|
+
onReposition?: (event: TileLayoutRepositionEvent) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Controls how the auto-placement algorithm works, specifying exactly how auto-placed items get flowed into the TileLayout.
|
|
62
|
+
* For further reference, check [grid-auto-flow CSS](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow) article.
|
|
63
|
+
* Defaults to `column`
|
|
64
|
+
* ([see example]({% slug autoflows_tilelayout %})).
|
|
65
|
+
*/
|
|
66
|
+
autoFlow?: TileLayoutAutoFlow | String;
|
|
67
|
+
/**
|
|
68
|
+
* Use this callback to prevent or allow dragging of the tiles based on specific dom event.
|
|
69
|
+
* Setting `:ignoreDrag="$event => !$event.target.closest('.k-card-title')"` will make only the headers draggable.
|
|
70
|
+
* Setting `:ignoreDrag="$event => $event.target.nodeName == 'INPUT'"` will ignore dragging input elements.
|
|
71
|
+
*/
|
|
72
|
+
ignoreDrag?: (event: any) => boolean;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* @hidden
|
|
76
|
+
*/
|
|
77
|
+
declare const TileLayout: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
78
|
+
id: StringConstructor;
|
|
79
|
+
dir: StringConstructor;
|
|
80
|
+
gap: ObjectConstructor;
|
|
81
|
+
columns: NumberConstructor;
|
|
82
|
+
columnWidth: (StringConstructor | NumberConstructor)[];
|
|
83
|
+
rowHeight: (StringConstructor | NumberConstructor)[];
|
|
84
|
+
dataItemKey: StringConstructor;
|
|
85
|
+
items: ArrayConstructor;
|
|
86
|
+
positions: ArrayConstructor;
|
|
87
|
+
autoFlow: {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
default: string;
|
|
90
|
+
validator: (value: string) => any;
|
|
91
|
+
};
|
|
92
|
+
ignoreDrag: FunctionConstructor;
|
|
93
|
+
}>, {}, {
|
|
94
|
+
currentPositions: any[];
|
|
95
|
+
showLicenseWatermark: boolean;
|
|
96
|
+
licenseMessage: any;
|
|
97
|
+
}, {
|
|
98
|
+
compPositions(): any;
|
|
99
|
+
wrapperClass(): {
|
|
100
|
+
[x: number]: boolean;
|
|
101
|
+
'k-tilelayout': boolean;
|
|
102
|
+
'k-pos-relative': boolean;
|
|
103
|
+
};
|
|
104
|
+
}, {
|
|
105
|
+
focus(): void;
|
|
106
|
+
updateHandle(index: number, dOrder: number, dCol: number, dRowSpan: number, dColSpan: number, isResized: boolean): void;
|
|
107
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
108
|
+
id: StringConstructor;
|
|
109
|
+
dir: StringConstructor;
|
|
110
|
+
gap: ObjectConstructor;
|
|
111
|
+
columns: NumberConstructor;
|
|
112
|
+
columnWidth: (StringConstructor | NumberConstructor)[];
|
|
113
|
+
rowHeight: (StringConstructor | NumberConstructor)[];
|
|
114
|
+
dataItemKey: StringConstructor;
|
|
115
|
+
items: ArrayConstructor;
|
|
116
|
+
positions: ArrayConstructor;
|
|
117
|
+
autoFlow: {
|
|
118
|
+
type: StringConstructor;
|
|
119
|
+
default: string;
|
|
120
|
+
validator: (value: string) => any;
|
|
121
|
+
};
|
|
122
|
+
ignoreDrag: FunctionConstructor;
|
|
123
|
+
}>> & Readonly<{}>, {
|
|
124
|
+
autoFlow: string;
|
|
125
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
126
|
+
export { TileLayout };
|
|
@@ -0,0 +1,205 @@
|
|
|
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
|
+
* The interface for describing items that can be passed to the `items` property of the TileLayout component.
|
|
10
|
+
*/
|
|
11
|
+
export interface TileLayoutItem {
|
|
12
|
+
/**
|
|
13
|
+
* The position which is used when the TileLayout is in uncontrolled mode
|
|
14
|
+
* ([see example]({% slug tiles_position_dimensions_tilelayout %})).
|
|
15
|
+
*/
|
|
16
|
+
defaultPosition?: TilePosition;
|
|
17
|
+
/**
|
|
18
|
+
* Sets additional styles to the TileLayoutItem.
|
|
19
|
+
*/
|
|
20
|
+
style?: object;
|
|
21
|
+
/**
|
|
22
|
+
* Sets additional classes to the TileLayoutItem.
|
|
23
|
+
*/
|
|
24
|
+
class?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The tile object.
|
|
27
|
+
*/
|
|
28
|
+
tile?: object;
|
|
29
|
+
/**
|
|
30
|
+
* Sets additional CSS styles to the TileLayoutItem hint element.
|
|
31
|
+
*/
|
|
32
|
+
hintStyle?: object;
|
|
33
|
+
/**
|
|
34
|
+
* Sets additional classes to the TileLayoutItem hint element.
|
|
35
|
+
*/
|
|
36
|
+
hintClass?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Sets the title in the TileLayoutItem's header content
|
|
39
|
+
* ([see example]({% slug tiles_position_dimensions_tilelayout %})).
|
|
40
|
+
*/
|
|
41
|
+
header?: any;
|
|
42
|
+
/**
|
|
43
|
+
* Sets the title in the TileLayoutItem's header text
|
|
44
|
+
* ([see example]({% slug tiles_position_dimensions_tilelayout %})).
|
|
45
|
+
*/
|
|
46
|
+
headerText?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Sets the content in TileLayoutItem's body content
|
|
49
|
+
* ([see example]({% slug tiles_position_dimensions_tilelayout %})).
|
|
50
|
+
*/
|
|
51
|
+
body?: any;
|
|
52
|
+
/**
|
|
53
|
+
* Sets the content in TileLayoutItem's body text
|
|
54
|
+
* ([see example]({% slug tiles_position_dimensions_tilelayout %})).
|
|
55
|
+
*/
|
|
56
|
+
bodyText?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Overrides the default rendering of the TileLayoutItem
|
|
59
|
+
* ([see example]({% slug tiles_custom_rendering_tilelayout %})).
|
|
60
|
+
*/
|
|
61
|
+
item?: any;
|
|
62
|
+
/**
|
|
63
|
+
* Specifies the id of each Tile if needed to be user-defined. By default the id is automatically generated.
|
|
64
|
+
*/
|
|
65
|
+
id?: any;
|
|
66
|
+
/**
|
|
67
|
+
* Specifies if the user is allowed to resize the TileLayoutItem and in which direction
|
|
68
|
+
* ([see example]({% slug tiles_resizing_tilelayout %})).
|
|
69
|
+
* If `resizable` is not specified, the resizing of the TileLayoutItem will be enabled for both directions.
|
|
70
|
+
*/
|
|
71
|
+
resizable?: TileResizeMode | string | boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Specifies if the user is allowed to reorder the TileLayoutItem by dragging and dropping it
|
|
74
|
+
* ([see example]({% slug tiles_reordering_tilelayout %})).
|
|
75
|
+
* If `reorderable` is not specified, the dragging functionality of the TileLayoutItem will be enabled.
|
|
76
|
+
*/
|
|
77
|
+
reorderable?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Specifies if the tabIndex of each TileLayout tile if the scenario requires it. Defaults to `0`.
|
|
80
|
+
*/
|
|
81
|
+
tabIndex?: number;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Specifies the position of each tile.
|
|
85
|
+
*/
|
|
86
|
+
export interface TilePosition {
|
|
87
|
+
/**
|
|
88
|
+
* Defines the order index of the TileLayoutItem.
|
|
89
|
+
* If not set, items will receive a sequential order.
|
|
90
|
+
*/
|
|
91
|
+
order?: number;
|
|
92
|
+
/**
|
|
93
|
+
* (Required) Defines on which column-line the TileLayoutItem will start.
|
|
94
|
+
* It is required in order reordering and resizing functionalities to work as expected as they rely on it.
|
|
95
|
+
*/
|
|
96
|
+
col: number;
|
|
97
|
+
/**
|
|
98
|
+
* Specifies how many columns will the TileLayoutItem spans.
|
|
99
|
+
* Defaults to `1`.
|
|
100
|
+
*/
|
|
101
|
+
colSpan?: number;
|
|
102
|
+
/**
|
|
103
|
+
* Defines on which row-line the TileLayoutItem will start.
|
|
104
|
+
*/
|
|
105
|
+
row?: number;
|
|
106
|
+
/**
|
|
107
|
+
* Specifies how many rows will the TileLayoutItem spans.
|
|
108
|
+
* Defaults to `1`.
|
|
109
|
+
*/
|
|
110
|
+
rowSpan?: number;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Specifies the strict position of each tile.
|
|
114
|
+
* Used in the [TileLayoutRepositionEvent]({% slug api_layout_tilelayoutrepositionevent %}).
|
|
115
|
+
*/
|
|
116
|
+
export interface TileStrictPosition extends TilePosition {
|
|
117
|
+
/**
|
|
118
|
+
* Defines the order index of the TileLayoutItem.
|
|
119
|
+
* If not set, items will receive a sequential order.
|
|
120
|
+
*/
|
|
121
|
+
order: number;
|
|
122
|
+
/**
|
|
123
|
+
* Specifies how many rows will the TileLayoutItem spans.
|
|
124
|
+
* Defaults to `1`.
|
|
125
|
+
*/
|
|
126
|
+
rowSpan: number;
|
|
127
|
+
/**
|
|
128
|
+
* Specifies how many columns will the TileLayoutItem spans.
|
|
129
|
+
* Defaults to `1`.
|
|
130
|
+
*/
|
|
131
|
+
colSpan: number;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Specifies if the user is allowed to resize the TileLayoutItem and in which direction
|
|
135
|
+
* ([see example]({% slug tiles_resizing_tilelayout %})).
|
|
136
|
+
* If `resizable` is not specified, the resizing of the TileLayoutItem will be enabled for both directions.
|
|
137
|
+
*/
|
|
138
|
+
export type TileResizeMode = 'horizontal' | 'vertical' | boolean;
|
|
139
|
+
/**
|
|
140
|
+
* Specifies the gaps between the tiles.
|
|
141
|
+
*/
|
|
142
|
+
export interface TileLayoutGap {
|
|
143
|
+
/**
|
|
144
|
+
* The rows gap between tiles.
|
|
145
|
+
* Defaults to `16px`.
|
|
146
|
+
*/
|
|
147
|
+
rows?: number | string;
|
|
148
|
+
/**
|
|
149
|
+
* The columns gap between tiles.
|
|
150
|
+
* Defaults to `16px`.
|
|
151
|
+
*/
|
|
152
|
+
columns?: number | string;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Controls how the auto-placement algorithm works, specifying exactly how auto-placed items get flowed into the TileLayout.
|
|
156
|
+
* For further reference, check [grid-auto-flow CSS](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow) article.
|
|
157
|
+
* Defaults to `column`.
|
|
158
|
+
*/
|
|
159
|
+
export type TileLayoutAutoFlow = 'column' | 'row' | 'column dense' | 'row dense' | 'unset';
|
|
160
|
+
/**
|
|
161
|
+
* The arguments for the `onReposition` TileLayout event.
|
|
162
|
+
*/
|
|
163
|
+
export interface TileLayoutRepositionEvent {
|
|
164
|
+
/**
|
|
165
|
+
* The new positions of the TileLayout tiles.
|
|
166
|
+
*/
|
|
167
|
+
value: Array<TileStrictPosition>;
|
|
168
|
+
/**
|
|
169
|
+
* The index of the currently moved tile.
|
|
170
|
+
*/
|
|
171
|
+
index: number;
|
|
172
|
+
/**
|
|
173
|
+
* Returns 0 if the row is not changed, 1 if the item is dragged to the next row
|
|
174
|
+
* and -1 if the item is drag to the previous row.
|
|
175
|
+
*/
|
|
176
|
+
row: number;
|
|
177
|
+
/**
|
|
178
|
+
* Returns 0 if the column is not changed, 1 if the item is dragged to the next column
|
|
179
|
+
* and -1 if the item is drag to the previous column.
|
|
180
|
+
*/
|
|
181
|
+
col: number;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* The arguments for the `onTileresize` TileLayout event.
|
|
185
|
+
*/
|
|
186
|
+
export interface TileLayoutTileResizeEvent {
|
|
187
|
+
/**
|
|
188
|
+
* The new resized positions of the TileLayout tiles.
|
|
189
|
+
*/
|
|
190
|
+
value: Array<TileStrictPosition>;
|
|
191
|
+
/**
|
|
192
|
+
* The index of the currently resized tile.
|
|
193
|
+
*/
|
|
194
|
+
index: number;
|
|
195
|
+
/**
|
|
196
|
+
* Returns 0 if the rowSpan is not changed, 1 if the rowSpan is increased
|
|
197
|
+
* and -1 if the rowSpan is decreased.
|
|
198
|
+
*/
|
|
199
|
+
rowSpan: number;
|
|
200
|
+
/**
|
|
201
|
+
* Returns 0 if the columnSpan is not changed, 1 if the columnSpan is increased
|
|
202
|
+
* and -1 if the columnSpan is decreased.
|
|
203
|
+
*/
|
|
204
|
+
colSpan: number;
|
|
205
|
+
}
|