@loaders.gl/excel 4.4.2 → 5.0.0-alpha.1
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/bundled.d.ts +3 -0
- package/dist/bundled.d.ts.map +1 -0
- package/dist/bundled.js +5 -0
- package/dist/bundled.js.map +1 -0
- package/dist/dist.dev.js +31603 -17938
- package/dist/dist.min.js +44 -37
- package/dist/excel-format.d.ts +2 -0
- package/dist/excel-format.d.ts.map +1 -1
- package/dist/excel-format.js +2 -0
- package/dist/excel-format.js.map +1 -1
- package/dist/excel-loader-with-parser.d.ts +60 -0
- package/dist/excel-loader-with-parser.d.ts.map +1 -0
- package/dist/excel-loader-with-parser.js +29 -0
- package/dist/excel-loader-with-parser.js.map +1 -0
- package/dist/excel-loader.d.ts +40 -14
- package/dist/excel-loader.d.ts.map +1 -1
- package/dist/excel-loader.js +11 -13
- package/dist/excel-loader.js.map +1 -1
- package/dist/excel-worker.js +30628 -16797
- package/dist/index.cjs +175 -43
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/convert-excel-rows-to-arrow.d.ts +11 -0
- package/dist/lib/convert-excel-rows-to-arrow.d.ts.map +1 -0
- package/dist/lib/convert-excel-rows-to-arrow.js +72 -0
- package/dist/lib/convert-excel-rows-to-arrow.js.map +1 -0
- package/dist/unbundled.d.ts +3 -0
- package/dist/unbundled.d.ts.map +1 -0
- package/dist/unbundled.js +5 -0
- package/dist/unbundled.js.map +1 -0
- package/dist/workers/excel-worker.js +2 -2
- package/dist/workers/excel-worker.js.map +1 -1
- package/package.json +15 -5
- package/src/bundled.ts +9 -0
- package/src/excel-format.ts +2 -0
- package/src/excel-loader-with-parser.ts +51 -0
- package/src/excel-loader.ts +21 -21
- package/src/index.ts +5 -1
- package/src/lib/convert-excel-rows-to-arrow.ts +83 -0
- package/src/unbundled.ts +6 -0
- package/src/workers/excel-worker.ts +2 -2
package/dist/excel-format.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ export declare const ExcelFormat: {
|
|
|
5
5
|
readonly name: "Excel";
|
|
6
6
|
readonly id: "excel";
|
|
7
7
|
readonly module: "excel";
|
|
8
|
+
readonly encoding: "zip";
|
|
9
|
+
readonly format: "excel";
|
|
8
10
|
readonly extensions: ["xls", "xlsb", "xlsm", "xlsx"];
|
|
9
11
|
readonly mimeTypes: ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.ms-excel"];
|
|
10
12
|
readonly category: "table";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"excel-format.d.ts","sourceRoot":"","sources":["../src/excel-format.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"excel-format.d.ts","sourceRoot":"","sources":["../src/excel-format.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;CAaG,CAAC"}
|
package/dist/excel-format.js
CHANGED
package/dist/excel-format.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"excel-format.js","sourceRoot":"","sources":["../src/excel-format.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,+BAA+B;AAC/B,oCAAoC;AAIpC;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,IAAI,EAAE,OAAO;IACb,EAAE,EAAE,OAAO;IACX,MAAM,EAAE,OAAO;IACf,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;IAC3C,SAAS,EAAE;QACT,mEAAmE;QACnE,0BAA0B;KAC3B;IACD,QAAQ,EAAE,OAAO;IACjB,MAAM,EAAE,IAAI;CACa,CAAC"}
|
|
1
|
+
{"version":3,"file":"excel-format.js","sourceRoot":"","sources":["../src/excel-format.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,+BAA+B;AAC/B,oCAAoC;AAIpC;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,IAAI,EAAE,OAAO;IACb,EAAE,EAAE,OAAO;IACX,MAAM,EAAE,OAAO;IACf,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,OAAO;IACf,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;IAC3C,SAAS,EAAE;QACT,mEAAmE;QACnE,0BAA0B;KAC3B;IACD,QAAQ,EAAE,OAAO;IACjB,MAAM,EAAE,IAAI;CACa,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { LoaderOptions } from '@loaders.gl/loader-utils';
|
|
2
|
+
import type { ArrowTable, ObjectRowTable } from '@loaders.gl/schema';
|
|
3
|
+
/** Options for parsing Excel worksheets. */
|
|
4
|
+
export type ExcelLoaderOptions = LoaderOptions & {
|
|
5
|
+
/** Options for ExcelLoaderWithParser */
|
|
6
|
+
excel?: {
|
|
7
|
+
/** Selects row-table output or Apache Arrow output. */
|
|
8
|
+
shape?: /* 'array-row-table' | */ 'object-row-table' | 'arrow-table';
|
|
9
|
+
/** Specify which sheet to load, if omitted loads default sheet. */
|
|
10
|
+
sheet?: string;
|
|
11
|
+
/** Override the URL to the worker bundle (by default loads from unpkg.com). */
|
|
12
|
+
workerUrl?: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
/** Worker loader for Excel files. */
|
|
16
|
+
export declare const ExcelWorkerLoaderWithParser: {
|
|
17
|
+
readonly dataType: ObjectRowTable | ArrowTable;
|
|
18
|
+
readonly batchType: never;
|
|
19
|
+
readonly version: any;
|
|
20
|
+
readonly worker: true;
|
|
21
|
+
readonly options: {
|
|
22
|
+
readonly excel: {
|
|
23
|
+
readonly shape: "object-row-table";
|
|
24
|
+
readonly sheet: undefined;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
readonly name: "Excel";
|
|
28
|
+
readonly id: "excel";
|
|
29
|
+
readonly module: "excel";
|
|
30
|
+
readonly encoding: "zip";
|
|
31
|
+
readonly format: "excel";
|
|
32
|
+
readonly extensions: ["xls", "xlsb", "xlsm", "xlsx"];
|
|
33
|
+
readonly mimeTypes: ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.ms-excel"];
|
|
34
|
+
readonly category: "table";
|
|
35
|
+
readonly binary: true;
|
|
36
|
+
};
|
|
37
|
+
/** Loader for Excel files. */
|
|
38
|
+
export declare const ExcelLoaderWithParser: {
|
|
39
|
+
readonly parse: (arrayBuffer: ArrayBuffer, options?: ExcelLoaderOptions) => Promise<ObjectRowTable | ArrowTable>;
|
|
40
|
+
readonly dataType: ObjectRowTable | ArrowTable;
|
|
41
|
+
readonly batchType: never;
|
|
42
|
+
readonly version: any;
|
|
43
|
+
readonly worker: true;
|
|
44
|
+
readonly options: {
|
|
45
|
+
readonly excel: {
|
|
46
|
+
readonly shape: "object-row-table";
|
|
47
|
+
readonly sheet: undefined;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
readonly name: "Excel";
|
|
51
|
+
readonly id: "excel";
|
|
52
|
+
readonly module: "excel";
|
|
53
|
+
readonly encoding: "zip";
|
|
54
|
+
readonly format: "excel";
|
|
55
|
+
readonly extensions: ["xls", "xlsb", "xlsm", "xlsx"];
|
|
56
|
+
readonly mimeTypes: ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.ms-excel"];
|
|
57
|
+
readonly category: "table";
|
|
58
|
+
readonly binary: true;
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=excel-loader-with-parser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"excel-loader-with-parser.d.ts","sourceRoot":"","sources":["../src/excel-loader-with-parser.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAA2B,aAAa,EAAC,MAAM,0BAA0B,CAAC;AACtF,OAAO,KAAK,EAAC,UAAU,EAAE,cAAc,EAAC,MAAM,oBAAoB,CAAC;AAUnE,4CAA4C;AAC5C,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG;IAC/C,wCAAwC;IACxC,KAAK,CAAC,EAAE;QACN,uDAAuD;QACvD,KAAK,CAAC,EAA4B,AAA1B,yBAAyB,CAAC,kBAAkB,GAAG,aAAa,CAAC;QACrE,mEAAmE;QACnE,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,+EAA+E;QAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;CACH,CAAC;AAEF,qCAAqC;AACrC,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;CAE2C,CAAC;AAEpF,8BAA8B;AAC9B,eAAO,MAAM,qBAAqB;kCAGjB,WAAW,YACd,kBAAkB,KAC3B,OAAO,CAAC,cAAc,GAAG,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;CAWoD,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// loaders.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// Copyright (c) vis.gl contributors
|
|
4
|
+
import { parseExcel } from "./lib/parse-excel.js";
|
|
5
|
+
import { convertExcelRowsToArrowTable } from "./lib/convert-excel-rows-to-arrow.js";
|
|
6
|
+
import { ExcelWorkerLoader as ExcelWorkerLoaderMetadata } from "./excel-loader.js";
|
|
7
|
+
import { ExcelLoader as ExcelLoaderMetadata } from "./excel-loader.js";
|
|
8
|
+
const { preload: _ExcelWorkerLoaderPreload, ...ExcelWorkerLoaderMetadataWithoutPreload } = ExcelWorkerLoaderMetadata;
|
|
9
|
+
const { preload: _ExcelLoaderPreload, ...ExcelLoaderMetadataWithoutPreload } = ExcelLoaderMetadata;
|
|
10
|
+
/** Worker loader for Excel files. */
|
|
11
|
+
export const ExcelWorkerLoaderWithParser = {
|
|
12
|
+
...ExcelWorkerLoaderMetadataWithoutPreload
|
|
13
|
+
};
|
|
14
|
+
/** Loader for Excel files. */
|
|
15
|
+
export const ExcelLoaderWithParser = {
|
|
16
|
+
...ExcelLoaderMetadataWithoutPreload,
|
|
17
|
+
async parse(arrayBuffer, options) {
|
|
18
|
+
const excelOptions = {
|
|
19
|
+
...options,
|
|
20
|
+
excel: { ...ExcelLoaderWithParser.options.excel, ...options?.excel }
|
|
21
|
+
};
|
|
22
|
+
const rows = parseExcel(arrayBuffer, excelOptions);
|
|
23
|
+
if (excelOptions.excel?.shape === 'arrow-table') {
|
|
24
|
+
return convertExcelRowsToArrowTable(rows);
|
|
25
|
+
}
|
|
26
|
+
return { shape: 'object-row-table', data: rows };
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=excel-loader-with-parser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"excel-loader-with-parser.js","sourceRoot":"","sources":["../src/excel-loader-with-parser.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,+BAA+B;AAC/B,oCAAoC;AAIpC,OAAO,EAAC,UAAU,EAAC,6BAA0B;AAC7C,OAAO,EAAC,4BAA4B,EAAC,6CAA0C;AAC/E,OAAO,EAAC,iBAAiB,IAAI,yBAAyB,EAAC,0BAAuB;AAC9E,OAAO,EAAC,WAAW,IAAI,mBAAmB,EAAC,0BAAuB;AAElE,MAAM,EAAC,OAAO,EAAE,yBAAyB,EAAE,GAAG,uCAAuC,EAAC,GACpF,yBAAyB,CAAC;AAC5B,MAAM,EAAC,OAAO,EAAE,mBAAmB,EAAE,GAAG,iCAAiC,EAAC,GAAG,mBAAmB,CAAC;AAejG,qCAAqC;AACrC,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,GAAG,uCAAuC;CACuC,CAAC;AAEpF,8BAA8B;AAC9B,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,GAAG,iCAAiC;IACpC,KAAK,CAAC,KAAK,CACT,WAAwB,EACxB,OAA4B;QAE5B,MAAM,YAAY,GAAG;YACnB,GAAG,OAAO;YACV,KAAK,EAAE,EAAC,GAAG,qBAAqB,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,OAAO,EAAE,KAAK,EAAC;SAC7C,CAAC;QACxB,MAAM,IAAI,GAAG,UAAU,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC;QACnD,IAAI,YAAY,CAAC,KAAK,EAAE,KAAK,KAAK,aAAa,EAAE,CAAC;YAChD,OAAO,4BAA4B,CAAC,IAAI,CAAC,CAAC;QAC5C,CAAC;QACD,OAAO,EAAC,KAAK,EAAE,kBAAkB,EAAE,IAAI,EAAE,IAAI,EAAC,CAAC;IACjD,CAAC;CAC0F,CAAC"}
|
package/dist/excel-loader.d.ts
CHANGED
|
@@ -1,21 +1,43 @@
|
|
|
1
1
|
import type { LoaderOptions } from '@loaders.gl/loader-utils';
|
|
2
|
-
import type { ObjectRowTable } from '@loaders.gl/schema';
|
|
2
|
+
import type { ArrowTable, ObjectRowTable } from '@loaders.gl/schema';
|
|
3
|
+
/** Options for parsing Excel worksheets. */
|
|
3
4
|
export type ExcelLoaderOptions = LoaderOptions & {
|
|
4
5
|
/** Options for ExcelLoader */
|
|
5
6
|
excel?: {
|
|
6
|
-
/**
|
|
7
|
-
shape?: 'object-row-table';
|
|
8
|
-
/** Specify which sheet to load, if omitted loads default sheet */
|
|
7
|
+
/** Selects row-table output or Apache Arrow output. */
|
|
8
|
+
shape?: /* 'array-row-table' | */ 'object-row-table' | 'arrow-table';
|
|
9
|
+
/** Specify which sheet to load, if omitted loads default sheet. */
|
|
9
10
|
sheet?: string;
|
|
10
|
-
/** Override the URL to the worker bundle (by default loads from unpkg.com) */
|
|
11
|
+
/** Override the URL to the worker bundle (by default loads from unpkg.com). */
|
|
11
12
|
workerUrl?: string;
|
|
12
13
|
};
|
|
13
14
|
};
|
|
14
|
-
/**
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
/** Preloads the parser-bearing Excel loader implementation. */
|
|
16
|
+
declare function preload(): Promise<{
|
|
17
|
+
readonly parse: (arrayBuffer: ArrayBuffer, options?: import("./excel-loader-with-parser").ExcelLoaderOptions) => Promise<ObjectRowTable | ArrowTable>;
|
|
18
|
+
readonly dataType: ObjectRowTable | ArrowTable;
|
|
19
|
+
readonly batchType: never;
|
|
20
|
+
readonly version: any;
|
|
21
|
+
readonly worker: true;
|
|
22
|
+
readonly options: {
|
|
23
|
+
readonly excel: {
|
|
24
|
+
readonly shape: "object-row-table";
|
|
25
|
+
readonly sheet: undefined;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
readonly name: "Excel";
|
|
29
|
+
readonly id: "excel";
|
|
30
|
+
readonly module: "excel";
|
|
31
|
+
readonly encoding: "zip";
|
|
32
|
+
readonly format: "excel";
|
|
33
|
+
readonly extensions: ["xls", "xlsb", "xlsm", "xlsx"];
|
|
34
|
+
readonly mimeTypes: ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.ms-excel"];
|
|
35
|
+
readonly category: "table";
|
|
36
|
+
readonly binary: true;
|
|
37
|
+
}>;
|
|
38
|
+
/** Metadata-only worker loader for Excel files. */
|
|
17
39
|
export declare const ExcelWorkerLoader: {
|
|
18
|
-
readonly dataType: ObjectRowTable;
|
|
40
|
+
readonly dataType: ObjectRowTable | ArrowTable;
|
|
19
41
|
readonly batchType: never;
|
|
20
42
|
readonly version: any;
|
|
21
43
|
readonly worker: true;
|
|
@@ -25,20 +47,21 @@ export declare const ExcelWorkerLoader: {
|
|
|
25
47
|
readonly sheet: undefined;
|
|
26
48
|
};
|
|
27
49
|
};
|
|
50
|
+
readonly preload: typeof preload;
|
|
28
51
|
readonly name: "Excel";
|
|
29
52
|
readonly id: "excel";
|
|
30
53
|
readonly module: "excel";
|
|
54
|
+
readonly encoding: "zip";
|
|
55
|
+
readonly format: "excel";
|
|
31
56
|
readonly extensions: ["xls", "xlsb", "xlsm", "xlsx"];
|
|
32
57
|
readonly mimeTypes: ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.ms-excel"];
|
|
33
58
|
readonly category: "table";
|
|
34
59
|
readonly binary: true;
|
|
35
60
|
};
|
|
36
|
-
/**
|
|
37
|
-
* Loader for Excel files
|
|
38
|
-
*/
|
|
61
|
+
/** Metadata-only loader for Excel files. */
|
|
39
62
|
export declare const ExcelLoader: {
|
|
40
|
-
readonly
|
|
41
|
-
readonly dataType: ObjectRowTable;
|
|
63
|
+
readonly preload: typeof preload;
|
|
64
|
+
readonly dataType: ObjectRowTable | ArrowTable;
|
|
42
65
|
readonly batchType: never;
|
|
43
66
|
readonly version: any;
|
|
44
67
|
readonly worker: true;
|
|
@@ -51,9 +74,12 @@ export declare const ExcelLoader: {
|
|
|
51
74
|
readonly name: "Excel";
|
|
52
75
|
readonly id: "excel";
|
|
53
76
|
readonly module: "excel";
|
|
77
|
+
readonly encoding: "zip";
|
|
78
|
+
readonly format: "excel";
|
|
54
79
|
readonly extensions: ["xls", "xlsb", "xlsm", "xlsx"];
|
|
55
80
|
readonly mimeTypes: ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.ms-excel"];
|
|
56
81
|
readonly category: "table";
|
|
57
82
|
readonly binary: true;
|
|
58
83
|
};
|
|
84
|
+
export {};
|
|
59
85
|
//# sourceMappingURL=excel-loader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"excel-loader.d.ts","sourceRoot":"","sources":["../src/excel-loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"excel-loader.d.ts","sourceRoot":"","sources":["../src/excel-loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAS,aAAa,EAAC,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAC,UAAU,EAAE,cAAc,EAAC,MAAM,oBAAoB,CAAC;AAOnE,4CAA4C;AAC5C,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG;IAC/C,8BAA8B;IAC9B,KAAK,CAAC,EAAE;QACN,uDAAuD;QACvD,KAAK,CAAC,EAA4B,AAA1B,yBAAyB,CAAC,kBAAkB,GAAG,aAAa,CAAC;QACrE,mEAAmE;QACnE,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,+EAA+E;QAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;CACH,CAAC;AAEF,+DAA+D;AAC/D,iBAAe,OAAO;;uBAQS,cAAc,GAAG,UAAU;wBACrC,KAAK;;;;;;;;;;;;;;;;;;GANzB;AAED,mDAAmD;AACnD,eAAO,MAAM,iBAAiB;uBAEC,cAAc,GAAG,UAAU;wBACrC,KAAK;;;;;;;;;;;;;;;;;;;CAUyD,CAAC;AAEpF,4CAA4C;AAC5C,eAAO,MAAM,WAAW;;uBAdO,cAAc,GAAG,UAAU;wBACrC,KAAK;;;;;;;;;;;;;;;;;;CAgByD,CAAC"}
|
package/dist/excel-loader.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
// loaders.gl
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
import { parseExcel } from "./lib/parse-excel.js";
|
|
5
4
|
import { ExcelFormat } from "./excel-format.js";
|
|
6
5
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
7
6
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
8
|
-
const VERSION = typeof "
|
|
9
|
-
/**
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
const VERSION = typeof "5.0.0-alpha.1" !== 'undefined' ? "5.0.0-alpha.1" : 'latest';
|
|
8
|
+
/** Preloads the parser-bearing Excel loader implementation. */
|
|
9
|
+
async function preload() {
|
|
10
|
+
const { ExcelLoaderWithParser } = await import("./excel-loader-with-parser.js");
|
|
11
|
+
return ExcelLoaderWithParser;
|
|
12
|
+
}
|
|
13
|
+
/** Metadata-only worker loader for Excel files. */
|
|
12
14
|
export const ExcelWorkerLoader = {
|
|
13
15
|
...ExcelFormat,
|
|
14
16
|
dataType: null,
|
|
@@ -20,16 +22,12 @@ export const ExcelWorkerLoader = {
|
|
|
20
22
|
shape: 'object-row-table',
|
|
21
23
|
sheet: undefined // Load default Sheet
|
|
22
24
|
}
|
|
23
|
-
}
|
|
25
|
+
},
|
|
26
|
+
preload
|
|
24
27
|
};
|
|
25
|
-
/**
|
|
26
|
-
* Loader for Excel files
|
|
27
|
-
*/
|
|
28
|
+
/** Metadata-only loader for Excel files. */
|
|
28
29
|
export const ExcelLoader = {
|
|
29
30
|
...ExcelWorkerLoader,
|
|
30
|
-
|
|
31
|
-
const data = parseExcel(arrayBuffer, options);
|
|
32
|
-
return { shape: 'object-row-table', data };
|
|
33
|
-
}
|
|
31
|
+
preload
|
|
34
32
|
};
|
|
35
33
|
//# sourceMappingURL=excel-loader.js.map
|
package/dist/excel-loader.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"excel-loader.js","sourceRoot":"","sources":["../src/excel-loader.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,+BAA+B;AAC/B,oCAAoC;AAIpC,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"excel-loader.js","sourceRoot":"","sources":["../src/excel-loader.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,+BAA+B;AAC/B,oCAAoC;AAIpC,OAAO,EAAC,WAAW,EAAC,0BAAuB;AAE3C,yDAAyD;AACzD,qDAAqD;AACrD,MAAM,OAAO,GAAG,sBAAkB,KAAK,WAAW,CAAC,CAAC,iBAAa,CAAC,CAAC,QAAQ,CAAC;AAe5E,+DAA+D;AAC/D,KAAK,UAAU,OAAO;IACpB,MAAM,EAAC,qBAAqB,EAAC,GAAG,MAAM,MAAM,iCAA8B,CAAC;IAC3E,OAAO,qBAAqB,CAAC;AAC/B,CAAC;AAED,mDAAmD;AACnD,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,GAAG,WAAW;IACd,QAAQ,EAAE,IAA8C;IACxD,SAAS,EAAE,IAAa;IACxB,OAAO,EAAE,OAAO;IAChB,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACP,KAAK,EAAE;YACL,KAAK,EAAE,kBAAkB;YACzB,KAAK,EAAE,SAAS,CAAC,qBAAqB;SACvC;KACF;IACD,OAAO;CAC0E,CAAC;AAEpF,4CAA4C;AAC5C,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,GAAG,iBAAiB;IACpB,OAAO;CAC0E,CAAC"}
|