/**
 * @fileoverview added by tsickle
 * Generated from: lib/ui-components/tap-variable-chart/tap-variable-chart.component.ts
 * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { __decorate, __extends } from "tslib";
import { Component, Input } from '@angular/core';
import { AppGenComponent } from '../../metadata/decorators';
import { ChartCardComponent } from '../chart-card/chart-card.component';
var TapVariableChartComponent = /** @class */ (function (_super) {
    __extends(TapVariableChartComponent, _super);
    function TapVariableChartComponent() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    Object.defineProperty(TapVariableChartComponent.prototype, "variable", {
        set: /**
         * @param {?} variableOrArray
         * @return {?}
         */
        function (variableOrArray) {
            if (!variableOrArray) {
                this.inputStream = [];
                return;
            }
            /** @type {?} */
            var vArray = Array.isArray(variableOrArray) ? variableOrArray : [variableOrArray];
            this.inputStream = vArray.map((/**
             * @param {?} variable
             * @return {?}
             */
            function (variable) {
                return {
                    stream: variable.values,
                    label: variable.id.toString()
                };
            }));
        },
        enumerable: true,
        configurable: true
    });
    TapVariableChartComponent.decorators = [
        { type: Component, args: [{
                    selector: 'tap-variable-chart',
                    template: "\r\n<div class=\"chart-container\">\r\n  <ngx-charts-line-chart\r\n      [scheme]=\"colorScheme\"\r\n      [results]=\"results\"\r\n      [gradient]=\"gradient\"\r\n      [xAxis]=\"xAxis\"\r\n      [yAxis]=\"yAxis\"\r\n      [legend]=\"showLegend\"\r\n      [showXAxisLabel]=\"showXAxisLabel\"\r\n      [showYAxisLabel]=\"showYAxisLabel\"\r\n      [yAxisTickFormatting]=\"yAxisTickFormatting\"\r\n      [yAxisLabel]=\"yAxisLabel\"\r\n      [xAxisLabel]=\"xAxisLabel\"\r\n      [autoScale]=\"autoScale\"\r\n      [xAxisTickFormatting]=\"xAxisTickFormatting\"\r\n      (select)=\"onSelect($event)\">\r\n    </ngx-charts-line-chart>\r\n</div>",
                    styles: [".chart-container{display:-ms-grid;display:grid}"]
                }] }
    ];
    TapVariableChartComponent.propDecorators = {
        variable: [{ type: Input }]
    };
    TapVariableChartComponent = __decorate([
        AppGenComponent({
            constraints: {
                isArray: 'NO',
                isNumber: 'YES'
            }
        })
    ], TapVariableChartComponent);
    return TapVariableChartComponent;
}(ChartCardComponent));
export { TapVariableChartComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFwLXZhcmlhYmxlLWNoYXJ0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0Bpb3RpemUvaW9uaWMvbW9uaXRvcmluZy8iLCJzb3VyY2VzIjpbImxpYi91aS1jb21wb25lbnRzL3RhcC12YXJpYWJsZS1jaGFydC90YXAtdmFyaWFibGUtY2hhcnQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRWpELE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUU1RCxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxvQ0FBb0MsQ0FBQzs7SUFhekIsNkNBQWtCOzs7SUFnQmpFLENBQUM7SUFkQyxzQkFBYSwrQ0FBUTs7Ozs7UUFBckIsVUFBc0IsZUFBNEU7WUFDaEcsSUFBSSxDQUFDLGVBQWUsRUFBQztnQkFDbkIsSUFBSSxDQUFDLFdBQVcsR0FBRyxFQUFFLENBQUM7Z0JBQ3RCLE9BQU87YUFDUjs7Z0JBQ0ssTUFBTSxHQUFHLEtBQUssQ0FBQyxPQUFPLENBQUMsZUFBZSxDQUFDLENBQUMsQ0FBQyxDQUFDLGVBQWUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxlQUFlLENBQUM7WUFDbkYsSUFBSSxDQUFDLFdBQVcsR0FBRyxNQUFNLENBQUMsR0FBRzs7OztZQUFDLFVBQ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