@progress/kendo-angular-upload 23.3.0-develop.17 → 23.3.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.
- package/fesm2022/progress-kendo-angular-upload.mjs +25 -14
- package/package-metadata.mjs +2 -2
- package/package.json +8 -8
- package/rendering/file-list-item-base.d.ts +3 -2
- package/rendering/file-list-multiple-items.component.d.ts +2 -2
- package/rendering/file-list-single-item.component.d.ts +2 -1
- package/schematics/ngAdd/index.js +3 -3
|
@@ -1583,8 +1583,8 @@ const packageMetadata = {
|
|
|
1583
1583
|
productName: 'Kendo UI for Angular',
|
|
1584
1584
|
productCode: 'KENDOUIANGULAR',
|
|
1585
1585
|
productCodes: ['KENDOUIANGULAR'],
|
|
1586
|
-
publishDate:
|
|
1587
|
-
version: '23.3.0-develop.
|
|
1586
|
+
publishDate: 1774605691,
|
|
1587
|
+
version: '23.3.0-develop.19',
|
|
1588
1588
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
1589
1589
|
};
|
|
1590
1590
|
|
|
@@ -2161,14 +2161,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
2161
2161
|
*/
|
|
2162
2162
|
class FileListItemBase {
|
|
2163
2163
|
uploadService;
|
|
2164
|
+
cdr;
|
|
2164
2165
|
progressComplete = 0;
|
|
2165
2166
|
localization;
|
|
2166
2167
|
uploadProgressSubscription;
|
|
2167
|
-
constructor(uploadService) {
|
|
2168
|
+
constructor(uploadService, cdr) {
|
|
2168
2169
|
this.uploadService = uploadService;
|
|
2170
|
+
this.cdr = cdr;
|
|
2169
2171
|
}
|
|
2170
2172
|
subscribeUploadProgress(uploadProgressHandler) {
|
|
2171
|
-
this.uploadProgressSubscription = this.uploadService.uploadProgressEvent.subscribe(
|
|
2173
|
+
this.uploadProgressSubscription = this.uploadService.uploadProgressEvent.subscribe((args) => {
|
|
2174
|
+
const previousProgress = this.progressComplete;
|
|
2175
|
+
uploadProgressHandler(args);
|
|
2176
|
+
if (this.progressComplete !== previousProgress) {
|
|
2177
|
+
this.cdr.markForCheck();
|
|
2178
|
+
}
|
|
2179
|
+
});
|
|
2172
2180
|
}
|
|
2173
2181
|
fileHasValidationErrors(file) {
|
|
2174
2182
|
return fileHasValidationErrors(file);
|
|
@@ -2192,13 +2200,13 @@ class FileListItemBase {
|
|
|
2192
2200
|
textFor(key) {
|
|
2193
2201
|
return this.localization.get(key);
|
|
2194
2202
|
}
|
|
2195
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: FileListItemBase, deps: [{ token: UploadService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2203
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: FileListItemBase, deps: [{ token: UploadService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2196
2204
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: FileListItemBase, isStandalone: true, selector: "ng-component", ngImport: i0, template: '', isInline: true });
|
|
2197
2205
|
}
|
|
2198
2206
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: FileListItemBase, decorators: [{
|
|
2199
2207
|
type: Component,
|
|
2200
2208
|
args: [{ template: '' }]
|
|
2201
|
-
}], ctorParameters: () => [{ type: UploadService }] });
|
|
2209
|
+
}], ctorParameters: () => [{ type: UploadService }, { type: i0.ChangeDetectorRef }] });
|
|
2202
2210
|
|
|
2203
2211
|
/**
|
|
2204
2212
|
* @hidden
|
|
@@ -2426,8 +2434,8 @@ class FileListMultipleItemsComponent extends FileListItemBase {
|
|
|
2426
2434
|
fileInfoTemplate;
|
|
2427
2435
|
filesHaveErrors;
|
|
2428
2436
|
copySVGIcon = copyIcon;
|
|
2429
|
-
constructor(localization, uploadService) {
|
|
2430
|
-
super(uploadService);
|
|
2437
|
+
constructor(localization, uploadService, cdr) {
|
|
2438
|
+
super(uploadService, cdr);
|
|
2431
2439
|
this.localization = localization;
|
|
2432
2440
|
this.subscribeUploadProgress((args) => {
|
|
2433
2441
|
if (args.files[0].uid === this.files[0].uid) {
|
|
@@ -2466,7 +2474,7 @@ class FileListMultipleItemsComponent extends FileListItemBase {
|
|
|
2466
2474
|
get isUploadFailed() {
|
|
2467
2475
|
return this.files[0].state === FileState.Failed;
|
|
2468
2476
|
}
|
|
2469
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: FileListMultipleItemsComponent, deps: [{ token: i1$1.LocalizationService }, { token: UploadService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2477
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: FileListMultipleItemsComponent, deps: [{ token: i1$1.LocalizationService }, { token: UploadService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2470
2478
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: FileListMultipleItemsComponent, isStandalone: true, selector: "kendo-upload-file-list-multiple-items", inputs: { disabled: "disabled", files: "files", fileInfoTemplate: "fileInfoTemplate" }, usesInheritance: true, ngImport: i0, template: `
|
|
2471
2479
|
<kendo-progressbar
|
|
2472
2480
|
[@progressState]="showProgress"
|
|
@@ -2590,7 +2598,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
2590
2598
|
standalone: true,
|
|
2591
2599
|
imports: [ProgressBarComponent, IconWrapperComponent, NgClass, NgTemplateOutlet, FileListItemActionButtonComponent]
|
|
2592
2600
|
}]
|
|
2593
|
-
}], ctorParameters: () => [{ type: i1$1.LocalizationService }, { type: UploadService }], propDecorators: { disabled: [{
|
|
2601
|
+
}], ctorParameters: () => [{ type: i1$1.LocalizationService }, { type: UploadService }, { type: i0.ChangeDetectorRef }], propDecorators: { disabled: [{
|
|
2594
2602
|
type: Input
|
|
2595
2603
|
}], files: [{
|
|
2596
2604
|
type: Input
|
|
@@ -2606,8 +2614,8 @@ class FileListSingleItemComponent extends FileListItemBase {
|
|
|
2606
2614
|
disabled;
|
|
2607
2615
|
file;
|
|
2608
2616
|
fileInfoTemplate;
|
|
2609
|
-
constructor(localization, uploadService) {
|
|
2610
|
-
super(uploadService);
|
|
2617
|
+
constructor(localization, uploadService, cdr) {
|
|
2618
|
+
super(uploadService, cdr);
|
|
2611
2619
|
this.localization = localization;
|
|
2612
2620
|
this.subscribeUploadProgress((args) => {
|
|
2613
2621
|
if (args.files[0].uid === this.file.uid) {
|
|
@@ -2647,7 +2655,7 @@ class FileListSingleItemComponent extends FileListItemBase {
|
|
|
2647
2655
|
get isNotYetUploaded() {
|
|
2648
2656
|
return !this.isUploadFailed && !this.isUploadSuccessful;
|
|
2649
2657
|
}
|
|
2650
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: FileListSingleItemComponent, deps: [{ token: i1$1.LocalizationService }, { token: UploadService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2658
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: FileListSingleItemComponent, deps: [{ token: i1$1.LocalizationService }, { token: UploadService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2651
2659
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: FileListSingleItemComponent, isStandalone: true, selector: "kendo-upload-file-list-single-item", inputs: { disabled: "disabled", file: "file", fileInfoTemplate: "fileInfoTemplate" }, usesInheritance: true, ngImport: i0, template: `
|
|
2652
2660
|
<kendo-progressbar
|
|
2653
2661
|
[@progressState]="showProgress"
|
|
@@ -2753,7 +2761,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
2753
2761
|
standalone: true,
|
|
2754
2762
|
imports: [ProgressBarComponent, IconWrapperComponent, NgClass, NgTemplateOutlet, FileListItemActionButtonComponent]
|
|
2755
2763
|
}]
|
|
2756
|
-
}], ctorParameters: () => [{ type: i1$1.LocalizationService }, { type: UploadService }], propDecorators: { disabled: [{
|
|
2764
|
+
}], ctorParameters: () => [{ type: i1$1.LocalizationService }, { type: UploadService }, { type: i0.ChangeDetectorRef }], propDecorators: { disabled: [{
|
|
2757
2765
|
type: Input
|
|
2758
2766
|
}], file: [{
|
|
2759
2767
|
type: Input
|
|
@@ -4016,6 +4024,7 @@ class UploadComponent extends UploadFileSelectBase {
|
|
|
4016
4024
|
}
|
|
4017
4025
|
attachEventHandlers() {
|
|
4018
4026
|
this.subs = this.uploadService.cancelEvent.subscribe((args) => {
|
|
4027
|
+
this.cdr.markForCheck();
|
|
4019
4028
|
this.cancel.emit(args);
|
|
4020
4029
|
});
|
|
4021
4030
|
this.subs.add(this.uploadService.changeEvent.subscribe((files) => {
|
|
@@ -4029,6 +4038,7 @@ class UploadComponent extends UploadFileSelectBase {
|
|
|
4029
4038
|
this.complete.emit();
|
|
4030
4039
|
}));
|
|
4031
4040
|
this.subs.add(this.uploadService.errorEvent.subscribe((args) => {
|
|
4041
|
+
this.cdr.markForCheck();
|
|
4032
4042
|
this.error.emit(args);
|
|
4033
4043
|
}));
|
|
4034
4044
|
this.subs.add(this.uploadService.pauseEvent.subscribe((args) => {
|
|
@@ -4044,6 +4054,7 @@ class UploadComponent extends UploadFileSelectBase {
|
|
|
4044
4054
|
this.select.emit(args);
|
|
4045
4055
|
}));
|
|
4046
4056
|
this.subs.add(this.uploadService.successEvent.subscribe((args) => {
|
|
4057
|
+
this.cdr.markForCheck();
|
|
4047
4058
|
this.success.emit(args);
|
|
4048
4059
|
}));
|
|
4049
4060
|
this.subs.add(this.uploadService.uploadEvent.subscribe((args) => {
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "23.3.0-develop.
|
|
10
|
+
"publishDate": 1774605691,
|
|
11
|
+
"version": "23.3.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-upload",
|
|
3
|
-
"version": "23.3.0-develop.
|
|
3
|
+
"version": "23.3.0-develop.19",
|
|
4
4
|
"description": "Kendo UI Angular Upload Component",
|
|
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":
|
|
22
|
+
"publishDate": 1774605691,
|
|
23
23
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
"@angular/forms": "19 - 21",
|
|
31
31
|
"@angular/platform-browser": "19 - 21",
|
|
32
32
|
"@progress/kendo-licensing": "^1.10.0",
|
|
33
|
-
"@progress/kendo-angular-common": "23.3.0-develop.
|
|
34
|
-
"@progress/kendo-angular-l10n": "23.3.0-develop.
|
|
35
|
-
"@progress/kendo-angular-icons": "23.3.0-develop.
|
|
36
|
-
"@progress/kendo-angular-buttons": "23.3.0-develop.
|
|
37
|
-
"@progress/kendo-angular-progressbar": "23.3.0-develop.
|
|
33
|
+
"@progress/kendo-angular-common": "23.3.0-develop.19",
|
|
34
|
+
"@progress/kendo-angular-l10n": "23.3.0-develop.19",
|
|
35
|
+
"@progress/kendo-angular-icons": "23.3.0-develop.19",
|
|
36
|
+
"@progress/kendo-angular-buttons": "23.3.0-develop.19",
|
|
37
|
+
"@progress/kendo-angular-progressbar": "23.3.0-develop.19",
|
|
38
38
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"tslib": "^2.3.1",
|
|
42
|
-
"@progress/kendo-angular-schematics": "23.3.0-develop.
|
|
42
|
+
"@progress/kendo-angular-schematics": "23.3.0-develop.19"
|
|
43
43
|
},
|
|
44
44
|
"schematics": "./schematics/collection.json",
|
|
45
45
|
"module": "fesm2022/progress-kendo-angular-upload.mjs",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2026 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 { OnDestroy } from '@angular/core';
|
|
5
|
+
import { ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
6
6
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
7
|
import { Subscription } from 'rxjs';
|
|
8
8
|
import { FileInfo } from '../types';
|
|
@@ -14,10 +14,11 @@ import * as i0 from "@angular/core";
|
|
|
14
14
|
*/
|
|
15
15
|
export declare class FileListItemBase implements OnDestroy {
|
|
16
16
|
protected uploadService: UploadService;
|
|
17
|
+
protected cdr: ChangeDetectorRef;
|
|
17
18
|
progressComplete: number;
|
|
18
19
|
protected localization: LocalizationService;
|
|
19
20
|
protected uploadProgressSubscription: Subscription;
|
|
20
|
-
constructor(uploadService: UploadService);
|
|
21
|
+
constructor(uploadService: UploadService, cdr: ChangeDetectorRef);
|
|
21
22
|
protected subscribeUploadProgress(uploadProgressHandler: (args: UploadProgressEvent) => void): void;
|
|
22
23
|
protected fileHasValidationErrors(file: FileInfo): boolean;
|
|
23
24
|
protected filesHaveValidationErrors(files: Array<FileInfo>): boolean;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2026 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 { OnInit } from '@angular/core';
|
|
5
|
+
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
6
6
|
import { FileInfo } from '../types';
|
|
7
7
|
import { FileListItemBase } from './file-list-item-base';
|
|
8
8
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
@@ -20,7 +20,7 @@ export declare class FileListMultipleItemsComponent extends FileListItemBase imp
|
|
|
20
20
|
fileInfoTemplate: FileInfoTemplateDirective;
|
|
21
21
|
filesHaveErrors: boolean;
|
|
22
22
|
copySVGIcon: SVGIcon;
|
|
23
|
-
constructor(localization: LocalizationService, uploadService: UploadService);
|
|
23
|
+
constructor(localization: LocalizationService, uploadService: UploadService, cdr: ChangeDetectorRef);
|
|
24
24
|
get showProgress(): string;
|
|
25
25
|
ngOnInit(): void;
|
|
26
26
|
fileStatusText(file: FileInfo): any;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Copyright © 2026 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 { ChangeDetectorRef } from '@angular/core';
|
|
5
6
|
import { FileInfo } from '../types';
|
|
6
7
|
import { FileListItemBase } from './file-list-item-base';
|
|
7
8
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
@@ -17,7 +18,7 @@ export declare class FileListSingleItemComponent extends FileListItemBase {
|
|
|
17
18
|
disabled: boolean;
|
|
18
19
|
file: FileInfo;
|
|
19
20
|
fileInfoTemplate: FileInfoTemplateDirective;
|
|
20
|
-
constructor(localization: LocalizationService, uploadService: UploadService);
|
|
21
|
+
constructor(localization: LocalizationService, uploadService: UploadService, cdr: ChangeDetectorRef);
|
|
21
22
|
get fileStatusText(): string;
|
|
22
23
|
get showProgress(): string;
|
|
23
24
|
get fileGroupClass(): string;
|
|
@@ -15,9 +15,9 @@ function default_1(options) {
|
|
|
15
15
|
], peerDependencies: {
|
|
16
16
|
// peer dep of the icons
|
|
17
17
|
'@progress/kendo-svg-icons': '^4.0.0',
|
|
18
|
-
'@progress/kendo-angular-buttons': '23.3.0-develop.
|
|
19
|
-
'@progress/kendo-angular-progressbar': '23.3.0-develop.
|
|
20
|
-
'@progress/kendo-angular-popup': '23.3.0-develop.
|
|
18
|
+
'@progress/kendo-angular-buttons': '23.3.0-develop.19',
|
|
19
|
+
'@progress/kendo-angular-progressbar': '23.3.0-develop.19',
|
|
20
|
+
'@progress/kendo-angular-popup': '23.3.0-develop.19',
|
|
21
21
|
} });
|
|
22
22
|
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
|
23
23
|
}
|