@progress/kendo-angular-upload 9.0.4 → 11.0.0-develop.79

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 (130) hide show
  1. package/NOTICE.txt +3 -3
  2. package/common/action-buttons-layout.d.ts +1 -1
  3. package/common/util.d.ts +1 -1
  4. package/common/validation-util.d.ts +1 -1
  5. package/dropzone-base.d.ts +2 -2
  6. package/dropzone-external.directive.d.ts +1 -1
  7. package/dropzone-internal.directive.d.ts +1 -1
  8. package/dropzone.component.d.ts +1 -1
  9. package/dropzone.service.d.ts +1 -1
  10. package/{esm2015/types/chunk-metadata.js → esm2020/common/action-buttons-layout.mjs} +1 -1
  11. package/{esm2015/common/util.js → esm2020/common/util.mjs} +9 -9
  12. package/{esm2015/common/validation-util.js → esm2020/common/validation-util.mjs} +2 -2
  13. package/{esm2015/dropzone-base.js → esm2020/dropzone-base.mjs} +5 -5
  14. package/{esm2015/dropzone-external.directive.js → esm2020/dropzone-external.directive.mjs} +5 -5
  15. package/{esm2015/dropzone-internal.directive.js → esm2020/dropzone-internal.directive.mjs} +11 -7
  16. package/{esm2015/dropzone.component.js → esm2020/dropzone.component.mjs} +5 -5
  17. package/{esm2015/dropzone.service.js → esm2020/dropzone.service.mjs} +5 -5
  18. package/{esm2015/events/cancel-event.js → esm2020/events/cancel-event.mjs} +1 -1
  19. package/{esm2015/events/clear-event.js → esm2020/events/clear-event.mjs} +1 -1
  20. package/{esm2015/events/error-event.js → esm2020/events/error-event.mjs} +1 -1
  21. package/{esm2015/events/pause-event.js → esm2020/events/pause-event.mjs} +1 -1
  22. package/{esm2015/events/preventable-event.js → esm2020/events/preventable-event.mjs} +1 -1
  23. package/{esm2015/events/remove-event.js → esm2020/events/remove-event.mjs} +1 -1
  24. package/{esm2015/events/resume-event.js → esm2020/events/resume-event.mjs} +1 -1
  25. package/{esm2015/events/select-event.js → esm2020/events/select-event.mjs} +1 -1
  26. package/{esm2015/events/success-event.js → esm2020/events/success-event.mjs} +1 -1
  27. package/{esm2015/events/upload-event.js → esm2020/events/upload-event.mjs} +1 -1
  28. package/{esm2015/events/upload-progress-event.js → esm2020/events/upload-progress-event.mjs} +1 -1
  29. package/{esm2015/events.js → esm2020/events.mjs} +1 -1
  30. package/{esm2015/file-select.directive.js → esm2020/file-select.directive.mjs} +7 -5
  31. package/{esm2015/fileselect.component.js → esm2020/fileselect.component.mjs} +100 -60
  32. package/{esm2015/fileselect.module.js → esm2020/fileselect.module.mjs} +5 -5
  33. package/{esm2015/main.js → esm2020/index.mjs} +2 -1
  34. package/{esm2015/localization/custom-messages.component.js → esm2020/localization/custom-messages.component.mjs} +5 -4
  35. package/{esm2015/localization/localized-messages.directive.js → esm2020/localization/localized-messages.directive.mjs} +5 -4
  36. package/{esm2015/localization/messages.js → esm2020/localization/messages.mjs} +4 -4
  37. package/{esm2015/navigation.service.js → esm2020/navigation.service.mjs} +56 -40
  38. package/{esm2015/package-metadata.js → esm2020/package-metadata.mjs} +3 -3
  39. package/{esm2015/kendo-angular-upload.js → esm2020/progress-kendo-angular-upload.mjs} +2 -2
  40. package/{esm2015/rendering/file-list-item-action-button.component.js → esm2020/rendering/file-list-item-action-button.component.mjs} +11 -8
  41. package/{esm2015/rendering/file-list-item-base.js → esm2020/rendering/file-list-item-base.mjs} +5 -4
  42. package/{esm2015/rendering/file-list-item.js → esm2020/rendering/file-list-item.mjs} +7 -5
  43. package/{esm2015/rendering/file-list-multiple-items.component.js → esm2020/rendering/file-list-multiple-items.component.mjs} +84 -83
  44. package/{esm2015/rendering/file-list-single-item.component.js → esm2020/rendering/file-list-single-item.component.mjs} +76 -69
  45. package/{esm2015/rendering/file-list.component.js → esm2020/rendering/file-list.component.mjs} +16 -11
  46. package/{esm2015/rendering/upload-action-buttons.component.js → esm2020/rendering/upload-action-buttons.component.mjs} +8 -5
  47. package/{esm2015/rendering/upload-status-total.component.js → esm2020/rendering/upload-status-total.component.mjs} +6 -4
  48. package/{esm2015/shared.module.js → esm2020/shared.module.mjs} +14 -9
  49. package/{esm2015/templates/file-info-template.directive.js → esm2020/templates/file-info-template.directive.mjs} +5 -5
  50. package/{esm2015/templates/file-template.directive.js → esm2020/templates/file-template.directive.mjs} +5 -5
  51. package/{esm2015/templates/template-context.directive.js → esm2020/templates/template-context.directive.mjs} +5 -5
  52. package/{esm2015/common/action-buttons-layout.js → esm2020/types/async-settings.mjs} +1 -1
  53. package/{esm2015/types/chunk-info.js → esm2020/types/chunk-info.mjs} +1 -1
  54. package/{esm2015/types/chunk-map.js → esm2020/types/chunk-map.mjs} +1 -1
  55. package/{esm2015/types/async-settings.js → esm2020/types/chunk-metadata.mjs} +1 -1
  56. package/esm2020/types/chunk-settings.mjs +5 -0
  57. package/esm2020/types/direction.mjs +5 -0
  58. package/{esm2015/types/file-groups.js → esm2020/types/file-groups.mjs} +1 -1
  59. package/esm2020/types/file-info.mjs +5 -0
  60. package/{esm2015/types/file-map.js → esm2020/types/file-map.mjs} +26 -26
  61. package/esm2020/types/file-restrictions.mjs +5 -0
  62. package/{esm2015/types/file-state.js → esm2020/types/file-state.mjs} +1 -1
  63. package/esm2020/types/operation-type.mjs +5 -0
  64. package/{esm2015/types.js → esm2020/types.mjs} +1 -1
  65. package/{esm2015/upload.component.js → esm2020/upload.component.mjs} +125 -80
  66. package/{esm2015/upload.module.js → esm2020/upload.module.mjs} +5 -5
  67. package/{esm2015/upload.service.js → esm2020/upload.service.mjs} +35 -35
  68. package/{esm2015/uploads.module.js → esm2020/uploads.module.mjs} +5 -5
  69. package/events/cancel-event.d.ts +1 -1
  70. package/events/clear-event.d.ts +1 -1
  71. package/events/error-event.d.ts +1 -1
  72. package/events/pause-event.d.ts +1 -1
  73. package/events/preventable-event.d.ts +1 -1
  74. package/events/remove-event.d.ts +1 -1
  75. package/events/resume-event.d.ts +1 -1
  76. package/events/select-event.d.ts +1 -1
  77. package/events/success-event.d.ts +1 -1
  78. package/events/upload-event.d.ts +1 -1
  79. package/events/upload-progress-event.d.ts +3 -3
  80. package/events.d.ts +1 -1
  81. package/fesm2015/progress-kendo-angular-upload.mjs +4864 -0
  82. package/{fesm2015/kendo-angular-upload.js → fesm2020/progress-kendo-angular-upload.mjs} +571 -467
  83. package/file-select.directive.d.ts +1 -1
  84. package/fileselect.component.d.ts +13 -8
  85. package/fileselect.module.d.ts +1 -1
  86. package/{main.d.ts → index.d.ts} +2 -1
  87. package/localization/custom-messages.component.d.ts +1 -1
  88. package/localization/localized-messages.directive.d.ts +1 -1
  89. package/localization/messages.d.ts +1 -1
  90. package/navigation.service.d.ts +4 -3
  91. package/package-metadata.d.ts +1 -1
  92. package/package.json +29 -55
  93. package/{kendo-angular-upload.d.ts → progress-kendo-angular-upload.d.ts} +2 -2
  94. package/rendering/file-list-item-action-button.component.d.ts +2 -2
  95. package/rendering/file-list-item-base.d.ts +2 -2
  96. package/rendering/file-list-item.d.ts +1 -1
  97. package/rendering/file-list-multiple-items.component.d.ts +1 -1
  98. package/rendering/file-list-single-item.component.d.ts +1 -1
  99. package/rendering/file-list.component.d.ts +1 -1
  100. package/rendering/upload-action-buttons.component.d.ts +1 -1
  101. package/rendering/upload-status-total.component.d.ts +1 -1
  102. package/schematics/ngAdd/index.js +6 -6
  103. package/shared.module.d.ts +4 -2
  104. package/templates/file-info-template.directive.d.ts +1 -1
  105. package/templates/file-template.directive.d.ts +1 -1
  106. package/templates/template-context.directive.d.ts +1 -1
  107. package/types/async-settings.d.ts +1 -1
  108. package/types/chunk-info.d.ts +1 -1
  109. package/types/chunk-map.d.ts +1 -1
  110. package/types/chunk-metadata.d.ts +1 -1
  111. package/types/chunk-settings.d.ts +1 -1
  112. package/types/direction.d.ts +1 -1
  113. package/types/file-groups.d.ts +1 -1
  114. package/types/file-info.d.ts +1 -1
  115. package/types/file-map.d.ts +1 -1
  116. package/types/file-restrictions.d.ts +1 -1
  117. package/types/file-state.d.ts +1 -1
  118. package/types/operation-type.d.ts +1 -1
  119. package/types.d.ts +1 -1
  120. package/upload.component.d.ts +15 -10
  121. package/upload.module.d.ts +1 -1
  122. package/upload.service.d.ts +1 -1
  123. package/uploads.module.d.ts +1 -1
  124. package/bundles/kendo-angular-upload.umd.js +0 -5
  125. package/esm2015/types/chunk-settings.js +0 -5
  126. package/esm2015/types/direction.js +0 -5
  127. package/esm2015/types/file-info.js +0 -5
  128. package/esm2015/types/file-restrictions.js +0 -5
  129. package/esm2015/types/operation-type.js +0 -5
  130. package/schematics/ngAdd/index.js.map +0 -1
@@ -1,8 +1,11 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { Component, ContentChild, EventEmitter, forwardRef, HostBinding, HostListener, Input, Output, ViewChild, isDevMode } from '@angular/core';
5
+ /* eslint-disable @typescript-eslint/no-unused-vars */
6
+ /* eslint-disable @typescript-eslint/no-explicit-any */
7
+ import { HttpHeaders } from '@angular/common/http';
8
+ import { Component, ContentChild, ElementRef, EventEmitter, forwardRef, HostBinding, Input, NgZone, Output, Renderer2, ViewChild, isDevMode, ChangeDetectorRef } from '@angular/core';
6
9
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
7
10
  import { guid, isDocumentAvailable, KendoInput, Keys, isChanged } from '@progress/kendo-angular-common';
8
11
  import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
@@ -22,13 +25,14 @@ import * as i1 from "./upload.service";
22
25
  import * as i2 from "@progress/kendo-angular-l10n";
23
26
  import * as i3 from "./navigation.service";
24
27
  import * as i4 from "./dropzone.service";
25
- import * as i5 from "./rendering/upload-status-total.component";
26
- import * as i6 from "./rendering/file-list.component";
27
- import * as i7 from "./rendering/upload-action-buttons.component";
28
- import * as i8 from "./localization/localized-messages.directive";
29
- import * as i9 from "./dropzone-internal.directive";
30
- import * as i10 from "./file-select.directive";
31
- import * as i11 from "@angular/common";
28
+ import * as i5 from "@progress/kendo-angular-buttons";
29
+ import * as i6 from "./rendering/upload-status-total.component";
30
+ import * as i7 from "./rendering/file-list.component";
31
+ import * as i8 from "./rendering/upload-action-buttons.component";
32
+ import * as i9 from "./localization/localized-messages.directive";
33
+ import * as i10 from "./dropzone-internal.directive";
34
+ import * as i11 from "./file-select.directive";
35
+ import * as i12 from "@angular/common";
32
36
  /**
33
37
  * @hidden
34
38
  */
@@ -37,16 +41,17 @@ export const UPLOAD_VALUE_ACCESSOR = {
37
41
  provide: NG_VALUE_ACCESSOR,
38
42
  useExisting: forwardRef(() => UploadComponent)
39
43
  };
44
+ let idx = 0;
40
45
  /**
41
46
  * Represents the [Kendo UI Upload component for Angular]({% slug overview_upload %}).
42
47
  */
43
48
  export class UploadComponent {
44
- constructor(uploadService, localization, navigation, dropZoneService, _ngZone, renderer, cdr, wrapper) {
49
+ constructor(uploadService, localization, navigation, dropZoneService, zone, renderer, cdr, wrapper) {
45
50
  this.uploadService = uploadService;
46
51
  this.localization = localization;
47
52
  this.navigation = navigation;
48
53
  this.dropZoneService = dropZoneService;
49
- this._ngZone = _ngZone;
54
+ this.zone = zone;
50
55
  this.renderer = renderer;
51
56
  this.cdr = cdr;
52
57
  /**
@@ -311,7 +316,7 @@ export class UploadComponent {
311
316
  * Sets the restrictions for selected files ([see example]({% slug api_upload_filerestrictions %})).
312
317
  */
313
318
  set restrictions(restrictions) {
314
- let parsedRestrictions = Object.assign({}, this._restrictions, restrictions);
319
+ const parsedRestrictions = Object.assign({}, this._restrictions, restrictions);
315
320
  this._restrictions = parsedRestrictions;
316
321
  }
317
322
  get restrictions() {
@@ -330,6 +335,25 @@ export class UploadComponent {
330
335
  if (this.zoneId) {
331
336
  this.dropZoneService.addComponent(this, this.zoneId);
332
337
  }
338
+ const button = this.fileSelectButton.nativeElement;
339
+ const input = this.fileSelectInput.nativeElement;
340
+ this.subs.add(this.renderer.listen(input, 'mouseenter', () => {
341
+ this.renderer.addClass(button, 'k-hover');
342
+ }));
343
+ this.subs.add(this.renderer.listen(input, 'mouseleave', () => {
344
+ this.renderer.removeClass(button, 'k-hover');
345
+ }));
346
+ this.zone.runOutsideAngular(() => {
347
+ this.subs.add(this.renderer.listen(this.wrapper, 'keydown', event => this.handleKeydown(event)));
348
+ });
349
+ }
350
+ ngAfterViewInit() {
351
+ const { buttonId, inputId } = this.getIds();
352
+ const button = this.fileSelectButton.nativeElement;
353
+ const input = this.fileSelectInput.nativeElement;
354
+ this.renderer.setAttribute(button, 'id', buttonId);
355
+ this.renderer.setAttribute(button, 'aria-controls', inputId);
356
+ this.renderer.setAttribute(input, 'id', inputId);
333
357
  }
334
358
  ngOnChanges(changes) {
335
359
  if (isChanged("chunkable", changes)) {
@@ -361,24 +385,6 @@ export class UploadComponent {
361
385
  this.subs.unsubscribe();
362
386
  }
363
387
  }
364
- /**
365
- * @hidden
366
- */
367
- handleKeydown(event) {
368
- if (this.disabled) {
369
- return;
370
- }
371
- if ((event.keyCode === Keys.Enter || event.keyCode === Keys.Space) &&
372
- event.target === this.fileSelectButton.nativeElement) {
373
- event.preventDefault();
374
- this.fileSelect.nativeElement.click();
375
- return;
376
- }
377
- if (hasClasses(event.target, UPLOAD_CLASSES) ||
378
- (!isFocusable(event.target) && !hasClasses(event.target, IGNORE_TARGET_CLASSES))) {
379
- this.navigation.process(event);
380
- }
381
- }
382
388
  /**
383
389
  * @hidden
384
390
  */
@@ -477,6 +483,16 @@ export class UploadComponent {
477
483
  textFor(key) {
478
484
  return this.localization.get(key);
479
485
  }
486
+ /**
487
+ * @hidden
488
+ */
489
+ getIds() {
490
+ const id = ++idx;
491
+ const buttonId = `k-upload-button-${id}`;
492
+ const inputId = `k-upload-input-${id}`;
493
+ return { buttonId, inputId };
494
+ }
495
+ ;
480
496
  /**
481
497
  * Focuses the underlying input element.
482
498
  */
@@ -587,13 +603,13 @@ export class UploadComponent {
587
603
  if (!isDocumentAvailable()) {
588
604
  return;
589
605
  }
590
- this._ngZone.runOutsideAngular(() => {
606
+ this.zone.runOutsideAngular(() => {
591
607
  this.documentClick = fromEvent(document, 'click').pipe(filter((event) => {
592
608
  return !(this.wrapper !== event.target && this.wrapper.contains(event.target));
593
609
  }));
594
610
  this.blurSubscription = merge(this.documentClick, this.navigation.onTab).subscribe(() => {
595
611
  if (this.navigation.focused) {
596
- this._ngZone.run(() => {
612
+ this.zone.run(() => {
597
613
  this.navigation.focused = false;
598
614
  this.onTouchedCallback();
599
615
  this.onBlur.emit();
@@ -602,6 +618,21 @@ export class UploadComponent {
602
618
  });
603
619
  });
604
620
  }
621
+ handleKeydown(event) {
622
+ if (this.disabled) {
623
+ return;
624
+ }
625
+ if ((event.keyCode === Keys.Enter || event.keyCode === Keys.Space) &&
626
+ event.target === this.fileSelectButton.nativeElement) {
627
+ event.preventDefault();
628
+ this.fileSelectInput.nativeElement.click();
629
+ return;
630
+ }
631
+ if (hasClasses(event.target, UPLOAD_CLASSES) ||
632
+ (!isFocusable(event.target) && !hasClasses(event.target, IGNORE_TARGET_CLASSES))) {
633
+ this.navigation.process(event);
634
+ }
635
+ }
605
636
  subscribeFocus() {
606
637
  this.wrapperFocusSubscription = this.navigation.onWrapperFocus.subscribe(() => {
607
638
  this.onFocus.emit();
@@ -650,8 +681,8 @@ export class UploadComponent {
650
681
  }));
651
682
  }
652
683
  }
653
- UploadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UploadComponent, 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 }], target: i0.ɵɵFactoryTarget.Component });
654
- UploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: UploadComponent, selector: "kendo-upload", inputs: { 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", multiple: "multiple", disabled: "disabled", showFileList: "showFileList", tabindex: "tabindex", zoneId: "zoneId", tabIndex: "tabIndex", accept: "accept", restrictions: "restrictions", focusableId: "focusableId", actionsLayout: "actionsLayout" }, outputs: { onBlur: "blur", cancel: "cancel", clear: "clear", complete: "complete", error: "error", onFocus: "focus", pause: "pause", remove: "remove", resume: "resume", select: "select", success: "success", upload: "upload", uploadProgress: "uploadProgress", valueChange: "valueChange" }, host: { listeners: { "keydown": "handleKeydown($event)" }, properties: { "class.k-widget": "this.hostDefaultClasses", "class.k-upload": "this.hostDefaultClasses", "class.k-disabled": "this.hostDisabledClass", "attr.dir": "this.dir" } }, providers: [
684
+ UploadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UploadComponent, 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 }], target: i0.ɵɵFactoryTarget.Component });
685
+ UploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: UploadComponent, selector: "kendo-upload", inputs: { 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", multiple: "multiple", disabled: "disabled", showFileList: "showFileList", tabindex: "tabindex", zoneId: "zoneId", tabIndex: "tabIndex", accept: "accept", restrictions: "restrictions", focusableId: "focusableId", actionsLayout: "actionsLayout" }, outputs: { onBlur: "blur", cancel: "cancel", clear: "clear", complete: "complete", error: "error", onFocus: "focus", pause: "pause", remove: "remove", resume: "resume", select: "select", success: "success", upload: "upload", uploadProgress: "uploadProgress", valueChange: "valueChange" }, host: { properties: { "class.k-upload": "this.hostDefaultClasses", "class.k-disabled": "this.hostDisabledClass", "attr.dir": "this.dir" } }, providers: [
655
686
  LocalizationService,
656
687
  NavigationService,
657
688
  UploadService,
@@ -665,7 +696,7 @@ UploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
665
696
  provide: KendoInput,
666
697
  useExisting: forwardRef(() => UploadComponent)
667
698
  }
668
- ], queries: [{ propertyName: "fileTemplate", first: true, predicate: FileTemplateDirective, descendants: true }, { propertyName: "fileInfoTemplate", first: true, predicate: FileInfoTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "fileSelect", first: true, predicate: ["fileSelect"], descendants: true, static: true }, { propertyName: "fileSelectButton", first: true, predicate: ["fileSelectButton"], descendants: true, static: true }], exportAs: ["kendoUpload"], usesOnChanges: true, ngImport: i0, template: `
699
+ ], queries: [{ propertyName: "fileTemplate", first: true, predicate: FileTemplateDirective, descendants: true }, { propertyName: "fileInfoTemplate", first: true, predicate: FileInfoTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "fileSelectInput", first: true, predicate: ["fileSelectInput"], descendants: true, static: true }, { propertyName: "fileSelectButton", first: true, predicate: ["fileSelectButton"], descendants: true, read: ElementRef, static: true }], exportAs: ["kendoUpload"], usesOnChanges: true, ngImport: i0, template: `
669
700
  <ng-container kendoUploadLocalizedMessages
670
701
  i18n-cancel="kendo.upload.cancel|The text for the Cancel button"
671
702
  cancel="Cancel"
@@ -731,25 +762,35 @@ UploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
731
762
  <div kendoUploadInternalDropZone
732
763
  [restrictions]="restrictions"
733
764
  [multiple]="multiple"
734
- [disabled]="disabled">
735
- <div role="button" #fileSelectButton
736
- [id]="focusableId"
737
- [attr.aria-label]="textFor('select')"
738
- [attr.tabindex]="selectButtonTabIndex"
739
- (focus)="onFileSelectButtonFocus($event)"
740
- (blur)="onFileSelectButtonBlur($event)"
741
- class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-upload-button">
742
- <input #fileSelect kendoFileSelect
743
- [attr.accept]="accept ? accept : null"
744
- [attr.aria-hidden]="true"
745
- [dir]="direction"
746
- [restrictions]="restrictions"
747
- [multiple]="multiple"
748
- [disabled]="disabled" />
749
- <span>{{textFor('select')}}</span>
765
+ [disabled]="disabled"
766
+ >
767
+ <div class="k-upload-button-wrap">
768
+ <button
769
+ kendoButton
770
+ #fileSelectButton
771
+ class="k-upload-button"
772
+ role="button"
773
+ [id]="focusableId"
774
+ [attr.aria-label]="textFor('select')"
775
+ [attr.tabindex]="selectButtonTabIndex"
776
+ (focus)="onFileSelectButtonFocus($event)"
777
+ (blur)="onFileSelectButtonBlur($event)"
778
+ >
779
+ {{textFor('select')}}
780
+ </button>
781
+ <input
782
+ #fileSelectInput
783
+ kendoFileSelect
784
+ [attr.accept]="accept ? accept : null"
785
+ [attr.aria-hidden]="true"
786
+ [dir]="direction"
787
+ [restrictions]="restrictions"
788
+ [multiple]="multiple"
789
+ [disabled]="disabled"
790
+ />
750
791
  </div>
751
792
  <kendo-upload-status-total *ngIf="showTotalStatus"
752
- class="k-upload-status k-upload-status-total"
793
+ class="k-upload-actions"
753
794
  [fileList]="fileList">
754
795
  </kendo-upload-status-total>
755
796
  <div class="k-dropzone-hint">{{textFor('dropFilesHere')}}</div>
@@ -766,8 +807,8 @@ UploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
766
807
  [disabled]="disabled"
767
808
  [actionsLayout]="actionsLayout">
768
809
  </kendo-upload-action-buttons>
769
- `, isInline: true, components: [{ type: i5.UploadStatusTotalComponent, selector: "kendo-upload-status-total", inputs: ["fileList"] }, { type: i6.FileListComponent, selector: "[kendo-upload-file-list]", inputs: ["disabled", "fileList", "fileTemplate", "fileInfoTemplate"] }, { type: i7.UploadActionButtonsComponent, selector: "kendo-upload-action-buttons", inputs: ["disabled", "actionsLayout"] }], directives: [{ type: i8.LocalizedMessagesDirective, selector: "\n [kendoUploadLocalizedMessages],\n [kendoFileSelectLocalizedMessages],\n [kendoUploadDropZoneLocalizedMessages]\n " }, { type: i9.DropZoneInternalDirective, selector: "\n [kendoUploadInternalDropZone],\n [kendoFileSelectInternalDropZone]\n ", inputs: ["disabled", "multiple", "restrictions"] }, { type: i10.FileSelectDirective, selector: "[kendoFileSelect]", inputs: ["dir", "disabled", "multiple", "restrictions"] }, { type: i11.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
770
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UploadComponent, decorators: [{
810
+ `, isInline: true, components: [{ type: i5.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i6.UploadStatusTotalComponent, selector: "kendo-upload-status-total", inputs: ["fileList"] }, { type: i7.FileListComponent, selector: "[kendo-upload-file-list]", inputs: ["disabled", "fileList", "fileTemplate", "fileInfoTemplate"] }, { type: i8.UploadActionButtonsComponent, selector: "kendo-upload-action-buttons", inputs: ["disabled", "actionsLayout"] }], directives: [{ type: i9.LocalizedMessagesDirective, selector: "\n [kendoUploadLocalizedMessages],\n [kendoFileSelectLocalizedMessages],\n [kendoUploadDropZoneLocalizedMessages]\n " }, { type: i10.DropZoneInternalDirective, selector: "\n [kendoUploadInternalDropZone],\n [kendoFileSelectInternalDropZone]\n ", inputs: ["disabled", "multiple", "restrictions"] }, { type: i11.FileSelectDirective, selector: "[kendoFileSelect]", inputs: ["dir", "disabled", "multiple", "restrictions"] }, { type: i12.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
811
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UploadComponent, decorators: [{
771
812
  type: Component,
772
813
  args: [{
773
814
  exportAs: 'kendoUpload',
@@ -853,25 +894,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
853
894
  <div kendoUploadInternalDropZone
854
895
  [restrictions]="restrictions"
855
896
  [multiple]="multiple"
856
- [disabled]="disabled">
857
- <div role="button" #fileSelectButton
858
- [id]="focusableId"
859
- [attr.aria-label]="textFor('select')"
860
- [attr.tabindex]="selectButtonTabIndex"
861
- (focus)="onFileSelectButtonFocus($event)"
862
- (blur)="onFileSelectButtonBlur($event)"
863
- class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-upload-button">
864
- <input #fileSelect kendoFileSelect
865
- [attr.accept]="accept ? accept : null"
866
- [attr.aria-hidden]="true"
867
- [dir]="direction"
868
- [restrictions]="restrictions"
869
- [multiple]="multiple"
870
- [disabled]="disabled" />
871
- <span>{{textFor('select')}}</span>
897
+ [disabled]="disabled"
898
+ >
899
+ <div class="k-upload-button-wrap">
900
+ <button
901
+ kendoButton
902
+ #fileSelectButton
903
+ class="k-upload-button"
904
+ role="button"
905
+ [id]="focusableId"
906
+ [attr.aria-label]="textFor('select')"
907
+ [attr.tabindex]="selectButtonTabIndex"
908
+ (focus)="onFileSelectButtonFocus($event)"
909
+ (blur)="onFileSelectButtonBlur($event)"
910
+ >
911
+ {{textFor('select')}}
912
+ </button>
913
+ <input
914
+ #fileSelectInput
915
+ kendoFileSelect
916
+ [attr.accept]="accept ? accept : null"
917
+ [attr.aria-hidden]="true"
918
+ [dir]="direction"
919
+ [restrictions]="restrictions"
920
+ [multiple]="multiple"
921
+ [disabled]="disabled"
922
+ />
872
923
  </div>
873
924
  <kendo-upload-status-total *ngIf="showTotalStatus"
874
- class="k-upload-status k-upload-status-total"
925
+ class="k-upload-actions"
875
926
  [fileList]="fileList">
876
927
  </kendo-upload-status-total>
877
928
  <div class="k-dropzone-hint">{{textFor('dropFilesHere')}}</div>
@@ -945,12 +996,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
945
996
  }], fileInfoTemplate: [{
946
997
  type: ContentChild,
947
998
  args: [FileInfoTemplateDirective, { static: false }]
948
- }], fileSelect: [{
999
+ }], fileSelectInput: [{
949
1000
  type: ViewChild,
950
- args: ['fileSelect', { static: true }]
1001
+ args: ['fileSelectInput', { static: true }]
951
1002
  }], fileSelectButton: [{
952
1003
  type: ViewChild,
953
- args: ['fileSelectButton', { static: true }]
1004
+ args: ['fileSelectButton', { static: true, read: ElementRef }]
954
1005
  }], onBlur: [{
955
1006
  type: Output,
956
1007
  args: ['blur']
@@ -982,9 +1033,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
982
1033
  }], valueChange: [{
983
1034
  type: Output
984
1035
  }], hostDefaultClasses: [{
985
- type: HostBinding,
986
- args: ['class.k-widget']
987
- }, {
988
1036
  type: HostBinding,
989
1037
  args: ['class.k-upload']
990
1038
  }], hostDisabledClass: [{
@@ -993,7 +1041,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
993
1041
  }], dir: [{
994
1042
  type: HostBinding,
995
1043
  args: ['attr.dir']
996
- }], handleKeydown: [{
997
- type: HostListener,
998
- args: ['keydown', ['$event']]
999
1044
  }] } });
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { NgModule } from '@angular/core';
@@ -23,14 +23,14 @@ const UPLOAD_DECLARATIONS = [
23
23
  */
24
24
  export class UploadModule {
25
25
  }
26
- UploadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
27
- UploadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UploadModule, declarations: [UploadComponent,
26
+ UploadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
27
+ UploadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UploadModule, declarations: [UploadComponent,
28
28
  UploadActionButtonsComponent,
29
29
  UploadStatusTotalComponent], imports: [SharedModule], exports: [i1.FileTemplateDirective, i2.FileInfoTemplateDirective, i3.CustomMessagesComponent, i4.UploadDropZoneDirective, i5.UploadDropZoneComponent, UploadComponent,
30
30
  UploadActionButtonsComponent,
31
31
  UploadStatusTotalComponent] });
32
- UploadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UploadModule, imports: [[SharedModule]] });
33
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UploadModule, decorators: [{
32
+ UploadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UploadModule, imports: [[SharedModule]] });
33
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UploadModule, decorators: [{
34
34
  type: NgModule,
35
35
  args: [{
36
36
  declarations: [UPLOAD_DECLARATIONS],
@@ -1,8 +1,8 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { HttpEventType, HttpHeaders, HttpRequest, HttpResponse } from '@angular/common/http';
5
+ import { HttpClient, HttpEventType, HttpHeaders, HttpRequest, HttpResponse } from '@angular/common/http';
6
6
  import { EventEmitter, Injectable } from '@angular/core';
7
7
  import { FileState } from './types';
8
8
  import { FileMap } from './types/file-map';
@@ -76,17 +76,17 @@ export class UploadService {
76
76
  }
77
77
  }
78
78
  onChange() {
79
- let files = this.fileList.filesFlat.filter((file) => {
79
+ const files = this.fileList.filesFlat.filter((file) => {
80
80
  return file.state === FileState.Initial ||
81
81
  file.state === FileState.Uploaded;
82
82
  });
83
83
  this.changeEvent.emit(files.length > 0 ? files : null);
84
84
  }
85
85
  addFiles(files) {
86
- let selectEventArgs = new SelectEvent(files);
86
+ const selectEventArgs = new SelectEvent(files);
87
87
  this.selectEvent.emit(selectEventArgs);
88
88
  if (!selectEventArgs.isDefaultPrevented()) {
89
- for (let file of files) {
89
+ for (const file of files) {
90
90
  this.fileList.add(file);
91
91
  }
92
92
  if (this.async.autoUpload) {
@@ -101,7 +101,7 @@ export class UploadService {
101
101
  addInitialFiles(initialFiles) {
102
102
  this.fileList.clear();
103
103
  initialFiles.forEach((file) => {
104
- let fakeFile = getInitialFileInfo(file);
104
+ const fakeFile = getInitialFileInfo(file);
105
105
  this.fileList.add(fakeFile);
106
106
  });
107
107
  }
@@ -123,14 +123,14 @@ export class UploadService {
123
123
  this._uploadFiles([fileToResume]);
124
124
  }
125
125
  pauseFile(uid) {
126
- let pausedFile = this.fileList.get(uid)[0];
126
+ const pausedFile = this.fileList.get(uid)[0];
127
127
  this.pauseEvent.emit(new PauseEvent(pausedFile));
128
128
  this.fileList.setFilesStateByUid(uid, FileState.Paused);
129
129
  }
130
130
  removeFiles(uid) {
131
- let removedFiles = this.fileList.get(uid);
131
+ const removedFiles = this.fileList.get(uid);
132
132
  // Clone the Headers so that the default ones are not overridden
133
- let removeEventArgs = new RemoveEvent(removedFiles, this.cloneRequestHeaders(this.async.removeHeaders));
133
+ const removeEventArgs = new RemoveEvent(removedFiles, this.cloneRequestHeaders(this.async.removeHeaders));
134
134
  this.removeEvent.emit(removeEventArgs);
135
135
  if (!removeEventArgs.isDefaultPrevented()) {
136
136
  if (this.component === 'Upload' &&
@@ -148,10 +148,10 @@ export class UploadService {
148
148
  }
149
149
  }
150
150
  cancelFiles(uid) {
151
- let canceledFiles = this.fileList.get(uid);
152
- let cancelEventArgs = new CancelEvent(canceledFiles);
151
+ const canceledFiles = this.fileList.get(uid);
152
+ const cancelEventArgs = new CancelEvent(canceledFiles);
153
153
  this.cancelEvent.emit(cancelEventArgs);
154
- for (let file of canceledFiles) {
154
+ for (const file of canceledFiles) {
155
155
  if (file.httpSubscription) {
156
156
  file.httpSubscription.unsubscribe();
157
157
  }
@@ -160,10 +160,10 @@ export class UploadService {
160
160
  this.checkAllComplete();
161
161
  }
162
162
  clearFiles() {
163
- let clearEventArgs = new ClearEvent();
163
+ const clearEventArgs = new ClearEvent();
164
164
  this.clearEvent.emit(clearEventArgs);
165
165
  if (!clearEventArgs.isDefaultPrevented()) {
166
- let triggerChange = this.fileList.hasFileWithState([
166
+ const triggerChange = this.fileList.hasFileWithState([
167
167
  FileState.Initial,
168
168
  FileState.Uploaded
169
169
  ]);
@@ -186,22 +186,22 @@ export class UploadService {
186
186
  }
187
187
  }
188
188
  retryFiles(uid) {
189
- let filesToRetry = [this.fileList.get(uid)];
189
+ const filesToRetry = [this.fileList.get(uid)];
190
190
  if (filesToRetry) {
191
191
  this._uploadFiles(filesToRetry);
192
192
  }
193
193
  }
194
194
  _uploadFiles(allFiles) {
195
- for (let filesToUpload of allFiles) {
195
+ for (const filesToUpload of allFiles) {
196
196
  if (filesToUpload[0].state === FileState.Paused) {
197
197
  return;
198
198
  }
199
199
  // Clone the Headers so that the default ones are not overridden
200
- let uploadEventArgs = new UploadEvent(filesToUpload, this.cloneRequestHeaders(this.async.saveHeaders));
200
+ const uploadEventArgs = new UploadEvent(filesToUpload, this.cloneRequestHeaders(this.async.saveHeaders));
201
201
  this.uploadEvent.emit(uploadEventArgs);
202
202
  if (!uploadEventArgs.isDefaultPrevented()) {
203
203
  this.fileList.setFilesState(filesToUpload, FileState.Uploading);
204
- let httpSubcription = this.performUpload(filesToUpload, uploadEventArgs);
204
+ const httpSubcription = this.performUpload(filesToUpload, uploadEventArgs);
205
205
  filesToUpload.forEach((file) => {
206
206
  file.httpSubscription = httpSubcription;
207
207
  });
@@ -213,12 +213,12 @@ export class UploadService {
213
213
  }
214
214
  performRemove(files, removeEventArgs) {
215
215
  const async = this.async;
216
- let fileNames = files.map((file) => {
216
+ const fileNames = files.map((file) => {
217
217
  return file.name;
218
218
  });
219
- let formData = this.populateRemoveFormData(fileNames, removeEventArgs.data);
220
- let options = this.populateRequestOptions(removeEventArgs.headers, false);
221
- let removeRequest = new HttpRequest(async.removeMethod, async.removeUrl, formData, options);
219
+ const formData = this.populateRemoveFormData(fileNames, removeEventArgs.data);
220
+ const options = this.populateRequestOptions(removeEventArgs.headers, false);
221
+ const removeRequest = new HttpRequest(async.removeMethod, async.removeUrl, formData, options);
222
222
  this.http.request(removeRequest)
223
223
  .subscribe(success => {
224
224
  this.onSuccess(success, files, "remove");
@@ -228,10 +228,10 @@ export class UploadService {
228
228
  }
229
229
  performUpload(files, uploadEventArgs) {
230
230
  const async = this.async;
231
- let formData = this.populateUploadFormData(files, uploadEventArgs.data);
232
- let options = this.populateRequestOptions(uploadEventArgs.headers);
233
- let uploadRequest = new HttpRequest(async.saveMethod, async.saveUrl, formData, options);
234
- let httpSubscription = this.http.request(uploadRequest)
231
+ const formData = this.populateUploadFormData(files, uploadEventArgs.data);
232
+ const options = this.populateRequestOptions(uploadEventArgs.headers);
233
+ const uploadRequest = new HttpRequest(async.saveMethod, async.saveUrl, formData, options);
234
+ const httpSubscription = this.http.request(uploadRequest)
235
235
  .subscribe(event => {
236
236
  if (event.type === HttpEventType.UploadProgress && !this.async.chunk) {
237
237
  this.onProgress(event, files);
@@ -330,7 +330,7 @@ export class UploadService {
330
330
  return validSelectedFiles.length === 0;
331
331
  }
332
332
  cloneRequestHeaders(headers) {
333
- let cloned = {};
333
+ const cloned = {};
334
334
  if (headers) {
335
335
  headers.keys().forEach((key) => {
336
336
  cloned[key] = headers.get(key);
@@ -348,29 +348,29 @@ export class UploadService {
348
348
  }
349
349
  populateUploadFormData(files, clientData) {
350
350
  const saveField = this.async.saveField;
351
- let data = new FormData();
351
+ const data = new FormData();
352
352
  this.populateClientFormData(data, clientData);
353
353
  if (this.async.chunk) {
354
354
  data.append(saveField, this.getNextChunk(files[0]));
355
355
  data.append("metadata", this.getChunkMetadata(files[0]));
356
356
  }
357
357
  else {
358
- for (let file of files) {
358
+ for (const file of files) {
359
359
  data.append(saveField, file.rawFile);
360
360
  }
361
361
  }
362
362
  return data;
363
363
  }
364
364
  populateRemoveFormData(fileNames, clientData) {
365
- let data = new FormData();
365
+ const data = new FormData();
366
366
  this.populateClientFormData(data, clientData);
367
- for (let fileName of fileNames) {
367
+ for (const fileName of fileNames) {
368
368
  data.append(this.async.removeField, fileName);
369
369
  }
370
370
  return data;
371
371
  }
372
372
  populateClientFormData(data, clientData) {
373
- for (var key in clientData) {
373
+ for (const key in clientData) {
374
374
  if (clientData.hasOwnProperty(key)) {
375
375
  data.append(key, clientData[key]);
376
376
  }
@@ -421,8 +421,8 @@ export class UploadService {
421
421
  return false;
422
422
  }
423
423
  }
424
- UploadService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UploadService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
425
- UploadService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UploadService });
426
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UploadService, decorators: [{
424
+ UploadService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UploadService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
425
+ UploadService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UploadService });
426
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UploadService, decorators: [{
427
427
  type: Injectable
428
428
  }], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { NgModule } from '@angular/core';
@@ -33,12 +33,12 @@ import * as i0 from "@angular/core";
33
33
  */
34
34
  export class UploadsModule {
35
35
  }
36
- UploadsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UploadsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
37
- UploadsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UploadsModule, exports: [FileSelectModule,
36
+ UploadsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UploadsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
37
+ UploadsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UploadsModule, exports: [FileSelectModule,
38
38
  UploadModule] });
39
- UploadsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UploadsModule, imports: [FileSelectModule,
39
+ UploadsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UploadsModule, imports: [FileSelectModule,
40
40
  UploadModule] });
41
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UploadsModule, decorators: [{
41
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UploadsModule, decorators: [{
42
42
  type: NgModule,
43
43
  args: [{
44
44
  exports: [
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { FileInfo } from '../types';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { PreventableEvent } from './preventable-event';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { HttpResponse } from '@angular/common/http';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { FileInfo } from '../types';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**