@progress/kendo-angular-treelist 4.0.3 → 4.0.4

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.
@@ -9,7 +9,7 @@ export var packageMetadata = {
9
9
  name: '@progress/kendo-angular-treelist',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1643110609,
12
+ publishDate: 1645787908,
13
13
  version: '',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
15
15
  };
@@ -13,7 +13,11 @@ export var NON_DATA_ROW_CLASSES = 'k-grouping-row k-group-footer k-detail-row k-
13
13
  /**
14
14
  * @hidden
15
15
  */
16
- export var IGNORE_TARGET_CLASSSES = 'k-icon';
16
+ export var EMPTY_ICON_CLASS = 'k-i-none';
17
+ /**
18
+ * @hidden
19
+ */
20
+ export var ICON_CLASS = 'k-icon';
17
21
  /**
18
22
  * @hidden
19
23
  */
@@ -19,7 +19,7 @@ import { Keys } from '@progress/kendo-angular-common';
19
19
  import { defaultTrackBy } from '../common/default-track-by';
20
20
  import { ExpandStateService } from '../expand-state/expand-state.service';
21
21
  import { SelectionService } from '../selection/selection.service';
22
- import { NON_DATA_CELL_CLASSES, NON_DATA_ROW_CLASSES, IGNORE_TARGET_CLASSSES, IGNORE_CONTAINER_CLASSES } from './constants';
22
+ import { NON_DATA_CELL_CLASSES, NON_DATA_ROW_CLASSES, IGNORE_CONTAINER_CLASSES, ICON_CLASS, EMPTY_ICON_CLASS } from './constants';
23
23
  var columnCellIndex = function (cell, cells) {
24
24
  for (var idx = 0; idx < cells.length; idx++) {
25
25
  if (cells[idx] === cell) {
@@ -210,8 +210,16 @@ var TableBodyComponent = /** @class */ (function () {
210
210
  };
211
211
  }
212
212
  };
213
+ TableBodyComponent.prototype.checkIfClickable = function (target, cell) {
214
+ return !matchesNodeName('label')(target) &&
215
+ (!hasClasses(target, ICON_CLASS) || hasClasses(target, EMPTY_ICON_CLASS)) &&
216
+ !closestInScope(target, matchesClasses(IGNORE_CONTAINER_CLASSES), cell);
217
+ };
213
218
  TableBodyComponent.prototype.clickHandler = function (eventArg) {
214
219
  var _this = this;
220
+ if (eventArg.button && eventArg.button !== 0) {
221
+ return;
222
+ }
215
223
  var target = eventArg.target;
216
224
  var _a = this.targetElements(target), cell = _a.cell, row = _a.row;
217
225
  if (cell && !hasClasses(cell, NON_DATA_CELL_CLASSES) &&
@@ -221,8 +229,8 @@ var TableBodyComponent = /** @class */ (function () {
221
229
  }
222
230
  this.editService.preventCellClose();
223
231
  var focusable = target !== cell && isFocusableWithTabKey(target, false);
224
- if (!focusable && !matchesNodeName('label')(target) && !hasClasses(target, IGNORE_TARGET_CLASSSES) &&
225
- !closestInScope(target, matchesClasses(IGNORE_CONTAINER_CLASSES), cell)) {
232
+ var targetClickable = this.checkIfClickable(target, cell);
233
+ if (!focusable && targetClickable) {
226
234
  var args_1 = this.cellClickArgs(cell, row, eventArg);
227
235
  if (!args_1) {
228
236
  return;