"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Style = /** @class */ (function () {
    function Style(data) {
        this.ref = '';
        this.range = '';
        this.conditions = [];
        this.parse(data || {});
    }
    Style.prototype.parse = function (data) {
        var _this = this;
        ['ref', 'range', 'conditions'].forEach(function (key) {
            if (!data[key])
                return;
            _this[key] = data[key];
        });
    };
    return Style;
}());
exports.Style = Style;
var StyleCondition = /** @class */ (function () {
    function StyleCondition(data) {
        this.exp = '';
        this.style = {
            color: '#ffffff',
            background: '#0080ff'
        };
        this.columns = ['C'];
        this.parse(data || {});
    }
    StyleCondition.prototype.parse = function (data) {
        var _this = this;
        ['exp', 'style', 'columns'].forEach(function (key) {
            if (!data[key])
                return;
            _this[key] = data[key];
        });
    };
    return StyleCondition;
}());
exports.StyleCondition = StyleCondition;
//# sourceMappingURL=Styles.js.map