@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
package/NOTICE.txt CHANGED
@@ -37,7 +37,7 @@ DefinitelyTyped.org | @types/prosemirror-view | 1.11.4 - Open Source | MIT-style
37
37
  Isaac Z. Schlueter | glob | 7.1.3 - Open Source | ISC-style License
38
38
  Jorik Tangelder (Eight Media) | HammerJS | 2.0.8 - Open Source | MIT-style License
39
39
  Matt Mueller | cheerio | 0.22 - Open Source | MIT-style License
40
- Progress Software Corporation | Kendo UI Licensing CLI | 1.1 - Proprietary |
40
+ Progress Software Corporation | Kendo UI Licensing CLI | 1.1 - Proprietary |
41
41
  Progress Software Corporation | jszip-esm | 1.0.0 - Open Source | MIT-style License
42
42
  Progress Software Corporation | pako-esm | 1.0.0 - Open Source | MIT-style License
43
43
  ProseMirror | prosemiror-inputrules | 1.0.1 - Open Source | MIT-style License
@@ -433,7 +433,7 @@ subject to the following terms and conditions:
433
433
  @types/prosemirror-inputrules v1*, @types/prosemirror-keymap v1*, @types/prosemirror-model v1*,
434
434
  @types/prosemirror-schema-list v1*, @types/prosemirror-state v1*, @types/prosemirror-tables v0.9*,
435
435
  @types/prosemirror-transform v1*, and @types/prosemirror-view v1*. Such technologies are
436
- subject to the following terms and conditions:
436
+ subject to the following terms and conditions:
437
437
 
438
438
  This project is licensed under the MIT license.
439
439
  Copyrights are respective of each contributor listed at the beginning of each
@@ -640,7 +640,7 @@ Such technology is subject to the following terms and conditions:
640
640
  2. Special Notices Regarding Commercially Licensed Third-Party Components
641
641
  incorporated into the Product: NONE
642
642
 
643
- 3. Special Notices Regarding Progress Products incorporated into the Product:
643
+ 3. Special Notices Regarding Progress Products incorporated into the Product:
644
644
 
645
645
  (a) Progress Kendo UI for Angular 2022 incorporates Kendo UI Licensing CLI v1.1
646
646
  from Progress Software Corporation. See NOTICE.txt text file within product for
@@ -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
  /**
package/common/util.d.ts CHANGED
@@ -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
  /**
@@ -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
  /**
@@ -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 { ElementRef, Renderer2 } from '@angular/core';
@@ -22,7 +22,7 @@ export declare abstract class DropZoneBase {
22
22
  */
23
23
  onElementDragOverListener(): boolean;
24
24
  constructor(element: ElementRef, renderer: Renderer2, cssClass: string);
25
- protected calculateTimeDiff(prevEvent: Date): Number;
25
+ protected calculateTimeDiff(prevEvent: Date): number;
26
26
  protected addClass(className: string): void;
27
27
  protected removeClass(className: string): void;
28
28
  static ɵfac: i0.ɵɵFactoryDeclaration<DropZoneBase, never>;
@@ -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 { DropZoneService } from './dropzone.service';
@@ -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 { ElementRef, Renderer2, NgZone } from '@angular/core';
@@ -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 { ElementRef, Renderer2 } from '@angular/core';
@@ -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 { UploadComponent } from './upload.component';
@@ -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
  export {};
@@ -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
  /* eslint-disable no-bitwise */
@@ -31,7 +31,7 @@ export const getTotalFilesSizeMessage = (files) => {
31
31
  }
32
32
  };
33
33
  const stripPath = (name) => {
34
- let slashIndex = name.lastIndexOf("\\");
34
+ const slashIndex = name.lastIndexOf("\\");
35
35
  return (slashIndex !== -1) ? name.substr(slashIndex + 1) : name;
36
36
  };
37
37
  const getFileExtension = (fileName) => {
@@ -62,7 +62,7 @@ export const validateInitialFileSelectFile = (file) => {
62
62
  */
63
63
  export const getInitialFileInfo = (fakeFile) => {
64
64
  fakeFile.extension = fakeFile.extension || getFileExtension(fakeFile.name);
65
- fakeFile.name = fakeFile.name;
65
+ fakeFile.name = fakeFile.name; // eslint-disable-line no-self-assign
66
66
  fakeFile.size = fakeFile.size || 0;
67
67
  if (!fakeFile.hasOwnProperty("state")) {
68
68
  fakeFile.state = FileState.Initial;
@@ -76,7 +76,7 @@ export const getInitialFileInfo = (fakeFile) => {
76
76
  * @hidden
77
77
  */
78
78
  export const convertFileToFileInfo = (file) => {
79
- let fileInfo = getFileInfo(file);
79
+ const fileInfo = getFileInfo(file);
80
80
  fileInfo.uid = guid();
81
81
  // Used to differentiate initial FileInfo objects and actual Files
82
82
  fileInfo.state = FileState.Selected;
@@ -97,7 +97,7 @@ const getFileInfo = (rawFile) => {
97
97
  * @hidden
98
98
  */
99
99
  export const getAllFileInfo = (rawFiles) => {
100
- let allFileInfo = new Array();
100
+ const allFileInfo = new Array();
101
101
  let i;
102
102
  for (i = 0; i < rawFiles.length; i++) {
103
103
  allFileInfo.push(getFileInfo(rawFiles[i]));
@@ -117,7 +117,7 @@ export const fileHasValidationErrors = (file) => {
117
117
  * @hidden
118
118
  */
119
119
  export const filesHaveValidationErrors = (files) => {
120
- for (let file of files) {
120
+ for (const file of files) {
121
121
  if (fileHasValidationErrors(file)) {
122
122
  return true;
123
123
  }
@@ -133,8 +133,8 @@ export const inputFiles = (input) => {
133
133
  }
134
134
  else {
135
135
  //Required for testing
136
- let fileNames = input.value.split("|").map((file, index) => {
137
- let fileName = file.trim();
136
+ const fileNames = input.value.split("|").map((file, index) => {
137
+ const fileName = file.trim();
138
138
  return {
139
139
  extension: getFileExtension(fileName),
140
140
  name: stripPath(fileName),
@@ -213,7 +213,7 @@ export const isFocusable = (element, checkVisibility = true) => {
213
213
  */
214
214
  export const getFileGroupCssClass = (fileExtension) => {
215
215
  const initial = 'k-i-file';
216
- for (let group in fileGroupMap) {
216
+ for (const group in fileGroupMap) {
217
217
  if (fileGroupMap[group].indexOf(fileExtension) >= 0) {
218
218
  return `${initial}-${group}`;
219
219
  }
@@ -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
  /**
@@ -40,7 +40,7 @@ const validateFileSize = (file, minFileSize, maxFileSize) => {
40
40
  };
41
41
  const parseAllowedExtensions = (extensions) => {
42
42
  const allowedExtensions = extensions.map((ext) => {
43
- var parsedExt = (ext.substring(0, 1) === ".") ? ext : ("." + ext);
43
+ const parsedExt = (ext.substring(0, 1) === ".") ? ext : ("." + ext);
44
44
  return parsedExt.toLowerCase();
45
45
  });
46
46
  return allowedExtensions;
@@ -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 { HostListener, Inject, Directive } from '@angular/core';
5
+ import { ElementRef, Renderer2, HostListener, Inject, Directive } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
8
  * @hidden
@@ -49,9 +49,9 @@ export class DropZoneBase {
49
49
  this.renderer.removeClass(this.element.nativeElement, className);
50
50
  }
51
51
  }
52
- DropZoneBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropZoneBase, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: 'hoverClass' }], target: i0.ɵɵFactoryTarget.Directive });
53
- DropZoneBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: DropZoneBase, host: { listeners: { "dragenter": "onElementDragEnterListener()", "dragover": "onElementDragOverListener()" } }, ngImport: i0 });
54
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropZoneBase, decorators: [{
52
+ DropZoneBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DropZoneBase, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: 'hoverClass' }], target: i0.ɵɵFactoryTarget.Directive });
53
+ DropZoneBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: DropZoneBase, host: { listeners: { "dragenter": "onElementDragEnterListener()", "dragover": "onElementDragOverListener()" } }, ngImport: i0 });
54
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DropZoneBase, decorators: [{
55
55
  type: Directive
56
56
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: undefined, decorators: [{
57
57
  type: Inject,
@@ -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 { Directive, HostListener, Input } from '@angular/core';
@@ -34,7 +34,7 @@ export class UploadDropZoneDirective {
34
34
  return;
35
35
  }
36
36
  components.forEach((component) => {
37
- let droppedFiles = event.dataTransfer.files;
37
+ const droppedFiles = event.dataTransfer.files;
38
38
  if (droppedFiles.length > 0 && !component.disabled) {
39
39
  let files = getAllFileInfo(droppedFiles);
40
40
  if (component instanceof UploadComponent) {
@@ -60,11 +60,11 @@ export class UploadDropZoneDirective {
60
60
  return this.dropZoneService.getComponents(this.zoneId);
61
61
  }
62
62
  }
63
- UploadDropZoneDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UploadDropZoneDirective, deps: [{ token: i1.DropZoneService }], target: i0.ɵɵFactoryTarget.Directive });
64
- UploadDropZoneDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: UploadDropZoneDirective, selector: "[kendoUploadDropZone], [kendoFileSelectDropZone]", inputs: { zoneId: ["kendoUploadDropZone", "zoneId"] }, host: { listeners: { "dragenter": "onElementDragEnter()", "dragover": "onElementDragOver()", "drop": "onDropListener($event)" } }, providers: [
63
+ UploadDropZoneDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UploadDropZoneDirective, deps: [{ token: i1.DropZoneService }], target: i0.ɵɵFactoryTarget.Directive });
64
+ UploadDropZoneDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: UploadDropZoneDirective, selector: "[kendoUploadDropZone], [kendoFileSelectDropZone]", inputs: { zoneId: ["kendoUploadDropZone", "zoneId"] }, host: { listeners: { "dragenter": "onElementDragEnter()", "dragover": "onElementDragOver()", "drop": "onDropListener($event)" } }, providers: [
65
65
  DropZoneService
66
66
  ], ngImport: i0 });
67
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UploadDropZoneDirective, decorators: [{
67
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UploadDropZoneDirective, decorators: [{
68
68
  type: Directive,
69
69
  args: [{
70
70
  providers: [
@@ -1,11 +1,12 @@
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 { Directive, HostBinding, HostListener, Input } from '@angular/core';
5
+ import { Directive, ElementRef, HostBinding, HostListener, Input, Renderer2, NgZone } from '@angular/core';
6
6
  import { assignGuidToFiles, getAllFileInfo } from './common/util';
7
7
  import { validateFiles } from './common/validation-util';
8
8
  import { DropZoneBase } from './dropzone-base';
9
+ import { UploadService } from './upload.service';
9
10
  import * as i0 from "@angular/core";
10
11
  import * as i1 from "./upload.service";
11
12
  /**
@@ -13,7 +14,7 @@ import * as i1 from "./upload.service";
13
14
  */
14
15
  export class DropZoneInternalDirective extends DropZoneBase {
15
16
  constructor(element, renderer, ngZone, uploadService) {
16
- super(element, renderer, 'k-dropzone-hover');
17
+ super(element, renderer, 'k-hover');
17
18
  this.ngZone = ngZone;
18
19
  this.uploadService = uploadService;
19
20
  this.initialClassName = true;
@@ -57,7 +58,7 @@ export class DropZoneInternalDirective extends DropZoneBase {
57
58
  return false;
58
59
  }
59
60
  onDropListener(event) {
60
- let droppedFiles = event.dataTransfer.files;
61
+ const droppedFiles = event.dataTransfer.files;
61
62
  if (droppedFiles.length > 0 && !this.disabled) {
62
63
  let files = getAllFileInfo(droppedFiles);
63
64
  files = assignGuidToFiles(files, !this.uploadService.async.batch);
@@ -71,9 +72,9 @@ export class DropZoneInternalDirective extends DropZoneBase {
71
72
  return false;
72
73
  }
73
74
  }
74
- DropZoneInternalDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropZoneInternalDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i1.UploadService }], target: i0.ɵɵFactoryTarget.Directive });
75
- DropZoneInternalDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: DropZoneInternalDirective, selector: "\n [kendoUploadInternalDropZone],\n [kendoFileSelectInternalDropZone]\n ", inputs: { disabled: "disabled", multiple: "multiple", restrictions: "restrictions" }, host: { listeners: { "drop": "onDropListener($event)" }, properties: { "class.k-dropzone": "this.initialClassName" } }, usesInheritance: true, ngImport: i0 });
76
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropZoneInternalDirective, decorators: [{
75
+ DropZoneInternalDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DropZoneInternalDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i1.UploadService }], target: i0.ɵɵFactoryTarget.Directive });
76
+ DropZoneInternalDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: DropZoneInternalDirective, selector: "\n [kendoUploadInternalDropZone],\n [kendoFileSelectInternalDropZone]\n ", inputs: { disabled: "disabled", multiple: "multiple", restrictions: "restrictions" }, host: { listeners: { "drop": "onDropListener($event)" }, properties: { "class.k-dropzone": "this.initialClassName", "class.k-upload-dropzone": "this.initialClassName" } }, usesInheritance: true, ngImport: i0 });
77
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DropZoneInternalDirective, decorators: [{
77
78
  type: Directive,
78
79
  args: [{
79
80
  selector: `
@@ -90,6 +91,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
90
91
  }], initialClassName: [{
91
92
  type: HostBinding,
92
93
  args: ['class.k-dropzone']
94
+ }, {
95
+ type: HostBinding,
96
+ args: ['class.k-upload-dropzone']
93
97
  }], onDropListener: [{
94
98
  type: HostListener,
95
99
  args: ['drop', ['$event']]
@@ -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 { Component, HostBinding, Input } from '@angular/core';
5
+ import { Component, ElementRef, HostBinding, Input, Renderer2 } from '@angular/core';
6
6
  import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
7
7
  import { DropZoneBase } from './dropzone-base';
8
8
  import * as i0 from "@angular/core";
@@ -49,8 +49,8 @@ export class UploadDropZoneComponent extends DropZoneBase {
49
49
  }
50
50
  }
51
51
  }
52
- UploadDropZoneComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UploadDropZoneComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
53
- UploadDropZoneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: UploadDropZoneComponent, selector: "kendo-uploaddropzone", inputs: { zoneId: "zoneId", icon: "icon", iconClass: "iconClass" }, host: { properties: { "class.k-external-dropzone": "this.hostClass", "attr.dir": "this.dirAttribute" } }, providers: [
52
+ UploadDropZoneComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UploadDropZoneComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
53
+ UploadDropZoneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: UploadDropZoneComponent, selector: "kendo-uploaddropzone", inputs: { zoneId: "zoneId", icon: "icon", iconClass: "iconClass" }, host: { properties: { "class.k-external-dropzone": "this.hostClass", "attr.dir": "this.dirAttribute" } }, providers: [
54
54
  LocalizationService,
55
55
  {
56
56
  provide: L10N_PREFIX,
@@ -70,7 +70,7 @@ UploadDropZoneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
70
70
  </span>
71
71
  </div>
72
72
  `, isInline: true, directives: [{ type: i2.LocalizedMessagesDirective, selector: "\n [kendoUploadLocalizedMessages],\n [kendoFileSelectLocalizedMessages],\n [kendoUploadDropZoneLocalizedMessages]\n " }, { type: i3.UploadDropZoneDirective, selector: "[kendoUploadDropZone], [kendoFileSelectDropZone]", inputs: ["kendoUploadDropZone"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
73
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UploadDropZoneComponent, decorators: [{
73
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UploadDropZoneComponent, decorators: [{
74
74
  type: Component,
75
75
  args: [{
76
76
  exportAs: 'kendoUploadDropZone',
@@ -1,10 +1,10 @@
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 { Injectable } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
- let components = {};
7
+ const components = {};
8
8
  /**
9
9
  * @hidden
10
10
  */
@@ -24,8 +24,8 @@ export class DropZoneService {
24
24
  return id in components;
25
25
  }
26
26
  }
27
- DropZoneService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropZoneService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
28
- DropZoneService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropZoneService });
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropZoneService, decorators: [{
27
+ DropZoneService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DropZoneService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
28
+ DropZoneService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DropZoneService });
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DropZoneService, decorators: [{
30
30
  type: Injectable
31
31
  }] });
@@ -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
  /**
@@ -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
  /**
@@ -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
  /**
@@ -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
  /**
@@ -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
  /**
@@ -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 { 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 { 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
  /**
@@ -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
  export { CancelEvent } from './events/cancel-event';
@@ -1,8 +1,10 @@
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 { Directive, HostBinding, HostListener, Input } from '@angular/core';
5
+ import { Directive, ElementRef, HostBinding, HostListener, Input } from '@angular/core';
6
+ import { NavigationService } from './navigation.service';
7
+ import { UploadService } from './upload.service';
6
8
  import { assignGuidToFiles, inputFiles } from './common/util';
7
9
  import { validateFiles } from './common/validation-util';
8
10
  import * as i0 from "@angular/core";
@@ -58,9 +60,9 @@ export class FileSelectDirective {
58
60
  });
59
61
  }
60
62
  }
61
- FileSelectDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FileSelectDirective, deps: [{ token: i1.UploadService }, { token: i2.NavigationService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
62
- FileSelectDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FileSelectDirective, selector: "[kendoFileSelect]", inputs: { dir: "dir", disabled: "disabled", multiple: "multiple", restrictions: "restrictions" }, host: { listeners: { "change": "onInputChange($event)" }, properties: { "attr.type": "this.type", "attr.autocomplete": "this.autocomplete", "attr.tabindex": "this.tabIndex", "attr.name": "this.nameAttribute", "attr.multiple": "this.multipleAttribute", "attr.dir": "this.dirAttribute", "attr.disabled": "this.disabledAttribute" } }, ngImport: i0 });
63
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FileSelectDirective, decorators: [{
63
+ FileSelectDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileSelectDirective, deps: [{ token: i1.UploadService }, { token: i2.NavigationService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
64
+ FileSelectDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: FileSelectDirective, selector: "[kendoFileSelect]", inputs: { dir: "dir", disabled: "disabled", multiple: "multiple", restrictions: "restrictions" }, host: { listeners: { "change": "onInputChange($event)" }, properties: { "attr.type": "this.type", "attr.autocomplete": "this.autocomplete", "attr.tabindex": "this.tabIndex", "attr.name": "this.nameAttribute", "attr.multiple": "this.multipleAttribute", "attr.dir": "this.dirAttribute", "attr.disabled": "this.disabledAttribute" } }, ngImport: i0 });
65
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileSelectDirective, decorators: [{
64
66
  type: Directive,
65
67
  args: [{
66
68
  selector: '[kendoFileSelect]'