excellentexport 3.9.10 → 3.9.11

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/index.rtl.html CHANGED
@@ -1,69 +1,69 @@
1
- <html>
2
- <head>
3
- <meta charset="utf-8">
4
- <title>Export to excel test</title>
5
- <script src="dist/excellentexport.js"></script>
6
- <style>
7
- table, tr, td {
8
- border: 1px black solid;
9
- }
10
- </style>
11
- <script>
12
- function openFile(format) {
13
- return ExcellentExport.convert({
14
- anchor: 'anchorNewApi-' + format,
15
- filename: 'data_123.' + format,
16
- format: format,
17
- rtl: true,
18
- }, [{
19
- name: 'Sheet Name Here 1',
20
- from: {
21
- table: 'datatable'
22
- }
23
- }]);
24
- }
25
- </script>
26
- </head>
27
- <body>
28
- <h1>ExcellentExport.js RTL text</h1>
29
-
30
- Check on <a href="http://jordiburgos.com">jordiburgos.com</a> and <a href="https://github.com/jmaister/excellentexport">GitHub</a>.
31
-
32
- <h3>Test page</h3>
33
-
34
- Test table
35
- <table id="datatable">
36
- <thead>
37
- <tr>
38
- <th>االلغة</th>
39
- <th>عدد الأحرف</th>
40
- <th>Country</th>
41
- <th>miص-ص</th>
42
- </tr>
43
- </thead>
44
- <tbody>
45
- <tr>
46
- <td>العربية</td>
47
- <td>٢٨</td>
48
- <td>Earth</td>
49
- <td>ن0ن</td>
50
- </tr>
51
- <tr>
52
- <td>العبرية</td>
53
- <td>٢٢</td>
54
- <td>Isreal</td>
55
- <td>ضSض</td>
56
- </tr>
57
- </tbody>
58
- </table>
59
-
60
- <br/>
61
-
62
- <a download="data_123.xls" href="#" id="anchorNewApi-xls" onclick="return openFile('xls');">Export to Excel: XLS format</a>
63
- <br/>
64
- <a download="data_123.xlsx" href="#" id="anchorNewApi-xlsx" onclick="return openFile('xlsx');">Export to Excel: XLSX format</a>
65
- <br/>
66
- <a download="data_123.csv" href="#" id="anchorNewApi-csv" onclick="return openFile('csv');">Export to CSV</a>
67
-
68
- </body>
1
+ <html>
2
+ <head>
3
+ <meta charset="utf-8">
4
+ <title>Export to excel test</title>
5
+ <script src="dist/excellentexport.js"></script>
6
+ <style>
7
+ table, tr, td {
8
+ border: 1px black solid;
9
+ }
10
+ </style>
11
+ <script>
12
+ function openFile(format) {
13
+ return ExcellentExport.convert({
14
+ anchor: 'anchorNewApi-' + format,
15
+ filename: 'data_123.' + format,
16
+ format: format,
17
+ rtl: true,
18
+ }, [{
19
+ name: 'Sheet Name Here 1',
20
+ from: {
21
+ table: 'datatable'
22
+ }
23
+ }]);
24
+ }
25
+ </script>
26
+ </head>
27
+ <body>
28
+ <h1>ExcellentExport.js RTL text</h1>
29
+
30
+ Check on <a href="http://jordiburgos.com">jordiburgos.com</a> and <a href="https://github.com/jmaister/excellentexport">GitHub</a>.
31
+
32
+ <h3>Test page</h3>
33
+
34
+ Test table
35
+ <table id="datatable">
36
+ <thead>
37
+ <tr>
38
+ <th>االلغة</th>
39
+ <th>عدد الأحرف</th>
40
+ <th>Country</th>
41
+ <th>miص-ص</th>
42
+ </tr>
43
+ </thead>
44
+ <tbody>
45
+ <tr>
46
+ <td>العربية</td>
47
+ <td>٢٨</td>
48
+ <td>Earth</td>
49
+ <td>ن0ن</td>
50
+ </tr>
51
+ <tr>
52
+ <td>العبرية</td>
53
+ <td>٢٢</td>
54
+ <td>Isreal</td>
55
+ <td>ضSض</td>
56
+ </tr>
57
+ </tbody>
58
+ </table>
59
+
60
+ <br/>
61
+
62
+ <a download="data_123.xls" href="#" id="anchorNewApi-xls" onclick="return openFile('xls');">Export to Excel: XLS format</a>
63
+ <br/>
64
+ <a download="data_123.xlsx" href="#" id="anchorNewApi-xlsx" onclick="return openFile('xlsx');">Export to Excel: XLSX format</a>
65
+ <br/>
66
+ <a download="data_123.csv" href="#" id="anchorNewApi-csv" onclick="return openFile('csv');">Export to CSV</a>
67
+
68
+ </body>
69
69
  </html>
package/jest.config.ts CHANGED
@@ -1,203 +1,203 @@
1
- /*
2
- * For a detailed explanation regarding each configuration property and type check, visit:
3
- * https://jestjs.io/docs/en/configuration.html
4
- */
5
-
6
- export default {
7
- // All imported modules in your tests should be mocked automatically
8
- // automock: false,
9
-
10
- // Stop running tests after `n` failures
11
- // bail: 0,
12
-
13
- // The directory where Jest should store its cached dependency information
14
- // cacheDirectory: "/tmp/jest_rs",
15
-
16
- // Automatically clear mock calls and instances between every test
17
- // clearMocks: false,
18
-
19
- // Indicates whether the coverage information should be collected while executing the test
20
- // collectCoverage: false,
21
-
22
- // An array of glob patterns indicating a set of files for which coverage information should be collected
23
- // collectCoverageFrom: undefined,
24
-
25
- // The directory where Jest should output its coverage files
26
- coverageDirectory: "coverage",
27
-
28
- // An array of regexp pattern strings used to skip coverage collection
29
- // coveragePathIgnorePatterns: [
30
- // "/node_modules/"
31
- // ],
32
-
33
- // Indicates which provider should be used to instrument code for coverage
34
- coverageProvider: "v8",
35
-
36
- // A list of reporter names that Jest uses when writing coverage reports
37
- // coverageReporters: [
38
- // "json",
39
- // "text",
40
- // "lcov",
41
- // "clover"
42
- // ],
43
-
44
- // An object that configures minimum threshold enforcement for coverage results
45
- // coverageThreshold: undefined,
46
-
47
- // A path to a custom dependency extractor
48
- // dependencyExtractor: undefined,
49
-
50
- // Make calling deprecated APIs throw helpful error messages
51
- // errorOnDeprecated: false,
52
-
53
- // Force coverage collection from ignored files using an array of glob patterns
54
- // forceCoverageMatch: [],
55
-
56
- // A path to a module which exports an async function that is triggered once before all test suites
57
- // globalSetup: undefined,
58
-
59
- // A path to a module which exports an async function that is triggered once after all test suites
60
- // globalTeardown: undefined,
61
-
62
- // A set of global variables that need to be available in all test environments
63
- // globals: {},
64
-
65
- // The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers.
66
- // maxWorkers: "50%",
67
-
68
- // An array of directory names to be searched recursively up from the requiring module's location
69
- // moduleDirectories: [
70
- // "node_modules"
71
- // ],
72
-
73
- // An array of file extensions your modules use
74
- // moduleFileExtensions: [
75
- // "js",
76
- // "json",
77
- // "jsx",
78
- // "ts",
79
- // "tsx",
80
- // "node"
81
- // ],
82
-
83
- // A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
84
- // moduleNameMapper: {},
85
-
86
- // An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
87
- // modulePathIgnorePatterns: [],
88
-
89
- // Activates notifications for test results
90
- // notify: false,
91
-
92
- // An enum that specifies notification mode. Requires { notify: true }
93
- // notifyMode: "failure-change",
94
-
95
- // A preset that is used as a base for Jest's configuration
96
- // preset: undefined,
97
- preset: 'jest-puppeteer',
98
-
99
- // Run tests from one or more projects
100
- // projects: undefined,
101
-
102
- // Use this configuration option to add custom reporters to Jest
103
- // reporters: undefined,
104
-
105
- // Automatically reset mock state between every test
106
- // resetMocks: false,
107
-
108
- // Reset the module registry before running each individual test
109
- // resetModules: false,
110
-
111
- // A path to a custom resolver
112
- // resolver: undefined,
113
-
114
- // Automatically restore mock state between every test
115
- // restoreMocks: false,
116
-
117
- // The root directory that Jest should scan for tests and modules within
118
- // rootDir: undefined,
119
-
120
- // A list of paths to directories that Jest should use to search for files in
121
- // roots: [
122
- // "<rootDir>"
123
- // ],
124
- roots: [
125
- "src",
126
- "test"
127
- ],
128
-
129
- // Allows you to use a custom runner instead of Jest's default test runner
130
- // runner: "jest-runner",
131
-
132
- // The paths to modules that run some code to configure or set up the testing environment before each test
133
- // setupFiles: [],
134
-
135
- // A list of paths to modules that run some code to configure or set up the testing framework before each test
136
- // setupFilesAfterEnv: [],
137
-
138
- // The number of seconds after which a test is considered as slow and reported as such in the results.
139
- // slowTestThreshold: 5,
140
-
141
- // A list of paths to snapshot serializer modules Jest should use for snapshot testing
142
- // snapshotSerializers: [],
143
-
144
- // The test environment that will be used for testing
145
- // testEnvironment: "jest-environment-jsdom",
146
- testEnvironment: "jsdom",
147
-
148
- // Options that will be passed to the testEnvironment
149
- // testEnvironmentOptions: {},
150
-
151
- // Adds a location field to test results
152
- // testLocationInResults: false,
153
-
154
- // The glob patterns Jest uses to detect test files
155
- // testMatch: [
156
- // "**/__tests__/**/*.[jt]s?(x)",
157
- // "**/?(*.)+(spec|test).[tj]s?(x)"
158
- // ],
159
-
160
- // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
161
- // testPathIgnorePatterns: [
162
- // "/node_modules/"
163
- // ],
164
-
165
- // The regexp pattern or array of patterns that Jest uses to detect test files
166
- // testRegex: [],
167
-
168
- // This option allows the use of a custom results processor
169
- // testResultsProcessor: undefined,
170
-
171
- // This option allows use of a custom test runner
172
- // testRunner: "jasmine2",
173
-
174
- // This option sets the URL for the jsdom environment. It is reflected in properties such as location.href
175
- // testURL: "http://localhost",
176
-
177
- // Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout"
178
- // timers: "real",
179
-
180
- // A map from regular expressions to paths to transformers
181
- // transform: undefined,
182
- transform: {
183
- "^.+\\.ts?$": "ts-jest"
184
- },
185
-
186
- // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
187
- // transformIgnorePatterns: [
188
- // "/node_modules/",
189
- // "\\.pnp\\.[^\\/]+$"
190
- // ],
191
-
192
- // An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
193
- // unmockedModulePathPatterns: undefined,
194
-
195
- // Indicates whether each individual test should be reported during the run
196
- // verbose: undefined,
197
-
198
- // An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
199
- // watchPathIgnorePatterns: [],
200
-
201
- // Whether to use watchman for file crawling
202
- // watchman: true,
203
- };
1
+ /*
2
+ * For a detailed explanation regarding each configuration property and type check, visit:
3
+ * https://jestjs.io/docs/en/configuration.html
4
+ */
5
+
6
+ export default {
7
+ // All imported modules in your tests should be mocked automatically
8
+ // automock: false,
9
+
10
+ // Stop running tests after `n` failures
11
+ // bail: 0,
12
+
13
+ // The directory where Jest should store its cached dependency information
14
+ // cacheDirectory: "/tmp/jest_rs",
15
+
16
+ // Automatically clear mock calls and instances between every test
17
+ // clearMocks: false,
18
+
19
+ // Indicates whether the coverage information should be collected while executing the test
20
+ // collectCoverage: false,
21
+
22
+ // An array of glob patterns indicating a set of files for which coverage information should be collected
23
+ // collectCoverageFrom: undefined,
24
+
25
+ // The directory where Jest should output its coverage files
26
+ coverageDirectory: "coverage",
27
+
28
+ // An array of regexp pattern strings used to skip coverage collection
29
+ // coveragePathIgnorePatterns: [
30
+ // "/node_modules/"
31
+ // ],
32
+
33
+ // Indicates which provider should be used to instrument code for coverage
34
+ coverageProvider: "v8",
35
+
36
+ // A list of reporter names that Jest uses when writing coverage reports
37
+ // coverageReporters: [
38
+ // "json",
39
+ // "text",
40
+ // "lcov",
41
+ // "clover"
42
+ // ],
43
+
44
+ // An object that configures minimum threshold enforcement for coverage results
45
+ // coverageThreshold: undefined,
46
+
47
+ // A path to a custom dependency extractor
48
+ // dependencyExtractor: undefined,
49
+
50
+ // Make calling deprecated APIs throw helpful error messages
51
+ // errorOnDeprecated: false,
52
+
53
+ // Force coverage collection from ignored files using an array of glob patterns
54
+ // forceCoverageMatch: [],
55
+
56
+ // A path to a module which exports an async function that is triggered once before all test suites
57
+ // globalSetup: undefined,
58
+
59
+ // A path to a module which exports an async function that is triggered once after all test suites
60
+ // globalTeardown: undefined,
61
+
62
+ // A set of global variables that need to be available in all test environments
63
+ // globals: {},
64
+
65
+ // The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers.
66
+ // maxWorkers: "50%",
67
+
68
+ // An array of directory names to be searched recursively up from the requiring module's location
69
+ // moduleDirectories: [
70
+ // "node_modules"
71
+ // ],
72
+
73
+ // An array of file extensions your modules use
74
+ // moduleFileExtensions: [
75
+ // "js",
76
+ // "json",
77
+ // "jsx",
78
+ // "ts",
79
+ // "tsx",
80
+ // "node"
81
+ // ],
82
+
83
+ // A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
84
+ // moduleNameMapper: {},
85
+
86
+ // An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
87
+ // modulePathIgnorePatterns: [],
88
+
89
+ // Activates notifications for test results
90
+ // notify: false,
91
+
92
+ // An enum that specifies notification mode. Requires { notify: true }
93
+ // notifyMode: "failure-change",
94
+
95
+ // A preset that is used as a base for Jest's configuration
96
+ // preset: undefined,
97
+ preset: 'jest-puppeteer',
98
+
99
+ // Run tests from one or more projects
100
+ // projects: undefined,
101
+
102
+ // Use this configuration option to add custom reporters to Jest
103
+ // reporters: undefined,
104
+
105
+ // Automatically reset mock state between every test
106
+ // resetMocks: false,
107
+
108
+ // Reset the module registry before running each individual test
109
+ // resetModules: false,
110
+
111
+ // A path to a custom resolver
112
+ // resolver: undefined,
113
+
114
+ // Automatically restore mock state between every test
115
+ // restoreMocks: false,
116
+
117
+ // The root directory that Jest should scan for tests and modules within
118
+ // rootDir: undefined,
119
+
120
+ // A list of paths to directories that Jest should use to search for files in
121
+ // roots: [
122
+ // "<rootDir>"
123
+ // ],
124
+ roots: [
125
+ "src",
126
+ "test"
127
+ ],
128
+
129
+ // Allows you to use a custom runner instead of Jest's default test runner
130
+ // runner: "jest-runner",
131
+
132
+ // The paths to modules that run some code to configure or set up the testing environment before each test
133
+ // setupFiles: [],
134
+
135
+ // A list of paths to modules that run some code to configure or set up the testing framework before each test
136
+ // setupFilesAfterEnv: [],
137
+
138
+ // The number of seconds after which a test is considered as slow and reported as such in the results.
139
+ // slowTestThreshold: 5,
140
+
141
+ // A list of paths to snapshot serializer modules Jest should use for snapshot testing
142
+ // snapshotSerializers: [],
143
+
144
+ // The test environment that will be used for testing
145
+ // testEnvironment: "jest-environment-jsdom",
146
+ testEnvironment: "jsdom",
147
+
148
+ // Options that will be passed to the testEnvironment
149
+ // testEnvironmentOptions: {},
150
+
151
+ // Adds a location field to test results
152
+ // testLocationInResults: false,
153
+
154
+ // The glob patterns Jest uses to detect test files
155
+ // testMatch: [
156
+ // "**/__tests__/**/*.[jt]s?(x)",
157
+ // "**/?(*.)+(spec|test).[tj]s?(x)"
158
+ // ],
159
+
160
+ // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
161
+ // testPathIgnorePatterns: [
162
+ // "/node_modules/"
163
+ // ],
164
+
165
+ // The regexp pattern or array of patterns that Jest uses to detect test files
166
+ // testRegex: [],
167
+
168
+ // This option allows the use of a custom results processor
169
+ // testResultsProcessor: undefined,
170
+
171
+ // This option allows use of a custom test runner
172
+ // testRunner: "jasmine2",
173
+
174
+ // This option sets the URL for the jsdom environment. It is reflected in properties such as location.href
175
+ // testURL: "http://localhost",
176
+
177
+ // Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout"
178
+ // timers: "real",
179
+
180
+ // A map from regular expressions to paths to transformers
181
+ // transform: undefined,
182
+ transform: {
183
+ "^.+\\.ts?$": "ts-jest"
184
+ },
185
+
186
+ // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
187
+ // transformIgnorePatterns: [
188
+ // "/node_modules/",
189
+ // "\\.pnp\\.[^\\/]+$"
190
+ // ],
191
+
192
+ // An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
193
+ // unmockedModulePathPatterns: undefined,
194
+
195
+ // Indicates whether each individual test should be reported during the run
196
+ // verbose: undefined,
197
+
198
+ // An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
199
+ // watchPathIgnorePatterns: [],
200
+
201
+ // Whether to use watchman for file crawling
202
+ // watchman: true,
203
+ };
package/package.json CHANGED
@@ -1,46 +1,46 @@
1
- {
2
- "name": "excellentexport",
3
- "version": "3.9.10",
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
- "test": "jest --coverage",
25
- "watch": "jest --watch",
26
- "postinstall": "node scripts/postinstall.js"
27
- },
28
- "main": "dist/excellentexport.js",
29
- "devDependencies": {
30
- "@types/jest": "30.0.0",
31
- "@types/jest-environment-puppeteer": "5.0.6",
32
- "@types/node": "24.0.11",
33
- "jest": "30.0.4",
34
- "jest-environment-jsdom": "30.0.4",
35
- "jest-puppeteer": "11.0.0",
36
- "puppeteer": "24.12.0",
37
- "ts-jest": "29.4.0",
38
- "ts-loader": "9.5.2",
39
- "ts-node": "10.9.2",
40
- "typescript": "5.8.3",
41
- "webpack": "5.99.9",
42
- "webpack-cli": "6.0.1",
43
- "webpack-dev-server": "5.2.2",
44
- "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz"
45
- }
46
- }
1
+ {
2
+ "name": "excellentexport",
3
+ "version": "3.9.11",
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
+ "test": "jest --coverage",
25
+ "watch": "jest --watch",
26
+ "postinstall": "node scripts/postinstall.js"
27
+ },
28
+ "main": "dist/excellentexport.js",
29
+ "devDependencies": {
30
+ "@types/jest": "30.0.0",
31
+ "@types/jest-environment-puppeteer": "5.0.6",
32
+ "@types/node": "25.0.3",
33
+ "jest": "30.2.0",
34
+ "jest-environment-jsdom": "30.2.0",
35
+ "jest-puppeteer": "11.0.0",
36
+ "puppeteer": "24.34.0",
37
+ "ts-jest": "29.4.6",
38
+ "ts-loader": "9.5.4",
39
+ "ts-node": "10.9.2",
40
+ "typescript": "5.9.3",
41
+ "webpack": "5.104.1",
42
+ "webpack-cli": "6.0.1",
43
+ "webpack-dev-server": "5.2.2",
44
+ "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz"
45
+ }
46
+ }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * ExcellentExport 3.9.10
2
+ * ExcellentExport 3.9.11
3
3
  * A client side Javascript export to Excel.
4
4
  *
5
5
  * @author: Jordi Burgos (jordiburgos@gmail.com)
@@ -54,7 +54,7 @@ export type ExcellentExportType = {
54
54
 
55
55
  const ExcellentExport = function() {
56
56
 
57
- const version = "3.9.10";
57
+ const version = "3.9.11";
58
58
 
59
59
  /*
60
60
  ExcellentExport.convert(options, sheets);