UNPKG

prodap-chatbot-domain

Version:

Classes utilizadas na resposta de todas as Intents do Assistente Virtual

68 lines 2.78 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AdditionalLabelDestination = void 0; const Message_1 = require("../base/Message"); const MessageTypes_1 = require("../types/MessageTypes"); var AdditionalLabelDestination; (function (AdditionalLabelDestination) { AdditionalLabelDestination["ALL"] = "ALL"; AdditionalLabelDestination["LABEL"] = "LABEL"; AdditionalLabelDestination["XAXIS"] = "XAXIS"; AdditionalLabelDestination["YAXIS"] = "YAXIS"; })(AdditionalLabelDestination || (exports.AdditionalLabelDestination = AdditionalLabelDestination = {})); class ChartAbstract extends Message_1.default { constructor(props, chartType, text) { super(text, MessageTypes_1.default.CHART); this.actions = []; this.additionalLabel = props.additionalLabel; this.animate = props.animate; this.badgeStyle = props.badgeStyle; this.buttons = props.buttons; this.chartStyle = props.chartStyle; this.chartText = props.chartText; this.chartType = chartType; this.color = props.color; this.customLabel = props.customLabel; this.dataType = props.dataType; this.extraSubtitle = props.extraSubtitle; this.footer = props.footer; this.hasCollect = props.hasCollect; this.height = props.height; this.horizontalScroll = props.horizontalScroll; this.isClickable = props.isClickable; this.key = props.key; this.label = props.label; this.labelComponent = props.labelComponent; this.legendStyle = props.legendStyle; this.legendTitle = props.legendTitle; this.showAxisX = props.showAxisX; this.showAxisY = props.showAxisY; this.showLegend = props.showLegend; this.style = props.style; this.subLabel = props.subLabel; this.subtitle = props.subtitle; this.textMetric = props.textMetric; this.title = props.title; this.titleAxisX = props.titleAxisX; this.updateAt = props.updateAt; this.url = props.url; this.value = props.value; this.verticalScroll = props.verticalScroll; this.width = props.width; this.yMax = props.yMax; this.yMin = props.yMin; this.xAxisStyle = props.xAxisStyle; this.yAxisStyle = props.yAxisStyle; this.intent = props.intent; this.hasInfo = props.hasInfo; this.xAxisValues = props.xAxisValues; this.xAxisBolders = props.xAxisBolders; this.subLabelXAxis = props.subLabelXAxis; } addAction(...actions) { this.actions = this.actions.concat(actions); return this; } } exports.default = ChartAbstract; //# sourceMappingURL=ChartAbstract.js.map