@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
@@ -14,16 +14,25 @@ import * as i2 from "./navigation.service";
14
14
  * @hidden
15
15
  */
16
16
  export class FileSelectDirective {
17
+ uploadService;
18
+ navigation;
19
+ dir;
20
+ disabled;
21
+ multiple;
22
+ restrictions;
23
+ accept;
24
+ required;
25
+ type = "file";
26
+ autocomplete = "off";
27
+ tabIndex = -1;
28
+ ariaHidden = true;
29
+ element;
17
30
  constructor(uploadService, navigation, el) {
18
31
  this.uploadService = uploadService;
19
32
  this.navigation = navigation;
20
- this.type = "file";
21
- this.autocomplete = "off";
22
- this.tabIndex = -1;
23
- this.ariaHidden = true;
24
- this.classNames = true;
25
33
  this.element = el;
26
34
  }
35
+ classNames = true;
27
36
  get nameAttribute() {
28
37
  return this.uploadService.async.saveField;
29
38
  }
@@ -67,10 +76,10 @@ export class FileSelectDirective {
67
76
  this.navigation.focusedIndex = -1;
68
77
  });
69
78
  }
79
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileSelectDirective, deps: [{ token: i1.UploadService }, { token: i2.NavigationService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
80
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FileSelectDirective, isStandalone: true, selector: "[kendoFileSelect]", inputs: { dir: "dir", disabled: "disabled", multiple: "multiple", restrictions: "restrictions", accept: "accept", required: "required" }, host: { listeners: { "change": "onInputChange($event)" }, properties: { "attr.type": "this.type", "attr.autocomplete": "this.autocomplete", "attr.tabindex": "this.tabIndex", "attr.aria-hidden": "this.ariaHidden", "class.k-hidden": "this.classNames", "attr.name": "this.nameAttribute", "attr.multiple": "this.multipleAttribute", "attr.dir": "this.dirAttribute", "attr.disabled": "this.disabledAttribute", "attr.accept": "this.acceptAttribute", "attr.required": "this.requiredAttribute" } }, ngImport: i0 });
70
81
  }
71
- FileSelectDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FileSelectDirective, deps: [{ token: i1.UploadService }, { token: i2.NavigationService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
72
- FileSelectDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FileSelectDirective, isStandalone: true, selector: "[kendoFileSelect]", inputs: { dir: "dir", disabled: "disabled", multiple: "multiple", restrictions: "restrictions", accept: "accept", required: "required" }, host: { listeners: { "change": "onInputChange($event)" }, properties: { "attr.type": "this.type", "attr.autocomplete": "this.autocomplete", "attr.tabindex": "this.tabIndex", "attr.aria-hidden": "this.ariaHidden", "class.k-hidden": "this.classNames", "attr.name": "this.nameAttribute", "attr.multiple": "this.multipleAttribute", "attr.dir": "this.dirAttribute", "attr.disabled": "this.disabledAttribute", "attr.accept": "this.acceptAttribute", "attr.required": "this.requiredAttribute" } }, ngImport: i0 });
73
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FileSelectDirective, decorators: [{
82
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileSelectDirective, decorators: [{
74
83
  type: Directive,
75
84
  args: [{
76
85
  selector: '[kendoFileSelect]',
@@ -37,6 +37,48 @@ export const FILESELECT_VALUE_ACCESSOR = {
37
37
  };
38
38
  let idx = 0;
39
39
  export class FileSelectComponent extends UploadFileSelectBase {
40
+ uploadService;
41
+ localization;
42
+ navigation;
43
+ dropZoneService;
44
+ ngZone;
45
+ renderer;
46
+ cdr;
47
+ injector;
48
+ fileSelectInput;
49
+ get dir() {
50
+ return this.direction;
51
+ }
52
+ /**
53
+ * Sets the `name` attribute of the `input` element of the FileSelect.
54
+ */
55
+ set name(name) {
56
+ this.uploadService.async.saveField = name;
57
+ }
58
+ get name() {
59
+ return this.uploadService.async.saveField;
60
+ }
61
+ /**
62
+ * Fires when the value of the component has changed as a result of a successful `select` or `remove` operation.
63
+ */
64
+ valueChange = new EventEmitter();
65
+ /**
66
+ * @hidden
67
+ */
68
+ _restrictions = {
69
+ allowedExtensions: [],
70
+ maxFileSize: 0,
71
+ minFileSize: 0
72
+ };
73
+ direction;
74
+ wrapper;
75
+ fileListId;
76
+ documentClick; // eslint-disable-line @typescript-eslint/ban-types
77
+ blurSubscription;
78
+ wrapperFocusSubscription;
79
+ selectButtonFocusSubscription;
80
+ localizationChangeSubscription;
81
+ subs;
40
82
  constructor(uploadService, localization, navigation, dropZoneService, ngZone, renderer, cdr, wrapper, injector) {
41
83
  super(uploadService, navigation, cdr, injector, ngZone);
42
84
  this.uploadService = uploadService;
@@ -47,18 +89,6 @@ export class FileSelectComponent extends UploadFileSelectBase {
47
89
  this.renderer = renderer;
48
90
  this.cdr = cdr;
49
91
  this.injector = injector;
50
- /**
51
- * Fires when the value of the component has changed as a result of a successful `select` or `remove` operation.
52
- */
53
- this.valueChange = new EventEmitter();
54
- /**
55
- * @hidden
56
- */
57
- this._restrictions = {
58
- allowedExtensions: [],
59
- maxFileSize: 0,
60
- minFileSize: 0
61
- };
62
92
  validatePackage(packageMetadata);
63
93
  this.wrapper = wrapper.nativeElement;
64
94
  this.direction = localization.rtl ? 'rtl' : 'ltr';
@@ -71,18 +101,6 @@ export class FileSelectComponent extends UploadFileSelectBase {
71
101
  this.attachEventHandlers();
72
102
  this.setDefaultSettings();
73
103
  }
74
- get dir() {
75
- return this.direction;
76
- }
77
- /**
78
- * Sets the `name` attribute of the `input` element of the FileSelect.
79
- */
80
- set name(name) {
81
- this.uploadService.async.saveField = name;
82
- }
83
- get name() {
84
- return this.uploadService.async.saveField;
85
- }
86
104
  ngOnInit() {
87
105
  const { buttonId, fileListId } = this.getIds();
88
106
  this.focusableId = buttonId;
@@ -242,23 +260,22 @@ export class FileSelectComponent extends UploadFileSelectBase {
242
260
  this.uploadService.async.autoUpload = false;
243
261
  this.uploadService.component = 'FileSelect';
244
262
  }
245
- }
246
- FileSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FileSelectComponent, deps: [{ token: i1.UploadService }, { token: i2.LocalizationService }, { token: i3.NavigationService }, { token: i4.DropZoneService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
247
- FileSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: FileSelectComponent, isStandalone: true, selector: "kendo-fileselect", inputs: { name: "name" }, outputs: { valueChange: "valueChange" }, host: { properties: { "attr.dir": "this.dir" } }, providers: [
248
- LocalizationService,
249
- NavigationService,
250
- UploadService,
251
- DropZoneService,
252
- FILESELECT_VALUE_ACCESSOR,
253
- {
254
- provide: L10N_PREFIX,
255
- useValue: 'kendo.fileselect'
256
- },
257
- {
258
- provide: KendoInput,
259
- useExisting: forwardRef(() => FileSelectComponent)
260
- }
261
- ], viewQueries: [{ propertyName: "fileSelectInput", first: true, predicate: ["fileSelectInput"], descendants: true, static: true }], exportAs: ["kendoFileSelect"], usesInheritance: true, ngImport: i0, template: `
263
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileSelectComponent, deps: [{ token: i1.UploadService }, { token: i2.LocalizationService }, { token: i3.NavigationService }, { token: i4.DropZoneService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
264
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FileSelectComponent, isStandalone: true, selector: "kendo-fileselect", inputs: { name: "name" }, outputs: { valueChange: "valueChange" }, host: { properties: { "attr.dir": "this.dir" } }, providers: [
265
+ LocalizationService,
266
+ NavigationService,
267
+ UploadService,
268
+ DropZoneService,
269
+ FILESELECT_VALUE_ACCESSOR,
270
+ {
271
+ provide: L10N_PREFIX,
272
+ useValue: 'kendo.fileselect'
273
+ },
274
+ {
275
+ provide: KendoInput,
276
+ useExisting: forwardRef(() => FileSelectComponent)
277
+ }
278
+ ], viewQueries: [{ propertyName: "fileSelectInput", first: true, predicate: ["fileSelectInput"], descendants: true, static: true }], exportAs: ["kendoFileSelect"], usesInheritance: true, ngImport: i0, template: `
262
279
  <ng-container kendoFileSelectLocalizedMessages
263
280
  i18n-dropFilesHere="kendo.fileselect.dropFilesHere|The drop zone hint"
264
281
  dropFilesHere="Drop files here to select"
@@ -321,7 +338,8 @@ FileSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
321
338
  [id]="fileListId">
322
339
  </ul>
323
340
  `, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "\n [kendoUploadLocalizedMessages],\n [kendoFileSelectLocalizedMessages],\n [kendoUploadDropZoneLocalizedMessages]\n " }, { kind: "directive", type: DropZoneInternalDirective, selector: "\n [kendoUploadInternalDropZone],\n [kendoFileSelectInternalDropZone]\n ", inputs: ["disabled", "multiple", "restrictions"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: FileSelectDirective, selector: "[kendoFileSelect]", inputs: ["dir", "disabled", "multiple", "restrictions", "accept", "required"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: FileListComponent, selector: "[kendo-upload-file-list]", inputs: ["disabled", "fileList", "fileTemplate", "fileInfoTemplate"] }] });
324
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FileSelectComponent, decorators: [{
341
+ }
342
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileSelectComponent, decorators: [{
325
343
  type: Component,
326
344
  args: [{
327
345
  exportAs: 'kendoFileSelect',
@@ -19,15 +19,15 @@ import * as i6 from "./dropzone.component";
19
19
  * Represents the [NgModule](https://angular.io/api/core/NgModule) definition for the FileSelect component.
20
20
  */
21
21
  export class FileSelectModule {
22
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
23
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: FileSelectModule, imports: [i1.FileSelectComponent, i2.FileTemplateDirective, i3.FileInfoTemplateDirective, i4.CustomMessagesComponent, i5.UploadDropZoneDirective, i6.UploadDropZoneComponent], exports: [i1.FileSelectComponent, i2.FileTemplateDirective, i3.FileInfoTemplateDirective, i4.CustomMessagesComponent, i5.UploadDropZoneDirective, i6.UploadDropZoneComponent] });
24
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileSelectModule, providers: [
25
+ IconsService,
26
+ PopupService,
27
+ ResizeBatchService
28
+ ], imports: [i1.FileSelectComponent, i6.UploadDropZoneComponent] });
22
29
  }
23
- FileSelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FileSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
24
- FileSelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: FileSelectModule, imports: [i1.FileSelectComponent, i2.FileTemplateDirective, i3.FileInfoTemplateDirective, i4.CustomMessagesComponent, i5.UploadDropZoneDirective, i6.UploadDropZoneComponent], exports: [i1.FileSelectComponent, i2.FileTemplateDirective, i3.FileInfoTemplateDirective, i4.CustomMessagesComponent, i5.UploadDropZoneDirective, i6.UploadDropZoneComponent] });
25
- FileSelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FileSelectModule, providers: [
26
- IconsService,
27
- PopupService,
28
- ResizeBatchService
29
- ], imports: [i1.FileSelectComponent, i4.CustomMessagesComponent, i6.UploadDropZoneComponent] });
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FileSelectModule, decorators: [{
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileSelectModule, decorators: [{
31
31
  type: NgModule,
32
32
  args: [{
33
33
  exports: [...KENDO_FILESELECT],
@@ -21,22 +21,23 @@ import * as i1 from "@progress/kendo-angular-l10n";
21
21
  * ```
22
22
  */
23
23
  export class CustomMessagesComponent extends Messages {
24
+ service;
25
+ get override() {
26
+ return true;
27
+ }
24
28
  constructor(service) {
25
29
  super();
26
30
  this.service = service;
27
31
  }
28
- get override() {
29
- return true;
30
- }
32
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
33
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CustomMessagesComponent, isStandalone: true, selector: "kendo-upload-messages, kendo-fileselect-messages, kendo-uploaddropzone-messages", providers: [
34
+ {
35
+ provide: Messages,
36
+ useExisting: forwardRef(() => CustomMessagesComponent)
37
+ }
38
+ ], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
31
39
  }
32
- CustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
33
- CustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CustomMessagesComponent, isStandalone: true, selector: "kendo-upload-messages, kendo-fileselect-messages, kendo-uploaddropzone-messages", providers: [
34
- {
35
- provide: Messages,
36
- useExisting: forwardRef(() => CustomMessagesComponent)
37
- }
38
- ], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CustomMessagesComponent, decorators: [{
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomMessagesComponent, decorators: [{
40
41
  type: Component,
41
42
  args: [{
42
43
  providers: [
@@ -11,19 +11,20 @@ import * as i1 from "@progress/kendo-angular-l10n";
11
11
  * @hidden
12
12
  */
13
13
  export class LocalizedMessagesDirective extends Messages {
14
+ service;
14
15
  constructor(service) {
15
16
  super();
16
17
  this.service = service;
17
18
  }
19
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
20
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: LocalizedMessagesDirective, isStandalone: true, selector: "\n [kendoUploadLocalizedMessages],\n [kendoFileSelectLocalizedMessages],\n [kendoUploadDropZoneLocalizedMessages]\n ", providers: [
21
+ {
22
+ provide: Messages,
23
+ useExisting: forwardRef(() => LocalizedMessagesDirective)
24
+ }
25
+ ], usesInheritance: true, ngImport: i0 });
18
26
  }
19
- LocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
20
- LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LocalizedMessagesDirective, isStandalone: true, selector: "\n [kendoUploadLocalizedMessages],\n [kendoFileSelectLocalizedMessages],\n [kendoUploadDropZoneLocalizedMessages]\n ", providers: [
21
- {
22
- provide: Messages,
23
- useExisting: forwardRef(() => LocalizedMessagesDirective)
24
- }
25
- ], usesInheritance: true, ngImport: i0 });
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
27
28
  type: Directive,
28
29
  args: [{
29
30
  providers: [
@@ -0,0 +1,143 @@
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
+ * Sets the text for the **Cancel** button.
14
+ */
15
+ cancel;
16
+ /**
17
+ * Sets the text for the **Clear** button.
18
+ */
19
+ clearSelectedFiles;
20
+ /**
21
+ * Sets the drop-zone hint.
22
+ */
23
+ dropFilesHere;
24
+ /**
25
+ * Sets the external drop-zone hint.
26
+ */
27
+ externalDropFilesHere;
28
+ /**
29
+ * Sets the status message for a batch of files.
30
+ */
31
+ filesBatchStatus;
32
+ /**
33
+ * Sets the status message for a batch of files after failed upload.
34
+ */
35
+ filesBatchStatusFailed;
36
+ /**
37
+ * Sets the status message for a batch of files after successful upload.
38
+ */
39
+ filesBatchStatusUploaded;
40
+ /**
41
+ * Sets the file status message after failed upload.
42
+ */
43
+ fileStatusFailed;
44
+ /**
45
+ * Sets the file status message after successful upload.
46
+ */
47
+ fileStatusUploaded;
48
+ /**
49
+ * Sets the header status message when the file upload is paused.
50
+ */
51
+ headerStatusPaused;
52
+ /**
53
+ * Sets the header status message after the file upload completes.
54
+ */
55
+ headerStatusUploaded;
56
+ /**
57
+ * Sets the header status message during the upload of the file.
58
+ */
59
+ headerStatusUploading;
60
+ /**
61
+ * Sets the text for the invalid `allowedExtensions` restriction message.
62
+ */
63
+ invalidFileExtension;
64
+ /**
65
+ * Sets the text for the invalid `maxFileSize` restriction message.
66
+ */
67
+ invalidMaxFileSize;
68
+ /**
69
+ * Sets the text for the invalid `minFileSize` restriction message.
70
+ */
71
+ invalidMinFileSize;
72
+ /**
73
+ * Sets the text for the **Pause** button.
74
+ */
75
+ pause;
76
+ /**
77
+ * Sets the text for the **Remove** button.
78
+ */
79
+ remove;
80
+ /**
81
+ * Sets the text for the **Resume** button.
82
+ */
83
+ resume;
84
+ /**
85
+ * Sets the text for the **Retry** button.
86
+ */
87
+ retry;
88
+ /**
89
+ * Sets the text for the **Select** button.
90
+ */
91
+ select;
92
+ /**
93
+ * Sets the text for the **Upload files** button.
94
+ */
95
+ uploadSelectedFiles;
96
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
97
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", 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 });
98
+ }
99
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Messages, decorators: [{
100
+ type: Directive
101
+ }], propDecorators: { cancel: [{
102
+ type: Input
103
+ }], clearSelectedFiles: [{
104
+ type: Input
105
+ }], dropFilesHere: [{
106
+ type: Input
107
+ }], externalDropFilesHere: [{
108
+ type: Input
109
+ }], filesBatchStatus: [{
110
+ type: Input
111
+ }], filesBatchStatusFailed: [{
112
+ type: Input
113
+ }], filesBatchStatusUploaded: [{
114
+ type: Input
115
+ }], fileStatusFailed: [{
116
+ type: Input
117
+ }], fileStatusUploaded: [{
118
+ type: Input
119
+ }], headerStatusPaused: [{
120
+ type: Input
121
+ }], headerStatusUploaded: [{
122
+ type: Input
123
+ }], headerStatusUploading: [{
124
+ type: Input
125
+ }], invalidFileExtension: [{
126
+ type: Input
127
+ }], invalidMaxFileSize: [{
128
+ type: Input
129
+ }], invalidMinFileSize: [{
130
+ type: Input
131
+ }], pause: [{
132
+ type: Input
133
+ }], remove: [{
134
+ type: Input
135
+ }], resume: [{
136
+ type: Input
137
+ }], retry: [{
138
+ type: Input
139
+ }], select: [{
140
+ type: Input
141
+ }], uploadSelectedFiles: [{
142
+ type: Input
143
+ }] } });
@@ -11,20 +11,23 @@ import * as i1 from "./upload.service";
11
11
  * @hidden
12
12
  */
13
13
  export class NavigationService {
14
+ uploadService;
15
+ zone;
16
+ onActionButtonFocus = new EventEmitter();
17
+ onFileAction = new EventEmitter();
18
+ onFileFocus = new EventEmitter();
19
+ onTabOut = new EventEmitter();
20
+ onWrapperFocus = new EventEmitter();
21
+ onSelectButtonFocus = new EventEmitter();
22
+ actionButtonsVisible = false;
23
+ fileListVisible = false;
24
+ focused = false;
25
+ keyBindings;
26
+ focusedFileIndex = 0;
27
+ _focusedIndex = -1;
14
28
  constructor(uploadService, zone) {
15
29
  this.uploadService = uploadService;
16
30
  this.zone = zone;
17
- this.onActionButtonFocus = new EventEmitter();
18
- this.onFileAction = new EventEmitter();
19
- this.onFileFocus = new EventEmitter();
20
- this.onTabOut = new EventEmitter();
21
- this.onWrapperFocus = new EventEmitter();
22
- this.onSelectButtonFocus = new EventEmitter();
23
- this.actionButtonsVisible = false;
24
- this.fileListVisible = false;
25
- this.focused = false;
26
- this.focusedFileIndex = 0;
27
- this._focusedIndex = -1;
28
31
  }
29
32
  action(event) {
30
33
  const key = event.keyCode;
@@ -139,9 +142,9 @@ export class NavigationService {
139
142
  const fileCount = this.uploadService.files.count;
140
143
  return this.actionButtonsVisible ? fileCount + 1 : fileCount - 1;
141
144
  }
145
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigationService, deps: [{ token: i1.UploadService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
146
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigationService });
142
147
  }
143
- NavigationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NavigationService, deps: [{ token: i1.UploadService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
144
- NavigationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NavigationService });
145
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NavigationService, decorators: [{
148
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigationService, decorators: [{
146
149
  type: Injectable
147
150
  }], ctorParameters: function () { return [{ type: i1.UploadService }, { type: i0.NgZone }]; } });
@@ -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: 1729174367,
13
- version: '17.0.0-develop.9',
12
+ publishDate: 1731413934,
13
+ version: '17.0.0',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -18,15 +18,21 @@ import * as i3 from "./../navigation.service";
18
18
  * @hidden
19
19
  */
20
20
  export class FileListItemActionButtonComponent {
21
+ uploadService;
22
+ localization;
23
+ navigation;
24
+ file;
25
+ disabled;
26
+ progress;
27
+ retrySVGIcon = arrowRotateCwSmallIcon;
28
+ playSVGIcon = playSmIcon;
29
+ pauseSVGIcon = pauseSmIcon;
30
+ cancelSVGIcon = cancelIcon;
31
+ deleteSVGIcon = xIcon;
21
32
  constructor(uploadService, localization, navigation) {
22
33
  this.uploadService = uploadService;
23
34
  this.localization = localization;
24
35
  this.navigation = navigation;
25
- this.retrySVGIcon = arrowRotateCwSmallIcon;
26
- this.playSVGIcon = playSmIcon;
27
- this.pauseSVGIcon = pauseSmIcon;
28
- this.cancelSVGIcon = cancelIcon;
29
- this.deleteSVGIcon = xIcon;
30
36
  }
31
37
  onRetryClick() {
32
38
  if (this.disabled) {
@@ -97,9 +103,8 @@ export class FileListItemActionButtonComponent {
97
103
  }
98
104
  return true;
99
105
  }
100
- }
101
- FileListItemActionButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FileListItemActionButtonComponent, deps: [{ token: i1.UploadService }, { token: i2.LocalizationService }, { token: i3.NavigationService }], target: i0.ɵɵFactoryTarget.Component });
102
- FileListItemActionButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: FileListItemActionButtonComponent, isStandalone: true, selector: "kendo-upload-file-list-item-action-button", inputs: { file: "file", disabled: "disabled", progress: "progress" }, ngImport: i0, template: `
106
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileListItemActionButtonComponent, deps: [{ token: i1.UploadService }, { token: i2.LocalizationService }, { token: i3.NavigationService }], target: i0.ɵɵFactoryTarget.Component });
107
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FileListItemActionButtonComponent, isStandalone: true, selector: "kendo-upload-file-list-item-action-button", inputs: { file: "file", disabled: "disabled", progress: "progress" }, ngImport: i0, template: `
103
108
  <span class="k-upload-actions">
104
109
  <span class="k-upload-pct" *ngIf="isUploading || isPaused">{{progress}}%</span>
105
110
 
@@ -149,7 +154,8 @@ FileListItemActionButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion
149
154
  ></button>
150
155
  </span>
151
156
  `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
152
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FileListItemActionButtonComponent, decorators: [{
157
+ }
158
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileListItemActionButtonComponent, decorators: [{
153
159
  type: Component,
154
160
  args: [{
155
161
  selector: 'kendo-upload-file-list-item-action-button',
@@ -11,9 +11,12 @@ import * as i1 from "../upload.service";
11
11
  * @hidden
12
12
  */
13
13
  export class FileListItemBase {
14
+ uploadService;
15
+ progressComplete = 0;
16
+ localization;
17
+ uploadProgressSubscription;
14
18
  constructor(uploadService) {
15
19
  this.uploadService = uploadService;
16
- this.progressComplete = 0;
17
20
  }
18
21
  subscribeUploadProgress(uploadProgressHandler) {
19
22
  this.uploadProgressSubscription = this.uploadService.uploadProgressEvent.subscribe(uploadProgressHandler);
@@ -40,10 +43,10 @@ export class FileListItemBase {
40
43
  textFor(key) {
41
44
  return this.localization.get(key);
42
45
  }
46
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileListItemBase, deps: [{ token: i1.UploadService }], target: i0.ɵɵFactoryTarget.Component });
47
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FileListItemBase, selector: "ng-component", ngImport: i0, template: '', isInline: true });
43
48
  }
44
- FileListItemBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FileListItemBase, deps: [{ token: i1.UploadService }], target: i0.ɵɵFactoryTarget.Component });
45
- FileListItemBase.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: FileListItemBase, selector: "ng-component", ngImport: i0, template: '', isInline: true });
46
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FileListItemBase, decorators: [{
49
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileListItemBase, decorators: [{
47
50
  type: Component,
48
51
  args: [{ template: '' }]
49
52
  }], ctorParameters: function () { return [{ type: i1.UploadService }]; } });
@@ -14,11 +14,16 @@ import * as i2 from "../upload.service";
14
14
  * @hidden
15
15
  */
16
16
  export class FileListItemDirective {
17
+ navigationService;
18
+ uploadService;
19
+ files;
20
+ index;
21
+ fileClass = true;
22
+ focused = false;
23
+ element;
17
24
  constructor(el, navigationService, uploadService) {
18
25
  this.navigationService = navigationService;
19
26
  this.uploadService = uploadService;
20
- this.fileClass = true;
21
- this.focused = false;
22
27
  this.element = el;
23
28
  }
24
29
  focus() {
@@ -61,10 +66,10 @@ export class FileListItemDirective {
61
66
  this.navigationService.focusedIndex = this.navigationService.focusedFileIndex = this.index;
62
67
  }
63
68
  }
69
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileListItemDirective, deps: [{ token: i0.ElementRef }, { token: i1.NavigationService }, { token: i2.UploadService }], target: i0.ɵɵFactoryTarget.Directive });
70
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FileListItemDirective, isStandalone: true, selector: "[kendoUploadFileListItem]", inputs: { files: "files", index: "index" }, host: { listeners: { "focus": "onFocus()", "blur": "onBlur()", "click": "onClick($event)" }, properties: { "class.k-file": "this.fileClass", "attr.data-uid": "this.uidAttribute", "attr.tabIndex": "this.tabIndex", "class.k-file-error": "this.kFileError", "class.k-file-invalid": "this.kFileInvalid", "class.k-file-progress": "this.kFileProgress", "class.k-file-success": "this.kFileSuccess", "class.k-focus": "this.kStateFocused" } }, ngImport: i0 });
64
71
  }
65
- FileListItemDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FileListItemDirective, deps: [{ token: i0.ElementRef }, { token: i1.NavigationService }, { token: i2.UploadService }], target: i0.ɵɵFactoryTarget.Directive });
66
- FileListItemDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FileListItemDirective, isStandalone: true, selector: "[kendoUploadFileListItem]", inputs: { files: "files", index: "index" }, host: { listeners: { "focus": "onFocus()", "blur": "onBlur()", "click": "onClick($event)" }, properties: { "class.k-file": "this.fileClass", "attr.data-uid": "this.uidAttribute", "attr.tabIndex": "this.tabIndex", "class.k-file-error": "this.kFileError", "class.k-file-invalid": "this.kFileInvalid", "class.k-file-progress": "this.kFileProgress", "class.k-file-success": "this.kFileSuccess", "class.k-focus": "this.kStateFocused" } }, ngImport: i0 });
67
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FileListItemDirective, decorators: [{
72
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileListItemDirective, decorators: [{
68
73
  type: Directive,
69
74
  args: [{
70
75
  selector: '[kendoUploadFileListItem]',