@progress/kendo-react-buttons 7.2.4-develop.3 → 7.3.0-develop.1
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.js +8 -0
- package/Button.mjs +124 -0
- package/ButtonGroup.js +8 -0
- package/ButtonGroup.mjs +76 -0
- package/Chip/Chip.js +8 -0
- package/Chip/Chip.mjs +220 -0
- package/Chip/ChipList.js +8 -0
- package/Chip/ChipList.mjs +190 -0
- package/Chip/chip-list-contexts.js +8 -0
- package/Chip/chip-list-contexts.mjs +18 -0
- package/Chip/data-reducer.js +8 -0
- package/Chip/data-reducer.mjs +25 -0
- package/Chip/focus-reducer.js +8 -0
- package/Chip/focus-reducer.mjs +28 -0
- package/Chip/selection-reducer.js +8 -0
- package/Chip/selection-reducer.mjs +47 -0
- package/FloatingActionButton/FloatingActionButton.js +8 -0
- package/FloatingActionButton/FloatingActionButton.mjs +343 -0
- package/FloatingActionButton/FloatingActionButtonItem.js +8 -0
- package/FloatingActionButton/FloatingActionButtonItem.mjs +93 -0
- package/FloatingActionButton/utils.js +8 -0
- package/FloatingActionButton/utils.mjs +46 -0
- package/ListButton/ButtonItem.js +8 -0
- package/ListButton/ButtonItem.mjs +63 -0
- package/ListButton/DropDownButton.js +8 -0
- package/ListButton/DropDownButton.mjs +267 -0
- package/ListButton/DropDownButtonItem.js +8 -0
- package/ListButton/DropDownButtonItem.mjs +31 -0
- package/ListButton/SplitButton.js +8 -0
- package/ListButton/SplitButton.mjs +298 -0
- package/ListButton/SplitButtonItem.js +8 -0
- package/ListButton/SplitButtonItem.mjs +30 -0
- package/ListButton/utils/navigation.js +8 -0
- package/ListButton/utils/navigation.mjs +35 -0
- package/ListButton/utils/popup.js +8 -0
- package/ListButton/utils/popup.mjs +20 -0
- package/dist/cdn/js/kendo-react-buttons.js +8 -5
- package/index.d.mts +2227 -5
- package/index.d.ts +2227 -40
- package/index.js +8 -5
- package/index.mjs +44 -1906
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +19 -0
- package/package.json +3 -3
- package/toolbar/Toolbar.js +8 -0
- package/toolbar/Toolbar.mjs +124 -0
- package/toolbar/tools/ToolbarItem.js +8 -0
- package/toolbar/tools/ToolbarItem.mjs +44 -0
- package/toolbar/tools/ToolbarSeparator.js +8 -0
- package/toolbar/tools/ToolbarSeparator.mjs +21 -0
- package/toolbar/tools/ToolbarSpacer.js +8 -0
- package/toolbar/tools/ToolbarSpacer.mjs +36 -0
- package/util.js +8 -0
- package/util.mjs +36 -0
- package/Button.d.ts +0 -146
- package/ButtonGroup.d.ts +0 -36
- package/ButtonGroupInterface.d.ts +0 -36
- package/ButtonInterface.d.ts +0 -39
- package/Chip/Chip.d.ts +0 -238
- package/Chip/ChipList.d.ts +0 -119
- package/Chip/chip-list-contexts.d.ts +0 -17
- package/Chip/data-reducer.d.ts +0 -26
- package/Chip/focus-reducer.d.ts +0 -28
- package/Chip/selection-reducer.d.ts +0 -34
- package/FloatingActionButton/FloatingActionButton.d.ts +0 -21
- package/FloatingActionButton/FloatingActionButtonItem.d.ts +0 -109
- package/FloatingActionButton/interfaces/FloatingActionButtonHandle.d.ts +0 -17
- package/FloatingActionButton/interfaces/FloatingActionButtonPopupSettings.d.ts +0 -28
- package/FloatingActionButton/interfaces/FloatingActionButtonProps.d.ts +0 -219
- package/FloatingActionButton/models/align-offset.d.ts +0 -24
- package/FloatingActionButton/models/align.d.ts +0 -31
- package/FloatingActionButton/models/events.d.ts +0 -25
- package/FloatingActionButton/models/position-mode.d.ts +0 -13
- package/FloatingActionButton/models/rounded.d.ts +0 -16
- package/FloatingActionButton/models/size.d.ts +0 -15
- package/FloatingActionButton/models/theme-color.d.ts +0 -22
- package/FloatingActionButton/utils.d.ts +0 -31
- package/ListButton/ButtonItem.d.ts +0 -34
- package/ListButton/DropDownButton.d.ts +0 -127
- package/ListButton/DropDownButtonItem.d.ts +0 -34
- package/ListButton/SplitButton.d.ts +0 -129
- package/ListButton/SplitButtonItem.d.ts +0 -29
- package/ListButton/models/ButtonItem.d.ts +0 -38
- package/ListButton/models/ListButtonProps.d.ts +0 -339
- package/ListButton/models/PopupSettings.d.ts +0 -32
- package/ListButton/models/events.d.ts +0 -51
- package/ListButton/utils/navigation.d.ts +0 -9
- package/ListButton/utils/popup.d.ts +0 -13
- package/models/index.d.ts +0 -92
- package/package-metadata.d.ts +0 -9
- package/toolbar/Toolbar.d.ts +0 -175
- package/toolbar/tools/ToolbarItem.d.ts +0 -42
- package/toolbar/tools/ToolbarSeparator.d.ts +0 -20
- package/toolbar/tools/ToolbarSpacer.d.ts +0 -27
- package/util.d.ts +0 -31
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import PropTypes from 'prop-types';
|
|
7
|
-
import { SplitButtonProps } from './models/ListButtonProps';
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export interface SplitButtonState {
|
|
12
|
-
focusedIndex?: number;
|
|
13
|
-
focused?: boolean;
|
|
14
|
-
opened?: boolean;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Represents the [KendoReact SplitButton component]({% slug overview_splitbutton %}).
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```jsx
|
|
21
|
-
* class App extends React.Component {
|
|
22
|
-
* render() {
|
|
23
|
-
* return (
|
|
24
|
-
* <SplitButton text="Act">
|
|
25
|
-
* <SplitButtonItem text="Item1" />
|
|
26
|
-
* <SplitButtonItem text="Item2" />
|
|
27
|
-
* <SplitButtonItem text="Item3" />
|
|
28
|
-
* </SplitButton>
|
|
29
|
-
* );
|
|
30
|
-
* }
|
|
31
|
-
* }
|
|
32
|
-
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
export declare class SplitButton extends React.Component<SplitButtonProps, SplitButtonState> {
|
|
36
|
-
/**
|
|
37
|
-
* @hidden
|
|
38
|
-
*/
|
|
39
|
-
static propTypes: {
|
|
40
|
-
accessKey: PropTypes.Requireable<string>;
|
|
41
|
-
ariaLabel: PropTypes.Requireable<string>;
|
|
42
|
-
title: PropTypes.Requireable<string>;
|
|
43
|
-
onButtonClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
44
|
-
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
45
|
-
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
46
|
-
onItemClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
47
|
-
onOpen: PropTypes.Requireable<(...args: any[]) => any>;
|
|
48
|
-
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
49
|
-
text: PropTypes.Requireable<string>;
|
|
50
|
-
items: PropTypes.Requireable<any[]>;
|
|
51
|
-
textField: PropTypes.Requireable<string>;
|
|
52
|
-
tabIndex: PropTypes.Requireable<number>;
|
|
53
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
54
|
-
icon: PropTypes.Requireable<string>;
|
|
55
|
-
svgIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
56
|
-
name: PropTypes.Validator<string>;
|
|
57
|
-
content: PropTypes.Validator<string>;
|
|
58
|
-
viewBox: PropTypes.Validator<string>;
|
|
59
|
-
}>>;
|
|
60
|
-
iconClass: PropTypes.Requireable<string>;
|
|
61
|
-
imageUrl: PropTypes.Requireable<string>;
|
|
62
|
-
popupSettings: PropTypes.Requireable<object>;
|
|
63
|
-
itemRender: PropTypes.Requireable<any>;
|
|
64
|
-
item: PropTypes.Requireable<(...args: any[]) => any>;
|
|
65
|
-
className: PropTypes.Requireable<string>;
|
|
66
|
-
buttonClass: PropTypes.Requireable<string>;
|
|
67
|
-
dir: PropTypes.Requireable<string>;
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
* @hidden
|
|
71
|
-
*/
|
|
72
|
-
static defaultProps: {
|
|
73
|
-
size: string;
|
|
74
|
-
rounded: string;
|
|
75
|
-
fillMode: string;
|
|
76
|
-
themeColor: string;
|
|
77
|
-
};
|
|
78
|
-
/**
|
|
79
|
-
* @hidden
|
|
80
|
-
*/
|
|
81
|
-
readonly state: {
|
|
82
|
-
focused: boolean;
|
|
83
|
-
focusedIndex: number;
|
|
84
|
-
opened: boolean;
|
|
85
|
-
};
|
|
86
|
-
private wrapper;
|
|
87
|
-
private mainButton;
|
|
88
|
-
private list;
|
|
89
|
-
private get guid();
|
|
90
|
-
private skipFocus;
|
|
91
|
-
private buttonsData;
|
|
92
|
-
private openedDuringOnChange?;
|
|
93
|
-
constructor(props: SplitButtonProps);
|
|
94
|
-
private get opened();
|
|
95
|
-
/**
|
|
96
|
-
* @hidden
|
|
97
|
-
*/
|
|
98
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
99
|
-
/**
|
|
100
|
-
* @hidden
|
|
101
|
-
*/
|
|
102
|
-
componentDidMount(): void;
|
|
103
|
-
/**
|
|
104
|
-
* The DOM element of main button.
|
|
105
|
-
*/
|
|
106
|
-
get element(): HTMLButtonElement | null;
|
|
107
|
-
private onKeyDown;
|
|
108
|
-
private switchFocus;
|
|
109
|
-
private onFocus;
|
|
110
|
-
private setOpen;
|
|
111
|
-
private onItemClick;
|
|
112
|
-
private onBlur;
|
|
113
|
-
private dispatchClickEvent;
|
|
114
|
-
private renderPopup;
|
|
115
|
-
private onPopupClose;
|
|
116
|
-
private listRef;
|
|
117
|
-
private renderChildItems;
|
|
118
|
-
private onSplitPartClick;
|
|
119
|
-
private onDownSplitPart;
|
|
120
|
-
private onItemDown;
|
|
121
|
-
private dispatchPopupEvent;
|
|
122
|
-
private isItemDisabled;
|
|
123
|
-
private isRtl;
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Represent the `ref` of the SplitButton component.
|
|
127
|
-
*/
|
|
128
|
-
export interface SplitButtonHandle extends Pick<SplitButton, keyof SplitButton> {
|
|
129
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import PropTypes from 'prop-types';
|
|
7
|
-
import { ButtonItem } from './models/ButtonItem';
|
|
8
|
-
/**
|
|
9
|
-
* The properties of the KendoReact SplitButtonItem component.
|
|
10
|
-
*/
|
|
11
|
-
export interface SplitButtonItemProps extends ButtonItem {
|
|
12
|
-
}
|
|
13
|
-
export declare class SplitButtonItem extends React.Component<SplitButtonItemProps, {}> {
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
static propTypes: {
|
|
18
|
-
text: PropTypes.Requireable<string>;
|
|
19
|
-
icon: PropTypes.Requireable<string>;
|
|
20
|
-
iconClass: PropTypes.Requireable<string>;
|
|
21
|
-
imageUrl: PropTypes.Requireable<string>;
|
|
22
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
23
|
-
render: PropTypes.Requireable<any>;
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* @hidden
|
|
27
|
-
*/
|
|
28
|
-
render(): null;
|
|
29
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { SVGIcon } from '@progress/kendo-react-common';
|
|
6
|
-
/**
|
|
7
|
-
* 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.
|
|
8
|
-
*/
|
|
9
|
-
export interface ButtonItem {
|
|
10
|
-
/**
|
|
11
|
-
* Specifies the text of the item.
|
|
12
|
-
*/
|
|
13
|
-
text: string;
|
|
14
|
-
/**
|
|
15
|
-
* Defines an icon that will be rendered next to the item text.
|
|
16
|
-
*/
|
|
17
|
-
icon?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Defines an SVG icon that will be rendered next to the item text.
|
|
20
|
-
*/
|
|
21
|
-
svgIcon?: SVGIcon;
|
|
22
|
-
/**
|
|
23
|
-
* Defines an icon with a custom CSS class that will be rendered next to the item text.
|
|
24
|
-
*/
|
|
25
|
-
iconClass?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Defines the location of an image that will be displayed next to the item text.
|
|
28
|
-
*/
|
|
29
|
-
imageUrl?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Determines whether the item is disabled.
|
|
32
|
-
*/
|
|
33
|
-
disabled?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* A React functional or class component for rendering the item. The default rendering includes an icon, an image, and text.
|
|
36
|
-
*/
|
|
37
|
-
render?: any;
|
|
38
|
-
}
|
|
@@ -1,339 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ButtonsPopupSettings } from './PopupSettings';
|
|
6
|
-
import { SplitButtonClickEvent, SplitButtonItemClickEvent, SplitButtonFocusEvent, SplitButtonBlurEvent, SplitButtonOpenEvent, SplitButtonCloseEvent, DropDownButtonItemClickEvent, DropDownButtonFocusEvent, DropDownButtonBlurEvent, DropDownButtonOpenEvent, DropDownButtonCloseEvent } from './events';
|
|
7
|
-
import { ButtonItemProps } from '../ButtonItem';
|
|
8
|
-
import { KendoReactComponentBaseProps, SVGIcon } from '@progress/kendo-react-common';
|
|
9
|
-
export interface DropDownButtonProps extends KendoReactComponentBaseProps {
|
|
10
|
-
/**
|
|
11
|
-
* Specifies the `accessKey` of the main button.
|
|
12
|
-
*/
|
|
13
|
-
accessKey?: string;
|
|
14
|
-
/**
|
|
15
|
-
* The accessible label of the component.
|
|
16
|
-
*/
|
|
17
|
-
ariaLabel?: string;
|
|
18
|
-
/**
|
|
19
|
-
* The title of the component.
|
|
20
|
-
*/
|
|
21
|
-
title?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Specifies the text of the main button ([see example]({% slug overview_dropdownbutton %}#toc-basic-usage)).
|
|
24
|
-
*/
|
|
25
|
-
text?: React.ReactNode;
|
|
26
|
-
/**
|
|
27
|
-
* Specifies the list items ([see example]({% slug binding_dropdownbutton %}#toc-array-of-objects)).
|
|
28
|
-
*/
|
|
29
|
-
items?: any[];
|
|
30
|
-
/**
|
|
31
|
-
* 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-array-of-objects)).
|
|
32
|
-
*/
|
|
33
|
-
textField?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Specifies the `tabIndex` of the main button.
|
|
36
|
-
*/
|
|
37
|
-
tabIndex?: number;
|
|
38
|
-
/**
|
|
39
|
-
* Determines whether the component is disabled ([see example]({% slug disabled_dropdownbutton %})).
|
|
40
|
-
*/
|
|
41
|
-
disabled?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Opens the popup of the DropDownButton if set to `true`.
|
|
44
|
-
*/
|
|
45
|
-
opened?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Defines an icon that will be rendered next to the main button text ([see example]({% slug icons_dropdownbutton %})).
|
|
48
|
-
*/
|
|
49
|
-
icon?: string;
|
|
50
|
-
/**
|
|
51
|
-
* Defines a SVG icon that will be rendered next to the main button text ([see example]({% slug icons_dropdownbutton %})).
|
|
52
|
-
*/
|
|
53
|
-
svgIcon?: SVGIcon;
|
|
54
|
-
/**
|
|
55
|
-
* Defines an icon with a custom CSS class that will be rendered next to the main button text ([see example]({% slug icons_dropdownbutton %})).
|
|
56
|
-
*/
|
|
57
|
-
iconClass?: string;
|
|
58
|
-
/**
|
|
59
|
-
* Defines the location of an image that will be displayed next to the main button text ([see example]({% slug icons_dropdownbutton %})).
|
|
60
|
-
*/
|
|
61
|
-
imageUrl?: string;
|
|
62
|
-
/**
|
|
63
|
-
* Configures the popup
|
|
64
|
-
* ([see example]({% slug customization_dropdownbutton %}#toc-popup)).
|
|
65
|
-
*/
|
|
66
|
-
popupSettings?: ButtonsPopupSettings;
|
|
67
|
-
/**
|
|
68
|
-
* A React functional or class component which is used for rendering items ([see example]({% slug customization_dropdownbutton %}#toc-item-render)). The default rendering includes an icon, an image, and text.
|
|
69
|
-
*/
|
|
70
|
-
item?: null | React.ComponentType<{
|
|
71
|
-
item: any;
|
|
72
|
-
itemIndex: number;
|
|
73
|
-
}>;
|
|
74
|
-
/**
|
|
75
|
-
* Fires when a dropdown list button item is about to be rendered. Use it to override the default appearance of the list items.
|
|
76
|
-
* if `item` prop is not declared, `itemRender` behaves like `item`, for backward compatibility with versions before 4.2.0
|
|
77
|
-
*/
|
|
78
|
-
itemRender?: ((li: React.ReactElement<HTMLLIElement>, props: ButtonItemProps) => React.ReactNode) | React.ComponentType<{
|
|
79
|
-
item: any;
|
|
80
|
-
itemIndex: number;
|
|
81
|
-
}>;
|
|
82
|
-
/**
|
|
83
|
-
* Sets the `className` of the DropDownButton component.
|
|
84
|
-
*/
|
|
85
|
-
className?: string;
|
|
86
|
-
/**
|
|
87
|
-
* Sets the `className` of the main button.
|
|
88
|
-
*/
|
|
89
|
-
buttonClass?: string;
|
|
90
|
-
/**
|
|
91
|
-
* Sets the direction of the component.
|
|
92
|
-
*/
|
|
93
|
-
dir?: string;
|
|
94
|
-
/**
|
|
95
|
-
* Fires when the component is focused ([see example]({% slug overview_dropdownbutton %}#toc-events)).
|
|
96
|
-
*/
|
|
97
|
-
onFocus?: (event: DropDownButtonFocusEvent) => void;
|
|
98
|
-
/**
|
|
99
|
-
* Fires when the component is blurred ([see example]({% slug overview_dropdownbutton %}#toc-events)).
|
|
100
|
-
*/
|
|
101
|
-
onBlur?: (event: DropDownButtonBlurEvent) => void;
|
|
102
|
-
/**
|
|
103
|
-
* Fires when an item is clicked ([see example]({% slug overview_dropdownbutton %}#toc-events)).
|
|
104
|
-
*/
|
|
105
|
-
onItemClick?: (event: DropDownButtonItemClickEvent) => void;
|
|
106
|
-
/**
|
|
107
|
-
* Fires when the popup which contains the items is opened ([see example]({% slug overview_dropdownbutton %}#toc-events)).
|
|
108
|
-
*/
|
|
109
|
-
onOpen?: (event: DropDownButtonOpenEvent) => void;
|
|
110
|
-
/**
|
|
111
|
-
* Fires when the popup which contains the items is closed ([see example]({% slug overview_dropdownbutton %}#toc-events)).
|
|
112
|
-
*/
|
|
113
|
-
onClose?: (event: DropDownButtonCloseEvent) => void;
|
|
114
|
-
/**
|
|
115
|
-
* Configures the `size` of the DropDownButton.
|
|
116
|
-
*
|
|
117
|
-
* The available options are:
|
|
118
|
-
* - small
|
|
119
|
-
* - medium
|
|
120
|
-
* - large
|
|
121
|
-
* - null—Does not set a size `className`.
|
|
122
|
-
*
|
|
123
|
-
* @default `medium`
|
|
124
|
-
*/
|
|
125
|
-
size?: null | 'small' | 'medium' | 'large';
|
|
126
|
-
/**
|
|
127
|
-
* Configures the `roundness` of the DropDownButton.
|
|
128
|
-
*
|
|
129
|
-
* The available options are:
|
|
130
|
-
* - small
|
|
131
|
-
* - medium
|
|
132
|
-
* - large
|
|
133
|
-
* - full
|
|
134
|
-
* - null—Does not set a rounded `className`.
|
|
135
|
-
*
|
|
136
|
-
* @default `medium`
|
|
137
|
-
*/
|
|
138
|
-
rounded?: null | 'small' | 'medium' | 'large' | 'full';
|
|
139
|
-
/**
|
|
140
|
-
* Configures the `fillMode` of the DropDownButton.
|
|
141
|
-
*
|
|
142
|
-
* The available options are:
|
|
143
|
-
* - solid
|
|
144
|
-
* - outline
|
|
145
|
-
* - flat
|
|
146
|
-
* - link
|
|
147
|
-
* - null—Does not set a fillMode `className`.
|
|
148
|
-
*
|
|
149
|
-
* @default `solid`
|
|
150
|
-
*/
|
|
151
|
-
fillMode?: null | 'solid' | 'outline' | 'flat' | 'link';
|
|
152
|
-
/**
|
|
153
|
-
* Configures the `themeColor` of the DropDownButton.
|
|
154
|
-
*
|
|
155
|
-
* The available options are:
|
|
156
|
-
* - base
|
|
157
|
-
* - primary
|
|
158
|
-
* - secondary
|
|
159
|
-
* - tertiary
|
|
160
|
-
* - info
|
|
161
|
-
* - success
|
|
162
|
-
* - warning
|
|
163
|
-
* - error
|
|
164
|
-
* - dark
|
|
165
|
-
* - light
|
|
166
|
-
* - inverse
|
|
167
|
-
* - null—Does not set a themeColor `className`.
|
|
168
|
-
*
|
|
169
|
-
* @default `base`
|
|
170
|
-
*/
|
|
171
|
-
themeColor?: null | 'base' | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error' | 'dark' | 'light' | 'inverse';
|
|
172
|
-
}
|
|
173
|
-
export interface SplitButtonProps extends KendoReactComponentBaseProps {
|
|
174
|
-
/**
|
|
175
|
-
* Specifies the `accessKey` of the main button.
|
|
176
|
-
*/
|
|
177
|
-
accessKey?: string;
|
|
178
|
-
/**
|
|
179
|
-
* The accessible label of the component.
|
|
180
|
-
*/
|
|
181
|
-
ariaLabel?: string;
|
|
182
|
-
/**
|
|
183
|
-
* The title of the component.
|
|
184
|
-
*/
|
|
185
|
-
title?: string;
|
|
186
|
-
/**
|
|
187
|
-
* Specifies the text of the main button ([see example]({% slug overview_splitbutton %}#toc-basic-usage)).
|
|
188
|
-
*/
|
|
189
|
-
text?: string;
|
|
190
|
-
/**
|
|
191
|
-
* Specifies the list items ([see example]({% slug binding_splitbutton %}#toc-array-of-objects)).
|
|
192
|
-
*/
|
|
193
|
-
items?: any[];
|
|
194
|
-
/**
|
|
195
|
-
* 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-array-of-objects)).
|
|
196
|
-
*/
|
|
197
|
-
textField?: string;
|
|
198
|
-
/**
|
|
199
|
-
* Specifies the `tabIndex` of the main button.
|
|
200
|
-
*/
|
|
201
|
-
tabIndex?: number;
|
|
202
|
-
/**
|
|
203
|
-
* Determines whether the component is disabled ([see example]({% slug disabled_splitbutton %})).
|
|
204
|
-
*/
|
|
205
|
-
disabled?: boolean;
|
|
206
|
-
/**
|
|
207
|
-
* Defines an icon that will be rendered next to the main button text ([see example]({% slug icons_splitbutton %})).
|
|
208
|
-
*/
|
|
209
|
-
icon?: string;
|
|
210
|
-
/**
|
|
211
|
-
* Defines a SVG icon that will be rendered next to the main button text ([see example]({% slug icons_splitbutton %})).
|
|
212
|
-
*/
|
|
213
|
-
svgIcon?: SVGIcon;
|
|
214
|
-
/**
|
|
215
|
-
* Defines an icon with a custom CSS class that will be rendered next to the main button text ([see example]({% slug icons_splitbutton %})).
|
|
216
|
-
*/
|
|
217
|
-
iconClass?: string;
|
|
218
|
-
/**
|
|
219
|
-
* Defines the location of an image that will be displayed next to the main button text ([see example]({% slug icons_splitbutton %})).
|
|
220
|
-
*/
|
|
221
|
-
imageUrl?: string;
|
|
222
|
-
/**
|
|
223
|
-
* Configures the popup ([see example]({% slug customization_splitbutton %}#toc-popup)).
|
|
224
|
-
*/
|
|
225
|
-
popupSettings?: ButtonsPopupSettings;
|
|
226
|
-
/**
|
|
227
|
-
* Opens the popup of the SplitButton if set to `true`.
|
|
228
|
-
*/
|
|
229
|
-
opened?: boolean;
|
|
230
|
-
/**
|
|
231
|
-
* A React functional or class component which is used for rendering items ([see example]({% slug customization_dropdownbutton %}#toc-item-render)). The default rendering includes an icon, an image, and text.
|
|
232
|
-
*/
|
|
233
|
-
item?: null | React.ComponentType<{
|
|
234
|
-
item: any;
|
|
235
|
-
itemIndex: number;
|
|
236
|
-
}>;
|
|
237
|
-
/**
|
|
238
|
-
* Fires when a dropdown list button item is about to be rendered. Use it to override the default appearance of the list items.
|
|
239
|
-
* if `item` prop is not declared, `itemRender` behaves like `item`, for backward compatibility with versions before 4.2.0
|
|
240
|
-
*/
|
|
241
|
-
itemRender?: ((li: React.ReactElement<HTMLLIElement>, props: ButtonItemProps) => React.ReactNode) | React.ComponentType<{
|
|
242
|
-
item: any;
|
|
243
|
-
itemIndex: number;
|
|
244
|
-
}>;
|
|
245
|
-
/**
|
|
246
|
-
* Sets the `className` of the SplitButton component.
|
|
247
|
-
*/
|
|
248
|
-
className?: string;
|
|
249
|
-
/**
|
|
250
|
-
* Sets the `className` of the main button.
|
|
251
|
-
*/
|
|
252
|
-
buttonClass?: string;
|
|
253
|
-
/**
|
|
254
|
-
* Sets the direction of the component.
|
|
255
|
-
*/
|
|
256
|
-
dir?: string;
|
|
257
|
-
/**
|
|
258
|
-
* Fires when the main button is clicked ([see example]({% slug overview_splitbutton %}#toc-events)).
|
|
259
|
-
*/
|
|
260
|
-
onButtonClick?: (event: SplitButtonClickEvent) => void;
|
|
261
|
-
/**
|
|
262
|
-
* Fires when the component is focused ([see example]({% slug overview_splitbutton %}#toc-events)).
|
|
263
|
-
*/
|
|
264
|
-
onFocus?: (event: SplitButtonFocusEvent) => void;
|
|
265
|
-
/**
|
|
266
|
-
* Fires when the component is blurred ([see example]({% slug overview_splitbutton %}#toc-events)).
|
|
267
|
-
*/
|
|
268
|
-
onBlur?: (event: SplitButtonBlurEvent) => void;
|
|
269
|
-
/**
|
|
270
|
-
* Fires when an item is clicked ([see example]({% slug overview_splitbutton %}#toc-events)).
|
|
271
|
-
*/
|
|
272
|
-
onItemClick?: (event: SplitButtonItemClickEvent) => void;
|
|
273
|
-
/**
|
|
274
|
-
* Fires when the popup which contains the items is opened ([see example]({% slug overview_splitbutton %}#toc-events)).
|
|
275
|
-
*/
|
|
276
|
-
onOpen?: (event: SplitButtonOpenEvent) => void;
|
|
277
|
-
/**
|
|
278
|
-
* Fires when the popup which contains the items is closed ([see example]({% slug overview_splitbutton %}#toc-events)).
|
|
279
|
-
*/
|
|
280
|
-
onClose?: (event: SplitButtonCloseEvent) => void;
|
|
281
|
-
/**
|
|
282
|
-
* Configures the `size` of the SplitButton.
|
|
283
|
-
*
|
|
284
|
-
* The available options are:
|
|
285
|
-
* - small
|
|
286
|
-
* - medium
|
|
287
|
-
* - large
|
|
288
|
-
* - null—Does not set a size `className`.
|
|
289
|
-
*
|
|
290
|
-
* @default `medium`
|
|
291
|
-
*/
|
|
292
|
-
size?: null | 'small' | 'medium' | 'large';
|
|
293
|
-
/**
|
|
294
|
-
* Configures the `roundness` of the SplitButton.
|
|
295
|
-
*
|
|
296
|
-
* The available options are:
|
|
297
|
-
* - small
|
|
298
|
-
* - medium
|
|
299
|
-
* - large
|
|
300
|
-
* - full
|
|
301
|
-
* - null—Does not set a rounded `className`.
|
|
302
|
-
*
|
|
303
|
-
* @default `medium`
|
|
304
|
-
*/
|
|
305
|
-
rounded?: null | 'small' | 'medium' | 'large' | 'full';
|
|
306
|
-
/**
|
|
307
|
-
* Configures the `fillMode` of the SplitButton.
|
|
308
|
-
*
|
|
309
|
-
* The available options are:
|
|
310
|
-
* - solid
|
|
311
|
-
* - outline
|
|
312
|
-
* - flat
|
|
313
|
-
* - link
|
|
314
|
-
* - null—Does not set a fillMode `className`.
|
|
315
|
-
*
|
|
316
|
-
* @default `solid`
|
|
317
|
-
*/
|
|
318
|
-
fillMode?: null | 'solid' | 'outline' | 'flat' | 'link';
|
|
319
|
-
/**
|
|
320
|
-
* Configures the `themeColor` of the SplitButton.
|
|
321
|
-
*
|
|
322
|
-
* The available options are:
|
|
323
|
-
* - base
|
|
324
|
-
* - primary
|
|
325
|
-
* - secondary
|
|
326
|
-
* - tertiary
|
|
327
|
-
* - info
|
|
328
|
-
* - success
|
|
329
|
-
* - warning
|
|
330
|
-
* - error
|
|
331
|
-
* - dark
|
|
332
|
-
* - light
|
|
333
|
-
* - inverse
|
|
334
|
-
* - null—Does not set a themeColor `className`.
|
|
335
|
-
*
|
|
336
|
-
* @default `base`
|
|
337
|
-
*/
|
|
338
|
-
themeColor?: null | 'base' | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error' | 'dark' | 'light' | 'inverse';
|
|
339
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { PopupAnimation, Align, PopupCloseEvent } from '@progress/kendo-react-popup';
|
|
6
|
-
/**
|
|
7
|
-
* The settings of the popup container.
|
|
8
|
-
*/
|
|
9
|
-
export interface ButtonsPopupSettings {
|
|
10
|
-
/**
|
|
11
|
-
* Controls the popup animation. By default, the open and close animations are enabled.
|
|
12
|
-
*/
|
|
13
|
-
animate?: boolean | PopupAnimation;
|
|
14
|
-
/**
|
|
15
|
-
* Specifies a list of CSS classes that are used for styling the popup.
|
|
16
|
-
*/
|
|
17
|
-
popupClass?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Specifies the pivot point of the anchor
|
|
20
|
-
* ([see example]({% slug alignmentpositioning_popup %})).
|
|
21
|
-
*/
|
|
22
|
-
anchorAlign?: Align;
|
|
23
|
-
/**
|
|
24
|
-
* Specifies the pivot point of the Popup
|
|
25
|
-
* ([see example]({% slug alignmentpositioning_popup %})).
|
|
26
|
-
*/
|
|
27
|
-
popupAlign?: Align;
|
|
28
|
-
/**
|
|
29
|
-
* Fires after the Popup is closed.
|
|
30
|
-
*/
|
|
31
|
-
onClose?: (event: PopupCloseEvent) => void;
|
|
32
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { SplitButton } from './../SplitButton';
|
|
6
|
-
import { DropDownButton } from './../DropDownButton';
|
|
7
|
-
import { BaseEvent } from '@progress/kendo-react-common';
|
|
8
|
-
export interface SplitButtonFocusEvent extends BaseEvent<SplitButton> {
|
|
9
|
-
}
|
|
10
|
-
export interface SplitButtonBlurEvent extends BaseEvent<SplitButton> {
|
|
11
|
-
}
|
|
12
|
-
export interface SplitButtonClickEvent extends BaseEvent<SplitButton> {
|
|
13
|
-
}
|
|
14
|
-
export interface SplitButtonOpenEvent extends BaseEvent<SplitButton> {
|
|
15
|
-
}
|
|
16
|
-
export interface SplitButtonCloseEvent extends BaseEvent<SplitButton> {
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* The arguments for the `itemClick` event.
|
|
20
|
-
*/
|
|
21
|
-
export interface SplitButtonItemClickEvent extends BaseEvent<SplitButton> {
|
|
22
|
-
/**
|
|
23
|
-
* The clicked item.
|
|
24
|
-
*/
|
|
25
|
-
item: any;
|
|
26
|
-
/**
|
|
27
|
-
* The zero-based index of the clicked item.
|
|
28
|
-
*/
|
|
29
|
-
itemIndex: number;
|
|
30
|
-
}
|
|
31
|
-
export interface DropDownButtonFocusEvent extends BaseEvent<DropDownButton> {
|
|
32
|
-
}
|
|
33
|
-
export interface DropDownButtonBlurEvent extends BaseEvent<DropDownButton> {
|
|
34
|
-
}
|
|
35
|
-
export interface DropDownButtonOpenEvent extends BaseEvent<DropDownButton> {
|
|
36
|
-
}
|
|
37
|
-
export interface DropDownButtonCloseEvent extends BaseEvent<DropDownButton> {
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* The arguments for the `itemClick` event.
|
|
41
|
-
*/
|
|
42
|
-
export interface DropDownButtonItemClickEvent extends BaseEvent<DropDownButton> {
|
|
43
|
-
/**
|
|
44
|
-
* The clicked item.
|
|
45
|
-
*/
|
|
46
|
-
item: any;
|
|
47
|
-
/**
|
|
48
|
-
* The zero-based index of the clicked item.
|
|
49
|
-
*/
|
|
50
|
-
itemIndex: number;
|
|
51
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
declare const navigate: (focusedIndex: number, keyCode: number, altKey: boolean, total: number) => number;
|
|
9
|
-
export { navigate };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Align } from '@progress/kendo-react-popup';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare function getAnchorAlign(isDirectionRightToLeft?: boolean): Align;
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
export declare function getPopupAlign(isDirectionRightToLeft?: boolean): Align;
|