devextreme-vue
Version:
DevExtreme Vue UI and Visualization Components
141 lines (139 loc) • 4.16 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 color_box_1 = require("devextreme/ui/color_box");
var component_1 = require("./core/component");
var configuration_component_1 = require("./core/configuration-component");
var DxColorBox = Vue.extend({
extends: component_1.DxComponent,
props: {
acceptCustomValue: Boolean,
accessKey: String,
activeStateEnabled: Boolean,
applyButtonText: String,
applyValueMode: String,
buttons: Array,
cancelButtonText: String,
deferRendering: Boolean,
disabled: Boolean,
dropDownButtonTemplate: {},
editAlphaChannel: Boolean,
elementAttr: Object,
fieldTemplate: {},
focusStateEnabled: Boolean,
height: [Function, Number, String],
hint: String,
hoverStateEnabled: Boolean,
inputAttr: Object,
isValid: Boolean,
keyStep: Number,
name: String,
onChange: Function,
onClosed: Function,
onCopy: Function,
onCut: Function,
onDisposing: Function,
onEnterKey: Function,
onFocusIn: Function,
onFocusOut: Function,
onInitialized: Function,
onInput: Function,
onKeyDown: Function,
onKeyPress: Function,
onKeyUp: Function,
onOpened: Function,
onOptionChanged: Function,
onPaste: Function,
onValueChanged: Function,
opened: Boolean,
placeholder: String,
readOnly: Boolean,
rtlEnabled: Boolean,
showClearButton: Boolean,
stylingMode: String,
tabIndex: Number,
text: String,
validationError: Object,
validationErrors: Array,
validationMessageMode: String,
validationStatus: String,
value: String,
visible: Boolean,
width: [Function, Number, String]
},
model: { prop: "value", event: "update:value" },
computed: {
instance: function () {
return this.$_instance;
}
},
beforeCreate: function () {
this.$_WidgetClass = color_box_1.default;
this.$_expectedChildren = {
button: { isCollectionItem: true, optionName: "buttons" }
};
}
});
exports.DxColorBox = DxColorBox;
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 = DxColorBox;