@progress/kendo-angular-treelist 4.0.3 → 4.0.4-dev.202202240728

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: 1645687388,
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,6 +210,11 @@ 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;
215
220
  var target = eventArg.target;
@@ -221,8 +226,8 @@ var TableBodyComponent = /** @class */ (function () {
221
226
  }
222
227
  this.editService.preventCellClose();
223
228
  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)) {
229
+ var targetClickable = this.checkIfClickable(target, cell);
230
+ if (!focusable && targetClickable) {
226
231
  var args_1 = this.cellClickArgs(cell, row, eventArg);
227
232
  if (!args_1) {
228
233
  return;