@zoodogood/utils 1.0.6-change.712 → 1.0.6-change.717
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -83,14 +83,10 @@ class TextTableGenerator {
|
|
|
83
83
|
if (getRowType(row) === SpecialRowTypeEnum.Default) {
|
|
84
84
|
row = row;
|
|
85
85
|
content += (_c = (_b = (_a = this.options).borderLeft) === null || _b === void 0 ? void 0 : _b.call(_a, context, context.currentRow)) !== null && _c !== void 0 ? _c : "";
|
|
86
|
-
console.log(row);
|
|
87
86
|
for (const cellIndex of Object.keys(row)) {
|
|
88
87
|
const cell = row.at(+cellIndex);
|
|
89
|
-
console.log(cellIndex);
|
|
90
|
-
console.log(cell);
|
|
91
88
|
const expectedWidth = metadata.columns.at(+cellIndex).largestLength;
|
|
92
89
|
content += this.drawCell(cell, expectedWidth);
|
|
93
|
-
console.log(content);
|
|
94
90
|
if (+cellIndex !== row.length - 1) {
|
|
95
91
|
content += !cell.options.removeNextSeparator
|
|
96
92
|
? this.options.separator
|
|
@@ -104,7 +100,6 @@ class TextTableGenerator {
|
|
|
104
100
|
row = row;
|
|
105
101
|
content += this.drawLine(row.display);
|
|
106
102
|
}
|
|
107
|
-
console.log({ content });
|
|
108
103
|
return content;
|
|
109
104
|
}
|
|
110
105
|
drawCell(cell, expectedWidth) {
|
|
@@ -131,7 +126,6 @@ class TextTableGenerator {
|
|
|
131
126
|
const symbol = setSymbol(context, +index);
|
|
132
127
|
content += symbol;
|
|
133
128
|
}
|
|
134
|
-
console.log({ drawLineContent: content });
|
|
135
129
|
return content;
|
|
136
130
|
}
|
|
137
131
|
drawBlockBorder(borderDirection) {
|
|
@@ -265,5 +259,3 @@ class TextTableBuilder {
|
|
|
265
259
|
}
|
|
266
260
|
export { TextTableBuilder };
|
|
267
261
|
export { SpecialRowTypeEnum, CellAlignEnum, BorderDirectionEnum };
|
|
268
|
-
const builder = new TextTableBuilder().addRowWithElements(["1", "2", "3"]);
|
|
269
|
-
console.log(builder.generateTextContent());
|