devextreme-vue
Version:
DevExtreme Vue UI and Visualization Components
123 lines (121 loc) • 3.72 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.DxItem = exports.DxBox = void 0;
const vue_1 = require("vue");
const index_1 = require("./core/index");
const box_1 = __importDefault(require("devextreme/ui/box"));
const index_2 = require("./core/index");
const componentConfig = {
props: {
align: String,
crossAlign: String,
dataSource: [Array, Object, String],
direction: String,
disabled: Boolean,
elementAttr: Object,
height: [Number, String],
hoverStateEnabled: Boolean,
itemHoldTimeout: Number,
items: Array,
itemTemplate: {},
onContentReady: Function,
onDisposing: Function,
onInitialized: Function,
onItemClick: Function,
onItemContextMenu: Function,
onItemHold: Function,
onItemRendered: Function,
onOptionChanged: Function,
rtlEnabled: Boolean,
visible: Boolean,
width: [Number, String]
},
emits: {
"update:isActive": null,
"update:hoveredElement": null,
"update:align": null,
"update:crossAlign": null,
"update:dataSource": null,
"update:direction": null,
"update:disabled": null,
"update:elementAttr": null,
"update:height": null,
"update:hoverStateEnabled": null,
"update:itemHoldTimeout": null,
"update:items": null,
"update:itemTemplate": null,
"update:onContentReady": null,
"update:onDisposing": null,
"update:onInitialized": null,
"update:onItemClick": null,
"update:onItemContextMenu": null,
"update:onItemHold": null,
"update:onItemRendered": null,
"update:onOptionChanged": null,
"update:rtlEnabled": null,
"update:visible": null,
"update:width": null,
},
computed: {
instance() {
return this.$_instance;
}
},
beforeCreate() {
this.$_WidgetClass = box_1.default;
this.$_hasAsyncTemplate = true;
this.$_expectedChildren = {
item: { isCollectionItem: true, optionName: "items" }
};
}
};
(0, index_1.prepareComponentConfig)(componentConfig);
const DxBox = (0, vue_1.defineComponent)(componentConfig);
exports.DxBox = DxBox;
const DxItemConfig = {
emits: {
"update:isActive": null,
"update:hoveredElement": null,
"update:baseSize": null,
"update:box": null,
"update:disabled": null,
"update:html": null,
"update:ratio": null,
"update:shrink": null,
"update:template": null,
"update:text": null,
"update:visible": null,
},
props: {
baseSize: [Number, String],
box: Object,
disabled: Boolean,
html: String,
ratio: Number,
shrink: Number,
template: {},
text: String,
visible: Boolean
}
};
(0, index_2.prepareConfigurationComponentConfig)(DxItemConfig);
const DxItem = (0, vue_1.defineComponent)(DxItemConfig);
exports.DxItem = DxItem;
DxItem.$_optionName = "items";
DxItem.$_isCollectionItem = true;
exports.default = DxBox;