@progress/kendo-react-buttons 5.4.0-dev.202205180853 → 5.4.0-dev.202205271059
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/dist/cdn/js/kendo-react-buttons.js +1 -1
- package/dist/es/Button.d.ts +3 -3
- package/dist/es/Button.js +11 -7
- package/dist/es/ButtonGroup.d.ts +1 -1
- package/dist/es/ButtonGroup.js +7 -5
- package/dist/es/ButtonGroupInterface.js +1 -0
- package/dist/es/ButtonInterface.js +1 -0
- package/dist/es/Chip/ChipList.js +3 -3
- package/dist/es/Chip/selection-reducer.js +7 -2
- package/dist/es/FloatingActionButton/FloatingActionButton.js +4 -2
- package/dist/es/FloatingActionButton/FloatingActionButtonItem.js +4 -2
- package/dist/es/FloatingActionButton/interfaces/FloatingActionButtonHandle.js +1 -0
- package/dist/es/FloatingActionButton/interfaces/FloatingActionButtonPopupSettings.js +1 -0
- package/dist/es/FloatingActionButton/interfaces/FloatingActionButtonProps.js +1 -0
- package/dist/es/FloatingActionButton/models/align-offset.js +1 -0
- package/dist/es/FloatingActionButton/models/align.js +1 -0
- package/dist/es/FloatingActionButton/models/events.js +1 -0
- package/dist/es/FloatingActionButton/models/position-mode.js +1 -0
- package/dist/es/FloatingActionButton/models/rounded.js +1 -0
- package/dist/es/FloatingActionButton/models/shape.js +1 -0
- package/dist/es/FloatingActionButton/models/size.js +1 -0
- package/dist/es/FloatingActionButton/models/theme-color.js +1 -0
- package/dist/es/FloatingActionButton/utils.d.ts +2 -2
- package/dist/es/ListButton/ButtonItem.d.ts +1 -2
- package/dist/es/ListButton/ButtonItem.js +1 -2
- package/dist/es/ListButton/DropDownButton.d.ts +3 -3
- package/dist/es/ListButton/DropDownButton.js +9 -7
- package/dist/es/ListButton/DropDownButtonItem.d.ts +1 -1
- package/dist/es/ListButton/DropDownButtonItem.js +4 -2
- package/dist/es/ListButton/SplitButton.d.ts +3 -3
- package/dist/es/ListButton/SplitButton.js +9 -7
- package/dist/es/ListButton/SplitButtonItem.d.ts +1 -1
- package/dist/es/ListButton/SplitButtonItem.js +4 -2
- package/dist/es/ListButton/models/ButtonItem.js +1 -0
- package/dist/es/ListButton/models/ListButtonProps.js +1 -0
- package/dist/es/ListButton/models/PopupSettings.js +1 -0
- package/dist/es/ListButton/models/events.d.ts +2 -2
- package/dist/es/ListButton/models/events.js +1 -0
- package/dist/es/ListButton/utils/navigation.d.ts +1 -1
- package/dist/es/ListButton/utils/navigation.js +1 -1
- package/dist/es/main.d.ts +9 -9
- package/dist/es/main.js +10 -9
- package/dist/es/models/index.js +1 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/toolbar/Toolbar.d.ts +4 -4
- package/dist/es/toolbar/Toolbar.js +8 -6
- package/dist/es/toolbar/tools/ToolbarItem.d.ts +2 -2
- package/dist/es/toolbar/tools/ToolbarItem.js +5 -3
- package/dist/es/toolbar/tools/ToolbarSeparator.d.ts +1 -1
- package/dist/es/toolbar/tools/ToolbarSeparator.js +5 -3
- package/dist/es/util.d.ts +6 -6
- package/dist/npm/Button.d.ts +3 -3
- package/dist/npm/Button.js +12 -7
- package/dist/npm/ButtonGroup.d.ts +1 -1
- package/dist/npm/ButtonGroup.js +8 -5
- package/dist/npm/Chip/Chip.js +1 -0
- package/dist/npm/Chip/ChipList.js +4 -3
- package/dist/npm/Chip/data-reducer.js +3 -1
- package/dist/npm/Chip/focus-reducer.js +3 -1
- package/dist/npm/Chip/selection-reducer.js +10 -3
- package/dist/npm/FloatingActionButton/FloatingActionButton.js +5 -2
- package/dist/npm/FloatingActionButton/FloatingActionButtonItem.js +5 -2
- package/dist/npm/FloatingActionButton/utils.d.ts +2 -2
- package/dist/npm/FloatingActionButton/utils.js +11 -5
- package/dist/npm/ListButton/ButtonItem.d.ts +1 -2
- package/dist/npm/ListButton/ButtonItem.js +3 -2
- package/dist/npm/ListButton/DropDownButton.d.ts +3 -3
- package/dist/npm/ListButton/DropDownButton.js +10 -7
- package/dist/npm/ListButton/DropDownButtonItem.d.ts +1 -1
- package/dist/npm/ListButton/DropDownButtonItem.js +5 -2
- package/dist/npm/ListButton/SplitButton.d.ts +3 -3
- package/dist/npm/ListButton/SplitButton.js +10 -7
- package/dist/npm/ListButton/SplitButtonItem.d.ts +1 -1
- package/dist/npm/ListButton/SplitButtonItem.js +5 -2
- package/dist/npm/ListButton/models/events.d.ts +2 -2
- package/dist/npm/ListButton/utils/navigation.d.ts +1 -1
- package/dist/npm/ListButton/utils/navigation.js +2 -1
- package/dist/npm/ListButton/utils/popup.js +1 -0
- package/dist/npm/main.d.ts +9 -9
- package/dist/npm/main.js +26 -14
- package/dist/npm/package-metadata.js +2 -1
- package/dist/npm/toolbar/Toolbar.d.ts +4 -4
- package/dist/npm/toolbar/Toolbar.js +9 -6
- package/dist/npm/toolbar/tools/ToolbarItem.d.ts +2 -2
- package/dist/npm/toolbar/tools/ToolbarItem.js +6 -3
- package/dist/npm/toolbar/tools/ToolbarSeparator.d.ts +1 -1
- package/dist/npm/toolbar/tools/ToolbarSeparator.js +6 -3
- package/dist/npm/toolbar/tools/ToolbarSpacer.js +1 -0
- package/dist/npm/util.d.ts +6 -6
- package/dist/npm/util.js +1 -0
- package/dist/systemjs/kendo-react-buttons.js +1 -1
- package/package.json +12 -12
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -24,6 +26,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
24
26
|
return __assign.apply(this, arguments);
|
|
25
27
|
};
|
|
26
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.DropDownButton = void 0;
|
|
27
30
|
var React = require("react");
|
|
28
31
|
var PropTypes = require("prop-types");
|
|
29
32
|
var main_1 = require("./../main");
|
|
@@ -102,7 +105,7 @@ var DropDownButton = /** @class */ (function (_super) {
|
|
|
102
105
|
_this.dispatchPopupEvent(event, newState.opened);
|
|
103
106
|
}
|
|
104
107
|
if (_this.opened) {
|
|
105
|
-
var newFocused = navigation_1.
|
|
108
|
+
var newFocused = navigation_1.navigate(focusedIndex, event.keyCode, event.altKey, _this.buttonsData.length);
|
|
106
109
|
newState.focusedIndex = newFocused;
|
|
107
110
|
var arrowKey = event.keyCode === kendo_react_common_1.Keys.up || event.keyCode === kendo_react_common_1.Keys.down ||
|
|
108
111
|
event.keyCode === kendo_react_common_1.Keys.left || event.keyCode === kendo_react_common_1.Keys.right;
|
|
@@ -160,7 +163,7 @@ var DropDownButton = /** @class */ (function (_super) {
|
|
|
160
163
|
get: function () {
|
|
161
164
|
return this.props.opened === undefined ? this.state.opened : this.props.opened;
|
|
162
165
|
},
|
|
163
|
-
enumerable:
|
|
166
|
+
enumerable: false,
|
|
164
167
|
configurable: true
|
|
165
168
|
});
|
|
166
169
|
/**
|
|
@@ -174,7 +177,7 @@ var DropDownButton = /** @class */ (function (_super) {
|
|
|
174
177
|
var focusedIndex = this.state.focusedIndex;
|
|
175
178
|
this.buttonsData = this.props.items ||
|
|
176
179
|
React.Children.toArray(this.props.children)
|
|
177
|
-
.filter(function (child) { return child && child.type === DropDownButtonItem_1.
|
|
180
|
+
.filter(function (child) { return child && child.type === DropDownButtonItem_1.DropDownButtonItem; })
|
|
178
181
|
.map(function (child) { return child.props; });
|
|
179
182
|
return (React.createElement("div", { id: id, style: style, className: kendo_react_common_1.classNames('k-dropdown-button', {
|
|
180
183
|
'k-focus': this.state.focused
|
|
@@ -207,7 +210,7 @@ var DropDownButton = /** @class */ (function (_super) {
|
|
|
207
210
|
get: function () {
|
|
208
211
|
return this.mainButton;
|
|
209
212
|
},
|
|
210
|
-
enumerable:
|
|
213
|
+
enumerable: false,
|
|
211
214
|
configurable: true
|
|
212
215
|
});
|
|
213
216
|
DropDownButton.prototype.dispatchClickEvent = function (dispatchedEvent, index) {
|
|
@@ -230,7 +233,7 @@ var DropDownButton = /** @class */ (function (_super) {
|
|
|
230
233
|
var _this = this;
|
|
231
234
|
var _a = this.props, item = _a.item, itemRender = _a.itemRender, textField = _a.textField;
|
|
232
235
|
return this.buttonsData.length > 0 ? (this.buttonsData.map(function (dataItem, index) {
|
|
233
|
-
return (React.createElement(ButtonItem_1.
|
|
236
|
+
return (React.createElement(ButtonItem_1.ButtonItem, { className: "k-menu-item", dataItem: dataItem, textField: textField, focused: _this.state.focusedIndex === index, onClick: _this.onItemClick, onDown: _this.onItemDown, render: itemRender, item: item, index: index, key: index, id: _this.guid + "-" + index }));
|
|
234
237
|
})) : null;
|
|
235
238
|
};
|
|
236
239
|
DropDownButton.prototype.isItemDisabled = function (index) {
|
|
@@ -276,4 +279,4 @@ var DropDownButton = /** @class */ (function (_super) {
|
|
|
276
279
|
};
|
|
277
280
|
return DropDownButton;
|
|
278
281
|
}(React.Component));
|
|
279
|
-
exports.
|
|
282
|
+
exports.DropDownButton = DropDownButton;
|
|
@@ -10,7 +10,7 @@ export interface DropDownButtonItemProps extends ButtonItem {
|
|
|
10
10
|
*/
|
|
11
11
|
selected?: boolean;
|
|
12
12
|
}
|
|
13
|
-
export
|
|
13
|
+
export declare class DropDownButtonItem extends React.Component<DropDownButtonItemProps, {}> {
|
|
14
14
|
/**
|
|
15
15
|
* @hidden
|
|
16
16
|
*/
|
|
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
15
|
};
|
|
14
16
|
})();
|
|
15
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.DropDownButtonItem = void 0;
|
|
16
19
|
var React = require("react");
|
|
17
20
|
var PropTypes = require("prop-types");
|
|
18
21
|
var DropDownButtonItem = /** @class */ (function (_super) {
|
|
@@ -40,4 +43,4 @@ var DropDownButtonItem = /** @class */ (function (_super) {
|
|
|
40
43
|
};
|
|
41
44
|
return DropDownButtonItem;
|
|
42
45
|
}(React.Component));
|
|
43
|
-
exports.
|
|
46
|
+
exports.DropDownButtonItem = DropDownButtonItem;
|
|
@@ -28,7 +28,7 @@ export interface SplitButtonState {
|
|
|
28
28
|
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
|
31
|
-
export
|
|
31
|
+
export declare class SplitButton extends React.Component<SplitButtonProps, SplitButtonState> {
|
|
32
32
|
/**
|
|
33
33
|
* @hidden
|
|
34
34
|
*/
|
|
@@ -78,7 +78,7 @@ export default class SplitButton extends React.Component<SplitButtonProps, Split
|
|
|
78
78
|
private guid;
|
|
79
79
|
private buttonsData;
|
|
80
80
|
constructor(props: SplitButtonProps);
|
|
81
|
-
private
|
|
81
|
+
private get opened();
|
|
82
82
|
/**
|
|
83
83
|
* @hidden
|
|
84
84
|
*/
|
|
@@ -90,7 +90,7 @@ export default class SplitButton extends React.Component<SplitButtonProps, Split
|
|
|
90
90
|
/**
|
|
91
91
|
* The DOM element of main button.
|
|
92
92
|
*/
|
|
93
|
-
|
|
93
|
+
get element(): HTMLButtonElement | null;
|
|
94
94
|
private onKeyDown;
|
|
95
95
|
private onFocus;
|
|
96
96
|
private onItemClick;
|
|
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
15
|
};
|
|
14
16
|
})();
|
|
15
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.SplitButton = void 0;
|
|
16
19
|
var React = require("react");
|
|
17
20
|
var PropTypes = require("prop-types");
|
|
18
21
|
var main_1 = require("./../main");
|
|
@@ -95,7 +98,7 @@ var SplitButton = /** @class */ (function (_super) {
|
|
|
95
98
|
_this.dispatchPopupEvent(event, newState.opened);
|
|
96
99
|
}
|
|
97
100
|
if (_this.opened) {
|
|
98
|
-
var newFocused = navigation_1.
|
|
101
|
+
var newFocused = navigation_1.navigate(focusedIndex, event.keyCode, event.altKey, _this.buttonsData.length);
|
|
99
102
|
if (newFocused !== focusedIndex) {
|
|
100
103
|
newState = newState || {};
|
|
101
104
|
newState.focusedIndex = newFocused;
|
|
@@ -168,7 +171,7 @@ var SplitButton = /** @class */ (function (_super) {
|
|
|
168
171
|
get: function () {
|
|
169
172
|
return this.props.opened === undefined ? this.state.opened : this.props.opened;
|
|
170
173
|
},
|
|
171
|
-
enumerable:
|
|
174
|
+
enumerable: false,
|
|
172
175
|
configurable: true
|
|
173
176
|
});
|
|
174
177
|
/**
|
|
@@ -178,7 +181,7 @@ var SplitButton = /** @class */ (function (_super) {
|
|
|
178
181
|
var _this = this;
|
|
179
182
|
this.buttonsData = this.props.items ||
|
|
180
183
|
React.Children.toArray(this.props.children)
|
|
181
|
-
.filter(function (child) { return child && child.type === SplitButtonItem_1.
|
|
184
|
+
.filter(function (child) { return child && child.type === SplitButtonItem_1.SplitButtonItem; })
|
|
182
185
|
.map(function (child) { return child.props; });
|
|
183
186
|
var rtl = this.isRtl();
|
|
184
187
|
var dir = rtl ? 'rtl' : undefined;
|
|
@@ -207,7 +210,7 @@ var SplitButton = /** @class */ (function (_super) {
|
|
|
207
210
|
get: function () {
|
|
208
211
|
return this.mainButton;
|
|
209
212
|
},
|
|
210
|
-
enumerable:
|
|
213
|
+
enumerable: false,
|
|
211
214
|
configurable: true
|
|
212
215
|
});
|
|
213
216
|
SplitButton.prototype.dispatchClickEvent = function (dispatchedEvent, clickedItemIndex) {
|
|
@@ -235,7 +238,7 @@ var SplitButton = /** @class */ (function (_super) {
|
|
|
235
238
|
var _this = this;
|
|
236
239
|
var _a = this.props, item = _a.item, itemRender = _a.itemRender, textField = _a.textField;
|
|
237
240
|
return this.buttonsData.length > 0 ? (this.buttonsData.map(function (dataItem, index) {
|
|
238
|
-
return (React.createElement(ButtonItem_1.
|
|
241
|
+
return (React.createElement(ButtonItem_1.ButtonItem, { className: "k-menu-item", dataItem: dataItem, textField: textField, focused: _this.state.focusedIndex === index, onClick: _this.onItemClick, onDown: _this.onItemDown, render: itemRender, item: item, key: index, index: index, id: _this.guid + "-" + index }));
|
|
239
242
|
})) : null;
|
|
240
243
|
};
|
|
241
244
|
SplitButton.prototype.isItemDisabled = function (index) {
|
|
@@ -283,4 +286,4 @@ var SplitButton = /** @class */ (function (_super) {
|
|
|
283
286
|
};
|
|
284
287
|
return SplitButton;
|
|
285
288
|
}(React.Component));
|
|
286
|
-
exports.
|
|
289
|
+
exports.SplitButton = SplitButton;
|
|
@@ -6,7 +6,7 @@ import { ButtonItem } from './models/ButtonItem';
|
|
|
6
6
|
*/
|
|
7
7
|
export interface SplitButtonItemProps extends ButtonItem {
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export declare class SplitButtonItem extends React.Component<SplitButtonItemProps, {}> {
|
|
10
10
|
/**
|
|
11
11
|
* @hidden
|
|
12
12
|
*/
|
|
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
15
|
};
|
|
14
16
|
})();
|
|
15
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.SplitButtonItem = void 0;
|
|
16
19
|
var React = require("react");
|
|
17
20
|
var PropTypes = require("prop-types");
|
|
18
21
|
var SplitButtonItem = /** @class */ (function (_super) {
|
|
@@ -39,4 +42,4 @@ var SplitButtonItem = /** @class */ (function (_super) {
|
|
|
39
42
|
};
|
|
40
43
|
return SplitButtonItem;
|
|
41
44
|
}(React.Component));
|
|
42
|
-
exports.
|
|
45
|
+
exports.SplitButtonItem = SplitButtonItem;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import SplitButton from './../SplitButton';
|
|
2
|
-
import DropDownButton from './../DropDownButton';
|
|
1
|
+
import { SplitButton } from './../SplitButton';
|
|
2
|
+
import { DropDownButton } from './../DropDownButton';
|
|
3
3
|
import { BaseEvent } from '@progress/kendo-react-common';
|
|
4
4
|
export interface SplitButtonFocusEvent extends BaseEvent<SplitButton> {
|
|
5
5
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.navigate = void 0;
|
|
3
4
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
4
5
|
/**
|
|
5
6
|
* @hidden
|
|
@@ -23,4 +24,4 @@ var navigate = function (focusedIndex, keyCode, altKey, total) {
|
|
|
23
24
|
return focusedIndex;
|
|
24
25
|
}
|
|
25
26
|
};
|
|
26
|
-
exports.
|
|
27
|
+
exports.navigate = navigate;
|
package/dist/npm/main.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import Button,
|
|
2
|
-
import ButtonGroup,
|
|
3
|
-
import SplitButton from './ListButton/SplitButton';
|
|
4
|
-
import SplitButtonItem,
|
|
5
|
-
import DropDownButton from './ListButton/DropDownButton';
|
|
6
|
-
import DropDownButtonItem,
|
|
1
|
+
import { Button, ButtonProps } from './Button';
|
|
2
|
+
import { ButtonGroup, ButtonGroupProps } from './ButtonGroup';
|
|
3
|
+
import { SplitButton } from './ListButton/SplitButton';
|
|
4
|
+
import { SplitButtonItem, SplitButtonItemProps } from './ListButton/SplitButtonItem';
|
|
5
|
+
import { DropDownButton } from './ListButton/DropDownButton';
|
|
6
|
+
import { DropDownButtonItem, DropDownButtonItemProps } from './ListButton/DropDownButtonItem';
|
|
7
7
|
import { DropDownButtonProps } from './ListButton/models/ListButtonProps';
|
|
8
8
|
import { SplitButtonFocusEvent, SplitButtonBlurEvent, SplitButtonClickEvent, SplitButtonOpenEvent, SplitButtonCloseEvent, SplitButtonItemClickEvent, DropDownButtonFocusEvent, DropDownButtonBlurEvent, DropDownButtonOpenEvent, DropDownButtonCloseEvent, DropDownButtonItemClickEvent } from './ListButton/models/events';
|
|
9
9
|
import { ButtonItem } from './ListButton/models/ButtonItem';
|
|
10
10
|
import { ButtonItemProps } from './ListButton/ButtonItem';
|
|
11
11
|
import { ButtonsPopupSettings } from './ListButton/models/PopupSettings';
|
|
12
|
-
import Toolbar,
|
|
13
|
-
import ToolbarItem,
|
|
14
|
-
import ToolbarSeparator from './toolbar/tools/ToolbarSeparator';
|
|
12
|
+
import { Toolbar, ToolbarProps, ToolbarResizeEvent } from './toolbar/Toolbar';
|
|
13
|
+
import { ToolbarItem, ToolbarItemProps } from './toolbar/tools/ToolbarItem';
|
|
14
|
+
import { ToolbarSeparator } from './toolbar/tools/ToolbarSeparator';
|
|
15
15
|
import { ToolbarSpacer, ToolbarSpacerProps } from './toolbar/tools/ToolbarSpacer';
|
|
16
16
|
import { Chip, ChipProps, ChipHandle } from './Chip/Chip';
|
|
17
17
|
import { ChipList, ChipListProps, ChipListHandle } from './Chip/ChipList';
|
package/dist/npm/main.js
CHANGED
|
@@ -1,30 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
2
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.FloatingActionButtonItem = exports.FloatingActionButton = exports.ChipList = exports.Chip = exports.DropDownButtonItem = exports.DropDownButton = exports.SplitButtonItem = exports.SplitButton = exports.ButtonGroup = exports.Button = exports.ToolbarSpacer = exports.ToolbarSeparator = exports.ToolbarItem = exports.Toolbar = void 0;
|
|
3
14
|
var Button_1 = require("./Button");
|
|
4
|
-
exports
|
|
15
|
+
Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return Button_1.Button; } });
|
|
5
16
|
var ButtonGroup_1 = require("./ButtonGroup");
|
|
6
|
-
exports
|
|
17
|
+
Object.defineProperty(exports, "ButtonGroup", { enumerable: true, get: function () { return ButtonGroup_1.ButtonGroup; } });
|
|
7
18
|
var SplitButton_1 = require("./ListButton/SplitButton");
|
|
8
|
-
exports
|
|
19
|
+
Object.defineProperty(exports, "SplitButton", { enumerable: true, get: function () { return SplitButton_1.SplitButton; } });
|
|
9
20
|
var SplitButtonItem_1 = require("./ListButton/SplitButtonItem");
|
|
10
|
-
exports
|
|
21
|
+
Object.defineProperty(exports, "SplitButtonItem", { enumerable: true, get: function () { return SplitButtonItem_1.SplitButtonItem; } });
|
|
11
22
|
var DropDownButton_1 = require("./ListButton/DropDownButton");
|
|
12
|
-
exports
|
|
23
|
+
Object.defineProperty(exports, "DropDownButton", { enumerable: true, get: function () { return DropDownButton_1.DropDownButton; } });
|
|
13
24
|
var DropDownButtonItem_1 = require("./ListButton/DropDownButtonItem");
|
|
14
|
-
exports
|
|
25
|
+
Object.defineProperty(exports, "DropDownButtonItem", { enumerable: true, get: function () { return DropDownButtonItem_1.DropDownButtonItem; } });
|
|
15
26
|
var Toolbar_1 = require("./toolbar/Toolbar");
|
|
16
|
-
exports
|
|
27
|
+
Object.defineProperty(exports, "Toolbar", { enumerable: true, get: function () { return Toolbar_1.Toolbar; } });
|
|
17
28
|
var ToolbarItem_1 = require("./toolbar/tools/ToolbarItem");
|
|
18
|
-
exports
|
|
29
|
+
Object.defineProperty(exports, "ToolbarItem", { enumerable: true, get: function () { return ToolbarItem_1.ToolbarItem; } });
|
|
19
30
|
var ToolbarSeparator_1 = require("./toolbar/tools/ToolbarSeparator");
|
|
20
|
-
exports
|
|
31
|
+
Object.defineProperty(exports, "ToolbarSeparator", { enumerable: true, get: function () { return ToolbarSeparator_1.ToolbarSeparator; } });
|
|
21
32
|
var ToolbarSpacer_1 = require("./toolbar/tools/ToolbarSpacer");
|
|
22
|
-
exports
|
|
33
|
+
Object.defineProperty(exports, "ToolbarSpacer", { enumerable: true, get: function () { return ToolbarSpacer_1.ToolbarSpacer; } });
|
|
23
34
|
var Chip_1 = require("./Chip/Chip");
|
|
24
|
-
exports
|
|
35
|
+
Object.defineProperty(exports, "Chip", { enumerable: true, get: function () { return Chip_1.Chip; } });
|
|
25
36
|
var ChipList_1 = require("./Chip/ChipList");
|
|
26
|
-
exports
|
|
37
|
+
Object.defineProperty(exports, "ChipList", { enumerable: true, get: function () { return ChipList_1.ChipList; } });
|
|
27
38
|
var FloatingActionButton_1 = require("./FloatingActionButton/FloatingActionButton");
|
|
28
|
-
exports
|
|
39
|
+
Object.defineProperty(exports, "FloatingActionButton", { enumerable: true, get: function () { return FloatingActionButton_1.FloatingActionButton; } });
|
|
29
40
|
var FloatingActionButtonItem_1 = require("./FloatingActionButton/FloatingActionButtonItem");
|
|
30
|
-
exports
|
|
41
|
+
Object.defineProperty(exports, "FloatingActionButtonItem", { enumerable: true, get: function () { return FloatingActionButtonItem_1.FloatingActionButtonItem; } });
|
|
42
|
+
__exportStar(require("./FloatingActionButton/models/events"), exports);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.packageMetadata = void 0;
|
|
3
4
|
/**
|
|
4
5
|
* @hidden
|
|
5
6
|
*/
|
|
@@ -7,7 +8,7 @@ exports.packageMetadata = {
|
|
|
7
8
|
name: '@progress/kendo-react-buttons',
|
|
8
9
|
productName: 'KendoReact',
|
|
9
10
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
10
|
-
publishDate:
|
|
11
|
+
publishDate: 1653647977,
|
|
11
12
|
version: '',
|
|
12
13
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
13
14
|
};
|
|
@@ -94,7 +94,7 @@ export interface ToolbarProps extends KendoReactComponentBaseProps {
|
|
|
94
94
|
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
95
95
|
* ```
|
|
96
96
|
*/
|
|
97
|
-
export
|
|
97
|
+
export declare class Toolbar extends React.Component<ToolbarProps> {
|
|
98
98
|
/**
|
|
99
99
|
* @hidden
|
|
100
100
|
*/
|
|
@@ -119,12 +119,12 @@ export default class Toolbar extends React.Component<ToolbarProps> {
|
|
|
119
119
|
private buttons;
|
|
120
120
|
private focusedSelector;
|
|
121
121
|
constructor(props: ToolbarProps);
|
|
122
|
-
private
|
|
123
|
-
private
|
|
122
|
+
private get selectors();
|
|
123
|
+
private get focusedIndex();
|
|
124
124
|
/**
|
|
125
125
|
* Returns the HTML element of the Toolbar component.
|
|
126
126
|
*/
|
|
127
|
-
|
|
127
|
+
get element(): HTMLDivElement | null;
|
|
128
128
|
/**
|
|
129
129
|
* @hidden
|
|
130
130
|
*/
|
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -24,6 +26,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
24
26
|
return __assign.apply(this, arguments);
|
|
25
27
|
};
|
|
26
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Toolbar = void 0;
|
|
27
30
|
var React = require("react");
|
|
28
31
|
var PropTypes = require("prop-types");
|
|
29
32
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
@@ -101,7 +104,7 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
101
104
|
_this.offsetHeight = offsetHeight;
|
|
102
105
|
var newSizes = { offsetWidth: _this.offsetWidth, offsetHeight: _this.offsetHeight };
|
|
103
106
|
if (_this.props.onResize) {
|
|
104
|
-
_this.props.onResize.call(undefined, __assign({ target: _this }, newSizes, { nativeEvent: event }));
|
|
107
|
+
_this.props.onResize.call(undefined, __assign(__assign({ target: _this }, newSizes), { nativeEvent: event }));
|
|
105
108
|
}
|
|
106
109
|
}
|
|
107
110
|
};
|
|
@@ -112,7 +115,7 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
112
115
|
get: function () {
|
|
113
116
|
return this.props.buttons || util_1.toolbarButtons;
|
|
114
117
|
},
|
|
115
|
-
enumerable:
|
|
118
|
+
enumerable: false,
|
|
116
119
|
configurable: true
|
|
117
120
|
});
|
|
118
121
|
Object.defineProperty(Toolbar.prototype, "focusedIndex", {
|
|
@@ -120,7 +123,7 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
120
123
|
var focused = this.element && this.element.querySelector(this.focusedSelector);
|
|
121
124
|
return Math.max(0, this.buttons.findIndex(function (e) { return e === focused; }));
|
|
122
125
|
},
|
|
123
|
-
enumerable:
|
|
126
|
+
enumerable: false,
|
|
124
127
|
configurable: true
|
|
125
128
|
});
|
|
126
129
|
Object.defineProperty(Toolbar.prototype, "element", {
|
|
@@ -130,7 +133,7 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
130
133
|
get: function () {
|
|
131
134
|
return this._element;
|
|
132
135
|
},
|
|
133
|
-
enumerable:
|
|
136
|
+
enumerable: false,
|
|
134
137
|
configurable: true
|
|
135
138
|
});
|
|
136
139
|
/**
|
|
@@ -205,4 +208,4 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
205
208
|
};
|
|
206
209
|
return Toolbar;
|
|
207
210
|
}(React.Component));
|
|
208
|
-
exports.
|
|
211
|
+
exports.Toolbar = Toolbar;
|
|
@@ -19,7 +19,7 @@ export interface ToolbarItemProps extends KendoReactComponentBaseProps {
|
|
|
19
19
|
* To add a tool to the Toolbar, wrap it inside a ToolbarItem component
|
|
20
20
|
* ([see example]({% slug content_toolbar %})).
|
|
21
21
|
*/
|
|
22
|
-
export
|
|
22
|
+
export declare class ToolbarItem extends React.PureComponent<ToolbarItemProps> {
|
|
23
23
|
/**
|
|
24
24
|
* @hidden
|
|
25
25
|
*/
|
|
@@ -30,7 +30,7 @@ export default class ToolbarItem extends React.PureComponent<ToolbarItemProps> {
|
|
|
30
30
|
/**
|
|
31
31
|
* Returns the HTML element of the ToolbarItem component.
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
get element(): HTMLSpanElement | null;
|
|
34
34
|
/**
|
|
35
35
|
* @hidden
|
|
36
36
|
*/
|
|
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
15
|
};
|
|
14
16
|
})();
|
|
15
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.ToolbarItem = void 0;
|
|
16
19
|
var React = require("react");
|
|
17
20
|
var PropTypes = require("prop-types");
|
|
18
21
|
/**
|
|
@@ -34,7 +37,7 @@ var ToolbarItem = /** @class */ (function (_super) {
|
|
|
34
37
|
get: function () {
|
|
35
38
|
return this._element;
|
|
36
39
|
},
|
|
37
|
-
enumerable:
|
|
40
|
+
enumerable: false,
|
|
38
41
|
configurable: true
|
|
39
42
|
});
|
|
40
43
|
/**
|
|
@@ -52,4 +55,4 @@ var ToolbarItem = /** @class */ (function (_super) {
|
|
|
52
55
|
};
|
|
53
56
|
return ToolbarItem;
|
|
54
57
|
}(React.PureComponent));
|
|
55
|
-
exports.
|
|
58
|
+
exports.ToolbarItem = ToolbarItem;
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
/**
|
|
3
3
|
* Represents the KendoReact Toolbar Separator component.
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export declare class ToolbarSeparator extends React.PureComponent<{}> {
|
|
6
6
|
/**
|
|
7
7
|
* @hidden
|
|
8
8
|
*/
|
|
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
15
|
};
|
|
14
16
|
})();
|
|
15
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.ToolbarSeparator = void 0;
|
|
16
19
|
var React = require("react");
|
|
17
20
|
var ToolbarItem_1 = require("./ToolbarItem");
|
|
18
21
|
/**
|
|
@@ -27,8 +30,8 @@ var ToolbarSeparator = /** @class */ (function (_super) {
|
|
|
27
30
|
* @hidden
|
|
28
31
|
*/
|
|
29
32
|
ToolbarSeparator.prototype.render = function () {
|
|
30
|
-
return (React.createElement(ToolbarItem_1.
|
|
33
|
+
return (React.createElement(ToolbarItem_1.ToolbarItem, { className: "k-separator" }));
|
|
31
34
|
};
|
|
32
35
|
return ToolbarSeparator;
|
|
33
36
|
}(React.PureComponent));
|
|
34
|
-
exports.
|
|
37
|
+
exports.ToolbarSeparator = ToolbarSeparator;
|
package/dist/npm/util.d.ts
CHANGED
|
@@ -5,10 +5,10 @@ export declare const toolbarButtons: string[];
|
|
|
5
5
|
declare const _default: {
|
|
6
6
|
styles: {
|
|
7
7
|
button: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
flat: string;
|
|
9
|
+
outline: string;
|
|
10
|
+
clear: string;
|
|
11
|
+
primary: string;
|
|
12
12
|
'state-selected': string;
|
|
13
13
|
'button-icon': string;
|
|
14
14
|
'button-icontext': string;
|
|
@@ -17,8 +17,8 @@ declare const _default: {
|
|
|
17
17
|
'group-end': string;
|
|
18
18
|
'button-group': string;
|
|
19
19
|
'button-group-stretched': string;
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
ltr: string;
|
|
21
|
+
rtl: string;
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
24
|
/**
|