excellentexport 3.9.3 → 3.9.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.
- package/README.md +22 -5
- package/dist/excellentexport.d.ts +45 -45
- package/dist/excellentexport.js +1 -1
- package/dist/format.d.ts +30 -30
- package/dist/utils.d.ts +30 -30
- package/package.json +16 -16
- package/src/excellentexport.ts +1 -1
- package/New Text Document.txt +0 -0
package/dist/format.d.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
export declare enum CellTypes {
|
|
2
|
-
TEXT = "s",
|
|
3
|
-
NUMBER = "n",
|
|
4
|
-
DATE = "d",
|
|
5
|
-
BOOLEAN = "b"
|
|
6
|
-
}
|
|
7
|
-
export declare enum CellPatterns {
|
|
8
|
-
INTEGER = "0",
|
|
9
|
-
DECIMAL = "0.00",
|
|
10
|
-
DATE = "dd/mm/yyyy",
|
|
11
|
-
TIME = "hh:mm:ss",
|
|
12
|
-
DATETIME = "dd/mm/yyyy hh:mm:ss",
|
|
13
|
-
CURRENCY = "[$$-409]#,##0.00;[RED]-[$$-409]#,##0.00",
|
|
14
|
-
PERCENTAGE = "0.00%",
|
|
15
|
-
EXPONENT = "0.00E+00",
|
|
16
|
-
TEXT = "@"
|
|
17
|
-
}
|
|
18
|
-
export type CellType = 's' | 'n' | 'd' | 'b';
|
|
19
|
-
export interface CellFormat {
|
|
20
|
-
type: CellType;
|
|
21
|
-
pattern?: string;
|
|
22
|
-
}
|
|
23
|
-
export interface CellFormats {
|
|
24
|
-
[key: string]: CellFormat;
|
|
25
|
-
}
|
|
26
|
-
export declare const PredefinedFormat: CellFormats;
|
|
27
|
-
export interface FormatDefinition {
|
|
28
|
-
range: string;
|
|
29
|
-
format?: CellFormat;
|
|
30
|
-
}
|
|
1
|
+
export declare enum CellTypes {
|
|
2
|
+
TEXT = "s",
|
|
3
|
+
NUMBER = "n",
|
|
4
|
+
DATE = "d",
|
|
5
|
+
BOOLEAN = "b"
|
|
6
|
+
}
|
|
7
|
+
export declare enum CellPatterns {
|
|
8
|
+
INTEGER = "0",
|
|
9
|
+
DECIMAL = "0.00",
|
|
10
|
+
DATE = "dd/mm/yyyy",
|
|
11
|
+
TIME = "hh:mm:ss",
|
|
12
|
+
DATETIME = "dd/mm/yyyy hh:mm:ss",
|
|
13
|
+
CURRENCY = "[$$-409]#,##0.00;[RED]-[$$-409]#,##0.00",
|
|
14
|
+
PERCENTAGE = "0.00%",
|
|
15
|
+
EXPONENT = "0.00E+00",
|
|
16
|
+
TEXT = "@"
|
|
17
|
+
}
|
|
18
|
+
export type CellType = 's' | 'n' | 'd' | 'b';
|
|
19
|
+
export interface CellFormat {
|
|
20
|
+
type: CellType;
|
|
21
|
+
pattern?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface CellFormats {
|
|
24
|
+
[key: string]: CellFormat;
|
|
25
|
+
}
|
|
26
|
+
export declare const PredefinedFormat: CellFormats;
|
|
27
|
+
export interface FormatDefinition {
|
|
28
|
+
range: string;
|
|
29
|
+
format?: CellFormat;
|
|
30
|
+
}
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
export declare const b64toBlob: (b64Data: string, contentType: string, sliceSize?: number) => Blob;
|
|
2
|
-
export declare const templates: {
|
|
3
|
-
excel: string;
|
|
4
|
-
};
|
|
5
|
-
/**
|
|
6
|
-
* Convert a string to Base64.
|
|
7
|
-
*/
|
|
8
|
-
export declare const base64: (s: string) => string;
|
|
9
|
-
export declare const format: (s: string, context: any) => string;
|
|
10
|
-
/**
|
|
11
|
-
* Get element by ID.
|
|
12
|
-
* @param {*} element
|
|
13
|
-
*/
|
|
14
|
-
export declare const getTable: (element: (HTMLTableElement | string)) => HTMLTableElement;
|
|
15
|
-
/**
|
|
16
|
-
* Get element by ID.
|
|
17
|
-
* @param {*} element
|
|
18
|
-
*/
|
|
19
|
-
export declare const getAnchor: (element: (HTMLAnchorElement | string)) => HTMLAnchorElement;
|
|
20
|
-
/**
|
|
21
|
-
* Encode a value for CSV.
|
|
22
|
-
* @param {*} value
|
|
23
|
-
*/
|
|
24
|
-
export declare const fixCSVField: (value: string, csvDelimiter: string) => string;
|
|
25
|
-
export declare const tableToArray: (table: HTMLTableElement) => any[][];
|
|
26
|
-
export declare const tableToCSV: (table: HTMLTableElement, csvDelimiter?: string, csvNewLine?: string) => string;
|
|
27
|
-
export declare const createDownloadLink: (anchor: HTMLAnchorElement, base64data: string, exporttype: string, filename: string) => boolean;
|
|
28
|
-
export declare const string2ArrayBuffer: (s: string) => ArrayBuffer;
|
|
29
|
-
export declare const removeColumns: (dataArray: any[][], columnIndexes: number[]) => void;
|
|
30
|
-
export declare const hasContent: (value: any) => boolean;
|
|
1
|
+
export declare const b64toBlob: (b64Data: string, contentType: string, sliceSize?: number) => Blob;
|
|
2
|
+
export declare const templates: {
|
|
3
|
+
excel: string;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Convert a string to Base64.
|
|
7
|
+
*/
|
|
8
|
+
export declare const base64: (s: string) => string;
|
|
9
|
+
export declare const format: (s: string, context: any) => string;
|
|
10
|
+
/**
|
|
11
|
+
* Get element by ID.
|
|
12
|
+
* @param {*} element
|
|
13
|
+
*/
|
|
14
|
+
export declare const getTable: (element: (HTMLTableElement | string)) => HTMLTableElement;
|
|
15
|
+
/**
|
|
16
|
+
* Get element by ID.
|
|
17
|
+
* @param {*} element
|
|
18
|
+
*/
|
|
19
|
+
export declare const getAnchor: (element: (HTMLAnchorElement | string)) => HTMLAnchorElement;
|
|
20
|
+
/**
|
|
21
|
+
* Encode a value for CSV.
|
|
22
|
+
* @param {*} value
|
|
23
|
+
*/
|
|
24
|
+
export declare const fixCSVField: (value: string, csvDelimiter: string) => string;
|
|
25
|
+
export declare const tableToArray: (table: HTMLTableElement) => any[][];
|
|
26
|
+
export declare const tableToCSV: (table: HTMLTableElement, csvDelimiter?: string, csvNewLine?: string) => string;
|
|
27
|
+
export declare const createDownloadLink: (anchor: HTMLAnchorElement, base64data: string, exporttype: string, filename: string) => boolean;
|
|
28
|
+
export declare const string2ArrayBuffer: (s: string) => ArrayBuffer;
|
|
29
|
+
export declare const removeColumns: (dataArray: any[][], columnIndexes: number[]) => void;
|
|
30
|
+
export declare const hasContent: (value: any) => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "excellentexport",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.4",
|
|
4
4
|
"description": "Client side JavaScript export to Excel or CSV",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "http://jordiburgos.com",
|
|
@@ -27,30 +27,30 @@
|
|
|
27
27
|
},
|
|
28
28
|
"main": "dist/excellentexport.js",
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@babel/core": "7.
|
|
30
|
+
"@babel/core": "7.21.4",
|
|
31
31
|
"@babel/plugin-proposal-class-properties": "7.18.6",
|
|
32
|
-
"@babel/plugin-transform-flow-strip-types": "7.
|
|
33
|
-
"@babel/preset-env": "7.
|
|
34
|
-
"@types/jest": "29.
|
|
32
|
+
"@babel/plugin-transform-flow-strip-types": "7.21.0",
|
|
33
|
+
"@babel/preset-env": "7.21.4",
|
|
34
|
+
"@types/jest": "29.5.1",
|
|
35
35
|
"@types/jest-environment-puppeteer": "5.0.3",
|
|
36
|
-
"@types/node": "18.13
|
|
36
|
+
"@types/node": "18.15.13",
|
|
37
37
|
"babel-loader": "9.1.2",
|
|
38
38
|
"blob-polyfill": "7.0.20220408",
|
|
39
39
|
"coveralls": "3.1.1",
|
|
40
40
|
"cross-env": "7.0.3",
|
|
41
41
|
"html-loader": "4.2.0",
|
|
42
|
-
"jest": "29.
|
|
43
|
-
"jest-environment-jsdom": "^29.
|
|
44
|
-
"jest-puppeteer": "
|
|
45
|
-
"puppeteer": "19.
|
|
46
|
-
"ts-jest": "29.0
|
|
42
|
+
"jest": "29.5.0",
|
|
43
|
+
"jest-environment-jsdom": "^29.5.0",
|
|
44
|
+
"jest-puppeteer": "8.0.6",
|
|
45
|
+
"puppeteer": "19.10.1",
|
|
46
|
+
"ts-jest": "29.1.0",
|
|
47
47
|
"ts-loader": "9.4.2",
|
|
48
48
|
"ts-node": "10.9.1",
|
|
49
|
-
"typescript": "
|
|
50
|
-
"webdriverio": "8.
|
|
51
|
-
"webpack": "5.
|
|
52
|
-
"webpack-cli": "5.0.
|
|
53
|
-
"webpack-dev-server": "4.
|
|
49
|
+
"typescript": "5.0.4",
|
|
50
|
+
"webdriverio": "8.8.6",
|
|
51
|
+
"webpack": "5.80.0",
|
|
52
|
+
"webpack-cli": "5.0.2",
|
|
53
|
+
"webpack-dev-server": "4.13.3",
|
|
54
54
|
"webpack-node-externals": "3.0.0",
|
|
55
55
|
"xlsx": "0.18.5"
|
|
56
56
|
},
|
package/src/excellentexport.ts
CHANGED
package/New Text Document.txt
DELETED
|
File without changes
|