@progress/kendo-angular-treeview 22.1.0-develop.17 → 22.1.0-develop.19

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.
@@ -10,7 +10,7 @@ import { ComponentMessages, LocalizationService, L10N_PREFIX } from '@progress/k
10
10
  import { Subject, Subscription, of, EMPTY, BehaviorSubject, merge } from 'rxjs';
11
11
  import { validatePackage } from '@progress/kendo-licensing';
12
12
  import { getter, setter } from '@progress/kendo-common';
13
- import { caretAltDownIcon, caretAltRightIcon, caretAltLeftIcon, searchIcon, cancelIcon, insertMiddleIcon, insertBottomIcon, insertTopIcon, plusIcon } from '@progress/kendo-svg-icons';
13
+ import { chevronDownIcon, chevronRightIcon, chevronLeftIcon, searchIcon, cancelIcon, insertMiddleIcon, insertBottomIcon, insertTopIcon, plusIcon } from '@progress/kendo-svg-icons';
14
14
  import { CheckBoxComponent, TextBoxComponent, TextBoxPrefixTemplateDirective } from '@progress/kendo-angular-inputs';
15
15
  import { trigger, transition, style, animate } from '@angular/animations';
16
16
  import { filter, tap, switchMap, delay, takeUntil, catchError, finalize, take, map } from 'rxjs/operators';
@@ -29,7 +29,7 @@ const packageMetadata = {
29
29
  productCode: 'KENDOUIANGULAR',
30
30
  productCodes: ['KENDOUIANGULAR'],
31
31
  publishDate: 0,
32
- version: '22.1.0-develop.17',
32
+ version: '22.1.0-develop.19',
33
33
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
34
34
  };
35
35
 
@@ -223,16 +223,25 @@ const isFocusable = (element) => {
223
223
  * @hidden
224
224
  */
225
225
  const isContent = (element) => {
226
- const scopeSelector = '.k-treeview-leaf:not(.k-treeview-load-more-button),.k-treeview-item,.k-treeview';
226
+ const scopeSelector = '.k-treeview-leaf:not(.k-treeview-load-more-button),.k-treeview-item-content,.k-treeview-item,.k-treeview';
227
227
  if (!isDocumentAvailable()) {
228
228
  return null;
229
229
  }
230
+ if (closestWithMatch(element, '.k-treeview-toggle')) {
231
+ return false;
232
+ }
233
+ if (closestWithMatch(element, 'kendo-checkbox') || (element.tagName?.toLowerCase() === 'input' && element.type === 'checkbox')) {
234
+ return false;
235
+ }
230
236
  let node = element;
231
237
  while (node && !match(node, scopeSelector)) {
232
238
  node = node.parentNode;
233
239
  }
234
240
  if (node) {
235
- return match(node, '.k-treeview-leaf:not(.k-treeview-load-more-button)');
241
+ if (isLoadMoreButton(element)) {
242
+ return false;
243
+ }
244
+ return match(node, '.k-treeview-leaf:not(.k-treeview-load-more-button)') || match(node, '.k-treeview-item-content');
236
245
  }
237
246
  };
238
247
  /**
@@ -1420,15 +1429,15 @@ class TreeViewGroupComponent {
1420
1429
  /**
1421
1430
  * @hidden
1422
1431
  */
1423
- caretAltDownIcon = caretAltDownIcon;
1432
+ chevronDownIcon = chevronDownIcon;
1424
1433
  /**
1425
1434
  * @hidden
1426
1435
  */
1427
- caretAltRightIcon = caretAltRightIcon;
1436
+ chevronRightIcon = chevronRightIcon;
1428
1437
  /**
1429
1438
  * @hidden
1430
1439
  */
1431
- caretAltLeftIcon = caretAltLeftIcon;
1440
+ chevronLeftIcon = chevronLeftIcon;
1432
1441
  /**
1433
1442
  * @hidden
1434
1443
  */
@@ -1452,7 +1461,7 @@ class TreeViewGroupComponent {
1452
1461
  nodeTemplateRef;
1453
1462
  loadMoreButtonTemplateRef;
1454
1463
  loadMoreService;
1455
- size = 'medium';
1464
+ size = undefined;
1456
1465
  expandDisabledNodes;
1457
1466
  initialNodesLoaded = false;
1458
1467
  loadingMoreNodes = false;
@@ -1461,10 +1470,16 @@ class TreeViewGroupComponent {
1461
1470
  return this.expandIcons && this.hasChildren(node) ? !this.isItemExpandable(node, index) : this.isItemDisabled(node, index);
1462
1471
  }
1463
1472
  getFontIcon(node, index) {
1464
- return this.isExpanded(node, index) ? 'caret-alt-down' : !this.localization.rtl ? 'caret-alt-right' : 'caret-alt-left';
1473
+ if (this.isExpanded(node, index)) {
1474
+ return 'chevron-down';
1475
+ }
1476
+ return this.localization.rtl ? 'chevron-left' : 'chevron-right';
1465
1477
  }
1466
1478
  getSvgIcon(node, index) {
1467
- return this.isExpanded(node, index) ? caretAltDownIcon : !this.localization.rtl ? caretAltRightIcon : caretAltLeftIcon;
1479
+ if (this.isExpanded(node, index)) {
1480
+ return chevronDownIcon;
1481
+ }
1482
+ return this.localization.rtl ? chevronLeftIcon : chevronRightIcon;
1468
1483
  }
1469
1484
  get moreNodesAvailable() {
1470
1485
  if (!isPresent(this.loadMoreService) || this.data.length === 0) {
@@ -2477,14 +2492,15 @@ class TreeViewComponent {
2477
2492
  /**
2478
2493
  * Sets the size of the component.
2479
2494
  *
2480
- * @default 'medium'
2495
+ * @default undefined
2481
2496
  */
2482
2497
  set size(size) {
2483
- const newSize = size ? size : 'medium';
2484
- if (this.size !== 'none') {
2498
+ if (isPresent(this.size)) {
2485
2499
  this.renderer.removeClass(this.element.nativeElement, getSizeClass('treeview', this.size));
2486
2500
  }
2487
- this.renderer.addClass(this.element.nativeElement, getSizeClass('treeview', newSize));
2501
+ if (isPresent(size)) {
2502
+ this.renderer.addClass(this.element.nativeElement, getSizeClass('treeview', size));
2503
+ }
2488
2504
  this._size = size;
2489
2505
  }
2490
2506
  get size() {
@@ -2525,7 +2541,7 @@ class TreeViewComponent {
2525
2541
  _hasChildren;
2526
2542
  _nodeTemplateRef;
2527
2543
  _loadMoreButtonTemplateRef;
2528
- _size = 'medium';
2544
+ _size = undefined;
2529
2545
  subscriptions = new Subscription();
2530
2546
  domSubscriptions = [];
2531
2547
  _nextId = nextId;
@@ -4514,7 +4530,7 @@ class DragAndDropDirective {
4514
4530
  return;
4515
4531
  }
4516
4532
  // store the drag target on press, show it only when it's actually dragged
4517
- this.draggedItem = closestWithMatch(originalEvent.target, '.k-treeview-leaf');
4533
+ this.draggedItem = closestWithMatch(originalEvent.target, '.k-treeview-item-content');
4518
4534
  // record the current pointer down coords - copared to the `startDragAfter` value to calculate whether to initiate dragging
4519
4535
  this.pendingDragStartEvent = originalEvent;
4520
4536
  }
@@ -7,7 +7,7 @@ export const packageMetadata = {
7
7
  "productCodes": [
8
8
  "KENDOUIANGULAR"
9
9
  ],
10
- "publishDate": 1770055240,
11
- "version": "22.1.0-develop.17",
10
+ "publishDate": 1770219764,
11
+ "version": "22.1.0-develop.19",
12
12
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
13
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-treeview",
3
- "version": "22.1.0-develop.17",
3
+ "version": "22.1.0-develop.19",
4
4
  "description": "Kendo UI TreeView for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -19,7 +19,7 @@
19
19
  "package": {
20
20
  "productName": "Kendo UI for Angular",
21
21
  "productCode": "KENDOUIANGULAR",
22
- "publishDate": 1770055240,
22
+ "publishDate": 1770219764,
23
23
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
24
24
  }
25
25
  },
@@ -29,15 +29,15 @@
29
29
  "@angular/core": "19 - 21",
30
30
  "@angular/platform-browser": "19 - 21",
31
31
  "@progress/kendo-licensing": "^1.10.0",
32
- "@progress/kendo-angular-common": "22.1.0-develop.17",
33
- "@progress/kendo-angular-inputs": "22.1.0-develop.17",
34
- "@progress/kendo-angular-icons": "22.1.0-develop.17",
35
- "@progress/kendo-angular-l10n": "22.1.0-develop.17",
32
+ "@progress/kendo-angular-common": "22.1.0-develop.19",
33
+ "@progress/kendo-angular-inputs": "22.1.0-develop.19",
34
+ "@progress/kendo-angular-icons": "22.1.0-develop.19",
35
+ "@progress/kendo-angular-l10n": "22.1.0-develop.19",
36
36
  "rxjs": "^6.5.3 || ^7.0.0"
37
37
  },
38
38
  "dependencies": {
39
39
  "tslib": "^2.3.1",
40
- "@progress/kendo-angular-schematics": "22.1.0-develop.17",
40
+ "@progress/kendo-angular-schematics": "22.1.0-develop.19",
41
41
  "@progress/kendo-common": "^1.0.1",
42
42
  "@progress/kendo-draggable": "^3.0.2"
43
43
  },
@@ -9,10 +9,10 @@ const schematics_1 = require("@angular-devkit/schematics");
9
9
  function default_1(options) {
10
10
  const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'TreeViewModule', package: 'treeview', peerDependencies: {
11
11
  // Peers of kendo-angular-inputs
12
- '@progress/kendo-angular-buttons': '22.1.0-develop.17',
13
- '@progress/kendo-angular-dialog': '22.1.0-develop.17',
14
- '@progress/kendo-angular-intl': '22.1.0-develop.17',
15
- '@progress/kendo-angular-popup': '22.1.0-develop.17',
12
+ '@progress/kendo-angular-buttons': '22.1.0-develop.19',
13
+ '@progress/kendo-angular-dialog': '22.1.0-develop.19',
14
+ '@progress/kendo-angular-intl': '22.1.0-develop.19',
15
+ '@progress/kendo-angular-popup': '22.1.0-develop.19',
16
16
  '@progress/kendo-drawing': '^1.9.3',
17
17
  // Peer dependency of icons
18
18
  '@progress/kendo-svg-icons': '^4.0.0'
package/size.d.ts CHANGED
@@ -5,4 +5,4 @@
5
5
  /**
6
6
  * Represents the possible size options for the TreeView.
7
7
  */
8
- export type TreeViewSize = 'none' | 'small' | 'medium' | 'large';
8
+ export type TreeViewSize = 'small' | 'medium' | 'large';
@@ -35,15 +35,15 @@ export declare class TreeViewGroupComponent implements OnChanges, OnInit, OnDest
35
35
  /**
36
36
  * @hidden
37
37
  */
38
- caretAltDownIcon: SVGIcon;
38
+ chevronDownIcon: SVGIcon;
39
39
  /**
40
40
  * @hidden
41
41
  */
42
- caretAltRightIcon: SVGIcon;
42
+ chevronRightIcon: SVGIcon;
43
43
  /**
44
44
  * @hidden
45
45
  */
46
- caretAltLeftIcon: SVGIcon;
46
+ chevronLeftIcon: SVGIcon;
47
47
  /**
48
48
  * @hidden
49
49
  */
@@ -271,7 +271,7 @@ export declare class TreeViewComponent implements OnChanges, OnInit, AfterViewIn
271
271
  /**
272
272
  * Sets the size of the component.
273
273
  *
274
- * @default 'medium'
274
+ * @default undefined
275
275
  */
276
276
  set size(size: TreeViewSize);
277
277
  get size(): TreeViewSize;