@progress/kendo-angular-upload 16.11.0-develop.1 → 16.11.0-develop.10

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,6 +10,7 @@ import * as i0 from "@angular/core";
10
10
  */
11
11
  export declare class DropZoneService {
12
12
  addComponent(component: UploadComponent | FileSelectComponent, zoneId: string): void;
13
+ clearComponent(component: UploadComponent | FileSelectComponent, zoneId: string): void;
13
14
  getComponents(zoneId: string): Array<UploadComponent | FileSelectComponent>;
14
15
  private has;
15
16
  static ɵfac: i0.ɵɵFactoryDeclaration<DropZoneService, never>;
@@ -17,6 +17,12 @@ export class DropZoneService {
17
17
  components[zoneId] = [component];
18
18
  }
19
19
  }
20
+ clearComponent(component, zoneId) {
21
+ if (this.has(zoneId)) {
22
+ const componentIdx = components[zoneId].indexOf(component);
23
+ components[zoneId].splice(componentIdx, 1);
24
+ }
25
+ }
20
26
  getComponents(zoneId) {
21
27
  return components[zoneId];
22
28
  }
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-upload',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1727353380,
13
- version: '16.11.0-develop.1',
12
+ publishDate: 1727948212,
13
+ version: '16.11.0-develop.10',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -297,6 +297,9 @@ export class UploadComponent extends UploadFileSelectBase {
297
297
  }
298
298
  ngOnDestroy() {
299
299
  this.fileList.clear();
300
+ if (this.zoneId) {
301
+ this.dropZoneService.clearComponent(this, this.zoneId);
302
+ }
300
303
  if (this.blurSubscription) {
301
304
  this.blurSubscription.unsubscribe();
302
305
  }
@@ -1475,6 +1475,12 @@ class DropZoneService {
1475
1475
  components[zoneId] = [component];
1476
1476
  }
1477
1477
  }
1478
+ clearComponent(component, zoneId) {
1479
+ if (this.has(zoneId)) {
1480
+ const componentIdx = components[zoneId].indexOf(component);
1481
+ components[zoneId].splice(componentIdx, 1);
1482
+ }
1483
+ }
1478
1484
  getComponents(zoneId) {
1479
1485
  return components[zoneId];
1480
1486
  }
@@ -1552,8 +1558,8 @@ const packageMetadata = {
1552
1558
  name: '@progress/kendo-angular-upload',
1553
1559
  productName: 'Kendo UI for Angular',
1554
1560
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
1555
- publishDate: 1727353380,
1556
- version: '16.11.0-develop.1',
1561
+ publishDate: 1727948212,
1562
+ version: '16.11.0-develop.10',
1557
1563
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
1558
1564
  };
1559
1565
 
@@ -3463,6 +3469,9 @@ class UploadComponent extends UploadFileSelectBase {
3463
3469
  }
3464
3470
  ngOnDestroy() {
3465
3471
  this.fileList.clear();
3472
+ if (this.zoneId) {
3473
+ this.dropZoneService.clearComponent(this, this.zoneId);
3474
+ }
3466
3475
  if (this.blurSubscription) {
3467
3476
  this.blurSubscription.unsubscribe();
3468
3477
  }
@@ -1475,6 +1475,12 @@ class DropZoneService {
1475
1475
  components[zoneId] = [component];
1476
1476
  }
1477
1477
  }
1478
+ clearComponent(component, zoneId) {
1479
+ if (this.has(zoneId)) {
1480
+ const componentIdx = components[zoneId].indexOf(component);
1481
+ components[zoneId].splice(componentIdx, 1);
1482
+ }
1483
+ }
1478
1484
  getComponents(zoneId) {
1479
1485
  return components[zoneId];
1480
1486
  }
@@ -1552,8 +1558,8 @@ const packageMetadata = {
1552
1558
  name: '@progress/kendo-angular-upload',
1553
1559
  productName: 'Kendo UI for Angular',
1554
1560
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
1555
- publishDate: 1727353380,
1556
- version: '16.11.0-develop.1',
1561
+ publishDate: 1727948212,
1562
+ version: '16.11.0-develop.10',
1557
1563
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
1558
1564
  };
1559
1565
 
@@ -3463,6 +3469,9 @@ class UploadComponent extends UploadFileSelectBase {
3463
3469
  }
3464
3470
  ngOnDestroy() {
3465
3471
  this.fileList.clear();
3472
+ if (this.zoneId) {
3473
+ this.dropZoneService.clearComponent(this, this.zoneId);
3474
+ }
3466
3475
  if (this.blurSubscription) {
3467
3476
  this.blurSubscription.unsubscribe();
3468
3477
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-upload",
3
- "version": "16.11.0-develop.1",
3
+ "version": "16.11.0-develop.10",
4
4
  "description": "Kendo UI Angular Upload Component",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -24,16 +24,16 @@
24
24
  "@angular/forms": "15 - 18",
25
25
  "@angular/platform-browser": "15 - 18",
26
26
  "@progress/kendo-licensing": "^1.0.2",
27
- "@progress/kendo-angular-common": "16.11.0-develop.1",
28
- "@progress/kendo-angular-l10n": "16.11.0-develop.1",
29
- "@progress/kendo-angular-icons": "16.11.0-develop.1",
30
- "@progress/kendo-angular-buttons": "16.11.0-develop.1",
31
- "@progress/kendo-angular-progressbar": "16.11.0-develop.1",
27
+ "@progress/kendo-angular-common": "16.11.0-develop.10",
28
+ "@progress/kendo-angular-l10n": "16.11.0-develop.10",
29
+ "@progress/kendo-angular-icons": "16.11.0-develop.10",
30
+ "@progress/kendo-angular-buttons": "16.11.0-develop.10",
31
+ "@progress/kendo-angular-progressbar": "16.11.0-develop.10",
32
32
  "rxjs": "^6.5.3 || ^7.0.0"
33
33
  },
34
34
  "dependencies": {
35
35
  "tslib": "^2.3.1",
36
- "@progress/kendo-angular-schematics": "16.11.0-develop.1"
36
+ "@progress/kendo-angular-schematics": "16.11.0-develop.10"
37
37
  },
38
38
  "schematics": "./schematics/collection.json",
39
39
  "module": "fesm2015/progress-kendo-angular-upload.mjs",
@@ -10,9 +10,9 @@ function default_1(options) {
10
10
  ], peerDependencies: {
11
11
  // peer dep of the icons
12
12
  '@progress/kendo-svg-icons': '^3.0.0',
13
- '@progress/kendo-angular-buttons': '16.11.0-develop.1',
14
- '@progress/kendo-angular-progressbar': '16.11.0-develop.1',
15
- '@progress/kendo-angular-popup': '16.11.0-develop.1',
13
+ '@progress/kendo-angular-buttons': '16.11.0-develop.10',
14
+ '@progress/kendo-angular-progressbar': '16.11.0-develop.10',
15
+ '@progress/kendo-angular-popup': '16.11.0-develop.10',
16
16
  } });
17
17
  return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
18
18
  }