@progress/kendo-react-grid 5.6.0-dev.202208090813 → 5.6.0-dev.202208100947
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-grid.js +1 -1
- package/dist/es/Grid.js +1 -1
- package/dist/es/drag/GroupingIndicator.js +5 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/npm/Grid.js +1 -1
- package/dist/npm/drag/GroupingIndicator.js +5 -1
- package/dist/npm/package-metadata.js +1 -1
- package/dist/systemjs/kendo-react-grid.js +1 -1
- package/package.json +18 -18
package/dist/es/Grid.js
CHANGED
|
@@ -600,7 +600,7 @@ var Grid = /** @class */ (function (_super) {
|
|
|
600
600
|
var tableDisplay = this.props.columnVirtualization ? 'block' : 'table';
|
|
601
601
|
if (this.props.scrollable === 'none') {
|
|
602
602
|
return (React.createElement(TableKeyboardNavigationContext.Provider, { value: this.contextStateRef.current },
|
|
603
|
-
React.createElement("div", __assign({ id: this.props.id, style: this.props.style, className: classNames('k-widget k-grid', this.props.className),
|
|
603
|
+
React.createElement("div", __assign({ id: this.props.id, style: this.props.style, className: classNames('k-widget k-grid', this.props.className), ref: function (el) { _this._element = el; }, onKeyDown: this.onKeyDown, onFocus: this.onFocus }, tableKeyboardNavigationScopeAttributes),
|
|
604
604
|
toolbar,
|
|
605
605
|
groupingPanel,
|
|
606
606
|
React.createElement(TableSelection, { selectable: this.props.selectable, onRelease: this.selectionRelease, childRef: function (table) {
|
|
@@ -16,6 +16,8 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
16
16
|
import * as React from 'react';
|
|
17
17
|
import { Draggable } from '@progress/kendo-react-common';
|
|
18
18
|
import { Button } from '@progress/kendo-react-buttons';
|
|
19
|
+
import { ungroupColumn, messages } from '../messages';
|
|
20
|
+
import { provideLocalizationService, registerForLocalization } from '@progress/kendo-react-intl';
|
|
19
21
|
/**
|
|
20
22
|
* @hidden
|
|
21
23
|
*/
|
|
@@ -68,14 +70,16 @@ var GroupingIndicator = /** @class */ (function (_super) {
|
|
|
68
70
|
}
|
|
69
71
|
GroupingIndicator.prototype.render = function () {
|
|
70
72
|
var _this = this;
|
|
73
|
+
var localizationService = provideLocalizationService(this);
|
|
71
74
|
return (React.createElement(Draggable, { onPress: this.onPress, onDrag: this.onDrag, onRelease: this.onRelease, ref: function (component) { _this.draggable = component; } },
|
|
72
75
|
React.createElement("div", { className: "k-indicator-container", style: { touchAction: 'none' } },
|
|
73
76
|
React.createElement("div", { className: "k-group-indicator" },
|
|
74
77
|
React.createElement("a", { className: "k-link", href: "#", tabIndex: -1, onClick: this.sortChange },
|
|
75
78
|
React.createElement("span", { className: 'k-icon k-i-sort-' + this.props.dir + '-sm' }),
|
|
76
79
|
this.props.title),
|
|
77
|
-
React.createElement(Button, { fillMode: 'flat', tabIndex: -1, onClick: this.groupRemove, icon: 'close' })))));
|
|
80
|
+
React.createElement(Button, { fillMode: 'flat', tabIndex: -1, onClick: this.groupRemove, icon: 'close', "aria-label": localizationService.toLanguageString(ungroupColumn, messages[ungroupColumn]) })))));
|
|
78
81
|
};
|
|
79
82
|
return GroupingIndicator;
|
|
80
83
|
}(React.Component));
|
|
81
84
|
export { GroupingIndicator };
|
|
85
|
+
registerForLocalization(GroupingIndicator);
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-react-grid',
|
|
6
6
|
productName: 'KendoReact',
|
|
7
7
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1660124255,
|
|
9
9
|
version: '',
|
|
10
10
|
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'
|
|
11
11
|
};
|
package/dist/npm/Grid.js
CHANGED
|
@@ -603,7 +603,7 @@ var Grid = /** @class */ (function (_super) {
|
|
|
603
603
|
var tableDisplay = this.props.columnVirtualization ? 'block' : 'table';
|
|
604
604
|
if (this.props.scrollable === 'none') {
|
|
605
605
|
return (React.createElement(kendo_react_data_tools_1.TableKeyboardNavigationContext.Provider, { value: this.contextStateRef.current },
|
|
606
|
-
React.createElement("div", __assign({ id: this.props.id, style: this.props.style, className: (0, kendo_react_common_1.classNames)('k-widget k-grid', this.props.className),
|
|
606
|
+
React.createElement("div", __assign({ id: this.props.id, style: this.props.style, className: (0, kendo_react_common_1.classNames)('k-widget k-grid', this.props.className), ref: function (el) { _this._element = el; }, onKeyDown: this.onKeyDown, onFocus: this.onFocus }, kendo_react_data_tools_1.tableKeyboardNavigationScopeAttributes),
|
|
607
607
|
toolbar,
|
|
608
608
|
groupingPanel,
|
|
609
609
|
React.createElement(kendo_react_data_tools_1.TableSelection, { selectable: this.props.selectable, onRelease: this.selectionRelease, childRef: function (table) {
|
|
@@ -19,6 +19,8 @@ exports.GroupingIndicator = void 0;
|
|
|
19
19
|
var React = require("react");
|
|
20
20
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
21
21
|
var kendo_react_buttons_1 = require("@progress/kendo-react-buttons");
|
|
22
|
+
var messages_1 = require("../messages");
|
|
23
|
+
var kendo_react_intl_1 = require("@progress/kendo-react-intl");
|
|
22
24
|
/**
|
|
23
25
|
* @hidden
|
|
24
26
|
*/
|
|
@@ -71,14 +73,16 @@ var GroupingIndicator = /** @class */ (function (_super) {
|
|
|
71
73
|
}
|
|
72
74
|
GroupingIndicator.prototype.render = function () {
|
|
73
75
|
var _this = this;
|
|
76
|
+
var localizationService = (0, kendo_react_intl_1.provideLocalizationService)(this);
|
|
74
77
|
return (React.createElement(kendo_react_common_1.Draggable, { onPress: this.onPress, onDrag: this.onDrag, onRelease: this.onRelease, ref: function (component) { _this.draggable = component; } },
|
|
75
78
|
React.createElement("div", { className: "k-indicator-container", style: { touchAction: 'none' } },
|
|
76
79
|
React.createElement("div", { className: "k-group-indicator" },
|
|
77
80
|
React.createElement("a", { className: "k-link", href: "#", tabIndex: -1, onClick: this.sortChange },
|
|
78
81
|
React.createElement("span", { className: 'k-icon k-i-sort-' + this.props.dir + '-sm' }),
|
|
79
82
|
this.props.title),
|
|
80
|
-
React.createElement(kendo_react_buttons_1.Button, { fillMode: 'flat', tabIndex: -1, onClick: this.groupRemove, icon: 'close' })))));
|
|
83
|
+
React.createElement(kendo_react_buttons_1.Button, { fillMode: 'flat', tabIndex: -1, onClick: this.groupRemove, icon: 'close', "aria-label": localizationService.toLanguageString(messages_1.ungroupColumn, messages_1.messages[messages_1.ungroupColumn]) })))));
|
|
81
84
|
};
|
|
82
85
|
return GroupingIndicator;
|
|
83
86
|
}(React.Component));
|
|
84
87
|
exports.GroupingIndicator = GroupingIndicator;
|
|
88
|
+
(0, kendo_react_intl_1.registerForLocalization)(GroupingIndicator);
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-react-grid',
|
|
9
9
|
productName: 'KendoReact',
|
|
10
10
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1660124255,
|
|
12
12
|
version: '',
|
|
13
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'
|
|
14
14
|
};
|