devextreme-vue
Version:
DevExtreme Vue UI and Visualization Components
125 lines (123 loc) • 4.08 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.DxCalendar = void 0;
const vue_1 = require("vue");
const index_1 = require("./core/index");
const calendar_1 = __importDefault(require("devextreme/ui/calendar"));
const componentConfig = {
props: {
accessKey: String,
activeStateEnabled: Boolean,
cellTemplate: {},
dateSerializationFormat: String,
disabled: Boolean,
disabledDates: [Array, Function],
elementAttr: Object,
firstDayOfWeek: Number,
focusStateEnabled: Boolean,
height: [Number, String],
hint: String,
hoverStateEnabled: Boolean,
isDirty: Boolean,
isValid: Boolean,
max: [Date, Number, String],
maxZoomLevel: String,
min: [Date, Number, String],
minZoomLevel: String,
name: String,
onDisposing: Function,
onInitialized: Function,
onOptionChanged: Function,
onValueChanged: Function,
readOnly: Boolean,
rtlEnabled: Boolean,
selectionMode: String,
selectWeekOnClick: Boolean,
showTodayButton: Boolean,
showWeekNumbers: Boolean,
tabIndex: Number,
validationError: {},
validationErrors: Array,
validationMessageMode: String,
validationMessagePosition: String,
validationStatus: String,
value: [Array, Date, Number, String],
visible: Boolean,
weekNumberRule: String,
width: [Number, String],
zoomLevel: String
},
emits: {
"update:isActive": null,
"update:hoveredElement": null,
"update:accessKey": null,
"update:activeStateEnabled": null,
"update:cellTemplate": null,
"update:dateSerializationFormat": null,
"update:disabled": null,
"update:disabledDates": null,
"update:elementAttr": null,
"update:firstDayOfWeek": null,
"update:focusStateEnabled": null,
"update:height": null,
"update:hint": null,
"update:hoverStateEnabled": null,
"update:isDirty": null,
"update:isValid": null,
"update:max": null,
"update:maxZoomLevel": null,
"update:min": null,
"update:minZoomLevel": null,
"update:name": null,
"update:onDisposing": null,
"update:onInitialized": null,
"update:onOptionChanged": null,
"update:onValueChanged": null,
"update:readOnly": null,
"update:rtlEnabled": null,
"update:selectionMode": null,
"update:selectWeekOnClick": null,
"update:showTodayButton": null,
"update:showWeekNumbers": null,
"update:tabIndex": null,
"update:validationError": null,
"update:validationErrors": null,
"update:validationMessageMode": null,
"update:validationMessagePosition": null,
"update:validationStatus": null,
"update:value": null,
"update:visible": null,
"update:weekNumberRule": null,
"update:width": null,
"update:zoomLevel": null,
},
model: { prop: "value", event: "update:value" },
computed: {
instance() {
return this.$_instance;
}
},
beforeCreate() {
this.$_WidgetClass = calendar_1.default;
this.$_hasAsyncTemplate = true;
}
};
(0, index_1.prepareComponentConfig)(componentConfig);
const DxCalendar = (0, vue_1.defineComponent)(componentConfig);
exports.DxCalendar = DxCalendar;
exports.default = DxCalendar;