xls-codec 3.0.0 → 4.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.
Files changed (38) hide show
  1. package/README.md +4 -4
  2. package/dist/biff/ptg.cjs +160 -7
  3. package/dist/biff/ptg.d.cts +2 -2
  4. package/dist/biff/ptg.d.ts +2 -2
  5. package/dist/biff/ptg.js +161 -9
  6. package/dist/biff/strings.cjs +6 -0
  7. package/dist/biff/strings.d.cts +3 -1
  8. package/dist/biff/strings.d.ts +3 -1
  9. package/dist/biff/strings.js +6 -1
  10. package/dist/biff/substreams.cjs +5 -0
  11. package/dist/biff/substreams.d.cts +2 -2
  12. package/dist/biff/substreams.d.ts +2 -2
  13. package/dist/biff/substreams.js +5 -1
  14. package/dist/index.cjs +2 -0
  15. package/dist/index.d.cts +3 -3
  16. package/dist/index.d.ts +3 -3
  17. package/dist/index.js +3 -3
  18. package/dist/{print-names-DUlpVE00.d.ts → print-names-C-PQ2vAy.d.ts} +1 -1
  19. package/dist/{print-names-D-njuzVw.d.cts → print-names-DyYloloV.d.cts} +1 -1
  20. package/dist/ptg-CCBbJLZJ.d.cts +49 -0
  21. package/dist/ptg-CCBbJLZJ.d.ts +49 -0
  22. package/dist/{substreams-D7dQiJbp.d.ts → substreams-CmyZMtuM.d.ts} +3 -1
  23. package/dist/{substreams-Ddtvn_Vr.d.cts → substreams-Cpy5Fi3d.d.cts} +3 -1
  24. package/dist/workbook/globals-writer.d.cts +1 -1
  25. package/dist/workbook/globals-writer.d.ts +1 -1
  26. package/dist/workbook/globals.cjs +137 -14
  27. package/dist/workbook/globals.d.cts +6 -6
  28. package/dist/workbook/globals.d.ts +6 -6
  29. package/dist/workbook/globals.js +138 -15
  30. package/dist/workbook/print-names.d.cts +1 -1
  31. package/dist/workbook/print-names.d.ts +1 -1
  32. package/dist/workbook/sheet.cjs +109 -6
  33. package/dist/workbook/sheet.d.cts +3 -3
  34. package/dist/workbook/sheet.d.ts +3 -3
  35. package/dist/workbook/sheet.js +110 -7
  36. package/package.json +1 -1
  37. package/dist/ptg-B2K8t3js.d.cts +0 -21
  38. package/dist/ptg-B2K8t3js.d.ts +0 -21
@@ -1,21 +0,0 @@
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 };
@@ -1,21 +0,0 @@
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 };