xls-codec 1.0.2 → 2.0.0
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 +128 -23
- package/dist/biff/bof-writer.cjs +18 -0
- package/dist/biff/bof-writer.d.cts +5 -0
- package/dist/biff/bof-writer.d.ts +5 -0
- package/dist/biff/bof-writer.js +17 -0
- package/dist/biff/builder.cjs +48 -0
- package/dist/biff/builder.d.cts +17 -0
- package/dist/biff/builder.d.ts +17 -0
- package/dist/biff/builder.js +47 -0
- package/dist/biff/cursor.cjs +4 -0
- package/dist/biff/cursor.d.cts +1 -27
- package/dist/biff/cursor.d.ts +1 -27
- package/dist/biff/cursor.js +4 -0
- package/dist/biff/errors.cjs +7 -0
- package/dist/biff/errors.d.cts +3 -1
- package/dist/biff/errors.d.ts +3 -1
- package/dist/biff/errors.js +7 -1
- package/dist/biff/print-setup.cjs +108 -0
- package/dist/biff/print-setup.d.cts +2 -0
- package/dist/biff/print-setup.d.ts +2 -0
- package/dist/biff/print-setup.js +103 -0
- package/dist/biff/ptg-functions.cjs +383 -0
- package/dist/biff/ptg-functions.d.cts +7 -0
- package/dist/biff/ptg-functions.d.ts +7 -0
- package/dist/biff/ptg-functions.js +381 -0
- package/dist/biff/ptg.cjs +319 -0
- package/dist/biff/ptg.d.cts +2 -0
- package/dist/biff/ptg.d.ts +2 -0
- package/dist/biff/ptg.js +318 -0
- package/dist/biff/record-types.cjs +60 -0
- package/dist/biff/record-types.d.cts +41 -1
- package/dist/biff/record-types.d.ts +41 -1
- package/dist/biff/record-types.js +41 -1
- package/dist/biff/record-writer.cjs +29 -0
- package/dist/biff/record-writer.d.cts +7 -0
- package/dist/biff/record-writer.d.ts +7 -0
- package/dist/biff/record-writer.js +27 -0
- package/dist/biff/string-writer.cjs +58 -0
- package/dist/biff/string-writer.d.cts +13 -0
- package/dist/biff/string-writer.d.ts +13 -0
- package/dist/biff/string-writer.js +55 -0
- package/dist/biff/strings.d.cts +1 -1
- package/dist/biff/strings.d.ts +1 -1
- package/dist/biff/substreams.d.cts +1 -20
- package/dist/biff/substreams.d.ts +1 -20
- package/dist/biff/write-errors.cjs +10 -0
- package/dist/biff/write-errors.d.cts +6 -0
- package/dist/biff/write-errors.d.ts +6 -0
- package/dist/biff/write-errors.js +9 -0
- package/dist/biff/xf-colors.cjs +374 -0
- package/dist/biff/xf-colors.d.cts +2 -0
- package/dist/biff/xf-colors.d.ts +2 -0
- package/dist/biff/xf-colors.js +339 -0
- package/dist/biff/xf-writer.cjs +96 -0
- package/dist/biff/xf-writer.d.cts +29 -0
- package/dist/biff/xf-writer.d.ts +29 -0
- package/dist/biff/xf-writer.js +90 -0
- package/dist/container.cjs +13 -4
- package/dist/container.d.cts +10 -3
- package/dist/container.d.ts +10 -3
- package/dist/container.js +12 -4
- package/dist/content.cjs +123 -18
- package/dist/content.js +123 -18
- package/dist/cursor-VMtw9uVP.d.cts +30 -0
- package/dist/cursor-VMtw9uVP.d.ts +30 -0
- package/dist/index.cjs +71 -5
- package/dist/index.d.cts +20 -10
- package/dist/index.d.ts +20 -10
- package/dist/index.js +17 -7
- package/dist/metadata.cjs +14 -0
- package/dist/metadata.d.cts +6 -0
- package/dist/metadata.d.ts +6 -0
- package/dist/metadata.js +13 -0
- package/dist/print-names-D-njuzVw.d.cts +41 -0
- package/dist/print-names-DUlpVE00.d.ts +41 -0
- package/dist/print-setup-B_ihDvm5.d.cts +57 -0
- package/dist/print-setup-B_ihDvm5.d.ts +57 -0
- package/dist/ptg-B2K8t3js.d.cts +21 -0
- package/dist/ptg-B2K8t3js.d.ts +21 -0
- package/dist/serial.cjs +41 -0
- package/dist/serial.d.cts +7 -1
- package/dist/serial.d.ts +7 -1
- package/dist/serial.js +39 -1
- package/dist/substreams-D7dQiJbp.d.ts +21 -0
- package/dist/substreams-Ddtvn_Vr.d.cts +21 -0
- package/dist/units.cjs +37 -0
- package/dist/units.d.cts +15 -1
- package/dist/units.d.ts +15 -1
- package/dist/units.js +33 -1
- package/dist/workbook/globals-writer.cjs +122 -0
- package/dist/workbook/globals-writer.d.cts +39 -0
- package/dist/workbook/globals-writer.d.ts +39 -0
- package/dist/workbook/globals-writer.js +120 -0
- package/dist/workbook/globals.cjs +72 -8
- package/dist/workbook/globals.d.cts +26 -2
- package/dist/workbook/globals.d.ts +26 -2
- package/dist/workbook/globals.js +71 -7
- package/dist/workbook/print-names.cjs +241 -0
- package/dist/workbook/print-names.d.cts +2 -0
- package/dist/workbook/print-names.d.ts +2 -0
- package/dist/workbook/print-names.js +238 -0
- package/dist/workbook/sheet-writer.cjs +277 -0
- package/dist/workbook/sheet-writer.d.cts +12 -0
- package/dist/workbook/sheet-writer.d.ts +12 -0
- package/dist/workbook/sheet-writer.js +276 -0
- package/dist/workbook/sheet.cjs +125 -17
- package/dist/workbook/sheet.d.cts +38 -4
- package/dist/workbook/sheet.d.ts +38 -4
- package/dist/workbook/sheet.js +125 -17
- package/dist/write.cjs +311 -0
- package/dist/write.d.cts +13 -0
- package/dist/write.d.ts +13 -0
- package/dist/write.js +309 -0
- package/dist/written-cells.cjs +26 -0
- package/dist/written-cells.d.cts +16 -0
- package/dist/written-cells.d.ts +16 -0
- package/dist/written-cells.js +24 -0
- package/dist/xf-colors-CehHZtBy.d.cts +91 -0
- package/dist/xf-colors-CpykR3B9.d.ts +91 -0
- package/package.json +4 -3
- package/dist/number-format.cjs +0 -298
- package/dist/number-format.d.cts +0 -32
- package/dist/number-format.d.ts +0 -32
- package/dist/number-format.js +0 -296
package/dist/index.cjs
CHANGED
|
@@ -2,31 +2,47 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_biff_record_types = require("./biff/record-types.cjs");
|
|
3
3
|
const require_biff_records = require("./biff/records.cjs");
|
|
4
4
|
const require_container = require("./container.cjs");
|
|
5
|
+
const require_units = require("./units.cjs");
|
|
5
6
|
const require_biff_substreams = require("./biff/substreams.cjs");
|
|
6
|
-
const
|
|
7
|
+
const require_biff_write_errors = require("./biff/write-errors.cjs");
|
|
7
8
|
const require_serial = require("./serial.cjs");
|
|
8
9
|
const require_biff_cursor = require("./biff/cursor.cjs");
|
|
9
10
|
const require_biff_strings = require("./biff/strings.cjs");
|
|
11
|
+
const require_biff_builder = require("./biff/builder.cjs");
|
|
12
|
+
const require_biff_record_writer = require("./biff/record-writer.cjs");
|
|
10
13
|
const require_workbook_globals = require("./workbook/globals.cjs");
|
|
11
14
|
const require_biff_errors = require("./biff/errors.cjs");
|
|
12
15
|
const require_biff_rk = require("./biff/rk.cjs");
|
|
13
|
-
const require_units = require("./units.cjs");
|
|
14
16
|
const require_workbook_sheet = require("./workbook/sheet.cjs");
|
|
15
17
|
const require_content = require("./content.cjs");
|
|
18
|
+
const require_biff_bof_writer = require("./biff/bof-writer.cjs");
|
|
19
|
+
const require_biff_string_writer = require("./biff/string-writer.cjs");
|
|
20
|
+
const require_biff_xf_writer = require("./biff/xf-writer.cjs");
|
|
21
|
+
const require_metadata = require("./metadata.cjs");
|
|
22
|
+
const require_workbook_globals_writer = require("./workbook/globals-writer.cjs");
|
|
23
|
+
const require_workbook_sheet_writer = require("./workbook/sheet-writer.cjs");
|
|
24
|
+
const require_write = require("./write.cjs");
|
|
16
25
|
exports.BIFF8_VERSION = require_biff_record_types.BIFF8_VERSION;
|
|
17
26
|
exports.BOF_TYPE_CHART = require_biff_record_types.BOF_TYPE_CHART;
|
|
18
27
|
exports.BOF_TYPE_MACRO = require_biff_record_types.BOF_TYPE_MACRO;
|
|
19
28
|
exports.BOF_TYPE_WORKBOOK = require_biff_record_types.BOF_TYPE_WORKBOOK;
|
|
20
29
|
exports.BOF_TYPE_WORKSHEET = require_biff_record_types.BOF_TYPE_WORKSHEET;
|
|
21
|
-
exports.BUILTIN_NUMBER_FORMATS = require_number_format.BUILTIN_NUMBER_FORMATS;
|
|
22
30
|
exports.BiffFormatError = require_biff_records.BiffFormatError;
|
|
31
|
+
exports.BiffWriteError = require_biff_write_errors.BiffWriteError;
|
|
23
32
|
exports.BlockCursor = require_biff_cursor.BlockCursor;
|
|
33
|
+
exports.GENERAL_CELL_XF_INDEX = require_workbook_globals_writer.GENERAL_CELL_XF_INDEX;
|
|
24
34
|
exports.MAX_RECORD_DATA_SIZE = require_biff_record_types.MAX_RECORD_DATA_SIZE;
|
|
25
35
|
exports.RECORD_ARRAY = require_biff_record_types.RECORD_ARRAY;
|
|
26
36
|
exports.RECORD_BLANK = require_biff_record_types.RECORD_BLANK;
|
|
27
37
|
exports.RECORD_BOF = require_biff_record_types.RECORD_BOF;
|
|
28
38
|
exports.RECORD_BOOLERR = require_biff_record_types.RECORD_BOOLERR;
|
|
39
|
+
exports.RECORD_BOTTOMMARGIN = require_biff_record_types.RECORD_BOTTOMMARGIN;
|
|
29
40
|
exports.RECORD_BOUNDSHEET8 = require_biff_record_types.RECORD_BOUNDSHEET8;
|
|
41
|
+
exports.RECORD_CALCCOUNT = require_biff_record_types.RECORD_CALCCOUNT;
|
|
42
|
+
exports.RECORD_CALCDELTA = require_biff_record_types.RECORD_CALCDELTA;
|
|
43
|
+
exports.RECORD_CALCITER = require_biff_record_types.RECORD_CALCITER;
|
|
44
|
+
exports.RECORD_CALCREFMODE = require_biff_record_types.RECORD_CALCREFMODE;
|
|
45
|
+
exports.RECORD_CALCSAVERECALC = require_biff_record_types.RECORD_CALCSAVERECALC;
|
|
30
46
|
exports.RECORD_COLINFO = require_biff_record_types.RECORD_COLINFO;
|
|
31
47
|
exports.RECORD_CONTINUE = require_biff_record_types.RECORD_CONTINUE;
|
|
32
48
|
exports.RECORD_DATE1904 = require_biff_record_types.RECORD_DATE1904;
|
|
@@ -34,36 +50,64 @@ exports.RECORD_DEFAULTROWHEIGHT = require_biff_record_types.RECORD_DEFAULTROWHEI
|
|
|
34
50
|
exports.RECORD_DEFCOLWIDTH = require_biff_record_types.RECORD_DEFCOLWIDTH;
|
|
35
51
|
exports.RECORD_DIMENSIONS = require_biff_record_types.RECORD_DIMENSIONS;
|
|
36
52
|
exports.RECORD_EOF = require_biff_record_types.RECORD_EOF;
|
|
53
|
+
exports.RECORD_EXTERNSHEET = require_biff_record_types.RECORD_EXTERNSHEET;
|
|
37
54
|
exports.RECORD_FILEPASS = require_biff_record_types.RECORD_FILEPASS;
|
|
38
55
|
exports.RECORD_FONT = require_biff_record_types.RECORD_FONT;
|
|
39
56
|
exports.RECORD_FORMAT = require_biff_record_types.RECORD_FORMAT;
|
|
40
57
|
exports.RECORD_FORMULA = require_biff_record_types.RECORD_FORMULA;
|
|
58
|
+
exports.RECORD_HORIZONTALPAGEBREAKS = require_biff_record_types.RECORD_HORIZONTALPAGEBREAKS;
|
|
41
59
|
exports.RECORD_LABEL = require_biff_record_types.RECORD_LABEL;
|
|
42
60
|
exports.RECORD_LABELSST = require_biff_record_types.RECORD_LABELSST;
|
|
61
|
+
exports.RECORD_LBL = require_biff_record_types.RECORD_LBL;
|
|
62
|
+
exports.RECORD_LEFTMARGIN = require_biff_record_types.RECORD_LEFTMARGIN;
|
|
43
63
|
exports.RECORD_MERGECELLS = require_biff_record_types.RECORD_MERGECELLS;
|
|
44
64
|
exports.RECORD_MULBLANK = require_biff_record_types.RECORD_MULBLANK;
|
|
45
65
|
exports.RECORD_MULRK = require_biff_record_types.RECORD_MULRK;
|
|
46
66
|
exports.RECORD_NUMBER = require_biff_record_types.RECORD_NUMBER;
|
|
67
|
+
exports.RECORD_PALETTE = require_biff_record_types.RECORD_PALETTE;
|
|
68
|
+
exports.RECORD_PRINTGRID = require_biff_record_types.RECORD_PRINTGRID;
|
|
69
|
+
exports.RECORD_PRINTROWCOL = require_biff_record_types.RECORD_PRINTROWCOL;
|
|
70
|
+
exports.RECORD_RIGHTMARGIN = require_biff_record_types.RECORD_RIGHTMARGIN;
|
|
47
71
|
exports.RECORD_RK = require_biff_record_types.RECORD_RK;
|
|
48
72
|
exports.RECORD_ROW = require_biff_record_types.RECORD_ROW;
|
|
73
|
+
exports.RECORD_SETUP = require_biff_record_types.RECORD_SETUP;
|
|
49
74
|
exports.RECORD_SHRFMLA = require_biff_record_types.RECORD_SHRFMLA;
|
|
50
75
|
exports.RECORD_SST = require_biff_record_types.RECORD_SST;
|
|
51
76
|
exports.RECORD_STRING = require_biff_record_types.RECORD_STRING;
|
|
77
|
+
exports.RECORD_STYLE = require_biff_record_types.RECORD_STYLE;
|
|
78
|
+
exports.RECORD_SUPBOOK = require_biff_record_types.RECORD_SUPBOOK;
|
|
52
79
|
exports.RECORD_TABLE = require_biff_record_types.RECORD_TABLE;
|
|
80
|
+
exports.RECORD_TOPMARGIN = require_biff_record_types.RECORD_TOPMARGIN;
|
|
81
|
+
exports.RECORD_VERTICALPAGEBREAKS = require_biff_record_types.RECORD_VERTICALPAGEBREAKS;
|
|
82
|
+
exports.RECORD_WSBOOL = require_biff_record_types.RECORD_WSBOOL;
|
|
53
83
|
exports.RECORD_XF = require_biff_record_types.RECORD_XF;
|
|
54
|
-
exports.
|
|
84
|
+
exports.RecordBuilder = require_biff_builder.RecordBuilder;
|
|
85
|
+
exports.SUMMARY_INFORMATION_STREAM = require_container.SUMMARY_INFORMATION_STREAM;
|
|
86
|
+
exports.buildWorkbookGlobals = require_workbook_globals_writer.buildWorkbookGlobals;
|
|
87
|
+
exports.buildWorksheetSubstream = require_workbook_sheet_writer.buildWorksheetSubstream;
|
|
55
88
|
exports.columnWidthToPoints = require_units.columnWidthToPoints;
|
|
89
|
+
exports.concatRecords = require_biff_record_writer.concatRecords;
|
|
56
90
|
exports.decodeRkNumber = require_biff_rk.decodeRkNumber;
|
|
91
|
+
exports.errorCodeOf = require_biff_errors.errorCodeOf;
|
|
57
92
|
exports.errorTextOf = require_biff_errors.errorTextOf;
|
|
58
93
|
exports.formatCodeOf = require_workbook_globals.formatCodeOf;
|
|
59
94
|
exports.groupRecords = require_biff_substreams.groupRecords;
|
|
95
|
+
exports.inchesToPoints = require_units.inchesToPoints;
|
|
60
96
|
exports.isXlsFile = require_container.isXlsFile;
|
|
97
|
+
exports.isoDateTimeToSerial = require_serial.isoDateTimeToSerial;
|
|
98
|
+
exports.isoDateToSerial = require_serial.isoDateToSerial;
|
|
99
|
+
exports.isoTimeToSerial = require_serial.isoTimeToSerial;
|
|
100
|
+
exports.layoutMetadataToSummaryInformation = require_metadata.layoutMetadataToSummaryInformation;
|
|
101
|
+
exports.millimetresToPoints = require_units.millimetresToPoints;
|
|
102
|
+
exports.pointsToColumnWidth = require_units.pointsToColumnWidth;
|
|
103
|
+
exports.pointsToInches = require_units.pointsToInches;
|
|
104
|
+
exports.pointsToTwips = require_units.pointsToTwips;
|
|
61
105
|
exports.readRecords = require_biff_records.readRecords;
|
|
62
106
|
exports.readRichExtendedString = require_biff_strings.readRichExtendedString;
|
|
63
107
|
exports.readSheetRecords = require_workbook_sheet.readSheetRecords;
|
|
64
108
|
exports.readShortXLUnicodeString = require_biff_strings.readShortXLUnicodeString;
|
|
65
109
|
exports.readWorkbookGlobals = require_workbook_globals.readWorkbookGlobals;
|
|
66
|
-
exports.
|
|
110
|
+
exports.readWorkbookStreams = require_container.readWorkbookStreams;
|
|
67
111
|
exports.readXLUnicodeString = require_biff_strings.readXLUnicodeString;
|
|
68
112
|
exports.readXls = require_content.readXls;
|
|
69
113
|
exports.readXlsContent = require_content.readXlsContent;
|
|
@@ -72,3 +116,25 @@ exports.serialToIsoDateTime = require_serial.serialToIsoDateTime;
|
|
|
72
116
|
exports.serialToIsoTime = require_serial.serialToIsoTime;
|
|
73
117
|
exports.splitSubstreams = require_biff_substreams.splitSubstreams;
|
|
74
118
|
exports.twipsToPoints = require_units.twipsToPoints;
|
|
119
|
+
exports.writeBofData = require_biff_bof_writer.writeBofData;
|
|
120
|
+
exports.writeCellXfRecord = require_biff_xf_writer.writeCellXfRecord;
|
|
121
|
+
exports.writeFontRecord = require_biff_xf_writer.writeFontRecord;
|
|
122
|
+
exports.writeFormatRecord = require_biff_xf_writer.writeFormatRecord;
|
|
123
|
+
exports.writePaletteRecord = require_biff_xf_writer.writePaletteRecord;
|
|
124
|
+
exports.writeRecord = require_biff_record_writer.writeRecord;
|
|
125
|
+
exports.writeRichExtendedString = require_biff_string_writer.writeRichExtendedString;
|
|
126
|
+
exports.writeShortXLUnicodeString = require_biff_string_writer.writeShortXLUnicodeString;
|
|
127
|
+
exports.writeStyleRecord = require_biff_xf_writer.writeStyleRecord;
|
|
128
|
+
exports.writeStyleXfRecord = require_biff_xf_writer.writeStyleXfRecord;
|
|
129
|
+
exports.writeXLUnicodeString = require_biff_string_writer.writeXLUnicodeString;
|
|
130
|
+
exports.writeXls = require_write.writeXls;
|
|
131
|
+
exports.writeXlsContent = require_write.writeXlsContent;
|
|
132
|
+
var excel_number_format = require("excel-number-format");
|
|
133
|
+
Object.keys(excel_number_format).forEach(function(k) {
|
|
134
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
135
|
+
enumerable: true,
|
|
136
|
+
get: function() {
|
|
137
|
+
return excel_number_format[k];
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
});
|
package/dist/index.d.cts
CHANGED
|
@@ -1,15 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { writeBofData } from "./biff/bof-writer.cjs";
|
|
2
|
+
import { RecordBuilder } from "./biff/builder.cjs";
|
|
3
|
+
import { t as BlockCursor } from "./cursor-VMtw9uVP.cjs";
|
|
4
|
+
import { errorCodeOf, errorTextOf } from "./biff/errors.cjs";
|
|
5
|
+
import { BIFF8_VERSION, BOF_TYPE_CHART, BOF_TYPE_MACRO, BOF_TYPE_WORKBOOK, BOF_TYPE_WORKSHEET, MAX_RECORD_DATA_SIZE, RECORD_ARRAY, RECORD_BLANK, RECORD_BOF, RECORD_BOOLERR, RECORD_BOTTOMMARGIN, RECORD_BOUNDSHEET8, RECORD_CALCCOUNT, RECORD_CALCDELTA, RECORD_CALCITER, RECORD_CALCREFMODE, RECORD_CALCSAVERECALC, RECORD_COLINFO, RECORD_CONTINUE, RECORD_DATE1904, RECORD_DEFAULTROWHEIGHT, RECORD_DEFCOLWIDTH, RECORD_DIMENSIONS, RECORD_EOF, RECORD_EXTERNSHEET, RECORD_FILEPASS, RECORD_FONT, RECORD_FORMAT, RECORD_FORMULA, RECORD_HORIZONTALPAGEBREAKS, RECORD_LABEL, RECORD_LABELSST, RECORD_LBL, RECORD_LEFTMARGIN, RECORD_MERGECELLS, RECORD_MULBLANK, RECORD_MULRK, RECORD_NUMBER, RECORD_PALETTE, RECORD_PRINTGRID, RECORD_PRINTROWCOL, RECORD_RIGHTMARGIN, RECORD_RK, RECORD_ROW, RECORD_SETUP, RECORD_SHRFMLA, RECORD_SST, RECORD_STRING, RECORD_STYLE, RECORD_SUPBOOK, RECORD_TABLE, RECORD_TOPMARGIN, RECORD_VERTICALPAGEBREAKS, RECORD_WSBOOL, RECORD_XF } from "./biff/record-types.cjs";
|
|
6
|
+
import { concatRecords, writeRecord } from "./biff/record-writer.cjs";
|
|
4
7
|
import { n as BiffRecord, r as readRecords, t as BiffFormatError } from "./records-DVIqXFKk.cjs";
|
|
5
8
|
import { decodeRkNumber } from "./biff/rk.cjs";
|
|
9
|
+
import { writeRichExtendedString, writeShortXLUnicodeString, writeXLUnicodeString } from "./biff/string-writer.cjs";
|
|
6
10
|
import { readRichExtendedString, readShortXLUnicodeString, readXLUnicodeString } from "./biff/strings.cjs";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
11
|
+
import { i as splitSubstreams, n as Substream, r as groupRecords, t as RecordGroup } from "./substreams-Ddtvn_Vr.cjs";
|
|
12
|
+
import { BiffWriteError } from "./biff/write-errors.cjs";
|
|
13
|
+
import { writeCellXfRecord, writeFontRecord, writeFormatRecord, writePaletteRecord, writeStyleRecord, writeStyleXfRecord } from "./biff/xf-writer.cjs";
|
|
14
|
+
import { SUMMARY_INFORMATION_STREAM, WorkbookStreams, isXlsFile, readWorkbookStreams } from "./container.cjs";
|
|
9
15
|
import { XlsContentDocument, readXls, readXlsContent } from "./content.cjs";
|
|
10
|
-
import {
|
|
11
|
-
import { serialToIsoDate, serialToIsoDateTime, serialToIsoTime } from "./serial.cjs";
|
|
12
|
-
import { columnWidthToPoints, twipsToPoints } from "./units.cjs";
|
|
16
|
+
import { layoutMetadataToSummaryInformation } from "./metadata.cjs";
|
|
17
|
+
import { isoDateTimeToSerial, isoDateToSerial, isoTimeToSerial, serialToIsoDate, serialToIsoDateTime, serialToIsoTime } from "./serial.cjs";
|
|
18
|
+
import { columnWidthToPoints, inchesToPoints, millimetresToPoints, pointsToColumnWidth, pointsToInches, pointsToTwips, twipsToPoints } from "./units.cjs";
|
|
13
19
|
import { CellFormat, SheetEntry, WorkbookGlobals, formatCodeOf, readWorkbookGlobals } from "./workbook/globals.cjs";
|
|
14
|
-
import {
|
|
15
|
-
|
|
20
|
+
import { CellXfPlanEntry, GENERAL_CELL_XF_INDEX, WorkbookGlobalsBuild, WorkbookGlobalsPlan, buildWorkbookGlobals } from "./workbook/globals-writer.cjs";
|
|
21
|
+
import { RawCell, RawCellValue, RawColumn, RawPrintSettings, RawRange, RawRow, RawSheet, readSheetRecords } from "./workbook/sheet.cjs";
|
|
22
|
+
import { SheetWriteContext, buildWorksheetSubstream } from "./workbook/sheet-writer.cjs";
|
|
23
|
+
import { writeXls, writeXlsContent } from "./write.cjs";
|
|
24
|
+
export * from "excel-number-format";
|
|
25
|
+
export { BIFF8_VERSION, BOF_TYPE_CHART, BOF_TYPE_MACRO, BOF_TYPE_WORKBOOK, BOF_TYPE_WORKSHEET, BiffFormatError, BiffRecord, BiffWriteError, BlockCursor, CellFormat, CellXfPlanEntry, GENERAL_CELL_XF_INDEX, MAX_RECORD_DATA_SIZE, RECORD_ARRAY, RECORD_BLANK, RECORD_BOF, RECORD_BOOLERR, RECORD_BOTTOMMARGIN, RECORD_BOUNDSHEET8, RECORD_CALCCOUNT, RECORD_CALCDELTA, RECORD_CALCITER, RECORD_CALCREFMODE, RECORD_CALCSAVERECALC, RECORD_COLINFO, RECORD_CONTINUE, RECORD_DATE1904, RECORD_DEFAULTROWHEIGHT, RECORD_DEFCOLWIDTH, RECORD_DIMENSIONS, RECORD_EOF, RECORD_EXTERNSHEET, RECORD_FILEPASS, RECORD_FONT, RECORD_FORMAT, RECORD_FORMULA, RECORD_HORIZONTALPAGEBREAKS, RECORD_LABEL, RECORD_LABELSST, RECORD_LBL, RECORD_LEFTMARGIN, RECORD_MERGECELLS, RECORD_MULBLANK, RECORD_MULRK, RECORD_NUMBER, RECORD_PALETTE, RECORD_PRINTGRID, RECORD_PRINTROWCOL, RECORD_RIGHTMARGIN, RECORD_RK, RECORD_ROW, RECORD_SETUP, RECORD_SHRFMLA, RECORD_SST, RECORD_STRING, RECORD_STYLE, RECORD_SUPBOOK, RECORD_TABLE, RECORD_TOPMARGIN, RECORD_VERTICALPAGEBREAKS, RECORD_WSBOOL, RECORD_XF, RawCell, RawCellValue, RawColumn, RawPrintSettings, RawRange, RawRow, RawSheet, RecordBuilder, RecordGroup, SUMMARY_INFORMATION_STREAM, SheetEntry, SheetWriteContext, Substream, WorkbookGlobals, WorkbookGlobalsBuild, WorkbookGlobalsPlan, WorkbookStreams, XlsContentDocument, buildWorkbookGlobals, buildWorksheetSubstream, columnWidthToPoints, concatRecords, decodeRkNumber, errorCodeOf, errorTextOf, formatCodeOf, groupRecords, inchesToPoints, isXlsFile, isoDateTimeToSerial, isoDateToSerial, isoTimeToSerial, layoutMetadataToSummaryInformation, millimetresToPoints, pointsToColumnWidth, pointsToInches, pointsToTwips, readRecords, readRichExtendedString, readSheetRecords, readShortXLUnicodeString, readWorkbookGlobals, readWorkbookStreams, readXLUnicodeString, readXls, readXlsContent, serialToIsoDate, serialToIsoDateTime, serialToIsoTime, splitSubstreams, twipsToPoints, writeBofData, writeCellXfRecord, writeFontRecord, writeFormatRecord, writePaletteRecord, writeRecord, writeRichExtendedString, writeShortXLUnicodeString, writeStyleRecord, writeStyleXfRecord, writeXLUnicodeString, writeXls, writeXlsContent };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { writeBofData } from "./biff/bof-writer.js";
|
|
2
|
+
import { RecordBuilder } from "./biff/builder.js";
|
|
3
|
+
import { t as BlockCursor } from "./cursor-VMtw9uVP.js";
|
|
4
|
+
import { errorCodeOf, errorTextOf } from "./biff/errors.js";
|
|
5
|
+
import { BIFF8_VERSION, BOF_TYPE_CHART, BOF_TYPE_MACRO, BOF_TYPE_WORKBOOK, BOF_TYPE_WORKSHEET, MAX_RECORD_DATA_SIZE, RECORD_ARRAY, RECORD_BLANK, RECORD_BOF, RECORD_BOOLERR, RECORD_BOTTOMMARGIN, RECORD_BOUNDSHEET8, RECORD_CALCCOUNT, RECORD_CALCDELTA, RECORD_CALCITER, RECORD_CALCREFMODE, RECORD_CALCSAVERECALC, RECORD_COLINFO, RECORD_CONTINUE, RECORD_DATE1904, RECORD_DEFAULTROWHEIGHT, RECORD_DEFCOLWIDTH, RECORD_DIMENSIONS, RECORD_EOF, RECORD_EXTERNSHEET, RECORD_FILEPASS, RECORD_FONT, RECORD_FORMAT, RECORD_FORMULA, RECORD_HORIZONTALPAGEBREAKS, RECORD_LABEL, RECORD_LABELSST, RECORD_LBL, RECORD_LEFTMARGIN, RECORD_MERGECELLS, RECORD_MULBLANK, RECORD_MULRK, RECORD_NUMBER, RECORD_PALETTE, RECORD_PRINTGRID, RECORD_PRINTROWCOL, RECORD_RIGHTMARGIN, RECORD_RK, RECORD_ROW, RECORD_SETUP, RECORD_SHRFMLA, RECORD_SST, RECORD_STRING, RECORD_STYLE, RECORD_SUPBOOK, RECORD_TABLE, RECORD_TOPMARGIN, RECORD_VERTICALPAGEBREAKS, RECORD_WSBOOL, RECORD_XF } from "./biff/record-types.js";
|
|
6
|
+
import { concatRecords, writeRecord } from "./biff/record-writer.js";
|
|
4
7
|
import { n as BiffRecord, r as readRecords, t as BiffFormatError } from "./records-DVIqXFKk.js";
|
|
5
8
|
import { decodeRkNumber } from "./biff/rk.js";
|
|
9
|
+
import { writeRichExtendedString, writeShortXLUnicodeString, writeXLUnicodeString } from "./biff/string-writer.js";
|
|
6
10
|
import { readRichExtendedString, readShortXLUnicodeString, readXLUnicodeString } from "./biff/strings.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
11
|
+
import { i as splitSubstreams, n as Substream, r as groupRecords, t as RecordGroup } from "./substreams-D7dQiJbp.js";
|
|
12
|
+
import { BiffWriteError } from "./biff/write-errors.js";
|
|
13
|
+
import { writeCellXfRecord, writeFontRecord, writeFormatRecord, writePaletteRecord, writeStyleRecord, writeStyleXfRecord } from "./biff/xf-writer.js";
|
|
14
|
+
import { SUMMARY_INFORMATION_STREAM, WorkbookStreams, isXlsFile, readWorkbookStreams } from "./container.js";
|
|
9
15
|
import { XlsContentDocument, readXls, readXlsContent } from "./content.js";
|
|
10
|
-
import {
|
|
11
|
-
import { serialToIsoDate, serialToIsoDateTime, serialToIsoTime } from "./serial.js";
|
|
12
|
-
import { columnWidthToPoints, twipsToPoints } from "./units.js";
|
|
16
|
+
import { layoutMetadataToSummaryInformation } from "./metadata.js";
|
|
17
|
+
import { isoDateTimeToSerial, isoDateToSerial, isoTimeToSerial, serialToIsoDate, serialToIsoDateTime, serialToIsoTime } from "./serial.js";
|
|
18
|
+
import { columnWidthToPoints, inchesToPoints, millimetresToPoints, pointsToColumnWidth, pointsToInches, pointsToTwips, twipsToPoints } from "./units.js";
|
|
13
19
|
import { CellFormat, SheetEntry, WorkbookGlobals, formatCodeOf, readWorkbookGlobals } from "./workbook/globals.js";
|
|
14
|
-
import {
|
|
15
|
-
|
|
20
|
+
import { CellXfPlanEntry, GENERAL_CELL_XF_INDEX, WorkbookGlobalsBuild, WorkbookGlobalsPlan, buildWorkbookGlobals } from "./workbook/globals-writer.js";
|
|
21
|
+
import { RawCell, RawCellValue, RawColumn, RawPrintSettings, RawRange, RawRow, RawSheet, readSheetRecords } from "./workbook/sheet.js";
|
|
22
|
+
import { SheetWriteContext, buildWorksheetSubstream } from "./workbook/sheet-writer.js";
|
|
23
|
+
import { writeXls, writeXlsContent } from "./write.js";
|
|
24
|
+
export * from "excel-number-format";
|
|
25
|
+
export { BIFF8_VERSION, BOF_TYPE_CHART, BOF_TYPE_MACRO, BOF_TYPE_WORKBOOK, BOF_TYPE_WORKSHEET, BiffFormatError, BiffRecord, BiffWriteError, BlockCursor, CellFormat, CellXfPlanEntry, GENERAL_CELL_XF_INDEX, MAX_RECORD_DATA_SIZE, RECORD_ARRAY, RECORD_BLANK, RECORD_BOF, RECORD_BOOLERR, RECORD_BOTTOMMARGIN, RECORD_BOUNDSHEET8, RECORD_CALCCOUNT, RECORD_CALCDELTA, RECORD_CALCITER, RECORD_CALCREFMODE, RECORD_CALCSAVERECALC, RECORD_COLINFO, RECORD_CONTINUE, RECORD_DATE1904, RECORD_DEFAULTROWHEIGHT, RECORD_DEFCOLWIDTH, RECORD_DIMENSIONS, RECORD_EOF, RECORD_EXTERNSHEET, RECORD_FILEPASS, RECORD_FONT, RECORD_FORMAT, RECORD_FORMULA, RECORD_HORIZONTALPAGEBREAKS, RECORD_LABEL, RECORD_LABELSST, RECORD_LBL, RECORD_LEFTMARGIN, RECORD_MERGECELLS, RECORD_MULBLANK, RECORD_MULRK, RECORD_NUMBER, RECORD_PALETTE, RECORD_PRINTGRID, RECORD_PRINTROWCOL, RECORD_RIGHTMARGIN, RECORD_RK, RECORD_ROW, RECORD_SETUP, RECORD_SHRFMLA, RECORD_SST, RECORD_STRING, RECORD_STYLE, RECORD_SUPBOOK, RECORD_TABLE, RECORD_TOPMARGIN, RECORD_VERTICALPAGEBREAKS, RECORD_WSBOOL, RECORD_XF, RawCell, RawCellValue, RawColumn, RawPrintSettings, RawRange, RawRow, RawSheet, RecordBuilder, RecordGroup, SUMMARY_INFORMATION_STREAM, SheetEntry, SheetWriteContext, Substream, WorkbookGlobals, WorkbookGlobalsBuild, WorkbookGlobalsPlan, WorkbookStreams, XlsContentDocument, buildWorkbookGlobals, buildWorksheetSubstream, columnWidthToPoints, concatRecords, decodeRkNumber, errorCodeOf, errorTextOf, formatCodeOf, groupRecords, inchesToPoints, isXlsFile, isoDateTimeToSerial, isoDateToSerial, isoTimeToSerial, layoutMetadataToSummaryInformation, millimetresToPoints, pointsToColumnWidth, pointsToInches, pointsToTwips, readRecords, readRichExtendedString, readSheetRecords, readShortXLUnicodeString, readWorkbookGlobals, readWorkbookStreams, readXLUnicodeString, readXls, readXlsContent, serialToIsoDate, serialToIsoDateTime, serialToIsoTime, splitSubstreams, twipsToPoints, writeBofData, writeCellXfRecord, writeFontRecord, writeFormatRecord, writePaletteRecord, writeRecord, writeRichExtendedString, writeShortXLUnicodeString, writeStyleRecord, writeStyleXfRecord, writeXLUnicodeString, writeXls, writeXlsContent };
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,25 @@
|
|
|
1
|
-
import { BIFF8_VERSION, BOF_TYPE_CHART, BOF_TYPE_MACRO, BOF_TYPE_WORKBOOK, BOF_TYPE_WORKSHEET, MAX_RECORD_DATA_SIZE, RECORD_ARRAY, RECORD_BLANK, RECORD_BOF, RECORD_BOOLERR, RECORD_BOUNDSHEET8, RECORD_COLINFO, RECORD_CONTINUE, RECORD_DATE1904, RECORD_DEFAULTROWHEIGHT, RECORD_DEFCOLWIDTH, RECORD_DIMENSIONS, RECORD_EOF, RECORD_FILEPASS, RECORD_FONT, RECORD_FORMAT, RECORD_FORMULA, RECORD_LABEL, RECORD_LABELSST, RECORD_MERGECELLS, RECORD_MULBLANK, RECORD_MULRK, RECORD_NUMBER, RECORD_RK, RECORD_ROW, RECORD_SHRFMLA, RECORD_SST, RECORD_STRING, RECORD_TABLE, RECORD_XF } from "./biff/record-types.js";
|
|
1
|
+
import { BIFF8_VERSION, BOF_TYPE_CHART, BOF_TYPE_MACRO, BOF_TYPE_WORKBOOK, BOF_TYPE_WORKSHEET, MAX_RECORD_DATA_SIZE, RECORD_ARRAY, RECORD_BLANK, RECORD_BOF, RECORD_BOOLERR, RECORD_BOTTOMMARGIN, RECORD_BOUNDSHEET8, RECORD_CALCCOUNT, RECORD_CALCDELTA, RECORD_CALCITER, RECORD_CALCREFMODE, RECORD_CALCSAVERECALC, RECORD_COLINFO, RECORD_CONTINUE, RECORD_DATE1904, RECORD_DEFAULTROWHEIGHT, RECORD_DEFCOLWIDTH, RECORD_DIMENSIONS, RECORD_EOF, RECORD_EXTERNSHEET, RECORD_FILEPASS, RECORD_FONT, RECORD_FORMAT, RECORD_FORMULA, RECORD_HORIZONTALPAGEBREAKS, RECORD_LABEL, RECORD_LABELSST, RECORD_LBL, RECORD_LEFTMARGIN, RECORD_MERGECELLS, RECORD_MULBLANK, RECORD_MULRK, RECORD_NUMBER, RECORD_PALETTE, RECORD_PRINTGRID, RECORD_PRINTROWCOL, RECORD_RIGHTMARGIN, RECORD_RK, RECORD_ROW, RECORD_SETUP, RECORD_SHRFMLA, RECORD_SST, RECORD_STRING, RECORD_STYLE, RECORD_SUPBOOK, RECORD_TABLE, RECORD_TOPMARGIN, RECORD_VERTICALPAGEBREAKS, RECORD_WSBOOL, RECORD_XF } from "./biff/record-types.js";
|
|
2
2
|
import { BiffFormatError, readRecords } from "./biff/records.js";
|
|
3
|
-
import { isXlsFile,
|
|
3
|
+
import { SUMMARY_INFORMATION_STREAM, isXlsFile, readWorkbookStreams } from "./container.js";
|
|
4
|
+
import { columnWidthToPoints, inchesToPoints, millimetresToPoints, pointsToColumnWidth, pointsToInches, pointsToTwips, twipsToPoints } from "./units.js";
|
|
4
5
|
import { groupRecords, splitSubstreams } from "./biff/substreams.js";
|
|
5
|
-
import {
|
|
6
|
-
import { serialToIsoDate, serialToIsoDateTime, serialToIsoTime } from "./serial.js";
|
|
6
|
+
import { BiffWriteError } from "./biff/write-errors.js";
|
|
7
|
+
import { isoDateTimeToSerial, isoDateToSerial, isoTimeToSerial, serialToIsoDate, serialToIsoDateTime, serialToIsoTime } from "./serial.js";
|
|
7
8
|
import { BlockCursor } from "./biff/cursor.js";
|
|
8
9
|
import { readRichExtendedString, readShortXLUnicodeString, readXLUnicodeString } from "./biff/strings.js";
|
|
10
|
+
import { RecordBuilder } from "./biff/builder.js";
|
|
11
|
+
import { concatRecords, writeRecord } from "./biff/record-writer.js";
|
|
9
12
|
import { formatCodeOf, readWorkbookGlobals } from "./workbook/globals.js";
|
|
10
|
-
import { errorTextOf } from "./biff/errors.js";
|
|
13
|
+
import { errorCodeOf, errorTextOf } from "./biff/errors.js";
|
|
11
14
|
import { decodeRkNumber } from "./biff/rk.js";
|
|
12
|
-
import { columnWidthToPoints, twipsToPoints } from "./units.js";
|
|
13
15
|
import { readSheetRecords } from "./workbook/sheet.js";
|
|
14
16
|
import { readXls, readXlsContent } from "./content.js";
|
|
15
|
-
|
|
17
|
+
import { writeBofData } from "./biff/bof-writer.js";
|
|
18
|
+
import { writeRichExtendedString, writeShortXLUnicodeString, writeXLUnicodeString } from "./biff/string-writer.js";
|
|
19
|
+
import { writeCellXfRecord, writeFontRecord, writeFormatRecord, writePaletteRecord, writeStyleRecord, writeStyleXfRecord } from "./biff/xf-writer.js";
|
|
20
|
+
import { layoutMetadataToSummaryInformation } from "./metadata.js";
|
|
21
|
+
import { GENERAL_CELL_XF_INDEX, buildWorkbookGlobals } from "./workbook/globals-writer.js";
|
|
22
|
+
import { buildWorksheetSubstream } from "./workbook/sheet-writer.js";
|
|
23
|
+
import { writeXls, writeXlsContent } from "./write.js";
|
|
24
|
+
export * from "excel-number-format";
|
|
25
|
+
export { BIFF8_VERSION, BOF_TYPE_CHART, BOF_TYPE_MACRO, BOF_TYPE_WORKBOOK, BOF_TYPE_WORKSHEET, BiffFormatError, BiffWriteError, BlockCursor, GENERAL_CELL_XF_INDEX, MAX_RECORD_DATA_SIZE, RECORD_ARRAY, RECORD_BLANK, RECORD_BOF, RECORD_BOOLERR, RECORD_BOTTOMMARGIN, RECORD_BOUNDSHEET8, RECORD_CALCCOUNT, RECORD_CALCDELTA, RECORD_CALCITER, RECORD_CALCREFMODE, RECORD_CALCSAVERECALC, RECORD_COLINFO, RECORD_CONTINUE, RECORD_DATE1904, RECORD_DEFAULTROWHEIGHT, RECORD_DEFCOLWIDTH, RECORD_DIMENSIONS, RECORD_EOF, RECORD_EXTERNSHEET, RECORD_FILEPASS, RECORD_FONT, RECORD_FORMAT, RECORD_FORMULA, RECORD_HORIZONTALPAGEBREAKS, RECORD_LABEL, RECORD_LABELSST, RECORD_LBL, RECORD_LEFTMARGIN, RECORD_MERGECELLS, RECORD_MULBLANK, RECORD_MULRK, RECORD_NUMBER, RECORD_PALETTE, RECORD_PRINTGRID, RECORD_PRINTROWCOL, RECORD_RIGHTMARGIN, RECORD_RK, RECORD_ROW, RECORD_SETUP, RECORD_SHRFMLA, RECORD_SST, RECORD_STRING, RECORD_STYLE, RECORD_SUPBOOK, RECORD_TABLE, RECORD_TOPMARGIN, RECORD_VERTICALPAGEBREAKS, RECORD_WSBOOL, RECORD_XF, RecordBuilder, SUMMARY_INFORMATION_STREAM, buildWorkbookGlobals, buildWorksheetSubstream, columnWidthToPoints, concatRecords, decodeRkNumber, errorCodeOf, errorTextOf, formatCodeOf, groupRecords, inchesToPoints, isXlsFile, isoDateTimeToSerial, isoDateToSerial, isoTimeToSerial, layoutMetadataToSummaryInformation, millimetresToPoints, pointsToColumnWidth, pointsToInches, pointsToTwips, readRecords, readRichExtendedString, readSheetRecords, readShortXLUnicodeString, readWorkbookGlobals, readWorkbookStreams, readXLUnicodeString, readXls, readXlsContent, serialToIsoDate, serialToIsoDateTime, serialToIsoTime, splitSubstreams, twipsToPoints, writeBofData, writeCellXfRecord, writeFontRecord, writeFormatRecord, writePaletteRecord, writeRecord, writeRichExtendedString, writeShortXLUnicodeString, writeStyleRecord, writeStyleXfRecord, writeXLUnicodeString, writeXls, writeXlsContent };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_biff_write_errors = require("./biff/write-errors.cjs");
|
|
3
|
+
let archive_codec = require("archive-codec");
|
|
4
|
+
//#region src/metadata.ts
|
|
5
|
+
function requireValidIsoDate(value, field) {
|
|
6
|
+
if (value !== void 0 && Number.isNaN(new Date(value).getTime())) throw new require_biff_write_errors.BiffWriteError(`LayoutMetadata.${field} "${value}" is not a valid date string, so it cannot be written as a SummaryInformation FILETIME property`);
|
|
7
|
+
}
|
|
8
|
+
function layoutMetadataToSummaryInformation(metadata) {
|
|
9
|
+
requireValidIsoDate(metadata.createdIso, "createdIso");
|
|
10
|
+
requireValidIsoDate(metadata.modifiedIso, "modifiedIso");
|
|
11
|
+
return (0, archive_codec.layoutMetadataToSummaryInformation)(metadata);
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.layoutMetadataToSummaryInformation = layoutMetadataToSummaryInformation;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { LayoutMetadata } from "document-schema.js";
|
|
2
|
+
import { SummaryInformationProperties } from "archive-codec";
|
|
3
|
+
//#region src/metadata.d.ts
|
|
4
|
+
declare function layoutMetadataToSummaryInformation(metadata: LayoutMetadata): SummaryInformationProperties;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { layoutMetadataToSummaryInformation };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SummaryInformationProperties } from "archive-codec";
|
|
2
|
+
import { LayoutMetadata } from "document-schema.js";
|
|
3
|
+
//#region src/metadata.d.ts
|
|
4
|
+
declare function layoutMetadataToSummaryInformation(metadata: LayoutMetadata): SummaryInformationProperties;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { layoutMetadataToSummaryInformation };
|
package/dist/metadata.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BiffWriteError } from "./biff/write-errors.js";
|
|
2
|
+
import { layoutMetadataToSummaryInformation as layoutMetadataToSummaryInformation$1 } from "archive-codec";
|
|
3
|
+
//#region src/metadata.ts
|
|
4
|
+
function requireValidIsoDate(value, field) {
|
|
5
|
+
if (value !== void 0 && Number.isNaN(new Date(value).getTime())) throw new BiffWriteError(`LayoutMetadata.${field} "${value}" is not a valid date string, so it cannot be written as a SummaryInformation FILETIME property`);
|
|
6
|
+
}
|
|
7
|
+
function layoutMetadataToSummaryInformation(metadata) {
|
|
8
|
+
requireValidIsoDate(metadata.createdIso, "createdIso");
|
|
9
|
+
requireValidIsoDate(metadata.modifiedIso, "modifiedIso");
|
|
10
|
+
return layoutMetadataToSummaryInformation$1(metadata);
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { layoutMetadataToSummaryInformation };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { t as RecordGroup } from "./substreams-Ddtvn_Vr.cjs";
|
|
2
|
+
import { ContentSheetPrintRange, ContentSheetRepeatRange } from "document-schema.js";
|
|
3
|
+
//#region src/workbook/print-names.d.ts
|
|
4
|
+
/** One sheet's print names, as the Lbl records of the globals substream carry them. Every field is absent when the workbook declares no such name for that sheet. */
|
|
5
|
+
interface SheetPrintNames {
|
|
6
|
+
readonly printRange?: ContentSheetPrintRange;
|
|
7
|
+
readonly repeatRows?: ContentSheetRepeatRange;
|
|
8
|
+
readonly repeatColumns?: ContentSheetRepeatRange;
|
|
9
|
+
}
|
|
10
|
+
/** A rectangular area exactly as a PtgArea3d/PtgRef3d token states it, before deciding what it means. */
|
|
11
|
+
interface RawArea {
|
|
12
|
+
readonly rowFirst: number;
|
|
13
|
+
readonly rowLast: number;
|
|
14
|
+
readonly columnFirst: number;
|
|
15
|
+
readonly columnLast: number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Reads every Lbl record in a globals substream into per-sheet print names, keyed by ZERO-based sheet index -- Lbl's own itab is one-based, and a sheet index everywhere else in this package is not.
|
|
19
|
+
*
|
|
20
|
+
* A name this reader does not act on leaves nothing behind rather than failing the workbook: a user-defined name (fBuiltin clear), a built-in name other than the two below, a workbook-scoped one (itab 0, which no real producer uses for a print area since a print area belongs to a sheet), and a name whose token stream holds a construct outside the narrow vocabulary parsePrintAreas resolves are all simply not carried. The sheet then reads with no printRange or repeat bands, which is the same answer a sheet that genuinely declares none gives.
|
|
21
|
+
*/
|
|
22
|
+
declare function readPrintNames(records: readonly RecordGroup[]): ReadonlyMap<number, SheetPrintNames>;
|
|
23
|
+
/** One Lbl record to write: which sheet it is scoped to, and the areas its own token stream names. */
|
|
24
|
+
interface PrintNamePlanEntry {
|
|
25
|
+
/** Zero-based; written out as Lbl's own one-based itab. */
|
|
26
|
+
readonly sheetIndex: number;
|
|
27
|
+
/** The ixti a PtgArea3d in this name's token stream refers to -- an index into the ExternSheet record's own XTI array, which globals-writer.ts writes one entry of per sheet. */
|
|
28
|
+
readonly ixti: number;
|
|
29
|
+
readonly builtinName: number;
|
|
30
|
+
readonly areas: readonly RawArea[];
|
|
31
|
+
}
|
|
32
|
+
/** The Print_Area and Print_Titles entries one sheet's print settings need, or an empty list when it declares neither a print range nor a repeated band. */
|
|
33
|
+
declare function printNameEntriesFor(sheetIndex: number, ixti: number, settings: {
|
|
34
|
+
readonly printRange?: ContentSheetPrintRange;
|
|
35
|
+
readonly repeatRows?: ContentSheetRepeatRange;
|
|
36
|
+
readonly repeatColumns?: ContentSheetRepeatRange;
|
|
37
|
+
}): PrintNamePlanEntry[];
|
|
38
|
+
/** Every planned print name as its own Lbl record, in the order given. */
|
|
39
|
+
declare function writePrintNameRecords(entries: readonly PrintNamePlanEntry[]): Uint8Array<ArrayBuffer>[];
|
|
40
|
+
//#endregion
|
|
41
|
+
export { writePrintNameRecords as a, readPrintNames as i, SheetPrintNames as n, printNameEntriesFor as r, PrintNamePlanEntry as t };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { t as RecordGroup } from "./substreams-D7dQiJbp.js";
|
|
2
|
+
import { ContentSheetPrintRange, ContentSheetRepeatRange } from "document-schema.js";
|
|
3
|
+
//#region src/workbook/print-names.d.ts
|
|
4
|
+
/** One sheet's print names, as the Lbl records of the globals substream carry them. Every field is absent when the workbook declares no such name for that sheet. */
|
|
5
|
+
interface SheetPrintNames {
|
|
6
|
+
readonly printRange?: ContentSheetPrintRange;
|
|
7
|
+
readonly repeatRows?: ContentSheetRepeatRange;
|
|
8
|
+
readonly repeatColumns?: ContentSheetRepeatRange;
|
|
9
|
+
}
|
|
10
|
+
/** A rectangular area exactly as a PtgArea3d/PtgRef3d token states it, before deciding what it means. */
|
|
11
|
+
interface RawArea {
|
|
12
|
+
readonly rowFirst: number;
|
|
13
|
+
readonly rowLast: number;
|
|
14
|
+
readonly columnFirst: number;
|
|
15
|
+
readonly columnLast: number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Reads every Lbl record in a globals substream into per-sheet print names, keyed by ZERO-based sheet index -- Lbl's own itab is one-based, and a sheet index everywhere else in this package is not.
|
|
19
|
+
*
|
|
20
|
+
* A name this reader does not act on leaves nothing behind rather than failing the workbook: a user-defined name (fBuiltin clear), a built-in name other than the two below, a workbook-scoped one (itab 0, which no real producer uses for a print area since a print area belongs to a sheet), and a name whose token stream holds a construct outside the narrow vocabulary parsePrintAreas resolves are all simply not carried. The sheet then reads with no printRange or repeat bands, which is the same answer a sheet that genuinely declares none gives.
|
|
21
|
+
*/
|
|
22
|
+
declare function readPrintNames(records: readonly RecordGroup[]): ReadonlyMap<number, SheetPrintNames>;
|
|
23
|
+
/** One Lbl record to write: which sheet it is scoped to, and the areas its own token stream names. */
|
|
24
|
+
interface PrintNamePlanEntry {
|
|
25
|
+
/** Zero-based; written out as Lbl's own one-based itab. */
|
|
26
|
+
readonly sheetIndex: number;
|
|
27
|
+
/** The ixti a PtgArea3d in this name's token stream refers to -- an index into the ExternSheet record's own XTI array, which globals-writer.ts writes one entry of per sheet. */
|
|
28
|
+
readonly ixti: number;
|
|
29
|
+
readonly builtinName: number;
|
|
30
|
+
readonly areas: readonly RawArea[];
|
|
31
|
+
}
|
|
32
|
+
/** The Print_Area and Print_Titles entries one sheet's print settings need, or an empty list when it declares neither a print range nor a repeated band. */
|
|
33
|
+
declare function printNameEntriesFor(sheetIndex: number, ixti: number, settings: {
|
|
34
|
+
readonly printRange?: ContentSheetPrintRange;
|
|
35
|
+
readonly repeatRows?: ContentSheetRepeatRange;
|
|
36
|
+
readonly repeatColumns?: ContentSheetRepeatRange;
|
|
37
|
+
}): PrintNamePlanEntry[];
|
|
38
|
+
/** Every planned print name as its own Lbl record, in the order given. */
|
|
39
|
+
declare function writePrintNameRecords(entries: readonly PrintNamePlanEntry[]): Uint8Array<ArrayBuffer>[];
|
|
40
|
+
//#endregion
|
|
41
|
+
export { writePrintNameRecords as a, readPrintNames as i, SheetPrintNames as n, printNameEntriesFor as r, PrintNamePlanEntry as t };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { PageSize } from "document-schema.js";
|
|
2
|
+
//#region src/biff/print-setup.d.ts
|
|
3
|
+
/** WsBool's own fFitToPage bit -- field G of [MS-XLS] 2.4.351, the ninth bit of its single 16-bit field (fShowAutoBreaks, reserved1 (3 bits), fDialog, fApplyStyles, fRowSumsBelow, fColSumsRight, fFitToPage, ...). */
|
|
4
|
+
declare const WSBOOL_FLAG_FIT_TO_PAGE = 256;
|
|
5
|
+
/**
|
|
6
|
+
* The Setup record's fields, as this package reads and writes them.
|
|
7
|
+
*
|
|
8
|
+
* `noPls` is carried rather than resolved away, because [MS-XLS] 2.4.257 makes it govern whether five of the others mean anything at all: "A bit that specifies whether the iPaperSize, iScale, iRes, iVRes, iCopies, fNoOrient, and fPortrait data are undefined and ignored." A reader that ignored it would confidently report a paper size and a scale percentage the file itself declares meaningless.
|
|
9
|
+
*/
|
|
10
|
+
interface SetupFields {
|
|
11
|
+
/** iPaperSize: an index into the paper-size code table below. Undefined and to be ignored when `noPls` is true. */
|
|
12
|
+
readonly paperCode: number;
|
|
13
|
+
/** iScale: the print scale as a whole percentage ("if the value is 107 then the scaling factor is 107%"). Undefined and to be ignored when `noPls` is true. */
|
|
14
|
+
readonly scalePercent: number;
|
|
15
|
+
/** iFitWidth: how many pages wide the sheet is fitted to. 0 is [MS-XLS]'s own "use as many pages as necessary". Meaningful only when WsBool's fFitToPage is set. */
|
|
16
|
+
readonly fitWidth: number;
|
|
17
|
+
/** iFitHeight: the same for the sheet's height. */
|
|
18
|
+
readonly fitHeight: number;
|
|
19
|
+
/** fLeftToRight: pages printed left-to-right first (true) or top-to-bottom first (false). */
|
|
20
|
+
readonly leftToRight: boolean;
|
|
21
|
+
/** fPortrait. Undefined and to be ignored when `noPls` or `noOrientation` is true -- in the latter case [MS-XLS] states the sheet prints portrait regardless. */
|
|
22
|
+
readonly portrait: boolean;
|
|
23
|
+
/** fNoPls: the paper size, scale, resolution, copy count, and both orientation bits are undefined. */
|
|
24
|
+
readonly noPls: boolean;
|
|
25
|
+
/** fNoOrient: "whether the paper orientation is set" -- when true, fPortrait is undefined and "Pages are printed using portrait mode". */
|
|
26
|
+
readonly noOrientation: boolean;
|
|
27
|
+
}
|
|
28
|
+
/** Packs a SetupFields' own four flags back into the record's grbit word. Every bit this package does not model is written as zero, which is what [MS-XLS] 2.4.257's own reserved field requires and what its remaining optional behaviours (black-and-white, draft quality, comment printing, error rendering, a custom starting page number) default to. */
|
|
29
|
+
declare function packSetupFlags(fields: SetupFields): number;
|
|
30
|
+
/** The read-side inverse of packSetupFlags: the four flags this package acts on, taken out of the record's grbit word. */
|
|
31
|
+
declare function unpackSetupFlags(grbit: number): {
|
|
32
|
+
leftToRight: boolean;
|
|
33
|
+
portrait: boolean;
|
|
34
|
+
noPls: boolean;
|
|
35
|
+
noOrientation: boolean;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* The page size a Setup record's own iPaperSize and orientation flags describe, or undefined when the code is not one this package maps.
|
|
39
|
+
*
|
|
40
|
+
* A paper code names the sheet's paper in its PORTRAIT dimensions regardless of how the sheet actually prints, so the orientation flags decide whether those dimensions are used as-is or transposed. [MS-XLS] 2.4.257 defines that in two steps: fNoOrient set means "Pages are printed using portrait mode" outright, and only when it is clear does fPortrait itself select portrait (1) or landscape (0).
|
|
41
|
+
*/
|
|
42
|
+
declare function pageSizeFromSetup(fields: SetupFields): PageSize | undefined;
|
|
43
|
+
/** How a Setup record can name a given page size: the paper code, and whether the sheet must be declared portrait or landscape for that code's own portrait dimensions to come out as the size asked for. */
|
|
44
|
+
interface PaperSelection {
|
|
45
|
+
readonly code: number;
|
|
46
|
+
readonly portrait: boolean;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The write-side inverse of pageSizeFromSetup: the paper code and orientation whose resolved page size matches this one, or undefined when no code in the table does.
|
|
50
|
+
*
|
|
51
|
+
* Undefined is a real answer with no fallback behind it. Unlike xlsx's own pageSetup element, which can state an explicit paperWidth/paperHeight pair when no code fits, [MS-XLS] 2.4.257's Setup record addresses paper only by code -- its own escape hatch for a size outside the table is a printer-defined custom size carried in a separate Pls record ([MS-XLS] 2.4.199), a printer driver's opaque DEVMODE blob rather than a pair of dimensions any reader could recover the size from. So a page size no code names genuinely cannot be written; the caller refuses rather than silently substituting a paper the document never asked for.
|
|
52
|
+
*
|
|
53
|
+
* A portrait match is preferred over a landscape one wherever both exist, which is what keeps the choice deterministic for the handful of codes in the table that are each other's transpose (US Tabloid 11x17in and US Ledger 17x11in are the same sheet of paper entered twice, once each way round).
|
|
54
|
+
*/
|
|
55
|
+
declare function paperSelectionFor(pageSize: PageSize): PaperSelection | undefined;
|
|
56
|
+
//#endregion
|
|
57
|
+
export { pageSizeFromSetup as a, packSetupFlags as i, SetupFields as n, paperSelectionFor as o, WSBOOL_FLAG_FIT_TO_PAGE as r, unpackSetupFlags as s, PaperSelection as t };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { PageSize } from "document-schema.js";
|
|
2
|
+
//#region src/biff/print-setup.d.ts
|
|
3
|
+
/** WsBool's own fFitToPage bit -- field G of [MS-XLS] 2.4.351, the ninth bit of its single 16-bit field (fShowAutoBreaks, reserved1 (3 bits), fDialog, fApplyStyles, fRowSumsBelow, fColSumsRight, fFitToPage, ...). */
|
|
4
|
+
declare const WSBOOL_FLAG_FIT_TO_PAGE = 256;
|
|
5
|
+
/**
|
|
6
|
+
* The Setup record's fields, as this package reads and writes them.
|
|
7
|
+
*
|
|
8
|
+
* `noPls` is carried rather than resolved away, because [MS-XLS] 2.4.257 makes it govern whether five of the others mean anything at all: "A bit that specifies whether the iPaperSize, iScale, iRes, iVRes, iCopies, fNoOrient, and fPortrait data are undefined and ignored." A reader that ignored it would confidently report a paper size and a scale percentage the file itself declares meaningless.
|
|
9
|
+
*/
|
|
10
|
+
interface SetupFields {
|
|
11
|
+
/** iPaperSize: an index into the paper-size code table below. Undefined and to be ignored when `noPls` is true. */
|
|
12
|
+
readonly paperCode: number;
|
|
13
|
+
/** iScale: the print scale as a whole percentage ("if the value is 107 then the scaling factor is 107%"). Undefined and to be ignored when `noPls` is true. */
|
|
14
|
+
readonly scalePercent: number;
|
|
15
|
+
/** iFitWidth: how many pages wide the sheet is fitted to. 0 is [MS-XLS]'s own "use as many pages as necessary". Meaningful only when WsBool's fFitToPage is set. */
|
|
16
|
+
readonly fitWidth: number;
|
|
17
|
+
/** iFitHeight: the same for the sheet's height. */
|
|
18
|
+
readonly fitHeight: number;
|
|
19
|
+
/** fLeftToRight: pages printed left-to-right first (true) or top-to-bottom first (false). */
|
|
20
|
+
readonly leftToRight: boolean;
|
|
21
|
+
/** fPortrait. Undefined and to be ignored when `noPls` or `noOrientation` is true -- in the latter case [MS-XLS] states the sheet prints portrait regardless. */
|
|
22
|
+
readonly portrait: boolean;
|
|
23
|
+
/** fNoPls: the paper size, scale, resolution, copy count, and both orientation bits are undefined. */
|
|
24
|
+
readonly noPls: boolean;
|
|
25
|
+
/** fNoOrient: "whether the paper orientation is set" -- when true, fPortrait is undefined and "Pages are printed using portrait mode". */
|
|
26
|
+
readonly noOrientation: boolean;
|
|
27
|
+
}
|
|
28
|
+
/** Packs a SetupFields' own four flags back into the record's grbit word. Every bit this package does not model is written as zero, which is what [MS-XLS] 2.4.257's own reserved field requires and what its remaining optional behaviours (black-and-white, draft quality, comment printing, error rendering, a custom starting page number) default to. */
|
|
29
|
+
declare function packSetupFlags(fields: SetupFields): number;
|
|
30
|
+
/** The read-side inverse of packSetupFlags: the four flags this package acts on, taken out of the record's grbit word. */
|
|
31
|
+
declare function unpackSetupFlags(grbit: number): {
|
|
32
|
+
leftToRight: boolean;
|
|
33
|
+
portrait: boolean;
|
|
34
|
+
noPls: boolean;
|
|
35
|
+
noOrientation: boolean;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* The page size a Setup record's own iPaperSize and orientation flags describe, or undefined when the code is not one this package maps.
|
|
39
|
+
*
|
|
40
|
+
* A paper code names the sheet's paper in its PORTRAIT dimensions regardless of how the sheet actually prints, so the orientation flags decide whether those dimensions are used as-is or transposed. [MS-XLS] 2.4.257 defines that in two steps: fNoOrient set means "Pages are printed using portrait mode" outright, and only when it is clear does fPortrait itself select portrait (1) or landscape (0).
|
|
41
|
+
*/
|
|
42
|
+
declare function pageSizeFromSetup(fields: SetupFields): PageSize | undefined;
|
|
43
|
+
/** How a Setup record can name a given page size: the paper code, and whether the sheet must be declared portrait or landscape for that code's own portrait dimensions to come out as the size asked for. */
|
|
44
|
+
interface PaperSelection {
|
|
45
|
+
readonly code: number;
|
|
46
|
+
readonly portrait: boolean;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The write-side inverse of pageSizeFromSetup: the paper code and orientation whose resolved page size matches this one, or undefined when no code in the table does.
|
|
50
|
+
*
|
|
51
|
+
* Undefined is a real answer with no fallback behind it. Unlike xlsx's own pageSetup element, which can state an explicit paperWidth/paperHeight pair when no code fits, [MS-XLS] 2.4.257's Setup record addresses paper only by code -- its own escape hatch for a size outside the table is a printer-defined custom size carried in a separate Pls record ([MS-XLS] 2.4.199), a printer driver's opaque DEVMODE blob rather than a pair of dimensions any reader could recover the size from. So a page size no code names genuinely cannot be written; the caller refuses rather than silently substituting a paper the document never asked for.
|
|
52
|
+
*
|
|
53
|
+
* A portrait match is preferred over a landscape one wherever both exist, which is what keeps the choice deterministic for the handful of codes in the table that are each other's transpose (US Tabloid 11x17in and US Ledger 17x11in are the same sheet of paper entered twice, once each way round).
|
|
54
|
+
*/
|
|
55
|
+
declare function paperSelectionFor(pageSize: PageSize): PaperSelection | undefined;
|
|
56
|
+
//#endregion
|
|
57
|
+
export { pageSizeFromSetup as a, packSetupFlags as i, SetupFields as n, paperSelectionFor as o, WSBOOL_FLAG_FIT_TO_PAGE as r, unpackSetupFlags as s, PaperSelection as t };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/biff/ptg.d.ts
|
|
2
|
+
/** A 3D reference's sheet scope, resolved from its ixti through EXTERNSHEET and a self-referencing SupBook ([MS-XLS] 2.4.271, 2.4.106, 2.5.344): the first and last sheet of the reference, both direct BoundSheet8 indices into FormulaSheetContext.sheets. A single-sheet 3D reference has `firstSheetIndex === lastSheetIndex`. Defined here rather than alongside the globals reader that produces it, since resolving it into reference text is what this module exists to do. */
|
|
3
|
+
interface SheetRange {
|
|
4
|
+
readonly firstSheetIndex: number;
|
|
5
|
+
readonly lastSheetIndex: number;
|
|
6
|
+
}
|
|
7
|
+
/** What a 3D reference's own ixti resolves against: the workbook's sheets in BoundSheet8 order (only the name is needed here), and each ixti's own resolved sheet range (undefined where this reader does not resolve it -- see WorkbookGlobals.sheetRanges, which this type's own sheetRanges field matches field-for-field). */
|
|
8
|
+
interface FormulaSheetContext {
|
|
9
|
+
readonly sheets: readonly {
|
|
10
|
+
readonly name: string;
|
|
11
|
+
}[];
|
|
12
|
+
readonly sheetRanges: readonly (SheetRange | undefined)[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Parses a Formula record's compiled expression into the text a spreadsheet application would show, or returns undefined for a token this reader does not resolve -- a shared formula's PtgExp, an array constant's PtgArray, a defined name, a natural-language reference, or a 3D reference into a genuinely external workbook (see the module comment for the full list). The caller leaves ContentSheetCell.formula absent in that case, exactly as for any other unsupported construct.
|
|
16
|
+
*
|
|
17
|
+
* `rgce` is the formula's own token bytes, already sliced to their declared length (CellParsedFormula.cce) by the caller -- this function reads exactly that many bytes and nothing past them.
|
|
18
|
+
*/
|
|
19
|
+
declare function parseFormulaText(rgce: Uint8Array<ArrayBuffer>, context: FormulaSheetContext): string | undefined;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { SheetRange as n, parseFormulaText as r, FormulaSheetContext as t };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/biff/ptg.d.ts
|
|
2
|
+
/** A 3D reference's sheet scope, resolved from its ixti through EXTERNSHEET and a self-referencing SupBook ([MS-XLS] 2.4.271, 2.4.106, 2.5.344): the first and last sheet of the reference, both direct BoundSheet8 indices into FormulaSheetContext.sheets. A single-sheet 3D reference has `firstSheetIndex === lastSheetIndex`. Defined here rather than alongside the globals reader that produces it, since resolving it into reference text is what this module exists to do. */
|
|
3
|
+
interface SheetRange {
|
|
4
|
+
readonly firstSheetIndex: number;
|
|
5
|
+
readonly lastSheetIndex: number;
|
|
6
|
+
}
|
|
7
|
+
/** What a 3D reference's own ixti resolves against: the workbook's sheets in BoundSheet8 order (only the name is needed here), and each ixti's own resolved sheet range (undefined where this reader does not resolve it -- see WorkbookGlobals.sheetRanges, which this type's own sheetRanges field matches field-for-field). */
|
|
8
|
+
interface FormulaSheetContext {
|
|
9
|
+
readonly sheets: readonly {
|
|
10
|
+
readonly name: string;
|
|
11
|
+
}[];
|
|
12
|
+
readonly sheetRanges: readonly (SheetRange | undefined)[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Parses a Formula record's compiled expression into the text a spreadsheet application would show, or returns undefined for a token this reader does not resolve -- a shared formula's PtgExp, an array constant's PtgArray, a defined name, a natural-language reference, or a 3D reference into a genuinely external workbook (see the module comment for the full list). The caller leaves ContentSheetCell.formula absent in that case, exactly as for any other unsupported construct.
|
|
16
|
+
*
|
|
17
|
+
* `rgce` is the formula's own token bytes, already sliced to their declared length (CellParsedFormula.cce) by the caller -- this function reads exactly that many bytes and nothing past them.
|
|
18
|
+
*/
|
|
19
|
+
declare function parseFormulaText(rgce: Uint8Array<ArrayBuffer>, context: FormulaSheetContext): string | undefined;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { SheetRange as n, parseFormulaText as r, FormulaSheetContext as t };
|