UNPKG

devextreme-vue

Version:

DevExtreme Vue UI and Visualization Components

126 lines (124 loc) 3.79 kB
/*! * 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 Stepper from "devextreme/ui/stepper"; import { prepareConfigurationComponentConfig } from "./core/index"; const componentConfig = { props: { accessKey: String, activeStateEnabled: Boolean, dataSource: [Array, Object, String], disabled: Boolean, elementAttr: Object, focusStateEnabled: Boolean, height: [Number, String], hint: String, hoverStateEnabled: Boolean, items: Array, itemTemplate: {}, linear: Boolean, onDisposing: Function, onInitialized: Function, onItemClick: Function, onItemContextMenu: Function, onItemRendered: Function, onOptionChanged: Function, onSelectionChanged: Function, onSelectionChanging: Function, orientation: String, rtlEnabled: Boolean, selectedIndex: Number, selectedItem: {}, selectOnFocus: Boolean, tabIndex: Number, visible: Boolean, width: [Number, String] }, emits: { "update:isActive": null, "update:hoveredElement": null, "update:accessKey": null, "update:activeStateEnabled": null, "update:dataSource": null, "update:disabled": null, "update:elementAttr": null, "update:focusStateEnabled": null, "update:height": null, "update:hint": null, "update:hoverStateEnabled": null, "update:items": null, "update:itemTemplate": null, "update:linear": null, "update:onDisposing": null, "update:onInitialized": null, "update:onItemClick": null, "update:onItemContextMenu": null, "update:onItemRendered": null, "update:onOptionChanged": null, "update:onSelectionChanged": null, "update:onSelectionChanging": null, "update:orientation": null, "update:rtlEnabled": null, "update:selectedIndex": null, "update:selectedItem": null, "update:selectOnFocus": null, "update:tabIndex": null, "update:visible": null, "update:width": null, }, computed: { instance() { return this.$_instance; } }, beforeCreate() { this.$_WidgetClass = Stepper; this.$_hasAsyncTemplate = true; this.$_expectedChildren = { item: { isCollectionItem: true, optionName: "items" } }; } }; prepareComponentConfig(componentConfig); const DxStepper = defineComponent(componentConfig); const DxItemConfig = { emits: { "update:isActive": null, "update:hoveredElement": null, "update:disabled": null, "update:hint": null, "update:icon": null, "update:isValid": null, "update:label": null, "update:optional": null, "update:template": null, "update:text": null, }, props: { disabled: Boolean, hint: String, icon: String, isValid: Boolean, label: String, optional: Boolean, template: {}, text: String } }; prepareConfigurationComponentConfig(DxItemConfig); const DxItem = defineComponent(DxItemConfig); DxItem.$_optionName = "items"; DxItem.$_isCollectionItem = true; export default DxStepper; export { DxStepper, DxItem };