devextreme-vue
Version:
DevExtreme Vue UI and Visualization Components
172 lines (170 loc) • 5.69 kB
JavaScript
/*!
* devextreme-vue
* Version: 25.1.5
* Build date: Wed Sep 03 2025
*
* Copyright (c) 2012 - 2025 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-vue
*/
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.DxFileUploader = void 0;
const vue_1 = require("vue");
const index_1 = require("./core/index");
const file_uploader_1 = __importDefault(require("devextreme/ui/file_uploader"));
const componentConfig = {
props: {
abortUpload: Function,
accept: String,
accessKey: String,
activeStateEnabled: Boolean,
allowCanceling: Boolean,
allowedFileExtensions: Array,
chunkSize: Number,
dialogTrigger: {},
disabled: Boolean,
dropZone: {},
elementAttr: Object,
focusStateEnabled: Boolean,
height: [Number, String],
hint: String,
hoverStateEnabled: Boolean,
inputAttr: {},
invalidFileExtensionMessage: String,
invalidMaxFileSizeMessage: String,
invalidMinFileSizeMessage: String,
isDirty: Boolean,
isValid: Boolean,
labelText: String,
maxFileSize: Number,
minFileSize: Number,
multiple: Boolean,
name: String,
onBeforeSend: Function,
onContentReady: Function,
onDisposing: Function,
onDropZoneEnter: Function,
onDropZoneLeave: Function,
onFilesUploaded: Function,
onInitialized: Function,
onOptionChanged: Function,
onProgress: Function,
onUploadAborted: Function,
onUploaded: Function,
onUploadError: Function,
onUploadStarted: Function,
onValueChanged: Function,
progress: Number,
readOnly: Boolean,
readyToUploadMessage: String,
rtlEnabled: Boolean,
selectButtonText: String,
showFileList: Boolean,
tabIndex: Number,
uploadAbortedMessage: String,
uploadButtonText: String,
uploadChunk: Function,
uploadCustomData: {},
uploadedMessage: String,
uploadFailedMessage: String,
uploadFile: Function,
uploadHeaders: {},
uploadMethod: String,
uploadMode: String,
uploadUrl: String,
validationError: {},
validationErrors: Array,
validationStatus: String,
value: Array,
visible: Boolean,
width: [Number, String]
},
emits: {
"update:isActive": null,
"update:hoveredElement": null,
"update:abortUpload": null,
"update:accept": null,
"update:accessKey": null,
"update:activeStateEnabled": null,
"update:allowCanceling": null,
"update:allowedFileExtensions": null,
"update:chunkSize": null,
"update:dialogTrigger": null,
"update:disabled": null,
"update:dropZone": null,
"update:elementAttr": null,
"update:focusStateEnabled": null,
"update:height": null,
"update:hint": null,
"update:hoverStateEnabled": null,
"update:inputAttr": null,
"update:invalidFileExtensionMessage": null,
"update:invalidMaxFileSizeMessage": null,
"update:invalidMinFileSizeMessage": null,
"update:isDirty": null,
"update:isValid": null,
"update:labelText": null,
"update:maxFileSize": null,
"update:minFileSize": null,
"update:multiple": null,
"update:name": null,
"update:onBeforeSend": null,
"update:onContentReady": null,
"update:onDisposing": null,
"update:onDropZoneEnter": null,
"update:onDropZoneLeave": null,
"update:onFilesUploaded": null,
"update:onInitialized": null,
"update:onOptionChanged": null,
"update:onProgress": null,
"update:onUploadAborted": null,
"update:onUploaded": null,
"update:onUploadError": null,
"update:onUploadStarted": null,
"update:onValueChanged": null,
"update:progress": null,
"update:readOnly": null,
"update:readyToUploadMessage": null,
"update:rtlEnabled": null,
"update:selectButtonText": null,
"update:showFileList": null,
"update:tabIndex": null,
"update:uploadAbortedMessage": null,
"update:uploadButtonText": null,
"update:uploadChunk": null,
"update:uploadCustomData": null,
"update:uploadedMessage": null,
"update:uploadFailedMessage": null,
"update:uploadFile": null,
"update:uploadHeaders": null,
"update:uploadMethod": null,
"update:uploadMode": null,
"update:uploadUrl": null,
"update:validationError": null,
"update:validationErrors": null,
"update:validationStatus": null,
"update:value": null,
"update:visible": null,
"update:width": null,
},
computed: {
instance() {
return this.$_instance;
}
},
beforeCreate() {
this.$_WidgetClass = file_uploader_1.default;
this.$_hasAsyncTemplate = true;
}
};
(0, index_1.prepareComponentConfig)(componentConfig);
const DxFileUploader = (0, vue_1.defineComponent)(componentConfig);
exports.DxFileUploader = DxFileUploader;
exports.default = DxFileUploader;