import * as tslib_1 from "tslib";
import { toolbar } from './annotations';
import ArrayColumn from './ArrayColumn';
import { EAlignment } from './StringColumn';
import { isMissingValue } from './missing';
/**
 * a string column with optional alignment
 */
var StringsColumn = /** @class */ (function (_super) {
    tslib_1.__extends(StringsColumn, _super);
    function StringsColumn(id, desc) {
        var _this = _super.call(this, id, desc) || this;
        _this.setDefaultWidth(200); //by default 200
        _this.alignment = desc.alignment || EAlignment.left;
        _this.escape = desc.escape !== false;
        return _this;
    }
    StringsColumn.prototype.getValues = function (row) {
        return _super.prototype.getValues.call(this, row).map(function (v) {
            return isMissingValue(v) ? '' : String(v);
        });
    };
    StringsColumn = tslib_1.__decorate([
        toolbar('search')
    ], StringsColumn);
    return StringsColumn;
}(ArrayColumn));
export default StringsColumn;
//# sourceMappingURL=StringsColumn.js.map