release/utils/column-helper.js
function translateTemplates(templates) {
    var result = [];
    for (var _i = 0, templates_1 = templates; _i < templates_1.length; _i++) {
        var temp = templates_1[_i];
        var col = {};
        var props = Object.getOwnPropertyNames(temp);
        for (var _a = 0, props_1 = props; _a < props_1.length; _a++) {
            var prop = props_1[_a];
            col[prop] = temp[prop];
        }
        if (temp.headerTemplate) {
            col.headerTemplate = temp.headerTemplate;
        }
        if (temp.cellTemplate) {
            col.cellTemplate = temp.cellTemplate;
        }
        if (temp.summaryFunc) {
            col.summaryFunc = temp.summaryFunc;
        }
        if (temp.summaryTemplate) {
            col.summaryTemplate = temp.summaryTemplate;
        }
        result.push(col);
    }
    return result;
}
function translateTemplates(templates) {
    var result = [];
    for (var _i = 0, templates_1 = templates; _i < templates_1.length; _i++) {
        var temp = templates_1[_i];
        var col = {};
        var props = Object.getOwnPropertyNames(temp);
        for (var _a = 0, props_1 = props; _a < props_1.length; _a++) {
            var prop = props_1[_a];
            col[prop] = temp[prop];
        }
        if (temp.headerTemplate) {
            col.headerTemplate = temp.headerTemplate;
        }
        if (temp.cellTemplate) {
            col.cellTemplate = temp.cellTemplate;
        }
        if (temp.summaryFunc) {
            col.summaryFunc = temp.summaryFunc;
        }
        if (temp.summaryTemplate) {
            col.summaryTemplate = temp.summaryTemplate;
        }
        result.push(col);
    }
    return result;
}
function translateTemplates ( templates ) { var result = [ ] ; for ( var _i = 0 , templates_1 = templates ; _i < templates_1 . length ; _i ++ ) { var temp = templates_1 [ _i ] ; var col = { } ; var props = Object . getOwnPropertyNames ( temp ) ; for ( var _a = 0 , props_1 = props ; _a < props_1 . length ; _a ++ ) { var prop = props_1 [ _a ] ; col [ prop ] = temp [ prop ] ; } if ( temp . headerTemplate ) { col . headerTemplate = temp . headerTemplate ; } if ( temp . cellTemplate ) { col . cellTemplate = temp . cellTemplate ; } if ( temp . summaryFunc ) { col . summaryFunc = temp . summaryFunc ; } if ( temp . summaryTemplate ) { col . summaryTemplate = temp . summaryTemplate ; } result . push ( col ) ; } return result ; }
Translates templates definitions to objects
Translates templates definitions to objects