UNPKG

devextreme-vue

Version:

DevExtreme Vue UI and Visualization Components

211 lines (209 loc) • 6.66 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 scheduler_1 = require("devextreme/ui/scheduler"); var component_1 = require("./core/component"); var configuration_component_1 = require("./core/configuration-component"); var DxScheduler = Vue.extend({ extends: component_1.DxComponent, props: { accessKey: String, adaptivityEnabled: Boolean, allDayExpr: String, appointmentCollectorTemplate: {}, appointmentDragging: Object, appointmentTemplate: {}, appointmentTooltipTemplate: {}, cellDuration: Number, crossScrollingEnabled: Boolean, currentDate: {}, currentView: String, customizeDateNavigatorText: Function, dataCellTemplate: {}, dataSource: [Array, Object, String], dateCellTemplate: {}, dateSerializationFormat: String, descriptionExpr: String, disabled: Boolean, editing: [Boolean, Object], elementAttr: Object, endDateExpr: String, endDateTimeZoneExpr: String, endDayHour: Number, firstDayOfWeek: { type: Number, validator: function (v) { return typeof (v) !== "number" || [ 0, 1, 2, 3, 4, 5, 6 ].indexOf(v) !== -1; } }, focusStateEnabled: Boolean, groupByDate: Boolean, groups: Array, height: [Function, Number, String], hint: String, indicatorUpdateInterval: Number, max: {}, maxAppointmentsPerCell: [Number, String], min: {}, noDataText: String, onAppointmentAdded: Function, onAppointmentAdding: Function, onAppointmentClick: [Function, String], onAppointmentContextMenu: [Function, String], onAppointmentDblClick: [Function, String], onAppointmentDeleted: Function, onAppointmentDeleting: Function, onAppointmentFormOpening: Function, onAppointmentRendered: Function, onAppointmentUpdated: Function, onAppointmentUpdating: Function, onCellClick: [Function, String], onCellContextMenu: [Function, String], onContentReady: Function, onDisposing: Function, onInitialized: Function, onOptionChanged: Function, recurrenceEditMode: String, recurrenceExceptionExpr: String, recurrenceRuleExpr: String, remoteFiltering: Boolean, resourceCellTemplate: {}, resources: Array, rtlEnabled: Boolean, selectedCellData: Array, shadeUntilCurrentTime: Boolean, showAllDayPanel: Boolean, showCurrentTimeIndicator: Boolean, startDateExpr: String, startDateTimeZoneExpr: String, startDayHour: Number, tabIndex: Number, textExpr: String, timeCellTemplate: {}, timeZone: String, useDropDownViewSwitcher: Boolean, views: Array, visible: Boolean, width: [Function, Number, String] }, computed: { instance: function () { return this.$_instance; } }, beforeCreate: function () { this.$_WidgetClass = scheduler_1.default; this.$_expectedChildren = { appointmentDragging: { isCollectionItem: false, optionName: "appointmentDragging" }, editing: { isCollectionItem: false, optionName: "editing" }, resource: { isCollectionItem: true, optionName: "resources" }, view: { isCollectionItem: true, optionName: "views" } }; } }); exports.DxScheduler = DxScheduler; var DxAppointmentDragging = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { autoScroll: Boolean, data: {}, group: String, onAdd: Function, onDragEnd: Function, onDragMove: Function, onDragStart: Function, onRemove: Function, scrollSensitivity: Number, scrollSpeed: Number } }); exports.DxAppointmentDragging = DxAppointmentDragging; DxAppointmentDragging.$_optionName = "appointmentDragging"; var DxEditing = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { allowAdding: Boolean, allowDeleting: Boolean, allowDragging: Boolean, allowResizing: Boolean, allowUpdating: Boolean } }); exports.DxEditing = DxEditing; DxEditing.$_optionName = "editing"; var DxResource = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { allowMultiple: Boolean, colorExpr: String, dataSource: [Array, Object, String], displayExpr: [Function, String], fieldExpr: String, label: String, useColorAsDefault: Boolean, valueExpr: [Function, String] } }); exports.DxResource = DxResource; DxResource.$_optionName = "resources"; DxResource.$_isCollectionItem = true; var DxView = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { agendaDuration: Number, appointmentCollectorTemplate: {}, appointmentTemplate: {}, appointmentTooltipTemplate: {}, cellDuration: Number, dataCellTemplate: {}, dateCellTemplate: {}, dropDownAppointmentTemplate: {}, endDayHour: Number, firstDayOfWeek: { type: Number, validator: function (v) { return typeof (v) !== "number" || [ 0, 1, 2, 3, 4, 5, 6 ].indexOf(v) !== -1; } }, groupByDate: Boolean, groupOrientation: String, groups: Array, intervalCount: Number, maxAppointmentsPerCell: [Number, String], name: String, resourceCellTemplate: {}, startDate: {}, startDayHour: Number, timeCellTemplate: {}, type: String } }); exports.DxView = DxView; DxView.$_optionName = "views"; DxView.$_isCollectionItem = true; exports.default = DxScheduler;