@progress/kendo-angular-treeview 16.4.0-develop.6 → 16.4.0-develop.8

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.
@@ -24,6 +24,7 @@ export class NavigationService {
24
24
  this.loadMore = new Subject();
25
25
  this.navigable = true;
26
26
  this.selection = 'single';
27
+ this.isTreeViewActive = false;
27
28
  this.actions = {
28
29
  [Keys.ArrowUp]: () => this.activate(this.model.findVisiblePrev(this.focusableItem), true),
29
30
  [Keys.ArrowDown]: () => this.activate(this.model.findVisibleNext(this.focusableItem), true),
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-treeview',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1720184929,
13
- version: '16.4.0-develop.6',
12
+ publishDate: 1720532043,
13
+ version: '16.4.0-develop.8',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -164,7 +164,7 @@ export class TreeViewItemDirective {
164
164
  }
165
165
  updateNodeAvailability() {
166
166
  const service = this.navigationService;
167
- if (this.isDisabled || !this.isVisible) {
167
+ if (this.isDisabled || !this.isVisible && this.navigationService.isTreeViewActive) {
168
168
  service.activateClosest(this.index); // activate before updating the item
169
169
  }
170
170
  else {
@@ -253,7 +253,6 @@ export class TreeViewComponent {
253
253
  this.expandIcons = false;
254
254
  this.selectable = false;
255
255
  this.touchActions = true;
256
- this.isActive = false;
257
256
  this.data = new BehaviorSubject([]);
258
257
  this._animate = true;
259
258
  this._size = 'medium';
@@ -374,6 +373,9 @@ export class TreeViewComponent {
374
373
  get size() {
375
374
  return this._size;
376
375
  }
376
+ get isActive() {
377
+ return this.navigationService.isTreeViewActive;
378
+ }
377
379
  /**
378
380
  * @hidden
379
381
  */
@@ -560,14 +562,14 @@ export class TreeViewComponent {
560
562
  this.onFocus.emit();
561
563
  });
562
564
  }
563
- this.isActive = true;
565
+ this.navigationService.isTreeViewActive = true;
564
566
  }
565
567
  }
566
568
  blurHandler(e) {
567
569
  if (this.isActive && match(e.target, '.k-treeview-item') &&
568
570
  (!e.relatedTarget || !match(e.relatedTarget, '.k-treeview-item') || !hasParent(e.relatedTarget, this.element.nativeElement))) {
569
571
  this.navigationService.deactivate();
570
- this.isActive = false;
572
+ this.navigationService.isTreeViewActive = false;
571
573
  if (hasObservers(this.onBlur)) {
572
574
  this.ngZone.run(() => {
573
575
  this.onBlur.emit();
@@ -28,8 +28,8 @@ const packageMetadata = {
28
28
  name: '@progress/kendo-angular-treeview',
29
29
  productName: 'Kendo UI for Angular',
30
30
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
31
- publishDate: 1720184929,
32
- version: '16.4.0-develop.6',
31
+ publishDate: 1720532043,
32
+ version: '16.4.0-develop.8',
33
33
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
34
34
  };
35
35
 
@@ -604,6 +604,7 @@ class NavigationService {
604
604
  this.loadMore = new Subject();
605
605
  this.navigable = true;
606
606
  this.selection = 'single';
607
+ this.isTreeViewActive = false;
607
608
  this.actions = {
608
609
  [Keys.ArrowUp]: () => this.activate(this.model.findVisiblePrev(this.focusableItem), true),
609
610
  [Keys.ArrowDown]: () => this.activate(this.model.findVisibleNext(this.focusableItem), true),
@@ -1226,7 +1227,7 @@ class TreeViewItemDirective {
1226
1227
  }
1227
1228
  updateNodeAvailability() {
1228
1229
  const service = this.navigationService;
1229
- if (this.isDisabled || !this.isVisible) {
1230
+ if (this.isDisabled || !this.isVisible && this.navigationService.isTreeViewActive) {
1230
1231
  service.activateClosest(this.index); // activate before updating the item
1231
1232
  }
1232
1233
  else {
@@ -2334,7 +2335,6 @@ class TreeViewComponent {
2334
2335
  this.expandIcons = false;
2335
2336
  this.selectable = false;
2336
2337
  this.touchActions = true;
2337
- this.isActive = false;
2338
2338
  this.data = new BehaviorSubject([]);
2339
2339
  this._animate = true;
2340
2340
  this._size = 'medium';
@@ -2455,6 +2455,9 @@ class TreeViewComponent {
2455
2455
  get size() {
2456
2456
  return this._size;
2457
2457
  }
2458
+ get isActive() {
2459
+ return this.navigationService.isTreeViewActive;
2460
+ }
2458
2461
  /**
2459
2462
  * @hidden
2460
2463
  */
@@ -2641,14 +2644,14 @@ class TreeViewComponent {
2641
2644
  this.onFocus.emit();
2642
2645
  });
2643
2646
  }
2644
- this.isActive = true;
2647
+ this.navigationService.isTreeViewActive = true;
2645
2648
  }
2646
2649
  }
2647
2650
  blurHandler(e) {
2648
2651
  if (this.isActive && match(e.target, '.k-treeview-item') &&
2649
2652
  (!e.relatedTarget || !match(e.relatedTarget, '.k-treeview-item') || !hasParent(e.relatedTarget, this.element.nativeElement))) {
2650
2653
  this.navigationService.deactivate();
2651
- this.isActive = false;
2654
+ this.navigationService.isTreeViewActive = false;
2652
2655
  if (hasObservers(this.onBlur)) {
2653
2656
  this.ngZone.run(() => {
2654
2657
  this.onBlur.emit();
@@ -28,8 +28,8 @@ const packageMetadata = {
28
28
  name: '@progress/kendo-angular-treeview',
29
29
  productName: 'Kendo UI for Angular',
30
30
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
31
- publishDate: 1720184929,
32
- version: '16.4.0-develop.6',
31
+ publishDate: 1720532043,
32
+ version: '16.4.0-develop.8',
33
33
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
34
34
  };
35
35
 
@@ -604,6 +604,7 @@ class NavigationService {
604
604
  this.loadMore = new Subject();
605
605
  this.navigable = true;
606
606
  this.selection = 'single';
607
+ this.isTreeViewActive = false;
607
608
  this.actions = {
608
609
  [Keys.ArrowUp]: () => this.activate(this.model.findVisiblePrev(this.focusableItem), true),
609
610
  [Keys.ArrowDown]: () => this.activate(this.model.findVisibleNext(this.focusableItem), true),
@@ -1222,7 +1223,7 @@ class TreeViewItemDirective {
1222
1223
  }
1223
1224
  updateNodeAvailability() {
1224
1225
  const service = this.navigationService;
1225
- if (this.isDisabled || !this.isVisible) {
1226
+ if (this.isDisabled || !this.isVisible && this.navigationService.isTreeViewActive) {
1226
1227
  service.activateClosest(this.index); // activate before updating the item
1227
1228
  }
1228
1229
  else {
@@ -2330,7 +2331,6 @@ class TreeViewComponent {
2330
2331
  this.expandIcons = false;
2331
2332
  this.selectable = false;
2332
2333
  this.touchActions = true;
2333
- this.isActive = false;
2334
2334
  this.data = new BehaviorSubject([]);
2335
2335
  this._animate = true;
2336
2336
  this._size = 'medium';
@@ -2451,6 +2451,9 @@ class TreeViewComponent {
2451
2451
  get size() {
2452
2452
  return this._size;
2453
2453
  }
2454
+ get isActive() {
2455
+ return this.navigationService.isTreeViewActive;
2456
+ }
2454
2457
  /**
2455
2458
  * @hidden
2456
2459
  */
@@ -2637,14 +2640,14 @@ class TreeViewComponent {
2637
2640
  this.onFocus.emit();
2638
2641
  });
2639
2642
  }
2640
- this.isActive = true;
2643
+ this.navigationService.isTreeViewActive = true;
2641
2644
  }
2642
2645
  }
2643
2646
  blurHandler(e) {
2644
2647
  if (this.isActive && match(e.target, '.k-treeview-item') &&
2645
2648
  (!e.relatedTarget || !match(e.relatedTarget, '.k-treeview-item') || !hasParent(e.relatedTarget, this.element.nativeElement))) {
2646
2649
  this.navigationService.deactivate();
2647
- this.isActive = false;
2650
+ this.navigationService.isTreeViewActive = false;
2648
2651
  if (hasObservers(this.onBlur)) {
2649
2652
  this.ngZone.run(() => {
2650
2653
  this.onBlur.emit();
@@ -22,6 +22,7 @@ export declare class NavigationService {
22
22
  readonly loadMore: Subject<string>;
23
23
  navigable: boolean;
24
24
  selection: SelectionMode;
25
+ isTreeViewActive: boolean;
25
26
  get model(): NavigationModel;
26
27
  set model(model: NavigationModel);
27
28
  actions: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-treeview",
3
- "version": "16.4.0-develop.6",
3
+ "version": "16.4.0-develop.8",
4
4
  "description": "Kendo UI TreeView for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -23,15 +23,15 @@
23
23
  "@angular/core": "15 - 18",
24
24
  "@angular/platform-browser": "15 - 18",
25
25
  "@progress/kendo-licensing": "^1.0.2",
26
- "@progress/kendo-angular-common": "16.4.0-develop.6",
27
- "@progress/kendo-angular-inputs": "16.4.0-develop.6",
28
- "@progress/kendo-angular-icons": "16.4.0-develop.6",
29
- "@progress/kendo-angular-l10n": "16.4.0-develop.6",
26
+ "@progress/kendo-angular-common": "16.4.0-develop.8",
27
+ "@progress/kendo-angular-inputs": "16.4.0-develop.8",
28
+ "@progress/kendo-angular-icons": "16.4.0-develop.8",
29
+ "@progress/kendo-angular-l10n": "16.4.0-develop.8",
30
30
  "rxjs": "^6.5.3 || ^7.0.0"
31
31
  },
32
32
  "dependencies": {
33
33
  "tslib": "^2.3.1",
34
- "@progress/kendo-angular-schematics": "16.4.0-develop.6",
34
+ "@progress/kendo-angular-schematics": "16.4.0-develop.8",
35
35
  "@progress/kendo-common": "^0.2.0",
36
36
  "@progress/kendo-draggable": "^3.0.2"
37
37
  },
@@ -4,10 +4,10 @@ const schematics_1 = require("@angular-devkit/schematics");
4
4
  function default_1(options) {
5
5
  const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'TreeViewModule', package: 'treeview', peerDependencies: {
6
6
  // Peers of kendo-angular-inputs
7
- '@progress/kendo-angular-buttons': '16.4.0-develop.6',
8
- '@progress/kendo-angular-dialog': '16.4.0-develop.6',
9
- '@progress/kendo-angular-intl': '16.4.0-develop.6',
10
- '@progress/kendo-angular-popup': '16.4.0-develop.6',
7
+ '@progress/kendo-angular-buttons': '16.4.0-develop.8',
8
+ '@progress/kendo-angular-dialog': '16.4.0-develop.8',
9
+ '@progress/kendo-angular-intl': '16.4.0-develop.8',
10
+ '@progress/kendo-angular-popup': '16.4.0-develop.8',
11
11
  '@progress/kendo-drawing': '^1.9.3',
12
12
  // Peer dependency of icons
13
13
  '@progress/kendo-svg-icons': '^3.0.0'
@@ -306,6 +306,7 @@ export declare class TreeViewComponent implements OnChanges, OnInit, AfterViewIn
306
306
  */
307
307
  set size(size: TreeViewSize);
308
308
  get size(): TreeViewSize;
309
+ get isActive(): boolean;
309
310
  /**
310
311
  * @hidden
311
312
  */
@@ -327,7 +328,6 @@ export declare class TreeViewComponent implements OnChanges, OnInit, AfterViewIn
327
328
  expandIcons: boolean;
328
329
  selectable: boolean;
329
330
  touchActions: boolean;
330
- isActive: boolean;
331
331
  data: BehaviorSubject<any[]>;
332
332
  private _animate;
333
333
  private _isChecked;