UNPKG

devextreme-vue

Version:

DevExtreme Vue UI and Visualization Components

152 lines (150 loc) 4.47 kB
/*! * devextreme-vue * Version: 19.2.6 * Build date: Thu Jan 30 2020 * * Copyright (c) 2012 - 2020 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"; Object.defineProperty(exports, "__esModule", { value: true }); var VueType = require("vue"); var Vue = VueType.default || VueType; var number_box_1 = require("devextreme/ui/number_box"); var component_1 = require("./core/component"); var configuration_component_1 = require("./core/configuration-component"); var DxNumberBox = Vue.extend({ extends: component_1.DxComponent, props: { accessKey: String, activeStateEnabled: Boolean, buttons: Array, disabled: Boolean, elementAttr: Object, focusStateEnabled: Boolean, format: [Object, Function, String], height: [Function, Number, String], hint: String, hoverStateEnabled: Boolean, inputAttr: Object, invalidValueMessage: String, isValid: Boolean, max: Number, min: Number, mode: String, name: String, onChange: Function, onContentReady: Function, onCopy: Function, onCut: Function, onDisposing: Function, onEnterKey: Function, onFocusIn: Function, onFocusOut: Function, onInitialized: Function, onInput: Function, onKeyDown: Function, onKeyPress: Function, onKeyUp: Function, onOptionChanged: Function, onPaste: Function, onValueChanged: Function, placeholder: String, readOnly: Boolean, rtlEnabled: Boolean, showClearButton: Boolean, showSpinButtons: Boolean, step: Number, stylingMode: String, tabIndex: Number, text: String, useLargeSpinButtons: Boolean, validationError: Object, validationErrors: Array, validationMessageMode: String, validationStatus: String, value: Number, valueChangeEvent: String, visible: Boolean, width: [Function, Number, String] }, model: { prop: "value", event: "update:value" }, computed: { instance: function () { return this.$_instance; } }, beforeCreate: function () { this.$_WidgetClass = number_box_1.default; this.$_expectedChildren = { button: { isCollectionItem: true, optionName: "buttons" }, format: { isCollectionItem: false, optionName: "format" } }; } }); exports.DxNumberBox = DxNumberBox; var DxButton = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { location: String, name: String, options: Object } }); exports.DxButton = DxButton; DxButton.$_optionName = "buttons"; DxButton.$_isCollectionItem = true; DxButton.$_expectedChildren = { options: { isCollectionItem: false, optionName: "options" } }; var DxFormat = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { currency: String, formatter: Function, parser: Function, precision: Number, type: String } }); exports.DxFormat = DxFormat; DxFormat.$_optionName = "format"; var DxOptions = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { accessKey: String, activeStateEnabled: Boolean, bindingOptions: Object, disabled: Boolean, elementAttr: Object, focusStateEnabled: Boolean, height: [Function, Number, String], hint: String, hoverStateEnabled: Boolean, icon: String, onClick: Function, onContentReady: Function, onDisposing: Function, onFocusIn: Function, onFocusOut: Function, onInitialized: Function, onOptionChanged: Function, rtlEnabled: Boolean, stylingMode: String, tabIndex: Number, template: {}, text: String, type: String, useSubmitBehavior: Boolean, validationGroup: String, visible: Boolean, width: [Function, Number, String] } }); exports.DxOptions = DxOptions; DxOptions.$_optionName = "options"; exports.default = DxNumberBox;