@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,240 @@
|
|
|
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 { FloatingActionButtonPopupSettings } from './FloatingActionButtonPopupSettings';
|
|
9
|
+
import { FloatingActionButtonAlign } from '../models/align';
|
|
10
|
+
import { FloatingActionButtonAlignOffset } from '../models/align-offset';
|
|
11
|
+
import { FloatingActionButtonEvent, FloatingActionButtonItemEvent } from '../models/events';
|
|
12
|
+
import { FloatingActionButtonPositionMode } from '../models/position-mode';
|
|
13
|
+
import { FloatingActionButtonSize } from '../models/size';
|
|
14
|
+
import { FloatingActionButtonThemeColor } from '../models/theme-color';
|
|
15
|
+
import { SVGIcon } from '@progress/kendo-vue-common';
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
*/
|
|
19
|
+
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
20
|
+
/**
|
|
21
|
+
* Represents the props of the [Kendo UI for Vue
|
|
22
|
+
* FloatingActionButton component]({% slug overview_floatingactionbutton %}).
|
|
23
|
+
*/
|
|
24
|
+
export interface FloatingActionButtonProps extends Omit<any, 'onBlur' | 'onFocus' | 'onKeyDown' | 'onClick'> {
|
|
25
|
+
/**
|
|
26
|
+
* Specifies a list of CSS classes that will be added to the Floating Action Button.
|
|
27
|
+
*/
|
|
28
|
+
className?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Represents the `dir` HTML attribute. This is used to
|
|
31
|
+
* switch from LTR to RTL [see example]({% slug rtl_buttons %}).
|
|
32
|
+
*/
|
|
33
|
+
dir?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Sets the `id` property of the root HTML element.
|
|
36
|
+
*/
|
|
37
|
+
id?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Specifies if the Floating Action Button is
|
|
40
|
+
* disabled [see example]({% slug disabled_floatingactionbutton %}). Defaults to `false`.
|
|
41
|
+
*/
|
|
42
|
+
disabled?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* If defined it specifies if the Floating Action Button is opened.
|
|
45
|
+
*/
|
|
46
|
+
opened?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Defines the icon rendered in the Floating Action
|
|
49
|
+
* Button [see example]({% slug contenttypes_floatingactionbutton %}).
|
|
50
|
+
*/
|
|
51
|
+
icon?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Defines the svg icon in a Kendo UI for Vue theme.
|
|
54
|
+
*/
|
|
55
|
+
svgIcon?: SVGIcon;
|
|
56
|
+
/**
|
|
57
|
+
* Defines a CSS class or multiple classes separated by spaces which are applied
|
|
58
|
+
* to a `span` element inside the Floating Action Button. Allows the usage of custom icons.
|
|
59
|
+
*/
|
|
60
|
+
iconClass?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Specifies the text of the Floating Action
|
|
63
|
+
* Button [see example]({% slug contenttypes_floatingactionbutton %}).
|
|
64
|
+
*/
|
|
65
|
+
text?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Specifies the horizontal and vertical offset applied to the Floating Action Button
|
|
68
|
+
* [see example]({% slug positioning_floatingactionbutton %}).
|
|
69
|
+
*
|
|
70
|
+
* Normally, the floating button is positioned next to the boundaries of its container
|
|
71
|
+
* with a default offset of `16px`.
|
|
72
|
+
*
|
|
73
|
+
* Positive offsets move floating buttons, which are in a corner, further from that corner. Buttons, which are
|
|
74
|
+
* not in a corner, can be moved along the container's boundary or towards the center of the container.
|
|
75
|
+
*
|
|
76
|
+
* A negative offset can be used to force a button to overflow the boundaries of its container.
|
|
77
|
+
*
|
|
78
|
+
* The possible keys are:
|
|
79
|
+
* * `x`—Sets the horizontal offset of the Floating Action Button.
|
|
80
|
+
* * `y`—Sets the vertical offset of the Floating Action Button.
|
|
81
|
+
*
|
|
82
|
+
*/
|
|
83
|
+
alignOffset?: FloatingActionButtonAlignOffset;
|
|
84
|
+
/**
|
|
85
|
+
* Specifies the horizontal and vertical alignment of the Floating Action Button in relation to the container
|
|
86
|
+
* [see example]({% slug positioning_floatingactionbutton %}).
|
|
87
|
+
*
|
|
88
|
+
* > Centering the Floating Action Button in both horizontal and vertical dimension is not a typical use case.
|
|
89
|
+
* Still, it is possible to achieve such a layout with appropriate offsets.
|
|
90
|
+
* Setting horizontal: "center" and vertical: "middle"
|
|
91
|
+
* at the same time is not supported.
|
|
92
|
+
*
|
|
93
|
+
* The possible keys are:
|
|
94
|
+
* * `horizontal`— Defines the possible horizontal alignment of the Floating Action Button..
|
|
95
|
+
* * `start`—Uses the start point of the container.
|
|
96
|
+
* * `center`—Uses the center point of the container.
|
|
97
|
+
* * `end`(Default)—Uses the end point of the container
|
|
98
|
+
* * `vertical`— Defines the possible vertical alignment of the Floating Action Button..
|
|
99
|
+
* * `top`—Uses the top point of the container.
|
|
100
|
+
* * `middle`—Uses the middle point of the container.
|
|
101
|
+
* * `bottom`(Default)—Uses the bottom point of the container.
|
|
102
|
+
*
|
|
103
|
+
*/
|
|
104
|
+
align?: FloatingActionButtonAlign;
|
|
105
|
+
/**
|
|
106
|
+
* Specifies the position mode of the Floating Action Button
|
|
107
|
+
* [see example]({% slug positioning_floatingactionbutton %}). It is based on the
|
|
108
|
+
* [CSS position](https://developer.mozilla.org/en-US/docs/Web/CSS/position) rule.
|
|
109
|
+
*
|
|
110
|
+
* * The possible values are:
|
|
111
|
+
* * 'fixed' (Default)
|
|
112
|
+
* * 'absolute'
|
|
113
|
+
*/
|
|
114
|
+
positionMode?: FloatingActionButtonPositionMode;
|
|
115
|
+
/**
|
|
116
|
+
* Configures the `roundness` of the Floating Action Button.
|
|
117
|
+
*
|
|
118
|
+
* The available options are:
|
|
119
|
+
* - none
|
|
120
|
+
* - small
|
|
121
|
+
* - medium
|
|
122
|
+
* - large
|
|
123
|
+
* - circle
|
|
124
|
+
* - full
|
|
125
|
+
*
|
|
126
|
+
* @default `undefined`
|
|
127
|
+
*/
|
|
128
|
+
rounded?: 'none' | 'small' | 'medium' | 'large' | 'full';
|
|
129
|
+
/**
|
|
130
|
+
* Configures the `fillMode` of the Floating Action Button.
|
|
131
|
+
*
|
|
132
|
+
* The available options are:
|
|
133
|
+
* - solid
|
|
134
|
+
* - outline
|
|
135
|
+
* - flat
|
|
136
|
+
* - link
|
|
137
|
+
*
|
|
138
|
+
* @default `undefined`
|
|
139
|
+
*/
|
|
140
|
+
fillMode?: 'solid' | 'outline' | 'flat' | 'link';
|
|
141
|
+
/**
|
|
142
|
+
* Specifies the size of the Floating Action Button
|
|
143
|
+
* [see example]({% slug appearance_floatingactionbutton %}).
|
|
144
|
+
*
|
|
145
|
+
* The possible values are:
|
|
146
|
+
* * `small`—Applies half of the default padding, e.g. `8px`.
|
|
147
|
+
* * `medium` (Default)—Applies the default padding, e.g. `16px`.
|
|
148
|
+
* * `large`—Applies one and one half of the default padding, e.g. `24px`.
|
|
149
|
+
*
|
|
150
|
+
*/
|
|
151
|
+
size?: FloatingActionButtonSize;
|
|
152
|
+
/**
|
|
153
|
+
* Specifies the theme color of the Floating Action Button
|
|
154
|
+
* [see example]({% slug appearance_floatingactionbutton %}).
|
|
155
|
+
*
|
|
156
|
+
* The possible values are:
|
|
157
|
+
* * `primary` (Default)—Applies coloring based on the primary theme color.
|
|
158
|
+
* * `secondary`—Applies coloring based on the secondary theme color.
|
|
159
|
+
* * `tertiary`— Applies coloring based on the tertiary theme color.
|
|
160
|
+
* * `info`—Applies coloring based on the info theme color.
|
|
161
|
+
* * `success`— Applies coloring based on the success theme color.
|
|
162
|
+
* * `warning`— Applies coloring based on the warning theme color.
|
|
163
|
+
* * `error`— Applies coloring based on the error theme color.
|
|
164
|
+
* * `dark`— Applies coloring based on the dark theme color.
|
|
165
|
+
* * `light`— Applies coloring based on the light theme color.
|
|
166
|
+
* * `inverse`— Applies coloring based on the inverse theme color.
|
|
167
|
+
*
|
|
168
|
+
*/
|
|
169
|
+
themeColor?: FloatingActionButtonThemeColor;
|
|
170
|
+
/**
|
|
171
|
+
* The collection of items that will be rendered in the Floating Action Button
|
|
172
|
+
* [see example]({% slug databinding_floatingactionbutton %}).
|
|
173
|
+
*/
|
|
174
|
+
items?: any;
|
|
175
|
+
/**
|
|
176
|
+
* Overrides the default component responsible for visualizing a single item
|
|
177
|
+
* [see example]({% slug customization_floatingactionbutton %}#toc-items-rendering).
|
|
178
|
+
*
|
|
179
|
+
* The default Component is: [FloatingActionButtonItem]({% slug api_buttons_floatingactionbuttonitemprops %}).
|
|
180
|
+
*/
|
|
181
|
+
item?: any;
|
|
182
|
+
/**
|
|
183
|
+
* Represents the additional props that will be passed to the Popup inside the Floating Action Button
|
|
184
|
+
* [see example]({% slug customization_floatingactionbutton %}#toc-popup-behavior).
|
|
185
|
+
*/
|
|
186
|
+
popupSettings?: FloatingActionButtonPopupSettings;
|
|
187
|
+
/**
|
|
188
|
+
* Specifies the `tabIndex` of the main button.
|
|
189
|
+
*/
|
|
190
|
+
tabIndex?: number;
|
|
191
|
+
/**
|
|
192
|
+
* Specifies the `accessKey` of the main button.
|
|
193
|
+
*/
|
|
194
|
+
accessKey?: string;
|
|
195
|
+
/**
|
|
196
|
+
* Fires when the Floating Action Button is focused
|
|
197
|
+
* [see example]({% slug overview_floatingactionbutton %}#toc-events).
|
|
198
|
+
*/
|
|
199
|
+
onFocus?: (event: FloatingActionButtonEvent) => void;
|
|
200
|
+
/**
|
|
201
|
+
* Fires when the Floating Action Button is blurred
|
|
202
|
+
* [see example]({% slug overview_floatingactionbutton %}#toc-events).
|
|
203
|
+
*/
|
|
204
|
+
onBlur?: (event: FloatingActionButtonEvent) => void;
|
|
205
|
+
/**
|
|
206
|
+
* Fires when the Floating Action Button is clicked.
|
|
207
|
+
*/
|
|
208
|
+
onClick?: (event: FloatingActionButtonEvent) => void;
|
|
209
|
+
/**
|
|
210
|
+
* Fires when the Floating Action Button Item is clicked
|
|
211
|
+
* [see example]({% slug overview_floatingactionbutton %}#toc-events).
|
|
212
|
+
*/
|
|
213
|
+
onItemclick?: (event: FloatingActionButtonItemEvent) => void;
|
|
214
|
+
/**
|
|
215
|
+
* Triggers onKeyDown event
|
|
216
|
+
* [see example]({% slug overview_floatingactionbutton %}#toc-events).
|
|
217
|
+
*/
|
|
218
|
+
onKeydown?: (event: FloatingActionButtonEvent) => void;
|
|
219
|
+
/**
|
|
220
|
+
* Triggers onMousedown event
|
|
221
|
+
* [see example]({% slug overview_floatingactionbutton %}#toc-events).
|
|
222
|
+
*/
|
|
223
|
+
onMousedown?: (event: FloatingActionButtonEvent) => void;
|
|
224
|
+
/**
|
|
225
|
+
* Triggers onMouseup event
|
|
226
|
+
* [see example]({% slug overview_floatingactionbutton %}#toc-events).
|
|
227
|
+
*/
|
|
228
|
+
onMouseup?: (event: FloatingActionButtonEvent) => void;
|
|
229
|
+
/**
|
|
230
|
+
* Fires when the popup which contains the items is opened
|
|
231
|
+
* [see example]({% slug overview_floatingactionbutton %}#toc-events).
|
|
232
|
+
*/
|
|
233
|
+
onOpen?: (event: FloatingActionButtonEvent) => void;
|
|
234
|
+
/**
|
|
235
|
+
* Fires when the popup which contains the items is closed
|
|
236
|
+
* [see example]({% slug overview_floatingactionbutton %}#toc-events).
|
|
237
|
+
*/
|
|
238
|
+
onClose?: (event: FloatingActionButtonEvent) => void;
|
|
239
|
+
}
|
|
240
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Specifies the horizontal and vertical offset applied to the Floating Action Button.
|
|
10
|
+
*
|
|
11
|
+
* Normally, the floating button is positioned next to the boundaries of its container with a default offset of `16px`.
|
|
12
|
+
*
|
|
13
|
+
* Positive offsets move floating buttons, which are in a corner, further from that corner. Buttons, which are
|
|
14
|
+
* not in a corner, can be moved along the container's boundary or towards the center of the container.
|
|
15
|
+
*
|
|
16
|
+
* A negative offset can be used to force a button to overflow the boundaries of its container.
|
|
17
|
+
*/
|
|
18
|
+
export interface FloatingActionButtonAlignOffset {
|
|
19
|
+
/**
|
|
20
|
+
* Sets the horizontal offset of the Floating Action Button.
|
|
21
|
+
*/
|
|
22
|
+
x?: number | string;
|
|
23
|
+
/**
|
|
24
|
+
* Sets the vertical offset of the Floating Action Button.
|
|
25
|
+
*/
|
|
26
|
+
y?: number | string;
|
|
27
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
* Specifies the horizontal and vertical alignment of the Floating Action Button in relation to the container.
|
|
10
|
+
*
|
|
11
|
+
* > Centering the Floating Action Button in both horizontal and vertical dimension is not a typical use case.
|
|
12
|
+
* Still, it is possible to achieve such a layout with appropriate offsets. Setting horizontal: "center" and
|
|
13
|
+
* vertical: "middle" at the same time is not supported.
|
|
14
|
+
*/
|
|
15
|
+
export interface FloatingActionButtonAlign {
|
|
16
|
+
/**
|
|
17
|
+
* Defines the possible horizontal alignment of the Floating Action Button.
|
|
18
|
+
*
|
|
19
|
+
* The available values are:
|
|
20
|
+
* - `start`—Uses the start point of the container.
|
|
21
|
+
* - `center`—Uses the center point of the container.
|
|
22
|
+
* - `end`(Default)—Uses the end point of the container.
|
|
23
|
+
*/
|
|
24
|
+
horizontal?: 'start' | 'center' | 'end';
|
|
25
|
+
/**
|
|
26
|
+
* Defines the possible vertical alignment of the Floating Action Button.
|
|
27
|
+
*
|
|
28
|
+
* The available values are:
|
|
29
|
+
* - `top`—Uses the top point of the container.
|
|
30
|
+
* - `middle`—Uses the middle point of the container.
|
|
31
|
+
* - `bottom`(Default)—Uses the bottom point of the container.
|
|
32
|
+
*/
|
|
33
|
+
vertical?: 'top' | 'middle' | 'bottom';
|
|
34
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
* Represents the return type of the FloatingActionButton events.
|
|
10
|
+
*/
|
|
11
|
+
export interface FloatingActionButtonEvent {
|
|
12
|
+
/**
|
|
13
|
+
* The native browser event.
|
|
14
|
+
*/
|
|
15
|
+
event: Event | FocusEvent;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Represents the return type of the FloatingActionButtonItemEvent.
|
|
19
|
+
*/
|
|
20
|
+
export interface FloatingActionButtonItemEvent {
|
|
21
|
+
/**
|
|
22
|
+
* The clicked item props.
|
|
23
|
+
*/
|
|
24
|
+
itemProps?: any;
|
|
25
|
+
/**
|
|
26
|
+
* The zero-based index of the clicked item.
|
|
27
|
+
*/
|
|
28
|
+
itemIndex: number;
|
|
29
|
+
}
|
|
@@ -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
|
+
/**
|
|
9
|
+
* Specifies the position mode of the Floating Action Button. It is based on the
|
|
10
|
+
* [CSS position](https://developer.mozilla.org/en-US/docs/Web/CSS/position) rule.
|
|
11
|
+
*
|
|
12
|
+
* * The possible values are:
|
|
13
|
+
* * 'absolute' (Default)
|
|
14
|
+
* * 'fixed'
|
|
15
|
+
*/
|
|
16
|
+
export type FloatingActionButtonPositionMode = 'absolute' | 'fixed';
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
* Specifies the size of the Floating Action Button.
|
|
10
|
+
*
|
|
11
|
+
* The possible values are:
|
|
12
|
+
* * `small`—Applies half of the default padding, e.g. `8px`.
|
|
13
|
+
* * `medium` (Default)—Applies the default padding, e.g. `16px`.
|
|
14
|
+
* * `large`—Applies one and one half of the default padding, e.g. `24px`.
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
export type FloatingActionButtonSize = 'small' | 'medium' | 'large';
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
* Specifies the theme color of the Floating Action Button..
|
|
10
|
+
*
|
|
11
|
+
* The possible values are:
|
|
12
|
+
* * `primary` (Default)—Applies coloring based on the primary theme color.
|
|
13
|
+
* * `secondary`—Applies coloring based on the secondary theme color.
|
|
14
|
+
* * `tertiary`— Applies coloring based on the tertiary theme color.
|
|
15
|
+
* * `info`—Applies coloring based on the info theme color.
|
|
16
|
+
* * `success`— Applies coloring based on the success theme color.
|
|
17
|
+
* * `warning`— Applies coloring based on the warning theme color.
|
|
18
|
+
* * `error`— Applies coloring based on the error theme color.
|
|
19
|
+
* * `dark`— Applies coloring based on the dark theme color.
|
|
20
|
+
* * `light`— Applies coloring based on the light theme color.
|
|
21
|
+
* * `inverse`— Applies coloring based on the inverse theme color.
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export type FloatingActionButtonThemeColor = 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error' | 'dark' | 'light' | 'inverse';
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
import { FloatingActionButtonAlignOffset } from './models/align-offset';
|
|
10
|
+
import { FloatingActionButtonAlign } from './models/align';
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export declare const DEFAULT_OFFSET = "16px";
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
export declare const toStringValues: (val: number | string) => string;
|
|
19
|
+
/**
|
|
20
|
+
* @hidden
|
|
21
|
+
*/
|
|
22
|
+
export declare const getAnchorAlign: (fabAlign: FloatingActionButtonAlign, rtl?: boolean) => Align;
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
export declare const getPopupAlign: (fabAlign: FloatingActionButtonAlign, rtl: boolean) => Align;
|
|
27
|
+
/**
|
|
28
|
+
* @hidden
|
|
29
|
+
*/
|
|
30
|
+
export declare const getTextDirectionClass: (rtl: string, hAlign: any) => any;
|
|
31
|
+
/**
|
|
32
|
+
* @hidden
|
|
33
|
+
*/
|
|
34
|
+
export declare const position: (ref: any, align: FloatingActionButtonAlign, alignOffset: FloatingActionButtonAlignOffset | undefined, isRtl: boolean) => void;
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
* The props of the ButtonItem component.
|
|
11
|
+
* The ButtonItem component renders each list item in the dropdown buttons list.
|
|
12
|
+
*/
|
|
13
|
+
export interface ButtonItemProps {
|
|
14
|
+
focused?: boolean;
|
|
15
|
+
index?: number;
|
|
16
|
+
item?: any;
|
|
17
|
+
render?: any;
|
|
18
|
+
dataItem: any;
|
|
19
|
+
id?: string;
|
|
20
|
+
textField?: string;
|
|
21
|
+
role?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
declare const ButtonItem: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
27
|
+
focused: PropType<boolean>;
|
|
28
|
+
index: PropType<number>;
|
|
29
|
+
item: PropType<any>;
|
|
30
|
+
render: PropType<any>;
|
|
31
|
+
dataItem: PropType<any>;
|
|
32
|
+
id: PropType<string>;
|
|
33
|
+
textField: PropType<string>;
|
|
34
|
+
role: PropType<string>;
|
|
35
|
+
}>, {}, {}, {
|
|
36
|
+
wrapperClass(): object;
|
|
37
|
+
innerClass(): object;
|
|
38
|
+
}, {
|
|
39
|
+
onClick(event: any): void;
|
|
40
|
+
onDown(event: any): void;
|
|
41
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
42
|
+
click: (event: any, index: number) => true;
|
|
43
|
+
down: (event: any, index: number) => true;
|
|
44
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
45
|
+
focused: PropType<boolean>;
|
|
46
|
+
index: PropType<number>;
|
|
47
|
+
item: PropType<any>;
|
|
48
|
+
render: PropType<any>;
|
|
49
|
+
dataItem: PropType<any>;
|
|
50
|
+
id: PropType<string>;
|
|
51
|
+
textField: PropType<string>;
|
|
52
|
+
role: PropType<string>;
|
|
53
|
+
}>> & Readonly<{
|
|
54
|
+
onClick?: (event: any, index: number) => any;
|
|
55
|
+
onDown?: (event: any, index: number) => any;
|
|
56
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
57
|
+
export { ButtonItem };
|
|
@@ -0,0 +1,168 @@
|
|
|
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 { DropDownButtonFocusEvent, DropDownButtonBlurEvent, DropDownButtonOpenEvent, DropDownButtonCloseEvent, DropDownButtonItemClickEvent } from './models/events';
|
|
9
|
+
import { PropType } from 'vue';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export interface DropDownButtonData {
|
|
14
|
+
focusedIndex?: number;
|
|
15
|
+
focused?: boolean;
|
|
16
|
+
currentOpened: boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
export interface DropDownButtonComputed {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
computedOpened: boolean;
|
|
24
|
+
wrapperClass: object;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @hidden
|
|
28
|
+
*/
|
|
29
|
+
export interface DropDownButtonMethods {
|
|
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
|
+
dispatchPopupEvent: (dispatchedEvent: any, open: boolean) => void;
|
|
41
|
+
isItemDisabled: (index: number) => boolean;
|
|
42
|
+
isRtl: () => boolean;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @hidden
|
|
46
|
+
*/
|
|
47
|
+
export interface DropDownButtonState {
|
|
48
|
+
wrapper: HTMLDivElement | null;
|
|
49
|
+
mainButton: any;
|
|
50
|
+
guid: string;
|
|
51
|
+
buttonsData: Array<any>;
|
|
52
|
+
_anchor: string;
|
|
53
|
+
kendoAnchorRef: any;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @hidden
|
|
57
|
+
*/
|
|
58
|
+
declare const DropDownButton: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
59
|
+
accessKey: PropType<string>;
|
|
60
|
+
items: {
|
|
61
|
+
type: PropType<any[]>;
|
|
62
|
+
default: () => any[];
|
|
63
|
+
};
|
|
64
|
+
ariaLabel: PropType<string>;
|
|
65
|
+
text: PropType<any>;
|
|
66
|
+
textField: PropType<string>;
|
|
67
|
+
tabIndex: PropType<number>;
|
|
68
|
+
disabled: PropType<boolean>;
|
|
69
|
+
icon: PropType<string>;
|
|
70
|
+
svgIcon: PropType<import('@progress/kendo-vue-common').SVGIcon>;
|
|
71
|
+
iconClass: PropType<string>;
|
|
72
|
+
imageUrl: PropType<string>;
|
|
73
|
+
popupSettings: PropType<import('..').ButtonsPopupSettings>;
|
|
74
|
+
itemRender: PropType<any>;
|
|
75
|
+
item: PropType<any>;
|
|
76
|
+
size: PropType<"small" | "medium" | "large">;
|
|
77
|
+
rounded: PropType<"small" | "medium" | "large" | "full" | "none">;
|
|
78
|
+
fillMode: {
|
|
79
|
+
type: PropType<"flat" | "link" | "solid" | "outline">;
|
|
80
|
+
validator: (value: string) => boolean;
|
|
81
|
+
};
|
|
82
|
+
themeColor: {
|
|
83
|
+
type: PropType<"base" | "primary" | "secondary" | "tertiary" | "info" | "success" | "warning" | "dark" | "light" | "inverse">;
|
|
84
|
+
validator: (value: string) => boolean;
|
|
85
|
+
};
|
|
86
|
+
opened: {
|
|
87
|
+
type: PropType<boolean>;
|
|
88
|
+
default: any;
|
|
89
|
+
};
|
|
90
|
+
buttonClass: PropType<string>;
|
|
91
|
+
dir: PropType<string>;
|
|
92
|
+
}>, {
|
|
93
|
+
kendoAnchorRef: import('vue').Ref<any, any>;
|
|
94
|
+
}, {
|
|
95
|
+
currentOpened: boolean;
|
|
96
|
+
focused: boolean;
|
|
97
|
+
focusedIndex: number;
|
|
98
|
+
}, {
|
|
99
|
+
computedOpened(): boolean;
|
|
100
|
+
wrapperClass(): {
|
|
101
|
+
'k-dropdown-button': boolean;
|
|
102
|
+
'k-focus': any;
|
|
103
|
+
};
|
|
104
|
+
}, {
|
|
105
|
+
element(): HTMLButtonElement | null;
|
|
106
|
+
onKeyDown(event: any): void;
|
|
107
|
+
onFocus(event: FocusEvent): void;
|
|
108
|
+
onBlur(event: FocusEvent): void;
|
|
109
|
+
createBlurTimeout(event: FocusEvent): void;
|
|
110
|
+
onItemClick(event: any, clickedItemIndex: number): void;
|
|
111
|
+
onItemDown(event: any): void;
|
|
112
|
+
mouseDown(event: any): void;
|
|
113
|
+
dispatchClickEvent(dispatchedEvent: any, index: number): void;
|
|
114
|
+
onClickMainButton(event: any): void;
|
|
115
|
+
dispatchPopupEvent(dispatchedEvent: any, open: boolean): void;
|
|
116
|
+
isItemDisabled(index: number): any;
|
|
117
|
+
isRtl(): boolean;
|
|
118
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
119
|
+
focus: (event: DropDownButtonFocusEvent) => true;
|
|
120
|
+
blur: (event: DropDownButtonBlurEvent) => true;
|
|
121
|
+
itemclick: (event: DropDownButtonItemClickEvent) => true;
|
|
122
|
+
open: (event: DropDownButtonOpenEvent) => true;
|
|
123
|
+
close: (event: DropDownButtonCloseEvent) => true;
|
|
124
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
125
|
+
accessKey: PropType<string>;
|
|
126
|
+
items: {
|
|
127
|
+
type: PropType<any[]>;
|
|
128
|
+
default: () => any[];
|
|
129
|
+
};
|
|
130
|
+
ariaLabel: PropType<string>;
|
|
131
|
+
text: PropType<any>;
|
|
132
|
+
textField: PropType<string>;
|
|
133
|
+
tabIndex: PropType<number>;
|
|
134
|
+
disabled: PropType<boolean>;
|
|
135
|
+
icon: PropType<string>;
|
|
136
|
+
svgIcon: PropType<import('@progress/kendo-vue-common').SVGIcon>;
|
|
137
|
+
iconClass: PropType<string>;
|
|
138
|
+
imageUrl: PropType<string>;
|
|
139
|
+
popupSettings: PropType<import('..').ButtonsPopupSettings>;
|
|
140
|
+
itemRender: PropType<any>;
|
|
141
|
+
item: PropType<any>;
|
|
142
|
+
size: PropType<"small" | "medium" | "large">;
|
|
143
|
+
rounded: PropType<"small" | "medium" | "large" | "full" | "none">;
|
|
144
|
+
fillMode: {
|
|
145
|
+
type: PropType<"flat" | "link" | "solid" | "outline">;
|
|
146
|
+
validator: (value: string) => boolean;
|
|
147
|
+
};
|
|
148
|
+
themeColor: {
|
|
149
|
+
type: PropType<"base" | "primary" | "secondary" | "tertiary" | "info" | "success" | "warning" | "dark" | "light" | "inverse">;
|
|
150
|
+
validator: (value: string) => boolean;
|
|
151
|
+
};
|
|
152
|
+
opened: {
|
|
153
|
+
type: PropType<boolean>;
|
|
154
|
+
default: any;
|
|
155
|
+
};
|
|
156
|
+
buttonClass: PropType<string>;
|
|
157
|
+
dir: PropType<string>;
|
|
158
|
+
}>> & Readonly<{
|
|
159
|
+
onBlur?: (event: DropDownButtonBlurEvent) => any;
|
|
160
|
+
onClose?: (event: DropDownButtonCloseEvent) => any;
|
|
161
|
+
onFocus?: (event: DropDownButtonFocusEvent) => any;
|
|
162
|
+
onOpen?: (event: DropDownButtonOpenEvent) => any;
|
|
163
|
+
onItemclick?: (event: DropDownButtonItemClickEvent) => any;
|
|
164
|
+
}>, {
|
|
165
|
+
items: any[];
|
|
166
|
+
opened: boolean;
|
|
167
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
168
|
+
export { DropDownButton };
|