Sha256: 53e326c29906f4215fd56965108298d4ebabbc388925f490b14ce1986a865ac5

Contents?: true

Size: 924 Bytes

Versions: 23

Compression:

Stored size: 924 Bytes

Contents

{"version":3,"sources":["../src/padTableData.js"],"names":["rows","config","map","cells","value","index1","column","columns","repeat","paddingLeft","paddingRight"],"mappings":";;;;;;;AAAA;;;;;sBAKgBA,I,EAAMC,M,KAAW;AAC/B,SAAOD,IAAI,CAACE,GAAL,CAAUC,KAAD,IAAW;AACzB,WAAOA,KAAK,CAACD,GAAN,CAAU,CAACE,KAAD,EAAQC,MAAR,KAAmB;AAClC,YAAMC,MAAM,GAAGL,MAAM,CAACM,OAAP,CAAeF,MAAf,CAAf;AAEA,aAAO,IAAIG,MAAJ,CAAWF,MAAM,CAACG,WAAlB,IAAiCL,KAAjC,GAAyC,IAAII,MAAJ,CAAWF,MAAM,CAACI,YAAlB,CAAhD;AACD,KAJM,CAAP;AAKD,GANM,CAAP;AAOD,C","sourcesContent":["/**\n * @param {table~row[]} rows\n * @param {Object} config\n * @returns {table~row[]}\n */\nexport default (rows, config) => {\n  return rows.map((cells) => {\n    return cells.map((value, index1) => {\n      const column = config.columns[index1];\n\n      return ' '.repeat(column.paddingLeft) + value + ' '.repeat(column.paddingRight);\n    });\n  });\n};\n"],"file":"padTableData.js"}

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
trusty-cms-5.0.7 node_modules/table/dist/padTableData.js.map
trusty-cms-5.0.6 node_modules/table/dist/padTableData.js.map
trusty-cms-5.0.5 node_modules/table/dist/padTableData.js.map
trusty-cms-5.0.4 node_modules/table/dist/padTableData.js.map
trusty-cms-5.0.3 node_modules/table/dist/padTableData.js.map
trusty-cms-5.0.2 node_modules/table/dist/padTableData.js.map
trusty-cms-5.0.1 node_modules/table/dist/padTableData.js.map
trusty-cms-4.3.5 node_modules/table/dist/padTableData.js.map
trusty-cms-5.0.0 node_modules/table/dist/padTableData.js.map
trusty-cms-4.3.4 node_modules/table/dist/padTableData.js.map
trusty-cms-4.3.3 node_modules/table/dist/padTableData.js.map
trusty-cms-4.3.2 node_modules/table/dist/padTableData.js.map
trusty-cms-4.3.1 node_modules/table/dist/padTableData.js.map
trusty-cms-4.3 node_modules/table/dist/padTableData.js.map
trusty-cms-4.2.3 node_modules/table/dist/padTableData.js.map
trusty-cms-4.2.2 node_modules/table/dist/padTableData.js.map
trusty-cms-4.2.1 node_modules/table/dist/padTableData.js.map
trusty-cms-4.2 node_modules/table/dist/padTableData.js.map
trusty-cms-4.1.9 node_modules/table/dist/padTableData.js.map
trusty-cms-4.1.8 node_modules/table/dist/padTableData.js.map