@progress/kendo-angular-upload
Version:
Kendo UI Angular Upload Component
186 lines (185 loc) • 6.03 kB
JavaScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { Directive, Input } from '@angular/core';
import { ComponentMessages } from '@progress/kendo-angular-l10n';
import * as i0 from "@angular/core";
/**
* @hidden
*/
export class Messages extends ComponentMessages {
/**
* Sets the text for the **Cancel** button.
*
* @default 'Cancel'
*/
cancel;
/**
* Sets the text for the **Clear** button.
*
* @default 'Clear'
*/
clearSelectedFiles;
/**
* Sets the drop-zone hint.
*
* @default 'Drop files here to upload'
*/
dropFilesHere;
/**
* Sets the external drop-zone hint.
*
* @default 'Drag and drop files here to upload'
*/
externalDropFilesHere;
/**
* Sets the status message for a batch of files.
*
* @default 'files'
*/
filesBatchStatus;
/**
* Sets the status message for a batch of files after failed upload.
*
* @default 'files failed to upload.'
*/
filesBatchStatusFailed;
/**
* Sets the status message for a batch of files after successful upload.
*
* @default 'files successfully uploaded.'
*/
filesBatchStatusUploaded;
/**
* Sets the file status message after failed upload.
*
* @default 'File failed to upload.'
*/
fileStatusFailed;
/**
* Sets the file status message after successful upload.
*
* @default 'File successfully uploaded.'
*/
fileStatusUploaded;
/**
* Sets the header status message when the file upload is paused.
*
* @default 'Paused'
*/
headerStatusPaused;
/**
* Sets the header status message after the file upload completes.
*
* @default 'Done'
*/
headerStatusUploaded;
/**
* Sets the header status message during the upload of the file.
*
* @default 'Uploading...'
*/
headerStatusUploading;
/**
* Sets the text for the invalid `allowedExtensions` restriction message.
*
* @default 'File type not allowed.'
*/
invalidFileExtension;
/**
* Sets the text for the invalid `maxFileSize` restriction message.
*
* @default 'File size too large.'
*/
invalidMaxFileSize;
/**
* Sets the text for the invalid `minFileSize` restriction message.
*
* @default 'File size too small.'
*/
invalidMinFileSize;
/**
* Sets the text for the **Pause** button.
*
* @default 'Pause'
*/
pause;
/**
* Sets the text for the **Remove** button.
*
* @default 'Remove'
*/
remove;
/**
* Sets the text for the **Resume** button.
*
* @default 'Resume'
*/
resume;
/**
* Sets the text for the **Retry** button.
*
* @default 'Retry'
*/
retry;
/**
* Sets the text for the **Select** button.
*
* @default 'Select files...'
*/
select;
/**
* Sets the text for the **Upload files** button.
*
* @default 'Upload'
*/
uploadSelectedFiles;
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: Messages, inputs: { cancel: "cancel", clearSelectedFiles: "clearSelectedFiles", dropFilesHere: "dropFilesHere", externalDropFilesHere: "externalDropFilesHere", filesBatchStatus: "filesBatchStatus", filesBatchStatusFailed: "filesBatchStatusFailed", filesBatchStatusUploaded: "filesBatchStatusUploaded", fileStatusFailed: "fileStatusFailed", fileStatusUploaded: "fileStatusUploaded", headerStatusPaused: "headerStatusPaused", headerStatusUploaded: "headerStatusUploaded", headerStatusUploading: "headerStatusUploading", invalidFileExtension: "invalidFileExtension", invalidMaxFileSize: "invalidMaxFileSize", invalidMinFileSize: "invalidMinFileSize", pause: "pause", remove: "remove", resume: "resume", retry: "retry", select: "select", uploadSelectedFiles: "uploadSelectedFiles" }, usesInheritance: true, ngImport: i0 });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Messages, decorators: [{
type: Directive
}], propDecorators: { cancel: [{
type: Input
}], clearSelectedFiles: [{
type: Input
}], dropFilesHere: [{
type: Input
}], externalDropFilesHere: [{
type: Input
}], filesBatchStatus: [{
type: Input
}], filesBatchStatusFailed: [{
type: Input
}], filesBatchStatusUploaded: [{
type: Input
}], fileStatusFailed: [{
type: Input
}], fileStatusUploaded: [{
type: Input
}], headerStatusPaused: [{
type: Input
}], headerStatusUploaded: [{
type: Input
}], headerStatusUploading: [{
type: Input
}], invalidFileExtension: [{
type: Input
}], invalidMaxFileSize: [{
type: Input
}], invalidMinFileSize: [{
type: Input
}], pause: [{
type: Input
}], remove: [{
type: Input
}], resume: [{
type: Input
}], retry: [{
type: Input
}], select: [{
type: Input
}], uploadSelectedFiles: [{
type: Input
}] } });