@progress/kendo-vue-buttons 8.0.3-develop.2 → 8.0.3-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/Button.d.ts +273 -0
- package/ButtonGroup.d.ts +58 -0
- package/ButtonGroupInterface.d.ts +37 -0
- package/ButtonInterface.d.ts +57 -0
- package/ButtonWrap.d.ts +12 -0
- package/Chip/Chip.d.ts +351 -0
- package/Chip/ChipList.d.ts +278 -0
- package/Chip/ChipList.mjs +4 -4
- package/Chip/data-reducer.d.ts +28 -0
- package/Chip/data-reducer.js +1 -1
- package/Chip/data-reducer.mjs +2 -2
- package/Chip/focus-reducer.d.ts +31 -0
- package/Chip/focus-reducer.js +1 -1
- package/Chip/focus-reducer.mjs +2 -2
- package/Chip/selection-reducer.d.ts +36 -0
- package/Chip/selection-reducer.js +1 -1
- package/Chip/selection-reducer.mjs +3 -3
- package/FloatingActionButton/FloatingActionButton.d.ts +151 -0
- package/FloatingActionButton/FloatingActionButtonItem.d.ts +134 -0
- package/FloatingActionButton/interfaces/FloatingActionButtonHandle.d.ts +20 -0
- package/FloatingActionButton/interfaces/FloatingActionButtonPopupSettings.d.ts +31 -0
- package/FloatingActionButton/interfaces/FloatingActionButtonProps.d.ts +240 -0
- package/FloatingActionButton/models/align-offset.d.ts +27 -0
- package/FloatingActionButton/models/align.d.ts +34 -0
- package/FloatingActionButton/models/events.d.ts +29 -0
- package/FloatingActionButton/models/position-mode.d.ts +16 -0
- package/FloatingActionButton/models/size.d.ts +17 -0
- package/FloatingActionButton/models/theme-color.d.ts +24 -0
- package/FloatingActionButton/utils.d.ts +34 -0
- package/ListButton/ButtonItem.d.ts +57 -0
- package/ListButton/DropDownButton.d.ts +168 -0
- package/ListButton/SplitButton.d.ts +174 -0
- package/ListButton/models/ButtonItemInterface.d.ts +36 -0
- package/ListButton/models/ListButtonProps.d.ts +311 -0
- package/ListButton/models/PopupSettings.d.ts +31 -0
- package/ListButton/models/events.d.ts +118 -0
- package/ListButton/utils/navigation.d.ts +12 -0
- package/ListButton/utils/popup.d.ts +16 -0
- package/SpeechToText/SpeechToTextButton.d.ts +242 -0
- package/SpeechToText/SpeechToTextButton.js +1 -1
- package/SpeechToText/SpeechToTextButton.mjs +2 -2
- package/dist/cdn/js/kendo-vue-buttons.js +1 -1
- package/index.d.mts +31 -2942
- package/index.d.ts +31 -2942
- package/models/ButtonBlurEvent.d.ts +16 -0
- package/models/ButtonFocusEvent.d.ts +16 -0
- package/models/events.d.ts +96 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +13 -7
- package/toolbar/Toolbar.d.ts +170 -0
- package/toolbar/interfaces/ToolbarOverflowProps.d.ts +48 -0
- package/toolbar/interfaces/ToolbarProps.d.ts +93 -0
- package/toolbar/messages/index.d.ts +27 -0
- package/toolbar/tools/ToolbarItem.d.ts +14 -0
- package/toolbar/tools/ToolbarOverflowSection.d.ts +50 -0
- package/toolbar/tools/ToolbarScrollButton.d.ts +47 -0
- package/toolbar/tools/ToolbarScrollable.d.ts +58 -0
- package/toolbar/tools/ToolbarSeparator.d.ts +34 -0
- package/toolbar/tools/ToolbarSpacer.d.ts +48 -0
- package/util.d.ts +37 -0
|
@@ -0,0 +1,174 @@
|
|
|
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
|
+
import { SplitButtonClickEvent, SplitButtonItemClickEvent, SplitButtonFocusEvent, SplitButtonBlurEvent, SplitButtonOpenEvent, SplitButtonCloseEvent } from './models/events';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export interface SplitButtonData {
|
|
14
|
+
focusedIndex?: number;
|
|
15
|
+
focused?: boolean;
|
|
16
|
+
currentOpened: boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
export interface SplitButtonComputed {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
computedOpened: boolean;
|
|
24
|
+
wrapperClass: object;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @hidden
|
|
28
|
+
*/
|
|
29
|
+
export interface SplitButtonMethods {
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
element: () => HTMLButtonElement | null;
|
|
32
|
+
onKeyDown: (event: any) => void;
|
|
33
|
+
onFocus: (event: any) => void;
|
|
34
|
+
onBlur: (event: any) => void;
|
|
35
|
+
onItemClick: (event: any, clickedItemIndex: number) => void;
|
|
36
|
+
onItemDown: (event: any) => void;
|
|
37
|
+
mouseDown: (event: any) => void;
|
|
38
|
+
dispatchClickEvent: (dispatchedEvent: any, index: number) => void;
|
|
39
|
+
onClickMainButton: () => void;
|
|
40
|
+
onDownSplitPart: () => void;
|
|
41
|
+
onSplitPartClick: (event: any) => void;
|
|
42
|
+
dispatchPopupEvent: (dispatchedEvent: any, open: boolean) => void;
|
|
43
|
+
isItemDisabled: (index: number) => boolean;
|
|
44
|
+
isRtl: () => boolean;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* @hidden
|
|
48
|
+
*/
|
|
49
|
+
export interface SplitButtonState {
|
|
50
|
+
mainButton: any;
|
|
51
|
+
guid: string;
|
|
52
|
+
buttonsData: Array<any>;
|
|
53
|
+
_anchor: string;
|
|
54
|
+
kendoAnchorRef: any;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @hidden
|
|
58
|
+
*/
|
|
59
|
+
declare const SplitButton: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
60
|
+
accessKey: PropType<string>;
|
|
61
|
+
ariaLabel: PropType<string>;
|
|
62
|
+
text: PropType<string>;
|
|
63
|
+
items: {
|
|
64
|
+
type: PropType<any[]>;
|
|
65
|
+
default: () => any[];
|
|
66
|
+
};
|
|
67
|
+
textField: PropType<string>;
|
|
68
|
+
tabIndex: PropType<number>;
|
|
69
|
+
disabled: PropType<boolean>;
|
|
70
|
+
icon: PropType<string>;
|
|
71
|
+
svgIcon: PropType<import('@progress/kendo-vue-common').SVGIcon>;
|
|
72
|
+
size: PropType<"small" | "medium" | "large">;
|
|
73
|
+
rounded: PropType<"small" | "medium" | "large" | "full" | "none">;
|
|
74
|
+
fillMode: {
|
|
75
|
+
type: PropType<"flat" | "link" | "solid" | "outline">;
|
|
76
|
+
validator: (value: string) => boolean;
|
|
77
|
+
};
|
|
78
|
+
themeColor: {
|
|
79
|
+
type: PropType<"base" | "primary" | "secondary" | "tertiary" | "info" | "success" | "warning" | "dark" | "light" | "inverse">;
|
|
80
|
+
validator: (value: string) => boolean;
|
|
81
|
+
};
|
|
82
|
+
opened: {
|
|
83
|
+
type: PropType<boolean>;
|
|
84
|
+
default: any;
|
|
85
|
+
};
|
|
86
|
+
iconClass: PropType<string>;
|
|
87
|
+
imageUrl: PropType<string>;
|
|
88
|
+
popupSettings: PropType<import('..').ButtonsPopupSettings>;
|
|
89
|
+
itemRender: PropType<any>;
|
|
90
|
+
item: PropType<any>;
|
|
91
|
+
className: PropType<string>;
|
|
92
|
+
buttonClass: PropType<string>;
|
|
93
|
+
dir: PropType<string>;
|
|
94
|
+
}>, {
|
|
95
|
+
kendoAnchorRef: import('vue').Ref<any, any>;
|
|
96
|
+
}, {
|
|
97
|
+
focused: boolean;
|
|
98
|
+
focusedIndex: number;
|
|
99
|
+
currentOpened: boolean;
|
|
100
|
+
}, {
|
|
101
|
+
computedOpened(): boolean;
|
|
102
|
+
wrapperClass(): {
|
|
103
|
+
'k-split-button': boolean;
|
|
104
|
+
'k-button-group': boolean;
|
|
105
|
+
'k-focus': any;
|
|
106
|
+
};
|
|
107
|
+
}, {
|
|
108
|
+
element(): HTMLButtonElement | null;
|
|
109
|
+
onKeyDown(event: any): void;
|
|
110
|
+
onFocus(event: FocusEvent): void;
|
|
111
|
+
onItemClick(event: any, clickedItemIndex: number): void;
|
|
112
|
+
onBlur(event: FocusEvent): void;
|
|
113
|
+
createBlurTimeout(event: FocusEvent): void;
|
|
114
|
+
dispatchClickEvent(dispatchedEvent: any, clickedItemIndex: number): void;
|
|
115
|
+
onSplitPartClick(event: any): void;
|
|
116
|
+
onDownSplitPart(event: any): void;
|
|
117
|
+
onItemDown(event: any): void;
|
|
118
|
+
dispatchPopupEvent(dispatchedEvent: any, open?: boolean): void;
|
|
119
|
+
isItemDisabled(index: number): any;
|
|
120
|
+
isRtl(): boolean;
|
|
121
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
122
|
+
focus: (event: SplitButtonFocusEvent) => true;
|
|
123
|
+
blur: (event: SplitButtonBlurEvent) => true;
|
|
124
|
+
buttonclick: (event: SplitButtonClickEvent) => true;
|
|
125
|
+
itemclick: (event: SplitButtonItemClickEvent) => true;
|
|
126
|
+
open: (event: SplitButtonOpenEvent) => true;
|
|
127
|
+
close: (event: SplitButtonCloseEvent) => true;
|
|
128
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
129
|
+
accessKey: PropType<string>;
|
|
130
|
+
ariaLabel: PropType<string>;
|
|
131
|
+
text: PropType<string>;
|
|
132
|
+
items: {
|
|
133
|
+
type: PropType<any[]>;
|
|
134
|
+
default: () => any[];
|
|
135
|
+
};
|
|
136
|
+
textField: PropType<string>;
|
|
137
|
+
tabIndex: PropType<number>;
|
|
138
|
+
disabled: PropType<boolean>;
|
|
139
|
+
icon: PropType<string>;
|
|
140
|
+
svgIcon: PropType<import('@progress/kendo-vue-common').SVGIcon>;
|
|
141
|
+
size: PropType<"small" | "medium" | "large">;
|
|
142
|
+
rounded: PropType<"small" | "medium" | "large" | "full" | "none">;
|
|
143
|
+
fillMode: {
|
|
144
|
+
type: PropType<"flat" | "link" | "solid" | "outline">;
|
|
145
|
+
validator: (value: string) => boolean;
|
|
146
|
+
};
|
|
147
|
+
themeColor: {
|
|
148
|
+
type: PropType<"base" | "primary" | "secondary" | "tertiary" | "info" | "success" | "warning" | "dark" | "light" | "inverse">;
|
|
149
|
+
validator: (value: string) => boolean;
|
|
150
|
+
};
|
|
151
|
+
opened: {
|
|
152
|
+
type: PropType<boolean>;
|
|
153
|
+
default: any;
|
|
154
|
+
};
|
|
155
|
+
iconClass: PropType<string>;
|
|
156
|
+
imageUrl: PropType<string>;
|
|
157
|
+
popupSettings: PropType<import('..').ButtonsPopupSettings>;
|
|
158
|
+
itemRender: PropType<any>;
|
|
159
|
+
item: PropType<any>;
|
|
160
|
+
className: PropType<string>;
|
|
161
|
+
buttonClass: PropType<string>;
|
|
162
|
+
dir: PropType<string>;
|
|
163
|
+
}>> & Readonly<{
|
|
164
|
+
onBlur?: (event: SplitButtonBlurEvent) => any;
|
|
165
|
+
onClose?: (event: SplitButtonCloseEvent) => any;
|
|
166
|
+
onFocus?: (event: SplitButtonFocusEvent) => any;
|
|
167
|
+
onOpen?: (event: SplitButtonOpenEvent) => any;
|
|
168
|
+
onItemclick?: (event: SplitButtonItemClickEvent) => any;
|
|
169
|
+
onButtonclick?: (event: SplitButtonClickEvent) => any;
|
|
170
|
+
}>, {
|
|
171
|
+
items: any[];
|
|
172
|
+
opened: boolean;
|
|
173
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
174
|
+
export { SplitButton };
|
|
@@ -0,0 +1,36 @@
|
|
|
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 SplitButton or the DropDownButton as an alternative to passing them as children.
|
|
10
|
+
*/
|
|
11
|
+
export interface ButtonItemInterface {
|
|
12
|
+
/**
|
|
13
|
+
* Specifies the text of the item.
|
|
14
|
+
*/
|
|
15
|
+
text: string;
|
|
16
|
+
/**
|
|
17
|
+
* Defines an icon that will be rendered next to the item text.
|
|
18
|
+
*/
|
|
19
|
+
icon?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Defines an icon with a custom CSS class that will be rendered next to the item text.
|
|
22
|
+
*/
|
|
23
|
+
iconClass?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Defines the location of an image that will be displayed next to the item text.
|
|
26
|
+
*/
|
|
27
|
+
imageUrl?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Determines whether the item is disabled.
|
|
30
|
+
*/
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Defines a named slot `string`, functional or class component for rendering the item. The default rendering includes an icon, an image, and text.
|
|
34
|
+
*/
|
|
35
|
+
render?: any;
|
|
36
|
+
}
|
|
@@ -0,0 +1,311 @@
|
|
|
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 { ButtonsPopupSettings } from './PopupSettings';
|
|
9
|
+
import { SplitButtonClickEvent, SplitButtonItemClickEvent, SplitButtonFocusEvent, SplitButtonBlurEvent, SplitButtonOpenEvent, SplitButtonCloseEvent, DropDownButtonItemClickEvent, DropDownButtonFocusEvent, DropDownButtonBlurEvent, DropDownButtonOpenEvent, DropDownButtonCloseEvent } from './events';
|
|
10
|
+
import { SVGIcon } from '@progress/kendo-vue-common';
|
|
11
|
+
export interface DropDownButtonProps {
|
|
12
|
+
/**
|
|
13
|
+
* Specifies the `accessKey` of the main button.
|
|
14
|
+
*/
|
|
15
|
+
accessKey?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Specifies the `ariaLabel` of the main button. By default it is set to the text of the DropDownButton and 'dropdownbutton'.
|
|
18
|
+
*/
|
|
19
|
+
ariaLabel?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Specifies the text of the main button ([see example]({% slug overview_dropdownbutton %})).
|
|
22
|
+
*/
|
|
23
|
+
text?: any;
|
|
24
|
+
/**
|
|
25
|
+
* Specifies the list items ([see example]({% slug binding_dropdownbutton %}#toc-arrays-of-objects)).
|
|
26
|
+
*/
|
|
27
|
+
items?: any[];
|
|
28
|
+
/**
|
|
29
|
+
* Configures the field that will be used for the text of the `items`. `textField` has to be used together with the `items` prop ([see example]({% slug binding_dropdownbutton %}#toc-arrays-of-objects)).
|
|
30
|
+
*/
|
|
31
|
+
textField?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Specifies the `tabIndex` of the main button.
|
|
34
|
+
*/
|
|
35
|
+
tabIndex?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Determines whether the component is disabled ([see example]({% slug disabled_dropdownbutton %})).
|
|
38
|
+
*/
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Opens the popup of the DropDownButton if set to `true`.
|
|
42
|
+
*/
|
|
43
|
+
opened?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Defines an icon that will be rendered next to the main button text ([see example]({% slug icons_dropdownbutton %})).
|
|
46
|
+
*/
|
|
47
|
+
icon?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Defines an SVGIcon to be rendered within the DropDownButton.
|
|
50
|
+
*/
|
|
51
|
+
svgIcon?: SVGIcon;
|
|
52
|
+
/**
|
|
53
|
+
* Defines an icon with a custom CSS class that will be rendered next to the main button text ([see example]({% slug icons_dropdownbutton %})).
|
|
54
|
+
*/
|
|
55
|
+
iconClass?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Defines the location of an image that will be displayed next to the main button text ([see example]({% slug icons_dropdownbutton %})).
|
|
58
|
+
*/
|
|
59
|
+
imageUrl?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Configures the popup
|
|
62
|
+
* ([see example]({% slug customization_dropdownbutton %}#toc-popup)).
|
|
63
|
+
*/
|
|
64
|
+
popupSettings?: ButtonsPopupSettings;
|
|
65
|
+
/**
|
|
66
|
+
* Defines a named slot `string`, functional or class component which is used for rendering items ([see example]({% slug customization_dropdownbutton %}#toc-items-rendering)). The default rendering includes an icon, an image, and text.
|
|
67
|
+
*/
|
|
68
|
+
item?: null | any;
|
|
69
|
+
/**
|
|
70
|
+
* Fires when a dropdown list button item is about to be rendered. Use it to override the default appearance of the list items.
|
|
71
|
+
* if `item` prop is not declared, `itemRender` behaves like `item`, for backward compatibility with versions before 4.2.0
|
|
72
|
+
*/
|
|
73
|
+
itemRender?: any;
|
|
74
|
+
/**
|
|
75
|
+
* Sets the `className` of the main button.
|
|
76
|
+
*/
|
|
77
|
+
buttonClass?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Sets the direction of the component.
|
|
80
|
+
*/
|
|
81
|
+
dir?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Configures the `size` of the Button.
|
|
84
|
+
*
|
|
85
|
+
* The available options are:
|
|
86
|
+
* - small
|
|
87
|
+
* - medium
|
|
88
|
+
* - large
|
|
89
|
+
*
|
|
90
|
+
* @default `undefined`
|
|
91
|
+
*/
|
|
92
|
+
size?: 'small' | 'medium' | 'large';
|
|
93
|
+
/**
|
|
94
|
+
* Configures the `roundness` of the Button.
|
|
95
|
+
*
|
|
96
|
+
* The available options are:
|
|
97
|
+
* - none
|
|
98
|
+
* - small
|
|
99
|
+
* - medium
|
|
100
|
+
* - large
|
|
101
|
+
* - circle
|
|
102
|
+
* - full
|
|
103
|
+
*
|
|
104
|
+
* @default `undefined`
|
|
105
|
+
*/
|
|
106
|
+
rounded?: 'none' | 'small' | 'medium' | 'large' | 'full';
|
|
107
|
+
/**
|
|
108
|
+
* Configures the `fillMode` of the Button.
|
|
109
|
+
*
|
|
110
|
+
* The available options are:
|
|
111
|
+
* - solid
|
|
112
|
+
* - outline
|
|
113
|
+
* - flat
|
|
114
|
+
* - link
|
|
115
|
+
*
|
|
116
|
+
* @default `undefined`
|
|
117
|
+
*/
|
|
118
|
+
fillMode?: 'solid' | 'outline' | 'flat' | 'link';
|
|
119
|
+
/**
|
|
120
|
+
* Configures the `themeColor` of the Button.
|
|
121
|
+
*
|
|
122
|
+
* The available options are:
|
|
123
|
+
* - base
|
|
124
|
+
* - primary
|
|
125
|
+
* - secondary
|
|
126
|
+
* - tertiary
|
|
127
|
+
* - info
|
|
128
|
+
* - success
|
|
129
|
+
* - warning
|
|
130
|
+
* - dark
|
|
131
|
+
* - light
|
|
132
|
+
* - inverse
|
|
133
|
+
*
|
|
134
|
+
* @default `undefined`
|
|
135
|
+
*/
|
|
136
|
+
themeColor?: 'base' | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'dark' | 'light' | 'inverse';
|
|
137
|
+
/**
|
|
138
|
+
* Fires when the component is focused ([see example]({% slug events_dropdownbutton %})).
|
|
139
|
+
*/
|
|
140
|
+
onFocus?: (event: DropDownButtonFocusEvent) => void;
|
|
141
|
+
/**
|
|
142
|
+
* Fires when the component is blurred ([see example]({% slug events_dropdownbutton %})).
|
|
143
|
+
*/
|
|
144
|
+
onBlur?: (event: DropDownButtonBlurEvent) => void;
|
|
145
|
+
/**
|
|
146
|
+
* Fires when an item is clicked ([see example]({% slug events_dropdownbutton %})).
|
|
147
|
+
*/
|
|
148
|
+
onItemclick?: (event: DropDownButtonItemClickEvent) => void;
|
|
149
|
+
/**
|
|
150
|
+
* Fires when the popup which contains the items is opened ([see example]({% slug events_dropdownbutton %})).
|
|
151
|
+
*/
|
|
152
|
+
onOpen?: (event: DropDownButtonOpenEvent) => void;
|
|
153
|
+
/**
|
|
154
|
+
* Fires when the popup which contains the items is closed ([see example]({% slug events_dropdownbutton %})).
|
|
155
|
+
*/
|
|
156
|
+
onClose?: (event: DropDownButtonCloseEvent) => void;
|
|
157
|
+
}
|
|
158
|
+
export interface SplitButtonProps {
|
|
159
|
+
/**
|
|
160
|
+
* Specifies the `accessKey` of the main button.
|
|
161
|
+
*/
|
|
162
|
+
accessKey?: string;
|
|
163
|
+
/**
|
|
164
|
+
* Specifies the `ariaLabel` of the main button. By default it is set to the text of the SplitButton and 'splitbutton'.
|
|
165
|
+
*/
|
|
166
|
+
ariaLabel?: string;
|
|
167
|
+
/**
|
|
168
|
+
* Specifies the text of the main button ([see example]({% slug overview_splitbutton %})).
|
|
169
|
+
*/
|
|
170
|
+
text?: string;
|
|
171
|
+
/**
|
|
172
|
+
* Specifies the list items ([see example]({% slug binding_splitbutton %}#toc-arrays-of-objects)).
|
|
173
|
+
*/
|
|
174
|
+
items?: any[];
|
|
175
|
+
/**
|
|
176
|
+
* Configures the field that will be used for the text of the `items`. `textField` has to be used together with the `items` prop ([see example]({% slug binding_splitbutton %}#toc-arrays-of-objects)).
|
|
177
|
+
*/
|
|
178
|
+
textField?: string;
|
|
179
|
+
/**
|
|
180
|
+
* Specifies the `tabIndex` of the main button.
|
|
181
|
+
*/
|
|
182
|
+
tabIndex?: number;
|
|
183
|
+
/**
|
|
184
|
+
* Determines whether the component is disabled ([see example]({% slug disabled_splitbutton %})).
|
|
185
|
+
*/
|
|
186
|
+
disabled?: boolean;
|
|
187
|
+
/**
|
|
188
|
+
* Defines an icon that will be rendered next to the main button text ([see example]({% slug icons_splitbutton %})).
|
|
189
|
+
*/
|
|
190
|
+
icon?: string;
|
|
191
|
+
/**
|
|
192
|
+
* Defines an SVGIcon to be rendered within the SplitButton.
|
|
193
|
+
*/
|
|
194
|
+
svgIcon?: SVGIcon;
|
|
195
|
+
/**
|
|
196
|
+
* Defines an icon with a custom CSS class that will be rendered next to the main button text ([see example]({% slug icons_splitbutton %})).
|
|
197
|
+
*/
|
|
198
|
+
iconClass?: string;
|
|
199
|
+
/**
|
|
200
|
+
* Defines the location of an image that will be displayed next to the main button text ([see example]({% slug icons_splitbutton %})).
|
|
201
|
+
*/
|
|
202
|
+
imageUrl?: string;
|
|
203
|
+
/**
|
|
204
|
+
* Configures the popup ([see example]({% slug customization_splitbutton %}#toc-popup)).
|
|
205
|
+
*/
|
|
206
|
+
popupSettings?: ButtonsPopupSettings;
|
|
207
|
+
/**
|
|
208
|
+
* Opens the popup of the SplitButton if set to `true`.
|
|
209
|
+
*/
|
|
210
|
+
opened?: boolean;
|
|
211
|
+
/**
|
|
212
|
+
* Defines a named slot `string`, functional or class component which is used for rendering items ([see example]({% slug customization_dropdownbutton %}#toc-items-rendering)). The default rendering includes an icon, an image, and text.
|
|
213
|
+
*/
|
|
214
|
+
item?: null | any;
|
|
215
|
+
/**
|
|
216
|
+
* Fires when a dropdown list button item is about to be rendered. Use it to override the default appearance of the list items.
|
|
217
|
+
* if `item` prop is not declared, `itemRender` behaves like `item`, for backward compatibility with versions before 4.2.0
|
|
218
|
+
*/
|
|
219
|
+
itemRender?: any;
|
|
220
|
+
/**
|
|
221
|
+
* Sets the `className` of the SplitButton component.
|
|
222
|
+
*/
|
|
223
|
+
className?: string;
|
|
224
|
+
/**
|
|
225
|
+
* Sets the `className` of the main button.
|
|
226
|
+
*/
|
|
227
|
+
buttonClass?: string;
|
|
228
|
+
/**
|
|
229
|
+
* Sets the direction of the component.
|
|
230
|
+
*/
|
|
231
|
+
dir?: string;
|
|
232
|
+
/**
|
|
233
|
+
* Configures the `size` of the Button.
|
|
234
|
+
*
|
|
235
|
+
* The available options are:
|
|
236
|
+
* - small
|
|
237
|
+
* - medium
|
|
238
|
+
* - large
|
|
239
|
+
*
|
|
240
|
+
* @default `undefined`
|
|
241
|
+
*/
|
|
242
|
+
size?: 'small' | 'medium' | 'large';
|
|
243
|
+
/**
|
|
244
|
+
* Configures the `roundness` of the Button.
|
|
245
|
+
*
|
|
246
|
+
* The available options are:
|
|
247
|
+
* - none
|
|
248
|
+
* - small
|
|
249
|
+
* - medium
|
|
250
|
+
* - large
|
|
251
|
+
* - circle
|
|
252
|
+
* - full
|
|
253
|
+
*
|
|
254
|
+
* @default `undefined`
|
|
255
|
+
*/
|
|
256
|
+
rounded?: 'none' | 'small' | 'medium' | 'large' | 'full';
|
|
257
|
+
/**
|
|
258
|
+
* Configures the `fillMode` of the Button.
|
|
259
|
+
*
|
|
260
|
+
* The available options are:
|
|
261
|
+
* - solid
|
|
262
|
+
* - outline
|
|
263
|
+
* - flat
|
|
264
|
+
* - link
|
|
265
|
+
*
|
|
266
|
+
* @default `undefined`
|
|
267
|
+
*/
|
|
268
|
+
fillMode?: 'solid' | 'outline' | 'flat' | 'link';
|
|
269
|
+
/**
|
|
270
|
+
* Configures the `themeColor` of the Button.
|
|
271
|
+
*
|
|
272
|
+
* The available options are:
|
|
273
|
+
* - base
|
|
274
|
+
* - primary
|
|
275
|
+
* - secondary
|
|
276
|
+
* - tertiary
|
|
277
|
+
* - info
|
|
278
|
+
* - success
|
|
279
|
+
* - warning
|
|
280
|
+
* - dark
|
|
281
|
+
* - light
|
|
282
|
+
* - inverse
|
|
283
|
+
*
|
|
284
|
+
* @default `undefined`
|
|
285
|
+
*/
|
|
286
|
+
themeColor?: 'base' | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'dark' | 'light' | 'inverse';
|
|
287
|
+
/**
|
|
288
|
+
* Fires when the main button is clicked ([see example]({% slug events_splitbutton %})).
|
|
289
|
+
*/
|
|
290
|
+
onButtonclick?: (event: SplitButtonClickEvent) => void;
|
|
291
|
+
/**
|
|
292
|
+
* Fires when the component is focused ([see example]({% slug events_splitbutton %})).
|
|
293
|
+
*/
|
|
294
|
+
onFocus?: (event: SplitButtonFocusEvent) => void;
|
|
295
|
+
/**
|
|
296
|
+
* Fires when the component is blurred ([see example]({% slug events_splitbutton %})).
|
|
297
|
+
*/
|
|
298
|
+
onBlur?: (event: SplitButtonBlurEvent) => void;
|
|
299
|
+
/**
|
|
300
|
+
* Fires when an item is clicked ([see example]({% slug events_splitbutton %})).
|
|
301
|
+
*/
|
|
302
|
+
onItemclick?: (event: SplitButtonItemClickEvent) => void;
|
|
303
|
+
/**
|
|
304
|
+
* Fires when the popup which contains the items is opened ([see example]({% slug events_splitbutton %})).
|
|
305
|
+
*/
|
|
306
|
+
onOpen?: (event: SplitButtonOpenEvent) => void;
|
|
307
|
+
/**
|
|
308
|
+
* Fires when the popup which contains the items is closed ([see example]({% slug events_splitbutton %})).
|
|
309
|
+
*/
|
|
310
|
+
onClose?: (event: SplitButtonCloseEvent) => void;
|
|
311
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { PopupAnimation, Align } from '@progress/kendo-vue-popup';
|
|
9
|
+
/**
|
|
10
|
+
* The settings of the popup container.
|
|
11
|
+
*/
|
|
12
|
+
export interface ButtonsPopupSettings {
|
|
13
|
+
/**
|
|
14
|
+
* Controls the popup animation. By default, the open and close animations are enabled.
|
|
15
|
+
*/
|
|
16
|
+
animate?: boolean | PopupAnimation;
|
|
17
|
+
/**
|
|
18
|
+
* Specifies a list of CSS classes that are used for styling the popup.
|
|
19
|
+
*/
|
|
20
|
+
popupClass?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Specifies the pivot point of the anchor
|
|
23
|
+
* ([see example]({% slug alignmentpositioning_popup %})).
|
|
24
|
+
*/
|
|
25
|
+
anchorAlign?: Align;
|
|
26
|
+
/**
|
|
27
|
+
* Specifies the pivot point of the Popup
|
|
28
|
+
* ([see example]({% slug alignmentpositioning_popup %})).
|
|
29
|
+
*/
|
|
30
|
+
popupAlign?: Align;
|
|
31
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
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 arguments for the `focus` event.
|
|
10
|
+
*/
|
|
11
|
+
export interface SplitButtonFocusEvent {
|
|
12
|
+
/**
|
|
13
|
+
* The native browser focus event.
|
|
14
|
+
*/
|
|
15
|
+
event: FocusEvent;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The arguments for the `blur` event.
|
|
19
|
+
*/
|
|
20
|
+
export interface SplitButtonBlurEvent {
|
|
21
|
+
/**
|
|
22
|
+
* The native browser blur event (FocusEvent).
|
|
23
|
+
*/
|
|
24
|
+
event: FocusEvent;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The arguments for the `buttonclick` event.
|
|
28
|
+
*/
|
|
29
|
+
export interface SplitButtonClickEvent {
|
|
30
|
+
/**
|
|
31
|
+
* The native browser event.
|
|
32
|
+
*/
|
|
33
|
+
event: any;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The arguments for the `open` event.
|
|
37
|
+
*/
|
|
38
|
+
export interface SplitButtonOpenEvent {
|
|
39
|
+
/**
|
|
40
|
+
* The native browser event.
|
|
41
|
+
*/
|
|
42
|
+
event: any;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* The arguments for the `close` event.
|
|
46
|
+
*/
|
|
47
|
+
export interface SplitButtonCloseEvent {
|
|
48
|
+
/**
|
|
49
|
+
* The native browser event.
|
|
50
|
+
*/
|
|
51
|
+
event: any;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* The arguments for the `itemClick` event.
|
|
55
|
+
*/
|
|
56
|
+
export interface SplitButtonItemClickEvent {
|
|
57
|
+
/**
|
|
58
|
+
* The clicked item.
|
|
59
|
+
*/
|
|
60
|
+
item: any;
|
|
61
|
+
/**
|
|
62
|
+
* The zero-based index of the clicked item.
|
|
63
|
+
*/
|
|
64
|
+
itemIndex: number;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* The arguments for the `focus` event.
|
|
68
|
+
*/
|
|
69
|
+
export interface DropDownButtonFocusEvent {
|
|
70
|
+
/**
|
|
71
|
+
* The native browser focus event.
|
|
72
|
+
*/
|
|
73
|
+
event: FocusEvent;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* The arguments for the `blur` event.
|
|
77
|
+
*/
|
|
78
|
+
export interface DropDownButtonBlurEvent {
|
|
79
|
+
/**
|
|
80
|
+
* The native browser blur event (FocusEvent).
|
|
81
|
+
*/
|
|
82
|
+
event: FocusEvent;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* The arguments for the `open` event.
|
|
86
|
+
*/
|
|
87
|
+
export interface DropDownButtonOpenEvent {
|
|
88
|
+
/**
|
|
89
|
+
* The native browser event.
|
|
90
|
+
*/
|
|
91
|
+
event: any;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* The arguments for the `close` event.
|
|
95
|
+
*/
|
|
96
|
+
export interface DropDownButtonCloseEvent {
|
|
97
|
+
/**
|
|
98
|
+
* The native browser event.
|
|
99
|
+
*/
|
|
100
|
+
event: any;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* The arguments for the `itemClick` event.
|
|
104
|
+
*/
|
|
105
|
+
export interface DropDownButtonItemClickEvent {
|
|
106
|
+
/**
|
|
107
|
+
* The clicked item.
|
|
108
|
+
*/
|
|
109
|
+
item: any;
|
|
110
|
+
/**
|
|
111
|
+
* The zero-based index of the clicked item.
|
|
112
|
+
*/
|
|
113
|
+
itemIndex: number;
|
|
114
|
+
/**
|
|
115
|
+
* The native browser event.
|
|
116
|
+
*/
|
|
117
|
+
event: any;
|
|
118
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
declare const navigate: (focusedIndex: number, keyCode: number, altKey: boolean, total: number) => number;
|
|
12
|
+
export default navigate;
|
|
@@ -0,0 +1,16 @@
|
|
|
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 { Align } from '@progress/kendo-vue-popup';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare function getAnchorAlign(isDirectionRightToLeft?: boolean): Align;
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export declare function getPopupAlign(isDirectionRightToLeft?: boolean): Align;
|