@igo2/integration 19.0.0-next.3 → 19.0.0-next.4

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.
@@ -43,8 +43,8 @@ import { WorkspaceStore } from '@igo2/common/workspace';
43
43
  import * as i5$1 from '@igo2/common/widget';
44
44
  import * as i3$1 from '@igo2/core/media';
45
45
  import { Media, MediaService } from '@igo2/core/media';
46
- import * as jsPDF from 'jspdf';
47
- import 'jspdf-autotable';
46
+ import { jsPDF } from 'jspdf';
47
+ import { autoTable } from 'jspdf-autotable';
48
48
  import moment from 'moment';
49
49
  import * as i2$3 from '@igo2/common/form';
50
50
  import { FormService, IgoFormModule } from '@igo2/common/form';
@@ -1456,17 +1456,19 @@ function getWorkspaceActions(workspace, rowsInMapExtentCheckCondition$, selectOn
1456
1456
  tooltip: 'igo.integration.workspace.print.tooltip',
1457
1457
  handler: (ws) => {
1458
1458
  const title = `${ws.layer.title} (${dateTransform(new Date(), 'YYYY-MM-DD-HH_mm')})`;
1459
- const doc = new jsPDF.default('landscape');
1459
+ const doc = new jsPDF({
1460
+ orientation: 'landscape'
1461
+ });
1460
1462
  const totalPagesExp = '{total_pages_count_string}';
1461
1463
  doc.text(title, 14, 20);
1462
- doc.autoTable({
1464
+ autoTable(doc, {
1463
1465
  startY: 25,
1464
1466
  tableWidth: 'wrap',
1465
1467
  html: '#currentWorkspaceTable',
1466
1468
  horizontalPageBreak: true,
1467
1469
  styles: { cellPadding: 0.5, minCellWidth: 20, fontSize: 6 },
1468
1470
  didDrawPage: (data) => {
1469
- let str = 'Page ' + doc.internal.getNumberOfPages();
1471
+ let str = 'Page ' + doc.getNumberOfPages();
1470
1472
  if (typeof doc.putTotalPages === 'function') {
1471
1473
  str = str + ' / ' + totalPagesExp;
1472
1474
  }