UNPKG

devextreme-angular

Version:

Angular UI and visualization components based on DevExtreme widgets

1,349 lines (1,298 loc) • 52.1 kB
import { __extends, __decorate, __metadata, __param } from 'tslib'; import { TransferState, BrowserTransferStateModule } from '@angular/platform-browser'; import { forwardRef, ElementRef, NgZone, Inject, PLATFORM_ID, Input, Output, EventEmitter, HostListener, Component, NgModule } from '@angular/core'; import DxFileUploader from 'devextreme/ui/file_uploader'; import { NG_VALUE_ACCESSOR } from '@angular/forms'; import { DxTemplateHost, WatcherHelper, IterableDifferHelper, NestedOptionHost, DxComponent, DxIntegrationModule, DxTemplateModule } from 'devextreme-angular/core'; /*! * devextreme-angular * Version: 20.2.5 * Build date: Fri Jan 15 2021 * * Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://github.com/DevExpress/devextreme-angular */ var CUSTOM_VALUE_ACCESSOR_PROVIDER = { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(function () { return DxFileUploaderComponent; }), multi: true }; /** * The FileUploader UI component enables an end user to upload files to the server. An end user can select files in the file explorer or drag and drop files to the FileUploader area on the page. */ var DxFileUploaderComponent = /** @class */ (function (_super) { __extends(DxFileUploaderComponent, _super); function DxFileUploaderComponent(elementRef, ngZone, templateHost, _watcherHelper, _idh, optionHost, transferState, platformId) { var _this = _super.call(this, elementRef, ngZone, templateHost, _watcherHelper, transferState, platformId) || this; _this._watcherHelper = _watcherHelper; _this._idh = _idh; _this.touched = function (_) { }; _this._createEventEmitters([ { subscribe: 'beforeSend', emit: 'onBeforeSend' }, { subscribe: 'contentReady', emit: 'onContentReady' }, { subscribe: 'disposing', emit: 'onDisposing' }, { subscribe: 'dropZoneEnter', emit: 'onDropZoneEnter' }, { subscribe: 'dropZoneLeave', emit: 'onDropZoneLeave' }, { subscribe: 'filesUploaded', emit: 'onFilesUploaded' }, { subscribe: 'initialized', emit: 'onInitialized' }, { subscribe: 'optionChanged', emit: 'onOptionChanged' }, { subscribe: 'progress', emit: 'onProgress' }, { subscribe: 'uploadAborted', emit: 'onUploadAborted' }, { subscribe: 'uploaded', emit: 'onUploaded' }, { subscribe: 'uploadError', emit: 'onUploadError' }, { subscribe: 'uploadStarted', emit: 'onUploadStarted' }, { subscribe: 'valueChanged', emit: 'onValueChanged' }, { emit: 'abortUploadChange' }, { emit: 'acceptChange' }, { emit: 'accessKeyChange' }, { emit: 'activeStateEnabledChange' }, { emit: 'allowCancelingChange' }, { emit: 'allowedFileExtensionsChange' }, { emit: 'chunkSizeChange' }, { emit: 'dialogTriggerChange' }, { emit: 'disabledChange' }, { emit: 'dropZoneChange' }, { emit: 'elementAttrChange' }, { emit: 'focusStateEnabledChange' }, { emit: 'heightChange' }, { emit: 'hintChange' }, { emit: 'hoverStateEnabledChange' }, { emit: 'inputAttrChange' }, { emit: 'invalidFileExtensionMessageChange' }, { emit: 'invalidMaxFileSizeMessageChange' }, { emit: 'invalidMinFileSizeMessageChange' }, { emit: 'isValidChange' }, { emit: 'labelTextChange' }, { emit: 'maxFileSizeChange' }, { emit: 'minFileSizeChange' }, { emit: 'multipleChange' }, { emit: 'nameChange' }, { emit: 'progressChange' }, { emit: 'readOnlyChange' }, { emit: 'readyToUploadMessageChange' }, { emit: 'rtlEnabledChange' }, { emit: 'selectButtonTextChange' }, { emit: 'showFileListChange' }, { emit: 'tabIndexChange' }, { emit: 'uploadAbortedMessageChange' }, { emit: 'uploadButtonTextChange' }, { emit: 'uploadChunkChange' }, { emit: 'uploadCustomDataChange' }, { emit: 'uploadedMessageChange' }, { emit: 'uploadFailedMessageChange' }, { emit: 'uploadFileChange' }, { emit: 'uploadHeadersChange' }, { emit: 'uploadMethodChange' }, { emit: 'uploadModeChange' }, { emit: 'uploadUrlChange' }, { emit: 'validationErrorChange' }, { emit: 'validationErrorsChange' }, { emit: 'validationStatusChange' }, { emit: 'valueChange' }, { emit: 'visibleChange' }, { emit: 'widthChange' }, { emit: 'onBlur' } ]); _this._idh.setHost(_this); optionHost.setHost(_this); return _this; } Object.defineProperty(DxFileUploaderComponent.prototype, "abortUpload", { /** * A function that cancels the file upload. */ get: function () { return this._getOption('abortUpload'); }, set: function (value) { this._setOption('abortUpload', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "accept", { /** * Specifies a file type or several types accepted by the UI component. */ get: function () { return this._getOption('accept'); }, set: function (value) { this._setOption('accept', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "accessKey", { /** * Specifies the shortcut key that sets focus on the UI component. */ get: function () { return this._getOption('accessKey'); }, set: function (value) { this._setOption('accessKey', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "activeStateEnabled", { /** * Specifies whether or not the UI component changes its state when interacting with a user. */ get: function () { return this._getOption('activeStateEnabled'); }, set: function (value) { this._setOption('activeStateEnabled', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "allowCanceling", { /** * Specifies if an end user can remove a file from the selection and interrupt uploading. */ get: function () { return this._getOption('allowCanceling'); }, set: function (value) { this._setOption('allowCanceling', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "allowedFileExtensions", { /** * Restricts file extensions that can be uploaded to the server. */ get: function () { return this._getOption('allowedFileExtensions'); }, set: function (value) { this._setOption('allowedFileExtensions', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "chunkSize", { /** * Specifies the chunk size in bytes. Applies only if uploadMode is 'instantly' or 'useButtons'. Requires a server that can process file chunks. */ get: function () { return this._getOption('chunkSize'); }, set: function (value) { this._setOption('chunkSize', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "dialogTrigger", { /** * Specifies the HTML element which invokes the file upload dialog. */ get: function () { return this._getOption('dialogTrigger'); }, set: function (value) { this._setOption('dialogTrigger', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "disabled", { /** * Specifies whether the UI component responds to user interaction. */ get: function () { return this._getOption('disabled'); }, set: function (value) { this._setOption('disabled', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "dropZone", { /** * Specifies the HTML element in which users can drag and drop files for upload. */ get: function () { return this._getOption('dropZone'); }, set: function (value) { this._setOption('dropZone', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "elementAttr", { /** * Specifies the global attributes to be attached to the UI component's container element. */ get: function () { return this._getOption('elementAttr'); }, set: function (value) { this._setOption('elementAttr', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "focusStateEnabled", { /** * Specifies whether the UI component can be focused using keyboard navigation. */ get: function () { return this._getOption('focusStateEnabled'); }, set: function (value) { this._setOption('focusStateEnabled', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "height", { /** * Specifies the UI component's height. */ get: function () { return this._getOption('height'); }, set: function (value) { this._setOption('height', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "hint", { /** * Specifies text for a hint that appears when a user pauses on the UI component. */ get: function () { return this._getOption('hint'); }, set: function (value) { this._setOption('hint', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "hoverStateEnabled", { /** * Specifies whether the UI component changes its state when a user pauses on it. */ get: function () { return this._getOption('hoverStateEnabled'); }, set: function (value) { this._setOption('hoverStateEnabled', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "inputAttr", { /** * Specifies the attributes to be passed on to the underlying `` element of the `file` type. */ get: function () { return this._getOption('inputAttr'); }, set: function (value) { this._setOption('inputAttr', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "invalidFileExtensionMessage", { /** * The text displayed when the extension of the file being uploaded is not an allowed file extension. */ get: function () { return this._getOption('invalidFileExtensionMessage'); }, set: function (value) { this._setOption('invalidFileExtensionMessage', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "invalidMaxFileSizeMessage", { /** * The text displayed when the size of the file being uploaded is greater than the maxFileSize. */ get: function () { return this._getOption('invalidMaxFileSizeMessage'); }, set: function (value) { this._setOption('invalidMaxFileSizeMessage', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "invalidMinFileSizeMessage", { /** * The text displayed when the size of the file being uploaded is less than the minFileSize. */ get: function () { return this._getOption('invalidMinFileSizeMessage'); }, set: function (value) { this._setOption('invalidMinFileSizeMessage', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "isValid", { /** * Specifies or indicates whether the editor's value is valid. */ get: function () { return this._getOption('isValid'); }, set: function (value) { this._setOption('isValid', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "labelText", { /** * Specifies the text displayed on the area to which an end-user can drop a file. */ get: function () { return this._getOption('labelText'); }, set: function (value) { this._setOption('labelText', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "maxFileSize", { /** * Specifies the maximum file size (in bytes) allowed for uploading. Applies only if uploadMode is 'instantly' or 'useButtons'. */ get: function () { return this._getOption('maxFileSize'); }, set: function (value) { this._setOption('maxFileSize', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "minFileSize", { /** * Specifies the minimum file size (in bytes) allowed for uploading. Applies only if uploadMode is 'instantly' or 'useButtons'. */ get: function () { return this._getOption('minFileSize'); }, set: function (value) { this._setOption('minFileSize', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "multiple", { /** * Specifies whether the UI component enables an end-user to select a single file or multiple files. */ get: function () { return this._getOption('multiple'); }, set: function (value) { this._setOption('multiple', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "name", { /** * Specifies the value passed to the name attribute of the underlying input element. Required to access uploaded files on the server. */ get: function () { return this._getOption('name'); }, set: function (value) { this._setOption('name', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "progress", { /** * Gets the current progress in percentages. */ get: function () { return this._getOption('progress'); }, set: function (value) { this._setOption('progress', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "readOnly", { /** * Specifies whether the editor is read-only. */ get: function () { return this._getOption('readOnly'); }, set: function (value) { this._setOption('readOnly', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "readyToUploadMessage", { /** * The message displayed by the UI component when it is ready to upload the specified files. */ get: function () { return this._getOption('readyToUploadMessage'); }, set: function (value) { this._setOption('readyToUploadMessage', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "rtlEnabled", { /** * Switches the UI component to a right-to-left representation. */ get: function () { return this._getOption('rtlEnabled'); }, set: function (value) { this._setOption('rtlEnabled', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "selectButtonText", { /** * The text displayed on the button that opens the file browser. */ get: function () { return this._getOption('selectButtonText'); }, set: function (value) { this._setOption('selectButtonText', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "showFileList", { /** * Specifies whether or not the UI component displays the list of selected files. */ get: function () { return this._getOption('showFileList'); }, set: function (value) { this._setOption('showFileList', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "tabIndex", { /** * Specifies the number of the element when the Tab key is used for navigating. */ get: function () { return this._getOption('tabIndex'); }, set: function (value) { this._setOption('tabIndex', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "uploadAbortedMessage", { /** * The message displayed by the UI component when the file upload is cancelled. */ get: function () { return this._getOption('uploadAbortedMessage'); }, set: function (value) { this._setOption('uploadAbortedMessage', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "uploadButtonText", { /** * The text displayed on the button that starts uploading. */ get: function () { return this._getOption('uploadButtonText'); }, set: function (value) { this._setOption('uploadButtonText', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "uploadChunk", { /** * A function that uploads a file in chunks. */ get: function () { return this._getOption('uploadChunk'); }, set: function (value) { this._setOption('uploadChunk', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "uploadCustomData", { /** * Specifies custom data for the upload request. */ get: function () { return this._getOption('uploadCustomData'); }, set: function (value) { this._setOption('uploadCustomData', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "uploadedMessage", { /** * The message displayed by the UI component when uploading is finished. */ get: function () { return this._getOption('uploadedMessage'); }, set: function (value) { this._setOption('uploadedMessage', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "uploadFailedMessage", { /** * The message displayed by the UI component on uploading failure. */ get: function () { return this._getOption('uploadFailedMessage'); }, set: function (value) { this._setOption('uploadFailedMessage', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "uploadFile", { /** * A function that uploads a file. */ get: function () { return this._getOption('uploadFile'); }, set: function (value) { this._setOption('uploadFile', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "uploadHeaders", { /** * Specifies headers for the upload request. */ get: function () { return this._getOption('uploadHeaders'); }, set: function (value) { this._setOption('uploadHeaders', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "uploadMethod", { /** * Specifies the method for the upload request. */ get: function () { return this._getOption('uploadMethod'); }, set: function (value) { this._setOption('uploadMethod', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "uploadMode", { /** * Specifies how the UI component uploads files. */ get: function () { return this._getOption('uploadMode'); }, set: function (value) { this._setOption('uploadMode', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "uploadUrl", { /** * Specifies a target Url for the upload request. */ get: function () { return this._getOption('uploadUrl'); }, set: function (value) { this._setOption('uploadUrl', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "validationError", { /** * Information on the broken validation rule. Contains the first item from the validationErrors array. */ get: function () { return this._getOption('validationError'); }, set: function (value) { this._setOption('validationError', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "validationErrors", { /** * An array of the validation rules that failed. */ get: function () { return this._getOption('validationErrors'); }, set: function (value) { this._setOption('validationErrors', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "validationStatus", { /** * Indicates or specifies the current validation status. */ get: function () { return this._getOption('validationStatus'); }, set: function (value) { this._setOption('validationStatus', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "value", { /** * Specifies a File instance representing the selected file. Read-only when uploadMode is 'useForm'. */ get: function () { return this._getOption('value'); }, set: function (value) { this._setOption('value', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "visible", { /** * Specifies whether the UI component is visible. */ get: function () { return this._getOption('visible'); }, set: function (value) { this._setOption('visible', value); }, enumerable: true, configurable: true }); Object.defineProperty(DxFileUploaderComponent.prototype, "width", { /** * Specifies the UI component's width. */ get: function () { return this._getOption('width'); }, set: function (value) { this._setOption('width', value); }, enumerable: true, configurable: true }); DxFileUploaderComponent.prototype.change = function (_) { }; DxFileUploaderComponent.prototype._createInstance = function (element, options) { return new DxFileUploader(element, options); }; DxFileUploaderComponent.prototype.writeValue = function (value) { this.eventHelper.lockedValueChangeEvent = true; this.value = value; this.eventHelper.lockedValueChangeEvent = false; }; DxFileUploaderComponent.prototype.setDisabledState = function (isDisabled) { this.disabled = isDisabled; }; DxFileUploaderComponent.prototype.registerOnChange = function (fn) { this.change = fn; }; DxFileUploaderComponent.prototype.registerOnTouched = function (fn) { this.touched = fn; }; DxFileUploaderComponent.prototype._createWidget = function (element) { var _this = this; _super.prototype._createWidget.call(this, element); this.instance.on('focusOut', function (e) { _this.eventHelper.fireNgEvent('onBlur', [e]); }); }; DxFileUploaderComponent.prototype.ngOnDestroy = function () { this._destroyWidget(); }; DxFileUploaderComponent.prototype.ngOnChanges = function (changes) { _super.prototype.ngOnChanges.call(this, changes); this.setupChanges('allowedFileExtensions', changes); this.setupChanges('validationErrors', changes); this.setupChanges('value', changes); }; DxFileUploaderComponent.prototype.setupChanges = function (prop, changes) { if (!(prop in this._optionsToUpdate)) { this._idh.setup(prop, changes); } }; DxFileUploaderComponent.prototype.ngDoCheck = function () { this._idh.doCheck('allowedFileExtensions'); this._idh.doCheck('validationErrors'); this._idh.doCheck('value'); this._watcherHelper.checkWatchers(); _super.prototype.ngDoCheck.call(this); _super.prototype.clearChangedOptions.call(this); }; DxFileUploaderComponent.prototype._setOption = function (name, value) { var isSetup = this._idh.setupSingle(name, value); var isChanged = this._idh.getChanges(name, value) !== null; if (isSetup || isChanged) { _super.prototype._setOption.call(this, name, value); } }; DxFileUploaderComponent.ctorParameters = function () { return [ { type: ElementRef }, { type: NgZone }, { type: DxTemplateHost }, { type: WatcherHelper }, { type: IterableDifferHelper }, { type: NestedOptionHost }, { type: TransferState }, { type: undefined, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] } ]; }; __decorate([ Input(), __metadata("design:type", Function), __metadata("design:paramtypes", [Function]) ], DxFileUploaderComponent.prototype, "abortUpload", null); __decorate([ Input(), __metadata("design:type", String), __metadata("design:paramtypes", [String]) ], DxFileUploaderComponent.prototype, "accept", null); __decorate([ Input(), __metadata("design:type", String), __metadata("design:paramtypes", [String]) ], DxFileUploaderComponent.prototype, "accessKey", null); __decorate([ Input(), __metadata("design:type", Boolean), __metadata("design:paramtypes", [Boolean]) ], DxFileUploaderComponent.prototype, "activeStateEnabled", null); __decorate([ Input(), __metadata("design:type", Boolean), __metadata("design:paramtypes", [Boolean]) ], DxFileUploaderComponent.prototype, "allowCanceling", null); __decorate([ Input(), __metadata("design:type", Array), __metadata("design:paramtypes", [Array]) ], DxFileUploaderComponent.prototype, "allowedFileExtensions", null); __decorate([ Input(), __metadata("design:type", Number), __metadata("design:paramtypes", [Number]) ], DxFileUploaderComponent.prototype, "chunkSize", null); __decorate([ Input(), __metadata("design:type", Object), __metadata("design:paramtypes", [Object]) ], DxFileUploaderComponent.prototype, "dialogTrigger", null); __decorate([ Input(), __metadata("design:type", Boolean), __metadata("design:paramtypes", [Boolean]) ], DxFileUploaderComponent.prototype, "disabled", null); __decorate([ Input(), __metadata("design:type", Object), __metadata("design:paramtypes", [Object]) ], DxFileUploaderComponent.prototype, "dropZone", null); __decorate([ Input(), __metadata("design:type", Object), __metadata("design:paramtypes", [Object]) ], DxFileUploaderComponent.prototype, "elementAttr", null); __decorate([ Input(), __metadata("design:type", Boolean), __metadata("design:paramtypes", [Boolean]) ], DxFileUploaderComponent.prototype, "focusStateEnabled", null); __decorate([ Input(), __metadata("design:type", Object), __metadata("design:paramtypes", [Object]) ], DxFileUploaderComponent.prototype, "height", null); __decorate([ Input(), __metadata("design:type", String), __metadata("design:paramtypes", [String]) ], DxFileUploaderComponent.prototype, "hint", null); __decorate([ Input(), __metadata("design:type", Boolean), __metadata("design:paramtypes", [Boolean]) ], DxFileUploaderComponent.prototype, "hoverStateEnabled", null); __decorate([ Input(), __metadata("design:type", Object), __metadata("design:paramtypes", [Object]) ], DxFileUploaderComponent.prototype, "inputAttr", null); __decorate([ Input(), __metadata("design:type", String), __metadata("design:paramtypes", [String]) ], DxFileUploaderComponent.prototype, "invalidFileExtensionMessage", null); __decorate([ Input(), __metadata("design:type", String), __metadata("design:paramtypes", [String]) ], DxFileUploaderComponent.prototype, "invalidMaxFileSizeMessage", null); __decorate([ Input(), __metadata("design:type", String), __metadata("design:paramtypes", [String]) ], DxFileUploaderComponent.prototype, "invalidMinFileSizeMessage", null); __decorate([ Input(), __metadata("design:type", Boolean), __metadata("design:paramtypes", [Boolean]) ], DxFileUploaderComponent.prototype, "isValid", null); __decorate([ Input(), __metadata("design:type", String), __metadata("design:paramtypes", [String]) ], DxFileUploaderComponent.prototype, "labelText", null); __decorate([ Input(), __metadata("design:type", Number), __metadata("design:paramtypes", [Number]) ], DxFileUploaderComponent.prototype, "maxFileSize", null); __decorate([ Input(), __metadata("design:type", Number), __metadata("design:paramtypes", [Number]) ], DxFileUploaderComponent.prototype, "minFileSize", null); __decorate([ Input(), __metadata("design:type", Boolean), __metadata("design:paramtypes", [Boolean]) ], DxFileUploaderComponent.prototype, "multiple", null); __decorate([ Input(), __metadata("design:type", String), __metadata("design:paramtypes", [String]) ], DxFileUploaderComponent.prototype, "name", null); __decorate([ Input(), __metadata("design:type", Number), __metadata("design:paramtypes", [Number]) ], DxFileUploaderComponent.prototype, "progress", null); __decorate([ Input(), __metadata("design:type", Boolean), __metadata("design:paramtypes", [Boolean]) ], DxFileUploaderComponent.prototype, "readOnly", null); __decorate([ Input(), __metadata("design:type", String), __metadata("design:paramtypes", [String]) ], DxFileUploaderComponent.prototype, "readyToUploadMessage", null); __decorate([ Input(), __metadata("design:type", Boolean), __metadata("design:paramtypes", [Boolean]) ], DxFileUploaderComponent.prototype, "rtlEnabled", null); __decorate([ Input(), __metadata("design:type", String), __metadata("design:paramtypes", [String]) ], DxFileUploaderComponent.prototype, "selectButtonText", null); __decorate([ Input(), __metadata("design:type", Boolean), __metadata("design:paramtypes", [Boolean]) ], DxFileUploaderComponent.prototype, "showFileList", null); __decorate([ Input(), __metadata("design:type", Number), __metadata("design:paramtypes", [Number]) ], DxFileUploaderComponent.prototype, "tabIndex", null); __decorate([ Input(), __metadata("design:type", String), __metadata("design:paramtypes", [String]) ], DxFileUploaderComponent.prototype, "uploadAbortedMessage", null); __decorate([ Input(), __metadata("design:type", String), __metadata("design:paramtypes", [String]) ], DxFileUploaderComponent.prototype, "uploadButtonText", null); __decorate([ Input(), __metadata("design:type", Function), __metadata("design:paramtypes", [Function]) ], DxFileUploaderComponent.prototype, "uploadChunk", null); __decorate([ Input(), __metadata("design:type", Object), __metadata("design:paramtypes", [Object]) ], DxFileUploaderComponent.prototype, "uploadCustomData", null); __decorate([ Input(), __metadata("design:type", String), __metadata("design:paramtypes", [String]) ], DxFileUploaderComponent.prototype, "uploadedMessage", null); __decorate([ Input(), __metadata("design:type", String), __metadata("design:paramtypes", [String]) ], DxFileUploaderComponent.prototype, "uploadFailedMessage", null); __decorate([ Input(), __metadata("design:type", Function), __metadata("design:paramtypes", [Function]) ], DxFileUploaderComponent.prototype, "uploadFile", null); __decorate([ Input(), __metadata("design:type", Object), __metadata("design:paramtypes", [Object]) ], DxFileUploaderComponent.prototype, "uploadHeaders", null); __decorate([ Input(), __metadata("design:type", String), __metadata("design:paramtypes", [String]) ], DxFileUploaderComponent.prototype, "uploadMethod", null); __decorate([ Input(), __metadata("design:type", String), __metadata("design:paramtypes", [String]) ], DxFileUploaderComponent.prototype, "uploadMode", null); __decorate([ Input(), __metadata("design:type", String), __metadata("design:paramtypes", [String]) ], DxFileUploaderComponent.prototype, "uploadUrl", null); __decorate([ Input(), __metadata("design:type", Object), __metadata("design:paramtypes", [Object]) ], DxFileUploaderComponent.prototype, "validationError", null); __decorate([ Input(), __metadata("design:type", Array), __metadata("design:paramtypes", [Array]) ], DxFileUploaderComponent.prototype, "validationErrors", null); __decorate([ Input(), __metadata("design:type", String), __metadata("design:paramtypes", [String]) ], DxFileUploaderComponent.prototype, "validationStatus", null); __decorate([ Input(), __metadata("design:type", Array), __metadata("design:paramtypes", [Array]) ], DxFileUploaderComponent.prototype, "value", null); __decorate([ Input(), __metadata("design:type", Boolean), __metadata("design:paramtypes", [Boolean]) ], DxFileUploaderComponent.prototype, "visible", null); __decorate([ Input(), __metadata("design:type", Object), __metadata("design:paramtypes", [Object]) ], DxFileUploaderComponent.prototype, "width", null); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "onBeforeSend", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "onContentReady", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "onDisposing", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "onDropZoneEnter", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "onDropZoneLeave", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "onFilesUploaded", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "onInitialized", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "onOptionChanged", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "onProgress", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "onUploadAborted", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "onUploaded", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "onUploadError", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "onUploadStarted", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "onValueChanged", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "abortUploadChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "acceptChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "accessKeyChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "activeStateEnabledChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "allowCancelingChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "allowedFileExtensionsChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "chunkSizeChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "dialogTriggerChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "disabledChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "dropZoneChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "elementAttrChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "focusStateEnabledChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "heightChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "hintChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "hoverStateEnabledChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "inputAttrChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "invalidFileExtensionMessageChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "invalidMaxFileSizeMessageChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "invalidMinFileSizeMessageChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "isValidChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "labelTextChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "maxFileSizeChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "minFileSizeChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "multipleChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "nameChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "progressChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "readOnlyChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "readyToUploadMessageChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "rtlEnabledChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "selectButtonTextChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "showFileListChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "tabIndexChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "uploadAbortedMessageChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "uploadButtonTextChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "uploadChunkChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "uploadCustomDataChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "uploadedMessageChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "uploadFailedMessageChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "uploadFileChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "uploadHeadersChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "uploadMethodChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "uploadModeChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "uploadUrlChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "validationErrorChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "validationErrorsChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "validationStatusChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "valueChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "visibleChange", void 0); __decorate([ Output(), __metadata("design:type", EventEmitter) ], DxFileUploaderComponent.prototype, "widthChange", void 0); __decorate