excellentexport 3.9.2 → 3.9.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "excellentexport",
3
- "version": "3.9.2",
3
+ "version": "3.9.3",
4
4
  "description": "Client side JavaScript export to Excel or CSV",
5
5
  "license": "MIT",
6
6
  "homepage": "http://jordiburgos.com",
@@ -26,7 +26,6 @@
26
26
  "watch": "jest --watch"
27
27
  },
28
28
  "main": "dist/excellentexport.js",
29
- "types": "dist/index.d.ts",
30
29
  "devDependencies": {
31
30
  "@babel/core": "7.20.12",
32
31
  "@babel/plugin-proposal-class-properties": "7.18.6",
@@ -8,7 +8,7 @@
8
8
  */
9
9
 
10
10
  import * as XLSX from 'xlsx';
11
- import { CellTypes, FormatDefinition, PredefinedFormat } from './format';
11
+ import { CellTypes, FormatDefinition, PredefinedFormat, CellFormats, CellPatterns } from './format';
12
12
 
13
13
  import * as utils from './utils';
14
14
 
@@ -42,9 +42,19 @@ export interface SheetOptions {
42
42
  formats?: (FormatDefinition | null)[],
43
43
  }
44
44
 
45
+ /*
46
+ export type ExcellentExportType = {
47
+ version: () => string,
48
+ formats: CellFormats,
49
+ excel: (anchor:(HTMLAnchorElement|string), table:HTMLTableElement, name:string) => void,
50
+ csv: (anchor:(HTMLAnchorElement|string), table:HTMLTableElement, delimiter?:string, newLine?:string) => void,
51
+ convert: (options:ConvertOptions, sheets:SheetOptions[]) => void,
52
+ }
53
+ */
54
+
45
55
  const ExcellentExport = function() {
46
56
 
47
- const version = "3.9.1";
57
+ const version = "3.9.3";
48
58
 
49
59
  /*
50
60
  ExcellentExport.convert(options, sheets);
@@ -208,7 +218,6 @@ const ExcellentExport = function() {
208
218
  version: function(): string {
209
219
  return version;
210
220
  },
211
- formats: PredefinedFormat,
212
221
  excel: function(anchor:(HTMLAnchorElement|string), table:HTMLTableElement, name:string) {
213
222
  table = utils.getTable(table);
214
223
  anchor = utils.getAnchor(anchor);
@@ -235,7 +244,10 @@ const ExcellentExport = function() {
235
244
  },
236
245
  convert: function(options:ConvertOptions, sheets:SheetOptions[]) {
237
246
  return convert(options, sheets);
238
- }
247
+ },
248
+ formats: PredefinedFormat,
249
+ cellTypes: CellTypes,
250
+ cellPatterns: CellPatterns,
239
251
  };
240
252
  }();
241
253
 
package/dist/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from './excellentexport';
2
- export * from './format';
3
- export * from './utils';
package/src/index.ts DELETED
@@ -1,4 +0,0 @@
1
-
2
- export * from './excellentexport';
3
- export * from './format';
4
- export * from './utils';