@progress/kendo-angular-upload 9.0.4 → 11.0.0-develop.101
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.
- package/LICENSE.md +1 -1
- package/NOTICE.txt +4 -4
- package/README.md +1 -1
- package/common/action-buttons-layout.d.ts +1 -1
- package/common/util.d.ts +1 -1
- package/common/validation-util.d.ts +1 -1
- package/dropzone-base.d.ts +2 -2
- package/dropzone-external.directive.d.ts +1 -1
- package/dropzone-internal.directive.d.ts +1 -1
- package/dropzone.component.d.ts +11 -3
- package/dropzone.service.d.ts +1 -1
- package/{esm2015/types/chunk-metadata.js → esm2020/common/action-buttons-layout.mjs} +1 -1
- package/{esm2015/common/util.js → esm2020/common/util.mjs} +13 -10
- package/{esm2015/common/validation-util.js → esm2020/common/validation-util.mjs} +2 -2
- package/{esm2015/dropzone-base.js → esm2020/dropzone-base.mjs} +5 -5
- package/{esm2015/dropzone-external.directive.js → esm2020/dropzone-external.directive.mjs} +5 -5
- package/{esm2015/dropzone-internal.directive.js → esm2020/dropzone-internal.directive.mjs} +11 -7
- package/esm2020/dropzone.component.mjs +134 -0
- package/{esm2015/dropzone.service.js → esm2020/dropzone.service.mjs} +5 -5
- package/{esm2015/events/cancel-event.js → esm2020/events/cancel-event.mjs} +1 -1
- package/{esm2015/events/clear-event.js → esm2020/events/clear-event.mjs} +1 -1
- package/{esm2015/events/error-event.js → esm2020/events/error-event.mjs} +1 -1
- package/{esm2015/events/pause-event.js → esm2020/events/pause-event.mjs} +1 -1
- package/{esm2015/events/preventable-event.js → esm2020/events/preventable-event.mjs} +1 -1
- package/{esm2015/events/remove-event.js → esm2020/events/remove-event.mjs} +1 -1
- package/{esm2015/events/resume-event.js → esm2020/events/resume-event.mjs} +1 -1
- package/{esm2015/events/select-event.js → esm2020/events/select-event.mjs} +1 -1
- package/{esm2015/events/success-event.js → esm2020/events/success-event.mjs} +1 -1
- package/{esm2015/events/upload-event.js → esm2020/events/upload-event.mjs} +1 -1
- package/{esm2015/events/upload-progress-event.js → esm2020/events/upload-progress-event.mjs} +1 -1
- package/{esm2015/events.js → esm2020/events.mjs} +1 -1
- package/{esm2015/file-select.directive.js → esm2020/file-select.directive.mjs} +7 -5
- package/{esm2015/fileselect.component.js → esm2020/fileselect.component.mjs} +100 -60
- package/{esm2015/fileselect.module.js → esm2020/fileselect.module.mjs} +7 -6
- package/{esm2015/main.js → esm2020/index.mjs} +2 -1
- package/{esm2015/localization/custom-messages.component.js → esm2020/localization/custom-messages.component.mjs} +5 -4
- package/{esm2015/localization/localized-messages.directive.js → esm2020/localization/localized-messages.directive.mjs} +5 -4
- package/{esm2015/localization/messages.js → esm2020/localization/messages.mjs} +4 -4
- package/{esm2015/navigation.service.js → esm2020/navigation.service.mjs} +56 -40
- package/{esm2015/package-metadata.js → esm2020/package-metadata.mjs} +3 -3
- package/{esm2015/kendo-angular-upload.js → esm2020/progress-kendo-angular-upload.mjs} +2 -2
- package/esm2020/rendering/file-list-item-action-button.component.mjs +262 -0
- package/{esm2015/rendering/file-list-item-base.js → esm2020/rendering/file-list-item-base.mjs} +5 -4
- package/{esm2015/rendering/file-list-item.js → esm2020/rendering/file-list-item.mjs} +7 -5
- package/esm2020/rendering/file-list-multiple-items.component.mjs +186 -0
- package/esm2020/rendering/file-list-single-item.component.mjs +185 -0
- package/{esm2015/rendering/file-list.component.js → esm2020/rendering/file-list.component.mjs} +16 -11
- package/{esm2015/rendering/upload-action-buttons.component.js → esm2020/rendering/upload-action-buttons.component.mjs} +8 -5
- package/{esm2015/rendering/upload-status-total.component.js → esm2020/rendering/upload-status-total.component.mjs} +51 -22
- package/{esm2015/shared.module.js → esm2020/shared.module.mjs} +15 -9
- package/{esm2015/templates/file-info-template.directive.js → esm2020/templates/file-info-template.directive.mjs} +5 -5
- package/{esm2015/templates/file-template.directive.js → esm2020/templates/file-template.directive.mjs} +5 -5
- package/{esm2015/templates/template-context.directive.js → esm2020/templates/template-context.directive.mjs} +5 -5
- package/{esm2015/common/action-buttons-layout.js → esm2020/types/async-settings.mjs} +1 -1
- package/{esm2015/types/chunk-info.js → esm2020/types/chunk-info.mjs} +1 -1
- package/{esm2015/types/chunk-map.js → esm2020/types/chunk-map.mjs} +1 -1
- package/{esm2015/types/async-settings.js → esm2020/types/chunk-metadata.mjs} +1 -1
- package/esm2020/types/chunk-settings.mjs +5 -0
- package/esm2020/types/direction.mjs +5 -0
- package/{esm2015/types/file-groups.js → esm2020/types/file-groups.mjs} +19 -1
- package/esm2020/types/file-info.mjs +5 -0
- package/{esm2015/types/file-map.js → esm2020/types/file-map.mjs} +26 -26
- package/esm2020/types/file-restrictions.mjs +5 -0
- package/{esm2015/types/file-state.js → esm2020/types/file-state.mjs} +1 -1
- package/esm2020/types/operation-type.mjs +5 -0
- package/{esm2015/types.js → esm2020/types.mjs} +1 -1
- package/{esm2015/upload.component.js → esm2020/upload.component.mjs} +125 -80
- package/{esm2015/upload.module.js → esm2020/upload.module.mjs} +8 -7
- package/{esm2015/upload.service.js → esm2020/upload.service.mjs} +35 -35
- package/{esm2015/uploads.module.js → esm2020/uploads.module.mjs} +5 -5
- package/events/cancel-event.d.ts +1 -1
- package/events/clear-event.d.ts +1 -1
- package/events/error-event.d.ts +1 -1
- package/events/pause-event.d.ts +1 -1
- package/events/preventable-event.d.ts +1 -1
- package/events/remove-event.d.ts +1 -1
- package/events/resume-event.d.ts +1 -1
- package/events/select-event.d.ts +1 -1
- package/events/success-event.d.ts +1 -1
- package/events/upload-event.d.ts +1 -1
- package/events/upload-progress-event.d.ts +3 -3
- package/events.d.ts +1 -1
- package/fesm2015/progress-kendo-angular-upload.mjs +4997 -0
- package/{fesm2015/kendo-angular-upload.js → fesm2020/progress-kendo-angular-upload.mjs} +829 -592
- package/file-select.directive.d.ts +1 -1
- package/fileselect.component.d.ts +13 -8
- package/fileselect.module.d.ts +8 -7
- package/{main.d.ts → index.d.ts} +2 -1
- package/localization/custom-messages.component.d.ts +1 -1
- package/localization/localized-messages.directive.d.ts +1 -1
- package/localization/messages.d.ts +1 -1
- package/navigation.service.d.ts +4 -3
- package/package-metadata.d.ts +1 -1
- package/package.json +30 -55
- package/{kendo-angular-upload.d.ts → progress-kendo-angular-upload.d.ts} +2 -2
- package/rendering/file-list-item-action-button.component.d.ts +8 -2
- package/rendering/file-list-item-base.d.ts +2 -2
- package/rendering/file-list-item.d.ts +1 -1
- package/rendering/file-list-multiple-items.component.d.ts +3 -1
- package/rendering/file-list-single-item.component.d.ts +3 -1
- package/rendering/file-list.component.d.ts +1 -1
- package/rendering/upload-action-buttons.component.d.ts +1 -1
- package/rendering/upload-status-total.component.d.ts +8 -1
- package/schematics/ngAdd/index.js +8 -6
- package/shared.module.d.ts +5 -2
- package/templates/file-info-template.directive.d.ts +1 -1
- package/templates/file-template.directive.d.ts +1 -1
- package/templates/template-context.directive.d.ts +1 -1
- package/types/async-settings.d.ts +1 -1
- package/types/chunk-info.d.ts +1 -1
- package/types/chunk-map.d.ts +1 -1
- package/types/chunk-metadata.d.ts +1 -1
- package/types/chunk-settings.d.ts +1 -1
- package/types/direction.d.ts +1 -1
- package/types/file-groups.d.ts +22 -1
- package/types/file-info.d.ts +1 -1
- package/types/file-map.d.ts +1 -1
- package/types/file-restrictions.d.ts +1 -1
- package/types/file-state.d.ts +1 -1
- package/types/operation-type.d.ts +1 -1
- package/types.d.ts +1 -1
- package/upload.component.d.ts +15 -10
- package/upload.module.d.ts +8 -7
- package/upload.service.d.ts +1 -1
- package/uploads.module.d.ts +1 -1
- package/bundles/kendo-angular-upload.umd.js +0 -5
- package/esm2015/dropzone.component.js +0 -112
- package/esm2015/rendering/file-list-item-action-button.component.js +0 -226
- package/esm2015/rendering/file-list-multiple-items.component.js +0 -172
- package/esm2015/rendering/file-list-single-item.component.js +0 -154
- package/esm2015/types/chunk-settings.js +0 -5
- package/esm2015/types/direction.js +0 -5
- package/esm2015/types/file-info.js +0 -5
- package/esm2015/types/file-restrictions.js +0 -5
- package/esm2015/types/operation-type.js +0 -5
- package/schematics/ngAdd/index.js.map +0 -1
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Input, Component } from '@angular/core';
|
|
6
|
+
import { FileState } from '../types';
|
|
7
|
+
import { FileListItemBase } from './file-list-item-base';
|
|
8
|
+
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
|
+
import { UploadService } from '../upload.service';
|
|
10
|
+
import { getFileGroupCssClass, isPresent } from '../common/util';
|
|
11
|
+
import { FileInfoTemplateDirective } from '../templates/file-info-template.directive';
|
|
12
|
+
import { animate, state, style, transition, trigger } from '@angular/animations';
|
|
13
|
+
import { fileIcon } from '@progress/kendo-svg-icons';
|
|
14
|
+
import { fileGroupMap, fileSVGGroupMap } from '../types/file-groups';
|
|
15
|
+
import * as i0 from "@angular/core";
|
|
16
|
+
import * as i1 from "@progress/kendo-angular-l10n";
|
|
17
|
+
import * as i2 from "../upload.service";
|
|
18
|
+
import * as i3 from "@progress/kendo-angular-progressbar";
|
|
19
|
+
import * as i4 from "@progress/kendo-angular-icons";
|
|
20
|
+
import * as i5 from "./file-list-item-action-button.component";
|
|
21
|
+
import * as i6 from "@angular/common";
|
|
22
|
+
import * as i7 from "@progress/kendo-angular-buttons";
|
|
23
|
+
import * as i8 from "../templates/template-context.directive";
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
export class FileListSingleItemComponent extends FileListItemBase {
|
|
28
|
+
constructor(localization, uploadService) {
|
|
29
|
+
super(uploadService);
|
|
30
|
+
this.localization = localization;
|
|
31
|
+
this.subscribeUploadProgress((args) => {
|
|
32
|
+
if (args.files[0].uid === this.file.uid) {
|
|
33
|
+
this.progressComplete = args.percentComplete;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
get fileStatusText() {
|
|
38
|
+
const errors = this.file.validationErrors;
|
|
39
|
+
if (this.file.state === FileState.Uploaded) {
|
|
40
|
+
return `${this.textFor('fileStatusUploaded')}`;
|
|
41
|
+
}
|
|
42
|
+
if (this.file.state === FileState.Failed) {
|
|
43
|
+
return `${this.textFor('fileStatusFailed')}`;
|
|
44
|
+
}
|
|
45
|
+
if (!isPresent(errors)) {
|
|
46
|
+
return this.getTotalFilesSizeMessage([this.file]);
|
|
47
|
+
}
|
|
48
|
+
return this.getFileValidationMessage(this.file);
|
|
49
|
+
}
|
|
50
|
+
get showProgress() {
|
|
51
|
+
const showProgress = this.file.state === FileState.Uploading || this.file.state === FileState.Paused;
|
|
52
|
+
return showProgress ? 'active' : 'inactive';
|
|
53
|
+
}
|
|
54
|
+
get fileGroupClass() {
|
|
55
|
+
return getFileGroupCssClass(this.file.extension ? this.file.extension : '');
|
|
56
|
+
}
|
|
57
|
+
get fileSVGGroupIcon() {
|
|
58
|
+
const initial = fileIcon;
|
|
59
|
+
if (this.file.extension) {
|
|
60
|
+
for (const group in fileGroupMap) {
|
|
61
|
+
if (fileGroupMap[group].indexOf(this.file.extension) >= 0) {
|
|
62
|
+
return fileSVGGroupMap[group];
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return initial;
|
|
67
|
+
}
|
|
68
|
+
get isUploadSuccessful() {
|
|
69
|
+
return this.file.state === FileState.Uploaded;
|
|
70
|
+
}
|
|
71
|
+
get isUploadFailed() {
|
|
72
|
+
return this.file.state === FileState.Failed;
|
|
73
|
+
}
|
|
74
|
+
get isNotYetUploaded() {
|
|
75
|
+
return !this.isUploadFailed && !this.isUploadSuccessful;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
FileListSingleItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileListSingleItemComponent, deps: [{ token: i1.LocalizationService }, { token: i2.UploadService }], target: i0.ɵɵFactoryTarget.Component });
|
|
79
|
+
FileListSingleItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FileListSingleItemComponent, selector: "kendo-upload-file-list-single-item", inputs: { disabled: "disabled", file: "file", fileInfoTemplate: "fileInfoTemplate" }, usesInheritance: true, ngImport: i0, template: `
|
|
80
|
+
<kendo-progressbar
|
|
81
|
+
[@progressState]="showProgress"
|
|
82
|
+
[value]="progressComplete"
|
|
83
|
+
[label]="{ visible: false }"
|
|
84
|
+
>
|
|
85
|
+
</kendo-progressbar>
|
|
86
|
+
<span class="k-file-icon-wrapper">
|
|
87
|
+
<kendo-icon-wrapper
|
|
88
|
+
[name]="fileGroupClass"
|
|
89
|
+
[svgIcon]="fileSVGGroupIcon"
|
|
90
|
+
innerCssClass="k-file-icon"
|
|
91
|
+
>
|
|
92
|
+
</kendo-icon-wrapper>
|
|
93
|
+
</span>
|
|
94
|
+
<span class="k-file-info">
|
|
95
|
+
<ng-container *ngIf="!fileInfoTemplate">
|
|
96
|
+
<span class="k-file-name" [title]="file.name">{{ file.name }}</span>
|
|
97
|
+
<span [ngClass]="{
|
|
98
|
+
'k-file-validation-message': file.validationErrors,
|
|
99
|
+
'k-file-size': !file.validationErrors && isNotYetUploaded,
|
|
100
|
+
'k-file-summary': isUploadSuccessful || isUploadFailed
|
|
101
|
+
}"
|
|
102
|
+
>{{fileStatusText}}</span>
|
|
103
|
+
</ng-container>
|
|
104
|
+
<ng-template *ngIf="fileInfoTemplate"
|
|
105
|
+
[templateContext]="{
|
|
106
|
+
templateRef: fileInfoTemplate.templateRef,
|
|
107
|
+
state: file.state,
|
|
108
|
+
$implicit: [file]
|
|
109
|
+
}">
|
|
110
|
+
</ng-template>
|
|
111
|
+
</span>
|
|
112
|
+
<kendo-upload-file-list-item-action-button
|
|
113
|
+
[file]='file'
|
|
114
|
+
[disabled]='disabled'
|
|
115
|
+
[progress]='progressComplete'>
|
|
116
|
+
</kendo-upload-file-list-item-action-button>
|
|
117
|
+
`, isInline: true, components: [{ type: i3.ProgressBarComponent, selector: "kendo-progressbar", inputs: ["label", "progressCssStyle", "progressCssClass", "emptyCssStyle", "emptyCssClass", "animation"], outputs: ["animationEnd"], exportAs: ["kendoProgressBar"] }, { type: i4.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { type: i5.FileListItemActionButtonComponent, selector: "kendo-upload-file-list-item-action-button", inputs: ["file", "disabled", "progress"] }], directives: [{ type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i7.TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }, { type: i8.TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }], animations: [
|
|
118
|
+
trigger('progressState', [
|
|
119
|
+
state('active', style({ opacity: 1 })),
|
|
120
|
+
state('inactive', style({ opacity: 0 })),
|
|
121
|
+
transition('void => active', style({ opacity: 0 })),
|
|
122
|
+
transition('inactive => active', style({ opacity: 1 })),
|
|
123
|
+
transition('active => inactive', animate('1s 2s ease-out'))
|
|
124
|
+
])
|
|
125
|
+
] });
|
|
126
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileListSingleItemComponent, decorators: [{
|
|
127
|
+
type: Component,
|
|
128
|
+
args: [{
|
|
129
|
+
animations: [
|
|
130
|
+
trigger('progressState', [
|
|
131
|
+
state('active', style({ opacity: 1 })),
|
|
132
|
+
state('inactive', style({ opacity: 0 })),
|
|
133
|
+
transition('void => active', style({ opacity: 0 })),
|
|
134
|
+
transition('inactive => active', style({ opacity: 1 })),
|
|
135
|
+
transition('active => inactive', animate('1s 2s ease-out'))
|
|
136
|
+
])
|
|
137
|
+
],
|
|
138
|
+
selector: 'kendo-upload-file-list-single-item',
|
|
139
|
+
template: `
|
|
140
|
+
<kendo-progressbar
|
|
141
|
+
[@progressState]="showProgress"
|
|
142
|
+
[value]="progressComplete"
|
|
143
|
+
[label]="{ visible: false }"
|
|
144
|
+
>
|
|
145
|
+
</kendo-progressbar>
|
|
146
|
+
<span class="k-file-icon-wrapper">
|
|
147
|
+
<kendo-icon-wrapper
|
|
148
|
+
[name]="fileGroupClass"
|
|
149
|
+
[svgIcon]="fileSVGGroupIcon"
|
|
150
|
+
innerCssClass="k-file-icon"
|
|
151
|
+
>
|
|
152
|
+
</kendo-icon-wrapper>
|
|
153
|
+
</span>
|
|
154
|
+
<span class="k-file-info">
|
|
155
|
+
<ng-container *ngIf="!fileInfoTemplate">
|
|
156
|
+
<span class="k-file-name" [title]="file.name">{{ file.name }}</span>
|
|
157
|
+
<span [ngClass]="{
|
|
158
|
+
'k-file-validation-message': file.validationErrors,
|
|
159
|
+
'k-file-size': !file.validationErrors && isNotYetUploaded,
|
|
160
|
+
'k-file-summary': isUploadSuccessful || isUploadFailed
|
|
161
|
+
}"
|
|
162
|
+
>{{fileStatusText}}</span>
|
|
163
|
+
</ng-container>
|
|
164
|
+
<ng-template *ngIf="fileInfoTemplate"
|
|
165
|
+
[templateContext]="{
|
|
166
|
+
templateRef: fileInfoTemplate.templateRef,
|
|
167
|
+
state: file.state,
|
|
168
|
+
$implicit: [file]
|
|
169
|
+
}">
|
|
170
|
+
</ng-template>
|
|
171
|
+
</span>
|
|
172
|
+
<kendo-upload-file-list-item-action-button
|
|
173
|
+
[file]='file'
|
|
174
|
+
[disabled]='disabled'
|
|
175
|
+
[progress]='progressComplete'>
|
|
176
|
+
</kendo-upload-file-list-item-action-button>
|
|
177
|
+
`
|
|
178
|
+
}]
|
|
179
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i2.UploadService }]; }, propDecorators: { disabled: [{
|
|
180
|
+
type: Input
|
|
181
|
+
}], file: [{
|
|
182
|
+
type: Input
|
|
183
|
+
}], fileInfoTemplate: [{
|
|
184
|
+
type: Input
|
|
185
|
+
}] } });
|
package/{esm2015/rendering/file-list.component.js → esm2020/rendering/file-list.component.mjs}
RENAMED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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 @angular-eslint/component-selector */
|
|
6
|
-
import { Input, Component, ViewChildren } from '@angular/core';
|
|
6
|
+
import { Input, Component, ViewChildren, QueryList } from '@angular/core';
|
|
7
7
|
import { Keys } from '@progress/kendo-angular-common';
|
|
8
8
|
import { FileState } from '../types';
|
|
9
|
+
import { FileTemplateDirective } from '../templates/file-template.directive';
|
|
9
10
|
import { FileListItemDirective } from './file-list-item';
|
|
11
|
+
import { NavigationService } from '../navigation.service';
|
|
12
|
+
import { UploadService } from '../upload.service';
|
|
13
|
+
import { FileInfoTemplateDirective } from '../templates/file-info-template.directive';
|
|
10
14
|
import * as i0 from "@angular/core";
|
|
11
15
|
import * as i1 from "../upload.service";
|
|
12
16
|
import * as i2 from "../navigation.service";
|
|
@@ -14,7 +18,8 @@ import * as i3 from "./file-list-single-item.component";
|
|
|
14
18
|
import * as i4 from "./file-list-multiple-items.component";
|
|
15
19
|
import * as i5 from "@angular/common";
|
|
16
20
|
import * as i6 from "./file-list-item";
|
|
17
|
-
import * as i7 from "
|
|
21
|
+
import * as i7 from "@progress/kendo-angular-buttons";
|
|
22
|
+
import * as i8 from "../templates/template-context.directive";
|
|
18
23
|
/**
|
|
19
24
|
* @hidden
|
|
20
25
|
*/
|
|
@@ -36,10 +41,10 @@ export class FileListComponent {
|
|
|
36
41
|
});
|
|
37
42
|
}
|
|
38
43
|
itemActionHandler(key) {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
44
|
+
const index = this.navigation.focusedIndex;
|
|
45
|
+
const item = this.fileListItems.toArray()[index];
|
|
46
|
+
const uid = item.uidAttribute;
|
|
47
|
+
const files = this.uploadService.files.get(uid);
|
|
43
48
|
if (key === Keys.Escape && files[0].state === FileState.Uploading) {
|
|
44
49
|
this.uploadService.cancelFiles(uid);
|
|
45
50
|
this.navigation.focusSelectButton();
|
|
@@ -67,8 +72,8 @@ export class FileListComponent {
|
|
|
67
72
|
this.actionSubscription.unsubscribe();
|
|
68
73
|
}
|
|
69
74
|
}
|
|
70
|
-
FileListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
71
|
-
FileListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
75
|
+
FileListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileListComponent, deps: [{ token: i1.UploadService }, { token: i2.NavigationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
76
|
+
FileListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FileListComponent, selector: "[kendo-upload-file-list]", inputs: { disabled: "disabled", fileList: "fileList", fileTemplate: "fileTemplate", fileInfoTemplate: "fileInfoTemplate" }, viewQueries: [{ propertyName: "fileListItems", predicate: FileListItemDirective, descendants: true }], ngImport: i0, template: `
|
|
72
77
|
<ng-template ngFor
|
|
73
78
|
[ngForOf]="fileList"
|
|
74
79
|
let-files
|
|
@@ -96,8 +101,8 @@ FileListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
96
101
|
}"></ng-template>
|
|
97
102
|
</li>
|
|
98
103
|
</ng-template>
|
|
99
|
-
`, isInline: true, components: [{ type: i3.FileListSingleItemComponent, selector: "kendo-upload-file-list-single-item", inputs: ["disabled", "file", "fileInfoTemplate"] }, { type: i4.FileListMultipleItemsComponent, selector: "kendo-upload-file-list-multiple-items", inputs: ["disabled", "files", "fileInfoTemplate"] }], directives: [{ type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6.FileListItemDirective, selector: "[kendoUploadFileListItem]", inputs: ["files", "index"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7.TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }] });
|
|
100
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
104
|
+
`, isInline: true, components: [{ type: i3.FileListSingleItemComponent, selector: "kendo-upload-file-list-single-item", inputs: ["disabled", "file", "fileInfoTemplate"] }, { type: i4.FileListMultipleItemsComponent, selector: "kendo-upload-file-list-multiple-items", inputs: ["disabled", "files", "fileInfoTemplate"] }], directives: [{ type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6.FileListItemDirective, selector: "[kendoUploadFileListItem]", inputs: ["files", "index"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7.TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }, { type: i8.TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }] });
|
|
105
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileListComponent, decorators: [{
|
|
101
106
|
type: Component,
|
|
102
107
|
args: [{
|
|
103
108
|
selector: '[kendo-upload-file-list]',
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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, Input, HostBinding, ViewChild } from '@angular/core';
|
|
5
|
+
import { Component, Input, HostBinding, ViewChild, ElementRef } from '@angular/core';
|
|
6
|
+
import { UploadService } from '../upload.service';
|
|
7
|
+
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
|
+
import { NavigationService } from '../navigation.service';
|
|
6
9
|
import * as i0 from "@angular/core";
|
|
7
10
|
import * as i1 from "../upload.service";
|
|
8
11
|
import * as i2 from "@progress/kendo-angular-l10n";
|
|
@@ -78,8 +81,8 @@ export class UploadActionButtonsComponent {
|
|
|
78
81
|
return this.localization.get(key);
|
|
79
82
|
}
|
|
80
83
|
}
|
|
81
|
-
UploadActionButtonsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
82
|
-
UploadActionButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
84
|
+
UploadActionButtonsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UploadActionButtonsComponent, deps: [{ token: i1.UploadService }, { token: i2.LocalizationService }, { token: i3.NavigationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
85
|
+
UploadActionButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: UploadActionButtonsComponent, selector: "kendo-upload-action-buttons", inputs: { disabled: "disabled", actionsLayout: "actionsLayout" }, host: { properties: { "class.k-actions": "this.hostDefaultClass", "class.k-actions-end": "this.actionButtonsEndClassName", "class.k-actions-stretched": "this.actionButtonsStretchedClassName", "class.k-actions-start": "this.actionButtonsStartClassName", "class.k-actions-center": "this.actionButtonsCenterClassName" } }, viewQueries: [{ propertyName: "clearButton", first: true, predicate: ["clearButton"], descendants: true, static: true }, { propertyName: "uploadButton", first: true, predicate: ["uploadButton"], descendants: true, static: true }], ngImport: i0, template: `
|
|
83
86
|
<button #clearButton type="button" class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-clear-selected"
|
|
84
87
|
[attr.tabIndex]="-1"
|
|
85
88
|
(click)="onClearButtonClick($event)">
|
|
@@ -91,7 +94,7 @@ UploadActionButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12
|
|
|
91
94
|
{{textFor('uploadSelectedFiles')}}
|
|
92
95
|
</button>
|
|
93
96
|
`, isInline: true });
|
|
94
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
97
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UploadActionButtonsComponent, decorators: [{
|
|
95
98
|
type: Component,
|
|
96
99
|
args: [{
|
|
97
100
|
selector: 'kendo-upload-action-buttons',
|
|
@@ -1,18 +1,53 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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 { Component, Input } from '@angular/core';
|
|
6
|
+
import { FileMap } from '../types/file-map';
|
|
6
7
|
import { FileState } from '../types';
|
|
8
|
+
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
|
+
import { checkIcon, exclamationCircleIcon, pauseSmIcon, uploadIcon } from '@progress/kendo-svg-icons';
|
|
7
10
|
import * as i0 from "@angular/core";
|
|
8
11
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
9
|
-
import * as i2 from "@angular
|
|
12
|
+
import * as i2 from "@progress/kendo-angular-icons";
|
|
10
13
|
/**
|
|
11
14
|
* @hidden
|
|
12
15
|
*/
|
|
13
16
|
export class UploadStatusTotalComponent {
|
|
14
17
|
constructor(localization) {
|
|
15
18
|
this.localization = localization;
|
|
19
|
+
this.checkmarkIcon = checkIcon;
|
|
20
|
+
this.exceptionSVGIcon = exclamationCircleIcon;
|
|
21
|
+
this.uploadSVGIcon = uploadIcon;
|
|
22
|
+
this.pauseSVGIcon = pauseSmIcon;
|
|
23
|
+
}
|
|
24
|
+
get iconClass() {
|
|
25
|
+
if (!this.isUploading && !this.isFailed) {
|
|
26
|
+
return 'checkmark';
|
|
27
|
+
}
|
|
28
|
+
if (!this.isUploading && this.isFailed) {
|
|
29
|
+
return 'exception';
|
|
30
|
+
}
|
|
31
|
+
if (this.isUploading) {
|
|
32
|
+
return 'upload';
|
|
33
|
+
}
|
|
34
|
+
if (this.isPaused) {
|
|
35
|
+
return 'pause-sm';
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
get SVGIconClass() {
|
|
39
|
+
if (!this.isUploading && !this.isFailed) {
|
|
40
|
+
return this.checkmarkIcon;
|
|
41
|
+
}
|
|
42
|
+
if (!this.isUploading && this.isFailed) {
|
|
43
|
+
return this.exceptionSVGIcon;
|
|
44
|
+
}
|
|
45
|
+
if (this.isUploading) {
|
|
46
|
+
return this.uploadSVGIcon;
|
|
47
|
+
}
|
|
48
|
+
if (this.isPaused) {
|
|
49
|
+
return this.pauseSVGIcon;
|
|
50
|
+
}
|
|
16
51
|
}
|
|
17
52
|
ngDoCheck() {
|
|
18
53
|
this.isPaused = this.fileList.hasFileWithState([FileState.Paused]);
|
|
@@ -27,31 +62,25 @@ export class UploadStatusTotalComponent {
|
|
|
27
62
|
}
|
|
28
63
|
}
|
|
29
64
|
}
|
|
30
|
-
UploadStatusTotalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
31
|
-
UploadStatusTotalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
32
|
-
<
|
|
33
|
-
[
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
'k-i-pause-sm': this.isPaused
|
|
38
|
-
}">
|
|
39
|
-
</span>
|
|
65
|
+
UploadStatusTotalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UploadStatusTotalComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
66
|
+
UploadStatusTotalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: UploadStatusTotalComponent, selector: "kendo-upload-status-total", inputs: { fileList: "fileList" }, ngImport: i0, template: `
|
|
67
|
+
<kendo-icon-wrapper
|
|
68
|
+
[name]="iconClass"
|
|
69
|
+
[svgIcon]="SVGIconClass"
|
|
70
|
+
>
|
|
71
|
+
</kendo-icon-wrapper>
|
|
40
72
|
{{statusText}}
|
|
41
|
-
`, isInline: true,
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
73
|
+
`, isInline: true, components: [{ type: i2.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }] });
|
|
74
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UploadStatusTotalComponent, decorators: [{
|
|
43
75
|
type: Component,
|
|
44
76
|
args: [{
|
|
45
77
|
selector: 'kendo-upload-status-total',
|
|
46
78
|
template: `
|
|
47
|
-
<
|
|
48
|
-
[
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
'k-i-pause-sm': this.isPaused
|
|
53
|
-
}">
|
|
54
|
-
</span>
|
|
79
|
+
<kendo-icon-wrapper
|
|
80
|
+
[name]="iconClass"
|
|
81
|
+
[svgIcon]="SVGIconClass"
|
|
82
|
+
>
|
|
83
|
+
</kendo-icon-wrapper>
|
|
55
84
|
{{statusText}}
|
|
56
85
|
`
|
|
57
86
|
}]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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 { FileInfoTemplateDirective } from './templates/file-info-template.directive';
|
|
@@ -18,6 +18,9 @@ import { LocalizedMessagesDirective } from './localization/localized-messages.di
|
|
|
18
18
|
import { TemplateContextDirective } from './templates/template-context.directive';
|
|
19
19
|
import { UploadDropZoneDirective } from './dropzone-external.directive';
|
|
20
20
|
import { UploadDropZoneComponent } from './dropzone.component';
|
|
21
|
+
import { ButtonsModule } from '@progress/kendo-angular-buttons';
|
|
22
|
+
import { ProgressBarModule } from '@progress/kendo-angular-progressbar';
|
|
23
|
+
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
21
24
|
import * as i0 from "@angular/core";
|
|
22
25
|
/**
|
|
23
26
|
* @hidden
|
|
@@ -48,8 +51,8 @@ export const PUBLIC_DIRECTIVES = [
|
|
|
48
51
|
*/
|
|
49
52
|
export class SharedModule {
|
|
50
53
|
}
|
|
51
|
-
SharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
52
|
-
SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
54
|
+
SharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
55
|
+
SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, declarations: [FileTemplateDirective,
|
|
53
56
|
FileInfoTemplateDirective,
|
|
54
57
|
CustomMessagesComponent,
|
|
55
58
|
UploadDropZoneDirective,
|
|
@@ -61,7 +64,7 @@ SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
|
61
64
|
FileListSingleItemComponent,
|
|
62
65
|
FileSelectDirective,
|
|
63
66
|
LocalizedMessagesDirective,
|
|
64
|
-
TemplateContextDirective], imports: [CommonModule], exports: [FileTemplateDirective,
|
|
67
|
+
TemplateContextDirective], imports: [CommonModule, ButtonsModule, ProgressBarModule, IconsModule], exports: [FileTemplateDirective,
|
|
65
68
|
FileInfoTemplateDirective,
|
|
66
69
|
CustomMessagesComponent,
|
|
67
70
|
UploadDropZoneDirective,
|
|
@@ -73,9 +76,11 @@ SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
|
73
76
|
FileListSingleItemComponent,
|
|
74
77
|
FileSelectDirective,
|
|
75
78
|
LocalizedMessagesDirective,
|
|
76
|
-
TemplateContextDirective, CommonModule
|
|
77
|
-
|
|
78
|
-
i0.ɵɵ
|
|
79
|
+
TemplateContextDirective, CommonModule,
|
|
80
|
+
ButtonsModule] });
|
|
81
|
+
SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, imports: [[CommonModule, ButtonsModule, ProgressBarModule, IconsModule], CommonModule,
|
|
82
|
+
ButtonsModule] });
|
|
83
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, decorators: [{
|
|
79
84
|
type: NgModule,
|
|
80
85
|
args: [{
|
|
81
86
|
declarations: [
|
|
@@ -85,8 +90,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
85
90
|
exports: [
|
|
86
91
|
PUBLIC_DIRECTIVES,
|
|
87
92
|
SHARED_DECLARATIONS,
|
|
88
|
-
CommonModule
|
|
93
|
+
CommonModule,
|
|
94
|
+
ButtonsModule
|
|
89
95
|
],
|
|
90
|
-
imports: [CommonModule]
|
|
96
|
+
imports: [CommonModule, ButtonsModule, ProgressBarModule, IconsModule]
|
|
91
97
|
}]
|
|
92
98
|
}] });
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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 } from '@angular/core';
|
|
5
|
+
import { Directive, TemplateRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* Used to customize the rendering of the file info section in the list. All other elements of the default template, such as file icon, action buttons, upload progress etc. will be preserved in place. ([see example]({% slug templates_upload %}#toc-file-info-template)).
|
|
@@ -12,9 +12,9 @@ export class FileInfoTemplateDirective {
|
|
|
12
12
|
this.templateRef = templateRef;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
FileInfoTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
16
|
-
FileInfoTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
15
|
+
FileInfoTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileInfoTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
16
|
+
FileInfoTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: FileInfoTemplateDirective, selector: "[kendoUploadFileInfoTemplate], [kendoFileSelectFileInfoTemplate]", ngImport: i0 });
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileInfoTemplateDirective, decorators: [{
|
|
18
18
|
type: Directive,
|
|
19
19
|
args: [{
|
|
20
20
|
selector: '[kendoUploadFileInfoTemplate], [kendoFileSelectFileInfoTemplate]'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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 } from '@angular/core';
|
|
5
|
+
import { Directive, TemplateRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* Used to customize the rendering of the files in the list ([see example]({% slug templates_upload %}#toc-file-template)).
|
|
@@ -12,9 +12,9 @@ export class FileTemplateDirective {
|
|
|
12
12
|
this.templateRef = templateRef;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
FileTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
16
|
-
FileTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
15
|
+
FileTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
16
|
+
FileTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: FileTemplateDirective, selector: "[kendoUploadFileTemplate], [kendoFileSelectFileTemplate]", ngImport: i0 });
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileTemplateDirective, decorators: [{
|
|
18
18
|
type: Directive,
|
|
19
19
|
args: [{
|
|
20
20
|
selector: '[kendoUploadFileTemplate], [kendoFileSelectFileTemplate]'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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, Input } from '@angular/core';
|
|
5
|
+
import { Directive, ViewContainerRef, Input } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* @hidden
|
|
@@ -21,9 +21,9 @@ export class TemplateContextDirective {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
TemplateContextDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
25
|
-
TemplateContextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
24
|
+
TemplateContextDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TemplateContextDirective, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
25
|
+
TemplateContextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: TemplateContextDirective, selector: "[templateContext]", inputs: { templateContext: "templateContext" }, ngImport: i0 });
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TemplateContextDirective, decorators: [{
|
|
27
27
|
type: Directive,
|
|
28
28
|
args: [{
|
|
29
29
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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 ©
|
|
2
|
+
* Copyright © 2023 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 ©
|
|
2
|
+
* Copyright © 2023 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 ©
|
|
2
|
+
* Copyright © 2023 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 {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 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,7 +1,8 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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 { fileAudioIcon, fileConfigIcon, fileDiscImageIcon, fileExcelIcon, fileImageIcon, filePdfIcon, filePresentationIcon, fileProgrammingIcon, fileTxtIcon, fileVideoIcon, fileZipIcon } from "@progress/kendo-svg-icons";
|
|
5
6
|
/**
|
|
6
7
|
* @hidden
|
|
7
8
|
*/
|
|
@@ -41,3 +42,20 @@ export const fileGroupMap = {
|
|
|
41
42
|
".dmg", ".iso", ".toast", ".vcd", ".bin", ".cue", ".mdf"
|
|
42
43
|
]
|
|
43
44
|
};
|
|
45
|
+
;
|
|
46
|
+
/**
|
|
47
|
+
* @hidden
|
|
48
|
+
*/
|
|
49
|
+
export const fileSVGGroupMap = {
|
|
50
|
+
audio: fileAudioIcon,
|
|
51
|
+
video: fileVideoIcon,
|
|
52
|
+
image: fileImageIcon,
|
|
53
|
+
txt: fileTxtIcon,
|
|
54
|
+
presentation: filePresentationIcon,
|
|
55
|
+
data: fileExcelIcon,
|
|
56
|
+
programming: fileProgrammingIcon,
|
|
57
|
+
pdf: filePdfIcon,
|
|
58
|
+
config: fileConfigIcon,
|
|
59
|
+
zip: fileZipIcon,
|
|
60
|
+
discImage: fileDiscImageIcon
|
|
61
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|