@progress/kendo-angular-treelist 13.1.0-develop.2 → 13.1.0-develop.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.
@@ -50,7 +50,7 @@ export class BrowserSupportService {
50
50
  this.changes = new EventEmitter();
51
51
  if (typeof window !== 'undefined') {
52
52
  this.zone.runOutsideAngular(() => {
53
- fromEvent(window, 'resize').pipe(auditTime(100)).subscribe(() => {
53
+ this.subscriptions = fromEvent(window, 'resize').pipe(auditTime(100)).subscribe(() => {
54
54
  if (cachedPixelRatio !== window.devicePixelRatio) {
55
55
  zone.run(() => {
56
56
  cachedScrollbarWidth = null;
@@ -62,6 +62,12 @@ export class BrowserSupportService {
62
62
  });
63
63
  }
64
64
  }
65
+ ngOnDestroy() {
66
+ if (this.subscriptions) {
67
+ this.subscriptions.unsubscribe();
68
+ this.subscriptions = null;
69
+ }
70
+ }
65
71
  get scrollbarWidth() {
66
72
  return scrollbarWidth();
67
73
  }
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-treelist',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1686925036,
13
- version: '13.1.0-develop.2',
12
+ publishDate: 1687266215,
13
+ version: '13.1.0-develop.4',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -48,8 +48,8 @@ const packageMetadata = {
48
48
  name: '@progress/kendo-angular-treelist',
49
49
  productName: 'Kendo UI for Angular',
50
50
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
51
- publishDate: 1686925036,
52
- version: '13.1.0-develop.2',
51
+ publishDate: 1687266215,
52
+ version: '13.1.0-develop.4',
53
53
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
54
54
  };
55
55
 
@@ -1186,7 +1186,7 @@ class BrowserSupportService {
1186
1186
  this.changes = new EventEmitter();
1187
1187
  if (typeof window !== 'undefined') {
1188
1188
  this.zone.runOutsideAngular(() => {
1189
- fromEvent(window, 'resize').pipe(auditTime(100)).subscribe(() => {
1189
+ this.subscriptions = fromEvent(window, 'resize').pipe(auditTime(100)).subscribe(() => {
1190
1190
  if (cachedPixelRatio !== window.devicePixelRatio) {
1191
1191
  zone.run(() => {
1192
1192
  cachedScrollbarWidth = null;
@@ -1198,6 +1198,12 @@ class BrowserSupportService {
1198
1198
  });
1199
1199
  }
1200
1200
  }
1201
+ ngOnDestroy() {
1202
+ if (this.subscriptions) {
1203
+ this.subscriptions.unsubscribe();
1204
+ this.subscriptions = null;
1205
+ }
1206
+ }
1201
1207
  get scrollbarWidth() {
1202
1208
  return scrollbarWidth();
1203
1209
  }
@@ -48,8 +48,8 @@ const packageMetadata = {
48
48
  name: '@progress/kendo-angular-treelist',
49
49
  productName: 'Kendo UI for Angular',
50
50
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
51
- publishDate: 1686925036,
52
- version: '13.1.0-develop.2',
51
+ publishDate: 1687266215,
52
+ version: '13.1.0-develop.4',
53
53
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
54
54
  };
55
55
 
@@ -1166,7 +1166,7 @@ class BrowserSupportService {
1166
1166
  this.changes = new EventEmitter();
1167
1167
  if (typeof window !== 'undefined') {
1168
1168
  this.zone.runOutsideAngular(() => {
1169
- fromEvent(window, 'resize').pipe(auditTime(100)).subscribe(() => {
1169
+ this.subscriptions = fromEvent(window, 'resize').pipe(auditTime(100)).subscribe(() => {
1170
1170
  if (cachedPixelRatio !== window.devicePixelRatio) {
1171
1171
  zone.run(() => {
1172
1172
  cachedScrollbarWidth = null;
@@ -1178,6 +1178,12 @@ class BrowserSupportService {
1178
1178
  });
1179
1179
  }
1180
1180
  }
1181
+ ngOnDestroy() {
1182
+ if (this.subscriptions) {
1183
+ this.subscriptions.unsubscribe();
1184
+ this.subscriptions = null;
1185
+ }
1186
+ }
1181
1187
  get scrollbarWidth() {
1182
1188
  return scrollbarWidth();
1183
1189
  }
@@ -2,17 +2,19 @@
2
2
  * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { NgZone, ChangeDetectorRef, EventEmitter } from '@angular/core';
5
+ import { NgZone, ChangeDetectorRef, EventEmitter, OnDestroy } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
8
  * @hidden
9
9
  * move to kendo-common
10
10
  */
11
- export declare class BrowserSupportService {
11
+ export declare class BrowserSupportService implements OnDestroy {
12
12
  private zone;
13
13
  private changeDetector;
14
14
  changes: EventEmitter<any>;
15
+ private subscriptions;
15
16
  constructor(zone: NgZone, changeDetector: ChangeDetectorRef);
17
+ ngOnDestroy(): void;
16
18
  get scrollbarWidth(): number;
17
19
  get rtlScrollLeft(): number;
18
20
  static ɵfac: i0.ɵɵFactoryDeclaration<BrowserSupportService, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-treelist",
3
- "version": "13.1.0-develop.2",
3
+ "version": "13.1.0-develop.4",
4
4
  "description": "Kendo UI TreeList for Angular - Display hierarchical data in an Angular tree grid view that supports sorting, filtering, paging, and much more.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -30,25 +30,25 @@
30
30
  "@progress/kendo-data-query": "^1.0.0",
31
31
  "@progress/kendo-drawing": "^1.17.2",
32
32
  "@progress/kendo-licensing": "^1.0.2",
33
- "@progress/kendo-angular-buttons": "13.1.0-develop.2",
34
- "@progress/kendo-angular-common": "13.1.0-develop.2",
35
- "@progress/kendo-angular-dateinputs": "13.1.0-develop.2",
36
- "@progress/kendo-angular-dropdowns": "13.1.0-develop.2",
37
- "@progress/kendo-angular-excel-export": "13.1.0-develop.2",
38
- "@progress/kendo-angular-icons": "13.1.0-develop.2",
39
- "@progress/kendo-angular-inputs": "13.1.0-develop.2",
40
- "@progress/kendo-angular-intl": "13.1.0-develop.2",
41
- "@progress/kendo-angular-l10n": "13.1.0-develop.2",
42
- "@progress/kendo-angular-label": "13.1.0-develop.2",
43
- "@progress/kendo-angular-pdf-export": "13.1.0-develop.2",
44
- "@progress/kendo-angular-popup": "13.1.0-develop.2",
45
- "@progress/kendo-angular-utils": "13.1.0-develop.2",
33
+ "@progress/kendo-angular-buttons": "13.1.0-develop.4",
34
+ "@progress/kendo-angular-common": "13.1.0-develop.4",
35
+ "@progress/kendo-angular-dateinputs": "13.1.0-develop.4",
36
+ "@progress/kendo-angular-dropdowns": "13.1.0-develop.4",
37
+ "@progress/kendo-angular-excel-export": "13.1.0-develop.4",
38
+ "@progress/kendo-angular-icons": "13.1.0-develop.4",
39
+ "@progress/kendo-angular-inputs": "13.1.0-develop.4",
40
+ "@progress/kendo-angular-intl": "13.1.0-develop.4",
41
+ "@progress/kendo-angular-l10n": "13.1.0-develop.4",
42
+ "@progress/kendo-angular-label": "13.1.0-develop.4",
43
+ "@progress/kendo-angular-pdf-export": "13.1.0-develop.4",
44
+ "@progress/kendo-angular-popup": "13.1.0-develop.4",
45
+ "@progress/kendo-angular-utils": "13.1.0-develop.4",
46
46
  "rxjs": "^6.5.3 || ^7.0.0",
47
- "@progress/kendo-angular-listview": "13.1.0-develop.2"
47
+ "@progress/kendo-angular-listview": "13.1.0-develop.4"
48
48
  },
49
49
  "dependencies": {
50
50
  "tslib": "^2.3.1",
51
- "@progress/kendo-angular-schematics": "13.1.0-develop.2",
51
+ "@progress/kendo-angular-schematics": "13.1.0-develop.4",
52
52
  "@progress/kendo-common": "^0.2.0",
53
53
  "@progress/kendo-file-saver": "^1.0.0"
54
54
  },
@@ -4,13 +4,13 @@ const schematics_1 = require("@angular-devkit/schematics");
4
4
  function default_1(options) {
5
5
  const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'TreeListModule', package: 'treelist', peerDependencies: {
6
6
  // peer dep of the dropdowns
7
- '@progress/kendo-angular-treeview': '13.1.0-develop.2',
7
+ '@progress/kendo-angular-treeview': '13.1.0-develop.4',
8
8
  // peer dependency of kendo-angular-inputs
9
- '@progress/kendo-angular-dialog': '13.1.0-develop.2',
9
+ '@progress/kendo-angular-dialog': '13.1.0-develop.4',
10
10
  // peer dependency of kendo-angular-icons
11
11
  '@progress/kendo-svg-icons': '^1.0.0',
12
12
  // peer dependency of kendo-angular-dateinputs
13
- '@progress/kendo-angular-navigation': '13.1.0-develop.2',
13
+ '@progress/kendo-angular-navigation': '13.1.0-develop.4',
14
14
  } });
15
15
  return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
16
16
  }