excellentexport 3.9.3 → 3.9.6

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/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,60 +1,58 @@
1
- {
2
- "name": "excellentexport",
3
- "version": "3.9.3",
4
- "description": "Client side JavaScript export to Excel or CSV",
5
- "license": "MIT",
6
- "homepage": "http://jordiburgos.com",
7
- "author": "Jordi Burgos <jordiburgos@gmail.com>",
8
- "bugs": "https://github.com/jmaister/excellentexport/issues",
9
- "repository": {
10
- "type": "git",
11
- "url": "git://github.com/jmaister/excellentexport.git"
12
- },
13
- "keywords": [
14
- "excel",
15
- "export",
16
- "csv",
17
- "javascript",
18
- "client",
19
- "side"
20
- ],
21
- "scripts": {
22
- "build": "webpack --config webpack.config.js --progress --mode development --watch",
23
- "prod": "webpack --config webpack.config.js --progress --mode production",
24
- "test": "jest --coverage && coveralls < coverage/lcov.info",
25
- "jest": "jest --coverage",
26
- "watch": "jest --watch"
27
- },
28
- "main": "dist/excellentexport.js",
29
- "devDependencies": {
30
- "@babel/core": "7.20.12",
31
- "@babel/plugin-proposal-class-properties": "7.18.6",
32
- "@babel/plugin-transform-flow-strip-types": "7.19.0",
33
- "@babel/preset-env": "7.20.2",
34
- "@types/jest": "29.4.0",
35
- "@types/jest-environment-puppeteer": "5.0.3",
36
- "@types/node": "18.13.0",
37
- "babel-loader": "9.1.2",
38
- "blob-polyfill": "7.0.20220408",
39
- "coveralls": "3.1.1",
40
- "cross-env": "7.0.3",
41
- "html-loader": "4.2.0",
42
- "jest": "29.4.2",
43
- "jest-environment-jsdom": "^29.4.2",
44
- "jest-puppeteer": "7.0.0",
45
- "puppeteer": "19.6.3",
46
- "ts-jest": "29.0.5",
47
- "ts-loader": "9.4.2",
48
- "ts-node": "10.9.1",
49
- "typescript": "4.9.5",
50
- "webdriverio": "8.3.5",
51
- "webpack": "5.75.0",
52
- "webpack-cli": "5.0.1",
53
- "webpack-dev-server": "4.11.1",
54
- "webpack-node-externals": "3.0.0",
55
- "xlsx": "0.18.5"
56
- },
57
- "resolutions": {
58
- "json-schema": "0.4.0"
59
- }
60
- }
1
+ {
2
+ "name": "excellentexport",
3
+ "version": "3.9.6",
4
+ "description": "Client side JavaScript export to Excel or CSV",
5
+ "license": "MIT",
6
+ "homepage": "https://jordiburgos.com",
7
+ "author": "Jordi Burgos <jordiburgos@gmail.com>",
8
+ "bugs": "https://github.com/jmaister/excellentexport/issues",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git://github.com/jmaister/excellentexport.git"
12
+ },
13
+ "keywords": [
14
+ "excel",
15
+ "export",
16
+ "csv",
17
+ "javascript",
18
+ "client",
19
+ "side"
20
+ ],
21
+ "scripts": {
22
+ "build": "webpack --config webpack.config.js --progress --mode development --watch",
23
+ "prod": "webpack --config webpack.config.js --progress --mode production",
24
+ "coveralls": "jest --coverage && coveralls < coverage/lcov.info",
25
+ "test": "jest --coverage",
26
+ "watch": "jest --watch",
27
+ "postinstall": "node scripts/postinstall.js"
28
+ },
29
+ "main": "dist/excellentexport.js",
30
+ "devDependencies": {
31
+ "@babel/core": "7.22.1",
32
+ "@babel/plugin-proposal-class-properties": "7.18.6",
33
+ "@babel/plugin-transform-flow-strip-types": "7.21.0",
34
+ "@babel/preset-env": "7.22.4",
35
+ "@types/jest": "29.5.2",
36
+ "@types/jest-environment-puppeteer": "5.0.3",
37
+ "@types/node": "20.2.5",
38
+ "babel-loader": "9.1.2",
39
+ "blob-polyfill": "7.0.20220408",
40
+ "coveralls": "3.1.1",
41
+ "cross-env": "7.0.3",
42
+ "html-loader": "4.2.0",
43
+ "jest": "29.5.0",
44
+ "jest-environment-jsdom": "^29.5.0",
45
+ "jest-puppeteer": "9.0.0",
46
+ "puppeteer": "20.5.0",
47
+ "ts-jest": "29.1.0",
48
+ "ts-loader": "9.4.3",
49
+ "ts-node": "10.9.1",
50
+ "typescript": "5.1.3",
51
+ "webdriverio": "8.10.6",
52
+ "webpack": "5.85.0",
53
+ "webpack-cli": "5.1.1",
54
+ "webpack-dev-server": "4.15.0",
55
+ "webpack-node-externals": "3.0.0",
56
+ "xlsx": "0.18.5"
57
+ }
58
+ }
@@ -0,0 +1,3 @@
1
+ const color = '\x1b[33m%s\x1b[0m';
2
+ console.log(color, "Thank you for installing ExcellentExport!");
3
+ console.log(color, "If you like ExcellentExport, please consider a donation: https://github.com/sponsors/jmaister");
@@ -54,7 +54,7 @@ export type ExcellentExportType = {
54
54
 
55
55
  const ExcellentExport = function() {
56
56
 
57
- const version = "3.9.3";
57
+ const version = "3.9.6";
58
58
 
59
59
  /*
60
60
  ExcellentExport.convert(options, sheets);
File without changes