"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Style = /** @class */ (function () {
    function Style(data) {
        this.ref = '';
        this.range = '';
        this.conditions = [];
        this.default_style = {
            color: '',
            background: ''
        };
        this.default_columns = ['C'];
        this.parse(data || {});
    }
    Style.prototype.parse = function (data) {
        var _this = this;
        ['ref', 'range', 'conditions', 'default_style', 'default_columns'].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: '#000000',
            background: '#FFFFFF',
        };
        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