ooxml-core 1.25.2 → 1.26.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 (103) hide show
  1. package/README.md +16 -0
  2. package/dist/{PptxHandler-AUK27AQD.mjs → PptxHandler-5QBRBXRX.mjs} +3 -3
  3. package/dist/{PptxHandler-QBGEZDCO.cjs → PptxHandler-CVYP5PAN.cjs} +3 -3
  4. package/dist/PptxHandler-TOAD6P7N.mjs +4 -0
  5. package/dist/{PresentationBuilder-RX7D75GZ.mjs → PresentationBuilder-EBVNYMLE.mjs} +2 -2
  6. package/dist/{PresentationBuilder-MEETJGEA.mjs → PresentationBuilder-M5UXW4AF.mjs} +3 -3
  7. package/dist/{PresentationBuilder-CI45KEHL.cjs → PresentationBuilder-RVQZCTIO.cjs} +5 -5
  8. package/dist/automation/index.cjs +273 -156
  9. package/dist/automation/index.mjs +273 -156
  10. package/dist/automation/xlsx-read.d.ts +2 -8
  11. package/dist/automation/xlsx-read.d.ts.map +1 -1
  12. package/dist/automation/xlsx.d.ts +2 -2
  13. package/dist/chart/index.cjs +89 -47
  14. package/dist/chart/index.mjs +89 -47
  15. package/dist/{chunk-6DHZZD5R.mjs → chunk-2XMK5SXU.mjs} +106 -48
  16. package/dist/{chunk-TX2QFS3J.mjs → chunk-4IIR2QEH.mjs} +608 -371
  17. package/dist/{chunk-635WPRNJ.mjs → chunk-DNYZX6YG.mjs} +19 -3
  18. package/dist/{chunk-VGDHSED6.mjs → chunk-EBJ724RB.mjs} +1 -1
  19. package/dist/{chunk-GMETZZ3V.cjs → chunk-EEHK52XB.cjs} +1677 -1440
  20. package/dist/{chunk-E2PYQQQV.mjs → chunk-JJ37PCNR.mjs} +89 -47
  21. package/dist/{chunk-5F7OB7PA.mjs → chunk-K6OFJ5GJ.mjs} +605 -368
  22. package/dist/{chunk-HVRFRYYS.mjs → chunk-KONCS53X.mjs} +5 -5
  23. package/dist/{chunk-S5TGOEQX.cjs → chunk-MU3XSASV.cjs} +106 -47
  24. package/dist/{chunk-E3PRAHL6.mjs → chunk-ZXPPM63Y.mjs} +1 -1
  25. package/dist/docx/embedded.cjs +89 -47
  26. package/dist/docx/embedded.mjs +89 -47
  27. package/dist/docx/index.cjs +89 -47
  28. package/dist/docx/index.mjs +89 -47
  29. package/dist/docx/load/index.cjs +89 -47
  30. package/dist/docx/load/index.mjs +89 -47
  31. package/dist/index.cjs +128 -53
  32. package/dist/index.mjs +128 -53
  33. package/dist/opc/index.cjs +90 -47
  34. package/dist/opc/index.mjs +90 -48
  35. package/dist/opc/zip-limits.d.ts +6 -0
  36. package/dist/opc/zip-limits.d.ts.map +1 -1
  37. package/dist/pptx/automation/index.cjs +766 -444
  38. package/dist/pptx/automation/index.d.ts +4 -4
  39. package/dist/pptx/automation/index.mjs +6 -6
  40. package/dist/pptx/chunks/{index-CgjEEpfK.d.ts → index-B94RKk84.d.ts} +276 -115
  41. package/dist/pptx/chunks/index-B94RKk84.d.ts.map +1 -0
  42. package/dist/pptx/chunks/{index-CX0RM1fF.d.ts → index-BOpULlxB.d.ts} +3 -3
  43. package/dist/pptx/chunks/{index-CX0RM1fF.d.ts.map → index-BOpULlxB.d.ts.map} +1 -1
  44. package/dist/pptx/chunks/{index-DCbp5fOs.d.ts → index-D3gKRIAi.d.ts} +12 -5
  45. package/dist/pptx/chunks/{index-DCbp5fOs.d.ts.map → index-D3gKRIAi.d.ts.map} +1 -1
  46. package/dist/pptx/chunks/{text-operations-CjalmJIi.d.ts → text-operations-CNfUj45U.d.ts} +16 -2
  47. package/dist/pptx/chunks/{text-operations-CjalmJIi.d.ts.map → text-operations-CNfUj45U.d.ts.map} +1 -1
  48. package/dist/pptx/cli/index.cjs +766 -444
  49. package/dist/pptx/cli/index.d.ts +1 -1
  50. package/dist/pptx/cli/index.mjs +5 -5
  51. package/dist/pptx/converter/index.d.ts +1 -1
  52. package/dist/pptx/converter/index.mjs +3 -3
  53. package/dist/pptx/editor/render/editor-history.cjs +21 -0
  54. package/dist/pptx/editor/render/editor-history.d.ts +9 -0
  55. package/dist/pptx/editor/render/editor-history.d.ts.map +1 -1
  56. package/dist/pptx/editor/render/editor-history.mjs +21 -0
  57. package/dist/pptx/editor/render/find-replace.cjs +14 -14
  58. package/dist/pptx/editor/render/find-replace.d.ts +2 -2
  59. package/dist/pptx/editor/render/find-replace.mjs +1 -1
  60. package/dist/pptx/editor/render/slide-operations.cjs +8 -8
  61. package/dist/pptx/editor/render/slide-operations.mjs +2 -2
  62. package/dist/pptx/index.cjs +765 -442
  63. package/dist/pptx/index.d.ts +5 -5
  64. package/dist/pptx/index.mjs +6 -6
  65. package/dist/pptx/node/index.d.ts +1 -1
  66. package/dist/pptx/signature-node/index.cjs +89 -47
  67. package/dist/pptx/signature-node/index.mjs +2 -2
  68. package/dist/visio/index.cjs +266 -150
  69. package/dist/visio/index.mjs +266 -150
  70. package/dist/visio/ui/index.cjs +266 -150
  71. package/dist/visio/ui/index.mjs +266 -150
  72. package/dist/xlsx/index.cjs +518 -153
  73. package/dist/xlsx/index.mjs +518 -154
  74. package/dist/xlsx/load/index.cjs +266 -150
  75. package/dist/xlsx/load/index.mjs +266 -150
  76. package/dist/xlsx/numfmt/view.d.ts +13 -0
  77. package/dist/xlsx/numfmt/view.d.ts.map +1 -0
  78. package/dist/xlsx/read/index.d.ts +1 -0
  79. package/dist/xlsx/read/index.d.ts.map +1 -1
  80. package/dist/xlsx/read/limits.d.ts +5 -0
  81. package/dist/xlsx/read/limits.d.ts.map +1 -1
  82. package/dist/xlsx/read/package.d.ts +6 -0
  83. package/dist/xlsx/read/package.d.ts.map +1 -1
  84. package/dist/xlsx/read/rows-stream.d.ts +12 -0
  85. package/dist/xlsx/read/rows-stream.d.ts.map +1 -0
  86. package/dist/xlsx/read/rows.d.ts +37 -0
  87. package/dist/xlsx/read/rows.d.ts.map +1 -0
  88. package/dist/xlsx/read/shared-strings.d.ts +6 -1
  89. package/dist/xlsx/read/shared-strings.d.ts.map +1 -1
  90. package/dist/xlsx/read/sheet-data-source.d.ts +30 -3
  91. package/dist/xlsx/read/sheet-data-source.d.ts.map +1 -1
  92. package/dist/xlsx/read/sheet-data.d.ts +13 -2
  93. package/dist/xlsx/read/sheet-data.d.ts.map +1 -1
  94. package/dist/xlsx/read/worksheet.d.ts.map +1 -1
  95. package/dist/xlsx/ui/index.cjs +266 -150
  96. package/dist/xlsx/ui/index.mjs +266 -150
  97. package/dist/xml/index.cjs +38 -6
  98. package/dist/xml/index.mjs +37 -7
  99. package/dist/xml/lite.d.ts +15 -0
  100. package/dist/xml/lite.d.ts.map +1 -1
  101. package/package.json +1 -1
  102. package/dist/PptxHandler-5UO5DD5K.mjs +0 -4
  103. package/dist/pptx/chunks/index-CgjEEpfK.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"package.d.ts","sourceRoot":"","sources":["../../../xlsx/read/package.ts"],"names":[],"mappings":"AACA,OAAO,EAON,KAAK,YAAY,EACjB,KAAK,YAAY,EAEjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACN,KAAK,cAAc,EAInB,MAAM,UAAU,CAAC;AAElB,2EAA2E;AAC3E,eAAO,MAAM,aAAa;aACzB,QAAQ,EAAE,4EAA4E;aACtF,aAAa,EAAE,sDAAsD;aACrE,QAAQ,EAAE,+EAA+E;aACzF,aAAa,EAAE,yDAAyD;aACxE,SAAS,EAAE,2EAA2E;aACtF,UAAU,EAAE,4EAA4E;aACxF,aAAa,EAAE,+EAA+E;aAC9F,MAAM,EAAE,wEAAwE;aAChF,KAAK,EAAE,yDAAyD;aAChE,QAAQ,EAAE,0EAA0E;aACpF,gBAAgB,EAAE,+CAA+C;aACjE,OAAO,EAAE,qCAAqC;aAC9C,KAAK,EAAE,uEAAuE;aAC9E,OAAO,EAAE,2DAA2D;aACpE,KAAK,EAAE,mEAAmE;aAC1E,GAAG,EAAE,0DAA0D;aAC/D,IAAI,EAAE,4DAA4D;aAClE,GAAG,EAAE,uEAAuE;aAC5E,IAAI,EA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CAQlC"}
@@ -0,0 +1,12 @@
1
+ import type JSZip from 'jszip';
2
+ import type { Cell } from '../model.js';
3
+ import { type XlsxLoadLimits } from './limits.js';
4
+ import { type CellContext } from './sheet-data.js';
5
+ /** A row's index and its cells as `loadXlsx` stores them. */
6
+ export type SheetRow = [row: number, cells: Map<number, Cell>];
7
+ /**
8
+ * The rows of the worksheet part in `entry`, each as soon as it is read. `alreadyRead` is what
9
+ * the reader inflated before (for the total limit).
10
+ */
11
+ export declare function sheetRows(ctx: CellContext, entry: JSZip.JSZipObject, alreadyRead: number, limits: Required<XlsxLoadLimits>): AsyncGenerator<SheetRow, void, undefined>;
12
+ //# sourceMappingURL=rows-stream.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rows-stream.d.ts","sourceRoot":"","sources":["../../../xlsx/read/rows-stream.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAErC,OAAO,EAA8B,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAC3E,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAMjE,6DAA6D;AAC7D,MAAM,MAAM,QAAQ,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;AAE/D;;;GAGG;AACH,wBAAuB,SAAS,CAC/B,GAAG,EAAE,WAAW,EAChB,KAAK,EAAE,KAAK,CAAC,WAAW,EACxB,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,QAAQ,CAAC,cAAc,CAAC,GAC9B,cAAc,CAAC,QAAQ,EAAE,IAAI,EAAE,SAAS,CAAC,CAsC3C"}
@@ -0,0 +1,37 @@
1
+ import type { CellValue } from '../model.js';
2
+ import { type NumberFormatView } from '../numfmt/view.js';
3
+ import { type XlsxLoadLimits } from './limits.js';
4
+ export interface ReadXlsxRowsOptions {
5
+ /** The sheet to read: its position in the workbook (0 is the first) or its name. Default 0. */
6
+ sheet?: number | string;
7
+ /**
8
+ * Size limits, as for `loadXlsx`: declared sizes are checked when the package is opened and
9
+ * the parts that are read count their bytes as they inflate.
10
+ */
11
+ limits?: XlsxLoadLimits;
12
+ /** Called once for each distinct problem the reader reports (a `loadXlsx` warning). */
13
+ onWarning?: (message: string) => void;
14
+ }
15
+ export interface XlsxRowCell extends NumberFormatView {
16
+ /** Zero-based column index. */
17
+ col: number;
18
+ /** The value as `loadXlsx` reads it: dates are serial numbers (see `iso`). */
19
+ value: CellValue;
20
+ /** The formula without its `=` (shared formulas expanded); `value` is its cached result. */
21
+ formula?: string;
22
+ }
23
+ export interface XlsxRow {
24
+ /** Zero-based row index. */
25
+ row: number;
26
+ /** The row's cells with a value or a formula, by column. */
27
+ cells: XlsxRowCell[];
28
+ }
29
+ /**
30
+ * The rows of one worksheet in the order the file stores them (ascending in files Excel writes),
31
+ * each with the cells that hold a value or a formula; rows without one are left out. Values,
32
+ * formulas, dates and number formats are what `loadXlsx` and the automation reads give for the
33
+ * same cells. Breaking out of the loop stops inflating the sheet. A cell stored under another
34
+ * row's element comes as a row of its own.
35
+ */
36
+ export declare function readXlsxRows(input: Uint8Array | ArrayBuffer, options?: ReadXlsxRowsOptions): AsyncGenerator<XlsxRow, void, undefined>;
37
+ //# sourceMappingURL=rows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rows.d.ts","sourceRoot":"","sources":["../../../xlsx/read/rows.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAQ,SAAS,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,KAAK,gBAAgB,EAAoB,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAqB,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AASlE,MAAM,WAAW,mBAAmB;IACnC,+FAA+F;IAC/F,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;OAGG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,uFAAuF;IACvF,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC;AAED,MAAM,WAAW,WAAY,SAAQ,gBAAgB;IACpD,+BAA+B;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,8EAA8E;IAC9E,KAAK,EAAE,SAAS,CAAC;IACjB,4FAA4F;IAC5F,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,OAAO;IACvB,4BAA4B;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,4DAA4D;IAC5D,KAAK,EAAE,WAAW,EAAE,CAAC;CACrB;AAED;;;;;;GAMG;AACH,wBAAuB,YAAY,CAClC,KAAK,EAAE,UAAU,GAAG,WAAW,EAC/B,OAAO,GAAE,mBAAwB,GAC/B,cAAc,CAAC,OAAO,EAAE,IAAI,EAAE,SAAS,CAAC,CAkE1C"}
@@ -1,4 +1,4 @@
1
- import type { XmlElement } from '../../xml/index.js';
1
+ import { type XmlElement } from '../../xml/index.js';
2
2
  import type { RichTextRun } from '../model.js';
3
3
  export interface SharedString {
4
4
  text: string;
@@ -9,5 +9,10 @@ export interface SharedString {
9
9
  * and properties are ignored.
10
10
  */
11
11
  export declare function parseRichString(element: XmlElement, palette: readonly string[] | undefined): SharedString;
12
+ /**
13
+ * Reads the shared strings part. The strings are read one `<si>` at a time with the light reader
14
+ * (a DOM of a large table cost about 2 KiB per string), after the element and nesting limits the
15
+ * DOM parser checks; a part the light reader declines is parsed whole, with the same result.
16
+ */
12
17
  export declare function parseSharedStrings(xml: string | undefined, palette: readonly string[] | undefined, maxXmlElements?: number): SharedString[];
13
18
  //# sourceMappingURL=shared-strings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shared-strings.d.ts","sourceRoot":"","sources":["../../../xlsx/read/shared-strings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAK5C,MAAM,WAAW,YAAY;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,WAAW,EAAE,CAAC;CACrB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC9B,OAAO,EAAE,UAAU,EACnB,OAAO,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,GACpC,YAAY,CAcd;AAED,wBAAgB,kBAAkB,CACjC,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,OAAO,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,EACtC,cAAc,CAAC,EAAE,MAAM,GACrB,YAAY,EAAE,CAIhB"}
1
+ {"version":3,"file":"shared-strings.d.ts","sourceRoot":"","sources":["../../../xlsx/read/shared-strings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAChF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAM5C,MAAM,WAAW,YAAY;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,WAAW,EAAE,CAAC;CACrB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC9B,OAAO,EAAE,UAAU,EACnB,OAAO,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,GACpC,YAAY,CAcd;AAID;;;;GAIG;AACH,wBAAgB,kBAAkB,CACjC,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,OAAO,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,EACtC,cAAc,CAAC,EAAE,MAAM,GACrB,YAAY,EAAE,CAehB"}
@@ -1,10 +1,37 @@
1
- import { type XmlElement } from '../../xml/index.js';
1
+ import { type LiteNamespaces, type XmlElement } from '../../xml/index.js';
2
2
  export interface SplitSheetData {
3
3
  /** The part with `<sheetData>` emptied, for the DOM parser. */
4
4
  xml: string;
5
- /** The cell data, readable through the same DOM subset as a parsed `<sheetData>`. */
6
- sheetData: XmlElement;
5
+ /**
6
+ * The children of `<sheetData>` (its rows), readable through the same DOM subset as parsed
7
+ * ones and built one at a time while iterating. Markup the light reader declines throws a
8
+ * `LiteDeclinedError` from the iteration, possibly after some rows: the part must then be
9
+ * read whole.
10
+ */
11
+ rows: Iterable<XmlElement>;
7
12
  }
13
+ /**
14
+ * The children of a part's root element (the strings of the shared strings part), read by the
15
+ * light reader one at a time like the rows of {@link SplitSheetData}, with the namespaces declared
16
+ * on the root; undefined when the part must go to the DOM parser (a declaration, a self-closing
17
+ * root, anything but whitespace, comments and an XML declaration around the root).
18
+ */
19
+ export declare function rootChildren(xml: string): Iterable<XmlElement> | undefined;
20
+ /** Where the cell data of a worksheet part starts, for the light reader. */
21
+ export interface SheetDataStart {
22
+ /** The namespaces declared on the root, which the cell data's prefixes resolve through. */
23
+ namespaces: LiteNamespaces;
24
+ /** `sheetData` with its prefix, as its end tag names it. */
25
+ tagName: string;
26
+ /** The position just after the `<sheetData>` start tag. */
27
+ contentStart: number;
28
+ }
29
+ /**
30
+ * The start of the cell data in `head`, the beginning of a worksheet part read in pieces:
31
+ * undefined while `head` does not reach the end of the `<sheetData>` start tag, `false` when the
32
+ * light reader cannot take the cell data and the part must be parsed whole.
33
+ */
34
+ export declare function sheetDataStart(head: string): SheetDataStart | false | undefined;
8
35
  /** Splits the cell data from a worksheet part, or undefined when the whole part must be parsed. */
9
36
  export declare function splitSheetData(xml: string): SplitSheetData | undefined;
10
37
  //# sourceMappingURL=sheet-data-source.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sheet-data-source.d.ts","sourceRoot":"","sources":["../../../xlsx/read/sheet-data-source.ts"],"names":[],"mappings":"AAOA,OAAO,EAIN,KAAK,UAAU,EACf,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,cAAc;IAC9B,+DAA+D;IAC/D,GAAG,EAAE,MAAM,CAAC;IACZ,qFAAqF;IACrF,SAAS,EAAE,UAAU,CAAC;CACtB;AAmDD,mGAAmG;AACnG,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS,CAqBtE"}
1
+ {"version":3,"file":"sheet-data-source.d.ts","sourceRoot":"","sources":["../../../xlsx/read/sheet-data-source.ts"],"names":[],"mappings":"AAQA,OAAO,EAAqB,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE1F,MAAM,WAAW,cAAc;IAC9B,+DAA+D;IAC/D,GAAG,EAAE,MAAM,CAAC;IACZ;;;;;OAKG;IACH,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC;CAC3B;AAsDD;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CAAC,UAAU,CAAC,GAAG,SAAS,CAW1E;AAED,4EAA4E;AAC5E,MAAM,WAAW,cAAc;IAC9B,2FAA2F;IAC3F,UAAU,EAAE,cAAc,CAAC;IAC3B,4DAA4D;IAC5D,OAAO,EAAE,MAAM,CAAC;IAChB,2DAA2D;IAC3D,YAAY,EAAE,MAAM,CAAC;CACrB;AAiBD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,GAAG,KAAK,GAAG,SAAS,CAM/E;AAED,mGAAmG;AACnG,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS,CAatE"}
@@ -10,6 +10,17 @@ export interface CellContext {
10
10
  dynamicCells?: ReadonlySet<number>;
11
11
  warn(message: string): void;
12
12
  }
13
- /** Reads `<sheetData>` into the sheet's cell map and row info. */
14
- export declare function readSheetData(ctx: CellContext, sheetData: XmlElement, sheet: Worksheet): void;
13
+ /**
14
+ * Reads the children of `<sheetData>` (`elements(sheetData)`, or the rows of a split part) into
15
+ * the sheet's cell map and row info.
16
+ */
17
+ export declare function readSheetData(ctx: CellContext, rows: Iterable<XmlElement>, sheet: Worksheet): void;
18
+ /**
19
+ * Reads `<sheetData>` children into `sheet` one at a time, carrying shared formulas and the row
20
+ * position from one to the next; `done` marks the cells dynamic arrays spill into.
21
+ */
22
+ export declare function sheetDataReader(ctx: CellContext, sheet: Worksheet): {
23
+ read: (rowEl: XmlElement) => void;
24
+ done: () => void;
25
+ };
15
26
  //# sourceMappingURL=sheet-data.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sheet-data.d.ts","sourceRoot":"","sources":["../../../xlsx/read/sheet-data.ts"],"names":[],"mappings":"AAGA,OAAO,EAMN,KAAK,SAAS,EACd,MAAM,UAAU,CAAC;AAClB,OAAO,EAAY,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG5D,OAAO,EAAmB,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGtE,MAAM,WAAW,WAAW;IAC3B,aAAa,EAAE,SAAS,YAAY,EAAE,CAAC;IACvC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;IACvC,uFAAuF;IACvF,YAAY,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACnC,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAkJD,kEAAkE;AAClE,wBAAgB,aAAa,CAAC,GAAG,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,GAAG,IAAI,CAgD7F"}
1
+ {"version":3,"file":"sheet-data.d.ts","sourceRoot":"","sources":["../../../xlsx/read/sheet-data.ts"],"names":[],"mappings":"AAGA,OAAO,EAMN,KAAK,SAAS,EACd,MAAM,UAAU,CAAC;AAClB,OAAO,EAAY,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG5D,OAAO,EAAmB,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGtE,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