UNPKG

devextreme-vue

Version:

DevExtreme Vue UI and Visualization Components

177 lines (175 loc) 4.99 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 sparkline_1 = require("devextreme/viz/sparkline"); var component_1 = require("./core/component"); var configuration_component_1 = require("./core/configuration-component"); var DxSparkline = Vue.extend({ extends: component_1.DxComponent, props: { argumentField: String, barNegativeColor: String, barPositiveColor: String, dataSource: [Array, Object, String], disabled: Boolean, elementAttr: Object, firstLastColor: String, ignoreEmptyPoints: Boolean, lineColor: String, lineWidth: Number, lossColor: String, margin: Object, maxColor: String, maxValue: Number, minColor: String, minValue: Number, onDisposing: Function, onDrawn: Function, onExported: Function, onExporting: Function, onFileSaving: Function, onIncidentOccurred: Function, onInitialized: Function, onOptionChanged: Function, onTooltipHidden: Function, onTooltipShown: Function, pathModified: Boolean, pointColor: String, pointSize: Number, pointSymbol: String, rtlEnabled: Boolean, showFirstLast: Boolean, showMinMax: Boolean, size: Object, theme: String, tooltip: Object, type: String, valueField: String, winColor: String, winlossThreshold: Number }, computed: { instance: function () { return this.$_instance; } }, beforeCreate: function () { this.$_WidgetClass = sparkline_1.default; this.$_expectedChildren = { margin: { isCollectionItem: false, optionName: "margin" }, size: { isCollectionItem: false, optionName: "size" }, tooltip: { isCollectionItem: false, optionName: "tooltip" } }; } }); exports.DxSparkline = DxSparkline; var DxBorder = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { color: String, dashStyle: String, opacity: Number, visible: Boolean, width: Number } }); exports.DxBorder = DxBorder; DxBorder.$_optionName = "border"; var DxFont = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { color: String, family: String, opacity: Number, size: [Number, String], weight: Number } }); exports.DxFont = DxFont; DxFont.$_optionName = "font"; 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 DxMargin = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { bottom: Number, left: Number, right: Number, top: Number } }); exports.DxMargin = DxMargin; DxMargin.$_optionName = "margin"; var DxShadow = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { blur: Number, color: String, offsetX: Number, offsetY: Number, opacity: Number } }); exports.DxShadow = DxShadow; DxShadow.$_optionName = "shadow"; var DxSize = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { height: Number, width: Number } }); exports.DxSize = DxSize; DxSize.$_optionName = "size"; var DxTooltip = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { arrowLength: Number, border: Object, color: String, container: {}, contentTemplate: {}, cornerRadius: Number, customizeTooltip: Function, enabled: Boolean, font: Object, format: [Object, Function, String], opacity: Number, paddingLeftRight: Number, paddingTopBottom: Number, shadow: Object, zIndex: Number } }); exports.DxTooltip = DxTooltip; DxTooltip.$_optionName = "tooltip"; DxTooltip.$_expectedChildren = { border: { isCollectionItem: false, optionName: "border" }, font: { isCollectionItem: false, optionName: "font" }, format: { isCollectionItem: false, optionName: "format" }, shadow: { isCollectionItem: false, optionName: "shadow" } }; exports.default = DxSparkline;