@progress/kendo-angular-upload 22.1.0-develop.8 → 23.0.0-develop.1
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/dropzone-external.directive.d.ts +1 -1
- package/dropzone.component.d.ts +2 -2
- package/fesm2022/progress-kendo-angular-upload.mjs +57 -57
- package/fileselect.component.d.ts +1 -1
- package/localization/custom-messages.component.d.ts +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +9 -9
- package/schematics/ngAdd/index.js +3 -3
- package/templates/file-info-template.directive.d.ts +2 -2
- package/templates/file-template.directive.d.ts +2 -2
- package/types/file-restrictions.d.ts +3 -3
- package/upload.component.d.ts +5 -5
|
@@ -7,7 +7,7 @@ import { UploadComponent } from './upload.component';
|
|
|
7
7
|
import { FileSelectComponent } from './fileselect.component';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
/**
|
|
10
|
-
* Represents the [Kendo UI UploadDropZone directive for Angular](
|
|
10
|
+
* Represents the [Kendo UI UploadDropZone directive for Angular](https://www.telerik.com/kendo-angular-ui/components/uploads).
|
|
11
11
|
* Use this directive to create external drop zones for Upload and FileSelect components.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
package/dropzone.component.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { DropZoneBase } from './dropzone-base';
|
|
|
8
8
|
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
/**
|
|
11
|
-
* Represents the [Kendo UI UploadDropZone component for Angular](
|
|
11
|
+
* Represents the [Kendo UI UploadDropZone component for Angular](https://www.telerik.com/kendo-angular-ui/components/uploads).
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```html
|
|
@@ -42,7 +42,7 @@ export declare class UploadDropZoneComponent extends DropZoneBase {
|
|
|
42
42
|
iconClass: string;
|
|
43
43
|
/**
|
|
44
44
|
* Specifies an SVGIcon to render inside the DropZone.
|
|
45
|
-
* The input accepts either an [existing Kendo SVG icon](
|
|
45
|
+
* The input accepts either an [existing Kendo SVG icon](https://www.telerik.com/kendo-angular-ui/components/icons/svgicon/svgicon-list) or a custom one.
|
|
46
46
|
*/
|
|
47
47
|
set svgIcon(icon: SVGIcon);
|
|
48
48
|
get svgIcon(): SVGIcon;
|
|
@@ -1586,17 +1586,17 @@ const packageMetadata = {
|
|
|
1586
1586
|
productCode: 'KENDOUIANGULAR',
|
|
1587
1587
|
productCodes: ['KENDOUIANGULAR'],
|
|
1588
1588
|
publishDate: 0,
|
|
1589
|
-
version: '
|
|
1589
|
+
version: '23.0.0-develop.1',
|
|
1590
1590
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
1591
1591
|
};
|
|
1592
1592
|
|
|
1593
1593
|
/**
|
|
1594
|
-
* Customizes the rendering of files in the list. ([See example.](
|
|
1594
|
+
* Customizes the rendering of files in the list. ([See example.](https://www.telerik.com/kendo-angular-ui/components/uploads/upload/templates#file-template))
|
|
1595
1595
|
*
|
|
1596
1596
|
* The following context variables are available in the template:
|
|
1597
1597
|
*
|
|
1598
1598
|
* * `let-files`—A reference to the files associated with the current item.
|
|
1599
|
-
* * `let-state`—A reference to the current state of each file. If the [`batch`](
|
|
1599
|
+
* * `let-state`—A reference to the current state of each file. If the [`batch`](https://www.telerik.com/kendo-angular-ui/components/uploads/api/uploadcomponent#batch) option of the Upload is set to `true`, the field reflects the state of the whole batch.
|
|
1600
1600
|
* * `#myUpload="kendoUpload"` or `#myFileSelect="kendoFileSelect"`—A reference to the instance of the Upload/FileSelect component. It is exported as `kendoUpload`/`kendoFileSelect` by using the [`exportAs`](https://angular.io/api/core/Component) metadata property.
|
|
1601
1601
|
*
|
|
1602
1602
|
* @example
|
|
@@ -1625,12 +1625,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
1625
1625
|
}], ctorParameters: () => [{ type: i0.TemplateRef }] });
|
|
1626
1626
|
|
|
1627
1627
|
/**
|
|
1628
|
-
* Customizes the rendering of the file info section in the list. All other elements of the default template, such as file icon, action buttons, and upload progress, are preserved in place. ([See example](
|
|
1628
|
+
* Customizes the rendering of the file info section in the list. All other elements of the default template, such as file icon, action buttons, and upload progress, are preserved in place. ([See example](https://www.telerik.com/kendo-angular-ui/components/uploads/upload/templates#file-info-template)).
|
|
1629
1629
|
*
|
|
1630
1630
|
* The following context variables are available in the template:
|
|
1631
1631
|
*
|
|
1632
1632
|
* * `let-files`—A reference to the files associated with the current item.
|
|
1633
|
-
* * `let-state`—A reference to the current state of each file. If the [`batch`](
|
|
1633
|
+
* * `let-state`—A reference to the current state of each file. If the [`batch`](https://www.telerik.com/kendo-angular-ui/components/uploads/api/uploadcomponent#batch) option of the Upload is set to `true`, the field reflects the state of the whole batch.
|
|
1634
1634
|
* * `#myUpload="kendoUpload"` or `#myFileSelect="kendoFileSelect"`—A reference to the instance of the Upload/FileSelect component. It is exported as `kendoUpload`/`kendoFileSelect` by using the [`exportAs`](https://angular.io/api/core/Component) metadata property.
|
|
1635
1635
|
*
|
|
1636
1636
|
* @example
|
|
@@ -2001,11 +2001,11 @@ class UploadActionButtonsComponent {
|
|
|
2001
2001
|
}
|
|
2002
2002
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: UploadActionButtonsComponent, deps: [{ token: UploadService }, { token: i1$1.LocalizationService }, { token: NavigationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2003
2003
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: UploadActionButtonsComponent, isStandalone: true, selector: "kendo-upload-action-buttons", inputs: { disabled: "disabled", actionsLayout: "actionsLayout" }, host: { properties: { "class.k-actions": "this.hostDefaultClass", "class.k-actions-end": "this.actionButtonsEndClassName", "class.k-actions-stretched": "this.actionButtonsStretchedClassName", "class.k-actions-start": "this.actionButtonsStartClassName", "class.k-actions-center": "this.actionButtonsCenterClassName" } }, viewQueries: [{ propertyName: "clearButton", first: true, predicate: ["clearButton"], descendants: true, static: true }, { propertyName: "uploadButton", first: true, predicate: ["uploadButton"], descendants: true, static: true }], ngImport: i0, template: `
|
|
2004
|
-
<button #clearButton role="button" class="k-button k-
|
|
2004
|
+
<button #clearButton role="button" class="k-button k-clear-selected"
|
|
2005
2005
|
(click)="onClearButtonClick($event)">
|
|
2006
2006
|
{{textFor('clearSelectedFiles')}}
|
|
2007
2007
|
</button>
|
|
2008
|
-
<button #uploadButton role="button" class="k-button k-button-
|
|
2008
|
+
<button #uploadButton role="button" class="k-button k-button-primary k-upload-selected"
|
|
2009
2009
|
(focus)="onUploadButtonFocus()"
|
|
2010
2010
|
(click)="onUploadButtonClick($event)">
|
|
2011
2011
|
{{textFor('uploadSelectedFiles')}}
|
|
@@ -2017,11 +2017,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
2017
2017
|
args: [{
|
|
2018
2018
|
selector: 'kendo-upload-action-buttons',
|
|
2019
2019
|
template: `
|
|
2020
|
-
<button #clearButton role="button" class="k-button k-
|
|
2020
|
+
<button #clearButton role="button" class="k-button k-clear-selected"
|
|
2021
2021
|
(click)="onClearButtonClick($event)">
|
|
2022
2022
|
{{textFor('clearSelectedFiles')}}
|
|
2023
2023
|
</button>
|
|
2024
|
-
<button #uploadButton role="button" class="k-button k-button-
|
|
2024
|
+
<button #uploadButton role="button" class="k-button k-button-primary k-upload-selected"
|
|
2025
2025
|
(focus)="onUploadButtonFocus()"
|
|
2026
2026
|
(click)="onUploadButtonClick($event)">
|
|
2027
2027
|
{{textFor('uploadSelectedFiles')}}
|
|
@@ -3537,7 +3537,7 @@ const UPLOAD_VALUE_ACCESSOR = {
|
|
|
3537
3537
|
};
|
|
3538
3538
|
let idx$1 = 0;
|
|
3539
3539
|
/**
|
|
3540
|
-
* Represents the [Kendo UI Upload component for Angular](
|
|
3540
|
+
* Represents the [Kendo UI Upload component for Angular](https://www.telerik.com/kendo-angular-ui/components/uploads).
|
|
3541
3541
|
*
|
|
3542
3542
|
* @example
|
|
3543
3543
|
* ```html
|
|
@@ -3561,7 +3561,7 @@ class UploadComponent extends UploadFileSelectBase {
|
|
|
3561
3561
|
injector;
|
|
3562
3562
|
/**
|
|
3563
3563
|
* Specifies whether selected files upload automatically
|
|
3564
|
-
* ([see example](
|
|
3564
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/uploads/upload/file-processing#automatic-upload-of-files)).
|
|
3565
3565
|
* Set `autoUpload` to `false` to change this behavior.
|
|
3566
3566
|
*
|
|
3567
3567
|
* @default true
|
|
@@ -3574,7 +3574,7 @@ class UploadComponent extends UploadFileSelectBase {
|
|
|
3574
3574
|
}
|
|
3575
3575
|
/**
|
|
3576
3576
|
* Specifies whether all files in the selection upload in a single request
|
|
3577
|
-
* ([see example](
|
|
3577
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/uploads/upload/file-processing#upload-of-batches-of-files)).
|
|
3578
3578
|
* Files selected one after the other upload in separate requests.
|
|
3579
3579
|
*
|
|
3580
3580
|
* @default false
|
|
@@ -3587,10 +3587,10 @@ class UploadComponent extends UploadFileSelectBase {
|
|
|
3587
3587
|
}
|
|
3588
3588
|
/**
|
|
3589
3589
|
* Specifies whether credentials (cookies, headers) are sent for cross-site requests
|
|
3590
|
-
* ([see example](
|
|
3590
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/uploads/upload/credentials#attaching-credentials-to-requests)).
|
|
3591
3591
|
* Set `withCredentials` has no effect on same-site requests.
|
|
3592
3592
|
* Use the `saveHeaders` or `removeHeaders` property to add credentials to the request.
|
|
3593
|
-
* You can also use the [`upload`](
|
|
3593
|
+
* You can also use the [`upload`](https://www.telerik.com/kendo-angular-ui/components/uploads/api/uploadevent) event.
|
|
3594
3594
|
*
|
|
3595
3595
|
* @default true
|
|
3596
3596
|
*/
|
|
@@ -4079,61 +4079,61 @@ class UploadComponent extends UploadFileSelectBase {
|
|
|
4079
4079
|
<ng-container kendoUploadLocalizedMessages
|
|
4080
4080
|
i18n-cancel="kendo.upload.cancel|The text for the Cancel button"
|
|
4081
4081
|
cancel="Cancel"
|
|
4082
|
-
|
|
4082
|
+
|
|
4083
4083
|
i18n-clearSelectedFiles="kendo.upload.clearSelectedFiles|The text for the Clear button"
|
|
4084
4084
|
clearSelectedFiles="Clear"
|
|
4085
|
-
|
|
4085
|
+
|
|
4086
4086
|
i18n-dropFilesHere="kendo.upload.dropFilesHere|The drop zone hint"
|
|
4087
4087
|
dropFilesHere="Drop files here to upload"
|
|
4088
|
-
|
|
4088
|
+
|
|
4089
4089
|
i18n-filesBatchStatus="kendo.upload.filesBatchStatus|The status message for a batch of files"
|
|
4090
4090
|
filesBatchStatus="files"
|
|
4091
|
-
|
|
4091
|
+
|
|
4092
4092
|
i18n-filesBatchStatusFailed="kendo.upload.filesBatchStatusFailed|The status message for a batch of files after failed upload"
|
|
4093
4093
|
filesBatchStatusFailed="files failed to upload."
|
|
4094
|
-
|
|
4094
|
+
|
|
4095
4095
|
i18n-filesBatchStatusUploaded="kendo.upload.filesBatchStatusUploaded|The status message for a batch of files after successful upload"
|
|
4096
4096
|
filesBatchStatusUploaded="files successfully uploaded."
|
|
4097
|
-
|
|
4097
|
+
|
|
4098
4098
|
i18n-fileStatusFailed="kendo.upload.fileStatusFailed|The file status message after failed upload"
|
|
4099
4099
|
fileStatusFailed="File failed to upload."
|
|
4100
|
-
|
|
4100
|
+
|
|
4101
4101
|
i18n-fileStatusUploaded="kendo.upload.fileStatusUploaded|The file status message after successful upload"
|
|
4102
4102
|
fileStatusUploaded="File successfully uploaded."
|
|
4103
|
-
|
|
4103
|
+
|
|
4104
4104
|
i18n-headerStatusPaused="kendo.upload.headerStatusPaused|The header status message when the file upload is paused"
|
|
4105
4105
|
headerStatusPaused="Paused"
|
|
4106
|
-
|
|
4106
|
+
|
|
4107
4107
|
i18n-headerStatusUploaded="kendo.upload.headerStatusUploaded|The header status message after file upload completion"
|
|
4108
4108
|
headerStatusUploaded="Done"
|
|
4109
|
-
|
|
4109
|
+
|
|
4110
4110
|
i18n-headerStatusUploading="kendo.upload.headerStatusUploading|The header status message during file upload"
|
|
4111
4111
|
headerStatusUploading="Uploading..."
|
|
4112
|
-
|
|
4112
|
+
|
|
4113
4113
|
i18n-invalidFileExtension="kendo.upload.invalidFileExtension|The text for the invalid allowed extensions restriction message"
|
|
4114
4114
|
invalidFileExtension="File type not allowed."
|
|
4115
|
-
|
|
4115
|
+
|
|
4116
4116
|
i18n-invalidMaxFileSize="kendo.upload.invalidMaxFileSize|The text for the invalid max file size restriction message"
|
|
4117
4117
|
invalidMaxFileSize="File size too large."
|
|
4118
|
-
|
|
4118
|
+
|
|
4119
4119
|
i18n-invalidMinFileSize="kendo.upload.invalidMinFileSize|The text for the invalid min file size restriction message"
|
|
4120
4120
|
invalidMinFileSize="File size too small."
|
|
4121
|
-
|
|
4121
|
+
|
|
4122
4122
|
i18n-pause="kendo.upload.pause|The text for the Pause button"
|
|
4123
4123
|
pause="Pause"
|
|
4124
|
-
|
|
4124
|
+
|
|
4125
4125
|
i18n-remove="kendo.upload.remove|The text for the Remove button"
|
|
4126
4126
|
remove="Remove"
|
|
4127
|
-
|
|
4127
|
+
|
|
4128
4128
|
i18n-resume="kendo.upload.resume|The text for the Resume button"
|
|
4129
4129
|
resume="Resume"
|
|
4130
|
-
|
|
4130
|
+
|
|
4131
4131
|
i18n-retry="kendo.upload.retry|The text for the Retry button"
|
|
4132
4132
|
retry="Retry"
|
|
4133
|
-
|
|
4133
|
+
|
|
4134
4134
|
i18n-select="kendo.upload.select|The text for the Select button"
|
|
4135
4135
|
select="Select files..."
|
|
4136
|
-
|
|
4136
|
+
|
|
4137
4137
|
i18n-uploadSelectedFiles="kendo.upload.uploadSelectedFiles|The text for the Upload files button"
|
|
4138
4138
|
uploadSelectedFiles="Upload"
|
|
4139
4139
|
>
|
|
@@ -4217,61 +4217,61 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
4217
4217
|
<ng-container kendoUploadLocalizedMessages
|
|
4218
4218
|
i18n-cancel="kendo.upload.cancel|The text for the Cancel button"
|
|
4219
4219
|
cancel="Cancel"
|
|
4220
|
-
|
|
4220
|
+
|
|
4221
4221
|
i18n-clearSelectedFiles="kendo.upload.clearSelectedFiles|The text for the Clear button"
|
|
4222
4222
|
clearSelectedFiles="Clear"
|
|
4223
|
-
|
|
4223
|
+
|
|
4224
4224
|
i18n-dropFilesHere="kendo.upload.dropFilesHere|The drop zone hint"
|
|
4225
4225
|
dropFilesHere="Drop files here to upload"
|
|
4226
|
-
|
|
4226
|
+
|
|
4227
4227
|
i18n-filesBatchStatus="kendo.upload.filesBatchStatus|The status message for a batch of files"
|
|
4228
4228
|
filesBatchStatus="files"
|
|
4229
|
-
|
|
4229
|
+
|
|
4230
4230
|
i18n-filesBatchStatusFailed="kendo.upload.filesBatchStatusFailed|The status message for a batch of files after failed upload"
|
|
4231
4231
|
filesBatchStatusFailed="files failed to upload."
|
|
4232
|
-
|
|
4232
|
+
|
|
4233
4233
|
i18n-filesBatchStatusUploaded="kendo.upload.filesBatchStatusUploaded|The status message for a batch of files after successful upload"
|
|
4234
4234
|
filesBatchStatusUploaded="files successfully uploaded."
|
|
4235
|
-
|
|
4235
|
+
|
|
4236
4236
|
i18n-fileStatusFailed="kendo.upload.fileStatusFailed|The file status message after failed upload"
|
|
4237
4237
|
fileStatusFailed="File failed to upload."
|
|
4238
|
-
|
|
4238
|
+
|
|
4239
4239
|
i18n-fileStatusUploaded="kendo.upload.fileStatusUploaded|The file status message after successful upload"
|
|
4240
4240
|
fileStatusUploaded="File successfully uploaded."
|
|
4241
|
-
|
|
4241
|
+
|
|
4242
4242
|
i18n-headerStatusPaused="kendo.upload.headerStatusPaused|The header status message when the file upload is paused"
|
|
4243
4243
|
headerStatusPaused="Paused"
|
|
4244
|
-
|
|
4244
|
+
|
|
4245
4245
|
i18n-headerStatusUploaded="kendo.upload.headerStatusUploaded|The header status message after file upload completion"
|
|
4246
4246
|
headerStatusUploaded="Done"
|
|
4247
|
-
|
|
4247
|
+
|
|
4248
4248
|
i18n-headerStatusUploading="kendo.upload.headerStatusUploading|The header status message during file upload"
|
|
4249
4249
|
headerStatusUploading="Uploading..."
|
|
4250
|
-
|
|
4250
|
+
|
|
4251
4251
|
i18n-invalidFileExtension="kendo.upload.invalidFileExtension|The text for the invalid allowed extensions restriction message"
|
|
4252
4252
|
invalidFileExtension="File type not allowed."
|
|
4253
|
-
|
|
4253
|
+
|
|
4254
4254
|
i18n-invalidMaxFileSize="kendo.upload.invalidMaxFileSize|The text for the invalid max file size restriction message"
|
|
4255
4255
|
invalidMaxFileSize="File size too large."
|
|
4256
|
-
|
|
4256
|
+
|
|
4257
4257
|
i18n-invalidMinFileSize="kendo.upload.invalidMinFileSize|The text for the invalid min file size restriction message"
|
|
4258
4258
|
invalidMinFileSize="File size too small."
|
|
4259
|
-
|
|
4259
|
+
|
|
4260
4260
|
i18n-pause="kendo.upload.pause|The text for the Pause button"
|
|
4261
4261
|
pause="Pause"
|
|
4262
|
-
|
|
4262
|
+
|
|
4263
4263
|
i18n-remove="kendo.upload.remove|The text for the Remove button"
|
|
4264
4264
|
remove="Remove"
|
|
4265
|
-
|
|
4265
|
+
|
|
4266
4266
|
i18n-resume="kendo.upload.resume|The text for the Resume button"
|
|
4267
4267
|
resume="Resume"
|
|
4268
|
-
|
|
4268
|
+
|
|
4269
4269
|
i18n-retry="kendo.upload.retry|The text for the Retry button"
|
|
4270
4270
|
retry="Retry"
|
|
4271
|
-
|
|
4271
|
+
|
|
4272
4272
|
i18n-select="kendo.upload.select|The text for the Select button"
|
|
4273
4273
|
select="Select files..."
|
|
4274
|
-
|
|
4274
|
+
|
|
4275
4275
|
i18n-uploadSelectedFiles="kendo.upload.uploadSelectedFiles|The text for the Upload files button"
|
|
4276
4276
|
uploadSelectedFiles="Upload"
|
|
4277
4277
|
>
|
|
@@ -4397,7 +4397,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
4397
4397
|
}] } });
|
|
4398
4398
|
|
|
4399
4399
|
/**
|
|
4400
|
-
* Represents the [Kendo UI UploadDropZone directive for Angular](
|
|
4400
|
+
* Represents the [Kendo UI UploadDropZone directive for Angular](https://www.telerik.com/kendo-angular-ui/components/uploads).
|
|
4401
4401
|
* Use this directive to create external drop zones for Upload and FileSelect components.
|
|
4402
4402
|
*
|
|
4403
4403
|
* @example
|
|
@@ -4498,7 +4498,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
4498
4498
|
}] } });
|
|
4499
4499
|
|
|
4500
4500
|
/**
|
|
4501
|
-
* Represents the [Kendo UI UploadDropZone component for Angular](
|
|
4501
|
+
* Represents the [Kendo UI UploadDropZone component for Angular](https://www.telerik.com/kendo-angular-ui/components/uploads).
|
|
4502
4502
|
*
|
|
4503
4503
|
* @example
|
|
4504
4504
|
* ```html
|
|
@@ -4534,7 +4534,7 @@ class UploadDropZoneComponent extends DropZoneBase {
|
|
|
4534
4534
|
iconClass;
|
|
4535
4535
|
/**
|
|
4536
4536
|
* Specifies an SVGIcon to render inside the DropZone.
|
|
4537
|
-
* The input accepts either an [existing Kendo SVG icon](
|
|
4537
|
+
* The input accepts either an [existing Kendo SVG icon](https://www.telerik.com/kendo-angular-ui/components/icons/svgicon/svgicon-list) or a custom one.
|
|
4538
4538
|
*/
|
|
4539
4539
|
set svgIcon(icon) {
|
|
4540
4540
|
if (isDevMode() && icon && this.icon && this.iconClass) {
|
|
@@ -4664,7 +4664,7 @@ const FILESELECT_VALUE_ACCESSOR = {
|
|
|
4664
4664
|
};
|
|
4665
4665
|
let idx = 0;
|
|
4666
4666
|
/**
|
|
4667
|
-
* Represents the [Kendo UI FileSelect component for Angular](
|
|
4667
|
+
* Represents the [Kendo UI FileSelect component for Angular](https://www.telerik.com/kendo-angular-ui/components/uploads/fileselect).
|
|
4668
4668
|
*
|
|
4669
4669
|
* @example
|
|
4670
4670
|
* ```html
|
|
@@ -5080,7 +5080,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
5080
5080
|
}] } });
|
|
5081
5081
|
|
|
5082
5082
|
/**
|
|
5083
|
-
* Custom component messages override default component messages ([more information and example](
|
|
5083
|
+
* Custom component messages override default component messages ([more information and example](https://www.telerik.com/kendo-angular-ui/components/uploads/globalization)).
|
|
5084
5084
|
*
|
|
5085
5085
|
* @example
|
|
5086
5086
|
* ```html
|
|
@@ -16,7 +16,7 @@ import * as i0 from "@angular/core";
|
|
|
16
16
|
*/
|
|
17
17
|
export declare const FILESELECT_VALUE_ACCESSOR: any;
|
|
18
18
|
/**
|
|
19
|
-
* Represents the [Kendo UI FileSelect component for Angular](
|
|
19
|
+
* Represents the [Kendo UI FileSelect component for Angular](https://www.telerik.com/kendo-angular-ui/components/uploads/fileselect).
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
22
|
* ```html
|
|
@@ -6,7 +6,7 @@ import { Messages } from './messages';
|
|
|
6
6
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
|
-
* Custom component messages override default component messages ([more information and example](
|
|
9
|
+
* Custom component messages override default component messages ([more information and example](https://www.telerik.com/kendo-angular-ui/components/uploads/globalization)).
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```html
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "
|
|
10
|
+
"publishDate": 1770286878,
|
|
11
|
+
"version": "23.0.0-develop.1",
|
|
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": "
|
|
3
|
+
"version": "23.0.0-develop.1",
|
|
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": 1770286878,
|
|
23
23
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
@@ -29,17 +29,17 @@
|
|
|
29
29
|
"@angular/core": "19 - 21",
|
|
30
30
|
"@angular/forms": "19 - 21",
|
|
31
31
|
"@angular/platform-browser": "19 - 21",
|
|
32
|
-
"@progress/kendo-licensing": "^1.
|
|
33
|
-
"@progress/kendo-angular-common": "
|
|
34
|
-
"@progress/kendo-angular-l10n": "
|
|
35
|
-
"@progress/kendo-angular-icons": "
|
|
36
|
-
"@progress/kendo-angular-buttons": "
|
|
37
|
-
"@progress/kendo-angular-progressbar": "
|
|
32
|
+
"@progress/kendo-licensing": "^1.10.0",
|
|
33
|
+
"@progress/kendo-angular-common": "23.0.0-develop.1",
|
|
34
|
+
"@progress/kendo-angular-l10n": "23.0.0-develop.1",
|
|
35
|
+
"@progress/kendo-angular-icons": "23.0.0-develop.1",
|
|
36
|
+
"@progress/kendo-angular-buttons": "23.0.0-develop.1",
|
|
37
|
+
"@progress/kendo-angular-progressbar": "23.0.0-develop.1",
|
|
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": "
|
|
42
|
+
"@progress/kendo-angular-schematics": "23.0.0-develop.1"
|
|
43
43
|
},
|
|
44
44
|
"schematics": "./schematics/collection.json",
|
|
45
45
|
"module": "fesm2022/progress-kendo-angular-upload.mjs",
|
|
@@ -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': '
|
|
19
|
-
'@progress/kendo-angular-progressbar': '
|
|
20
|
-
'@progress/kendo-angular-popup': '
|
|
18
|
+
'@progress/kendo-angular-buttons': '23.0.0-develop.1',
|
|
19
|
+
'@progress/kendo-angular-progressbar': '23.0.0-develop.1',
|
|
20
|
+
'@progress/kendo-angular-popup': '23.0.0-develop.1',
|
|
21
21
|
} });
|
|
22
22
|
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
|
23
23
|
}
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
import { TemplateRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
* Customizes the rendering of the file info section in the list. All other elements of the default template, such as file icon, action buttons, and upload progress, are preserved in place. ([See example](
|
|
8
|
+
* Customizes the rendering of the file info section in the list. All other elements of the default template, such as file icon, action buttons, and upload progress, are preserved in place. ([See example](https://www.telerik.com/kendo-angular-ui/components/uploads/upload/templates#file-info-template)).
|
|
9
9
|
*
|
|
10
10
|
* The following context variables are available in the template:
|
|
11
11
|
*
|
|
12
12
|
* * `let-files`—A reference to the files associated with the current item.
|
|
13
|
-
* * `let-state`—A reference to the current state of each file. If the [`batch`](
|
|
13
|
+
* * `let-state`—A reference to the current state of each file. If the [`batch`](https://www.telerik.com/kendo-angular-ui/components/uploads/api/uploadcomponent#batch) option of the Upload is set to `true`, the field reflects the state of the whole batch.
|
|
14
14
|
* * `#myUpload="kendoUpload"` or `#myFileSelect="kendoFileSelect"`—A reference to the instance of the Upload/FileSelect component. It is exported as `kendoUpload`/`kendoFileSelect` by using the [`exportAs`](https://angular.io/api/core/Component) metadata property.
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
import { TemplateRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
* Customizes the rendering of files in the list. ([See example.](
|
|
8
|
+
* Customizes the rendering of files in the list. ([See example.](https://www.telerik.com/kendo-angular-ui/components/uploads/upload/templates#file-template))
|
|
9
9
|
*
|
|
10
10
|
* The following context variables are available in the template:
|
|
11
11
|
*
|
|
12
12
|
* * `let-files`—A reference to the files associated with the current item.
|
|
13
|
-
* * `let-state`—A reference to the current state of each file. If the [`batch`](
|
|
13
|
+
* * `let-state`—A reference to the current state of each file. If the [`batch`](https://www.telerik.com/kendo-angular-ui/components/uploads/api/uploadcomponent#batch) option of the Upload is set to `true`, the field reflects the state of the whole batch.
|
|
14
14
|
* * `#myUpload="kendoUpload"` or `#myFileSelect="kendoFileSelect"`—A reference to the instance of the Upload/FileSelect component. It is exported as `kendoUpload`/`kendoFileSelect` by using the [`exportAs`](https://angular.io/api/core/Component) metadata property.
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
@@ -8,18 +8,18 @@
|
|
|
8
8
|
export interface FileRestrictions {
|
|
9
9
|
/**
|
|
10
10
|
* The list of allowed file extensions
|
|
11
|
-
* ([see example](
|
|
11
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/uploads/upload/restrictions#file-extension)).
|
|
12
12
|
* Accepts entries of both `.type` (for example, `.docx`, `.png`, `.svg`, `.xls`) and `type` (for example, `docx`, `png`, `svg`, `xls`) values.
|
|
13
13
|
*/
|
|
14
14
|
allowedExtensions?: Array<string>;
|
|
15
15
|
/**
|
|
16
16
|
* The maximum file size in bytes
|
|
17
|
-
* ([see example](
|
|
17
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/uploads/upload/restrictions#maximum-file-size)).
|
|
18
18
|
*/
|
|
19
19
|
maxFileSize?: number;
|
|
20
20
|
/**
|
|
21
21
|
* The minimum file size in bytes
|
|
22
|
-
* ([see example](
|
|
22
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/uploads/upload/restrictions#minimum-file-size)).
|
|
23
23
|
*/
|
|
24
24
|
minFileSize?: number;
|
|
25
25
|
}
|
package/upload.component.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ import * as i0 from "@angular/core";
|
|
|
21
21
|
*/
|
|
22
22
|
export declare const UPLOAD_VALUE_ACCESSOR: any;
|
|
23
23
|
/**
|
|
24
|
-
* Represents the [Kendo UI Upload component for Angular](
|
|
24
|
+
* Represents the [Kendo UI Upload component for Angular](https://www.telerik.com/kendo-angular-ui/components/uploads).
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
27
|
* ```html
|
|
@@ -45,7 +45,7 @@ export declare class UploadComponent extends UploadFileSelectBase implements OnI
|
|
|
45
45
|
protected injector: Injector;
|
|
46
46
|
/**
|
|
47
47
|
* Specifies whether selected files upload automatically
|
|
48
|
-
* ([see example](
|
|
48
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/uploads/upload/file-processing#automatic-upload-of-files)).
|
|
49
49
|
* Set `autoUpload` to `false` to change this behavior.
|
|
50
50
|
*
|
|
51
51
|
* @default true
|
|
@@ -54,7 +54,7 @@ export declare class UploadComponent extends UploadFileSelectBase implements OnI
|
|
|
54
54
|
get autoUpload(): boolean;
|
|
55
55
|
/**
|
|
56
56
|
* Specifies whether all files in the selection upload in a single request
|
|
57
|
-
* ([see example](
|
|
57
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/uploads/upload/file-processing#upload-of-batches-of-files)).
|
|
58
58
|
* Files selected one after the other upload in separate requests.
|
|
59
59
|
*
|
|
60
60
|
* @default false
|
|
@@ -63,10 +63,10 @@ export declare class UploadComponent extends UploadFileSelectBase implements OnI
|
|
|
63
63
|
get batch(): boolean;
|
|
64
64
|
/**
|
|
65
65
|
* Specifies whether credentials (cookies, headers) are sent for cross-site requests
|
|
66
|
-
* ([see example](
|
|
66
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/uploads/upload/credentials#attaching-credentials-to-requests)).
|
|
67
67
|
* Set `withCredentials` has no effect on same-site requests.
|
|
68
68
|
* Use the `saveHeaders` or `removeHeaders` property to add credentials to the request.
|
|
69
|
-
* You can also use the [`upload`](
|
|
69
|
+
* You can also use the [`upload`](https://www.telerik.com/kendo-angular-ui/components/uploads/api/uploadevent) event.
|
|
70
70
|
*
|
|
71
71
|
* @default true
|
|
72
72
|
*/
|