@progress/kendo-angular-upload 21.4.1-develop.1 → 22.0.0-develop.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/common/base.d.ts +1 -1
  2. package/dropzone-base.d.ts +1 -1
  3. package/fesm2022/progress-kendo-angular-upload.mjs +89 -89
  4. package/localization/messages.d.ts +1 -1
  5. package/package.json +13 -21
  6. package/rendering/file-list-item-base.d.ts +1 -1
  7. package/schematics/ngAdd/index.js +3 -3
  8. package/esm2022/common/action-buttons-layout.mjs +0 -5
  9. package/esm2022/common/base.mjs +0 -280
  10. package/esm2022/common/fileselect-settings.mjs +0 -5
  11. package/esm2022/common/util.mjs +0 -253
  12. package/esm2022/common/validation-util.mjs +0 -60
  13. package/esm2022/directives.mjs +0 -89
  14. package/esm2022/dropzone-base.mjs +0 -69
  15. package/esm2022/dropzone-external.directive.mjs +0 -111
  16. package/esm2022/dropzone-internal.directive.mjs +0 -109
  17. package/esm2022/dropzone.component.mjs +0 -169
  18. package/esm2022/dropzone.service.mjs +0 -37
  19. package/esm2022/events/cancel-event.mjs +0 -35
  20. package/esm2022/events/clear-event.mjs +0 -29
  21. package/esm2022/events/error-event.mjs +0 -48
  22. package/esm2022/events/pause-event.mjs +0 -38
  23. package/esm2022/events/preventable-event.mjs +0 -25
  24. package/esm2022/events/remove-event.mjs +0 -49
  25. package/esm2022/events/resume-event.mjs +0 -38
  26. package/esm2022/events/select-event.mjs +0 -37
  27. package/esm2022/events/success-event.mjs +0 -49
  28. package/esm2022/events/upload-event.mjs +0 -49
  29. package/esm2022/events/upload-progress-event.mjs +0 -41
  30. package/esm2022/events.mjs +0 -14
  31. package/esm2022/file-select.directive.mjs +0 -136
  32. package/esm2022/fileselect.component.mjs +0 -452
  33. package/esm2022/fileselect.module.mjs +0 -41
  34. package/esm2022/index.mjs +0 -31
  35. package/esm2022/localization/custom-messages.component.mjs +0 -70
  36. package/esm2022/localization/localized-messages.directive.mjs +0 -43
  37. package/esm2022/localization/messages.mjs +0 -185
  38. package/esm2022/navigation.service.mjs +0 -151
  39. package/esm2022/package-metadata.mjs +0 -16
  40. package/esm2022/progress-kendo-angular-upload.mjs +0 -8
  41. package/esm2022/rendering/file-list-item-action-button.component.mjs +0 -230
  42. package/esm2022/rendering/file-list-item-base.mjs +0 -52
  43. package/esm2022/rendering/file-list-item.mjs +0 -115
  44. package/esm2022/rendering/file-list-multiple-items.component.mjs +0 -201
  45. package/esm2022/rendering/file-list-single-item.component.mjs +0 -181
  46. package/esm2022/rendering/file-list.component.mjs +0 -189
  47. package/esm2022/rendering/upload-action-buttons.component.mjs +0 -126
  48. package/esm2022/rendering/upload-status-total.component.mjs +0 -97
  49. package/esm2022/templates/file-info-template.directive.mjs +0 -39
  50. package/esm2022/templates/file-template.directive.mjs +0 -39
  51. package/esm2022/types/async-settings.mjs +0 -5
  52. package/esm2022/types/chunk-info.mjs +0 -5
  53. package/esm2022/types/chunk-map.mjs +0 -35
  54. package/esm2022/types/chunk-metadata.mjs +0 -5
  55. package/esm2022/types/chunk-settings.mjs +0 -5
  56. package/esm2022/types/direction.mjs +0 -5
  57. package/esm2022/types/file-groups.mjs +0 -60
  58. package/esm2022/types/file-info.mjs +0 -5
  59. package/esm2022/types/file-map.mjs +0 -144
  60. package/esm2022/types/file-restrictions.mjs +0 -5
  61. package/esm2022/types/file-state.mjs +0 -34
  62. package/esm2022/types/operation-type.mjs +0 -5
  63. package/esm2022/types.mjs +0 -6
  64. package/esm2022/upload.component.mjs +0 -901
  65. package/esm2022/upload.module.mjs +0 -43
  66. package/esm2022/upload.service.mjs +0 -431
  67. package/esm2022/uploads.module.mjs +0 -66
@@ -1,144 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { FileState } from '../types';
6
- /**
7
- * @hidden
8
- */
9
- export class FileMap {
10
- _files;
11
- constructor() {
12
- this._files = {};
13
- }
14
- add(file) {
15
- const uid = file.uid;
16
- if (this.has(uid)) {
17
- if (file.validationErrors && file.validationErrors.length > 0) {
18
- this._files[uid].unshift(file);
19
- }
20
- else {
21
- this._files[uid].push(file);
22
- }
23
- }
24
- else {
25
- this._files[uid] = [file];
26
- }
27
- }
28
- remove(uid) {
29
- if (this.has(uid)) {
30
- this._files[uid] = null;
31
- delete this._files[uid];
32
- }
33
- }
34
- clear() {
35
- const allFiles = this._files;
36
- for (const uid in allFiles) {
37
- if (allFiles.hasOwnProperty(uid)) {
38
- for (const file of allFiles[uid]) {
39
- if (file.httpSubscription) {
40
- file.httpSubscription.unsubscribe();
41
- }
42
- }
43
- allFiles[uid] = null;
44
- delete allFiles[uid];
45
- }
46
- }
47
- }
48
- has(uid) {
49
- return uid in this._files;
50
- }
51
- get(uid) {
52
- return this._files[uid];
53
- }
54
- setFilesState(files, state) {
55
- for (const file of files) {
56
- this.setFilesStateByUid(file.uid, state);
57
- }
58
- }
59
- setFilesStateByUid(uid, state) {
60
- this.get(uid).forEach((f) => {
61
- f.state = state;
62
- });
63
- }
64
- get count() {
65
- return Object.getOwnPropertyNames(this._files).length;
66
- }
67
- get files() {
68
- const initial = this._files;
69
- const transformed = [];
70
- for (const uid in initial) {
71
- if (initial.hasOwnProperty(uid)) {
72
- transformed.push(initial[uid]);
73
- }
74
- }
75
- return transformed;
76
- }
77
- get filesFlat() {
78
- const initial = this._files;
79
- const transformed = [];
80
- for (const uid in initial) {
81
- if (initial.hasOwnProperty(uid)) {
82
- const current = initial[uid];
83
- current.forEach((file) => {
84
- transformed.push(file);
85
- });
86
- }
87
- }
88
- return transformed;
89
- }
90
- get filesToUpload() {
91
- const files = this._files;
92
- const notUploaded = [];
93
- for (const uid in files) {
94
- if (files.hasOwnProperty(uid)) {
95
- const currentFiles = files[uid];
96
- let currentFilesValid = true;
97
- for (const file of currentFiles) {
98
- if (file.state !== FileState.Selected || (file.validationErrors && file.validationErrors.length > 0)) {
99
- currentFilesValid = false;
100
- }
101
- }
102
- if (currentFilesValid) {
103
- notUploaded.push(currentFiles);
104
- }
105
- }
106
- }
107
- return notUploaded;
108
- }
109
- get firstFileToUpload() {
110
- const files = this._files;
111
- for (const uid in files) {
112
- if (files.hasOwnProperty(uid)) {
113
- const currentFiles = files[uid];
114
- let currentFilesValid = true;
115
- for (const file of currentFiles) {
116
- if (file.state !== FileState.Selected || (file.validationErrors && file.validationErrors.length > 0)) {
117
- currentFilesValid = false;
118
- }
119
- }
120
- if (currentFilesValid) {
121
- return currentFiles;
122
- }
123
- }
124
- }
125
- return null;
126
- }
127
- getFilesWithState(state) {
128
- return this.filesFlat.filter(file => file.state === state);
129
- }
130
- hasFileWithState(fileStates) {
131
- const files = this._files;
132
- for (const uid in files) {
133
- if (files.hasOwnProperty(uid)) {
134
- const currentFiles = files[uid];
135
- for (const file of currentFiles) {
136
- if (fileStates.indexOf(file.state) >= 0) {
137
- return true;
138
- }
139
- }
140
- }
141
- }
142
- return false;
143
- }
144
- }
@@ -1,5 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export {};
@@ -1,34 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * Lists the possible states of a file.
7
- */
8
- export var FileState;
9
- (function (FileState) {
10
- /**
11
- * The file upload process failed.
12
- */
13
- FileState[FileState["Failed"] = 0] = "Failed";
14
- /**
15
- * An initially selected file without a set state.
16
- */
17
- FileState[FileState["Initial"] = 1] = "Initial";
18
- /**
19
- * The file is selected.
20
- */
21
- FileState[FileState["Selected"] = 2] = "Selected";
22
- /**
23
- * The file uploaded successfully.
24
- */
25
- FileState[FileState["Uploaded"] = 3] = "Uploaded";
26
- /**
27
- * The file is uploading.
28
- */
29
- FileState[FileState["Uploading"] = 4] = "Uploading";
30
- /**
31
- * The file upload process is paused.
32
- */
33
- FileState[FileState["Paused"] = 5] = "Paused";
34
- })(FileState || (FileState = {}));
@@ -1,5 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export {};
package/esm2022/types.mjs DELETED
@@ -1,6 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export { FileState } from './types/file-state';
6
- export { FileMap } from './types/file-map';