UNPKG

devextreme-vue

Version:

DevExtreme Vue UI and Visualization Components

587 lines (585 loc) • 18.4 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 pie_chart_1 = require("devextreme/viz/pie_chart"); var component_1 = require("./core/component"); var configuration_component_1 = require("./core/configuration-component"); var DxPieChart = Vue.extend({ extends: component_1.DxComponent, props: { adaptiveLayout: Object, animation: [Boolean, Object], centerTemplate: {}, commonSeriesSettings: Object, customizeLabel: Function, customizePoint: Function, dataSource: [Array, Object, String], diameter: Number, disabled: Boolean, elementAttr: Object, export: Object, innerRadius: Number, legend: Object, loadingIndicator: Object, margin: Object, minDiameter: Number, onDisposing: Function, onDone: Function, onDrawn: Function, onExported: Function, onExporting: Function, onFileSaving: Function, onIncidentOccurred: Function, onInitialized: Function, onLegendClick: [Function, String], onOptionChanged: Function, onPointClick: [Function, String], onPointHoverChanged: Function, onPointSelectionChanged: Function, onTooltipHidden: Function, onTooltipShown: Function, palette: [Array, String], paletteExtensionMode: String, pathModified: Boolean, pointSelectionMode: String, redrawOnResize: Boolean, resolveLabelOverlapping: String, rtlEnabled: Boolean, segmentsDirection: String, series: [Array, Object], seriesTemplate: Object, size: Object, sizeGroup: String, startAngle: Number, theme: String, title: [Object, String], tooltip: Object, type: String }, computed: { instance: function () { return this.$_instance; } }, beforeCreate: function () { this.$_WidgetClass = pie_chart_1.default; this.$_expectedChildren = { adaptiveLayout: { isCollectionItem: false, optionName: "adaptiveLayout" }, animation: { isCollectionItem: false, optionName: "animation" }, commonSeriesSettings: { isCollectionItem: false, optionName: "commonSeriesSettings" }, export: { isCollectionItem: false, optionName: "export" }, legend: { isCollectionItem: false, optionName: "legend" }, loadingIndicator: { isCollectionItem: false, optionName: "loadingIndicator" }, margin: { isCollectionItem: false, optionName: "margin" }, pieChartTitle: { isCollectionItem: false, optionName: "title" }, series: { isCollectionItem: true, optionName: "series" }, seriesTemplate: { isCollectionItem: false, optionName: "seriesTemplate" }, size: { isCollectionItem: false, optionName: "size" }, title: { isCollectionItem: false, optionName: "title" }, tooltip: { isCollectionItem: false, optionName: "tooltip" } }; } }); exports.DxPieChart = DxPieChart; var DxAdaptiveLayout = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { height: Number, keepLabels: Boolean, width: Number } }); exports.DxAdaptiveLayout = DxAdaptiveLayout; DxAdaptiveLayout.$_optionName = "adaptiveLayout"; var DxAnimation = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { duration: Number, easing: String, enabled: Boolean, maxPointCountSupported: Number } }); exports.DxAnimation = DxAnimation; DxAnimation.$_optionName = "animation"; var DxArgumentFormat = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { currency: String, formatter: Function, parser: Function, precision: Number, type: String } }); exports.DxArgumentFormat = DxArgumentFormat; DxArgumentFormat.$_optionName = "argumentFormat"; var DxBorder = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { color: String, cornerRadius: Number, dashStyle: String, opacity: Number, visible: Boolean, width: Number } }); exports.DxBorder = DxBorder; DxBorder.$_optionName = "border"; var DxCommonSeriesSettings = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { argumentField: String, argumentType: String, border: Object, color: String, hoverMode: String, hoverStyle: Object, label: Object, maxLabelCount: Number, minSegmentSize: Number, selectionMode: String, selectionStyle: Object, smallValuesGrouping: Object, tagField: String, valueField: String } }); exports.DxCommonSeriesSettings = DxCommonSeriesSettings; DxCommonSeriesSettings.$_optionName = "commonSeriesSettings"; DxCommonSeriesSettings.$_expectedChildren = { border: { isCollectionItem: false, optionName: "border" }, hoverStyle: { isCollectionItem: false, optionName: "hoverStyle" }, label: { isCollectionItem: false, optionName: "label" }, selectionStyle: { isCollectionItem: false, optionName: "selectionStyle" }, seriesBorder: { isCollectionItem: false, optionName: "border" }, smallValuesGrouping: { isCollectionItem: false, optionName: "smallValuesGrouping" } }; var DxConnector = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { color: String, visible: Boolean, width: Number } }); exports.DxConnector = DxConnector; DxConnector.$_optionName = "connector"; var DxExport = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { backgroundColor: String, enabled: Boolean, fileName: String, formats: Array, margin: Number, printingEnabled: Boolean, proxyUrl: String, svgToCanvas: Function } }); exports.DxExport = DxExport; DxExport.$_optionName = "export"; 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 DxHatching = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { direction: String, opacity: Number, step: Number, width: Number } }); exports.DxHatching = DxHatching; DxHatching.$_optionName = "hatching"; var DxHoverStyle = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { border: Object, color: String, hatching: Object } }); exports.DxHoverStyle = DxHoverStyle; DxHoverStyle.$_optionName = "hoverStyle"; DxHoverStyle.$_expectedChildren = { border: { isCollectionItem: false, optionName: "border" }, hatching: { isCollectionItem: false, optionName: "hatching" }, seriesBorder: { isCollectionItem: false, optionName: "border" } }; var DxLabel = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { argumentFormat: [Object, Function, String], backgroundColor: String, border: Object, connector: Object, customizeText: Function, font: Object, format: [Object, Function, String], position: String, radialOffset: Number, rotationAngle: Number, textOverflow: String, visible: Boolean, wordWrap: String } }); exports.DxLabel = DxLabel; DxLabel.$_optionName = "label"; DxLabel.$_expectedChildren = { argumentFormat: { isCollectionItem: false, optionName: "argumentFormat" }, border: { isCollectionItem: false, optionName: "border" }, connector: { isCollectionItem: false, optionName: "connector" }, font: { isCollectionItem: false, optionName: "font" }, format: { isCollectionItem: false, optionName: "format" }, seriesBorder: { isCollectionItem: false, optionName: "border" } }; var DxLegend = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { backgroundColor: String, border: Object, columnCount: Number, columnItemSpacing: Number, customizeHint: Function, customizeItems: Function, customizeText: Function, font: Object, horizontalAlignment: String, hoverMode: String, itemsAlignment: String, itemTextPosition: String, margin: [Number, Object], markerSize: Number, markerTemplate: {}, orientation: String, paddingLeftRight: Number, paddingTopBottom: Number, rowCount: Number, rowItemSpacing: Number, title: [Object, String], verticalAlignment: String, visible: Boolean } }); exports.DxLegend = DxLegend; DxLegend.$_optionName = "legend"; DxLegend.$_expectedChildren = { border: { isCollectionItem: false, optionName: "border" }, font: { isCollectionItem: false, optionName: "font" }, legendBorder: { isCollectionItem: false, optionName: "border" }, legendTitle: { isCollectionItem: false, optionName: "title" }, margin: { isCollectionItem: false, optionName: "margin" }, title: { isCollectionItem: false, optionName: "title" } }; var DxLegendBorder = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { color: String, cornerRadius: Number, dashStyle: String, opacity: Number, visible: Boolean, width: Number } }); exports.DxLegendBorder = DxLegendBorder; DxLegendBorder.$_optionName = "border"; var DxLegendTitle = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { font: Object, horizontalAlignment: String, margin: Object, placeholderSize: Number, subtitle: [Object, String], text: String, verticalAlignment: String } }); exports.DxLegendTitle = DxLegendTitle; DxLegendTitle.$_optionName = "title"; DxLegendTitle.$_expectedChildren = { font: { isCollectionItem: false, optionName: "font" }, legendTitleSubtitle: { isCollectionItem: false, optionName: "subtitle" }, margin: { isCollectionItem: false, optionName: "margin" }, subtitle: { isCollectionItem: false, optionName: "subtitle" } }; var DxLegendTitleSubtitle = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { font: Object, offset: Number, text: String } }); exports.DxLegendTitleSubtitle = DxLegendTitleSubtitle; DxLegendTitleSubtitle.$_optionName = "subtitle"; DxLegendTitleSubtitle.$_expectedChildren = { font: { isCollectionItem: false, optionName: "font" } }; var DxLoadingIndicator = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { backgroundColor: String, enabled: Boolean, font: Object, show: Boolean, text: String } }); exports.DxLoadingIndicator = DxLoadingIndicator; DxLoadingIndicator.$_optionName = "loadingIndicator"; DxLoadingIndicator.$_expectedChildren = { font: { isCollectionItem: false, optionName: "font" } }; 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 DxPieChartTitle = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { font: Object, horizontalAlignment: String, margin: [Number, Object], placeholderSize: Number, subtitle: [Object, String], text: String, textOverflow: String, verticalAlignment: String, wordWrap: String } }); exports.DxPieChartTitle = DxPieChartTitle; DxPieChartTitle.$_optionName = "title"; DxPieChartTitle.$_expectedChildren = { font: { isCollectionItem: false, optionName: "font" }, margin: { isCollectionItem: false, optionName: "margin" }, pieChartTitleSubtitle: { isCollectionItem: false, optionName: "subtitle" }, subtitle: { isCollectionItem: false, optionName: "subtitle" } }; var DxPieChartTitleSubtitle = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { font: Object, offset: Number, text: String, textOverflow: String, wordWrap: String } }); exports.DxPieChartTitleSubtitle = DxPieChartTitleSubtitle; DxPieChartTitleSubtitle.$_optionName = "subtitle"; DxPieChartTitleSubtitle.$_expectedChildren = { font: { isCollectionItem: false, optionName: "font" } }; var DxSelectionStyle = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { border: Object, color: String, hatching: Object } }); exports.DxSelectionStyle = DxSelectionStyle; DxSelectionStyle.$_optionName = "selectionStyle"; DxSelectionStyle.$_expectedChildren = { border: { isCollectionItem: false, optionName: "border" }, hatching: { isCollectionItem: false, optionName: "hatching" }, seriesBorder: { isCollectionItem: false, optionName: "border" } }; var DxSeries = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { argumentField: String, argumentType: String, border: Object, color: String, hoverMode: String, hoverStyle: Object, label: Object, maxLabelCount: Number, minSegmentSize: Number, name: String, selectionMode: String, selectionStyle: Object, smallValuesGrouping: Object, tag: {}, tagField: String, valueField: String } }); exports.DxSeries = DxSeries; DxSeries.$_optionName = "series"; DxSeries.$_isCollectionItem = true; var DxSeriesBorder = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { color: String, dashStyle: String, visible: Boolean, width: Number } }); exports.DxSeriesBorder = DxSeriesBorder; DxSeriesBorder.$_optionName = "border"; var DxSeriesTemplate = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { customizeSeries: Function, nameField: String } }); exports.DxSeriesTemplate = DxSeriesTemplate; DxSeriesTemplate.$_optionName = "seriesTemplate"; 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 DxSmallValuesGrouping = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { groupName: String, mode: String, threshold: Number, topCount: Number } }); exports.DxSmallValuesGrouping = DxSmallValuesGrouping; DxSmallValuesGrouping.$_optionName = "smallValuesGrouping"; var DxSubtitle = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { font: Object, offset: Number, text: String, textOverflow: String, wordWrap: String } }); exports.DxSubtitle = DxSubtitle; DxSubtitle.$_optionName = "subtitle"; var DxTitle = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { font: Object, horizontalAlignment: String, margin: Object, placeholderSize: Number, subtitle: [Object, String], text: String, textOverflow: String, verticalAlignment: String, wordWrap: String } }); exports.DxTitle = DxTitle; DxTitle.$_optionName = "title"; var DxTooltip = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { argumentFormat: [Object, Function, String], 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, shared: Boolean, zIndex: Number } }); exports.DxTooltip = DxTooltip; DxTooltip.$_optionName = "tooltip"; DxTooltip.$_expectedChildren = { argumentFormat: { isCollectionItem: false, optionName: "argumentFormat" }, border: { isCollectionItem: false, optionName: "border" }, font: { isCollectionItem: false, optionName: "font" }, format: { isCollectionItem: false, optionName: "format" }, shadow: { isCollectionItem: false, optionName: "shadow" }, tooltipBorder: { isCollectionItem: false, optionName: "border" } }; var DxTooltipBorder = Vue.extend({ extends: configuration_component_1.DxConfiguration, props: { color: String, dashStyle: String, opacity: Number, visible: Boolean, width: Number } }); exports.DxTooltipBorder = DxTooltipBorder; DxTooltipBorder.$_optionName = "border"; exports.default = DxPieChart;