@progress/kendo-angular-upload 8.0.2-dev.202203071504 → 9.0.0-dev.202204131914
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/bundles/kendo-angular-upload.umd.js +5 -0
- package/{dist/es2015/common → common}/action-buttons-layout.d.ts +0 -0
- package/{dist/es2015/common → common}/util.d.ts +0 -0
- package/{dist/es2015/common → common}/validation-util.d.ts +0 -0
- package/{dist/es2015/dropzone-base.d.ts → dropzone-base.d.ts} +4 -1
- package/{dist/es2015/dropzone-external.directive.d.ts → dropzone-external.directive.d.ts} +4 -1
- package/{dist/es2015/dropzone-internal.directive.d.ts → dropzone-internal.directive.d.ts} +3 -0
- package/{dist/es2015/dropzone.component.d.ts → dropzone.component.d.ts} +5 -2
- package/{dist/es2015/dropzone.service.d.ts → dropzone.service.d.ts} +3 -0
- package/{dist/es2015 → esm2015}/common/action-buttons-layout.js +1 -0
- package/{dist/es2015 → esm2015}/common/util.js +1 -7
- package/{dist/es2015 → esm2015}/common/validation-util.js +0 -4
- package/{dist/es2015 → esm2015}/dropzone-base.js +18 -16
- package/{dist/es2015 → esm2015}/dropzone-external.directive.js +29 -35
- package/{dist/es2015 → esm2015}/dropzone-internal.directive.js +25 -37
- package/esm2015/dropzone.component.js +112 -0
- package/{dist/es2015 → esm2015}/dropzone.service.js +8 -7
- package/{dist/es2015 → esm2015}/events/cancel-event.js +1 -0
- package/{dist/es2015 → esm2015}/events/clear-event.js +1 -0
- package/{dist/es2015 → esm2015}/events/error-event.js +1 -0
- package/{dist/es2015 → esm2015}/events/pause-event.js +1 -0
- package/{dist/es2015 → esm2015}/events/preventable-event.js +0 -0
- package/{dist/es2015 → esm2015}/events/remove-event.js +1 -0
- package/{dist/es2015 → esm2015}/events/resume-event.js +1 -0
- package/{dist/es2015 → esm2015}/events/select-event.js +1 -0
- package/{dist/es2015 → esm2015}/events/success-event.js +1 -0
- package/{dist/es2015 → esm2015}/events/upload-event.js +1 -0
- package/{dist/es2015 → esm2015}/events/upload-progress-event.js +1 -0
- package/{dist/es → esm2015}/events.js +0 -0
- package/esm2015/file-select.directive.js +100 -0
- package/{dist/es2015 → esm2015}/fileselect.component.js +160 -132
- package/esm2015/fileselect.module.js +35 -0
- package/{dist/es/types/chunk-info.js → esm2015/kendo-angular-upload.js} +4 -0
- package/esm2015/localization/custom-messages.component.js +50 -0
- package/esm2015/localization/localized-messages.directive.js +40 -0
- package/esm2015/localization/messages.js +59 -0
- package/{dist/es → esm2015}/main.js +0 -0
- package/{dist/es2015 → esm2015}/navigation.service.js +9 -9
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/{dist/es2015 → esm2015}/rendering/file-list-item-action-button.component.js +70 -28
- package/{dist/es2015 → esm2015}/rendering/file-list-item-base.js +9 -0
- package/esm2015/rendering/file-list-item.js +107 -0
- package/esm2015/rendering/file-list-multiple-items.component.js +172 -0
- package/esm2015/rendering/file-list-single-item.component.js +154 -0
- package/esm2015/rendering/file-list.component.js +145 -0
- package/esm2015/rendering/upload-action-buttons.component.js +136 -0
- package/esm2015/rendering/upload-status-total.component.js +60 -0
- package/{dist/es2015 → esm2015}/shared.module.js +45 -18
- package/esm2015/templates/file-info-template.directive.js +22 -0
- package/esm2015/templates/file-template.directive.js +22 -0
- package/esm2015/templates/template-context.directive.js +34 -0
- package/{dist/es2015 → esm2015}/types/async-settings.js +1 -0
- package/{dist/es2015 → esm2015}/types/chunk-info.js +1 -0
- package/{dist/es2015 → esm2015}/types/chunk-map.js +0 -0
- package/{dist/es → esm2015}/types/chunk-metadata.js +1 -0
- package/{dist/es → esm2015}/types/chunk-settings.js +1 -0
- package/{dist/es → esm2015}/types/direction.js +1 -0
- package/{dist/es2015 → esm2015}/types/file-groups.js +3 -5
- package/{dist/es → esm2015}/types/file-info.js +1 -0
- package/{dist/es2015 → esm2015}/types/file-map.js +0 -0
- package/{dist/es → esm2015}/types/file-restrictions.js +1 -0
- package/{dist/es → esm2015}/types/file-state.js +0 -0
- package/{dist/es → esm2015}/types/operation-type.js +1 -0
- package/{dist/es → esm2015}/types.js +0 -0
- package/{dist/es2015 → esm2015}/upload.component.js +262 -243
- package/esm2015/upload.module.js +43 -0
- package/{dist/es2015 → esm2015}/upload.service.js +10 -9
- package/{dist/es2015 → esm2015}/uploads.module.js +17 -12
- package/{dist/es2015/events → events}/cancel-event.d.ts +4 -0
- package/{dist/es2015/events → events}/clear-event.d.ts +1 -0
- package/{dist/es2015/events → events}/error-event.d.ts +10 -0
- package/{dist/es2015/events → events}/pause-event.d.ts +4 -0
- package/{dist/es2015/events → events}/preventable-event.d.ts +0 -0
- package/{dist/es2015/events → events}/remove-event.d.ts +9 -2
- package/{dist/es2015/events → events}/resume-event.d.ts +4 -0
- package/{dist/es2015/events → events}/select-event.d.ts +4 -0
- package/{dist/es2015/events → events}/success-event.d.ts +10 -0
- package/{dist/es2015/events → events}/upload-event.d.ts +9 -2
- package/{dist/es2015/events → events}/upload-progress-event.d.ts +7 -0
- package/{dist/es2015/events.d.ts → events.d.ts} +0 -0
- package/{dist/fesm2015/index.js → fesm2015/kendo-angular-upload.js} +2192 -2010
- package/{dist/es2015/file-select.directive.d.ts → file-select.directive.d.ts} +7 -4
- package/{dist/es2015/fileselect.component.d.ts → fileselect.component.d.ts} +14 -6
- package/fileselect.module.d.ts +20 -0
- package/{dist/es/common/action-buttons-layout.js → kendo-angular-upload.d.ts} +5 -0
- package/{dist/es2015/localization → localization}/custom-messages.component.d.ts +4 -1
- package/{dist/es2015/localization → localization}/localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/localization → localization}/messages.d.ts +3 -0
- package/{dist/es2015/main.d.ts → main.d.ts} +0 -0
- package/{dist/es2015/navigation.service.d.ts → navigation.service.d.ts} +7 -3
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +36 -104
- package/{dist/es2015/rendering → rendering}/file-list-item-action-button.component.d.ts +11 -8
- package/{dist/es2015/rendering → rendering}/file-list-item-base.d.ts +3 -0
- package/{dist/es2015/rendering → rendering}/file-list-item.d.ts +10 -7
- package/{dist/es2015/rendering → rendering}/file-list-multiple-items.component.d.ts +7 -4
- package/{dist/es2015/rendering → rendering}/file-list-single-item.component.d.ts +9 -6
- package/{dist/es2015/rendering → rendering}/file-list.component.d.ts +3 -0
- package/{dist/es2015/rendering → rendering}/upload-action-buttons.component.d.ts +7 -4
- package/{dist/es2015/rendering → rendering}/upload-status-total.component.d.ts +3 -0
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/shared.module.d.ts +36 -0
- package/{dist/es2015/templates → templates}/file-info-template.directive.d.ts +3 -0
- package/{dist/es2015/templates → templates}/file-template.directive.d.ts +3 -0
- package/{dist/es2015/templates → templates}/template-context.directive.d.ts +4 -1
- package/{dist/es2015/types → types}/async-settings.d.ts +0 -0
- package/{dist/es2015/types → types}/chunk-info.d.ts +0 -0
- package/{dist/es2015/types → types}/chunk-map.d.ts +0 -0
- package/{dist/es2015/types → types}/chunk-metadata.d.ts +0 -0
- package/{dist/es2015/types → types}/chunk-settings.d.ts +0 -0
- package/{dist/es2015/types → types}/direction.d.ts +0 -0
- package/{dist/es2015/types → types}/file-groups.d.ts +0 -0
- package/{dist/es2015/types → types}/file-info.d.ts +0 -0
- package/{dist/es2015/types → types}/file-map.d.ts +5 -5
- package/{dist/es2015/types → types}/file-restrictions.d.ts +0 -0
- package/{dist/es2015/types → types}/file-state.d.ts +0 -0
- package/{dist/es2015/types → types}/operation-type.d.ts +0 -0
- package/{dist/es2015/types.d.ts → types.d.ts} +0 -0
- package/{dist/es2015/upload.component.d.ts → upload.component.d.ts} +42 -21
- package/upload.module.d.ts +22 -0
- package/{dist/es2015/upload.service.d.ts → upload.service.d.ts} +4 -1
- package/{dist/es2015/uploads.module.d.ts → uploads.module.d.ts} +6 -0
- package/dist/cdn/js/kendo-angular-upload.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/common/util.js +0 -234
- package/dist/es/common/validation-util.js +0 -64
- package/dist/es/dropzone-base.js +0 -66
- package/dist/es/dropzone-external.directive.js +0 -98
- package/dist/es/dropzone-internal.directive.js +0 -110
- package/dist/es/dropzone.component.js +0 -99
- package/dist/es/dropzone.service.js +0 -33
- package/dist/es/events/cancel-event.js +0 -41
- package/dist/es/events/clear-event.js +0 -43
- package/dist/es/events/error-event.js +0 -45
- package/dist/es/events/pause-event.js +0 -42
- package/dist/es/events/preventable-event.js +0 -29
- package/dist/es/events/remove-event.js +0 -47
- package/dist/es/events/resume-event.js +0 -42
- package/dist/es/events/select-event.js +0 -45
- package/dist/es/events/success-event.js +0 -49
- package/dist/es/events/upload-event.js +0 -47
- package/dist/es/events/upload-progress-event.js +0 -42
- package/dist/es/file-select.directive.js +0 -141
- package/dist/es/fileselect.component.js +0 -484
- package/dist/es/fileselect.module.js +0 -30
- package/dist/es/index.js +0 -21
- package/dist/es/localization/custom-messages.component.js +0 -53
- package/dist/es/localization/localized-messages.directive.js +0 -35
- package/dist/es/localization/messages.js +0 -102
- package/dist/es/navigation.service.js +0 -166
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/rendering/file-list-item-action-button.component.js +0 -169
- package/dist/es/rendering/file-list-item-base.js +0 -41
- package/dist/es/rendering/file-list-item.js +0 -165
- package/dist/es/rendering/file-list-multiple-items.component.js +0 -107
- package/dist/es/rendering/file-list-single-item.component.js +0 -112
- package/dist/es/rendering/file-list.component.js +0 -98
- package/dist/es/rendering/upload-action-buttons.component.js +0 -149
- package/dist/es/rendering/upload-status-total.component.js +0 -42
- package/dist/es/shared.module.js +0 -68
- package/dist/es/templates/file-info-template.directive.js +0 -22
- package/dist/es/templates/file-template.directive.js +0 -22
- package/dist/es/templates/template-context.directive.js +0 -40
- package/dist/es/types/async-settings.js +0 -4
- package/dist/es/types/chunk-map.js +0 -36
- package/dist/es/types/file-groups.js +0 -45
- package/dist/es/types/file-map.js +0 -170
- package/dist/es/upload.component.js +0 -967
- package/dist/es/upload.module.js +0 -34
- package/dist/es/upload.service.js +0 -448
- package/dist/es/uploads.module.js +0 -47
- package/dist/es2015/dropzone.component.js +0 -100
- package/dist/es2015/events.js +0 -14
- package/dist/es2015/file-select.directive.js +0 -123
- package/dist/es2015/fileselect.module.d.ts +0 -9
- package/dist/es2015/fileselect.module.js +0 -27
- package/dist/es2015/index.d.ts +0 -21
- package/dist/es2015/index.js +0 -21
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/localization/custom-messages.component.js +0 -45
- package/dist/es2015/localization/localized-messages.directive.js +0 -35
- package/dist/es2015/localization/messages.js +0 -96
- package/dist/es2015/main.js +0 -24
- package/dist/es2015/rendering/file-list-item.js +0 -136
- package/dist/es2015/rendering/file-list-multiple-items.component.js +0 -128
- package/dist/es2015/rendering/file-list-single-item.component.js +0 -117
- package/dist/es2015/rendering/file-list.component.js +0 -123
- package/dist/es2015/rendering/upload-action-buttons.component.js +0 -141
- package/dist/es2015/rendering/upload-status-total.component.js +0 -51
- package/dist/es2015/shared.module.d.ts +0 -17
- package/dist/es2015/templates/file-info-template.directive.js +0 -21
- package/dist/es2015/templates/file-template.directive.js +0 -21
- package/dist/es2015/templates/template-context.directive.js +0 -35
- package/dist/es2015/types/chunk-metadata.js +0 -4
- package/dist/es2015/types/chunk-settings.js +0 -4
- package/dist/es2015/types/direction.js +0 -4
- package/dist/es2015/types/file-info.js +0 -4
- package/dist/es2015/types/file-restrictions.js +0 -4
- package/dist/es2015/types/file-state.js +0 -34
- package/dist/es2015/types/operation-type.js +0 -4
- package/dist/es2015/types.js +0 -5
- package/dist/es2015/upload.module.d.ts +0 -9
- package/dist/es2015/upload.module.js +0 -31
- package/dist/fesm5/index.js +0 -4653
- package/dist/npm/common/action-buttons-layout.js +0 -6
- package/dist/npm/common/util.js +0 -240
- package/dist/npm/common/validation-util.js +0 -68
- package/dist/npm/dropzone-base.js +0 -68
- package/dist/npm/dropzone-external.directive.js +0 -100
- package/dist/npm/dropzone-internal.directive.js +0 -112
- package/dist/npm/dropzone.component.js +0 -101
- package/dist/npm/dropzone.service.js +0 -35
- package/dist/npm/events/cancel-event.js +0 -43
- package/dist/npm/events/clear-event.js +0 -45
- package/dist/npm/events/error-event.js +0 -47
- package/dist/npm/events/pause-event.js +0 -44
- package/dist/npm/events/preventable-event.js +0 -31
- package/dist/npm/events/remove-event.js +0 -49
- package/dist/npm/events/resume-event.js +0 -44
- package/dist/npm/events/select-event.js +0 -47
- package/dist/npm/events/success-event.js +0 -51
- package/dist/npm/events/upload-event.js +0 -49
- package/dist/npm/events/upload-progress-event.js +0 -44
- package/dist/npm/events.js +0 -26
- package/dist/npm/file-select.directive.js +0 -143
- package/dist/npm/fileselect.component.js +0 -486
- package/dist/npm/fileselect.module.js +0 -32
- package/dist/npm/index.js +0 -39
- package/dist/npm/localization/custom-messages.component.js +0 -55
- package/dist/npm/localization/localized-messages.directive.js +0 -37
- package/dist/npm/localization/messages.js +0 -104
- package/dist/npm/main.js +0 -45
- package/dist/npm/navigation.service.js +0 -168
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/rendering/file-list-item-action-button.component.js +0 -171
- package/dist/npm/rendering/file-list-item-base.js +0 -43
- package/dist/npm/rendering/file-list-item.js +0 -167
- package/dist/npm/rendering/file-list-multiple-items.component.js +0 -109
- package/dist/npm/rendering/file-list-single-item.component.js +0 -114
- package/dist/npm/rendering/file-list.component.js +0 -100
- package/dist/npm/rendering/upload-action-buttons.component.js +0 -151
- package/dist/npm/rendering/upload-status-total.component.js +0 -44
- package/dist/npm/shared.module.js +0 -70
- package/dist/npm/templates/file-info-template.directive.js +0 -24
- package/dist/npm/templates/file-template.directive.js +0 -24
- package/dist/npm/templates/template-context.directive.js +0 -42
- package/dist/npm/types/async-settings.js +0 -6
- package/dist/npm/types/chunk-info.js +0 -6
- package/dist/npm/types/chunk-map.js +0 -38
- package/dist/npm/types/chunk-metadata.js +0 -6
- package/dist/npm/types/chunk-settings.js +0 -6
- package/dist/npm/types/direction.js +0 -6
- package/dist/npm/types/file-groups.js +0 -47
- package/dist/npm/types/file-info.js +0 -6
- package/dist/npm/types/file-map.js +0 -172
- package/dist/npm/types/file-restrictions.js +0 -6
- package/dist/npm/types/file-state.js +0 -36
- package/dist/npm/types/operation-type.js +0 -6
- package/dist/npm/types.js +0 -8
- package/dist/npm/upload.component.js +0 -969
- package/dist/npm/upload.module.js +0 -36
- package/dist/npm/upload.service.js +0 -450
- package/dist/npm/uploads.module.js +0 -49
- package/dist/systemjs/kendo-angular-upload.js +0 -5
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
* Copyright © 2021 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
|
|
6
|
-
var FileSelectComponent_1;
|
|
7
|
-
import { Component, Input, HostBinding, forwardRef, Renderer2, ViewChild, ElementRef, Output, EventEmitter, HostListener, NgZone, ContentChild, ChangeDetectorRef } from "@angular/core";
|
|
5
|
+
import { Component, Input, HostBinding, forwardRef, ViewChild, Output, EventEmitter, HostListener, ContentChild } from "@angular/core";
|
|
8
6
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
9
7
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
10
8
|
import { KendoInput, guid, Keys, isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
@@ -19,15 +17,25 @@ import { FileTemplateDirective } from './templates/file-template.directive';
|
|
|
19
17
|
import { FileState } from './types/file-state';
|
|
20
18
|
import { DropZoneService } from './dropzone.service';
|
|
21
19
|
import { FileInfoTemplateDirective } from './templates/file-info-template.directive';
|
|
20
|
+
import * as i0 from "@angular/core";
|
|
21
|
+
import * as i1 from "./upload.service";
|
|
22
|
+
import * as i2 from "@progress/kendo-angular-l10n";
|
|
23
|
+
import * as i3 from "./navigation.service";
|
|
24
|
+
import * as i4 from "./dropzone.service";
|
|
25
|
+
import * as i5 from "./rendering/file-list.component";
|
|
26
|
+
import * as i6 from "./localization/localized-messages.directive";
|
|
27
|
+
import * as i7 from "./dropzone-internal.directive";
|
|
28
|
+
import * as i8 from "./file-select.directive";
|
|
29
|
+
import * as i9 from "@angular/common";
|
|
22
30
|
/**
|
|
23
31
|
* @hidden
|
|
24
32
|
*/
|
|
25
33
|
export const FILESELECT_VALUE_ACCESSOR = {
|
|
26
34
|
multi: true,
|
|
27
35
|
provide: NG_VALUE_ACCESSOR,
|
|
28
|
-
useExisting: forwardRef(() => FileSelectComponent)
|
|
36
|
+
useExisting: forwardRef(() => FileSelectComponent)
|
|
29
37
|
};
|
|
30
|
-
|
|
38
|
+
export class FileSelectComponent {
|
|
31
39
|
constructor(uploadService, localization, navigation, dropZoneService, ngZone, renderer, cdr, wrapper) {
|
|
32
40
|
this.uploadService = uploadService;
|
|
33
41
|
this.localization = localization;
|
|
@@ -327,122 +335,94 @@ let FileSelectComponent = FileSelectComponent_1 = class FileSelectComponent {
|
|
|
327
335
|
this.uploadService.async.autoUpload = false;
|
|
328
336
|
this.uploadService.component = 'FileSelect';
|
|
329
337
|
}
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
]
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
]
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
]
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
]
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
],
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
419
|
-
], FileSelectComponent.prototype, "dir", null);
|
|
420
|
-
tslib_1.__decorate([
|
|
421
|
-
HostListener('keydown', ['$event']),
|
|
422
|
-
tslib_1.__metadata("design:type", Function),
|
|
423
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
424
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
425
|
-
], FileSelectComponent.prototype, "handleKeydown", null);
|
|
426
|
-
FileSelectComponent = FileSelectComponent_1 = tslib_1.__decorate([
|
|
427
|
-
Component({
|
|
428
|
-
exportAs: 'kendoFileSelect',
|
|
429
|
-
providers: [
|
|
430
|
-
LocalizationService,
|
|
431
|
-
NavigationService,
|
|
432
|
-
UploadService,
|
|
433
|
-
DropZoneService,
|
|
434
|
-
FILESELECT_VALUE_ACCESSOR,
|
|
435
|
-
{
|
|
436
|
-
provide: L10N_PREFIX,
|
|
437
|
-
useValue: 'kendo.fileselect'
|
|
438
|
-
},
|
|
439
|
-
{
|
|
440
|
-
provide: KendoInput,
|
|
441
|
-
useExisting: forwardRef(() => FileSelectComponent_1)
|
|
442
|
-
}
|
|
443
|
-
],
|
|
444
|
-
selector: 'kendo-fileselect',
|
|
445
|
-
template: `
|
|
338
|
+
}
|
|
339
|
+
FileSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FileSelectComponent, deps: [{ token: i1.UploadService }, { token: i2.LocalizationService }, { token: i3.NavigationService }, { token: i4.DropZoneService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
340
|
+
FileSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FileSelectComponent, selector: "kendo-fileselect", inputs: { accept: "accept", disabled: "disabled", multiple: "multiple", name: "name", showFileList: "showFileList", tabindex: "tabindex", restrictions: "restrictions", zoneId: "zoneId", focusableId: "focusableId" }, outputs: { onBlur: "blur", onFocus: "focus", select: "select", remove: "remove", valueChange: "valueChange" }, host: { listeners: { "keydown": "handleKeydown($event)" }, properties: { "class.k-widget": "this.hostDefaultClasses", "class.k-upload": "this.hostDefaultClasses", "class.k-disabled": "this.hostDisabledClass", "attr.dir": "this.dir" } }, providers: [
|
|
341
|
+
LocalizationService,
|
|
342
|
+
NavigationService,
|
|
343
|
+
UploadService,
|
|
344
|
+
DropZoneService,
|
|
345
|
+
FILESELECT_VALUE_ACCESSOR,
|
|
346
|
+
{
|
|
347
|
+
provide: L10N_PREFIX,
|
|
348
|
+
useValue: 'kendo.fileselect'
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
provide: KendoInput,
|
|
352
|
+
useExisting: forwardRef(() => FileSelectComponent)
|
|
353
|
+
}
|
|
354
|
+
], queries: [{ propertyName: "fileTemplate", first: true, predicate: FileTemplateDirective, descendants: true }, { propertyName: "fileInfoTemplate", first: true, predicate: FileInfoTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "fileSelect", first: true, predicate: ["fileSelect"], descendants: true, static: true }, { propertyName: "fileSelectButton", first: true, predicate: ["fileSelectButton"], descendants: true, static: true }], exportAs: ["kendoFileSelect"], ngImport: i0, template: `
|
|
355
|
+
<ng-container kendoFileSelectLocalizedMessages
|
|
356
|
+
i18n-dropFilesHere="kendo.fileselect.dropFilesHere|The drop zone hint"
|
|
357
|
+
dropFilesHere="Drop files here to select"
|
|
358
|
+
|
|
359
|
+
i18n-invalidFileExtension="kendo.fileselect.invalidFileExtension|The text for the invalid allowed extensions restriction message"
|
|
360
|
+
invalidFileExtension="File type not allowed."
|
|
361
|
+
|
|
362
|
+
i18n-invalidMaxFileSize="kendo.fileselect.invalidMaxFileSize|The text for the invalid max file size restriction message"
|
|
363
|
+
invalidMaxFileSize="File size too large."
|
|
364
|
+
|
|
365
|
+
i18n-invalidMinFileSize="kendo.fileselect.invalidMinFileSize|The text for the invalid min file size restriction message"
|
|
366
|
+
invalidMinFileSize="File size too small."
|
|
367
|
+
|
|
368
|
+
i18n-remove="kendo.fileselect.remove|The text for the Remove button"
|
|
369
|
+
remove="Remove"
|
|
370
|
+
|
|
371
|
+
i18n-select="kendo.fileselect.select|The text for the Select button"
|
|
372
|
+
select="Select files..."
|
|
373
|
+
>
|
|
374
|
+
</ng-container>
|
|
375
|
+
<div kendoFileSelectInternalDropZone
|
|
376
|
+
[restrictions]="restrictions"
|
|
377
|
+
[multiple]="multiple"
|
|
378
|
+
[disabled]="disabled">
|
|
379
|
+
<div role="button" #fileSelectButton
|
|
380
|
+
[id]="focusableId"
|
|
381
|
+
[attr.aria-label]="textFor('select')"
|
|
382
|
+
[attr.tabindex]="selectButtonTabIndex"
|
|
383
|
+
(focus)="onFileSelectButtonFocus($event)"
|
|
384
|
+
(blur)="onFileSelectButtonBlur($event)"
|
|
385
|
+
class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-upload-button">
|
|
386
|
+
<input #fileSelect kendoFileSelect
|
|
387
|
+
[attr.accept]="accept ? accept : null"
|
|
388
|
+
[dir]="direction"
|
|
389
|
+
[restrictions]="restrictions"
|
|
390
|
+
[multiple]="multiple"
|
|
391
|
+
[disabled]="disabled" />
|
|
392
|
+
<span>{{textFor('select')}}</span>
|
|
393
|
+
</div>
|
|
394
|
+
<div class="k-dropzone-hint">{{textFor('dropFilesHere')}}</div>
|
|
395
|
+
</div>
|
|
396
|
+
<ul kendo-upload-file-list
|
|
397
|
+
class="k-upload-files k-reset"
|
|
398
|
+
*ngIf="showFileList && fileList.count > 0"
|
|
399
|
+
[disabled]="disabled"
|
|
400
|
+
[fileList]="fileList.files"
|
|
401
|
+
[fileTemplate]="fileTemplate"
|
|
402
|
+
[fileInfoTemplate]="fileInfoTemplate">
|
|
403
|
+
</ul>
|
|
404
|
+
`, isInline: true, components: [{ type: i5.FileListComponent, selector: "[kendo-upload-file-list]", inputs: ["disabled", "fileList", "fileTemplate", "fileInfoTemplate"] }], directives: [{ type: i6.LocalizedMessagesDirective, selector: "\n [kendoUploadLocalizedMessages],\n [kendoFileSelectLocalizedMessages],\n [kendoUploadDropZoneLocalizedMessages]\n " }, { type: i7.DropZoneInternalDirective, selector: "\n [kendoUploadInternalDropZone],\n [kendoFileSelectInternalDropZone]\n ", inputs: ["disabled", "multiple", "restrictions"] }, { type: i8.FileSelectDirective, selector: "[kendoFileSelect]", inputs: ["dir", "disabled", "multiple", "restrictions"] }, { type: i9.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
405
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FileSelectComponent, decorators: [{
|
|
406
|
+
type: Component,
|
|
407
|
+
args: [{
|
|
408
|
+
exportAs: 'kendoFileSelect',
|
|
409
|
+
providers: [
|
|
410
|
+
LocalizationService,
|
|
411
|
+
NavigationService,
|
|
412
|
+
UploadService,
|
|
413
|
+
DropZoneService,
|
|
414
|
+
FILESELECT_VALUE_ACCESSOR,
|
|
415
|
+
{
|
|
416
|
+
provide: L10N_PREFIX,
|
|
417
|
+
useValue: 'kendo.fileselect'
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
provide: KendoInput,
|
|
421
|
+
useExisting: forwardRef(() => FileSelectComponent)
|
|
422
|
+
}
|
|
423
|
+
],
|
|
424
|
+
selector: 'kendo-fileselect',
|
|
425
|
+
template: `
|
|
446
426
|
<ng-container kendoFileSelectLocalizedMessages
|
|
447
427
|
i18n-dropFilesHere="kendo.fileselect.dropFilesHere|The drop zone hint"
|
|
448
428
|
dropFilesHere="Drop files here to select"
|
|
@@ -493,14 +473,62 @@ FileSelectComponent = FileSelectComponent_1 = tslib_1.__decorate([
|
|
|
493
473
|
[fileInfoTemplate]="fileInfoTemplate">
|
|
494
474
|
</ul>
|
|
495
475
|
`
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
],
|
|
506
|
-
|
|
476
|
+
}]
|
|
477
|
+
}], ctorParameters: function () { return [{ type: i1.UploadService }, { type: i2.LocalizationService }, { type: i3.NavigationService }, { type: i4.DropZoneService }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }, propDecorators: { accept: [{
|
|
478
|
+
type: Input
|
|
479
|
+
}], disabled: [{
|
|
480
|
+
type: Input
|
|
481
|
+
}], multiple: [{
|
|
482
|
+
type: Input
|
|
483
|
+
}], name: [{
|
|
484
|
+
type: Input
|
|
485
|
+
}], showFileList: [{
|
|
486
|
+
type: Input
|
|
487
|
+
}], tabindex: [{
|
|
488
|
+
type: Input
|
|
489
|
+
}], restrictions: [{
|
|
490
|
+
type: Input
|
|
491
|
+
}], zoneId: [{
|
|
492
|
+
type: Input
|
|
493
|
+
}], focusableId: [{
|
|
494
|
+
type: Input
|
|
495
|
+
}], fileTemplate: [{
|
|
496
|
+
type: ContentChild,
|
|
497
|
+
args: [FileTemplateDirective, { static: false }]
|
|
498
|
+
}], fileInfoTemplate: [{
|
|
499
|
+
type: ContentChild,
|
|
500
|
+
args: [FileInfoTemplateDirective, { static: false }]
|
|
501
|
+
}], fileSelect: [{
|
|
502
|
+
type: ViewChild,
|
|
503
|
+
args: ['fileSelect', { static: true }]
|
|
504
|
+
}], fileSelectButton: [{
|
|
505
|
+
type: ViewChild,
|
|
506
|
+
args: ['fileSelectButton', { static: true }]
|
|
507
|
+
}], onBlur: [{
|
|
508
|
+
type: Output,
|
|
509
|
+
args: ['blur']
|
|
510
|
+
}], onFocus: [{
|
|
511
|
+
type: Output,
|
|
512
|
+
args: ['focus']
|
|
513
|
+
}], select: [{
|
|
514
|
+
type: Output
|
|
515
|
+
}], remove: [{
|
|
516
|
+
type: Output
|
|
517
|
+
}], valueChange: [{
|
|
518
|
+
type: Output
|
|
519
|
+
}], hostDefaultClasses: [{
|
|
520
|
+
type: HostBinding,
|
|
521
|
+
args: ['class.k-widget']
|
|
522
|
+
}, {
|
|
523
|
+
type: HostBinding,
|
|
524
|
+
args: ['class.k-upload']
|
|
525
|
+
}], hostDisabledClass: [{
|
|
526
|
+
type: HostBinding,
|
|
527
|
+
args: ['class.k-disabled']
|
|
528
|
+
}], dir: [{
|
|
529
|
+
type: HostBinding,
|
|
530
|
+
args: ['attr.dir']
|
|
531
|
+
}], handleKeydown: [{
|
|
532
|
+
type: HostListener,
|
|
533
|
+
args: ['keydown', ['$event']]
|
|
534
|
+
}] } });
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { NgModule } from '@angular/core';
|
|
6
|
+
import { FileSelectComponent } from './fileselect.component';
|
|
7
|
+
import { SharedModule, PUBLIC_DIRECTIVES } from './shared.module';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "./templates/file-template.directive";
|
|
10
|
+
import * as i2 from "./templates/file-info-template.directive";
|
|
11
|
+
import * as i3 from "./localization/custom-messages.component";
|
|
12
|
+
import * as i4 from "./dropzone-external.directive";
|
|
13
|
+
import * as i5 from "./dropzone.component";
|
|
14
|
+
const FILESELECT_DECLARATIONS = [
|
|
15
|
+
FileSelectComponent
|
|
16
|
+
];
|
|
17
|
+
/**
|
|
18
|
+
* Represents the [NgModule](https://angular.io/api/core/NgModule) definition for the FileSelect component.
|
|
19
|
+
*/
|
|
20
|
+
export class FileSelectModule {
|
|
21
|
+
}
|
|
22
|
+
FileSelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FileSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
23
|
+
FileSelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FileSelectModule, declarations: [FileSelectComponent], imports: [SharedModule], exports: [i1.FileTemplateDirective, i2.FileInfoTemplateDirective, i3.CustomMessagesComponent, i4.UploadDropZoneDirective, i5.UploadDropZoneComponent, FileSelectComponent] });
|
|
24
|
+
FileSelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FileSelectModule, imports: [[SharedModule]] });
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FileSelectModule, decorators: [{
|
|
26
|
+
type: NgModule,
|
|
27
|
+
args: [{
|
|
28
|
+
declarations: [FILESELECT_DECLARATIONS],
|
|
29
|
+
exports: [
|
|
30
|
+
PUBLIC_DIRECTIVES,
|
|
31
|
+
FILESELECT_DECLARATIONS
|
|
32
|
+
],
|
|
33
|
+
imports: [SharedModule]
|
|
34
|
+
}]
|
|
35
|
+
}] });
|
|
@@ -2,3 +2,7 @@
|
|
|
2
2
|
* Copyright © 2021 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
|
+
/**
|
|
6
|
+
* Generated bundle index. Do not edit.
|
|
7
|
+
*/
|
|
8
|
+
export * from './main';
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Component, forwardRef } from '@angular/core';
|
|
6
|
+
import { Messages } from './messages';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "@progress/kendo-angular-l10n";
|
|
9
|
+
/**
|
|
10
|
+
* Custom component messages override default component messages ([more information and example]({% slug globalization_upload %})).
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```html-no-run
|
|
14
|
+
* <kendo-fileselect>
|
|
15
|
+
* <kendo-fileselect-messages
|
|
16
|
+
* dropFilesHere="Drop your file here"
|
|
17
|
+
* select="Upload file">
|
|
18
|
+
* </kendo-fileselect-messages>
|
|
19
|
+
* </kendo-fileselect>
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export class CustomMessagesComponent extends Messages {
|
|
23
|
+
constructor(service) {
|
|
24
|
+
super();
|
|
25
|
+
this.service = service;
|
|
26
|
+
}
|
|
27
|
+
get override() {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
CustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
32
|
+
CustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CustomMessagesComponent, selector: "kendo-upload-messages, kendo-fileselect-messages, kendo-uploaddropzone-messages", providers: [
|
|
33
|
+
{
|
|
34
|
+
provide: Messages,
|
|
35
|
+
useExisting: forwardRef(() => CustomMessagesComponent)
|
|
36
|
+
}
|
|
37
|
+
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CustomMessagesComponent, decorators: [{
|
|
39
|
+
type: Component,
|
|
40
|
+
args: [{
|
|
41
|
+
providers: [
|
|
42
|
+
{
|
|
43
|
+
provide: Messages,
|
|
44
|
+
useExisting: forwardRef(() => CustomMessagesComponent)
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
selector: 'kendo-upload-messages, kendo-fileselect-messages, kendo-uploaddropzone-messages',
|
|
48
|
+
template: ``
|
|
49
|
+
}]
|
|
50
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Directive, forwardRef } from '@angular/core';
|
|
6
|
+
import { Messages } from './messages';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "@progress/kendo-angular-l10n";
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export class LocalizedMessagesDirective extends Messages {
|
|
13
|
+
constructor(service) {
|
|
14
|
+
super();
|
|
15
|
+
this.service = service;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
LocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
19
|
+
LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: LocalizedMessagesDirective, selector: "\n [kendoUploadLocalizedMessages],\n [kendoFileSelectLocalizedMessages],\n [kendoUploadDropZoneLocalizedMessages]\n ", providers: [
|
|
20
|
+
{
|
|
21
|
+
provide: Messages,
|
|
22
|
+
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
23
|
+
}
|
|
24
|
+
], usesInheritance: true, ngImport: i0 });
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
|
|
26
|
+
type: Directive,
|
|
27
|
+
args: [{
|
|
28
|
+
providers: [
|
|
29
|
+
{
|
|
30
|
+
provide: Messages,
|
|
31
|
+
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
selector: `
|
|
35
|
+
[kendoUploadLocalizedMessages],
|
|
36
|
+
[kendoFileSelectLocalizedMessages],
|
|
37
|
+
[kendoUploadDropZoneLocalizedMessages]
|
|
38
|
+
`
|
|
39
|
+
}]
|
|
40
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Directive, Input } from '@angular/core';
|
|
6
|
+
import { ComponentMessages } from '@progress/kendo-angular-l10n';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export class Messages extends ComponentMessages {
|
|
12
|
+
}
|
|
13
|
+
Messages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
14
|
+
Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: Messages, inputs: { cancel: "cancel", clearSelectedFiles: "clearSelectedFiles", dropFilesHere: "dropFilesHere", externalDropFilesHere: "externalDropFilesHere", filesBatchStatus: "filesBatchStatus", filesBatchStatusFailed: "filesBatchStatusFailed", filesBatchStatusUploaded: "filesBatchStatusUploaded", fileStatusFailed: "fileStatusFailed", fileStatusUploaded: "fileStatusUploaded", headerStatusPaused: "headerStatusPaused", headerStatusUploaded: "headerStatusUploaded", headerStatusUploading: "headerStatusUploading", invalidFileExtension: "invalidFileExtension", invalidMaxFileSize: "invalidMaxFileSize", invalidMinFileSize: "invalidMinFileSize", pause: "pause", remove: "remove", resume: "resume", retry: "retry", select: "select", uploadSelectedFiles: "uploadSelectedFiles" }, usesInheritance: true, ngImport: i0 });
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Messages, decorators: [{
|
|
16
|
+
type: Directive
|
|
17
|
+
}], propDecorators: { cancel: [{
|
|
18
|
+
type: Input
|
|
19
|
+
}], clearSelectedFiles: [{
|
|
20
|
+
type: Input
|
|
21
|
+
}], dropFilesHere: [{
|
|
22
|
+
type: Input
|
|
23
|
+
}], externalDropFilesHere: [{
|
|
24
|
+
type: Input
|
|
25
|
+
}], filesBatchStatus: [{
|
|
26
|
+
type: Input
|
|
27
|
+
}], filesBatchStatusFailed: [{
|
|
28
|
+
type: Input
|
|
29
|
+
}], filesBatchStatusUploaded: [{
|
|
30
|
+
type: Input
|
|
31
|
+
}], fileStatusFailed: [{
|
|
32
|
+
type: Input
|
|
33
|
+
}], fileStatusUploaded: [{
|
|
34
|
+
type: Input
|
|
35
|
+
}], headerStatusPaused: [{
|
|
36
|
+
type: Input
|
|
37
|
+
}], headerStatusUploaded: [{
|
|
38
|
+
type: Input
|
|
39
|
+
}], headerStatusUploading: [{
|
|
40
|
+
type: Input
|
|
41
|
+
}], invalidFileExtension: [{
|
|
42
|
+
type: Input
|
|
43
|
+
}], invalidMaxFileSize: [{
|
|
44
|
+
type: Input
|
|
45
|
+
}], invalidMinFileSize: [{
|
|
46
|
+
type: Input
|
|
47
|
+
}], pause: [{
|
|
48
|
+
type: Input
|
|
49
|
+
}], remove: [{
|
|
50
|
+
type: Input
|
|
51
|
+
}], resume: [{
|
|
52
|
+
type: Input
|
|
53
|
+
}], retry: [{
|
|
54
|
+
type: Input
|
|
55
|
+
}], select: [{
|
|
56
|
+
type: Input
|
|
57
|
+
}], uploadSelectedFiles: [{
|
|
58
|
+
type: Input
|
|
59
|
+
}] } });
|
|
File without changes
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
* Copyright © 2021 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 * as tslib_1 from "tslib";
|
|
6
5
|
import { Injectable, EventEmitter } from '@angular/core';
|
|
7
|
-
import { UploadService } from './upload.service';
|
|
8
6
|
import { Keys } from '@progress/kendo-angular-common';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "./upload.service";
|
|
9
9
|
/**
|
|
10
10
|
* @hidden
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
export class NavigationService {
|
|
13
13
|
constructor(uploadService) {
|
|
14
14
|
this.uploadService = uploadService;
|
|
15
15
|
this.onActionButtonAction = new EventEmitter();
|
|
@@ -143,9 +143,9 @@ let NavigationService = class NavigationService {
|
|
|
143
143
|
const fileCount = this.uploadService.files.count;
|
|
144
144
|
return this.actionButtonsVisible ? fileCount + 1 : fileCount - 1;
|
|
145
145
|
}
|
|
146
|
-
}
|
|
147
|
-
NavigationService =
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
146
|
+
}
|
|
147
|
+
NavigationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NavigationService, deps: [{ token: i1.UploadService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
148
|
+
NavigationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NavigationService });
|
|
149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NavigationService, decorators: [{
|
|
150
|
+
type: Injectable
|
|
151
|
+
}], ctorParameters: function () { return [{ type: i1.UploadService }]; } });
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-upload',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1649877259,
|
|
13
13
|
version: '',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
15
15
|
};
|