@slickgrid-universal/pdf-export 10.3.0 → 10.5.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slickgrid-universal/pdf-export",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.5.0",
|
|
4
4
|
"description": "PDF Export Service for SlickGrid Universal.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"url": "https://github.com/ghiscoding/slickgrid-universal/issues"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@slickgrid-universal/common": "10.
|
|
34
|
+
"@slickgrid-universal/common": "10.5.0",
|
|
35
35
|
"@slickgrid-universal/utils": "10.3.0",
|
|
36
36
|
"jspdf": "^4.2.1"
|
|
37
37
|
},
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"type": "ko_fi",
|
|
40
40
|
"url": "https://ko-fi.com/ghiscoding"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "2481a4ebba8d2b030e5b00dcf039cb569b3d7e8e"
|
|
43
43
|
}
|
|
@@ -557,7 +557,7 @@ describe('PdfExportService', () => {
|
|
|
557
557
|
// Expanded group
|
|
558
558
|
const expandedGroup = { title: 'Group 2', collapsed: false, level: 0 };
|
|
559
559
|
const expandedRow = service['readGroupedTitleRow'](expandedGroup);
|
|
560
|
-
expect(expandedRow[0]).toMatch(
|
|
560
|
+
expect(expandedRow[0]).toMatch(/^- /);
|
|
561
561
|
});
|
|
562
562
|
|
|
563
563
|
it('should use custom groupCollapsedSymbol and groupExpandedSymbol if provided', () => {
|
|
@@ -2149,7 +2149,7 @@ describe('PdfExportService', () => {
|
|
|
2149
2149
|
getVisibleColumns: () => columns,
|
|
2150
2150
|
getOptions: () => gridOptions,
|
|
2151
2151
|
getData: () => dataViewStub,
|
|
2152
|
-
getParentRowSpanByCell: vi.fn().mockImplementation((row
|
|
2152
|
+
getParentRowSpanByCell: vi.fn().mockImplementation((row) => ({ start: row === 1 ? 0 : row })),
|
|
2153
2153
|
};
|
|
2154
2154
|
const pubSubService = { publish: vi.fn() };
|
|
2155
2155
|
const container = { get: () => pubSubService };
|
|
@@ -2490,7 +2490,7 @@ describe('PdfExportService', () => {
|
|
|
2490
2490
|
getVisibleColumns: () => columns,
|
|
2491
2491
|
getOptions: () => gridOptions,
|
|
2492
2492
|
getData: () => dataViewStub,
|
|
2493
|
-
getParentRowSpanByCell: vi.fn().mockImplementation((row
|
|
2493
|
+
getParentRowSpanByCell: vi.fn().mockImplementation((row) => ({ start: row === 1 ? 0 : row })),
|
|
2494
2494
|
};
|
|
2495
2495
|
const pubSubService = { publish: vi.fn() };
|
|
2496
2496
|
const container = { get: () => pubSubService };
|
|
@@ -2591,8 +2591,9 @@ describe('PdfExportService', () => {
|
|
|
2591
2591
|
const container = { get: (key: string) => (key === 'PubSubService' ? pubSubService : undefined) };
|
|
2592
2592
|
const service = new PdfExportService();
|
|
2593
2593
|
service.init(gridStub as any, container as any);
|
|
2594
|
-
await service.exportToPdf({ filename: 'custom-width-test' });
|
|
2595
|
-
|
|
2594
|
+
const result = await service.exportToPdf({ filename: 'custom-width-test' });
|
|
2595
|
+
|
|
2596
|
+
expect(result).toBe(true);
|
|
2596
2597
|
});
|
|
2597
2598
|
});
|
|
2598
2599
|
|