Sha256: 7e3e7e23ef896afbd97398627bab8f4404887bf9def0cff49807282ea2edd87b
Contents?: true
Size: 803 Bytes
Versions: 21
Compression:
Stored size: 803 Bytes
Contents
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.rawColumnToInternalColumn = exports.objIfExists = void 0; const table_constants_1 = require("../utils/table-constants"); const objIfExists = (key, val) => { if (!val) { return {}; } return { [key]: val, }; }; exports.objIfExists = objIfExists; const rawColumnToInternalColumn = (column) => (Object.assign(Object.assign(Object.assign(Object.assign({ name: column.name, title: column.title || column.name }, exports.objIfExists('color', column.color)), exports.objIfExists('maxLen', column.maxLen)), exports.objIfExists('minLen', column.minLen)), { alignment: column.alignment || table_constants_1.DEFAULT_ROW_ALIGNMENT })); exports.rawColumnToInternalColumn = rawColumnToInternalColumn;
Version data entries
21 entries across 21 versions & 1 rubygems