UNPKG

devextreme-vue

Version:

DevExtreme Vue UI and Visualization Components

127 lines (125 loc) 3.94 kB
/*! * devextreme-vue * Version: 25.1.6 * Build date: Mon Oct 13 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 */ "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.DxItem = exports.DxButtonGroup = void 0; const vue_1 = require("vue"); const index_1 = require("./core/index"); const button_group_1 = __importDefault(require("devextreme/ui/button_group")); const index_2 = require("./core/index"); const componentConfig = { props: { accessKey: String, activeStateEnabled: Boolean, buttonTemplate: {}, disabled: Boolean, elementAttr: Object, focusStateEnabled: Boolean, height: [Number, String], hint: String, hoverStateEnabled: Boolean, items: Array, keyExpr: [Function, String], onContentReady: Function, onDisposing: Function, onInitialized: Function, onItemClick: Function, onOptionChanged: Function, onSelectionChanged: Function, rtlEnabled: Boolean, selectedItemKeys: Array, selectedItems: Array, selectionMode: String, stylingMode: String, tabIndex: Number, visible: Boolean, width: [Number, String] }, emits: { "update:isActive": null, "update:hoveredElement": null, "update:accessKey": null, "update:activeStateEnabled": null, "update:buttonTemplate": null, "update:disabled": null, "update:elementAttr": null, "update:focusStateEnabled": null, "update:height": null, "update:hint": null, "update:hoverStateEnabled": null, "update:items": null, "update:keyExpr": null, "update:onContentReady": null, "update:onDisposing": null, "update:onInitialized": null, "update:onItemClick": null, "update:onOptionChanged": null, "update:onSelectionChanged": null, "update:rtlEnabled": null, "update:selectedItemKeys": null, "update:selectedItems": null, "update:selectionMode": null, "update:stylingMode": null, "update:tabIndex": null, "update:visible": null, "update:width": null, }, computed: { instance() { return this.$_instance; } }, beforeCreate() { this.$_WidgetClass = button_group_1.default; this.$_hasAsyncTemplate = true; this.$_expectedChildren = { item: { isCollectionItem: true, optionName: "items" } }; } }; (0, index_1.prepareComponentConfig)(componentConfig); const DxButtonGroup = (0, vue_1.defineComponent)(componentConfig); exports.DxButtonGroup = DxButtonGroup; const DxItemConfig = { emits: { "update:isActive": null, "update:hoveredElement": null, "update:disabled": null, "update:elementAttr": null, "update:hint": null, "update:icon": null, "update:template": null, "update:text": null, "update:type": null, "update:visible": null, }, props: { disabled: Boolean, elementAttr: Object, hint: String, icon: String, template: {}, text: String, type: 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 = DxButtonGroup;