@sheetxl/io-xlsx 0.7.28-beta.4 → 0.8.0-beta.10

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 (127) hide show
  1. package/browser/esm/{BXCOn1XvLvYSfpzi.mjs → 2EOdn2WRK5y1L58S.mjs} +193 -143
  2. package/browser/esm/{BknJ4AeVeFJploh9.mjs → B-jb5SuiVh5NnBG_.mjs} +28 -13
  3. package/browser/esm/BKT8OBj-bhQwdg49.mjs +67 -0
  4. package/browser/esm/BLXcoiDAaOMjFuhw.mjs +8056 -0
  5. package/browser/esm/BPmehfSqdvgsLBsB.mjs +5153 -0
  6. package/browser/esm/CI_CZI5m5-KkiAK5.mjs +3559 -0
  7. package/browser/esm/{C3sYFBc7Tym8l12A.mjs → DXopGe8PrLWmwGaV.mjs} +1 -1
  8. package/browser/esm/NQIuOQIleHC4NUW6.mjs +2446 -0
  9. package/browser/esm/index.mjs +2 -3
  10. package/browser/esm/{BhohPLTubb_9rfrh.mjs → xc_LzCPgHn-acgFZ.mjs} +2 -2
  11. package/licenses/dependencies.txt +2 -2
  12. package/node/esm/{B6lQXVQjFT_OE3IA.mjs → BmdmvgO5Zdgx-RWo.mjs} +2 -2
  13. package/node/esm/BpxxiZ2oKPkUSfdB.mjs +2486 -0
  14. package/node/esm/{B9CUp-rqol5K1r1c.mjs → CHqRP_NjPpPd7m9L.mjs} +1 -1
  15. package/node/esm/CtAF486aZqYzMeLM.mjs +3651 -0
  16. package/node/esm/{CfIzBnObj09fDuUX.mjs → O5mti2R9drFOlXc7.mjs} +49 -35
  17. package/node/esm/QS_theNoeqNGLStj.mjs +5298 -0
  18. package/node/esm/index.mjs +40 -25
  19. package/node/esm/nNQ7MG89sGKwkjMA.mjs +4649 -0
  20. package/package.json +7 -8
  21. package/types/src/AutoFilterRules.d.ts +86 -10
  22. package/types/src/ConditionalFormatRules.d.ts +5 -5
  23. package/types/src/DataValidationRules.d.ts +18 -2
  24. package/types/src/ExcelCalcStamp.d.ts +39 -0
  25. package/types/src/ExcelCompat.d.ts +197 -42
  26. package/types/src/ExcelReservedNames.d.ts +3 -4
  27. package/types/src/LegacyFormula.d.ts +28 -7
  28. package/types/src/OOXMLExtensions.d.ts +14 -2
  29. package/types/src/Plugin.d.ts +16 -5
  30. package/types/src/ProtectionAttributes.d.ts +38 -0
  31. package/types/src/SourcePackage.d.ts +31 -12
  32. package/types/src/Types.d.ts +17 -0
  33. package/types/src/reader/HiddenFormulas.d.ts +16 -0
  34. package/types/src/reader/SlicerJoin.d.ts +24 -0
  35. package/types/src/reader/Warning.d.ts +29 -0
  36. package/types/src/reader/ZipReader.d.ts +1 -1
  37. package/types/src/reader/_SlicerRecord.d.ts +37 -0
  38. package/types/src/reader/dom/CustGeomUtils.d.ts +7 -0
  39. package/types/src/reader/dom/DOMTransformer.d.ts +2 -2
  40. package/types/src/reader/dom/ExecutionContext.d.ts +16 -3
  41. package/types/src/reader/dom/Types.d.ts +19 -3
  42. package/types/src/reader/domVisitors/AutoFilterVisitor.d.ts +13 -0
  43. package/types/src/reader/domVisitors/ColorContainerVisitor.d.ts +15 -2
  44. package/types/src/reader/domVisitors/CommentVisitor.d.ts +24 -2
  45. package/types/src/reader/domVisitors/CommentsVisitor.d.ts +2 -2
  46. package/types/src/reader/domVisitors/DrawingCxnSpVisitor.d.ts +1 -0
  47. package/types/src/reader/domVisitors/DrawingElementVisitor.d.ts +32 -1
  48. package/types/src/reader/domVisitors/DrawingGraphicFrameVisitor.d.ts +9 -0
  49. package/types/src/reader/domVisitors/DrawingGrpSpVisitor.d.ts +14 -2
  50. package/types/src/reader/domVisitors/DrawingPicVisitor.d.ts +13 -0
  51. package/types/src/reader/domVisitors/DrawingSpVisitor.d.ts +20 -1
  52. package/types/src/reader/domVisitors/DrawingVisitor.d.ts +10 -0
  53. package/types/src/reader/domVisitors/ExternalLinkVisitor.d.ts +21 -3
  54. package/types/src/reader/domVisitors/FmtSchemeVisitor.d.ts +4 -4
  55. package/types/src/reader/domVisitors/FormControlPrVisitor.d.ts +9 -0
  56. package/types/src/reader/domVisitors/ShapeTextVisitor.d.ts +44 -0
  57. package/types/src/reader/domVisitors/SheetColorContainerVisitor.d.ts +2 -2
  58. package/types/src/reader/domVisitors/SheetStyleVisitor.d.ts +19 -6
  59. package/types/src/reader/domVisitors/SlicerCacheDefinitionVisitor.d.ts +7 -2
  60. package/types/src/reader/domVisitors/SlicersVisitor.d.ts +7 -3
  61. package/types/src/reader/domVisitors/TextPropertiesVisitor.d.ts +13 -1
  62. package/types/src/reader/domVisitors/ThreadedCommentVisitor.d.ts +18 -1
  63. package/types/src/reader/domVisitors/ThreadedCommentsVisitor.d.ts +2 -2
  64. package/types/src/reader/domVisitors/WorkbookVisitor.d.ts +11 -1
  65. package/types/src/reader/domVisitors/index.d.ts +4 -2
  66. package/types/src/reader/sax/LeanSaxParser.d.ts +58 -0
  67. package/types/src/reader/sax/SaxParser.d.ts +11 -1
  68. package/types/src/reader/sax/SaxVisitor.d.ts +3 -2
  69. package/types/src/reader/saxVisitors/ContentTypesVisitor.d.ts +9 -0
  70. package/types/src/reader/saxVisitors/WorksheetVisitor.d.ts +11 -4
  71. package/types/src/utils/DrawingMLText.d.ts +39 -0
  72. package/types/src/utils/FormControls.d.ts +170 -0
  73. package/types/src/utils/VmlNoteShapes.d.ts +135 -0
  74. package/types/src/vba/VBAProject.d.ts +52 -4
  75. package/types/src/writer/builder/ContentTypes.d.ts +13 -0
  76. package/types/src/writer/builder/Emitter.d.ts +11 -6
  77. package/types/src/writer/builder/EmitterRegistry.d.ts +7 -0
  78. package/types/src/writer/builder/OpcXmlUtils.d.ts +2 -0
  79. package/types/src/writer/builder/PackageBuilder.d.ts +72 -22
  80. package/types/src/writer/builder/PartWriter.d.ts +5 -0
  81. package/types/src/writer/builder/RelationshipSet.d.ts +3 -0
  82. package/types/src/writer/builder/Types.d.ts +117 -38
  83. package/types/src/writer/builder/_Types.d.ts +17 -0
  84. package/types/src/writer/emitters/CommentsEmitter.d.ts +58 -0
  85. package/types/src/writer/emitters/EmbeddedPartEmitter.d.ts +60 -0
  86. package/types/src/writer/emitters/ExternalLinkEmitter.d.ts +19 -0
  87. package/types/src/writer/emitters/LegacyDrawingEmitter.d.ts +18 -0
  88. package/types/src/writer/emitters/PersonsEmitter.d.ts +17 -0
  89. package/types/src/writer/emitters/PivotTableEmitter.d.ts +45 -0
  90. package/types/src/writer/emitters/SlicerEmitter.d.ts +66 -0
  91. package/types/src/writer/emitters/StylesEmitter.d.ts +2 -2
  92. package/types/src/writer/emitters/TableEmitter.d.ts +14 -0
  93. package/types/src/writer/emitters/ThreadedCommentsEmitter.d.ts +27 -0
  94. package/types/src/writer/emitters/WorkbookEmitter.d.ts +16 -3
  95. package/types/src/writer/utils/AutoFilter.d.ts +2 -2
  96. package/types/src/writer/utils/CustGeomUtils.d.ts +5 -0
  97. package/types/src/writer/utils/DrawMLUtils.d.ts +57 -3
  98. package/types/src/writer/utils/DummyFunction.d.ts +0 -2
  99. package/types/src/writer/utils/DxfCollector.d.ts +3 -3
  100. package/types/src/writer/utils/HiddenFormulaXfs.d.ts +28 -0
  101. package/types/src/writer/utils/PrstGeomUtils.d.ts +6 -0
  102. package/types/src/writer/utils/TextUtils.d.ts +21 -2
  103. package/browser/cjs/B6sirGz6w-Bm7Ofo.cjs +0 -1
  104. package/browser/cjs/B7_pDFYCVzt-3hUs.cjs +0 -1
  105. package/browser/cjs/Bhq8KfEhCnRykWeS.cjs +0 -1
  106. package/browser/cjs/BmG0GOcbuYvt3-R2.cjs +0 -1
  107. package/browser/cjs/CIpMN7SDVREKQUQE.cjs +0 -6
  108. package/browser/cjs/D3YH3tTndeltJsh5.cjs +0 -1
  109. package/browser/cjs/D5Y4KQhKdukOkjvA.cjs +0 -2
  110. package/browser/cjs/DK9GutW2zPbyNlfU.cjs +0 -2
  111. package/browser/cjs/DWkuoJSgvcXJTdN1.cjs +0 -1
  112. package/browser/cjs/Dmi-Tsz618B6vKpZ.cjs +0 -5
  113. package/browser/cjs/index.cjs +0 -1
  114. package/browser/cjs/xQ6-wbTw5UzZUM1Y.cjs +0 -1
  115. package/browser/esm/BcnofzmeeuCVzr_M.mjs +0 -52
  116. package/browser/esm/C7R1lFA0iv-1bZ9i.mjs +0 -99
  117. package/browser/esm/CV_L3E5OoPstI9lx.mjs +0 -2211
  118. package/browser/esm/D8qZcXzj_fdusd0Y.mjs +0 -4748
  119. package/browser/esm/DLEtaZiz_1cZH0dA.mjs +0 -2685
  120. package/browser/esm/DlBlJGlFQJrKovwJ.mjs +0 -3651
  121. package/browser/esm/saBnxecsRUpY6fGv.mjs +0 -24
  122. package/node/esm/BSrW-J3BEH4Tza_S.mjs +0 -2486
  123. package/node/esm/BYCpXFieBgL_cwTO.mjs +0 -2255
  124. package/node/esm/Bqi4c7-14v0oNgFN.mjs +0 -108
  125. package/node/esm/D0frS50CfyeuXcuz.mjs +0 -2766
  126. package/node/esm/DsZ19z4oXoL-d0Lk.mjs +0 -3740
  127. package/types/src/reader/domVisitors/HyperlinkVisitor.d.ts +0 -6
@@ -1,7 +1,16 @@
1
1
  import { IMovable } from '@sheetxl/sdk';
2
2
  import { Visitor, ExecutionContext } from '../dom';
3
3
  import { DrawingElementVisitor } from './DrawingElementVisitor';
4
+ /**
5
+ * A `graphicFrame`: a chart (captured verbatim with its part), a slicer, or another graphic,
6
+ * placed by a movable or a member of a group.
7
+ */
4
8
  export declare class DrawingGraphicFrameVisitor extends DrawingElementVisitor implements Visitor {
5
9
  visit(context: ExecutionContext, elem: Element, json: IMovable.JSON): any;
10
+ /**
11
+ * The content a frame's `graphic/graphicData` names: a chart as its captured markup and part,
12
+ * a slicer or anything else by its relationship.
13
+ */
14
+ protected readGraphic(context: ExecutionContext, elem: Element): IMovable.ContentJSON<any>;
6
15
  }
7
16
  //# sourceMappingURL=DrawingGraphicFrameVisitor.d.ts.map
@@ -1,7 +1,19 @@
1
1
  import { IMovable } from '@sheetxl/sdk';
2
2
  import { Visitor, ExecutionContext } from '../dom';
3
- import { DrawingSpVisitor } from './DrawingSpVisitor';
4
- export declare class DrawingGrpSpVisitor extends DrawingSpVisitor implements Visitor {
3
+ import { DrawingElementVisitor } from './DrawingElementVisitor';
4
+ /**
5
+ * A `grpSp`: a group, read as a movable whose content is of type `group` with its members in
6
+ * `members`, each an ordinary movable JSON.
7
+ *
8
+ * @remarks
9
+ * The group's `grpSpPr/xfrm` is its frame (`off`/`ext`) and the space its members' frames are
10
+ * stated in (`chOff`/`chExt`), both in pixels. A top-level group's frame is its anchor's; a
11
+ * nested group's is its own anchor in the enclosing group's child space. Rotation and flips are
12
+ * the movable's. Members are read by the walker as it descends — each `sp`/`cxnSp`/`grpSp`/`pic`/
13
+ * `graphicFrame` under the group adds itself to `members` in document order, which is z-order.
14
+ */
15
+ export declare class DrawingGrpSpVisitor extends DrawingElementVisitor implements Visitor {
16
+ private readonly _fills;
5
17
  visit(context: ExecutionContext, elem: Element, json: IMovable.JSON): any;
6
18
  }
7
19
  //# sourceMappingURL=DrawingGrpSpVisitor.d.ts.map
@@ -1,7 +1,20 @@
1
1
  import { IMovable } from '@sheetxl/sdk';
2
2
  import { Visitor, ExecutionContext } from '../dom';
3
3
  import { DrawingElementVisitor } from './DrawingElementVisitor';
4
+ /**
5
+ * A `pic`: the picture content of a movable, or of a member of a group.
6
+ *
7
+ * @remarks
8
+ * A member is read as a movable of the group's `members` whose content is a picture: its image a
9
+ * workbook resource, its locks by the file's names, and — by the `spPr` visitor the walker runs
10
+ * over its children, hoisted afterwards — its frame in the group's child space.
11
+ */
4
12
  export declare class DrawingPicVisitor extends DrawingElementVisitor implements Visitor {
5
13
  visit(context: ExecutionContext, elem: Element, jsonHandle: IMovable.JSON): IMovable.JSON | undefined;
14
+ /**
15
+ * The resource a `blipFill`'s image is read to: `undefined` when the element has no `blip`,
16
+ * `null` when the blip names no relationship (warned once), else what the relationship resolves to.
17
+ */
18
+ protected readImageResource(context: ExecutionContext, elem: Element): number | null | undefined;
6
19
  }
7
20
  //# sourceMappingURL=DrawingPicVisitor.d.ts.map
@@ -1,7 +1,26 @@
1
- import { IMovable } from '@sheetxl/sdk';
1
+ import { IMovable, IShape } from '@sheetxl/sdk';
2
2
  import { Visitor, ExecutionContext } from '../dom';
3
3
  import { DrawingElementVisitor } from './DrawingElementVisitor';
4
+ /**
5
+ * An `sp`: the shape content of a movable, or of a member of a group.
6
+ *
7
+ * @remarks
8
+ * What the element itself states — its kind, attributes, non-visual properties, style references
9
+ * — is read here; its properties and text are read into the same content JSON by the `spPr` and
10
+ * `txBody` visitors the walker runs over its children. A member of a group is read the same way,
11
+ * as a movable of the group's `members`.
12
+ */
4
13
  export declare class DrawingSpVisitor extends DrawingElementVisitor implements Visitor {
5
14
  visit(context: ExecutionContext, elem: Element, json: IMovable.JSON): any;
15
+ protected visitShape(context: ExecutionContext, elem: Element, json: IMovable.JSON, type: 'sp' | 'cxnSp', locksPath: string): any;
16
+ /**
17
+ * The VML shape a form control's hidden twin names, by its `spid` (`_x0000_s1025` is 1025).
18
+ */
19
+ protected readTwinOf(context: ExecutionContext, elem: Element): number | undefined;
20
+ /**
21
+ * What the element itself and its non-visual properties say beyond the name: the macro and
22
+ * text link, the text-box flag, the edit locks by name, and a connector's glued ends.
23
+ */
24
+ protected readShapeDetails(context: ExecutionContext, elem: Element, type: 'sp' | 'cxnSp', locksPath: string, content: IShape.JSON): void;
6
25
  }
7
26
  //# sourceMappingURL=DrawingSpVisitor.d.ts.map
@@ -1,5 +1,15 @@
1
+ import { IMovable } from '@sheetxl/sdk';
1
2
  import { Visitor, ExecutionContext } from '../dom';
2
3
  export declare class DrawingVisitor implements Visitor {
3
4
  visit(context: ExecutionContext, elemParent: Element, jsonParent: any): any;
5
+ /**
6
+ * What the `spPr` visitor reads onto a content — `xfrm/@rot`, the flips and, for a group
7
+ * member, the frame — is the movable's: a top-level shape's rotation and flips move to its
8
+ * movable, and a member's frame becomes its anchor in the group's child space. Nested groups
9
+ * are walked the same way.
10
+ */
11
+ afterVisit(_context: ExecutionContext, _elemParent: Element, jsonDrawing: {
12
+ movables?: Partial<IMovable.JSON>[];
13
+ }): void;
4
14
  }
5
15
  //# sourceMappingURL=DrawingVisitor.d.ts.map
@@ -9,12 +9,12 @@ import { Visitor, ExecutionContext } from '../dom';
9
9
  * for the other two `jsonParent` is left untouched (empty), which the reader normalizes to `null`
10
10
  * — DDE/OLE are never modeled, and package passthrough covers their bytes separately.
11
11
  *
12
- * The book's identity — the ordered `(relTypeUri, target)` list from the part's OWN `.rels` file —
12
+ * The book's sources — the ordered `(relTypeUri, target)` list from the part's OWN `.rels` file —
13
13
  * is deliberately not read here: a visitor only ever sees its own part's XML, never a sibling rels
14
- * file. `XLSXReader` attaches `identity` after this visitor returns.
14
+ * file. `XLSXReader` attaches `sources` after this visitor returns.
15
15
  */
16
16
  export declare class ExternalLinkVisitor implements Visitor {
17
- visit(context: ExecutionContext, elem: Element, jsonParent: Partial<IExternalBook.JSON>): Partial<IExternalBook.JSON>;
17
+ visit(context: ExecutionContext, elem: Element, jsonParent: Partial<IExternalBook.JSON> & ExternalLinkVisitor.RelIds): Partial<IExternalBook.JSON>;
18
18
  processSheetNames(context: ExecutionContext, elemBook: Element, jsonBook: IExternalBook.JSON): void;
19
19
  processDefinedNames(context: ExecutionContext, elemBook: Element, jsonBook: IExternalBook.JSON): void;
20
20
  processSheetDataSet(context: ExecutionContext, elemBook: Element, jsonBook: IExternalBook.JSON): void;
@@ -28,5 +28,23 @@ export declare class ExternalLinkVisitor implements Visitor {
28
28
  */
29
29
  private _readCellValue;
30
30
  private _findChild;
31
+ /** `<xxl21:alternateUrls><xxl21:absoluteUrl r:id="rIdN"/></xxl21:alternateUrls>` — design doc §2.2. */
32
+ private _findAbsoluteUrlRelId;
33
+ }
34
+ export declare namespace ExternalLinkVisitor {
35
+ /**
36
+ * The `r:id`s the part's XML points at, handed to `XLSXReader` so it can say which of the part's
37
+ * relationships is the book's own path and which is the 2021 `absoluteUrl` companion — then
38
+ * stripped. **Not part of {@link IExternalBook.JSON}**: an rId is a name inside one package, and
39
+ * a saved book gets fresh ones.
40
+ *
41
+ * @remarks
42
+ * The relationship type cannot answer this on its own — both can be `externalLinkPath` (measured
43
+ * on task 40234).
44
+ */
45
+ interface RelIds {
46
+ __bookRelId?: string;
47
+ __absoluteUrlRelId?: string;
48
+ }
31
49
  }
32
50
  //# sourceMappingURL=ExternalLinkVisitor.d.ts.map
@@ -7,10 +7,10 @@ import { ColorContainerVisitor } from './ColorContainerVisitor';
7
7
  * idx-referencing shape/chart styles (`<a:lnRef idx="N">`, `<a:fillRef>`, `<a:effectRef>`) keep
8
8
  * resolving against the same source definitions on save — see DESIGN-PACKAGE-PASSTHROUGH.md §11.2.
9
9
  *
10
- * If anything in the fragment isn't fully modeled (an effect outside the "common" set — see
11
- * `IEffect` — or a `scene3d`/`sp3d` on an effect style), falls back to capturing the whole
12
- * `<a:fmtScheme>` verbatim (`ITheme.JSON.formatSchemeXml`), exactly as before this was modeled —
13
- * `ThemeEmitter` replays that raw fragment instead of synthesizing from the typed fields.
10
+ * Each list that is fully modeled is kept, so the theme draws with the file's own fills and
11
+ * lines. If any list isn't (an effect outside the "common" set — see `IEffect` — or a
12
+ * `scene3d`/`sp3d` on an effect style), the whole `<a:fmtScheme>` is also captured verbatim
13
+ * (`ITheme.JSON.formatSchemeXml`) and `ThemeEmitter` replays that instead of writing the lists.
14
14
  */
15
15
  export declare class FmtSchemeVisitor extends ColorContainerVisitor implements Visitor {
16
16
  visit(context: ExecutionContext, elemParent: Element, jsonParent: ITheme.JSON): void;
@@ -0,0 +1,9 @@
1
+ import { Visitor, ExecutionContext } from '../dom';
2
+ /**
3
+ * A `ctrlProp` part (`<formControlPr>`): what kind of form control a `<control>` is and what it
4
+ * holds, read onto `formControl` as the content type and that kind's fields.
5
+ */
6
+ export declare class FormControlPrVisitor implements Visitor {
7
+ visit(context: ExecutionContext, elem: Element, jsonParent: any): any;
8
+ }
9
+ //# sourceMappingURL=FormControlPrVisitor.d.ts.map
@@ -0,0 +1,44 @@
1
+ import { IText, ITextFrame } from '@sheetxl/sdk';
2
+ import { ExecutionContext } from '../dom/ExecutionContext';
3
+ import { TextPropertiesVisitor } from './TextPropertiesVisitor';
4
+ /** The plain text of a paragraph: its runs concatenated, a line break as `\n`. */
5
+ export declare const paragraphText: (paragraph: IText.ParagraphJSON) => string;
6
+ /**
7
+ * The plain text of a text body: paragraphs joined by a newline, blank ones trimmed from the ends.
8
+ * The same rule `IShape.getTextFrame().getText()` applies, so the reader can decide what a body says.
9
+ */
10
+ export declare const textBodyText: (text: ITextFrame.JSON) => string;
11
+ /**
12
+ * DrawingML's defaults where SheetXL's differ ({@link ShapeStyleUtils.TEXT_DEFAULTS}): what a file
13
+ * that leaves these out means. The reader states them, so the shape keeps what the file meant.
14
+ */
15
+ export declare const DRAWINGML_TEXT_DEFAULTS: Readonly<{
16
+ readonly verticalOverflow: "visible";
17
+ readonly horizontalOverflow: "visible";
18
+ readonly size: 18;
19
+ }>;
20
+ /**
21
+ * A shape's `txBody`, read paragraph by paragraph into {@link ITextFrame.JSON}.
22
+ *
23
+ * @remarks
24
+ * Elements are matched by local name, so other producers' prefixes read the same as Excel's.
25
+ * A `br` is a run of `\n`; a field (`fld`) reads as its text; any other `t` — an equation's
26
+ * `m:t` included — reads as a run of its own. The run and paragraph formatting the chart text
27
+ * reader models (size, weight, color, font…) is read the same way onto each run and paragraph.
28
+ */
29
+ export declare class ShapeTextVisitor extends TextPropertiesVisitor {
30
+ visit(context: ExecutionContext, elem: Element, jsonParent: any): any;
31
+ /**
32
+ * Reads a `txBody`. With no context the text and layout are read but no run formatting,
33
+ * colors or list style.
34
+ */
35
+ readTextBody(context: ExecutionContext | null, body: Element): ITextFrame.JSON;
36
+ readParagraph(context: ExecutionContext | null, p: Element): IText.ParagraphJSON;
37
+ /** A `pPr`, `defPPr` or `lvlNpPr`: how a paragraph is laid out. Colors and the default run need a context. */
38
+ readParagraphProperties(context: ExecutionContext | null, pPr: Element): IText.ParagraphPropertiesJSON;
39
+ /** A `lstStyle`: the default and per-level paragraph properties, or nothing when it states none. */
40
+ readListStyle(context: ExecutionContext, lstStyle: Element): ITextFrame.ListStyleJSON | undefined;
41
+ }
42
+ /** A `bodyPr`'s attributes and autofit/warp children. Rotation is read separately. */
43
+ export declare const readBodyProperties: (bodyPr: Element) => ITextFrame.BodyJSON;
44
+ //# sourceMappingURL=ShapeTextVisitor.d.ts.map
@@ -1,4 +1,4 @@
1
- import { IFill, IBorder, IStyledFont } from '@sheetxl/sdk';
1
+ import { IFill, IBorders, IStyledFont } from '@sheetxl/sdk';
2
2
  import { Visitor, ExecutionContext } from '../dom';
3
3
  export declare class SheetColorContainerVisitor implements Visitor {
4
4
  visit(_context: ExecutionContext, _elemParent: Element, _jsonParent: any): any;
@@ -23,6 +23,6 @@ export declare class SheetColorContainerVisitor implements Visitor {
23
23
  * border definitions. In both SheetXL and Excel these values are ignored.
24
24
  */
25
25
  processBorder(context: ExecutionContext, elem: Element, jsonParent: any, index: number, tile: boolean): any;
26
- processBorderStroke(context: ExecutionContext, elem: Element, jsonParent: IBorder.JSON, edge: IBorder.Edge): any;
26
+ processBorderStroke(context: ExecutionContext, elem: Element, jsonParent: IBorders.JSON, edge: IBorders.Edge): any;
27
27
  }
28
28
  //# sourceMappingURL=SheetColorContainerVisitor.d.ts.map
@@ -1,4 +1,4 @@
1
- import { IStyle, IStyleCollection } from '@sheetxl/sdk';
1
+ import { ICellStyle, IStyleCollection } from '@sheetxl/sdk';
2
2
  import { Visitor, ExecutionContext } from '../dom';
3
3
  import { SheetColorContainerVisitor } from './SheetColorContainerVisitor';
4
4
  export declare class SheetStyleVisitor extends SheetColorContainerVisitor implements Visitor {
@@ -6,15 +6,28 @@ export declare class SheetStyleVisitor extends SheetColorContainerVisitor implem
6
6
  processIndexColors(context: ExecutionContext, elem: Element, jsonParent: any): void;
7
7
  processMruColors(context: ExecutionContext, elem: Element, jsonParent: any): void;
8
8
  processNumFmts(context: ExecutionContext, elem: Element, _jsonParent: any[] | null): void;
9
- processXFs(context: ExecutionContext, elem: Element, jsonParent: IStyle.JSON[], denormalized: any, namedIds?: Map<number, string> | null, ignoreApplys?: boolean): any;
10
- processXF(context: ExecutionContext, elem: Element, jsonParent: IStyle.JSON, denormalized: any, namedIds: Map<number, string> | null, ignoreApplys: boolean): any;
9
+ processXFs(context: ExecutionContext, elem: Element, jsonParent: ICellStyle.JSON[], denormalized: any, namedIds?: Map<number, string> | null, ignoreApplys?: boolean): any;
10
+ processXF(context: ExecutionContext, elem: Element, jsonParent: ICellStyle.JSON, denormalized: any, namedIds: Map<number, string> | null, ignoreApplys: boolean): any;
11
11
  processAlignment(context: ExecutionContext, elem: Element, jsonParent: any): any;
12
+ /**
13
+ * The cell xfs whose `<protection>` says `hidden="1"`. They become the sheet's `showFormulas` once
14
+ * the sheets are read (`applyHiddenFormulas`), since a format alone cannot say it.
15
+ */
16
+ collectHiddenXfs(elem: Element): Set<number>;
12
17
  processProtection(context: ExecutionContext, elem: Element, jsonParent: any): any;
13
- processDXF(context: ExecutionContext, elem: Element, jsonParent: IStyle.JSON): any;
18
+ processDXF(context: ExecutionContext, elem: Element, jsonParent: ICellStyle.JSON): any;
14
19
  processDXFs(context: ExecutionContext, elem: Element, jsonParent: any[]): any;
15
- processTableStyle(_context: ExecutionContext, elem: Element, jsonParent: any, dxfs: any[], shiftTableDx?: boolean): any;
20
+ /**
21
+ * Reads the slicer styles from the styles part's `extLst`: `x14:slicerStyles` names each slicer
22
+ * style's eight item elements, as ids into `x14:dxfs` (a list of its own, apart from the main
23
+ * `dxfs`). A slicer style's frame and header are in the file as a hidden table style of the same
24
+ * name (`table="0" pivot="0"`); that table style is taken out of the table styles and joins the
25
+ * slicer style.
26
+ */
27
+ processSlicerStyles(context: ExecutionContext, elemExtLst: Element | null, jsonParent: any): void;
28
+ processTableStyle(context: ExecutionContext, elem: Element, jsonParent: any, dxfs: any[], shiftTableDx?: boolean): any;
16
29
  processTableStyles(context: ExecutionContext, elem: Element, jsonParent: any, dxfs: any[], shiftTableDx?: boolean): any;
17
- processCellStyles(context: ExecutionContext, elem: Element, named: IStyle.NamedJSON[], namedXfs: IStyle.JSON[], namedIds: Map<number, string>): any;
30
+ processCellStyles(context: ExecutionContext, elem: Element, named: ICellStyle.NamedJSON[], namedXfs: ICellStyle.JSON[], namedIds: Map<number, string>): any;
18
31
  afterVisit(_context: ExecutionContext, _elem: Element, _json: any): void;
19
32
  }
20
33
  //# sourceMappingURL=SheetStyleVisitor.d.ts.map
@@ -1,6 +1,11 @@
1
- import { ISlicer } from '@sheetxl/sdk';
1
+ import { SlicerRecord } from '../_SlicerRecord';
2
2
  import { Visitor, ExecutionContext } from '../dom';
3
+ /**
4
+ * A slicer cache part: its name and source name, and for a table slicer the `tableSlicerCache`
5
+ * ext that names the table and column by id. A cache with no such ext is a pivot or OLAP slicer's,
6
+ * which names no table and is left as the file has it.
7
+ */
3
8
  export declare class SlicerCacheDefinitionVisitor implements Visitor {
4
- visit(context: ExecutionContext, elem: Element, jsonSlicer: ISlicer.JSON): ISlicer.JSON;
9
+ visit(context: ExecutionContext, elem: Element, jsonSlicer: SlicerRecord): SlicerRecord;
5
10
  }
6
11
  //# sourceMappingURL=SlicerCacheDefinitionVisitor.d.ts.map
@@ -1,7 +1,11 @@
1
- import { ISlicer } from '@sheetxl/sdk';
1
+ import { SlicerRecord } from '../_SlicerRecord';
2
2
  import { Visitor, ExecutionContext } from '../dom';
3
+ /**
4
+ * A sheet's slicer part: every `slicer` of it as a record by name, each joined to the cache it
5
+ * names so the record holds the column's ids beside the slicer's own presentation.
6
+ */
3
7
  export declare class SlicersVisitor implements Visitor {
4
- visit(context: ExecutionContext, elem: Element, jsonParent: any): Record<string, ISlicer.JSON>;
5
- processSlicer(context: ExecutionContext, elem: Element, slicers: Record<string, ISlicer.JSON>): void;
8
+ visit(context: ExecutionContext, elem: Element, jsonParent: any): Record<string, SlicerRecord>;
9
+ processSlicer(context: ExecutionContext, elem: Element, slicers: Record<string, SlicerRecord>): void;
6
10
  }
7
11
  //# sourceMappingURL=SlicersVisitor.d.ts.map
@@ -1,5 +1,15 @@
1
- import { ExecutionContext } from '../dom';
1
+ import { IHyperlink, IText } from '@sheetxl/sdk';
2
+ import { ExecutionContext } from '../dom/ExecutionContext';
2
3
  import { ColorContainerVisitor } from './ColorContainerVisitor';
4
+ /** The four font slots of a run and the JSON key each reads into. */
5
+ export declare const TEXT_FONTS: readonly [element: string, key: 'font' | 'eastAsianFont' | 'complexScriptFont' | 'symbolFont'][];
6
+ /**
7
+ * A `latin`/`ea`/`cs`/`sym`/`buFont` element as a font: a theme font (`+mn-lt`, `+mj-ea`) by
8
+ * its role, otherwise the family, with the PANOSE classification kept as stated.
9
+ */
10
+ export declare const readFont: (elem: Element) => IText.FontJSON | undefined;
11
+ /** A `hlinkClick`/`hlinkHover`: its address as the relationship resolves it, and what it shows. */
12
+ export declare const readHyperlink: (context: ExecutionContext, elem: Element) => Exclude<IHyperlink.JSON, string>;
3
13
  export declare class TextPropertiesVisitor extends ColorContainerVisitor {
4
14
  protected _jsonKey: string;
5
15
  constructor(jsonKey?: string);
@@ -7,5 +17,7 @@ export declare class TextPropertiesVisitor extends ColorContainerVisitor {
7
17
  visit(context: ExecutionContext, elemParent: Element, jsonParent: any): any;
8
18
  parseTextElement(context: ExecutionContext, elemParent: Element, jsonText: any, defaultRun: boolean): void;
9
19
  parseTextProperties(context: ExecutionContext, elem: Element, jsonText: any): void;
20
+ /** A `hlinkClick`/`hlinkHover`: its resolved address and what it shows. */
21
+ readHyperlink(context: ExecutionContext, elem: Element): Exclude<IHyperlink.JSON, string>;
10
22
  }
11
23
  //# sourceMappingURL=TextPropertiesVisitor.d.ts.map
@@ -1,9 +1,26 @@
1
1
  import { IRange, IComment } from '@sheetxl/sdk';
2
2
  import { Visitor, ExecutionContext } from '../dom';
3
+ /**
4
+ * One `<threadedComment>` as read: a root or a reply, flat, joined to its thread by `parentId`.
5
+ * The reader nests replies under their roots.
6
+ */
7
+ export interface ThreadedEntry extends IComment.EntryJSON {
8
+ parentId?: string;
9
+ done?: boolean;
10
+ }
3
11
  /**
4
12
  * https://learn.microsoft.com/en-us/openspecs/office_standards/ms-xlsx/adb84732-9fc8-48b6-bddc-6b0bcdaad940
5
13
  */
6
14
  export declare class ThreadedCommentVisitor implements Visitor {
7
- visit(context: ExecutionContext, elem: Element, jsonParent: IRange.JSONReferenceEntry<IComment.RichJSON>[]): IComment.RichJSON | undefined;
15
+ visit(context: ExecutionContext, elem: Element, jsonParent: IRange.JSONReferenceEntry<ThreadedEntry>[]): ThreadedEntry | undefined;
8
16
  }
17
+ /**
18
+ * A `dT` as an ISO string that says it is UTC, with milliseconds.
19
+ *
20
+ * @remarks
21
+ * Excel writes the time in UTC with no zone designator and hundredths of a second
22
+ * (`2026-09-28T19:25:03.54`). A `Date` would take that as local time, and the fraction is not the
23
+ * three digits every engine parses.
24
+ */
25
+ export declare function asUTC(dT: string): string;
9
26
  //# sourceMappingURL=ThreadedCommentVisitor.d.ts.map
@@ -1,6 +1,6 @@
1
- import { IRange, IComment, ISheet } from '@sheetxl/sdk';
1
+ import { IRange, ISheet } from '@sheetxl/sdk';
2
2
  import { Visitor, ExecutionContext } from '../dom';
3
3
  export declare class ThreadedCommentsVisitor implements Visitor {
4
- visit(context: ExecutionContext, elem: Element, jsonParent: ISheet.JSON): IRange.JSONReferenceEntry<IComment.JSON>[] | undefined;
4
+ visit(context: ExecutionContext, elem: Element, jsonParent: ISheet.JSON): IRange.JSONReferenceEntry<any>[] | undefined;
5
5
  }
6
6
  //# sourceMappingURL=ThreadedCommentsVisitor.d.ts.map
@@ -17,9 +17,19 @@ export declare class WorkbookVisitor extends SheetColorContainerVisitor {
17
17
  * `context.getRef` resolves through the generic `readAsJSON` path, which dispatches to
18
18
  * `ExternalLinkVisitor` by the target part's root element — `null` for a DDE/OLE part (not ours
19
19
  * to read) or a missing rel, keeping the position without a book's content (see `XLSXReader`'s
20
- * `getRef`, which normalizes an empty visitor result to `null` and attaches `identity`).
20
+ * `getRef`, which normalizes an empty visitor result to `null` and attaches `sources`).
21
21
  */
22
22
  processExternalReferences(context: ExecutionContext, elem: Element, jsonParent: IWorkbook.JSON): any;
23
+ /**
24
+ * `<pivotCaches><pivotCache cacheId="n" r:id="rIdN"/></pivotCaches>` — the workbook's pivot
25
+ * caches, each carried whole: its definition part and, through that part's own relationships,
26
+ * its records. See `PLAN-MODEL-HOMES.md` step 4.
27
+ *
28
+ * @remarks
29
+ * The id is the join key: every pivot table names the cache it summarizes by `cacheId`, and the
30
+ * writer puts the same id back so the two still meet.
31
+ */
32
+ processPivotCaches(context: ExecutionContext, elem: Element, jsonParent: IWorkbook.JSON): any;
23
33
  processBookViews(context: ExecutionContext, elem: Element, jsonParent: IWorkbook.JSON): any;
24
34
  processWorkbookView(context: ExecutionContext, elem: Element, jsonParent: IWorkbook.JSON): any;
25
35
  processDefineName(context: ExecutionContext, elem: Element, jsonNames: INamedCollection.JSON, sheets: IWorkbook.SheetRefJSON[]): any;
@@ -13,6 +13,7 @@ import { DataPointVisitor } from './DataPointVisitor';
13
13
  import { MarkerVisitor } from './MarkerVisitor';
14
14
  import { AxisVisitor } from './AxisVisitor';
15
15
  import { TextPropertiesVisitor } from './TextPropertiesVisitor';
16
+ import { ShapeTextVisitor } from './ShapeTextVisitor';
16
17
  import { LegendEntryVisitor } from './LegendEntryVisitor';
17
18
  import { LegendVisitor } from './LegendVisitor';
18
19
  import { NegativeShapeVisitor } from './NegativeShapeVisitor';
@@ -22,7 +23,6 @@ import { ThemeVisitor } from './ThemeVisitor';
22
23
  import { ClrSchemeVisitor } from './ClrSchemeVisitor';
23
24
  import { FontSchemeVisitor } from './FontSchemeVisitor';
24
25
  import { FmtSchemeVisitor } from './FmtSchemeVisitor';
25
- import { HyperlinkVisitor } from './HyperlinkVisitor';
26
26
  import { AutoFilterVisitor } from './AutoFilterVisitor';
27
27
  import { SortStateVisitor } from './SortStateVisitor';
28
28
  import { SheetStyleVisitor } from './SheetStyleVisitor';
@@ -32,6 +32,7 @@ import { TableX14Visitor } from './TableX14Visitor';
32
32
  import { ExternalLinkVisitor } from './ExternalLinkVisitor';
33
33
  import { SlicerCacheDefinitionVisitor } from './SlicerCacheDefinitionVisitor';
34
34
  import { SlicersVisitor } from './SlicersVisitor';
35
+ import { FormControlPrVisitor } from './FormControlPrVisitor';
35
36
  import { DrawingVisitor } from './DrawingVisitor';
36
37
  import { DrawingAnchorVisitor } from './DrawingAnchorVisitor';
37
38
  import { DrawingGraphicFrameVisitor } from './DrawingGraphicFrameVisitor';
@@ -63,6 +64,7 @@ export declare const BuiltInVisitors: {
63
64
  MarkerVisitor: typeof MarkerVisitor;
64
65
  AxisVisitor: typeof AxisVisitor;
65
66
  TextPropertiesVisitor: typeof TextPropertiesVisitor;
67
+ ShapeTextVisitor: typeof ShapeTextVisitor;
66
68
  LegendEntryVisitor: typeof LegendEntryVisitor;
67
69
  LegendVisitor: typeof LegendVisitor;
68
70
  NegativeShapeVisitor: typeof NegativeShapeVisitor;
@@ -72,7 +74,6 @@ export declare const BuiltInVisitors: {
72
74
  ClrSchemeVisitor: typeof ClrSchemeVisitor;
73
75
  FontSchemeVisitor: typeof FontSchemeVisitor;
74
76
  FmtSchemeVisitor: typeof FmtSchemeVisitor;
75
- HyperlinkVisitor: typeof HyperlinkVisitor;
76
77
  AutoFilterVisitor: typeof AutoFilterVisitor;
77
78
  SortStateVisitor: typeof SortStateVisitor;
78
79
  SheetStyleVisitor: typeof SheetStyleVisitor;
@@ -82,6 +83,7 @@ export declare const BuiltInVisitors: {
82
83
  ExternalLinkVisitor: typeof ExternalLinkVisitor;
83
84
  SlicerCacheDefinitionVisitor: typeof SlicerCacheDefinitionVisitor;
84
85
  SlicersVisitor: typeof SlicersVisitor;
86
+ FormControlPrVisitor: typeof FormControlPrVisitor;
85
87
  DrawingVisitor: typeof DrawingVisitor;
86
88
  DrawingAnchorVisitor: typeof DrawingAnchorVisitor;
87
89
  DrawingGraphicFrameVisitor: typeof DrawingGraphicFrameVisitor;
@@ -0,0 +1,58 @@
1
+ import { SaxesTag } from './Saxes';
2
+ export type LeanSaxEvent = 'opentag' | 'closetag' | 'text' | 'cdata' | 'error' | 'end';
3
+ /**
4
+ * Takes over one element name from the tokenizer. For a hot element with a fixed shape (a
5
+ * worksheet `<c>`), reading the raw text directly skips the tag and attribute objects the generic
6
+ * events need, which is most of the tokenizer's cost.
7
+ */
8
+ export interface ElementScanner {
9
+ /** The raw (prefixed, if the part uses a prefix) tag name this scanner takes. */
10
+ readonly name: string;
11
+ /**
12
+ * When set, {@link scan} consumes only the START tag of a non-self-closing element, and the
13
+ * parser holds `openTag` open so the element's children and close tag are handled as usual (the
14
+ * close dispatches `openTag`). When unset, {@link scan} consumes the whole element.
15
+ */
16
+ readonly openTag?: SaxesTag;
17
+ /**
18
+ * Consume the element whose `<` is at `start`. Returns the index just after what it consumed,
19
+ * {@link LeanSaxParser.NEED_MORE} when that runs past `end`, or
20
+ * {@link LeanSaxParser.NOT_HANDLED} (having changed nothing) to have it tokenized as usual.
21
+ */
22
+ scan(s: string, start: number, end: number): number;
23
+ }
24
+ export declare class LeanSaxParser {
25
+ static readonly NEED_MORE = -1;
26
+ static readonly NOT_HANDLED = -2;
27
+ /** Entity-decode text and normalize its line ends, as the `text` event delivers it. */
28
+ static decodeText(raw: string): string;
29
+ private _openTagHandler;
30
+ private _closeTagHandler;
31
+ private _textHandler;
32
+ private _cdataHandler;
33
+ private _errorHandler;
34
+ private _endHandler;
35
+ /** By the first character of the name; one scanner per first character. */
36
+ private _scanners;
37
+ /** Unconsumed input: a markup construct cut off by the end of the last chunk. */
38
+ private _carry;
39
+ /** Raw (undecoded) text since the last markup, possibly spanning chunks. */
40
+ private _text;
41
+ private _tags;
42
+ private _sawRoot;
43
+ private _closed;
44
+ on(name: LeanSaxEvent, handler: any): void;
45
+ setElementScanners(scanners: readonly ElementScanner[] | null): void;
46
+ fail(message: string): void;
47
+ write(chunk: string): this;
48
+ close(): this;
49
+ private _flushText;
50
+ /**
51
+ * Consume the markup starting at `lt`. Returns the index after it, or -1 when the markup runs
52
+ * past the end of `s` (the caller carries it into the next chunk).
53
+ */
54
+ private _markup;
55
+ private _openTag;
56
+ private _closeTag;
57
+ }
58
+ //# sourceMappingURL=LeanSaxParser.d.ts.map
@@ -1,4 +1,5 @@
1
1
  import { SaxesStartTag, SaxesTag, SaxesAttribute, SaxesAttributeNS, SaxesOptions } from './Saxes';
2
+ import { ElementScanner } from './LeanSaxParser';
2
3
  export declare namespace SaxParser {
3
4
  type StartTag = SaxesStartTag;
4
5
  type Tag = SaxesTag;
@@ -28,7 +29,16 @@ export declare namespace SaxParser {
28
29
  onText?: (text: string) => void;
29
30
  onError?: (error: any) => void;
30
31
  onEnd?: () => T;
32
+ /** Honored only by the lean parser (see {@link ParseOptions.lean}). */
33
+ elementScanners?: readonly ElementScanner[];
31
34
  }
32
- const parseStream: <T = any>(reader: ReadableStreamDefaultReader<string>, handler: EventHandler, options?: SaxesOptions) => Promise<T>;
35
+ interface ParseOptions extends SaxesOptions {
36
+ /**
37
+ * Use {@link LeanSaxParser}: non-validating and much faster, for large parts whose handler
38
+ * only needs tags, attributes and text. Implies `xmlns: false`.
39
+ */
40
+ lean?: boolean;
41
+ }
42
+ const parseStream: <T = any>(reader: ReadableStreamDefaultReader<string>, handler: EventHandler, options?: ParseOptions) => Promise<T>;
33
43
  }
34
44
  //# sourceMappingURL=SaxParser.d.ts.map
@@ -1,3 +1,4 @@
1
+ import { OnWarning, WarningOptions } from '../Warning';
1
2
  import { SaxParser } from './SaxParser';
2
3
  type ValueMutator = (value: any) => any;
3
4
  export declare const CopyMutators: {
@@ -23,7 +24,7 @@ export interface SAXExecutionContext<J = any> {
23
24
  * `closeTag`. `null` anywhere else.
24
25
  */
25
26
  getRawXml(): string | null;
26
- warn(message: string): void;
27
+ warn(message: string, options?: WarningOptions): void;
27
28
  }
28
29
  export interface SaxVisitor<J = any, P = any, C = any | void> {
29
30
  from: string;
@@ -67,7 +68,7 @@ export interface SaxVisitor<J = any, P = any, C = any | void> {
67
68
  export declare class SaxVisitHandler {
68
69
  protected _registeredVisitors: Map<string, SaxVisitor>;
69
70
  registerVisitor<J = any, P = any>(visitor: SaxVisitor<J, P>): void;
70
- createEventHandler(root: any, onEnd?: () => void, onWarning?: (message: string) => void): SaxParser.EventHandler;
71
+ createEventHandler(root: any, onEnd?: () => void, onWarning?: OnWarning): SaxParser.EventHandler;
71
72
  }
72
73
  export {};
73
74
  //# sourceMappingURL=SaxVisitor.d.ts.map
@@ -28,6 +28,15 @@ export interface ContentTypesDirectory {
28
28
  styles: string[];
29
29
  metadata: string[];
30
30
  people: string[];
31
+ /**
32
+ * Every `<Override>`, by part path (no leading `/`).
33
+ *
34
+ * @remarks
35
+ * The buckets above are the parts the reader looks for; this is for going the other way, asking
36
+ * what a part it already found is. A part carried through on the model has to carry its content
37
+ * type with it, and most of them are not derivable from a name.
38
+ */
39
+ overrides: Record<string, string>;
31
40
  /** First shared-strings part, or `''`. */
32
41
  sst: string;
33
42
  /** First styles part, or `''`. */
@@ -1,7 +1,13 @@
1
1
  import { Tuple, ISheet, ICell } from '@sheetxl/sdk';
2
2
  import { SaxParser } from '../sax';
3
- export declare const createWorksheetSaxVisitor: (sheet: ISheet.JSON, getRef: (relId: string, asBinary?: boolean) => any, // TODO - this should be a context like DOM.
4
- addSharedString: (str: string) => number, mapDxfs?: Map<number, any>, onEnd?: () => void, onWarning?: (message: string) => void, onProgress?: (amount: number, total?: number) => void, paramMap?: Map<string, any>) => SaxParser.EventHandler;
3
+ import { OnWarning } from '../Warning';
4
+ /**
5
+ * The `paramMap` key under which the reader hands the worksheet visitor the workbook's formula
6
+ * dialect (`XlsxFormulaDialect`), for condition formulas. Set before any sheet streams.
7
+ */
8
+ export declare const PARAM_FORMULA_DIALECT = "formulaDialect";
9
+ export declare const createWorksheetSaxVisitor: (sheet: ISheet.JSON, getRef: (relId: string, as?: "resource" | "legacyDrawing" | "part" | "formControl") => any, // TODO - this should be a context like DOM.
10
+ addSharedString: (str: string) => number, mapDxfs?: Map<number, any>, onEnd?: () => void, onWarning?: OnWarning, onProgress?: (amount: number, total?: number) => void, paramMap?: Map<string, any>) => SaxParser.EventHandler;
5
11
  export declare class RowAttributeType {
6
12
  static Collapsed: number;
7
13
  static CustomFormat: number;
@@ -19,7 +25,8 @@ export declare class RowAttributeType {
19
25
  /**
20
26
  * Special handler optimized for performance while reading sheet data.
21
27
  *
22
- * TODO - **PERFORMANCE**. Create a saxes flag that says to not build attribute object and event only (less objects and less lookups but would be per tag type)
28
+ * Under the lean parser, `<row>` start tags and `<c>` elements skip the generic tokenizer through
29
+ * the returned `elementScanners`.
23
30
  */
24
- export declare const createSheetDataSaxVisitor: (tupleBuilder: Tuple.IBuilder<ICell.JSON>, sheet: ISheet.JSON, delegate: SaxParser.EventHandler, onWarning: ((message: string) => void) | undefined, onProgress: ((amount: number, total?: number) => void) | undefined, stringHandler: SaxParser.EventHandler<number | undefined>, paramMap?: Map<string, any>) => SaxParser.EventHandler;
31
+ export declare const createSheetDataSaxVisitor: (tupleBuilder: Tuple.IBuilder<ICell.JSON>, sheet: ISheet.JSON, delegate: SaxParser.EventHandler, onWarning: OnWarning | undefined, onProgress: ((amount: number, total?: number) => void) | undefined, stringHandler: SaxParser.EventHandler<number | undefined>, paramMap?: Map<string, any>) => SaxParser.EventHandler;
25
32
  //# sourceMappingURL=WorksheetVisitor.d.ts.map