devextreme-vue
Version:
DevExtreme Vue UI and Visualization Components
140 lines (138 loc) • 4.11 kB
JavaScript
/*!
* 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 text_box_1 = require("devextreme/ui/text_box");
var component_1 = require("./core/component");
var configuration_component_1 = require("./core/configuration-component");
var DxTextBox = Vue.extend({
extends: component_1.DxComponent,
props: {
accessKey: String,
activeStateEnabled: Boolean,
buttons: Array,
disabled: Boolean,
elementAttr: Object,
focusStateEnabled: Boolean,
height: [Function, Number, String],
hint: String,
hoverStateEnabled: Boolean,
inputAttr: Object,
isValid: Boolean,
mask: String,
maskChar: String,
maskInvalidMessage: String,
maskRules: Object,
maxLength: [Number, String],
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,
showMaskMode: String,
spellcheck: Boolean,
stylingMode: String,
tabIndex: Number,
text: String,
useMaskedValue: Boolean,
validationError: Object,
validationErrors: Array,
validationMessageMode: String,
validationStatus: String,
value: String,
valueChangeEvent: String,
visible: Boolean,
width: [Function, Number, String]
},
model: { prop: "value", event: "update:value" },
computed: {
instance: function () {
return this.$_instance;
}
},
beforeCreate: function () {
this.$_WidgetClass = text_box_1.default;
this.$_expectedChildren = {
button: { isCollectionItem: true, optionName: "buttons" }
};
}
});
exports.DxTextBox = DxTextBox;
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 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 = DxTextBox;