shareneus 1.7.12 → 1.7.14
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.
- package/dist/shared/party-details-section/pdf-party-details.section.js +4 -4
- package/dist/shared/totals-section/pdf-totals.section.js +4 -4
- package/package.json +1 -1
- package/src/shared/party-details-section/pdf-party-details.section.ts +4 -4
- package/src/shared/totals-section/pdf-totals.section.ts +4 -4
|
@@ -305,11 +305,11 @@ function buildOtherDetailsStack(otherDetails) {
|
|
|
305
305
|
if (lines.length > 0) {
|
|
306
306
|
stack.push({
|
|
307
307
|
table: {
|
|
308
|
-
widths: ['auto',
|
|
308
|
+
widths: ['auto', 6, '*'],
|
|
309
309
|
body: lines.map((line) => ([
|
|
310
|
-
{ text: line.label || '', bold: true, fontSize:
|
|
311
|
-
{ text: ':', bold: true, fontSize:
|
|
312
|
-
{ text: line.value || '-', fontSize:
|
|
310
|
+
{ text: line.label || '', bold: true, fontSize: 7, color: '#111827', alignment: 'right' },
|
|
311
|
+
{ text: ':', bold: true, fontSize: 7, color: '#111827', alignment: 'center' },
|
|
312
|
+
{ text: line.value || '-', fontSize: 7, color: '#111827', alignment: 'left' }
|
|
313
313
|
]))
|
|
314
314
|
},
|
|
315
315
|
layout: 'noBorders'
|
|
@@ -372,7 +372,7 @@ function buildInfoCardStack(title, lines, options = {}) {
|
|
|
372
372
|
...(heading ? [{
|
|
373
373
|
text: heading,
|
|
374
374
|
bold: true,
|
|
375
|
-
fontSize: 7,
|
|
375
|
+
fontSize: (heading === 'Bank Details') ? 7 : 9,
|
|
376
376
|
color: '#374151',
|
|
377
377
|
margin: [0, 0, 0, 4],
|
|
378
378
|
alignment: isRightAlign ? 'right' : 'left'
|
|
@@ -383,9 +383,9 @@ function buildInfoCardStack(title, lines, options = {}) {
|
|
|
383
383
|
body: (body.length > 0 ? body : [{ label: '', value: '-' }]).map((line) => {
|
|
384
384
|
const displayValue = hasDisplayValue(line === null || line === void 0 ? void 0 : line.value) ? String(line.value) : '-';
|
|
385
385
|
return [
|
|
386
|
-
{ text: line.label || '', bold: true, fontSize: 6, color: '#111827', alignment: isRightAlign ? 'right' : 'left' },
|
|
387
|
-
{ text: ':', bold: true, fontSize: 6, color: '#111827', alignment: 'center' },
|
|
388
|
-
{ text: displayValue, fontSize: 6, color: '#111827', alignment: isRightAlign ? 'right' : 'left' }
|
|
386
|
+
{ text: line.label || '', bold: true, fontSize: (heading === 'Bank Details') ? 6 : 8, color: '#111827', alignment: isRightAlign ? 'right' : 'left' },
|
|
387
|
+
{ text: ':', bold: true, fontSize: (heading === 'Bank Details') ? 6 : 8, color: '#111827', alignment: 'center' },
|
|
388
|
+
{ text: displayValue, fontSize: (heading === 'Bank Details') ? 6 : 8, color: '#111827', alignment: isRightAlign ? 'right' : 'left' }
|
|
389
389
|
];
|
|
390
390
|
})
|
|
391
391
|
},
|
package/package.json
CHANGED
|
@@ -371,11 +371,11 @@ function buildOtherDetailsStack(otherDetails: any) {
|
|
|
371
371
|
if (lines.length > 0) {
|
|
372
372
|
stack.push({
|
|
373
373
|
table: {
|
|
374
|
-
widths: ['auto',
|
|
374
|
+
widths: ['auto', 6, '*'],
|
|
375
375
|
body: lines.map((line: any) => ([
|
|
376
|
-
{ text: line.label || '', bold: true, fontSize:
|
|
377
|
-
{ text: ':', bold: true, fontSize:
|
|
378
|
-
{ text: line.value || '-', fontSize:
|
|
376
|
+
{ text: line.label || '', bold: true, fontSize: 7, color: '#111827', alignment: 'right' },
|
|
377
|
+
{ text: ':', bold: true, fontSize: 7, color: '#111827', alignment: 'center' },
|
|
378
|
+
{ text: line.value || '-', fontSize: 7, color: '#111827', alignment: 'left' }
|
|
379
379
|
]))
|
|
380
380
|
},
|
|
381
381
|
layout: 'noBorders'
|
|
@@ -461,7 +461,7 @@ function buildInfoCardStack(title: string | null, lines: Array<{ label: string;
|
|
|
461
461
|
...(heading ? [{
|
|
462
462
|
text: heading,
|
|
463
463
|
bold: true,
|
|
464
|
-
fontSize: 7,
|
|
464
|
+
fontSize: (heading === 'Bank Details') ? 7 : 9,
|
|
465
465
|
color: '#374151',
|
|
466
466
|
margin: [0, 0, 0, 4],
|
|
467
467
|
alignment: isRightAlign ? 'right' : 'left'
|
|
@@ -472,9 +472,9 @@ function buildInfoCardStack(title: string | null, lines: Array<{ label: string;
|
|
|
472
472
|
body: (body.length > 0 ? body : [{ label: '', value: '-' }]).map((line: any) => {
|
|
473
473
|
const displayValue = hasDisplayValue(line?.value) ? String(line.value) : '-';
|
|
474
474
|
return [
|
|
475
|
-
{ text: line.label || '', bold: true, fontSize: 6, color: '#111827', alignment: isRightAlign ? 'right' : 'left' },
|
|
476
|
-
{ text: ':', bold: true, fontSize: 6, color: '#111827', alignment: 'center' },
|
|
477
|
-
{ text: displayValue, fontSize: 6, color: '#111827', alignment: isRightAlign ? 'right' : 'left' }
|
|
475
|
+
{ text: line.label || '', bold: true, fontSize: (heading === 'Bank Details') ? 6 : 8, color: '#111827', alignment: isRightAlign ? 'right' : 'left' },
|
|
476
|
+
{ text: ':', bold: true, fontSize: (heading === 'Bank Details') ? 6 : 8, color: '#111827', alignment: 'center' },
|
|
477
|
+
{ text: displayValue, fontSize: (heading === 'Bank Details') ? 6 : 8, color: '#111827', alignment: isRightAlign ? 'right' : 'left' }
|
|
478
478
|
];
|
|
479
479
|
})
|
|
480
480
|
},
|