excellentexport 3.9.7 → 3.9.8
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 +4 -4
- package/LICENSE.txt +2 -2
- package/README.md +6 -2
- package/dist/excellentexport.d.ts +45 -45
- package/dist/excellentexport.js +2 -2
- package/package.json +58 -58
- package/src/excellentexport.ts +2 -2
- package/src/utils.ts +144 -144
- package/tsconfig.json +17 -17
|
@@ -13,7 +13,7 @@ jobs:
|
|
|
13
13
|
|
|
14
14
|
strategy:
|
|
15
15
|
matrix:
|
|
16
|
-
node-version: [
|
|
16
|
+
node-version: [22.x]
|
|
17
17
|
|
|
18
18
|
steps:
|
|
19
19
|
- uses: actions/checkout@v3
|
|
@@ -24,8 +24,8 @@ jobs:
|
|
|
24
24
|
uses: actions/setup-node@v3
|
|
25
25
|
with:
|
|
26
26
|
node-version: ${{ matrix.node-version }}
|
|
27
|
-
cache: '
|
|
27
|
+
cache: 'npm'
|
|
28
28
|
|
|
29
|
-
- run:
|
|
29
|
+
- run: npm install
|
|
30
30
|
|
|
31
|
-
- run:
|
|
31
|
+
- run: npm test
|
package/LICENSE.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2016-
|
|
3
|
+
Copyright (c) 2016-2025 Jordi Burgos
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -20,14 +20,18 @@
|
|
|
20
20
|
|
|
21
21
|
# Revision history:
|
|
22
22
|
|
|
23
|
+
### 3.9.8
|
|
24
|
+
|
|
25
|
+
* _Update npm dependencies to fix vulnerabilities_
|
|
26
|
+
* Moving to npm build (package-lock.json), yarn does not support "audit fix" command to fix dependencies vulnerabilities automatically.
|
|
27
|
+
|
|
23
28
|
### 3.9.7
|
|
24
29
|
|
|
25
30
|
* _Update npm dependencies to fix vulnerabilities_
|
|
26
|
-
* xlsx package loaded from CDN
|
|
31
|
+
* xlsx package loaded from CDN [SheetJS CDN](https://cdn.sheetjs.com/)
|
|
27
32
|
|
|
28
33
|
### 3.9.6
|
|
29
34
|
|
|
30
|
-
* Got a license from IntelliJ and helped to fix some things in the code
|
|
31
35
|
* Remove references to openbase.io
|
|
32
36
|
* Fix typos
|
|
33
37
|
* _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.8
|
|
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;
|