@progress/kendo-angular-upload 17.0.0-develop.9 → 17.0.0

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.
Files changed (87) hide show
  1. package/common/action-buttons-layout.d.ts +1 -1
  2. package/common/base.d.ts +1 -1
  3. package/dropzone-external.directive.d.ts +1 -1
  4. package/dropzone-internal.directive.d.ts +1 -1
  5. package/dropzone.component.d.ts +1 -1
  6. package/{esm2020 → esm2022}/common/base.mjs +96 -67
  7. package/{esm2020 → esm2022}/dropzone-base.mjs +13 -9
  8. package/{esm2020 → esm2022}/dropzone-external.directive.mjs +16 -5
  9. package/{esm2020 → esm2022}/dropzone-internal.directive.mjs +14 -6
  10. package/{esm2020 → esm2022}/dropzone.component.mjs +38 -19
  11. package/{esm2020 → esm2022}/dropzone.service.mjs +3 -3
  12. package/{esm2020 → esm2022}/events/cancel-event.mjs +4 -0
  13. package/{esm2020 → esm2022}/events/error-event.mjs +12 -0
  14. package/{esm2020 → esm2022}/events/pause-event.mjs +4 -0
  15. package/{esm2020 → esm2022}/events/preventable-event.mjs +1 -3
  16. package/{esm2020 → esm2022}/events/remove-event.mjs +12 -0
  17. package/{esm2020 → esm2022}/events/resume-event.mjs +4 -0
  18. package/{esm2020 → esm2022}/events/select-event.mjs +4 -0
  19. package/{esm2020 → esm2022}/events/success-event.mjs +12 -0
  20. package/{esm2020 → esm2022}/events/upload-event.mjs +35 -0
  21. package/{esm2020 → esm2022}/events/upload-progress-event.mjs +8 -0
  22. package/{esm2020 → esm2022}/file-select.directive.mjs +17 -8
  23. package/{esm2020 → esm2022}/fileselect.component.mjs +60 -42
  24. package/{esm2020 → esm2022}/fileselect.module.mjs +8 -8
  25. package/{esm2020 → esm2022}/localization/custom-messages.component.mjs +12 -11
  26. package/{esm2020 → esm2022}/localization/localized-messages.directive.mjs +9 -8
  27. package/esm2022/localization/messages.mjs +143 -0
  28. package/{esm2020 → esm2022}/navigation.service.mjs +17 -14
  29. package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
  30. package/{esm2020 → esm2022}/rendering/file-list-item-action-button.component.mjs +15 -9
  31. package/{esm2020 → esm2022}/rendering/file-list-item-base.mjs +7 -4
  32. package/{esm2020 → esm2022}/rendering/file-list-item.mjs +10 -5
  33. package/{esm2020 → esm2022}/rendering/file-list-multiple-items.component.mjs +18 -13
  34. package/{esm2020 → esm2022}/rendering/file-list-single-item.component.mjs +16 -12
  35. package/{esm2020 → esm2022}/rendering/file-list.component.mjs +14 -5
  36. package/{esm2020 → esm2022}/rendering/upload-action-buttons.component.mjs +17 -10
  37. package/{esm2020 → esm2022}/rendering/upload-status-total.component.mjs +14 -8
  38. package/esm2022/templates/file-info-template.directive.mjs +40 -0
  39. package/esm2022/templates/file-template.directive.mjs +40 -0
  40. package/{esm2020 → esm2022}/types/chunk-map.mjs +1 -0
  41. package/{esm2020 → esm2022}/types/file-map.mjs +1 -0
  42. package/{esm2020 → esm2022}/upload.component.mjs +113 -95
  43. package/{esm2020 → esm2022}/upload.module.mjs +8 -8
  44. package/{esm2020 → esm2022}/upload.service.mjs +50 -49
  45. package/{esm2020 → esm2022}/uploads.module.mjs +8 -8
  46. package/{fesm2020 → fesm2022}/progress-kendo-angular-upload.mjs +822 -442
  47. package/file-select.directive.d.ts +1 -1
  48. package/fileselect.component.d.ts +1 -1
  49. package/localization/messages.d.ts +1 -1
  50. package/package.json +16 -22
  51. package/rendering/file-list-item-action-button.component.d.ts +1 -1
  52. package/rendering/file-list-item.d.ts +1 -1
  53. package/rendering/file-list-multiple-items.component.d.ts +1 -1
  54. package/rendering/file-list-single-item.component.d.ts +1 -1
  55. package/rendering/file-list.component.d.ts +1 -1
  56. package/rendering/upload-action-buttons.component.d.ts +1 -1
  57. package/rendering/upload-status-total.component.d.ts +1 -1
  58. package/schematics/ngAdd/index.js +4 -4
  59. package/templates/file-info-template.directive.d.ts +17 -1
  60. package/templates/file-template.directive.d.ts +17 -1
  61. package/types/direction.d.ts +1 -1
  62. package/types/operation-type.d.ts +1 -1
  63. package/upload.component.d.ts +1 -1
  64. package/upload.service.d.ts +1 -1
  65. package/esm2020/localization/messages.mjs +0 -59
  66. package/esm2020/templates/file-info-template.directive.mjs +0 -23
  67. package/esm2020/templates/file-template.directive.mjs +0 -23
  68. package/fesm2015/progress-kendo-angular-upload.mjs +0 -4808
  69. /package/{esm2020 → esm2022}/common/action-buttons-layout.mjs +0 -0
  70. /package/{esm2020 → esm2022}/common/util.mjs +0 -0
  71. /package/{esm2020 → esm2022}/common/validation-util.mjs +0 -0
  72. /package/{esm2020 → esm2022}/directives.mjs +0 -0
  73. /package/{esm2020 → esm2022}/events/clear-event.mjs +0 -0
  74. /package/{esm2020 → esm2022}/events.mjs +0 -0
  75. /package/{esm2020 → esm2022}/index.mjs +0 -0
  76. /package/{esm2020 → esm2022}/progress-kendo-angular-upload.mjs +0 -0
  77. /package/{esm2020 → esm2022}/types/async-settings.mjs +0 -0
  78. /package/{esm2020 → esm2022}/types/chunk-info.mjs +0 -0
  79. /package/{esm2020 → esm2022}/types/chunk-metadata.mjs +0 -0
  80. /package/{esm2020 → esm2022}/types/chunk-settings.mjs +0 -0
  81. /package/{esm2020 → esm2022}/types/direction.mjs +0 -0
  82. /package/{esm2020 → esm2022}/types/file-groups.mjs +0 -0
  83. /package/{esm2020 → esm2022}/types/file-info.mjs +0 -0
  84. /package/{esm2020 → esm2022}/types/file-restrictions.mjs +0 -0
  85. /package/{esm2020 → esm2022}/types/file-state.mjs +0 -0
  86. /package/{esm2020 → esm2022}/types/operation-type.mjs +0 -0
  87. /package/{esm2020 → esm2022}/types.mjs +0 -0
@@ -35,5 +35,5 @@ export declare class FileSelectDirective {
35
35
  get requiredAttribute(): string;
36
36
  onInputChange(event: any): void;
37
37
  static ɵfac: i0.ɵɵFactoryDeclaration<FileSelectDirective, never>;
38
- static ɵdir: i0.ɵɵDirectiveDeclaration<FileSelectDirective, "[kendoFileSelect]", never, { "dir": "dir"; "disabled": "disabled"; "multiple": "multiple"; "restrictions": "restrictions"; "accept": "accept"; "required": "required"; }, {}, never, never, true, never>;
38
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FileSelectDirective, "[kendoFileSelect]", never, { "dir": { "alias": "dir"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "restrictions": { "alias": "restrictions"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, {}, never, never, true, never>;
39
39
  }
@@ -94,5 +94,5 @@ export declare class FileSelectComponent extends UploadFileSelectBase implements
94
94
  private attachEventHandlers;
95
95
  private setDefaultSettings;
96
96
  static ɵfac: i0.ɵɵFactoryDeclaration<FileSelectComponent, never>;
97
- static ɵcmp: i0.ɵɵComponentDeclaration<FileSelectComponent, "kendo-fileselect", ["kendoFileSelect"], { "name": "name"; }, { "valueChange": "valueChange"; }, never, never, true, never>;
97
+ static ɵcmp: i0.ɵɵComponentDeclaration<FileSelectComponent, "kendo-fileselect", ["kendoFileSelect"], { "name": { "alias": "name"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
98
98
  }
@@ -93,5 +93,5 @@ export declare class Messages extends ComponentMessages {
93
93
  */
94
94
  uploadSelectedFiles: string;
95
95
  static ɵfac: i0.ɵɵFactoryDeclaration<Messages, never>;
96
- static ɵdir: i0.ɵɵDirectiveDeclaration<Messages, never, never, { "cancel": "cancel"; "clearSelectedFiles": "clearSelectedFiles"; "dropFilesHere": "dropFilesHere"; "externalDropFilesHere": "externalDropFilesHere"; "filesBatchStatus": "filesBatchStatus"; "filesBatchStatusFailed": "filesBatchStatusFailed"; "filesBatchStatusUploaded": "filesBatchStatusUploaded"; "fileStatusFailed": "fileStatusFailed"; "fileStatusUploaded": "fileStatusUploaded"; "headerStatusPaused": "headerStatusPaused"; "headerStatusUploaded": "headerStatusUploaded"; "headerStatusUploading": "headerStatusUploading"; "invalidFileExtension": "invalidFileExtension"; "invalidMaxFileSize": "invalidMaxFileSize"; "invalidMinFileSize": "invalidMinFileSize"; "pause": "pause"; "remove": "remove"; "resume": "resume"; "retry": "retry"; "select": "select"; "uploadSelectedFiles": "uploadSelectedFiles"; }, {}, never, never, false, never>;
96
+ static ɵdir: i0.ɵɵDirectiveDeclaration<Messages, never, never, { "cancel": { "alias": "cancel"; "required": false; }; "clearSelectedFiles": { "alias": "clearSelectedFiles"; "required": false; }; "dropFilesHere": { "alias": "dropFilesHere"; "required": false; }; "externalDropFilesHere": { "alias": "externalDropFilesHere"; "required": false; }; "filesBatchStatus": { "alias": "filesBatchStatus"; "required": false; }; "filesBatchStatusFailed": { "alias": "filesBatchStatusFailed"; "required": false; }; "filesBatchStatusUploaded": { "alias": "filesBatchStatusUploaded"; "required": false; }; "fileStatusFailed": { "alias": "fileStatusFailed"; "required": false; }; "fileStatusUploaded": { "alias": "fileStatusUploaded"; "required": false; }; "headerStatusPaused": { "alias": "headerStatusPaused"; "required": false; }; "headerStatusUploaded": { "alias": "headerStatusUploaded"; "required": false; }; "headerStatusUploading": { "alias": "headerStatusUploading"; "required": false; }; "invalidFileExtension": { "alias": "invalidFileExtension"; "required": false; }; "invalidMaxFileSize": { "alias": "invalidMaxFileSize"; "required": false; }; "invalidMinFileSize": { "alias": "invalidMinFileSize"; "required": false; }; "pause": { "alias": "pause"; "required": false; }; "remove": { "alias": "remove"; "required": false; }; "resume": { "alias": "resume"; "required": false; }; "retry": { "alias": "retry"; "required": false; }; "select": { "alias": "select"; "required": false; }; "uploadSelectedFiles": { "alias": "uploadSelectedFiles"; "required": false; }; }, {}, never, never, false, never>;
97
97
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-upload",
3
- "version": "17.0.0-develop.9",
3
+ "version": "17.0.0",
4
4
  "description": "Kendo UI Angular Upload Component",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -18,29 +18,25 @@
18
18
  "friendlyName": "Upload"
19
19
  },
20
20
  "peerDependencies": {
21
- "@angular/animations": "15 - 18",
22
- "@angular/common": "15 - 18",
23
- "@angular/core": "15 - 18",
24
- "@angular/forms": "15 - 18",
25
- "@angular/platform-browser": "15 - 18",
21
+ "@angular/animations": "16 - 18",
22
+ "@angular/common": "16 - 18",
23
+ "@angular/core": "16 - 18",
24
+ "@angular/forms": "16 - 18",
25
+ "@angular/platform-browser": "16 - 18",
26
26
  "@progress/kendo-licensing": "^1.0.2",
27
- "@progress/kendo-angular-common": "17.0.0-develop.9",
28
- "@progress/kendo-angular-l10n": "17.0.0-develop.9",
29
- "@progress/kendo-angular-icons": "17.0.0-develop.9",
30
- "@progress/kendo-angular-buttons": "17.0.0-develop.9",
31
- "@progress/kendo-angular-progressbar": "17.0.0-develop.9",
27
+ "@progress/kendo-angular-common": "17.0.0",
28
+ "@progress/kendo-angular-l10n": "17.0.0",
29
+ "@progress/kendo-angular-icons": "17.0.0",
30
+ "@progress/kendo-angular-buttons": "17.0.0",
31
+ "@progress/kendo-angular-progressbar": "17.0.0",
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": "17.0.0-develop.9"
36
+ "@progress/kendo-angular-schematics": "17.0.0"
37
37
  },
38
38
  "schematics": "./schematics/collection.json",
39
- "module": "fesm2015/progress-kendo-angular-upload.mjs",
40
- "es2020": "fesm2020/progress-kendo-angular-upload.mjs",
41
- "esm2020": "esm2020/progress-kendo-angular-upload.mjs",
42
- "fesm2020": "fesm2020/progress-kendo-angular-upload.mjs",
43
- "fesm2015": "fesm2015/progress-kendo-angular-upload.mjs",
39
+ "module": "fesm2022/progress-kendo-angular-upload.mjs",
44
40
  "typings": "index.d.ts",
45
41
  "exports": {
46
42
  "./package.json": {
@@ -48,11 +44,9 @@
48
44
  },
49
45
  ".": {
50
46
  "types": "./index.d.ts",
51
- "esm2020": "./esm2020/progress-kendo-angular-upload.mjs",
52
- "es2020": "./fesm2020/progress-kendo-angular-upload.mjs",
53
- "es2015": "./fesm2015/progress-kendo-angular-upload.mjs",
54
- "node": "./fesm2015/progress-kendo-angular-upload.mjs",
55
- "default": "./fesm2020/progress-kendo-angular-upload.mjs"
47
+ "esm2022": "./esm2022/progress-kendo-angular-upload.mjs",
48
+ "esm": "./esm2022/progress-kendo-angular-upload.mjs",
49
+ "default": "./fesm2022/progress-kendo-angular-upload.mjs"
56
50
  }
57
51
  },
58
52
  "sideEffects": false
@@ -36,5 +36,5 @@ export declare class FileListItemActionButtonComponent {
36
36
  get isResumable(): boolean;
37
37
  get isActionButtonVisible(): boolean;
38
38
  static ɵfac: i0.ɵɵFactoryDeclaration<FileListItemActionButtonComponent, never>;
39
- static ɵcmp: i0.ɵɵComponentDeclaration<FileListItemActionButtonComponent, "kendo-upload-file-list-item-action-button", never, { "file": "file"; "disabled": "disabled"; "progress": "progress"; }, {}, never, never, true, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<FileListItemActionButtonComponent, "kendo-upload-file-list-item-action-button", never, { "file": { "alias": "file"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "progress": { "alias": "progress"; "required": false; }; }, {}, never, never, true, never>;
40
40
  }
@@ -31,5 +31,5 @@ export declare class FileListItemDirective {
31
31
  onBlur(): void;
32
32
  onClick(event: any): void;
33
33
  static ɵfac: i0.ɵɵFactoryDeclaration<FileListItemDirective, never>;
34
- static ɵdir: i0.ɵɵDirectiveDeclaration<FileListItemDirective, "[kendoUploadFileListItem]", never, { "files": "files"; "index": "index"; }, {}, never, never, true, never>;
34
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FileListItemDirective, "[kendoUploadFileListItem]", never, { "files": { "alias": "files"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, {}, never, never, true, never>;
35
35
  }
@@ -28,5 +28,5 @@ export declare class FileListMultipleItemsComponent extends FileListItemBase imp
28
28
  get isUploadSuccessful(): boolean;
29
29
  get isUploadFailed(): boolean;
30
30
  static ɵfac: i0.ɵɵFactoryDeclaration<FileListMultipleItemsComponent, never>;
31
- static ɵcmp: i0.ɵɵComponentDeclaration<FileListMultipleItemsComponent, "kendo-upload-file-list-multiple-items", never, { "disabled": "disabled"; "files": "files"; "fileInfoTemplate": "fileInfoTemplate"; }, {}, never, never, true, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<FileListMultipleItemsComponent, "kendo-upload-file-list-multiple-items", never, { "disabled": { "alias": "disabled"; "required": false; }; "files": { "alias": "files"; "required": false; }; "fileInfoTemplate": { "alias": "fileInfoTemplate"; "required": false; }; }, {}, never, never, true, never>;
32
32
  }
@@ -26,5 +26,5 @@ export declare class FileListSingleItemComponent extends FileListItemBase {
26
26
  get isUploadFailed(): boolean;
27
27
  get isNotYetUploaded(): boolean;
28
28
  static ɵfac: i0.ɵɵFactoryDeclaration<FileListSingleItemComponent, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<FileListSingleItemComponent, "kendo-upload-file-list-single-item", never, { "disabled": "disabled"; "file": "file"; "fileInfoTemplate": "fileInfoTemplate"; }, {}, never, never, true, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<FileListSingleItemComponent, "kendo-upload-file-list-single-item", never, { "disabled": { "alias": "disabled"; "required": false; }; "file": { "alias": "file"; "required": false; }; "fileInfoTemplate": { "alias": "fileInfoTemplate"; "required": false; }; }, {}, never, never, true, never>;
30
30
  }
@@ -31,5 +31,5 @@ export declare class FileListComponent implements OnDestroy {
31
31
  hasDelete(item: FileListItemDirective): boolean;
32
32
  ngOnDestroy(): void;
33
33
  static ɵfac: i0.ɵɵFactoryDeclaration<FileListComponent, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<FileListComponent, "[kendo-upload-file-list]", never, { "disabled": "disabled"; "fileList": "fileList"; "fileTemplate": "fileTemplate"; "fileInfoTemplate": "fileInfoTemplate"; }, {}, never, never, true, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<FileListComponent, "[kendo-upload-file-list]", never, { "disabled": { "alias": "disabled"; "required": false; }; "fileList": { "alias": "fileList"; "required": false; }; "fileTemplate": { "alias": "fileTemplate"; "required": false; }; "fileInfoTemplate": { "alias": "fileInfoTemplate"; "required": false; }; }, {}, never, never, true, never>;
35
35
  }
@@ -32,5 +32,5 @@ export declare class UploadActionButtonsComponent {
32
32
  clearFiles(): void;
33
33
  textFor(key: string): string;
34
34
  static ɵfac: i0.ɵɵFactoryDeclaration<UploadActionButtonsComponent, never>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<UploadActionButtonsComponent, "kendo-upload-action-buttons", never, { "disabled": "disabled"; "actionsLayout": "actionsLayout"; }, {}, never, never, true, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<UploadActionButtonsComponent, "kendo-upload-action-buttons", never, { "disabled": { "alias": "disabled"; "required": false; }; "actionsLayout": { "alias": "actionsLayout"; "required": false; }; }, {}, never, never, true, never>;
36
36
  }
@@ -26,5 +26,5 @@ export declare class UploadStatusTotalComponent implements DoCheck {
26
26
  get SVGIconClass(): SVGIcon;
27
27
  ngDoCheck(): void;
28
28
  static ɵfac: i0.ɵɵFactoryDeclaration<UploadStatusTotalComponent, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<UploadStatusTotalComponent, "kendo-upload-status-total", never, { "fileList": "fileList"; }, {}, never, never, true, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<UploadStatusTotalComponent, "kendo-upload-status-total", never, { "fileList": { "alias": "fileList"; "required": false; }; }, {}, never, never, true, never>;
30
30
  }
@@ -9,10 +9,10 @@ function default_1(options) {
9
9
  }
10
10
  ], peerDependencies: {
11
11
  // peer dep of the icons
12
- '@progress/kendo-svg-icons': '^3.0.0',
13
- '@progress/kendo-angular-buttons': '17.0.0-develop.9',
14
- '@progress/kendo-angular-progressbar': '17.0.0-develop.9',
15
- '@progress/kendo-angular-popup': '17.0.0-develop.9',
12
+ '@progress/kendo-svg-icons': '^4.0.0',
13
+ '@progress/kendo-angular-buttons': '17.0.0',
14
+ '@progress/kendo-angular-progressbar': '17.0.0',
15
+ '@progress/kendo-angular-popup': '17.0.0',
16
16
  } });
17
17
  return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
18
18
  }
@@ -5,7 +5,23 @@
5
5
  import { TemplateRef } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
- * Used to customize the rendering of the file info section in the list. All other elements of the default template, such as file icon, action buttons, upload progress etc. will be preserved in place. ([see example]({% slug templates_upload %}#toc-file-info-template)).
8
+ * Used to customize the rendering of the file info section in the list. All other elements of the default template, such as file icon, action buttons, upload progress etc. will be preserved in place. ([See example.](slug:templates_upload#toc-file-info-template))
9
+ *
10
+ * The following context variables are available in the template:
11
+ *
12
+ * * `let-files`&mdash;Provides a reference to the files which are associated with the current item.
13
+ * * `let-state`&mdash;Gets a reference to the current state of each file. If the [`batch`](slug:api_upload_uploadcomponent#toc-batch) option of the Upload is set to `true`, the field reflects the state of the whole batch.
14
+ * * `#myUpload="kendoUpload"` or `#myFileSelect="kendoFileSelect"`&mdash;Provides 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
+ *
16
+ * @example
17
+ * ```html
18
+ * <kendo-upload #myUpload="kendoUpload" ... >
19
+ * <ng-template kendoUploadFileInfoTemplate let-files let-state>
20
+ * <div>Name: {{ files[0].name }}</div>
21
+ * ...
22
+ * </ng-template>
23
+ * </kendo-upload>
24
+ * ```
9
25
  */
10
26
  export declare class FileInfoTemplateDirective {
11
27
  templateRef: TemplateRef<any>;
@@ -5,7 +5,23 @@
5
5
  import { TemplateRef } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
- * Used to customize the rendering of the files in the list ([see example]({% slug templates_upload %}#toc-file-template)).
8
+ * Used to customize the rendering of the files in the list. ([See example.](slug:templates_upload#toc-file-template))
9
+ *
10
+ * The following context variables are available in the template:
11
+ *
12
+ * * `let-files`&mdash;Provides a reference to the files which are associated with the current item.
13
+ * * `let-state`&mdash;Gets a reference to the current state of each file. If the [`batch`](slug:api_upload_uploadcomponent#toc-batch) option of the Upload is set to `true`, the field reflects the state of the whole batch.
14
+ * * `#myUpload="kendoUpload"` or `#myFileSelect="kendoFileSelect"`&mdash;Provides 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
+ *
16
+ * @example
17
+ * ```html
18
+ * <kendo-upload #myUpload="kendoUpload" ... >
19
+ * <ng-template kendoUploadFileTemplate let-files let-state>
20
+ * <div>Name: {{ files[0].name }} Size: {{ files[0].size }} bytes</div>
21
+ * ...
22
+ * </ng-template>
23
+ * </kendo-upload>
24
+ * ```
9
25
  */
10
26
  export declare class FileTemplateDirective {
11
27
  templateRef: TemplateRef<any>;
@@ -5,4 +5,4 @@
5
5
  /**
6
6
  * @hidden
7
7
  */
8
- export declare type Direction = 'rtl' | 'ltr';
8
+ export type Direction = 'rtl' | 'ltr';
@@ -5,4 +5,4 @@
5
5
  /**
6
6
  * Defines the operation (`upload` or `remove`) for which the `success` or `error` event is raised.
7
7
  */
8
- export declare type OperationType = "upload" | "remove";
8
+ export type OperationType = "upload" | "remove";
@@ -271,5 +271,5 @@ export declare class UploadComponent extends UploadFileSelectBase implements OnI
271
271
  private subscribeFocus;
272
272
  private attachEventHandlers;
273
273
  static ɵfac: i0.ɵɵFactoryDeclaration<UploadComponent, never>;
274
- static ɵcmp: i0.ɵɵComponentDeclaration<UploadComponent, "kendo-upload", ["kendoUpload"], { "autoUpload": "autoUpload"; "batch": "batch"; "withCredentials": "withCredentials"; "saveField": "saveField"; "saveHeaders": "saveHeaders"; "saveMethod": "saveMethod"; "saveUrl": "saveUrl"; "responseType": "responseType"; "removeField": "removeField"; "removeHeaders": "removeHeaders"; "removeMethod": "removeMethod"; "removeUrl": "removeUrl"; "chunkable": "chunkable"; "concurrent": "concurrent"; "showFileList": "showFileList"; "tabIndex": "tabIndex"; "actionsLayout": "actionsLayout"; }, { "cancel": "cancel"; "clear": "clear"; "complete": "complete"; "error": "error"; "pause": "pause"; "resume": "resume"; "success": "success"; "upload": "upload"; "uploadProgress": "uploadProgress"; "valueChange": "valueChange"; }, never, never, true, never>;
274
+ static ɵcmp: i0.ɵɵComponentDeclaration<UploadComponent, "kendo-upload", ["kendoUpload"], { "autoUpload": { "alias": "autoUpload"; "required": false; }; "batch": { "alias": "batch"; "required": false; }; "withCredentials": { "alias": "withCredentials"; "required": false; }; "saveField": { "alias": "saveField"; "required": false; }; "saveHeaders": { "alias": "saveHeaders"; "required": false; }; "saveMethod": { "alias": "saveMethod"; "required": false; }; "saveUrl": { "alias": "saveUrl"; "required": false; }; "responseType": { "alias": "responseType"; "required": false; }; "removeField": { "alias": "removeField"; "required": false; }; "removeHeaders": { "alias": "removeHeaders"; "required": false; }; "removeMethod": { "alias": "removeMethod"; "required": false; }; "removeUrl": { "alias": "removeUrl"; "required": false; }; "chunkable": { "alias": "chunkable"; "required": false; }; "concurrent": { "alias": "concurrent"; "required": false; }; "showFileList": { "alias": "showFileList"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "actionsLayout": { "alias": "actionsLayout"; "required": false; }; }, { "cancel": "cancel"; "clear": "clear"; "complete": "complete"; "error": "error"; "pause": "pause"; "resume": "resume"; "success": "success"; "upload": "upload"; "uploadProgress": "uploadProgress"; "valueChange": "valueChange"; }, never, never, true, never>;
275
275
  }
@@ -13,7 +13,7 @@ import * as i0 from "@angular/core";
13
13
  /**
14
14
  * @hidden
15
15
  */
16
- export declare type ComponentType = 'FileSelect' | 'Upload';
16
+ export type ComponentType = 'FileSelect' | 'Upload';
17
17
  /**
18
18
  * @hidden
19
19
  */
@@ -1,59 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Directive, Input } from '@angular/core';
6
- import { ComponentMessages } from '@progress/kendo-angular-l10n';
7
- import * as i0 from "@angular/core";
8
- /**
9
- * @hidden
10
- */
11
- export class Messages extends ComponentMessages {
12
- }
13
- Messages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
14
- Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: Messages, inputs: { cancel: "cancel", clearSelectedFiles: "clearSelectedFiles", dropFilesHere: "dropFilesHere", externalDropFilesHere: "externalDropFilesHere", filesBatchStatus: "filesBatchStatus", filesBatchStatusFailed: "filesBatchStatusFailed", filesBatchStatusUploaded: "filesBatchStatusUploaded", fileStatusFailed: "fileStatusFailed", fileStatusUploaded: "fileStatusUploaded", headerStatusPaused: "headerStatusPaused", headerStatusUploaded: "headerStatusUploaded", headerStatusUploading: "headerStatusUploading", invalidFileExtension: "invalidFileExtension", invalidMaxFileSize: "invalidMaxFileSize", invalidMinFileSize: "invalidMinFileSize", pause: "pause", remove: "remove", resume: "resume", retry: "retry", select: "select", uploadSelectedFiles: "uploadSelectedFiles" }, usesInheritance: true, ngImport: i0 });
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: Messages, decorators: [{
16
- type: Directive
17
- }], propDecorators: { cancel: [{
18
- type: Input
19
- }], clearSelectedFiles: [{
20
- type: Input
21
- }], dropFilesHere: [{
22
- type: Input
23
- }], externalDropFilesHere: [{
24
- type: Input
25
- }], filesBatchStatus: [{
26
- type: Input
27
- }], filesBatchStatusFailed: [{
28
- type: Input
29
- }], filesBatchStatusUploaded: [{
30
- type: Input
31
- }], fileStatusFailed: [{
32
- type: Input
33
- }], fileStatusUploaded: [{
34
- type: Input
35
- }], headerStatusPaused: [{
36
- type: Input
37
- }], headerStatusUploaded: [{
38
- type: Input
39
- }], headerStatusUploading: [{
40
- type: Input
41
- }], invalidFileExtension: [{
42
- type: Input
43
- }], invalidMaxFileSize: [{
44
- type: Input
45
- }], invalidMinFileSize: [{
46
- type: Input
47
- }], pause: [{
48
- type: Input
49
- }], remove: [{
50
- type: Input
51
- }], resume: [{
52
- type: Input
53
- }], retry: [{
54
- type: Input
55
- }], select: [{
56
- type: Input
57
- }], uploadSelectedFiles: [{
58
- type: Input
59
- }] } });
@@ -1,23 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Directive, TemplateRef } from '@angular/core';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * Used to customize the rendering of the file info section in the list. All other elements of the default template, such as file icon, action buttons, upload progress etc. will be preserved in place. ([see example]({% slug templates_upload %}#toc-file-info-template)).
9
- */
10
- export class FileInfoTemplateDirective {
11
- constructor(templateRef) {
12
- this.templateRef = templateRef;
13
- }
14
- }
15
- FileInfoTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FileInfoTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
16
- FileInfoTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FileInfoTemplateDirective, isStandalone: true, selector: "[kendoUploadFileInfoTemplate], [kendoFileSelectFileInfoTemplate]", ngImport: i0 });
17
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FileInfoTemplateDirective, decorators: [{
18
- type: Directive,
19
- args: [{
20
- selector: '[kendoUploadFileInfoTemplate], [kendoFileSelectFileInfoTemplate]',
21
- standalone: true
22
- }]
23
- }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
@@ -1,23 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Directive, TemplateRef } from '@angular/core';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * Used to customize the rendering of the files in the list ([see example]({% slug templates_upload %}#toc-file-template)).
9
- */
10
- export class FileTemplateDirective {
11
- constructor(templateRef) {
12
- this.templateRef = templateRef;
13
- }
14
- }
15
- FileTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FileTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
16
- FileTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FileTemplateDirective, isStandalone: true, selector: "[kendoUploadFileTemplate], [kendoFileSelectFileTemplate]", ngImport: i0 });
17
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FileTemplateDirective, decorators: [{
18
- type: Directive,
19
- args: [{
20
- selector: '[kendoUploadFileTemplate], [kendoFileSelectFileTemplate]',
21
- standalone: true
22
- }]
23
- }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });