excellentexport 3.9.8 → 3.9.10
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/FUNDING.yml +1 -1
- package/.github/dependabot.yml +7 -7
- package/.github/workflows/webpack.yml +7 -2
- package/LICENSE.txt +21 -21
- package/README.md +12 -1
- package/bower.json +32 -32
- package/dist/excellentexport.d.ts +45 -45
- package/dist/excellentexport.js +2 -2
- package/index.bigtable.html +55 -55
- package/index.filters.html +63 -63
- package/index.html +127 -127
- package/index.noanchor.html +31 -31
- package/index.rtl.html +68 -68
- package/jest.config.ts +203 -203
- package/package.json +46 -58
- package/src/excellentexport.ts +2 -2
- package/src/utils.ts +144 -144
- package/test/convert-filters.test.ts +70 -70
- package/test/convert-table.test.ts +71 -71
- package/test/fixdata.test.ts +74 -74
- package/test/utils.test.ts +29 -29
- package/test/utils_fixdata.test.ts +24 -24
- package/test/utils_removeColumns.test.ts +98 -98
- package/tsconfig.json +17 -17
package/.github/FUNDING.yml
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
github: jmaister
|
|
1
|
+
github: jmaister
|
package/.github/dependabot.yml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
version: 2
|
|
2
|
-
updates:
|
|
3
|
-
- package-ecosystem: npm
|
|
4
|
-
directory: "/"
|
|
5
|
-
schedule:
|
|
6
|
-
interval: daily
|
|
7
|
-
open-pull-requests-limit: 0
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
- package-ecosystem: npm
|
|
4
|
+
directory: "/"
|
|
5
|
+
schedule:
|
|
6
|
+
interval: daily
|
|
7
|
+
open-pull-requests-limit: 0
|
|
@@ -16,12 +16,12 @@ jobs:
|
|
|
16
16
|
node-version: [22.x]
|
|
17
17
|
|
|
18
18
|
steps:
|
|
19
|
-
- uses: actions/checkout@
|
|
19
|
+
- uses: actions/checkout@v4
|
|
20
20
|
with:
|
|
21
21
|
fetch-depth: 0
|
|
22
22
|
|
|
23
23
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
24
|
-
uses: actions/setup-node@
|
|
24
|
+
uses: actions/setup-node@v4
|
|
25
25
|
with:
|
|
26
26
|
node-version: ${{ matrix.node-version }}
|
|
27
27
|
cache: 'npm'
|
|
@@ -29,3 +29,8 @@ jobs:
|
|
|
29
29
|
- run: npm install
|
|
30
30
|
|
|
31
31
|
- run: npm test
|
|
32
|
+
|
|
33
|
+
- name: Upload coverage reports to Codecov
|
|
34
|
+
uses: codecov/codecov-action@v5
|
|
35
|
+
with:
|
|
36
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
package/LICENSE.txt
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2016-2025 Jordi Burgos
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2016-2025 Jordi Burgos
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
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,17 @@
|
|
|
20
20
|
|
|
21
21
|
# Revision history:
|
|
22
22
|
|
|
23
|
+
### 3.9.10
|
|
24
|
+
|
|
25
|
+
* Add ts-node dependency for TypeScript development support.
|
|
26
|
+
* _Update npm dependencies to fix vulnerabilities_
|
|
27
|
+
|
|
28
|
+
### 3.9.9
|
|
29
|
+
|
|
30
|
+
* Configure codecov to track code coverage.
|
|
31
|
+
* Removed coveralls, the library used is too old, not updated in years and has many vulnerabilities.
|
|
32
|
+
* Remove unused dependencies (there was a lot of them).
|
|
33
|
+
|
|
23
34
|
### 3.9.8
|
|
24
35
|
|
|
25
36
|
* _Update npm dependencies to fix vulnerabilities_
|
package/bower.json
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "excellentexport",
|
|
3
|
-
"main": "excellentexport.js",
|
|
4
|
-
"homepage": "http://jordiburgos.com/post/2014/excellentexport-javascript-export-to-excel-csv.html",
|
|
5
|
-
"authors": [
|
|
6
|
-
"Jordi Burgos <jordiburgos@gmail.com>"
|
|
7
|
-
],
|
|
8
|
-
"description": "Client side JavaScript export to Excel or CSV",
|
|
9
|
-
"moduleType": [
|
|
10
|
-
"globals"
|
|
11
|
-
],
|
|
12
|
-
"keywords": [
|
|
13
|
-
"excel",
|
|
14
|
-
"export",
|
|
15
|
-
"csv",
|
|
16
|
-
"javascript",
|
|
17
|
-
"client",
|
|
18
|
-
"side"
|
|
19
|
-
],
|
|
20
|
-
"license": "MIT",
|
|
21
|
-
"ignore": [
|
|
22
|
-
"**/.*",
|
|
23
|
-
"node_modules",
|
|
24
|
-
"bower_components",
|
|
25
|
-
"test",
|
|
26
|
-
"tests"
|
|
27
|
-
],
|
|
28
|
-
"repository": {
|
|
29
|
-
"type": "git",
|
|
30
|
-
"url": "git://github.com/jmaister/excellentexport.git"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "excellentexport",
|
|
3
|
+
"main": "excellentexport.js",
|
|
4
|
+
"homepage": "http://jordiburgos.com/post/2014/excellentexport-javascript-export-to-excel-csv.html",
|
|
5
|
+
"authors": [
|
|
6
|
+
"Jordi Burgos <jordiburgos@gmail.com>"
|
|
7
|
+
],
|
|
8
|
+
"description": "Client side JavaScript export to Excel or CSV",
|
|
9
|
+
"moduleType": [
|
|
10
|
+
"globals"
|
|
11
|
+
],
|
|
12
|
+
"keywords": [
|
|
13
|
+
"excel",
|
|
14
|
+
"export",
|
|
15
|
+
"csv",
|
|
16
|
+
"javascript",
|
|
17
|
+
"client",
|
|
18
|
+
"side"
|
|
19
|
+
],
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"ignore": [
|
|
22
|
+
"**/.*",
|
|
23
|
+
"node_modules",
|
|
24
|
+
"bower_components",
|
|
25
|
+
"test",
|
|
26
|
+
"tests"
|
|
27
|
+
],
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git://github.com/jmaister/excellentexport.git"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -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.10
|
|
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;
|