UNPKG

devextreme-vue

Version:

DevExtreme Vue UI and Visualization Components

80 lines (78 loc) 2.37 kB
/*! * devextreme-vue * Version: 19.2.6 * Build date: Thu Jan 30 2020 * * Copyright (c) 2012 - 2020 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 */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var VueType = require("vue"); var Vue = VueType.default || VueType; var sortable_1 = require("devextreme/ui/sortable"); var component_1 = require("./core/component"); var configuration_component_1 = require("./core/configuration-component"); var DxSortable = Vue.extend({ extends: component_1.DxComponent, props: { allowDropInsideItem: Boolean, allowReordering: Boolean, autoScroll: Boolean, boundary: {}, container: {}, cursorOffset: [Object, String], data: {}, dragDirection: String, dragTemplate: {}, dropFeedbackMode: String, elementAttr: Object, filter: String, group: String, handle: String, height: [Function, Number, String], itemOrientation: String, moveItemOnDrop: Boolean, onAdd: Function, onDisposing: Function, onDragChange: Function, onDragEnd: Function, onDragMove: Function, onDragStart: Function, onInitialized: Function, onOptionChanged: Function, onRemove: Function, onReorder: Function, rtlEnabled: Boolean, scrollSensitivity: Number, scrollSpeed: Number, width: [Function, Number, String] }, computed: { instance: function () { return this.$_instance; } }, beforeCreate: function () { this.$_hasTranscludedContent = true; this.$_WidgetClass = sortable_1.default; this.$_expectedChildren = { cursorOffset: { isCollectionItem: false, optionName: "cursorOffset" } }; } }); exports.DxSortable = DxSortable; var DxCursorOffset = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { x: Number, y: Number } }); exports.DxCursorOffset = DxCursorOffset; DxCursorOffset.$_optionName = "cursorOffset"; exports.default = DxSortable;