@progress/kendo-react-grid 5.10.0-dev.202301161904 → 5.10.0-dev.202301172157

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.
@@ -34,7 +34,7 @@ export declare class GridColumnMenuWrapper extends React.Component<GridColumnMen
34
34
  /** @hidden */
35
35
  focus: () => void;
36
36
  /** @hidden */
37
- anchorClick: () => void;
37
+ anchorClick: (event: React.MouseEvent<HTMLAnchorElement>) => void;
38
38
  /** @hidden */
39
39
  closeMenu: () => void;
40
40
  /** @hidden */
@@ -72,8 +72,11 @@ var GridColumnMenuWrapper = /** @class */ (function (_super) {
72
72
  clearTimeout(_this.blurTimeout);
73
73
  };
74
74
  /** @hidden */
75
- _this.anchorClick = function () {
76
- _this.setState({ show: !_this.state.show }, function () { return _this.state.show && _this._content && _this._content.focus(); });
75
+ _this.anchorClick = function (event) {
76
+ event.preventDefault();
77
+ _this.setState({
78
+ show: !_this.state.show
79
+ }, function () { return _this.state.show && _this._content && _this._content.focus(); });
77
80
  };
78
81
  /** @hidden */
79
82
  _this.closeMenu = function () {
@@ -24,6 +24,7 @@ var __assign = (this && this.__assign) || function () {
24
24
  };
25
25
  return __assign.apply(this, arguments);
26
26
  };
27
+ import { classNames } from '@progress/kendo-react-common';
27
28
  import * as React from 'react';
28
29
  import { GridColumnMenuWrapper } from '../columnMenu/GridColumnMenuWrapper';
29
30
  /**
@@ -84,7 +85,9 @@ var GridHeaderCell = /** @class */ (function (_super) {
84
85
  onClick: this.props.onClick
85
86
  } : {};
86
87
  var defaultRendering = (React.createElement("span", { className: 'k-cell-inner' },
87
- React.createElement("span", __assign({ className: 'k-link' }, clickProps),
88
+ React.createElement("span", __assign({ className: classNames('k-link', {
89
+ '!k-cursor-default': !this.props.columnMenuWrapperProps.sortable
90
+ }) }, clickProps),
88
91
  React.createElement("span", { className: 'k-column-title' }, this.props.title || this.props.field || '\u00A0'),
89
92
  this.props.children),
90
93
  columnMenuWrapperProps.columnMenu && React.createElement(GridColumnMenuWrapper, __assign({}, columnMenuWrapperProps))));
@@ -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: 1673895073,
8
+ publishDate: 1673991394,
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
  };
@@ -34,7 +34,7 @@ export declare class GridColumnMenuWrapper extends React.Component<GridColumnMen
34
34
  /** @hidden */
35
35
  focus: () => void;
36
36
  /** @hidden */
37
- anchorClick: () => void;
37
+ anchorClick: (event: React.MouseEvent<HTMLAnchorElement>) => void;
38
38
  /** @hidden */
39
39
  closeMenu: () => void;
40
40
  /** @hidden */
@@ -75,8 +75,11 @@ var GridColumnMenuWrapper = /** @class */ (function (_super) {
75
75
  clearTimeout(_this.blurTimeout);
76
76
  };
77
77
  /** @hidden */
78
- _this.anchorClick = function () {
79
- _this.setState({ show: !_this.state.show }, function () { return _this.state.show && _this._content && _this._content.focus(); });
78
+ _this.anchorClick = function (event) {
79
+ event.preventDefault();
80
+ _this.setState({
81
+ show: !_this.state.show
82
+ }, function () { return _this.state.show && _this._content && _this._content.focus(); });
80
83
  };
81
84
  /** @hidden */
82
85
  _this.closeMenu = function () {
@@ -27,6 +27,7 @@ var __assign = (this && this.__assign) || function () {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.GridHeaderCell = void 0;
30
+ var kendo_react_common_1 = require("@progress/kendo-react-common");
30
31
  var React = require("react");
31
32
  var GridColumnMenuWrapper_1 = require("../columnMenu/GridColumnMenuWrapper");
32
33
  /**
@@ -87,7 +88,9 @@ var GridHeaderCell = /** @class */ (function (_super) {
87
88
  onClick: this.props.onClick
88
89
  } : {};
89
90
  var defaultRendering = (React.createElement("span", { className: 'k-cell-inner' },
90
- React.createElement("span", __assign({ className: 'k-link' }, clickProps),
91
+ React.createElement("span", __assign({ className: (0, kendo_react_common_1.classNames)('k-link', {
92
+ '!k-cursor-default': !this.props.columnMenuWrapperProps.sortable
93
+ }) }, clickProps),
91
94
  React.createElement("span", { className: 'k-column-title' }, this.props.title || this.props.field || '\u00A0'),
92
95
  this.props.children),
93
96
  columnMenuWrapperProps.columnMenu && React.createElement(GridColumnMenuWrapper_1.GridColumnMenuWrapper, __assign({}, columnMenuWrapperProps))));
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-react-grid',
9
9
  productName: 'KendoReact',
10
10
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
11
- publishDate: 1673895073,
11
+ publishDate: 1673991394,
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
  };