|
1 | 1 | /**
|
2 | 2 | * @preserve tableExport.jquery.plugin
|
3 | 3 | *
|
4 |
| - * Version 1.20.2 |
| 4 | + * Version 1.21 |
5 | 5 | *
|
6 | 6 | * Copyright (c) 2015-2021 hhurz,
|
7 | 7 | * https://github.com/hhurz/tableExport.jquery.plugin
|
|
812 | 812 | const cellStyles = document.defaultView.getComputedStyle(cell, null);
|
813 | 813 | const rowStyles = document.defaultView.getComputedStyle($row[0], null);
|
814 | 814 |
|
815 |
| - for (const cssStyle in defaults.mso.styles) { |
| 815 | + for (let cssStyle in defaults.mso.styles) { |
816 | 816 | let thCss = cellStyles[defaults.mso.styles[cssStyle]];
|
817 | 817 | if (thCss === '')
|
818 | 818 | thCss = rowStyles[defaults.mso.styles[cssStyle]];
|
|
864 | 864 | const cellStyles = document.defaultView.getComputedStyle(cell, null);
|
865 | 865 | const rowStyles = document.defaultView.getComputedStyle($row[0], null);
|
866 | 866 |
|
867 |
| - for (const cssStyle in defaults.mso.styles) { |
| 867 | + for (let cssStyle in defaults.mso.styles) { |
868 | 868 | tdCss = cellStyles[defaults.mso.styles[cssStyle]];
|
869 | 869 | if (tdCss === '')
|
870 | 870 | tdCss = rowStyles[defaults.mso.styles[cssStyle]];
|
|
1181 | 1181 | rk = 'a0';
|
1182 | 1182 | ro = 'l';
|
1183 | 1183 | }
|
1184 |
| - for (const key in pageFormats) { |
| 1184 | + for (let key in pageFormats) { |
1185 | 1185 | if (pageFormats.hasOwnProperty(key)) {
|
1186 | 1186 | if (pageFormats[key][1] > w) {
|
1187 | 1187 | rk = key;
|
|
1872 | 1872 | }
|
1873 | 1873 |
|
1874 | 1874 | if (typeof teOptions.images !== 'undefined') {
|
1875 |
| - for (const i in teOptions.images) |
| 1875 | + for (let i in teOptions.images) |
1876 | 1876 | if (teOptions.images.hasOwnProperty(i))
|
1877 | 1877 | loadImage(teOptions.images[i]);
|
1878 | 1878 | }
|
|
3184 | 3184 | table: jsPdfTable,
|
3185 | 3185 | cursor: jsPdfCursor
|
3186 | 3186 | };
|
3187 |
| - for (const prop in additionalData) { |
| 3187 | + for (let prop in additionalData) { |
3188 | 3188 | if (additionalData.hasOwnProperty(prop)) {
|
3189 | 3189 | data[prop] = additionalData[prop];
|
3190 | 3190 | }
|
|
3282 | 3282 | }
|
3283 | 3283 | }
|
3284 | 3284 |
|
3285 |
| - class jsPdfTableClass { |
3286 |
| - constructor() { |
| 3285 | + var jsPdfTableClass = /** class */ (function () { |
| 3286 | + function jsPdfTableClass() { /** constructor */ |
3287 | 3287 | this.height = 0;
|
3288 | 3288 | this.width = 0;
|
3289 | 3289 | this.x = 0;
|
|
3294 | 3294 | this.headerRow = null;
|
3295 | 3295 | this.settings = {};
|
3296 | 3296 | }
|
3297 |
| - } |
| 3297 | + return jsPdfTableClass; |
| 3298 | + }()); |
3298 | 3299 |
|
3299 |
| - class jsPdfRowClass { |
3300 |
| - constructor(raw) { |
| 3300 | + var jsPdfRowClass = /** class */ (function () { |
| 3301 | + function jsPdfRowClass(raw) { /** constructor */ |
3301 | 3302 | this.raw = raw || {};
|
3302 | 3303 | this.index = 0;
|
3303 | 3304 | this.styles = {};
|
3304 | 3305 | this.cells = {};
|
3305 | 3306 | this.height = 0;
|
3306 | 3307 | this.y = 0;
|
3307 | 3308 | }
|
3308 |
| - } |
| 3309 | + return jsPdfRowClass; |
| 3310 | + }()); |
3309 | 3311 |
|
3310 |
| - class jsPdfCellClass { |
3311 |
| - constructor(raw) { |
| 3312 | + var jsPdfCellClass = /** class */ (function () { |
| 3313 | + function jsPdfCellClass(raw) { /** constructor */ |
3312 | 3314 | this.raw = raw;
|
3313 | 3315 | this.styles = {};
|
3314 | 3316 | this.text = '';
|
|
3319 | 3321 | this.x = 0;
|
3320 | 3322 | this.y = 0;
|
3321 | 3323 | }
|
3322 |
| - } |
| 3324 | + return jsPdfCellClass; |
| 3325 | + }()); |
3323 | 3326 |
|
3324 |
| - class jsPdfColumnClass { |
3325 |
| - constructor(dataKey) { |
| 3327 | + var jsPdfColumnClass = /** class */ (function () { |
| 3328 | + function jsPdfColumnClass(dataKey) { /** constructor */ |
3326 | 3329 | this.dataKey = dataKey;
|
3327 | 3330 | this.options = {};
|
3328 | 3331 | this.styles = {};
|
3329 | 3332 | this.contentWidth = 0;
|
3330 | 3333 | this.width = 0;
|
3331 | 3334 | this.x = 0;
|
3332 | 3335 | }
|
3333 |
| - } |
| 3336 | + return jsPdfColumnClass; |
| 3337 | + }()); |
3334 | 3338 |
|
3335 | 3339 | })(jQuery);
|
0 commit comments