Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@progress/kendo-angular-upload

Package Overview
Dependencies
Maintainers
1
Versions
905
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@progress/kendo-angular-upload - npm Package Compare versions

Comparing version 3.0.2 to 3.0.3-dev.201802271234

dist/es/index.js

67

dist/es/dropzone.directive.js

@@ -1,2 +0,1 @@

import * as tslib_1 from "tslib";
import { Directive, ElementRef, HostBinding, HostListener, Input, NgZone } from '@angular/core';

@@ -133,49 +132,25 @@ import { UploadService } from './upload.service';

});
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Object)
], DropZoneDirective.prototype, "async", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Boolean)
], DropZoneDirective.prototype, "disabled", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Boolean)
], DropZoneDirective.prototype, "multiple", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Object)
], DropZoneDirective.prototype, "restrictions", void 0);
tslib_1.__decorate([
HostListener('dragenter'),
tslib_1.__metadata("design:type", Function),
tslib_1.__metadata("design:paramtypes", []),
tslib_1.__metadata("design:returntype", Boolean)
], DropZoneDirective.prototype, "onElementDragEnterListener", null);
tslib_1.__decorate([
HostListener('dragover'),
tslib_1.__metadata("design:type", Function),
tslib_1.__metadata("design:paramtypes", []),
tslib_1.__metadata("design:returntype", Boolean)
], DropZoneDirective.prototype, "onElementDragOverListener", null);
tslib_1.__decorate([
HostListener('drop', ['$event']),
tslib_1.__metadata("design:type", Function),
tslib_1.__metadata("design:paramtypes", [Object]),
tslib_1.__metadata("design:returntype", Boolean)
], DropZoneDirective.prototype, "onDropListener", null);
tslib_1.__decorate([
HostBinding('class.k-dropzone'),
tslib_1.__metadata("design:type", Boolean),
tslib_1.__metadata("design:paramtypes", [])
], DropZoneDirective.prototype, "initialClassName", null);
DropZoneDirective = tslib_1.__decorate([
Directive({
selector: '[kendoUploadDropzone]'
}),
tslib_1.__metadata("design:paramtypes", [ElementRef, UploadService, NgZone])
], DropZoneDirective);
DropZoneDirective.decorators = [
{ type: Directive, args: [{
selector: '[kendoUploadDropzone]'
},] },
];
/** @nocollapse */
DropZoneDirective.ctorParameters = function () { return [
{ type: ElementRef, },
{ type: UploadService, },
{ type: NgZone, },
]; };
DropZoneDirective.propDecorators = {
'async': [{ type: Input },],
'disabled': [{ type: Input },],
'multiple': [{ type: Input },],
'restrictions': [{ type: Input },],
'onElementDragEnterListener': [{ type: HostListener, args: ['dragenter',] },],
'onElementDragOverListener': [{ type: HostListener, args: ['dragover',] },],
'onDropListener': [{ type: HostListener, args: ['drop', ['$event'],] },],
'initialClassName': [{ type: HostBinding, args: ['class.k-dropzone',] },],
};
return DropZoneDirective;
}());
export { DropZoneDirective };

@@ -1,3 +0,2 @@

import * as tslib_1 from "tslib";
import { Input, Component, ViewChild, ElementRef } from '@angular/core';
import { Input, Component, ViewChild } from '@angular/core';
import { FileState } from './file-info';

@@ -84,36 +83,23 @@ import { UploadService } from './upload.service';

};
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Object)
], FileListItemActionButtonComponent.prototype, "file", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Object)
], FileListItemActionButtonComponent.prototype, "async", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Boolean)
], FileListItemActionButtonComponent.prototype, "disabled", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Number)
], FileListItemActionButtonComponent.prototype, "progress", void 0);
tslib_1.__decorate([
ViewChild("retryButton"),
tslib_1.__metadata("design:type", ElementRef)
], FileListItemActionButtonComponent.prototype, "retryButton", void 0);
tslib_1.__decorate([
ViewChild("actionButton"),
tslib_1.__metadata("design:type", ElementRef)
], FileListItemActionButtonComponent.prototype, "actionButton", void 0);
FileListItemActionButtonComponent = tslib_1.__decorate([
Component({
selector: 'kendo-upload-file-list-item-action-button',
template: "\n <strong class=\"k-upload-status\">\n <span class=\"k-upload-pct\" *ngIf=\"isVisible(file, 'progress')\">{{progress}}%</span>\n <button type=\"button\"\n *ngIf=\"isVisible(file, 'retry')\"\n [attr.tabIndex]=\"-1\"\n [ngClass]=\"setButtonClasses('retry')\"\n (focus)=\"onFocus('retry')\"\n (blur)=\"onBlur('retry')\"\n (click)=\"onClick(file.uid, 'retry', $event)\">\n <span #retryButton\n [attr.aria-label]=\"setRetryButtonTitle()\"\n [attr.title]=\"setRetryButtonTitle()\"\n class=\"k-icon k-retry k-i-refresh-sm\">\n </span>\n </button>\n <button type=\"button\"\n *ngIf=\"isVisible(file, 'action')\"\n [attr.tabIndex]=\"-1\"\n [ngClass]=\"setButtonClasses('action')\"\n (focus)=\"onFocus('action')\"\n (blur)=\"onBlur('action')\"\n (click)=\"onClick(file.uid, 'action', $event)\">\n <span #actionButton\n [attr.aria-label]='setActionButtonTitle(file)'\n [attr.title]='setActionButtonTitle(file)'\n [ngClass]='setActionButtonClasses(file)'>\n </span>\n </button>\n </strong>\n "
}),
tslib_1.__metadata("design:paramtypes", [UploadService,
LocalizationService])
], FileListItemActionButtonComponent);
FileListItemActionButtonComponent.decorators = [
{ type: Component, args: [{
selector: 'kendo-upload-file-list-item-action-button',
template: "\n <strong class=\"k-upload-status\">\n <span class=\"k-upload-pct\" *ngIf=\"isVisible(file, 'progress')\">{{progress}}%</span>\n <button type=\"button\"\n *ngIf=\"isVisible(file, 'retry')\"\n [attr.tabIndex]=\"-1\"\n [ngClass]=\"setButtonClasses('retry')\"\n (focus)=\"onFocus('retry')\"\n (blur)=\"onBlur('retry')\"\n (click)=\"onClick(file.uid, 'retry', $event)\">\n <span #retryButton\n [attr.aria-label]=\"setRetryButtonTitle()\"\n [attr.title]=\"setRetryButtonTitle()\"\n class=\"k-icon k-retry k-i-refresh-sm\">\n </span>\n </button>\n <button type=\"button\"\n *ngIf=\"isVisible(file, 'action')\"\n [attr.tabIndex]=\"-1\"\n [ngClass]=\"setButtonClasses('action')\"\n (focus)=\"onFocus('action')\"\n (blur)=\"onBlur('action')\"\n (click)=\"onClick(file.uid, 'action', $event)\">\n <span #actionButton\n [attr.aria-label]='setActionButtonTitle(file)'\n [attr.title]='setActionButtonTitle(file)'\n [ngClass]='setActionButtonClasses(file)'>\n </span>\n </button>\n </strong>\n "
},] },
];
/** @nocollapse */
FileListItemActionButtonComponent.ctorParameters = function () { return [
{ type: UploadService, },
{ type: LocalizationService, },
]; };
FileListItemActionButtonComponent.propDecorators = {
'file': [{ type: Input },],
'async': [{ type: Input },],
'disabled': [{ type: Input },],
'progress': [{ type: Input },],
'retryButton': [{ type: ViewChild, args: ["retryButton",] },],
'actionButton': [{ type: ViewChild, args: ["actionButton",] },],
};
return FileListItemActionButtonComponent;
}());
export { FileListItemActionButtonComponent };

@@ -1,2 +0,1 @@

import * as tslib_1 from "tslib";
import { Directive, ElementRef, HostBinding, HostListener, Input } from '@angular/core';

@@ -81,75 +80,29 @@ import { FileState } from './file-info';

};
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Array)
], FileListItemDirective.prototype, "files", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Number)
], FileListItemDirective.prototype, "index", void 0);
tslib_1.__decorate([
HostBinding('class.k-file'),
tslib_1.__metadata("design:type", Boolean)
], FileListItemDirective.prototype, "fileClass", void 0);
tslib_1.__decorate([
HostBinding('attr.data-uid'),
tslib_1.__metadata("design:type", String),
tslib_1.__metadata("design:paramtypes", [])
], FileListItemDirective.prototype, "uidAttribute", null);
tslib_1.__decorate([
HostBinding('attr.tabIndex'),
tslib_1.__metadata("design:type", String),
tslib_1.__metadata("design:paramtypes", [])
], FileListItemDirective.prototype, "tabIndex", null);
tslib_1.__decorate([
HostBinding('class.k-file-error'),
tslib_1.__metadata("design:type", Boolean),
tslib_1.__metadata("design:paramtypes", [])
], FileListItemDirective.prototype, "kFileError", null);
tslib_1.__decorate([
HostBinding('class.k-file-invalid'),
tslib_1.__metadata("design:type", Boolean),
tslib_1.__metadata("design:paramtypes", [])
], FileListItemDirective.prototype, "kFileInvalid", null);
tslib_1.__decorate([
HostBinding('class.k-file-progress'),
tslib_1.__metadata("design:type", Boolean),
tslib_1.__metadata("design:paramtypes", [])
], FileListItemDirective.prototype, "kFileProgress", null);
tslib_1.__decorate([
HostBinding('class.k-file-success'),
tslib_1.__metadata("design:type", Boolean),
tslib_1.__metadata("design:paramtypes", [])
], FileListItemDirective.prototype, "kFileSuccess", null);
tslib_1.__decorate([
HostBinding('class.k-state-focused'),
tslib_1.__metadata("design:type", Boolean),
tslib_1.__metadata("design:paramtypes", [])
], FileListItemDirective.prototype, "kStateFocused", null);
tslib_1.__decorate([
HostListener("focus"),
tslib_1.__metadata("design:type", Function),
tslib_1.__metadata("design:paramtypes", []),
tslib_1.__metadata("design:returntype", void 0)
], FileListItemDirective.prototype, "onFocus", null);
tslib_1.__decorate([
HostListener("blur"),
tslib_1.__metadata("design:type", Function),
tslib_1.__metadata("design:paramtypes", []),
tslib_1.__metadata("design:returntype", void 0)
], FileListItemDirective.prototype, "onBlur", null);
tslib_1.__decorate([
HostListener('click', ['$event']),
tslib_1.__metadata("design:type", Function),
tslib_1.__metadata("design:paramtypes", [Object]),
tslib_1.__metadata("design:returntype", void 0)
], FileListItemDirective.prototype, "onClick", null);
FileListItemDirective = tslib_1.__decorate([
Directive({
selector: '[kendoUploadFileListItem]'
}),
tslib_1.__metadata("design:paramtypes", [ElementRef, NavigationService])
], FileListItemDirective);
FileListItemDirective.decorators = [
{ type: Directive, args: [{
selector: '[kendoUploadFileListItem]'
},] },
];
/** @nocollapse */
FileListItemDirective.ctorParameters = function () { return [
{ type: ElementRef, },
{ type: NavigationService, },
]; };
FileListItemDirective.propDecorators = {
'files': [{ type: Input },],
'index': [{ type: Input },],
'fileClass': [{ type: HostBinding, args: ['class.k-file',] },],
'uidAttribute': [{ type: HostBinding, args: ['attr.data-uid',] },],
'tabIndex': [{ type: HostBinding, args: ['attr.tabIndex',] },],
'kFileError': [{ type: HostBinding, args: ['class.k-file-error',] },],
'kFileInvalid': [{ type: HostBinding, args: ['class.k-file-invalid',] },],
'kFileProgress': [{ type: HostBinding, args: ['class.k-file-progress',] },],
'kFileSuccess': [{ type: HostBinding, args: ['class.k-file-success',] },],
'kStateFocused': [{ type: HostBinding, args: ['class.k-state-focused',] },],
'onFocus': [{ type: HostListener, args: ["focus",] },],
'onBlur': [{ type: HostListener, args: ["blur",] },],
'onClick': [{ type: HostListener, args: ['click', ['$event'],] },],
};
return FileListItemDirective;
}());
export { FileListItemDirective };

@@ -45,32 +45,29 @@ import * as tslib_1 from "tslib";

};
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Boolean)
], FileListMultipleItemsComponent.prototype, "disabled", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Array)
], FileListMultipleItemsComponent.prototype, "files", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Object)
], FileListMultipleItemsComponent.prototype, "async", void 0);
FileListMultipleItemsComponent = tslib_1.__decorate([
Component({
animations: [
trigger('progressState', [
state('active', style({ opacity: 1 })),
state('inactive', style({ opacity: 0 })),
transition('void => active', style({ opacity: 0 })),
transition('inactive => active', style({ opacity: 1 })),
transition('active => inactive', animate('1s 2s ease-out'))
])
],
selector: 'kendo-upload-file-list-multiple-items',
template: "\n <span class=\"k-progress\" [style.width]=\"progressComplete + '%'\" [@progressState]=\"showProgress\"></span>\n <span *ngIf=\"!filesHaveErrors\" class=\"k-multiple-files-extension-wrapper\">\n <span class=\"k-file-state\"></span>\n </span>\n <span *ngIf=\"filesHaveErrors\" class=\"k-multiple-files-invalid-extension-wrapper\">\n <span class='k-file-invalid-icon'>!</span>\n <span class=\"k-file-state\"></span>\n </span>\n <span class=\"k-file-name-size-wrapper\">\n <span *ngFor=\"let file of files\" [ngClass]=\"setFileNameClasses(file)\" [title]=\"file.name\">{{file.name}}</span>\n <span *ngIf=\"!filesHaveErrors\"\n class=\"k-file-information\">Total: {{ files.length }} files, {{ getTotalFilesSizeMessage(files) }}</span>\n <span *ngIf=\"filesHaveErrors\" class=\"k-file-validation-message\">{{ getInvalidFilesMessage() }}</span>\n </span>\n <kendo-upload-file-list-item-action-button\n [file]='files[0]'\n [disabled]='disabled'\n [async]='async'\n [progress]='progressComplete'>\n </kendo-upload-file-list-item-action-button>\n "
}),
tslib_1.__metadata("design:paramtypes", [LocalizationService, UploadService])
], FileListMultipleItemsComponent);
FileListMultipleItemsComponent.decorators = [
{ type: Component, args: [{
animations: [
trigger('progressState', [
state('active', style({ opacity: 1 })),
state('inactive', style({ opacity: 0 })),
transition('void => active', style({ opacity: 0 })),
transition('inactive => active', style({ opacity: 1 })),
transition('active => inactive', animate('1s 2s ease-out'))
])
],
selector: 'kendo-upload-file-list-multiple-items',
template: "\n <span class=\"k-progress\" [style.width]=\"progressComplete + '%'\" [@progressState]=\"showProgress\"></span>\n <span *ngIf=\"!filesHaveErrors\" class=\"k-multiple-files-extension-wrapper\">\n <span class=\"k-file-state\"></span>\n </span>\n <span *ngIf=\"filesHaveErrors\" class=\"k-multiple-files-invalid-extension-wrapper\">\n <span class='k-file-invalid-icon'>!</span>\n <span class=\"k-file-state\"></span>\n </span>\n <span class=\"k-file-name-size-wrapper\">\n <span *ngFor=\"let file of files\" [ngClass]=\"setFileNameClasses(file)\" [title]=\"file.name\">{{file.name}}</span>\n <span *ngIf=\"!filesHaveErrors\"\n class=\"k-file-information\">Total: {{ files.length }} files, {{ getTotalFilesSizeMessage(files) }}</span>\n <span *ngIf=\"filesHaveErrors\" class=\"k-file-validation-message\">{{ getInvalidFilesMessage() }}</span>\n </span>\n <kendo-upload-file-list-item-action-button\n [file]='files[0]'\n [disabled]='disabled'\n [async]='async'\n [progress]='progressComplete'>\n </kendo-upload-file-list-item-action-button>\n "
},] },
];
/** @nocollapse */
FileListMultipleItemsComponent.ctorParameters = function () { return [
{ type: LocalizationService, },
{ type: UploadService, },
]; };
FileListMultipleItemsComponent.propDecorators = {
'disabled': [{ type: Input },],
'files': [{ type: Input },],
'async': [{ type: Input },],
};
return FileListMultipleItemsComponent;
}(FileListItemBase));
export { FileListMultipleItemsComponent };

@@ -39,32 +39,29 @@ import * as tslib_1 from "tslib";

});
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Boolean)
], FileListSingleItemComponent.prototype, "disabled", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Object)
], FileListSingleItemComponent.prototype, "file", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Object)
], FileListSingleItemComponent.prototype, "async", void 0);
FileListSingleItemComponent = tslib_1.__decorate([
Component({
animations: [
trigger('progressState', [
state('active', style({ opacity: 1 })),
state('inactive', style({ opacity: 0 })),
transition('void => active', style({ opacity: 0 })),
transition('inactive => active', style({ opacity: 1 })),
transition('active => inactive', animate('1s 2s ease-out'))
])
],
selector: 'kendo-upload-file-list-single-item',
template: "\n <span class=\"k-progress\" [style.width]=\"progressComplete + '%'\" [@progressState]=\"showProgress\"></span>\n <ng-template [ngIf]='file.validationErrors && file.validationErrors.length > 0'>\n <span class=\"k-file-invalid-extension-wrapper\">\n <span class=\"k-file-invalid-icon\">!</span>\n <span class=\"k-file-state\"></span>\n </span>\n <span class=\"k-file-name-size-wrapper\">\n <span class=\"k-file-name k-file-name-invalid\" [title]=\"file.name\">{{ file.name }}</span>\n <span class=\"k-file-validation-message\">{{ getFileValidationMessage(file) }}</span>\n </span>\n </ng-template>\n <ng-template [ngIf]='!file.validationErrors || file.validationErrors.length === 0'>\n <span class=\"k-file-extension-wrapper\">\n <span class=\"k-file-extension\">{{ file.extension.substring(1) }}</span>\n <span class=\"k-file-state\"></span>\n </span>\n <span class=\"k-file-name-size-wrapper\">\n <span class=\"k-file-name\" [title]=\"file.name\">{{ file.name }}</span>\n <span class=\"k-file-size\">{{ getTotalFilesSizeMessage([file]) }}</span>\n </span>\n </ng-template>\n <kendo-upload-file-list-item-action-button\n [file]='file'\n [disabled]='disabled'\n [async]='async'\n [progress]='progressComplete'>\n </kendo-upload-file-list-item-action-button>\n "
}),
tslib_1.__metadata("design:paramtypes", [LocalizationService, UploadService])
], FileListSingleItemComponent);
FileListSingleItemComponent.decorators = [
{ type: Component, args: [{
animations: [
trigger('progressState', [
state('active', style({ opacity: 1 })),
state('inactive', style({ opacity: 0 })),
transition('void => active', style({ opacity: 0 })),
transition('inactive => active', style({ opacity: 1 })),
transition('active => inactive', animate('1s 2s ease-out'))
])
],
selector: 'kendo-upload-file-list-single-item',
template: "\n <span class=\"k-progress\" [style.width]=\"progressComplete + '%'\" [@progressState]=\"showProgress\"></span>\n <ng-template [ngIf]='file.validationErrors && file.validationErrors.length > 0'>\n <span class=\"k-file-invalid-extension-wrapper\">\n <span class=\"k-file-invalid-icon\">!</span>\n <span class=\"k-file-state\"></span>\n </span>\n <span class=\"k-file-name-size-wrapper\">\n <span class=\"k-file-name k-file-name-invalid\" [title]=\"file.name\">{{ file.name }}</span>\n <span class=\"k-file-validation-message\">{{ getFileValidationMessage(file) }}</span>\n </span>\n </ng-template>\n <ng-template [ngIf]='!file.validationErrors || file.validationErrors.length === 0'>\n <span class=\"k-file-extension-wrapper\">\n <span class=\"k-file-extension\">{{ file.extension.substring(1) }}</span>\n <span class=\"k-file-state\"></span>\n </span>\n <span class=\"k-file-name-size-wrapper\">\n <span class=\"k-file-name\" [title]=\"file.name\">{{ file.name }}</span>\n <span class=\"k-file-size\">{{ getTotalFilesSizeMessage([file]) }}</span>\n </span>\n </ng-template>\n <kendo-upload-file-list-item-action-button\n [file]='file'\n [disabled]='disabled'\n [async]='async'\n [progress]='progressComplete'>\n </kendo-upload-file-list-item-action-button>\n "
},] },
];
/** @nocollapse */
FileListSingleItemComponent.ctorParameters = function () { return [
{ type: LocalizationService, },
{ type: UploadService, },
]; };
FileListSingleItemComponent.propDecorators = {
'disabled': [{ type: Input },],
'file': [{ type: Input },],
'async': [{ type: Input },],
};
return FileListSingleItemComponent;
}(FileListItemBase));
export { FileListSingleItemComponent };

@@ -1,6 +0,4 @@

import * as tslib_1 from "tslib";
/* tslint:disable:component-selector */
import { Input, Component, ViewChildren, QueryList } from '@angular/core';
import { Input, Component, ViewChildren } from '@angular/core';
import { FileState } from './file-info';
import { FileTemplateDirective } from './templates/file-template.directive';
import { FileListItemDirective } from './file-list-item';

@@ -62,32 +60,22 @@ import { Keys, NavigationService } from './navigation.service';

};
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Object)
], FileListComponent.prototype, "async", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Boolean)
], FileListComponent.prototype, "disabled", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Array)
], FileListComponent.prototype, "fileList", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", FileTemplateDirective)
], FileListComponent.prototype, "fileTemplate", void 0);
tslib_1.__decorate([
ViewChildren(FileListItemDirective),
tslib_1.__metadata("design:type", QueryList)
], FileListComponent.prototype, "fileListItems", void 0);
FileListComponent = tslib_1.__decorate([
Component({
selector: '[kendo-upload-file-list]',
template: "\n <ng-template ngFor\n [ngForOf]=\"fileList\"\n let-files\n let-index=\"index\">\n <li kendoUploadFileListItem [files]='files' [index]='index'>\n <kendo-upload-file-list-single-item\n class='k-file-single'\n *ngIf='files.length === 1 && !fileTemplate'\n [disabled]='disabled'\n [file]='files[0]'\n [async]='async'>\n </kendo-upload-file-list-single-item>\n <kendo-upload-file-list-multiple-items\n class='k-file-multiple'\n *ngIf='files.length > 1 && !fileTemplate'\n [disabled]='disabled'\n [files]='files'\n [async]='async'>\n </kendo-upload-file-list-multiple-items>\n <ng-template *ngIf=\"fileTemplate\"\n [templateContext]=\"{\n templateRef: fileTemplate.templateRef,\n state: files[0].state,\n $implicit: files\n }\"></ng-template>\n </li>\n </ng-template>\n "
}),
tslib_1.__metadata("design:paramtypes", [UploadService,
NavigationService])
], FileListComponent);
FileListComponent.decorators = [
{ type: Component, args: [{
selector: '[kendo-upload-file-list]',
template: "\n <ng-template ngFor\n [ngForOf]=\"fileList\"\n let-files\n let-index=\"index\">\n <li kendoUploadFileListItem [files]='files' [index]='index'>\n <kendo-upload-file-list-single-item\n class='k-file-single'\n *ngIf='files.length === 1 && !fileTemplate'\n [disabled]='disabled'\n [file]='files[0]'\n [async]='async'>\n </kendo-upload-file-list-single-item>\n <kendo-upload-file-list-multiple-items\n class='k-file-multiple'\n *ngIf='files.length > 1 && !fileTemplate'\n [disabled]='disabled'\n [files]='files'\n [async]='async'>\n </kendo-upload-file-list-multiple-items>\n <ng-template *ngIf=\"fileTemplate\"\n [templateContext]=\"{\n templateRef: fileTemplate.templateRef,\n state: files[0].state,\n $implicit: files\n }\"></ng-template>\n </li>\n </ng-template>\n "
},] },
];
/** @nocollapse */
FileListComponent.ctorParameters = function () { return [
{ type: UploadService, },
{ type: NavigationService, },
]; };
FileListComponent.propDecorators = {
'async': [{ type: Input },],
'disabled': [{ type: Input },],
'fileList': [{ type: Input },],
'fileTemplate': [{ type: Input },],
'fileListItems': [{ type: ViewChildren, args: [FileListItemDirective,] },],
};
return FileListComponent;
}());
export { FileListComponent };

@@ -1,2 +0,1 @@

import * as tslib_1 from "tslib";
import { Directive, ElementRef, HostBinding, HostListener, Input } from '@angular/core';

@@ -73,70 +72,30 @@ import { UploadService } from './upload.service';

};
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Object)
], FileSelectDirective.prototype, "async", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], FileSelectDirective.prototype, "dir", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Boolean)
], FileSelectDirective.prototype, "disabled", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Boolean)
], FileSelectDirective.prototype, "multiple", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Object)
], FileSelectDirective.prototype, "restrictions", void 0);
tslib_1.__decorate([
HostBinding("attr.type"),
tslib_1.__metadata("design:type", String)
], FileSelectDirective.prototype, "type", void 0);
tslib_1.__decorate([
HostBinding("attr.autocomplete"),
tslib_1.__metadata("design:type", String)
], FileSelectDirective.prototype, "autocomplete", void 0);
tslib_1.__decorate([
HostBinding("attr.tabIndex"),
tslib_1.__metadata("design:type", Number)
], FileSelectDirective.prototype, "tabIndex", void 0);
tslib_1.__decorate([
HostBinding("attr.name"),
tslib_1.__metadata("design:type", String),
tslib_1.__metadata("design:paramtypes", [])
], FileSelectDirective.prototype, "nameAttribute", null);
tslib_1.__decorate([
HostBinding("attr.multiple"),
tslib_1.__metadata("design:type", String),
tslib_1.__metadata("design:paramtypes", [])
], FileSelectDirective.prototype, "multipleAttribute", null);
tslib_1.__decorate([
HostBinding("attr.dir"),
tslib_1.__metadata("design:type", String),
tslib_1.__metadata("design:paramtypes", [])
], FileSelectDirective.prototype, "dirAttribute", null);
tslib_1.__decorate([
HostBinding("attr.disabled"),
tslib_1.__metadata("design:type", String),
tslib_1.__metadata("design:paramtypes", [])
], FileSelectDirective.prototype, "disabledAttribute", null);
tslib_1.__decorate([
HostListener("change", ["$event"]),
tslib_1.__metadata("design:type", Function),
tslib_1.__metadata("design:paramtypes", [Object]),
tslib_1.__metadata("design:returntype", void 0)
], FileSelectDirective.prototype, "onInputChange", null);
FileSelectDirective = tslib_1.__decorate([
Directive({
selector: '[kendoFileSelect]'
}),
tslib_1.__metadata("design:paramtypes", [UploadService,
NavigationService,
ElementRef])
], FileSelectDirective);
FileSelectDirective.decorators = [
{ type: Directive, args: [{
selector: '[kendoFileSelect]'
},] },
];
/** @nocollapse */
FileSelectDirective.ctorParameters = function () { return [
{ type: UploadService, },
{ type: NavigationService, },
{ type: ElementRef, },
]; };
FileSelectDirective.propDecorators = {
'async': [{ type: Input },],
'dir': [{ type: Input },],
'disabled': [{ type: Input },],
'multiple': [{ type: Input },],
'restrictions': [{ type: Input },],
'type': [{ type: HostBinding, args: ["attr.type",] },],
'autocomplete': [{ type: HostBinding, args: ["attr.autocomplete",] },],
'tabIndex': [{ type: HostBinding, args: ["attr.tabIndex",] },],
'nameAttribute': [{ type: HostBinding, args: ["attr.name",] },],
'multipleAttribute': [{ type: HostBinding, args: ["attr.multiple",] },],
'dirAttribute': [{ type: HostBinding, args: ["attr.dir",] },],
'disabledAttribute': [{ type: HostBinding, args: ["attr.disabled",] },],
'onInputChange': [{ type: HostListener, args: ["change", ["$event"],] },],
};
return FileSelectDirective;
}());
export { FileSelectDirective };

@@ -15,3 +15,2 @@ import * as tslib_1 from "tslib";

}
CustomMessagesComponent_1 = CustomMessagesComponent;
Object.defineProperty(CustomMessagesComponent.prototype, "override", {

@@ -24,18 +23,20 @@ get: function () {

});
CustomMessagesComponent = CustomMessagesComponent_1 = tslib_1.__decorate([
Component({
providers: [
{
provide: Messages,
useExisting: forwardRef(function () { return CustomMessagesComponent_1; }) // tslint:disable-line:no-forward-ref
}
],
selector: 'kendo-upload-messages',
template: ""
}),
tslib_1.__metadata("design:paramtypes", [LocalizationService])
], CustomMessagesComponent);
CustomMessagesComponent.decorators = [
{ type: Component, args: [{
providers: [
{
provide: Messages,
useExisting: forwardRef(function () { return CustomMessagesComponent; }) // tslint:disable-line:no-forward-ref
}
],
selector: 'kendo-upload-messages',
template: ""
},] },
];
/** @nocollapse */
CustomMessagesComponent.ctorParameters = function () { return [
{ type: LocalizationService, },
]; };
return CustomMessagesComponent;
var CustomMessagesComponent_1;
}(Messages));
export { CustomMessagesComponent };

@@ -15,18 +15,19 @@ import * as tslib_1 from "tslib";

}
LocalizedMessagesDirective_1 = LocalizedMessagesDirective;
LocalizedMessagesDirective = LocalizedMessagesDirective_1 = tslib_1.__decorate([
Directive({
providers: [
{
provide: Messages,
useExisting: forwardRef(function () { return LocalizedMessagesDirective_1; }) // tslint:disable-line:no-forward-ref
}
],
selector: '[kendoUploadLocalizedMessages]'
}),
tslib_1.__metadata("design:paramtypes", [LocalizationService])
], LocalizedMessagesDirective);
LocalizedMessagesDirective.decorators = [
{ type: Directive, args: [{
providers: [
{
provide: Messages,
useExisting: forwardRef(function () { return LocalizedMessagesDirective; }) // tslint:disable-line:no-forward-ref
}
],
selector: '[kendoUploadLocalizedMessages]'
},] },
];
/** @nocollapse */
LocalizedMessagesDirective.ctorParameters = function () { return [
{ type: LocalizationService, },
]; };
return LocalizedMessagesDirective;
var LocalizedMessagesDirective_1;
}(Messages));
export { LocalizedMessagesDirective };

@@ -12,56 +12,19 @@ import * as tslib_1 from "tslib";

}
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], Messages.prototype, "cancel", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], Messages.prototype, "clearSelectedFiles", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], Messages.prototype, "dropFilesHere", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], Messages.prototype, "headerStatusUploaded", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], Messages.prototype, "headerStatusUploading", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], Messages.prototype, "invalidFileExtension", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], Messages.prototype, "invalidFiles", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], Messages.prototype, "invalidMaxFileSize", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], Messages.prototype, "invalidMinFileSize", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], Messages.prototype, "remove", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], Messages.prototype, "retry", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], Messages.prototype, "select", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], Messages.prototype, "uploadSelectedFiles", void 0);
Messages.propDecorators = {
'cancel': [{ type: Input },],
'clearSelectedFiles': [{ type: Input },],
'dropFilesHere': [{ type: Input },],
'headerStatusUploaded': [{ type: Input },],
'headerStatusUploading': [{ type: Input },],
'invalidFileExtension': [{ type: Input },],
'invalidFiles': [{ type: Input },],
'invalidMaxFileSize': [{ type: Input },],
'invalidMinFileSize': [{ type: Input },],
'remove': [{ type: Input },],
'retry': [{ type: Input },],
'select': [{ type: Input },],
'uploadSelectedFiles': [{ type: Input },],
};
return Messages;
}(ComponentMessages));
export { Messages };

@@ -1,2 +0,1 @@

import * as tslib_1 from "tslib";
import { Injectable, EventEmitter } from '@angular/core';

@@ -171,8 +170,11 @@ import { UploadService } from './upload.service';

});
NavigationService = tslib_1.__decorate([
Injectable(),
tslib_1.__metadata("design:paramtypes", [UploadService])
], NavigationService);
NavigationService.decorators = [
{ type: Injectable },
];
/** @nocollapse */
NavigationService.ctorParameters = function () { return [
{ type: UploadService, },
]; };
return NavigationService;
}());
export { NavigationService };

@@ -1,2 +0,1 @@

import * as tslib_1 from "tslib";
import { Directive, TemplateRef } from '@angular/core';

@@ -10,10 +9,13 @@ /**

}
FileTemplateDirective = tslib_1.__decorate([
Directive({
selector: '[kendoUploadFileTemplate]' // tslint:disable-line:directive-selector-prefix
}),
tslib_1.__metadata("design:paramtypes", [TemplateRef])
], FileTemplateDirective);
FileTemplateDirective.decorators = [
{ type: Directive, args: [{
selector: '[kendoUploadFileTemplate]' // tslint:disable-line:directive-selector-prefix
},] },
];
/** @nocollapse */
FileTemplateDirective.ctorParameters = function () { return [
{ type: TemplateRef, },
]; };
return FileTemplateDirective;
}());
export { FileTemplateDirective };

@@ -1,2 +0,1 @@

import * as tslib_1 from "tslib";
import { Directive, ViewContainerRef, Input } from '@angular/core';

@@ -23,15 +22,16 @@ /**

});
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Object),
tslib_1.__metadata("design:paramtypes", [Object])
], TemplateContextDirective.prototype, "templateContext", null);
TemplateContextDirective = tslib_1.__decorate([
Directive({
selector: '[templateContext]' // tslint:disable-line:directive-selector
}),
tslib_1.__metadata("design:paramtypes", [ViewContainerRef])
], TemplateContextDirective);
TemplateContextDirective.decorators = [
{ type: Directive, args: [{
selector: '[templateContext]' // tslint:disable-line:directive-selector
},] },
];
/** @nocollapse */
TemplateContextDirective.ctorParameters = function () { return [
{ type: ViewContainerRef, },
]; };
TemplateContextDirective.propDecorators = {
'templateContext': [{ type: Input },],
};
return TemplateContextDirective;
}());
export { TemplateContextDirective };

@@ -1,4 +0,2 @@

import * as tslib_1 from "tslib";
import { Component, Input, HostBinding, ViewChild, ElementRef } from '@angular/core';
import { FileMap } from './file-map';
import { Component, Input, HostBinding, ViewChild } from '@angular/core';
import { UploadService } from './upload.service';

@@ -64,38 +62,24 @@ import { LocalizationService } from '@progress/kendo-angular-l10n';

});
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Object)
], UploadActionButtonsComponent.prototype, "async", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Boolean)
], UploadActionButtonsComponent.prototype, "disabled", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", FileMap)
], UploadActionButtonsComponent.prototype, "fileList", void 0);
tslib_1.__decorate([
ViewChild('clearButton'),
tslib_1.__metadata("design:type", ElementRef)
], UploadActionButtonsComponent.prototype, "clearButton", void 0);
tslib_1.__decorate([
ViewChild('uploadButton'),
tslib_1.__metadata("design:type", ElementRef)
], UploadActionButtonsComponent.prototype, "uploadButton", void 0);
tslib_1.__decorate([
HostBinding('class'),
tslib_1.__metadata("design:type", String),
tslib_1.__metadata("design:paramtypes", [])
], UploadActionButtonsComponent.prototype, "className", null);
UploadActionButtonsComponent = tslib_1.__decorate([
Component({
selector: 'kendo-upload-action-buttons',
template: "\n <button #clearButton type=\"button\" class=\"k-button k-clear-selected\"\n [attr.tabIndex]=\"-1\"\n (click)=\"clearFiles($event)\">\n {{textFor('clearSelectedFiles')}}\n </button>\n <button #uploadButton type=\"button\" class=\"k-button k-primary k-upload-selected\"\n [attr.tabIndex]=\"-1\"\n (click)=\"performUpload($event)\">\n {{textFor('uploadSelectedFiles')}}\n </button>\n "
}),
tslib_1.__metadata("design:paramtypes", [UploadService,
LocalizationService,
NavigationService])
], UploadActionButtonsComponent);
UploadActionButtonsComponent.decorators = [
{ type: Component, args: [{
selector: 'kendo-upload-action-buttons',
template: "\n <button #clearButton type=\"button\" class=\"k-button k-clear-selected\"\n [attr.tabIndex]=\"-1\"\n (click)=\"clearFiles($event)\">\n {{textFor('clearSelectedFiles')}}\n </button>\n <button #uploadButton type=\"button\" class=\"k-button k-primary k-upload-selected\"\n [attr.tabIndex]=\"-1\"\n (click)=\"performUpload($event)\">\n {{textFor('uploadSelectedFiles')}}\n </button>\n "
},] },
];
/** @nocollapse */
UploadActionButtonsComponent.ctorParameters = function () { return [
{ type: UploadService, },
{ type: LocalizationService, },
{ type: NavigationService, },
]; };
UploadActionButtonsComponent.propDecorators = {
'async': [{ type: Input },],
'disabled': [{ type: Input },],
'fileList': [{ type: Input },],
'clearButton': [{ type: ViewChild, args: ['clearButton',] },],
'uploadButton': [{ type: ViewChild, args: ['uploadButton',] },],
'className': [{ type: HostBinding, args: ['class',] },],
};
return UploadActionButtonsComponent;
}());
export { UploadActionButtonsComponent };

@@ -1,4 +0,2 @@

import * as tslib_1 from "tslib";
import { Component, Input } from '@angular/core';
import { FileMap } from './file-map';
import { FileState } from './file-info';

@@ -33,15 +31,17 @@ import { LocalizationService } from '@progress/kendo-angular-l10n';

};
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", FileMap)
], UploadStatusTotalComponent.prototype, "fileList", void 0);
UploadStatusTotalComponent = tslib_1.__decorate([
Component({
selector: 'kendo-upload-status-total',
template: "\n <strong\n class=\"k-upload-status k-upload-status-total\">\n <span [ngClass]=\"setStatusClasses()\"></span>\n {{statusText}}\n </strong>\n "
}),
tslib_1.__metadata("design:paramtypes", [LocalizationService])
], UploadStatusTotalComponent);
UploadStatusTotalComponent.decorators = [
{ type: Component, args: [{
selector: 'kendo-upload-status-total',
template: "\n <strong\n class=\"k-upload-status k-upload-status-total\">\n <span [ngClass]=\"setStatusClasses()\"></span>\n {{statusText}}\n </strong>\n "
},] },
];
/** @nocollapse */
UploadStatusTotalComponent.ctorParameters = function () { return [
{ type: LocalizationService, },
]; };
UploadStatusTotalComponent.propDecorators = {
'fileList': [{ type: Input },],
};
return UploadStatusTotalComponent;
}());
export { UploadStatusTotalComponent };

@@ -1,2 +0,1 @@

import * as tslib_1 from "tslib";
/* tslint:disable: no-use-before-declare */

@@ -594,199 +593,70 @@ import { Component, Input, Output, EventEmitter, forwardRef, HostBinding, HostListener, Optional, Inject, ContentChild, ViewChild, ElementRef, NgZone } from '@angular/core';

};
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Boolean),
tslib_1.__metadata("design:paramtypes", [Boolean])
], UploadComponent.prototype, "autoUpload", null);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Boolean),
tslib_1.__metadata("design:paramtypes", [Boolean])
], UploadComponent.prototype, "batch", null);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Boolean),
tslib_1.__metadata("design:paramtypes", [Boolean])
], UploadComponent.prototype, "withCredentials", null);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String),
tslib_1.__metadata("design:paramtypes", [String])
], UploadComponent.prototype, "saveField", null);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", HttpHeaders),
tslib_1.__metadata("design:paramtypes", [HttpHeaders])
], UploadComponent.prototype, "saveHeaders", null);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String),
tslib_1.__metadata("design:paramtypes", [String])
], UploadComponent.prototype, "saveMethod", null);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String),
tslib_1.__metadata("design:paramtypes", [String])
], UploadComponent.prototype, "saveUrl", null);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String),
tslib_1.__metadata("design:paramtypes", [String])
], UploadComponent.prototype, "responseType", null);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String),
tslib_1.__metadata("design:paramtypes", [String])
], UploadComponent.prototype, "removeField", null);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", HttpHeaders),
tslib_1.__metadata("design:paramtypes", [HttpHeaders])
], UploadComponent.prototype, "removeHeaders", null);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String),
tslib_1.__metadata("design:paramtypes", [String])
], UploadComponent.prototype, "removeMethod", null);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String),
tslib_1.__metadata("design:paramtypes", [String])
], UploadComponent.prototype, "removeUrl", null);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Boolean)
], UploadComponent.prototype, "multiple", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Boolean)
], UploadComponent.prototype, "disabled", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Boolean)
], UploadComponent.prototype, "showFileList", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Number)
], UploadComponent.prototype, "tabIndex", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], UploadComponent.prototype, "accept", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Object),
tslib_1.__metadata("design:paramtypes", [Object])
], UploadComponent.prototype, "restrictions", null);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], UploadComponent.prototype, "id", void 0);
tslib_1.__decorate([
ContentChild(FileTemplateDirective),
tslib_1.__metadata("design:type", FileTemplateDirective)
], UploadComponent.prototype, "fileTemplate", void 0);
tslib_1.__decorate([
ViewChild('fileSelect'),
tslib_1.__metadata("design:type", ElementRef)
], UploadComponent.prototype, "fileSelect", void 0);
tslib_1.__decorate([
ViewChild('fileSelectButton'),
tslib_1.__metadata("design:type", ElementRef)
], UploadComponent.prototype, "fileSelectButton", void 0);
tslib_1.__decorate([
Output(),
tslib_1.__metadata("design:type", EventEmitter)
], UploadComponent.prototype, "blur", void 0);
tslib_1.__decorate([
Output(),
tslib_1.__metadata("design:type", EventEmitter)
], UploadComponent.prototype, "cancel", void 0);
tslib_1.__decorate([
Output(),
tslib_1.__metadata("design:type", EventEmitter)
], UploadComponent.prototype, "clear", void 0);
tslib_1.__decorate([
Output(),
tslib_1.__metadata("design:type", EventEmitter)
], UploadComponent.prototype, "complete", void 0);
tslib_1.__decorate([
Output(),
tslib_1.__metadata("design:type", EventEmitter)
], UploadComponent.prototype, "error", void 0);
tslib_1.__decorate([
Output(),
tslib_1.__metadata("design:type", EventEmitter)
], UploadComponent.prototype, "focus", void 0);
tslib_1.__decorate([
Output(),
tslib_1.__metadata("design:type", EventEmitter)
], UploadComponent.prototype, "remove", void 0);
tslib_1.__decorate([
Output(),
tslib_1.__metadata("design:type", EventEmitter)
], UploadComponent.prototype, "select", void 0);
tslib_1.__decorate([
Output(),
tslib_1.__metadata("design:type", EventEmitter)
], UploadComponent.prototype, "success", void 0);
tslib_1.__decorate([
Output(),
tslib_1.__metadata("design:type", EventEmitter)
], UploadComponent.prototype, "upload", void 0);
tslib_1.__decorate([
Output(),
tslib_1.__metadata("design:type", EventEmitter)
], UploadComponent.prototype, "uploadProgress", void 0);
tslib_1.__decorate([
Output(),
tslib_1.__metadata("design:type", EventEmitter)
], UploadComponent.prototype, "valueChange", void 0);
tslib_1.__decorate([
HostBinding('attr.dir'),
tslib_1.__metadata("design:type", String),
tslib_1.__metadata("design:paramtypes", [])
], UploadComponent.prototype, "dir", null);
tslib_1.__decorate([
HostBinding('class.k-widget'),
HostBinding('class.k-upload'),
HostBinding('class.k-header'),
tslib_1.__metadata("design:type", Boolean),
tslib_1.__metadata("design:paramtypes", [])
], UploadComponent.prototype, "hostDefaultClasses", null);
tslib_1.__decorate([
HostBinding('class.k-state-disabled'),
tslib_1.__metadata("design:type", Boolean),
tslib_1.__metadata("design:paramtypes", [])
], UploadComponent.prototype, "hostDisabledClass", null);
tslib_1.__decorate([
HostListener('keydown', ['$event']),
tslib_1.__metadata("design:type", Function),
tslib_1.__metadata("design:paramtypes", [KeyboardEvent]),
tslib_1.__metadata("design:returntype", void 0)
], UploadComponent.prototype, "handleKeydown", null);
UploadComponent = tslib_1.__decorate([
Component({
exportAs: 'kendoUpload',
providers: [
LocalizationService,
NavigationService,
UploadService,
UPLOAD_VALUE_ACCESSOR,
{
provide: L10N_PREFIX,
useValue: 'kendo.upload'
}
],
selector: 'kendo-upload',
template: "\n <ng-container kendoUploadLocalizedMessages\n i18n-cancel=\"kendo.upload.cancel|The text for the Cancel button\"\n cancel=\"Cancel\"\n\n i18n-clearSelectedFiles=\"kendo.upload.clearSelectedFiles|The text for the Clear button\"\n clearSelectedFiles=\"Clear\"\n\n i18n-dropFilesHere=\"kendo.upload.dropFilesHere|The drop zone hint\"\n dropFilesHere=\"Drop files here to upload\"\n\n i18n-headerStatusUploaded=\"kendo.upload.headerStatusUploaded|The header status message after file upload completion\"\n headerStatusUploaded=\"Done\"\n\n i18n-headerStatusUploading=\"kendo.upload.headerStatusUploading|The header status message during file upload\"\n headerStatusUploading=\"Uploading...\"\n\n i18n-invalidFileExtension=\"kendo.upload.invalidFileExtension|The text for the invalid allowed extensions restriction message\"\n invalidFileExtension=\"File type not allowed.\"\n\n i18n-invalidFiles=\"kendo.upload.invalidFiles|The text for the invalid files message\"\n invalidFiles=\"Invalid file(s). Please check file upload requirements.\"\n\n i18n-invalidMaxFileSize=\"kendo.upload.invalidMaxFileSize|The text for the invalid max file size restriction message\"\n invalidMaxFileSize=\"File size too large.\"\n\n i18n-invalidMinFileSize=\"kendo.upload.invalidMinFileSize|The text for the invalid min file size restriction message\"\n invalidMinFileSize=\"File size too small.\"\n\n i18n-remove=\"kendo.upload.remove|The text for the Remove button\"\n remove=\"Remove\"\n\n i18n-retry=\"kendo.upload.retry|The text for the Retry button\"\n retry=\"Retry\"\n\n i18n-select=\"kendo.upload.select|The text for the Select button\"\n select=\"Select files...\"\n\n i18n-uploadSelectedFiles=\"kendo.upload.uploadSelectedFiles|The text for the Upload files button\"\n uploadSelectedFiles=\"Upload\"\n >\n </ng-container>\n <div kendoUploadDropzone\n [async]=\"async\"\n [restrictions]=\"restrictions\"\n [multiple]=\"multiple\"\n [disabled]=\"disabled\">\n <div role=\"button\" #fileSelectButton\n [id]=\"id\"\n [ngClass]='setSelectButtonClasses()'\n [attr.aria-label]=\"textFor('select')\"\n [attr.tabIndex]=\"setSelectButtonTabIndex()\"\n (focus)=\"onFileSelectButtonFocus($event)\">\n <input #fileSelect kendoFileSelect\n [async]=\"async\"\n [attr.accept]=\"accept ? accept : null\"\n [dir]=\"direction\"\n [restrictions]=\"restrictions\"\n [multiple]=\"multiple\"\n [disabled]=\"disabled\" />\n <span>{{textFor('select')}}</span>\n </div>\n <em>{{textFor('dropFilesHere')}}</em>\n <kendo-upload-status-total\n *ngIf=\"showTotalStatus()\"\n [fileList]=\"fileList\">\n </kendo-upload-status-total>\n </div>\n <ul kendo-upload-file-list\n class=\"k-upload-files k-reset\"\n *ngIf=\"showFileList && fileList.count > 0\"\n [async]=\"async\"\n [disabled]=\"disabled\"\n [fileList]=\"fileList.files\"\n [fileTemplate]=\"fileTemplate\">\n </ul>\n <kendo-upload-action-buttons\n *ngIf=\"showActionButtons()\"\n [async]=\"async\"\n [disabled]=\"disabled\"\n [fileList]=\"fileList\">\n </kendo-upload-action-buttons>\n "
}),
tslib_1.__param(5, Optional()), tslib_1.__param(5, Inject(RTL)),
tslib_1.__metadata("design:paramtypes", [UploadService,
LocalizationService,
NavigationService,
NgZone,
ElementRef, Boolean])
], UploadComponent);
UploadComponent.decorators = [
{ type: Component, args: [{
exportAs: 'kendoUpload',
providers: [
LocalizationService,
NavigationService,
UploadService,
UPLOAD_VALUE_ACCESSOR,
{
provide: L10N_PREFIX,
useValue: 'kendo.upload'
}
],
selector: 'kendo-upload',
template: "\n <ng-container kendoUploadLocalizedMessages\n i18n-cancel=\"kendo.upload.cancel|The text for the Cancel button\"\n cancel=\"Cancel\"\n\n i18n-clearSelectedFiles=\"kendo.upload.clearSelectedFiles|The text for the Clear button\"\n clearSelectedFiles=\"Clear\"\n\n i18n-dropFilesHere=\"kendo.upload.dropFilesHere|The drop zone hint\"\n dropFilesHere=\"Drop files here to upload\"\n\n i18n-headerStatusUploaded=\"kendo.upload.headerStatusUploaded|The header status message after file upload completion\"\n headerStatusUploaded=\"Done\"\n\n i18n-headerStatusUploading=\"kendo.upload.headerStatusUploading|The header status message during file upload\"\n headerStatusUploading=\"Uploading...\"\n\n i18n-invalidFileExtension=\"kendo.upload.invalidFileExtension|The text for the invalid allowed extensions restriction message\"\n invalidFileExtension=\"File type not allowed.\"\n\n i18n-invalidFiles=\"kendo.upload.invalidFiles|The text for the invalid files message\"\n invalidFiles=\"Invalid file(s). Please check file upload requirements.\"\n\n i18n-invalidMaxFileSize=\"kendo.upload.invalidMaxFileSize|The text for the invalid max file size restriction message\"\n invalidMaxFileSize=\"File size too large.\"\n\n i18n-invalidMinFileSize=\"kendo.upload.invalidMinFileSize|The text for the invalid min file size restriction message\"\n invalidMinFileSize=\"File size too small.\"\n\n i18n-remove=\"kendo.upload.remove|The text for the Remove button\"\n remove=\"Remove\"\n\n i18n-retry=\"kendo.upload.retry|The text for the Retry button\"\n retry=\"Retry\"\n\n i18n-select=\"kendo.upload.select|The text for the Select button\"\n select=\"Select files...\"\n\n i18n-uploadSelectedFiles=\"kendo.upload.uploadSelectedFiles|The text for the Upload files button\"\n uploadSelectedFiles=\"Upload\"\n >\n </ng-container>\n <div kendoUploadDropzone\n [async]=\"async\"\n [restrictions]=\"restrictions\"\n [multiple]=\"multiple\"\n [disabled]=\"disabled\">\n <div role=\"button\" #fileSelectButton\n [id]=\"id\"\n [ngClass]='setSelectButtonClasses()'\n [attr.aria-label]=\"textFor('select')\"\n [attr.tabIndex]=\"setSelectButtonTabIndex()\"\n (focus)=\"onFileSelectButtonFocus($event)\">\n <input #fileSelect kendoFileSelect\n [async]=\"async\"\n [attr.accept]=\"accept ? accept : null\"\n [dir]=\"direction\"\n [restrictions]=\"restrictions\"\n [multiple]=\"multiple\"\n [disabled]=\"disabled\" />\n <span>{{textFor('select')}}</span>\n </div>\n <em>{{textFor('dropFilesHere')}}</em>\n <kendo-upload-status-total\n *ngIf=\"showTotalStatus()\"\n [fileList]=\"fileList\">\n </kendo-upload-status-total>\n </div>\n <ul kendo-upload-file-list\n class=\"k-upload-files k-reset\"\n *ngIf=\"showFileList && fileList.count > 0\"\n [async]=\"async\"\n [disabled]=\"disabled\"\n [fileList]=\"fileList.files\"\n [fileTemplate]=\"fileTemplate\">\n </ul>\n <kendo-upload-action-buttons\n *ngIf=\"showActionButtons()\"\n [async]=\"async\"\n [disabled]=\"disabled\"\n [fileList]=\"fileList\">\n </kendo-upload-action-buttons>\n "
},] },
];
/** @nocollapse */
UploadComponent.ctorParameters = function () { return [
{ type: UploadService, },
{ type: LocalizationService, },
{ type: NavigationService, },
{ type: NgZone, },
{ type: ElementRef, },
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [RTL,] },] },
]; };
UploadComponent.propDecorators = {
'autoUpload': [{ type: Input },],
'batch': [{ type: Input },],
'withCredentials': [{ type: Input },],
'saveField': [{ type: Input },],
'saveHeaders': [{ type: Input },],
'saveMethod': [{ type: Input },],
'saveUrl': [{ type: Input },],
'responseType': [{ type: Input },],
'removeField': [{ type: Input },],
'removeHeaders': [{ type: Input },],
'removeMethod': [{ type: Input },],
'removeUrl': [{ type: Input },],
'multiple': [{ type: Input },],
'disabled': [{ type: Input },],
'showFileList': [{ type: Input },],
'tabIndex': [{ type: Input },],
'accept': [{ type: Input },],
'restrictions': [{ type: Input },],
'id': [{ type: Input },],
'fileTemplate': [{ type: ContentChild, args: [FileTemplateDirective,] },],
'fileSelect': [{ type: ViewChild, args: ['fileSelect',] },],
'fileSelectButton': [{ type: ViewChild, args: ['fileSelectButton',] },],
'blur': [{ type: Output },],
'cancel': [{ type: Output },],
'clear': [{ type: Output },],
'complete': [{ type: Output },],
'error': [{ type: Output },],
'focus': [{ type: Output },],
'remove': [{ type: Output },],
'select': [{ type: Output },],
'success': [{ type: Output },],
'upload': [{ type: Output },],
'uploadProgress': [{ type: Output },],
'valueChange': [{ type: Output },],
'dir': [{ type: HostBinding, args: ['attr.dir',] },],
'hostDefaultClasses': [{ type: HostBinding, args: ['class.k-widget',] }, { type: HostBinding, args: ['class.k-upload',] }, { type: HostBinding, args: ['class.k-header',] },],
'hostDisabledClass': [{ type: HostBinding, args: ['class.k-state-disabled',] },],
'handleKeydown': [{ type: HostListener, args: ['keydown', ['$event'],] },],
};
return UploadComponent;
}());
export { UploadComponent };

@@ -1,2 +0,1 @@

import * as tslib_1 from "tslib";
import { NgModule } from '@angular/core';

@@ -40,11 +39,13 @@ import { CommonModule } from '@angular/common';

}
UploadModule = tslib_1.__decorate([
NgModule({
declarations: [declarations],
exports: [UploadComponent, FileTemplateDirective, CustomMessagesComponent],
imports: [CommonModule]
})
], UploadModule);
UploadModule.decorators = [
{ type: NgModule, args: [{
declarations: [declarations],
exports: [UploadComponent, FileTemplateDirective, CustomMessagesComponent],
imports: [CommonModule]
},] },
];
/** @nocollapse */
UploadModule.ctorParameters = function () { return []; };
return UploadModule;
}());
export { UploadModule };

@@ -1,2 +0,1 @@

import * as tslib_1 from "tslib";
import { Injectable, EventEmitter } from '@angular/core';

@@ -237,8 +236,11 @@ import { FileState } from './file-info';

};
UploadService = tslib_1.__decorate([
Injectable(),
tslib_1.__metadata("design:paramtypes", [HttpClient])
], UploadService);
UploadService.decorators = [
{ type: Injectable },
];
/** @nocollapse */
UploadService.ctorParameters = function () { return [
{ type: HttpClient, },
]; };
return UploadService;
}());
export { UploadService };

@@ -1,2 +0,1 @@

import * as tslib_1 from "tslib";
import { Directive, ElementRef, HostBinding, HostListener, Input, NgZone } from '@angular/core';

@@ -9,3 +8,3 @@ import { UploadService } from './upload.service';

*/
let DropZoneDirective = class DropZoneDirective {
export class DropZoneDirective {
constructor(element, uploadService, _ngZone) {

@@ -127,48 +126,23 @@ this.element = element;

}
}
DropZoneDirective.decorators = [
{ type: Directive, args: [{
selector: '[kendoUploadDropzone]'
},] },
];
/** @nocollapse */
DropZoneDirective.ctorParameters = () => [
{ type: ElementRef, },
{ type: UploadService, },
{ type: NgZone, },
];
DropZoneDirective.propDecorators = {
'async': [{ type: Input },],
'disabled': [{ type: Input },],
'multiple': [{ type: Input },],
'restrictions': [{ type: Input },],
'onElementDragEnterListener': [{ type: HostListener, args: ['dragenter',] },],
'onElementDragOverListener': [{ type: HostListener, args: ['dragover',] },],
'onDropListener': [{ type: HostListener, args: ['drop', ['$event'],] },],
'initialClassName': [{ type: HostBinding, args: ['class.k-dropzone',] },],
};
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Object)
], DropZoneDirective.prototype, "async", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Boolean)
], DropZoneDirective.prototype, "disabled", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Boolean)
], DropZoneDirective.prototype, "multiple", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Object)
], DropZoneDirective.prototype, "restrictions", void 0);
tslib_1.__decorate([
HostListener('dragenter'),
tslib_1.__metadata("design:type", Function),
tslib_1.__metadata("design:paramtypes", []),
tslib_1.__metadata("design:returntype", Boolean)
], DropZoneDirective.prototype, "onElementDragEnterListener", null);
tslib_1.__decorate([
HostListener('dragover'),
tslib_1.__metadata("design:type", Function),
tslib_1.__metadata("design:paramtypes", []),
tslib_1.__metadata("design:returntype", Boolean)
], DropZoneDirective.prototype, "onElementDragOverListener", null);
tslib_1.__decorate([
HostListener('drop', ['$event']),
tslib_1.__metadata("design:type", Function),
tslib_1.__metadata("design:paramtypes", [Object]),
tslib_1.__metadata("design:returntype", Boolean)
], DropZoneDirective.prototype, "onDropListener", null);
tslib_1.__decorate([
HostBinding('class.k-dropzone'),
tslib_1.__metadata("design:type", Boolean),
tslib_1.__metadata("design:paramtypes", [])
], DropZoneDirective.prototype, "initialClassName", null);
DropZoneDirective = tslib_1.__decorate([
Directive({
selector: '[kendoUploadDropzone]'
}),
tslib_1.__metadata("design:paramtypes", [ElementRef, UploadService, NgZone])
], DropZoneDirective);
export { DropZoneDirective };

@@ -1,3 +0,2 @@

import * as tslib_1 from "tslib";
import { Input, Component, ViewChild, ElementRef } from '@angular/core';
import { Input, Component, ViewChild } from '@angular/core';
import { FileState } from './file-info';

@@ -9,3 +8,3 @@ import { UploadService } from './upload.service';

*/
let FileListItemActionButtonComponent = class FileListItemActionButtonComponent {
export class FileListItemActionButtonComponent {
constructor(uploadService, localization) {

@@ -85,31 +84,7 @@ this.uploadService = uploadService;

}
};
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Object)
], FileListItemActionButtonComponent.prototype, "file", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Object)
], FileListItemActionButtonComponent.prototype, "async", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Boolean)
], FileListItemActionButtonComponent.prototype, "disabled", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Number)
], FileListItemActionButtonComponent.prototype, "progress", void 0);
tslib_1.__decorate([
ViewChild("retryButton"),
tslib_1.__metadata("design:type", ElementRef)
], FileListItemActionButtonComponent.prototype, "retryButton", void 0);
tslib_1.__decorate([
ViewChild("actionButton"),
tslib_1.__metadata("design:type", ElementRef)
], FileListItemActionButtonComponent.prototype, "actionButton", void 0);
FileListItemActionButtonComponent = tslib_1.__decorate([
Component({
selector: 'kendo-upload-file-list-item-action-button',
template: `
}
FileListItemActionButtonComponent.decorators = [
{ type: Component, args: [{
selector: 'kendo-upload-file-list-item-action-button',
template: `
<strong class="k-upload-status">

@@ -145,6 +120,16 @@ <span class="k-upload-pct" *ngIf="isVisible(file, 'progress')">{{progress}}%</span>

`
}),
tslib_1.__metadata("design:paramtypes", [UploadService,
LocalizationService])
], FileListItemActionButtonComponent);
export { FileListItemActionButtonComponent };
},] },
];
/** @nocollapse */
FileListItemActionButtonComponent.ctorParameters = () => [
{ type: UploadService, },
{ type: LocalizationService, },
];
FileListItemActionButtonComponent.propDecorators = {
'file': [{ type: Input },],
'async': [{ type: Input },],
'disabled': [{ type: Input },],
'progress': [{ type: Input },],
'retryButton': [{ type: ViewChild, args: ["retryButton",] },],
'actionButton': [{ type: ViewChild, args: ["actionButton",] },],
};

@@ -1,2 +0,1 @@

import * as tslib_1 from "tslib";
import { Directive, ElementRef, HostBinding, HostListener, Input } from '@angular/core';

@@ -9,3 +8,3 @@ import { FileState } from './file-info';

*/
let FileListItemDirective = class FileListItemDirective {
export class FileListItemDirective {
constructor(el, navigationService) {

@@ -54,74 +53,27 @@ this.navigationService = navigationService;

}
}
FileListItemDirective.decorators = [
{ type: Directive, args: [{
selector: '[kendoUploadFileListItem]'
},] },
];
/** @nocollapse */
FileListItemDirective.ctorParameters = () => [
{ type: ElementRef, },
{ type: NavigationService, },
];
FileListItemDirective.propDecorators = {
'files': [{ type: Input },],
'index': [{ type: Input },],
'fileClass': [{ type: HostBinding, args: ['class.k-file',] },],
'uidAttribute': [{ type: HostBinding, args: ['attr.data-uid',] },],
'tabIndex': [{ type: HostBinding, args: ['attr.tabIndex',] },],
'kFileError': [{ type: HostBinding, args: ['class.k-file-error',] },],
'kFileInvalid': [{ type: HostBinding, args: ['class.k-file-invalid',] },],
'kFileProgress': [{ type: HostBinding, args: ['class.k-file-progress',] },],
'kFileSuccess': [{ type: HostBinding, args: ['class.k-file-success',] },],
'kStateFocused': [{ type: HostBinding, args: ['class.k-state-focused',] },],
'onFocus': [{ type: HostListener, args: ["focus",] },],
'onBlur': [{ type: HostListener, args: ["blur",] },],
'onClick': [{ type: HostListener, args: ['click', ['$event'],] },],
};
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Array)
], FileListItemDirective.prototype, "files", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Number)
], FileListItemDirective.prototype, "index", void 0);
tslib_1.__decorate([
HostBinding('class.k-file'),
tslib_1.__metadata("design:type", Boolean)
], FileListItemDirective.prototype, "fileClass", void 0);
tslib_1.__decorate([
HostBinding('attr.data-uid'),
tslib_1.__metadata("design:type", String),
tslib_1.__metadata("design:paramtypes", [])
], FileListItemDirective.prototype, "uidAttribute", null);
tslib_1.__decorate([
HostBinding('attr.tabIndex'),
tslib_1.__metadata("design:type", String),
tslib_1.__metadata("design:paramtypes", [])
], FileListItemDirective.prototype, "tabIndex", null);
tslib_1.__decorate([
HostBinding('class.k-file-error'),
tslib_1.__metadata("design:type", Boolean),
tslib_1.__metadata("design:paramtypes", [])
], FileListItemDirective.prototype, "kFileError", null);
tslib_1.__decorate([
HostBinding('class.k-file-invalid'),
tslib_1.__metadata("design:type", Boolean),
tslib_1.__metadata("design:paramtypes", [])
], FileListItemDirective.prototype, "kFileInvalid", null);
tslib_1.__decorate([
HostBinding('class.k-file-progress'),
tslib_1.__metadata("design:type", Boolean),
tslib_1.__metadata("design:paramtypes", [])
], FileListItemDirective.prototype, "kFileProgress", null);
tslib_1.__decorate([
HostBinding('class.k-file-success'),
tslib_1.__metadata("design:type", Boolean),
tslib_1.__metadata("design:paramtypes", [])
], FileListItemDirective.prototype, "kFileSuccess", null);
tslib_1.__decorate([
HostBinding('class.k-state-focused'),
tslib_1.__metadata("design:type", Boolean),
tslib_1.__metadata("design:paramtypes", [])
], FileListItemDirective.prototype, "kStateFocused", null);
tslib_1.__decorate([
HostListener("focus"),
tslib_1.__metadata("design:type", Function),
tslib_1.__metadata("design:paramtypes", []),
tslib_1.__metadata("design:returntype", void 0)
], FileListItemDirective.prototype, "onFocus", null);
tslib_1.__decorate([
HostListener("blur"),
tslib_1.__metadata("design:type", Function),
tslib_1.__metadata("design:paramtypes", []),
tslib_1.__metadata("design:returntype", void 0)
], FileListItemDirective.prototype, "onBlur", null);
tslib_1.__decorate([
HostListener('click', ['$event']),
tslib_1.__metadata("design:type", Function),
tslib_1.__metadata("design:paramtypes", [Object]),
tslib_1.__metadata("design:returntype", void 0)
], FileListItemDirective.prototype, "onClick", null);
FileListItemDirective = tslib_1.__decorate([
Directive({
selector: '[kendoUploadFileListItem]'
}),
tslib_1.__metadata("design:paramtypes", [ElementRef, NavigationService])
], FileListItemDirective);
export { FileListItemDirective };

@@ -1,2 +0,1 @@

import * as tslib_1 from "tslib";
import { Input, Component } from '@angular/core';

@@ -11,3 +10,3 @@ import { animate, state, style, transition, trigger } from '@angular/animations';

*/
let FileListMultipleItemsComponent = class FileListMultipleItemsComponent extends FileListItemBase {
export class FileListMultipleItemsComponent extends FileListItemBase {
constructor(localization, uploadService) {

@@ -40,28 +39,16 @@ super(uploadService);

}
};
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Boolean)
], FileListMultipleItemsComponent.prototype, "disabled", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Array)
], FileListMultipleItemsComponent.prototype, "files", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Object)
], FileListMultipleItemsComponent.prototype, "async", void 0);
FileListMultipleItemsComponent = tslib_1.__decorate([
Component({
animations: [
trigger('progressState', [
state('active', style({ opacity: 1 })),
state('inactive', style({ opacity: 0 })),
transition('void => active', style({ opacity: 0 })),
transition('inactive => active', style({ opacity: 1 })),
transition('active => inactive', animate('1s 2s ease-out'))
])
],
selector: 'kendo-upload-file-list-multiple-items',
template: `
}
FileListMultipleItemsComponent.decorators = [
{ type: Component, args: [{
animations: [
trigger('progressState', [
state('active', style({ opacity: 1 })),
state('inactive', style({ opacity: 0 })),
transition('void => active', style({ opacity: 0 })),
transition('inactive => active', style({ opacity: 1 })),
transition('active => inactive', animate('1s 2s ease-out'))
])
],
selector: 'kendo-upload-file-list-multiple-items',
template: `
<span class="k-progress" [style.width]="progressComplete + '%'" [@progressState]="showProgress"></span>

@@ -88,5 +75,13 @@ <span *ngIf="!filesHaveErrors" class="k-multiple-files-extension-wrapper">

`
}),
tslib_1.__metadata("design:paramtypes", [LocalizationService, UploadService])
], FileListMultipleItemsComponent);
export { FileListMultipleItemsComponent };
},] },
];
/** @nocollapse */
FileListMultipleItemsComponent.ctorParameters = () => [
{ type: LocalizationService, },
{ type: UploadService, },
];
FileListMultipleItemsComponent.propDecorators = {
'disabled': [{ type: Input },],
'files': [{ type: Input },],
'async': [{ type: Input },],
};

@@ -1,2 +0,1 @@

import * as tslib_1 from "tslib";
import { Input, Component } from '@angular/core';

@@ -11,3 +10,3 @@ import { animate, state, style, transition, trigger } from '@angular/animations';

*/
let FileListSingleItemComponent = class FileListSingleItemComponent extends FileListItemBase {
export class FileListSingleItemComponent extends FileListItemBase {
constructor(localization, uploadService) {

@@ -34,28 +33,16 @@ super(uploadService);

}
};
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Boolean)
], FileListSingleItemComponent.prototype, "disabled", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Object)
], FileListSingleItemComponent.prototype, "file", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Object)
], FileListSingleItemComponent.prototype, "async", void 0);
FileListSingleItemComponent = tslib_1.__decorate([
Component({
animations: [
trigger('progressState', [
state('active', style({ opacity: 1 })),
state('inactive', style({ opacity: 0 })),
transition('void => active', style({ opacity: 0 })),
transition('inactive => active', style({ opacity: 1 })),
transition('active => inactive', animate('1s 2s ease-out'))
])
],
selector: 'kendo-upload-file-list-single-item',
template: `
}
FileListSingleItemComponent.decorators = [
{ type: Component, args: [{
animations: [
trigger('progressState', [
state('active', style({ opacity: 1 })),
state('inactive', style({ opacity: 0 })),
transition('void => active', style({ opacity: 0 })),
transition('inactive => active', style({ opacity: 1 })),
transition('active => inactive', animate('1s 2s ease-out'))
])
],
selector: 'kendo-upload-file-list-single-item',
template: `
<span class="k-progress" [style.width]="progressComplete + '%'" [@progressState]="showProgress"></span>

@@ -89,5 +76,13 @@ <ng-template [ngIf]='file.validationErrors && file.validationErrors.length > 0'>

`
}),
tslib_1.__metadata("design:paramtypes", [LocalizationService, UploadService])
], FileListSingleItemComponent);
export { FileListSingleItemComponent };
},] },
];
/** @nocollapse */
FileListSingleItemComponent.ctorParameters = () => [
{ type: LocalizationService, },
{ type: UploadService, },
];
FileListSingleItemComponent.propDecorators = {
'disabled': [{ type: Input },],
'file': [{ type: Input },],
'async': [{ type: Input },],
};

@@ -1,6 +0,4 @@

import * as tslib_1 from "tslib";
/* tslint:disable:component-selector */
import { Input, Component, ViewChildren, QueryList } from '@angular/core';
import { Input, Component, ViewChildren } from '@angular/core';
import { FileState } from './file-info';
import { FileTemplateDirective } from './templates/file-template.directive';
import { FileListItemDirective } from './file-list-item';

@@ -12,3 +10,3 @@ import { Keys, NavigationService } from './navigation.service';

*/
let FileListComponent = class FileListComponent {
export class FileListComponent {
constructor(uploadService, navigation) {

@@ -61,27 +59,7 @@ this.uploadService = uploadService;

}
};
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Object)
], FileListComponent.prototype, "async", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Boolean)
], FileListComponent.prototype, "disabled", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Array)
], FileListComponent.prototype, "fileList", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", FileTemplateDirective)
], FileListComponent.prototype, "fileTemplate", void 0);
tslib_1.__decorate([
ViewChildren(FileListItemDirective),
tslib_1.__metadata("design:type", QueryList)
], FileListComponent.prototype, "fileListItems", void 0);
FileListComponent = tslib_1.__decorate([
Component({
selector: '[kendo-upload-file-list]',
template: `
}
FileListComponent.decorators = [
{ type: Component, args: [{
selector: '[kendo-upload-file-list]',
template: `
<ng-template ngFor

@@ -115,6 +93,15 @@ [ngForOf]="fileList"

`
}),
tslib_1.__metadata("design:paramtypes", [UploadService,
NavigationService])
], FileListComponent);
export { FileListComponent };
},] },
];
/** @nocollapse */
FileListComponent.ctorParameters = () => [
{ type: UploadService, },
{ type: NavigationService, },
];
FileListComponent.propDecorators = {
'async': [{ type: Input },],
'disabled': [{ type: Input },],
'fileList': [{ type: Input },],
'fileTemplate': [{ type: Input },],
'fileListItems': [{ type: ViewChildren, args: [FileListItemDirective,] },],
};

@@ -1,2 +0,1 @@

import * as tslib_1 from "tslib";
import { Directive, ElementRef, HostBinding, HostListener, Input } from '@angular/core';

@@ -10,3 +9,3 @@ import { UploadService } from './upload.service';

*/
let FileSelectDirective = class FileSelectDirective {
export class FileSelectDirective {
constructor(uploadService, navigation, el) {

@@ -57,69 +56,28 @@ this.uploadService = uploadService;

}
}
FileSelectDirective.decorators = [
{ type: Directive, args: [{
selector: '[kendoFileSelect]'
},] },
];
/** @nocollapse */
FileSelectDirective.ctorParameters = () => [
{ type: UploadService, },
{ type: NavigationService, },
{ type: ElementRef, },
];
FileSelectDirective.propDecorators = {
'async': [{ type: Input },],
'dir': [{ type: Input },],
'disabled': [{ type: Input },],
'multiple': [{ type: Input },],
'restrictions': [{ type: Input },],
'type': [{ type: HostBinding, args: ["attr.type",] },],
'autocomplete': [{ type: HostBinding, args: ["attr.autocomplete",] },],
'tabIndex': [{ type: HostBinding, args: ["attr.tabIndex",] },],
'nameAttribute': [{ type: HostBinding, args: ["attr.name",] },],
'multipleAttribute': [{ type: HostBinding, args: ["attr.multiple",] },],
'dirAttribute': [{ type: HostBinding, args: ["attr.dir",] },],
'disabledAttribute': [{ type: HostBinding, args: ["attr.disabled",] },],
'onInputChange': [{ type: HostListener, args: ["change", ["$event"],] },],
};
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Object)
], FileSelectDirective.prototype, "async", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], FileSelectDirective.prototype, "dir", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Boolean)
], FileSelectDirective.prototype, "disabled", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Boolean)
], FileSelectDirective.prototype, "multiple", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Object)
], FileSelectDirective.prototype, "restrictions", void 0);
tslib_1.__decorate([
HostBinding("attr.type"),
tslib_1.__metadata("design:type", String)
], FileSelectDirective.prototype, "type", void 0);
tslib_1.__decorate([
HostBinding("attr.autocomplete"),
tslib_1.__metadata("design:type", String)
], FileSelectDirective.prototype, "autocomplete", void 0);
tslib_1.__decorate([
HostBinding("attr.tabIndex"),
tslib_1.__metadata("design:type", Number)
], FileSelectDirective.prototype, "tabIndex", void 0);
tslib_1.__decorate([
HostBinding("attr.name"),
tslib_1.__metadata("design:type", String),
tslib_1.__metadata("design:paramtypes", [])
], FileSelectDirective.prototype, "nameAttribute", null);
tslib_1.__decorate([
HostBinding("attr.multiple"),
tslib_1.__metadata("design:type", String),
tslib_1.__metadata("design:paramtypes", [])
], FileSelectDirective.prototype, "multipleAttribute", null);
tslib_1.__decorate([
HostBinding("attr.dir"),
tslib_1.__metadata("design:type", String),
tslib_1.__metadata("design:paramtypes", [])
], FileSelectDirective.prototype, "dirAttribute", null);
tslib_1.__decorate([
HostBinding("attr.disabled"),
tslib_1.__metadata("design:type", String),
tslib_1.__metadata("design:paramtypes", [])
], FileSelectDirective.prototype, "disabledAttribute", null);
tslib_1.__decorate([
HostListener("change", ["$event"]),
tslib_1.__metadata("design:type", Function),
tslib_1.__metadata("design:paramtypes", [Object]),
tslib_1.__metadata("design:returntype", void 0)
], FileSelectDirective.prototype, "onInputChange", null);
FileSelectDirective = tslib_1.__decorate([
Directive({
selector: '[kendoFileSelect]'
}),
tslib_1.__metadata("design:paramtypes", [UploadService,
NavigationService,
ElementRef])
], FileSelectDirective);
export { FileSelectDirective };

@@ -1,2 +0,1 @@

import * as tslib_1 from "tslib";
import { Component, forwardRef } from '@angular/core';

@@ -8,3 +7,3 @@ import { Messages } from './messages';

*/
let CustomMessagesComponent = CustomMessagesComponent_1 = class CustomMessagesComponent extends Messages {
export class CustomMessagesComponent extends Messages {
constructor(service) {

@@ -17,17 +16,18 @@ super();

}
};
CustomMessagesComponent = CustomMessagesComponent_1 = tslib_1.__decorate([
Component({
providers: [
{
provide: Messages,
useExisting: forwardRef(() => CustomMessagesComponent_1) // tslint:disable-line:no-forward-ref
}
],
selector: 'kendo-upload-messages',
template: ``
}),
tslib_1.__metadata("design:paramtypes", [LocalizationService])
], CustomMessagesComponent);
export { CustomMessagesComponent };
var CustomMessagesComponent_1;
}
CustomMessagesComponent.decorators = [
{ type: Component, args: [{
providers: [
{
provide: Messages,
useExisting: forwardRef(() => CustomMessagesComponent) // tslint:disable-line:no-forward-ref
}
],
selector: 'kendo-upload-messages',
template: ``
},] },
];
/** @nocollapse */
CustomMessagesComponent.ctorParameters = () => [
{ type: LocalizationService, },
];

@@ -1,2 +0,1 @@

import * as tslib_1 from "tslib";
import { Directive, forwardRef } from '@angular/core';

@@ -8,3 +7,3 @@ import { Messages } from './messages';

*/
let LocalizedMessagesDirective = LocalizedMessagesDirective_1 = class LocalizedMessagesDirective extends Messages {
export class LocalizedMessagesDirective extends Messages {
constructor(service) {

@@ -14,16 +13,17 @@ super();

}
};
LocalizedMessagesDirective = LocalizedMessagesDirective_1 = tslib_1.__decorate([
Directive({
providers: [
{
provide: Messages,
useExisting: forwardRef(() => LocalizedMessagesDirective_1) // tslint:disable-line:no-forward-ref
}
],
selector: '[kendoUploadLocalizedMessages]'
}),
tslib_1.__metadata("design:paramtypes", [LocalizationService])
], LocalizedMessagesDirective);
export { LocalizedMessagesDirective };
var LocalizedMessagesDirective_1;
}
LocalizedMessagesDirective.decorators = [
{ type: Directive, args: [{
providers: [
{
provide: Messages,
useExisting: forwardRef(() => LocalizedMessagesDirective) // tslint:disable-line:no-forward-ref
}
],
selector: '[kendoUploadLocalizedMessages]'
},] },
];
/** @nocollapse */
LocalizedMessagesDirective.ctorParameters = () => [
{ type: LocalizationService, },
];

@@ -1,2 +0,1 @@

import * as tslib_1 from "tslib";
import { Input } from '@angular/core';

@@ -9,53 +8,16 @@ import { ComponentMessages } from '@progress/kendo-angular-l10n';

}
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], Messages.prototype, "cancel", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], Messages.prototype, "clearSelectedFiles", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], Messages.prototype, "dropFilesHere", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], Messages.prototype, "headerStatusUploaded", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], Messages.prototype, "headerStatusUploading", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], Messages.prototype, "invalidFileExtension", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], Messages.prototype, "invalidFiles", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], Messages.prototype, "invalidMaxFileSize", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], Messages.prototype, "invalidMinFileSize", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], Messages.prototype, "remove", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], Messages.prototype, "retry", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], Messages.prototype, "select", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], Messages.prototype, "uploadSelectedFiles", void 0);
Messages.propDecorators = {
'cancel': [{ type: Input },],
'clearSelectedFiles': [{ type: Input },],
'dropFilesHere': [{ type: Input },],
'headerStatusUploaded': [{ type: Input },],
'headerStatusUploading': [{ type: Input },],
'invalidFileExtension': [{ type: Input },],
'invalidFiles': [{ type: Input },],
'invalidMaxFileSize': [{ type: Input },],
'invalidMinFileSize': [{ type: Input },],
'remove': [{ type: Input },],
'retry': [{ type: Input },],
'select': [{ type: Input },],
'uploadSelectedFiles': [{ type: Input },],
};

@@ -1,2 +0,1 @@

import * as tslib_1 from "tslib";
import { Injectable, EventEmitter } from '@angular/core';

@@ -23,3 +22,3 @@ import { UploadService } from './upload.service';

*/
let NavigationService = class NavigationService {
export class NavigationService {
constructor(uploadService) {

@@ -158,7 +157,9 @@ this.uploadService = uploadService;

}
};
NavigationService = tslib_1.__decorate([
Injectable(),
tslib_1.__metadata("design:paramtypes", [UploadService])
], NavigationService);
export { NavigationService };
}
NavigationService.decorators = [
{ type: Injectable },
];
/** @nocollapse */
NavigationService.ctorParameters = () => [
{ type: UploadService, },
];

@@ -1,2 +0,1 @@

import * as tslib_1 from "tslib";
import { Directive, TemplateRef } from '@angular/core';

@@ -6,13 +5,15 @@ /**

*/
let FileTemplateDirective = class FileTemplateDirective {
export class FileTemplateDirective {
constructor(templateRef) {
this.templateRef = templateRef;
}
};
FileTemplateDirective = tslib_1.__decorate([
Directive({
selector: '[kendoUploadFileTemplate]' // tslint:disable-line:directive-selector-prefix
}),
tslib_1.__metadata("design:paramtypes", [TemplateRef])
], FileTemplateDirective);
export { FileTemplateDirective };
}
FileTemplateDirective.decorators = [
{ type: Directive, args: [{
selector: '[kendoUploadFileTemplate]' // tslint:disable-line:directive-selector-prefix
},] },
];
/** @nocollapse */
FileTemplateDirective.ctorParameters = () => [
{ type: TemplateRef, },
];

@@ -1,2 +0,1 @@

import * as tslib_1 from "tslib";
import { Directive, ViewContainerRef, Input } from '@angular/core';

@@ -6,3 +5,3 @@ /**

*/
let TemplateContextDirective = class TemplateContextDirective {
export class TemplateContextDirective {
constructor(viewContainerRef) {

@@ -20,14 +19,14 @@ this.viewContainerRef = viewContainerRef;

}
}
TemplateContextDirective.decorators = [
{ type: Directive, args: [{
selector: '[templateContext]' // tslint:disable-line:directive-selector
},] },
];
/** @nocollapse */
TemplateContextDirective.ctorParameters = () => [
{ type: ViewContainerRef, },
];
TemplateContextDirective.propDecorators = {
'templateContext': [{ type: Input },],
};
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Object),
tslib_1.__metadata("design:paramtypes", [Object])
], TemplateContextDirective.prototype, "templateContext", null);
TemplateContextDirective = tslib_1.__decorate([
Directive({
selector: '[templateContext]' // tslint:disable-line:directive-selector
}),
tslib_1.__metadata("design:paramtypes", [ViewContainerRef])
], TemplateContextDirective);
export { TemplateContextDirective };

@@ -1,4 +0,2 @@

import * as tslib_1 from "tslib";
import { Component, Input, HostBinding, ViewChild, ElementRef } from '@angular/core';
import { FileMap } from './file-map';
import { Component, Input, HostBinding, ViewChild } from '@angular/core';
import { UploadService } from './upload.service';

@@ -10,3 +8,3 @@ import { LocalizationService } from '@progress/kendo-angular-l10n';

*/
let UploadActionButtonsComponent = class UploadActionButtonsComponent {
export class UploadActionButtonsComponent {
constructor(uploadService, localization, navigation) {

@@ -59,32 +57,7 @@ this.uploadService = uploadService;

}
};
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Object)
], UploadActionButtonsComponent.prototype, "async", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Boolean)
], UploadActionButtonsComponent.prototype, "disabled", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", FileMap)
], UploadActionButtonsComponent.prototype, "fileList", void 0);
tslib_1.__decorate([
ViewChild('clearButton'),
tslib_1.__metadata("design:type", ElementRef)
], UploadActionButtonsComponent.prototype, "clearButton", void 0);
tslib_1.__decorate([
ViewChild('uploadButton'),
tslib_1.__metadata("design:type", ElementRef)
], UploadActionButtonsComponent.prototype, "uploadButton", void 0);
tslib_1.__decorate([
HostBinding('class'),
tslib_1.__metadata("design:type", String),
tslib_1.__metadata("design:paramtypes", [])
], UploadActionButtonsComponent.prototype, "className", null);
UploadActionButtonsComponent = tslib_1.__decorate([
Component({
selector: 'kendo-upload-action-buttons',
template: `
}
UploadActionButtonsComponent.decorators = [
{ type: Component, args: [{
selector: 'kendo-upload-action-buttons',
template: `
<button #clearButton type="button" class="k-button k-clear-selected"

@@ -101,7 +74,17 @@ [attr.tabIndex]="-1"

`
}),
tslib_1.__metadata("design:paramtypes", [UploadService,
LocalizationService,
NavigationService])
], UploadActionButtonsComponent);
export { UploadActionButtonsComponent };
},] },
];
/** @nocollapse */
UploadActionButtonsComponent.ctorParameters = () => [
{ type: UploadService, },
{ type: LocalizationService, },
{ type: NavigationService, },
];
UploadActionButtonsComponent.propDecorators = {
'async': [{ type: Input },],
'disabled': [{ type: Input },],
'fileList': [{ type: Input },],
'clearButton': [{ type: ViewChild, args: ['clearButton',] },],
'uploadButton': [{ type: ViewChild, args: ['uploadButton',] },],
'className': [{ type: HostBinding, args: ['class',] },],
};

@@ -1,4 +0,2 @@

import * as tslib_1 from "tslib";
import { Component, Input } from '@angular/core';
import { FileMap } from './file-map';
import { FileState } from './file-info';

@@ -9,3 +7,3 @@ import { LocalizationService } from '@progress/kendo-angular-l10n';

*/
let UploadStatusTotalComponent = class UploadStatusTotalComponent {
export class UploadStatusTotalComponent {
constructor(localization) {

@@ -34,11 +32,7 @@ this.localization = localization;

}
};
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", FileMap)
], UploadStatusTotalComponent.prototype, "fileList", void 0);
UploadStatusTotalComponent = tslib_1.__decorate([
Component({
selector: 'kendo-upload-status-total',
template: `
}
UploadStatusTotalComponent.decorators = [
{ type: Component, args: [{
selector: 'kendo-upload-status-total',
template: `
<strong

@@ -50,5 +44,10 @@ class="k-upload-status k-upload-status-total">

`
}),
tslib_1.__metadata("design:paramtypes", [LocalizationService])
], UploadStatusTotalComponent);
export { UploadStatusTotalComponent };
},] },
];
/** @nocollapse */
UploadStatusTotalComponent.ctorParameters = () => [
{ type: LocalizationService, },
];
UploadStatusTotalComponent.propDecorators = {
'fileList': [{ type: Input },],
};

@@ -1,2 +0,1 @@

import * as tslib_1 from "tslib";
/* tslint:disable: no-use-before-declare */

@@ -26,3 +25,3 @@ import { Component, Input, Output, EventEmitter, forwardRef, HostBinding, HostListener, Optional, Inject, ContentChild, ViewChild, ElementRef, NgZone } from '@angular/core';

*/
let UploadComponent = class UploadComponent {
export class UploadComponent {
constructor(uploadService, localization, navigation, _ngZone, wrapper, rtl) {

@@ -518,190 +517,18 @@ this.uploadService = uploadService;

}
};
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Boolean),
tslib_1.__metadata("design:paramtypes", [Boolean])
], UploadComponent.prototype, "autoUpload", null);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Boolean),
tslib_1.__metadata("design:paramtypes", [Boolean])
], UploadComponent.prototype, "batch", null);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Boolean),
tslib_1.__metadata("design:paramtypes", [Boolean])
], UploadComponent.prototype, "withCredentials", null);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String),
tslib_1.__metadata("design:paramtypes", [String])
], UploadComponent.prototype, "saveField", null);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", HttpHeaders),
tslib_1.__metadata("design:paramtypes", [HttpHeaders])
], UploadComponent.prototype, "saveHeaders", null);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String),
tslib_1.__metadata("design:paramtypes", [String])
], UploadComponent.prototype, "saveMethod", null);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String),
tslib_1.__metadata("design:paramtypes", [String])
], UploadComponent.prototype, "saveUrl", null);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String),
tslib_1.__metadata("design:paramtypes", [String])
], UploadComponent.prototype, "responseType", null);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String),
tslib_1.__metadata("design:paramtypes", [String])
], UploadComponent.prototype, "removeField", null);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", HttpHeaders),
tslib_1.__metadata("design:paramtypes", [HttpHeaders])
], UploadComponent.prototype, "removeHeaders", null);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String),
tslib_1.__metadata("design:paramtypes", [String])
], UploadComponent.prototype, "removeMethod", null);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String),
tslib_1.__metadata("design:paramtypes", [String])
], UploadComponent.prototype, "removeUrl", null);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Boolean)
], UploadComponent.prototype, "multiple", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Boolean)
], UploadComponent.prototype, "disabled", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Boolean)
], UploadComponent.prototype, "showFileList", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Number)
], UploadComponent.prototype, "tabIndex", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], UploadComponent.prototype, "accept", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Object),
tslib_1.__metadata("design:paramtypes", [Object])
], UploadComponent.prototype, "restrictions", null);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], UploadComponent.prototype, "id", void 0);
tslib_1.__decorate([
ContentChild(FileTemplateDirective),
tslib_1.__metadata("design:type", FileTemplateDirective)
], UploadComponent.prototype, "fileTemplate", void 0);
tslib_1.__decorate([
ViewChild('fileSelect'),
tslib_1.__metadata("design:type", ElementRef)
], UploadComponent.prototype, "fileSelect", void 0);
tslib_1.__decorate([
ViewChild('fileSelectButton'),
tslib_1.__metadata("design:type", ElementRef)
], UploadComponent.prototype, "fileSelectButton", void 0);
tslib_1.__decorate([
Output(),
tslib_1.__metadata("design:type", EventEmitter)
], UploadComponent.prototype, "blur", void 0);
tslib_1.__decorate([
Output(),
tslib_1.__metadata("design:type", EventEmitter)
], UploadComponent.prototype, "cancel", void 0);
tslib_1.__decorate([
Output(),
tslib_1.__metadata("design:type", EventEmitter)
], UploadComponent.prototype, "clear", void 0);
tslib_1.__decorate([
Output(),
tslib_1.__metadata("design:type", EventEmitter)
], UploadComponent.prototype, "complete", void 0);
tslib_1.__decorate([
Output(),
tslib_1.__metadata("design:type", EventEmitter)
], UploadComponent.prototype, "error", void 0);
tslib_1.__decorate([
Output(),
tslib_1.__metadata("design:type", EventEmitter)
], UploadComponent.prototype, "focus", void 0);
tslib_1.__decorate([
Output(),
tslib_1.__metadata("design:type", EventEmitter)
], UploadComponent.prototype, "remove", void 0);
tslib_1.__decorate([
Output(),
tslib_1.__metadata("design:type", EventEmitter)
], UploadComponent.prototype, "select", void 0);
tslib_1.__decorate([
Output(),
tslib_1.__metadata("design:type", EventEmitter)
], UploadComponent.prototype, "success", void 0);
tslib_1.__decorate([
Output(),
tslib_1.__metadata("design:type", EventEmitter)
], UploadComponent.prototype, "upload", void 0);
tslib_1.__decorate([
Output(),
tslib_1.__metadata("design:type", EventEmitter)
], UploadComponent.prototype, "uploadProgress", void 0);
tslib_1.__decorate([
Output(),
tslib_1.__metadata("design:type", EventEmitter)
], UploadComponent.prototype, "valueChange", void 0);
tslib_1.__decorate([
HostBinding('attr.dir'),
tslib_1.__metadata("design:type", String),
tslib_1.__metadata("design:paramtypes", [])
], UploadComponent.prototype, "dir", null);
tslib_1.__decorate([
HostBinding('class.k-widget'),
HostBinding('class.k-upload'),
HostBinding('class.k-header'),
tslib_1.__metadata("design:type", Boolean),
tslib_1.__metadata("design:paramtypes", [])
], UploadComponent.prototype, "hostDefaultClasses", null);
tslib_1.__decorate([
HostBinding('class.k-state-disabled'),
tslib_1.__metadata("design:type", Boolean),
tslib_1.__metadata("design:paramtypes", [])
], UploadComponent.prototype, "hostDisabledClass", null);
tslib_1.__decorate([
HostListener('keydown', ['$event']),
tslib_1.__metadata("design:type", Function),
tslib_1.__metadata("design:paramtypes", [KeyboardEvent]),
tslib_1.__metadata("design:returntype", void 0)
], UploadComponent.prototype, "handleKeydown", null);
UploadComponent = tslib_1.__decorate([
Component({
exportAs: 'kendoUpload',
providers: [
LocalizationService,
NavigationService,
UploadService,
UPLOAD_VALUE_ACCESSOR,
{
provide: L10N_PREFIX,
useValue: 'kendo.upload'
}
],
selector: 'kendo-upload',
template: `
}
UploadComponent.decorators = [
{ type: Component, args: [{
exportAs: 'kendoUpload',
providers: [
LocalizationService,
NavigationService,
UploadService,
UPLOAD_VALUE_ACCESSOR,
{
provide: L10N_PREFIX,
useValue: 'kendo.upload'
}
],
selector: 'kendo-upload',
template: `
<ng-container kendoUploadLocalizedMessages

@@ -789,10 +616,52 @@ i18n-cancel="kendo.upload.cancel|The text for the Cancel button"

`
}),
tslib_1.__param(5, Optional()), tslib_1.__param(5, Inject(RTL)),
tslib_1.__metadata("design:paramtypes", [UploadService,
LocalizationService,
NavigationService,
NgZone,
ElementRef, Boolean])
], UploadComponent);
export { UploadComponent };
},] },
];
/** @nocollapse */
UploadComponent.ctorParameters = () => [
{ type: UploadService, },
{ type: LocalizationService, },
{ type: NavigationService, },
{ type: NgZone, },
{ type: ElementRef, },
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [RTL,] },] },
];
UploadComponent.propDecorators = {
'autoUpload': [{ type: Input },],
'batch': [{ type: Input },],
'withCredentials': [{ type: Input },],
'saveField': [{ type: Input },],
'saveHeaders': [{ type: Input },],
'saveMethod': [{ type: Input },],
'saveUrl': [{ type: Input },],
'responseType': [{ type: Input },],
'removeField': [{ type: Input },],
'removeHeaders': [{ type: Input },],
'removeMethod': [{ type: Input },],
'removeUrl': [{ type: Input },],
'multiple': [{ type: Input },],
'disabled': [{ type: Input },],
'showFileList': [{ type: Input },],
'tabIndex': [{ type: Input },],
'accept': [{ type: Input },],
'restrictions': [{ type: Input },],
'id': [{ type: Input },],
'fileTemplate': [{ type: ContentChild, args: [FileTemplateDirective,] },],
'fileSelect': [{ type: ViewChild, args: ['fileSelect',] },],
'fileSelectButton': [{ type: ViewChild, args: ['fileSelectButton',] },],
'blur': [{ type: Output },],
'cancel': [{ type: Output },],
'clear': [{ type: Output },],
'complete': [{ type: Output },],
'error': [{ type: Output },],
'focus': [{ type: Output },],
'remove': [{ type: Output },],
'select': [{ type: Output },],
'success': [{ type: Output },],
'upload': [{ type: Output },],
'uploadProgress': [{ type: Output },],
'valueChange': [{ type: Output },],
'dir': [{ type: HostBinding, args: ['attr.dir',] },],
'hostDefaultClasses': [{ type: HostBinding, args: ['class.k-widget',] }, { type: HostBinding, args: ['class.k-upload',] }, { type: HostBinding, args: ['class.k-header',] },],
'hostDisabledClass': [{ type: HostBinding, args: ['class.k-state-disabled',] },],
'handleKeydown': [{ type: HostListener, args: ['keydown', ['$event'],] },],
};

@@ -1,2 +0,1 @@

import * as tslib_1 from "tslib";
import { NgModule } from '@angular/core';

@@ -37,11 +36,12 @@ import { CommonModule } from '@angular/common';

*/
let UploadModule = class UploadModule {
};
UploadModule = tslib_1.__decorate([
NgModule({
declarations: [declarations],
exports: [UploadComponent, FileTemplateDirective, CustomMessagesComponent],
imports: [CommonModule]
})
], UploadModule);
export { UploadModule };
export class UploadModule {
}
UploadModule.decorators = [
{ type: NgModule, args: [{
declarations: [declarations],
exports: [UploadComponent, FileTemplateDirective, CustomMessagesComponent],
imports: [CommonModule]
},] },
];
/** @nocollapse */
UploadModule.ctorParameters = () => [];

@@ -1,2 +0,1 @@

import * as tslib_1 from "tslib";
import { Injectable, EventEmitter } from '@angular/core';

@@ -11,3 +10,3 @@ import { FileState } from './file-info';

*/
let UploadService = class UploadService {
export class UploadService {
constructor(http) {

@@ -222,7 +221,9 @@ this.http = http;

}
};
UploadService = tslib_1.__decorate([
Injectable(),
tslib_1.__metadata("design:paramtypes", [HttpClient])
], UploadService);
export { UploadService };
}
UploadService.decorators = [
{ type: Injectable },
];
/** @nocollapse */
UploadService.ctorParameters = () => [
{ type: HttpClient, },
];
"use strict";
/**
* Generated bundle index. Do not edit.
*/
Object.defineProperty(exports, "__esModule", { value: true });
var upload_module_1 = require("./upload.module");
exports.UploadModule = upload_module_1.UploadModule;
var tslib_1 = require("tslib");
tslib_1.__exportStar(require("./public_api"), exports);
var file_list_item_1 = require("./file-list-item");
exports.ɵe = file_list_item_1.FileListItemDirective;
var file_list_item_base_1 = require("./file-list-item-base");
exports.ɵg = file_list_item_base_1.FileListItemBase;
var localized_messages_directive_1 = require("./localization/localized-messages.directive");
exports.ɵh = localized_messages_directive_1.LocalizedMessagesDirective;
var messages_1 = require("./localization/messages");
exports.ɵc = messages_1.Messages;
var navigation_service_1 = require("./navigation.service");
exports.ɵf = navigation_service_1.NavigationService;
var upload_events_1 = require("./upload-events");
exports.ɵb = upload_events_1.PreventableEvent;
var upload_component_1 = require("./upload.component");
exports.UploadComponent = upload_component_1.UploadComponent;
var file_select_directive_1 = require("./file-select.directive");
exports.FileSelectDirective = file_select_directive_1.FileSelectDirective;
var file_list_component_1 = require("./file-list.component");
exports.FileListComponent = file_list_component_1.FileListComponent;
var file_list_single_item_component_1 = require("./file-list-single-item.component");
exports.FileListSingleItemComponent = file_list_single_item_component_1.FileListSingleItemComponent;
var file_list_item_action_button_component_1 = require("./file-list-item-action-button.component");
exports.FileListItemActionButtonComponent = file_list_item_action_button_component_1.FileListItemActionButtonComponent;
var file_list_multiple_items_component_1 = require("./file-list-multiple-items.component");
exports.FileListMultipleItemsComponent = file_list_multiple_items_component_1.FileListMultipleItemsComponent;
var file_template_directive_1 = require("./templates/file-template.directive");
exports.FileTemplateDirective = file_template_directive_1.FileTemplateDirective;
var template_context_directive_1 = require("./templates/template-context.directive");
exports.TemplateContextDirective = template_context_directive_1.TemplateContextDirective;
var upload_status_total_component_1 = require("./upload-status-total.component");
exports.UploadStatusTotalComponent = upload_status_total_component_1.UploadStatusTotalComponent;
var upload_action_buttons_component_1 = require("./upload-action-buttons.component");
exports.UploadActionButtonsComponent = upload_action_buttons_component_1.UploadActionButtonsComponent;
var file_info_1 = require("./file-info");
exports.FileState = file_info_1.FileState;
var dropzone_directive_1 = require("./dropzone.directive");
exports.DropZoneDirective = dropzone_directive_1.DropZoneDirective;
var custom_messages_component_1 = require("./localization/custom-messages.component");
exports.CustomMessagesComponent = custom_messages_component_1.CustomMessagesComponent;
var upload_events_1 = require("./upload-events");
exports.CancelEvent = upload_events_1.CancelEvent;
exports.ClearEvent = upload_events_1.ClearEvent;
exports.ErrorEvent = upload_events_1.ErrorEvent;
exports.RemoveEvent = upload_events_1.RemoveEvent;
exports.SelectEvent = upload_events_1.SelectEvent;
exports.SuccessEvent = upload_events_1.SuccessEvent;
exports.UploadEvent = upload_events_1.UploadEvent;
exports.ɵa = upload_component_1.UPLOAD_VALUE_ACCESSOR;
var upload_service_1 = require("./upload.service");
exports.ɵd = upload_service_1.UploadService;

@@ -6,12 +6,13 @@ {

"license": "SEE LICENSE in LICENSE.md",
"version": "3.0.2",
"main": "dist/npm/main.js",
"module": "dist/es/main.js",
"jsnext:main": "dist/es/main.js",
"es2015": "dist/es2015/main.js",
"typings": "dist/npm/main.d.ts",
"version": "3.0.3-dev.201802271234",
"main": "dist/npm/index.js",
"module": "dist/es/index.js",
"jsnext:main": "dist/es/index.js",
"es2015": "dist/es2015/index.js",
"typings": "dist/es2015/index.d.ts",
"jsdelivr": "dist/cdn/js/kendo-angular-upload.js",
"unpkg": "dist/cdn/js/kendo-angular-upload.js",
"scripts": {
"test": "gulp test",
"test": "jest",
"test:watch": "jest --watch",
"e2e": "gulp e2e",

@@ -47,2 +48,3 @@ "start": "gulp start",

"@angular/forms": "^4.3.1",
"@angular/router": "^4.3.1",
"@angular/platform-browser": "^4.3.1",

@@ -54,6 +56,7 @@ "@angular/platform-browser-dynamic": "^4.3.1",

"@progress/kendo-angular-l10n": "^1.0.0",
"@progress/kendo-angular-tasks": "^10.1.0",
"@progress/kendo-theme-default": "^2.38.2",
"@progress/kendo-angular-tasks": "^12.0.0",
"@progress/kendo-theme-default": "^2.46.0",
"@telerik/semantic-prerelease": "^1.1.5",
"@types/jasmine": "2.2.34",
"@progress/kendo-angular-jest-preset": "^1.1.1",
"@types/jest": "^21.1.8",
"@types/zone.js": "0.0.27",

@@ -67,4 +70,5 @@ "codelyzer": "^3.0.0",

"rxjs-tslint-rules": "^3.6.0",
"jest": "^21.2.1",
"semantic-release": "^6.3.6",
"tslint": "^5.0.0",
"tslint": "^5.4.3",
"typescript": "~2.5.0",

@@ -97,2 +101,5 @@ "validate-commit-msg": "^1.1.1",

},
"jest": {
"preset": "@progress/kendo-angular-jest-preset"
},
"repository": {

@@ -99,0 +106,0 @@ "type": "git",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc