@progress/kendo-react-grid 5.9.0 → 5.10.0-dev.202211101249

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/es/Grid.js CHANGED
@@ -597,7 +597,7 @@ var Grid = /** @class */ (function (_super) {
597
597
  var tableDisplay = this.props.columnVirtualization ? 'block' : 'table';
598
598
  if (this.props.scrollable === 'none') {
599
599
  return (React.createElement(TableKeyboardNavigationContext.Provider, { value: this.contextStateRef.current },
600
- 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),
600
+ 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; }, "aria-label": this.props.ariaLabel, onKeyDown: this.onKeyDown, onFocus: this.onFocus }, tableKeyboardNavigationScopeAttributes),
601
601
  toolbar,
602
602
  groupingPanel,
603
603
  React.createElement(TableSelection, { selectable: this.props.selectable, onRelease: this.selectionRelease, childRef: function (table) {
@@ -628,7 +628,7 @@ var Grid = /** @class */ (function (_super) {
628
628
  }, this.props.className), ref: function (el) {
629
629
  _this._element = el;
630
630
  _this.resetTableWidth();
631
- }, role: "grid", "aria-colcount": leafColumns.length, "aria-rowcount": total, onKeyDown: this.onKeyDown, onFocus: this.onFocus }, tableKeyboardNavigationScopeAttributes),
631
+ }, role: "grid", "aria-colcount": leafColumns.length, "aria-rowcount": total, "aria-label": this.props.ariaLabel, onKeyDown: this.onKeyDown, onFocus: this.onFocus }, tableKeyboardNavigationScopeAttributes),
632
632
  toolbar,
633
633
  groupingPanel,
634
634
  header,
@@ -281,4 +281,8 @@ export interface GridProps extends KendoReactComponentBaseProps {
281
281
  * Fires when the user press keyboard key.
282
282
  */
283
283
  onKeyDown?: (event: GridKeyDownEvent) => void;
284
+ /**
285
+ * The accessible label of the Grid.
286
+ */
287
+ ariaLabel?: string;
284
288
  }
@@ -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: 1666771422,
8
+ publishDate: 1668083984,
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
@@ -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(kendo_react_data_tools_1.TableKeyboardNavigationContext.Provider, { value: this.contextStateRef.current },
603
- 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),
603
+ 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; }, "aria-label": this.props.ariaLabel, onKeyDown: this.onKeyDown, onFocus: this.onFocus }, kendo_react_data_tools_1.tableKeyboardNavigationScopeAttributes),
604
604
  toolbar,
605
605
  groupingPanel,
606
606
  React.createElement(kendo_react_data_tools_1.TableSelection, { selectable: this.props.selectable, onRelease: this.selectionRelease, childRef: function (table) {
@@ -631,7 +631,7 @@ var Grid = /** @class */ (function (_super) {
631
631
  }, this.props.className), ref: function (el) {
632
632
  _this._element = el;
633
633
  _this.resetTableWidth();
634
- }, role: "grid", "aria-colcount": leafColumns.length, "aria-rowcount": total, onKeyDown: this.onKeyDown, onFocus: this.onFocus }, kendo_react_data_tools_1.tableKeyboardNavigationScopeAttributes),
634
+ }, role: "grid", "aria-colcount": leafColumns.length, "aria-rowcount": total, "aria-label": this.props.ariaLabel, onKeyDown: this.onKeyDown, onFocus: this.onFocus }, kendo_react_data_tools_1.tableKeyboardNavigationScopeAttributes),
635
635
  toolbar,
636
636
  groupingPanel,
637
637
  header,
@@ -281,4 +281,8 @@ export interface GridProps extends KendoReactComponentBaseProps {
281
281
  * Fires when the user press keyboard key.
282
282
  */
283
283
  onKeyDown?: (event: GridKeyDownEvent) => void;
284
+ /**
285
+ * The accessible label of the Grid.
286
+ */
287
+ ariaLabel?: string;
284
288
  }
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-react-grid',
9
9
  productName: 'KendoReact',
10
10
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
11
- publishDate: 1666771422,
11
+ publishDate: 1668083984,
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
  };