taxtank-core 1.0.80 → 1.0.82
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.
@@ -20108,6 +20108,8 @@ class PdfFromHtmlTableService extends PdfFromTableService {
|
|
20108
20108
|
this.setDocumentTitle(pdf, fileSettings.title);
|
20109
20109
|
this.setDocumentLogo(pdf);
|
20110
20110
|
tables.forEach((table) => {
|
20111
|
+
table.querySelectorAll('tbody .mat-mdc-row')
|
20112
|
+
.forEach(row => row.classList.contains('expandable-row') ? row.remove() : '');
|
20111
20113
|
// Add table caption if not provided
|
20112
20114
|
if (!table.caption) {
|
20113
20115
|
table.createCaption();
|
@@ -20483,6 +20485,7 @@ class XlsxService {
|
|
20483
20485
|
xlsx.utils.sheet_add_aoa(worksheet, [[data.caption?.innerText]], { origin: -1 });
|
20484
20486
|
// Prepare to add table data to the worksheet, processing each cell
|
20485
20487
|
const rows = Array.from(data.rows)
|
20488
|
+
.filter((row) => !row.classList.contains('expandable-row'))
|
20486
20489
|
.map((row) => Array.from(row.cells).map(cell => this.htmlToXlsCell(cell)));
|
20487
20490
|
// Add the processed table data to the worksheet
|
20488
20491
|
xlsx.utils.sheet_add_aoa(worksheet, rows, { origin: -1 });
|