devextreme-vue
Version:
DevExtreme Vue UI and Visualization Components
84 lines (82 loc) • 2.48 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
*/
import { defineComponent } from "vue";
import { prepareComponentConfig } from "./core/index";
import ValidationSummary from "devextreme/ui/validation_summary";
import { prepareConfigurationComponentConfig } from "./core/index";
const componentConfig = {
props: {
elementAttr: Object,
hoverStateEnabled: Boolean,
items: Array,
itemTemplate: {},
onContentReady: Function,
onDisposing: Function,
onInitialized: Function,
onItemClick: Function,
onOptionChanged: Function,
validationGroup: String
},
emits: {
"update:isActive": null,
"update:hoveredElement": null,
"update:elementAttr": null,
"update:hoverStateEnabled": null,
"update:items": null,
"update:itemTemplate": null,
"update:onContentReady": null,
"update:onDisposing": null,
"update:onInitialized": null,
"update:onItemClick": null,
"update:onOptionChanged": null,
"update:validationGroup": null,
},
computed: {
instance() {
return this.$_instance;
}
},
beforeCreate() {
this.$_WidgetClass = ValidationSummary;
this.$_hasAsyncTemplate = true;
this.$_expectedChildren = {
item: { isCollectionItem: true, optionName: "items" }
};
}
};
prepareComponentConfig(componentConfig);
const DxValidationSummary = defineComponent(componentConfig);
const DxItemConfig = {
emits: {
"update:isActive": null,
"update:hoveredElement": null,
"update:disabled": null,
"update:html": null,
"update:template": null,
"update:text": null,
"update:visible": null,
},
props: {
disabled: Boolean,
html: String,
template: {},
text: String,
visible: Boolean
}
};
prepareConfigurationComponentConfig(DxItemConfig);
const DxItem = defineComponent(DxItemConfig);
DxItem.$_optionName = "items";
DxItem.$_isCollectionItem = true;
export default DxValidationSummary;
export { DxValidationSummary, DxItem };