excellentexport 3.9.8 → 3.9.9
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/.github/workflows/webpack.yml +5 -0
- package/README.md +7 -1
- package/dist/excellentexport.d.ts +45 -45
- package/dist/excellentexport.js +2 -2
- package/package.json +3 -16
- package/src/excellentexport.ts +2 -2
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
[](https://github.com/jmaister/excellentexport/actions/workflows/webpack.yml)
|
|
3
3
|
[](https://www.jsdelivr.com/package/npm/excellentexport)
|
|
4
|
-
[](https://codecov.io/gh/jmaister/excellentexport)
|
|
5
5
|
|
|
6
6
|
# ExcellentExport.js
|
|
7
7
|
|
|
@@ -20,6 +20,12 @@
|
|
|
20
20
|
|
|
21
21
|
# Revision history:
|
|
22
22
|
|
|
23
|
+
### 3.9.9
|
|
24
|
+
|
|
25
|
+
* Configure codecov to track code coverage.
|
|
26
|
+
* Removed coveralls, the library used is too old, not updated in years and has many vulnerabilities.
|
|
27
|
+
* Remove unused dependencies (there was a lot of them).
|
|
28
|
+
|
|
23
29
|
### 3.9.8
|
|
24
30
|
|
|
25
31
|
* _Update npm dependencies to fix vulnerabilities_
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ExcellentExport 3.9.
|
|
3
|
-
* A client side Javascript export to Excel.
|
|
4
|
-
*
|
|
5
|
-
* @author: Jordi Burgos (jordiburgos@gmail.com)
|
|
6
|
-
* @url: https://github.com/jmaister/excellentexport
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
|
-
import { CellTypes, FormatDefinition, CellFormats, CellPatterns } from './format';
|
|
10
|
-
declare global {
|
|
11
|
-
interface Navigator {
|
|
12
|
-
msSaveBlob?: (blob: any, defaultName?: string) => boolean;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
export interface ConvertOptions {
|
|
16
|
-
anchor?: (string | HTMLAnchorElement);
|
|
17
|
-
openAsDownload?: boolean;
|
|
18
|
-
format: ('csv' | 'xls' | 'xlsx');
|
|
19
|
-
filename?: string;
|
|
20
|
-
rtl?: boolean;
|
|
21
|
-
}
|
|
22
|
-
export interface FromOptions {
|
|
23
|
-
table?: (string | HTMLTableElement);
|
|
24
|
-
array?: any[][];
|
|
25
|
-
}
|
|
26
|
-
export interface SheetOptions {
|
|
27
|
-
name: string;
|
|
28
|
-
from: FromOptions;
|
|
29
|
-
removeColumns?: number[];
|
|
30
|
-
filterRowFn?(row: any[]): boolean;
|
|
31
|
-
fixValue?(value: any, row: number, column: number): any;
|
|
32
|
-
fixArray?(array: any[][]): any[][];
|
|
33
|
-
rtl?: boolean;
|
|
34
|
-
formats?: (FormatDefinition | null)[];
|
|
35
|
-
}
|
|
36
|
-
declare const ExcellentExport: {
|
|
37
|
-
version: () => string;
|
|
38
|
-
excel: (anchor: (HTMLAnchorElement | string), table: HTMLTableElement, name: string) => boolean;
|
|
39
|
-
csv: (anchor: (HTMLAnchorElement | string), table: HTMLTableElement, delimiter?: string, newLine?: string) => boolean;
|
|
40
|
-
convert: (options: ConvertOptions, sheets: SheetOptions[]) => string | false;
|
|
41
|
-
formats: CellFormats;
|
|
42
|
-
cellTypes: typeof CellTypes;
|
|
43
|
-
cellPatterns: typeof CellPatterns;
|
|
44
|
-
};
|
|
45
|
-
export default ExcellentExport;
|
|
1
|
+
/**
|
|
2
|
+
* ExcellentExport 3.9.9
|
|
3
|
+
* A client side Javascript export to Excel.
|
|
4
|
+
*
|
|
5
|
+
* @author: Jordi Burgos (jordiburgos@gmail.com)
|
|
6
|
+
* @url: https://github.com/jmaister/excellentexport
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
import { CellTypes, FormatDefinition, CellFormats, CellPatterns } from './format';
|
|
10
|
+
declare global {
|
|
11
|
+
interface Navigator {
|
|
12
|
+
msSaveBlob?: (blob: any, defaultName?: string) => boolean;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export interface ConvertOptions {
|
|
16
|
+
anchor?: (string | HTMLAnchorElement);
|
|
17
|
+
openAsDownload?: boolean;
|
|
18
|
+
format: ('csv' | 'xls' | 'xlsx');
|
|
19
|
+
filename?: string;
|
|
20
|
+
rtl?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface FromOptions {
|
|
23
|
+
table?: (string | HTMLTableElement);
|
|
24
|
+
array?: any[][];
|
|
25
|
+
}
|
|
26
|
+
export interface SheetOptions {
|
|
27
|
+
name: string;
|
|
28
|
+
from: FromOptions;
|
|
29
|
+
removeColumns?: number[];
|
|
30
|
+
filterRowFn?(row: any[]): boolean;
|
|
31
|
+
fixValue?(value: any, row: number, column: number): any;
|
|
32
|
+
fixArray?(array: any[][]): any[][];
|
|
33
|
+
rtl?: boolean;
|
|
34
|
+
formats?: (FormatDefinition | null)[];
|
|
35
|
+
}
|
|
36
|
+
declare const ExcellentExport: {
|
|
37
|
+
version: () => string;
|
|
38
|
+
excel: (anchor: (HTMLAnchorElement | string), table: HTMLTableElement, name: string) => boolean;
|
|
39
|
+
csv: (anchor: (HTMLAnchorElement | string), table: HTMLTableElement, delimiter?: string, newLine?: string) => boolean;
|
|
40
|
+
convert: (options: ConvertOptions, sheets: SheetOptions[]) => string | false;
|
|
41
|
+
formats: CellFormats;
|
|
42
|
+
cellTypes: typeof CellTypes;
|
|
43
|
+
cellPatterns: typeof CellPatterns;
|
|
44
|
+
};
|
|
45
|
+
export default ExcellentExport;
|