@cobol-ts/spreadsheet-excel 0.0.44 → 0.0.47
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 +5 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/src/spreadsheet.preview.d.ts +15 -0
- package/dist/src/spreadsheet.preview.js +68 -0
- package/dist/src/spreadsheet.preview.js.map +1 -0
- package/dist/src/spreadsheet.preview.spec.d.ts +1 -0
- package/dist/src/spreadsheet.preview.spec.js +32 -0
- package/dist/src/spreadsheet.preview.spec.js.map +1 -0
- package/index.ts +2 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -5,3 +5,8 @@ SheetJS adapter for the workbook-independent `SpreadsheetReader` port in `@cobol
|
|
|
5
5
|
Supports XLSX input, named worksheets, selected A1 columns and original row numbers. Simple zero-padded numeric identifiers, rich text and cached formula values are retained; formulas without cached values and Excel cell errors are rejected. Missing worksheets list the available names. File and parser failures identify the workbook.
|
|
6
6
|
|
|
7
7
|
The dependency is pinned to the official SheetJS CE 0.20.3 tarball rather than the outdated npm registry release. Regenerate package metadata and install dependencies using the normal workspace process. Regression fixtures are local to this package and include the original Demo characteristics workbook that ExcelJS could not read.
|
|
8
|
+
|
|
9
|
+
The `previewSpreadsheet` adapter also exposes bounded read-only CSV and XLSX
|
|
10
|
+
previews for Config Explorer. It accepts already authorised bytes, returns plain
|
|
11
|
+
strings in row/column order, preserves textual CSV identifiers, and displays
|
|
12
|
+
cached Excel values. It does not execute formulas or alter extraction semantics.
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./src/excel.spreadsheet"), exports);
|
|
18
|
+
__exportStar(require("./src/spreadsheet.preview"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAuC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAuC;AAEvC,4DAAyC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface TableSheetPreview {
|
|
2
|
+
readonly name: string;
|
|
3
|
+
readonly columns: readonly string[];
|
|
4
|
+
readonly rows: readonly (readonly string[])[];
|
|
5
|
+
readonly truncated: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface SpreadsheetPreview {
|
|
8
|
+
readonly format: 'csv' | 'xlsx';
|
|
9
|
+
readonly sheets: readonly TableSheetPreview[];
|
|
10
|
+
readonly truncated: boolean;
|
|
11
|
+
}
|
|
12
|
+
/** A bounded, read-only view. Unlike extraction, display retains worksheet layout
|
|
13
|
+
* and Excel's formatted cell text. CSV cells remain text, including leading zeroes.
|
|
14
|
+
* Formulae are never evaluated; Excel displays stored results only. */
|
|
15
|
+
export declare function previewSpreadsheet(bytes: Uint8Array, format: 'csv' | 'xlsx'): SpreadsheetPreview;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.previewSpreadsheet = previewSpreadsheet;
|
|
4
|
+
const xlsx_1 = require("xlsx");
|
|
5
|
+
const rowLimit = 200;
|
|
6
|
+
const columnLimit = 40;
|
|
7
|
+
const sheetLimit = 20;
|
|
8
|
+
const cellLimit = 2000;
|
|
9
|
+
// Limit the response independently of the compressed file size.
|
|
10
|
+
const sheetCharacterLimit = 50_000;
|
|
11
|
+
function displayCell(cell, format) {
|
|
12
|
+
if (!cell)
|
|
13
|
+
return '';
|
|
14
|
+
if (format === 'xlsx' && cell.w !== undefined)
|
|
15
|
+
return cell.w;
|
|
16
|
+
if (cell.v !== undefined && cell.v !== null)
|
|
17
|
+
return String(cell.v);
|
|
18
|
+
return cell.f === undefined ? '' : `=${cell.f}`;
|
|
19
|
+
}
|
|
20
|
+
function previewSheet(name, sheet, format) {
|
|
21
|
+
const ref = sheet['!fullref'] ?? sheet['!ref'];
|
|
22
|
+
if (!ref)
|
|
23
|
+
return { name, columns: [], rows: [], truncated: false };
|
|
24
|
+
const range = xlsx_1.utils.decode_range(ref);
|
|
25
|
+
const width = Math.min(range.e.c + 1, columnLimit);
|
|
26
|
+
const height = Math.min(range.e.r + 1, rowLimit);
|
|
27
|
+
const columns = Array.from({ length: width }, (_, c) => xlsx_1.utils.encode_col(c));
|
|
28
|
+
const rows = [];
|
|
29
|
+
let truncated = range.e.r >= rowLimit || range.e.c >= columnLimit;
|
|
30
|
+
let characters = 0;
|
|
31
|
+
for (let r = 0; r < height; r++) {
|
|
32
|
+
const row = columns.map((_, c) => {
|
|
33
|
+
const text = displayCell(sheet[xlsx_1.utils.encode_cell({ r, c })], format);
|
|
34
|
+
if (text.length <= cellLimit)
|
|
35
|
+
return text;
|
|
36
|
+
truncated = true;
|
|
37
|
+
return text.slice(0, cellLimit) + '…';
|
|
38
|
+
});
|
|
39
|
+
characters += row.reduce((sum, cell) => sum + cell.length, 0);
|
|
40
|
+
if (characters > sheetCharacterLimit) {
|
|
41
|
+
truncated = true;
|
|
42
|
+
break;
|
|
43
|
+
}
|
|
44
|
+
rows.push(row);
|
|
45
|
+
}
|
|
46
|
+
return { name, columns, rows, truncated };
|
|
47
|
+
}
|
|
48
|
+
/** A bounded, read-only view. Unlike extraction, display retains worksheet layout
|
|
49
|
+
* and Excel's formatted cell text. CSV cells remain text, including leading zeroes.
|
|
50
|
+
* Formulae are never evaluated; Excel displays stored results only. */
|
|
51
|
+
function previewSpreadsheet(bytes, format) {
|
|
52
|
+
const options = { sheetRows: rowLimit + 1, cellText: true, cellFormula: true, sheetStubs: true };
|
|
53
|
+
let workbook;
|
|
54
|
+
if (format === 'xlsx') {
|
|
55
|
+
if (bytes.length < 4 || bytes[0] !== 0x50 || bytes[1] !== 0x4b || bytes[2] !== 3 || bytes[3] !== 4)
|
|
56
|
+
throw new Error('Not an XLSX workbook');
|
|
57
|
+
workbook = (0, xlsx_1.read)(bytes, { ...options, type: 'array' });
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
if (bytes.includes(0))
|
|
61
|
+
throw new Error('Binary CSV content');
|
|
62
|
+
const text = new TextDecoder('utf-8', { fatal: true }).decode(bytes);
|
|
63
|
+
workbook = (0, xlsx_1.read)(text, { ...options, type: 'string', raw: true, FS: ',' });
|
|
64
|
+
}
|
|
65
|
+
const sheets = workbook.SheetNames.slice(0, sheetLimit).map(name => previewSheet(name, workbook.Sheets[name], format));
|
|
66
|
+
return { format, sheets, truncated: workbook.SheetNames.length > sheetLimit || sheets.some(sheet => sheet.truncated) };
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=spreadsheet.preview.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spreadsheet.preview.js","sourceRoot":"","sources":["../../src/spreadsheet.preview.ts"],"names":[],"mappings":";;AAuDA,gDAcC;AArED,+BAAiE;AAcjE,MAAM,QAAQ,GAAG,GAAG,CAAA;AACpB,MAAM,WAAW,GAAG,EAAE,CAAA;AACtB,MAAM,UAAU,GAAG,EAAE,CAAA;AACrB,MAAM,SAAS,GAAG,IAAI,CAAA;AACtB,gEAAgE;AAChE,MAAM,mBAAmB,GAAG,MAAM,CAAA;AAElC,SAAS,WAAW,CAAC,IAA4B,EAAE,MAAsB;IACrE,IAAI,CAAC,IAAI;QAAE,OAAO,EAAE,CAAA;IACpB,IAAI,MAAM,KAAK,MAAM,IAAI,IAAI,CAAC,CAAC,KAAK,SAAS;QAAE,OAAO,IAAI,CAAC,CAAC,CAAA;IAC5D,IAAI,IAAI,CAAC,C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
|
|
3
|
+
const promises_1 = require("node:fs/promises");
|
|
4
|
+
const node_path_1 = require("node:path");
|
|
5
|
+
const spreadsheet_preview_1 = require("./spreadsheet.preview");
|
|
6
|
+
const csv = (text) => (0, spreadsheet_preview_1.previewSpreadsheet)(Buffer.from(text, 'utf8'), 'csv');
|
|
7
|
+
test('CSV preview preserves identifiers, quoted commas and embedded newlines', () => {
|
|
8
|
+
const preview = csv('id,name,description\r\n001,"A,B","first\nsecond"\r\n002,C,');
|
|
9
|
+
expect(preview.sheets[0]).toMatchObject({ columns: ['A', 'B', 'C'], rows: [
|
|
10
|
+
['id', 'name', 'description'], ['001', 'A,B', 'first\nsecond'], ['002', 'C', '']
|
|
11
|
+
], truncated: false });
|
|
12
|
+
});
|
|
13
|
+
test('CSV preview bounds rows, columns and individual cell content', () => {
|
|
14
|
+
const preview = csv(Array.from({ length: 205 }, (_, i) => `${i},${'x'.repeat(i === 0 ? 2100 : 1)}`).join('\n'));
|
|
15
|
+
expect(preview.truncated).toBe(true);
|
|
16
|
+
expect(preview.sheets[0]?.rows).toHaveLength(200);
|
|
17
|
+
expect(preview.sheets[0]?.rows[0]?.[1]).toBe('x'.repeat(2000) + '…');
|
|
18
|
+
expect(csv(Array.from({ length: 45 }, () => 'x').join(',')).sheets[0]?.columns).toHaveLength(40);
|
|
19
|
+
});
|
|
20
|
+
test('Excel preview uses real workbook worksheets, formatted IDs and cached results', async () => {
|
|
21
|
+
const preview = (0, spreadsheet_preview_1.previewSpreadsheet)(await (0, promises_1.readFile)((0, node_path_1.join)(__dirname, 'fixtures', 'formatted.xlsx')), 'xlsx');
|
|
22
|
+
expect(preview.sheets.map(sheet => sheet.name)).toEqual(['Cover', 'Characteristic Definitions']);
|
|
23
|
+
const rows = preview.sheets[1].rows;
|
|
24
|
+
expect(rows[3]?.[1]).toBe('X0010');
|
|
25
|
+
expect(rows[6]?.[1]).toBe('00330');
|
|
26
|
+
expect(rows[6]?.[5]).toBe('3');
|
|
27
|
+
});
|
|
28
|
+
test('rejects non-XLSX content and binary CSV content', () => {
|
|
29
|
+
expect(() => (0, spreadsheet_preview_1.previewSpreadsheet)(Buffer.from('not a workbook'), 'xlsx')).toThrow('Not an XLSX workbook');
|
|
30
|
+
expect(() => (0, spreadsheet_preview_1.previewSpreadsheet)(Buffer.from([0]), 'csv')).toThrow('Binary CSV content');
|
|
31
|
+
});
|
|
32
|
+
//# sourceMappingURL=spreadsheet.preview.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spreadsheet.preview.spec.js","sourceRoot":"","sources":["../../src/spreadsheet.preview.spec.ts"],"names":[],"mappings":";;AAAA,+CAAyC;AACzC,yCAA8B;AAC9B,+DAAwD;AAExD,MAAM,GAAG,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,IAAA,wCAAkB,EAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE,KAAK,CAAC,CAAA;AAElF,IAAI,CAAC,wEAAwE,EAAE,GAAG,EAAE;IAChF,MAAM,OAAO,GAAG,GAAG,CAAC,4DAA4D,CAAC,CAAA;IACjF,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,EAAC,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,IAAI,EAAE;YACrE,CAAC,IAAI,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC;SACnF,EAAE,SAAS,EAAE,KAAK,EAAC,CAAC,CAAA;AACzB,CAAC,CAAC,CAAA;AAEF,IAAI,CAAC,8DAA8D,EAAE,GAAG,EAAE;IACtE,MAAM,OAAO,GAAG,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,EAAC,MAAM,EAAE,GAAG,EAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAA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,OAAO,CAAC,MAAM,CAAC,CAAC,CAAE,CAAC,IAAI,CAAA;IACpC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IAClC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IAClC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AAClC,CAAC,CAAC,CAAA;AAEF,IAAI,CAAC,iDAAiD,EAAE,GAAG,EAAE;IACzD,MAAM,CAAC,GAAG,EAAE,CAAC,IAAA,wCAAkB,EAAC,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAA;IACvG,MAAM,CAAC,GAAG,EAAE,CAAC,IAAA,wCAAkB,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAA;AAC3F,CAAC,CAAC,CAAA"}
|
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cobol-ts/spreadsheet-excel",
|
|
3
3
|
"description": "SheetJS implementation of the spreadsheet extraction port",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.47",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"types": "dist/index",
|
|
7
7
|
"browserslist": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz",
|
|
21
|
-
"@cobol-ts/spreadsheet": "0.0.
|
|
21
|
+
"@cobol-ts/spreadsheet": "0.0.47"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"typescript": "^5.2.2",
|