@sheetxl/io-xlsx 0.8.0-beta.9 → 1.0.2

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 (205) hide show
  1. package/LICENSE.md +8 -7
  2. package/browser/esm/BPn0BJd77_Q1lYVz.mjs +7021 -0
  3. package/browser/esm/BfV9IAl46gJxLRsa.mjs +2474 -0
  4. package/browser/esm/{DsSIg46AR7IFBN5N.mjs → C1Ql7gO6TtQglsOH.mjs} +939 -804
  5. package/browser/esm/{CxtFawTfwRTCC4Xr.mjs → C74cxGSvdlAfqeqF.mjs} +2 -2
  6. package/browser/esm/CZ3s0Cfjqm3BRszF.mjs +104 -0
  7. package/browser/esm/ChMFy3Rg97YbbuTB.mjs +4632 -0
  8. package/browser/esm/D2WBxzN8ubzIrJ4h.mjs +10323 -0
  9. package/browser/esm/{D-epcZSoKLbsAIaC.mjs → DtUTX1O34sAvjw_I.mjs} +3 -3
  10. package/browser/esm/{C-2KaUyV4gs-sDTZ.mjs → K9Sy1I7Pix2m7GJj.mjs} +194 -144
  11. package/browser/esm/{CRrTMRdN_IcSA_pm.mjs → cjLbism9wq4om43B.mjs} +3 -3
  12. package/browser/esm/index.mjs +3 -4
  13. package/browser/esm/rF6yS_NgcKLlMbGR.mjs +24 -0
  14. package/licenses/dependencies.txt +2 -2
  15. package/node/esm/BMVTOvvr98SnUmif.mjs +2478 -0
  16. package/node/esm/BXHjX5Jr7ZO7XFp1.mjs +6957 -0
  17. package/node/esm/{CBtj0-a4l2qux2hA.mjs → BeAzln1Wp4oOc7xJ.mjs} +3 -3
  18. package/node/esm/C2FEO68INNEEnWCd.mjs +4746 -0
  19. package/node/esm/DDI2JK7U9TLsIobf.mjs +2562 -0
  20. package/node/esm/DhIaDwktkAy1xpDs.mjs +7284 -0
  21. package/node/esm/{BCr4lCI6qQXXN0K1.mjs → el-uWAcXKFVwmwZ-.mjs} +3 -3
  22. package/node/esm/index.mjs +65 -28
  23. package/node/esm/{BsTMtvwpQoPNv95M.mjs → kFd-ABtolhQt-Hqv.mjs} +2 -2
  24. package/package.json +9 -10
  25. package/types/src/AutoFilterRules.d.ts +34 -44
  26. package/types/src/ConditionalFormatRules.d.ts +2 -2
  27. package/types/src/DataTableFormula.d.ts +26 -0
  28. package/types/src/DataValidationRules.d.ts +0 -5
  29. package/types/src/DefinedNameAttributes.d.ts +8 -0
  30. package/types/src/ExcelCalcStamp.d.ts +0 -36
  31. package/types/src/ExcelCompat.d.ts +15 -143
  32. package/types/src/ExcelFunctionFacts.d.ts +0 -272
  33. package/types/src/ExcelReservedNames.d.ts +0 -65
  34. package/types/src/KnownFonts.d.ts +37 -0
  35. package/types/src/LegacyFormula.d.ts +1 -46
  36. package/types/src/OOXMLExtensions.d.ts +24 -2
  37. package/types/src/PageLayoutAttributes.d.ts +8 -0
  38. package/types/src/Plugin.d.ts +15 -3
  39. package/types/src/ProtectionAttributes.d.ts +2 -2
  40. package/types/src/SheetKinds.d.ts +42 -0
  41. package/types/src/SheetViewAttributes.d.ts +4 -0
  42. package/types/src/SortExtent.d.ts +16 -0
  43. package/types/src/SourcePackage.d.ts +0 -44
  44. package/types/src/SparklineGroups.d.ts +52 -0
  45. package/types/src/Types.d.ts +13 -3
  46. package/types/src/XlsxHeader.d.ts +19 -0
  47. package/types/src/chart/ChartExXml.d.ts +38 -0
  48. package/types/src/chart/ChartPartXml.d.ts +47 -0
  49. package/types/src/chart/ChartSpaceXml.d.ts +37 -0
  50. package/types/src/chart/_XmlTree.d.ts +34 -0
  51. package/types/src/chart/_chartCodecs.d.ts +12 -0
  52. package/types/src/chart/_chartExCodecs.d.ts +7 -0
  53. package/types/src/chart/_chartExFold.d.ts +14 -0
  54. package/types/src/chart/_chartExMarkup.d.ts +236 -0
  55. package/types/src/chart/_chartExStyle.d.ts +13 -0
  56. package/types/src/chart/_codec.d.ts +78 -0
  57. package/types/src/chart/_drawingml.d.ts +10 -0
  58. package/types/src/chart/_xml.d.ts +70 -0
  59. package/types/src/pivot/PivotArea.d.ts +20 -0
  60. package/types/src/pivot/PivotCacheRead.d.ts +30 -0
  61. package/types/src/pivot/PivotCacheWrite.d.ts +23 -0
  62. package/types/src/pivot/PivotFilters.d.ts +29 -0
  63. package/types/src/pivot/PivotFormats.d.ts +60 -0
  64. package/types/src/pivot/PivotTableRead.d.ts +44 -0
  65. package/types/src/pivot/PivotTableWrite.d.ts +13 -0
  66. package/types/src/pivot/_PivotCacheXml.d.ts +48 -0
  67. package/types/src/pivot/_PivotTableXml.d.ts +23 -0
  68. package/types/src/reader/CellControls.d.ts +18 -0
  69. package/types/src/reader/DocumentPropertiesRead.d.ts +16 -0
  70. package/types/src/reader/DummyFunctionUnwrap.d.ts +43 -23
  71. package/types/src/reader/HeaderStyles.d.ts +15 -0
  72. package/types/src/reader/IsoDateCell.d.ts +20 -0
  73. package/types/src/reader/LibreOfficeDataTable.d.ts +12 -0
  74. package/types/src/reader/PivotButtons.d.ts +14 -0
  75. package/types/src/reader/PivotCellFormats.d.ts +22 -0
  76. package/types/src/reader/SlicerJoin.d.ts +26 -0
  77. package/types/src/reader/ZipReader.d.ts +1 -1
  78. package/types/src/reader/_SlicerRecord.d.ts +59 -0
  79. package/types/src/reader/dom/DOMTransformer.d.ts +2 -2
  80. package/types/src/reader/domVisitors/AppPropertiesVisitor.d.ts +13 -1
  81. package/types/src/reader/domVisitors/AutoFilterVisitor.d.ts +3 -11
  82. package/types/src/reader/domVisitors/ColorContainerVisitor.d.ts +8 -1
  83. package/types/src/reader/domVisitors/CommentVisitor.d.ts +2 -2
  84. package/types/src/reader/domVisitors/DrawingElementVisitor.d.ts +13 -6
  85. package/types/src/reader/domVisitors/DrawingGraphicFrameVisitor.d.ts +9 -0
  86. package/types/src/reader/domVisitors/DrawingGrpSpVisitor.d.ts +10 -7
  87. package/types/src/reader/domVisitors/DrawingPicVisitor.d.ts +22 -13
  88. package/types/src/reader/domVisitors/DrawingSpVisitor.d.ts +5 -5
  89. package/types/src/reader/domVisitors/DrawingVisitor.d.ts +4 -2
  90. package/types/src/reader/domVisitors/ExternalLinkVisitor.d.ts +1 -11
  91. package/types/src/reader/domVisitors/FeaturePropertyBagVisitor.d.ts +18 -0
  92. package/types/src/reader/domVisitors/FmtSchemeVisitor.d.ts +0 -11
  93. package/types/src/reader/domVisitors/FontSchemeVisitor.d.ts +3 -2
  94. package/types/src/reader/domVisitors/ObjectDefaultsVisitor.d.ts +11 -0
  95. package/types/src/reader/domVisitors/SheetColorContainerVisitor.d.ts +2 -2
  96. package/types/src/reader/domVisitors/SheetStyleVisitor.d.ts +26 -5
  97. package/types/src/reader/domVisitors/SlicerCacheDefinitionVisitor.d.ts +11 -2
  98. package/types/src/reader/domVisitors/SlicersVisitor.d.ts +9 -3
  99. package/types/src/reader/domVisitors/SortStateVisitor.d.ts +2 -2
  100. package/types/src/reader/domVisitors/ThreadedCommentsVisitor.d.ts +2 -2
  101. package/types/src/reader/domVisitors/TimelinesVisitor.d.ts +13 -0
  102. package/types/src/reader/domVisitors/WorkbookVisitor.d.ts +0 -9
  103. package/types/src/reader/domVisitors/_Dxfs.d.ts +10 -0
  104. package/types/src/reader/domVisitors/index.d.ts +6 -34
  105. package/types/src/reader/saxVisitors/ContentTypesVisitor.d.ts +1 -0
  106. package/types/src/reader/saxVisitors/SharedStringsVisitor.d.ts +31 -6
  107. package/types/src/reader/saxVisitors/WorksheetVisitor.d.ts +26 -8
  108. package/types/src/richValue/ErrorRichValueHandler.d.ts +22 -0
  109. package/types/src/richValue/IRichValueHandler.d.ts +109 -0
  110. package/types/src/richValue/LocalImageRichValueHandler.d.ts +18 -0
  111. package/types/src/richValue/RichDataParts.d.ts +69 -0
  112. package/types/src/richValue/RichRecordWriter.d.ts +61 -0
  113. package/types/src/richValue/RichValueHandlers.d.ts +25 -0
  114. package/types/src/richValue/RichValueResolver.d.ts +54 -0
  115. package/types/src/richValue/WebImageRichValueHandler.d.ts +37 -0
  116. package/types/src/richValue/index.d.ts +7 -0
  117. package/types/src/utils/DrawingMLText.d.ts +2 -2
  118. package/types/src/utils/FormControls.d.ts +79 -6
  119. package/types/src/utils/SharedNames.d.ts +13 -0
  120. package/types/src/utils/SpreadsheetFont.d.ts +38 -0
  121. package/types/src/utils/VmlNoteShapes.d.ts +25 -32
  122. package/types/src/utils/VmlNoteStyle.d.ts +25 -0
  123. package/types/src/utils/VmlPrefixes.d.ts +24 -0
  124. package/types/src/vba/VBAProject.d.ts +0 -19
  125. package/types/src/writer/EvaluationSheet.d.ts +5 -0
  126. package/types/src/writer/builder/OpcXmlUtils.d.ts +0 -8
  127. package/types/src/writer/builder/PackageBuilder.d.ts +2 -41
  128. package/types/src/writer/builder/Types.d.ts +18 -28
  129. package/types/src/writer/emitters/CommentsEmitter.d.ts +3 -3
  130. package/types/src/writer/emitters/DrawingEmitter.d.ts +2 -2
  131. package/types/src/writer/emitters/ExternalLinkEmitter.d.ts +0 -11
  132. package/types/src/writer/emitters/FeaturePropertyBagEmitter.d.ts +8 -0
  133. package/types/src/writer/emitters/LegacyDrawingEmitter.d.ts +4 -4
  134. package/types/src/writer/emitters/PivotTableEmitter.d.ts +30 -1
  135. package/types/src/writer/emitters/PropsCoreEmitter.d.ts +7 -2
  136. package/types/src/writer/emitters/PropsCustomEmitter.d.ts +15 -0
  137. package/types/src/writer/emitters/RichValuePartsEmitters.d.ts +36 -0
  138. package/types/src/writer/emitters/RichValueRelEmitter.d.ts +12 -0
  139. package/types/src/writer/emitters/RichValueStructureEmitter.d.ts +4 -3
  140. package/types/src/writer/emitters/RichValueTypesEmitter.d.ts +3 -2
  141. package/types/src/writer/emitters/RichValueWebImageEmitter.d.ts +24 -0
  142. package/types/src/writer/emitters/SharedStringsEmitter.d.ts +6 -3
  143. package/types/src/writer/emitters/SlicerEmitter.d.ts +132 -0
  144. package/types/src/writer/emitters/StylesEmitter.d.ts +35 -2
  145. package/types/src/writer/emitters/TableEmitter.d.ts +14 -0
  146. package/types/src/writer/emitters/WorkbookEmitter.d.ts +24 -2
  147. package/types/src/writer/emitters/WorksheetEmitter.d.ts +4 -3
  148. package/types/src/writer/utils/AutoFilter.d.ts +3 -3
  149. package/types/src/writer/utils/CellControlComplements.d.ts +29 -0
  150. package/types/src/writer/utils/DateSystem.d.ts +6 -0
  151. package/types/src/writer/utils/DefaultRows.d.ts +22 -0
  152. package/types/src/writer/utils/DrawMLUtils.d.ts +8 -6
  153. package/types/src/writer/utils/DummyFunction.d.ts +0 -25
  154. package/types/src/writer/utils/DxfCollector.d.ts +14 -11
  155. package/types/src/writer/utils/PrstGeomUtils.d.ts +11 -3
  156. package/types/src/writer/utils/RichValueCollector.d.ts +81 -129
  157. package/types/src/writer/utils/SheetStyleLayout.d.ts +86 -0
  158. package/types/src/writer/utils/TextUtils.d.ts +6 -1
  159. package/types/src/writer/utils/UnsupportedFunctions.d.ts +2 -2
  160. package/types/src/writer/utils/XfVariants.d.ts +61 -0
  161. package/browser/cjs/B0Ugu_crqQYpdfQz.cjs +0 -1
  162. package/browser/cjs/B6sirGz6w-Bm7Ofo.cjs +0 -1
  163. package/browser/cjs/BHM3_D9PsNURVAVy.cjs +0 -1
  164. package/browser/cjs/BHWdwAQ322YA8JAZ.cjs +0 -6
  165. package/browser/cjs/CeuX8p1aBuKTuagi.cjs +0 -2
  166. package/browser/cjs/D3EWCPfCu-qMOIGd.cjs +0 -1
  167. package/browser/cjs/DSM4q1dhVVXvsgby.cjs +0 -30
  168. package/browser/cjs/DiAHwNv2I8RHE9GY.cjs +0 -1
  169. package/browser/cjs/index.cjs +0 -1
  170. package/browser/cjs/wrpXlaSBGEicQf6_.cjs +0 -6
  171. package/browser/cjs/xQ6-wbTw5UzZUM1Y.cjs +0 -1
  172. package/browser/esm/Bu64BYvRAlVftMr1.mjs +0 -67
  173. package/browser/esm/CWt4fDYEbj2hvsl_.mjs +0 -3346
  174. package/browser/esm/Ccnxz-y2WBEgfvvh.mjs +0 -6498
  175. package/browser/esm/Dx64JMAGwNNDBkC1.mjs +0 -4928
  176. package/browser/esm/Sv4twwEJDb9dZ91h.mjs +0 -149
  177. package/node/esm/BPn5XBizKkwaUqXB.mjs +0 -4285
  178. package/node/esm/BVV11IlqF6Lmlv8D.mjs +0 -154
  179. package/node/esm/BiJEEgltJzx94zIR.mjs +0 -3433
  180. package/node/esm/CkmZuMvRTpva7eQu.mjs +0 -5074
  181. package/node/esm/j0RE2usgdljRw_gr.mjs +0 -2345
  182. package/types/src/legacyChart/OOXMLMappings.d.ts +0 -8
  183. package/types/src/legacyChart/OOXMLUtils.d.ts +0 -78
  184. package/types/src/legacyChart/ToOOXMLConverter.d.ts +0 -30
  185. package/types/src/reader/domVisitors/AxisVisitor.d.ts +0 -12
  186. package/types/src/reader/domVisitors/BarChartTypeVisitor.d.ts +0 -6
  187. package/types/src/reader/domVisitors/ChartSpaceVisitor.d.ts +0 -6
  188. package/types/src/reader/domVisitors/ChartTypeVisitor.d.ts +0 -7
  189. package/types/src/reader/domVisitors/ChartVisitor.d.ts +0 -7
  190. package/types/src/reader/domVisitors/DataLabelsVisitor.d.ts +0 -8
  191. package/types/src/reader/domVisitors/DataPointVisitor.d.ts +0 -6
  192. package/types/src/reader/domVisitors/LayoutVisitor.d.ts +0 -5
  193. package/types/src/reader/domVisitors/LegendEntryVisitor.d.ts +0 -5
  194. package/types/src/reader/domVisitors/LegendVisitor.d.ts +0 -5
  195. package/types/src/reader/domVisitors/MarkerVisitor.d.ts +0 -5
  196. package/types/src/reader/domVisitors/NegativeShapeVisitor.d.ts +0 -6
  197. package/types/src/reader/domVisitors/PlotAreaVisitor.d.ts +0 -5
  198. package/types/src/reader/domVisitors/RichValueDataVisitor.d.ts +0 -7
  199. package/types/src/reader/domVisitors/RichValueStructureVisitor.d.ts +0 -6
  200. package/types/src/reader/domVisitors/SeriesVisitor.d.ts +0 -8
  201. package/types/src/reader/domVisitors/TitleVisitor.d.ts +0 -9
  202. package/types/src/writer/emitters/ChartColorsEmitter.d.ts +0 -7
  203. package/types/src/writer/emitters/ChartEmitter.d.ts +0 -14
  204. package/types/src/writer/emitters/ChartStyleEmitter.d.ts +0 -46
  205. package/types/src/writer/utils/HiddenFormulaXfs.d.ts +0 -28
@@ -0,0 +1,12 @@
1
+ import { IRange } from '@sheetxl/sdk';
2
+ import { DataTableDefinition } from '../DataTableFormula';
3
+ /**
4
+ * The table a `TABLE(...)` formula describes, read at the table's first result cell; `null` when it
5
+ * is not a table laid out as Excel lays one out.
6
+ *
7
+ * @param text The formula text as it reads at the first result cell (relative references resolved
8
+ * there).
9
+ * @param results The result cells: the rectangle every cell of which carries this formula.
10
+ */
11
+ export declare const readLibreOfficeDataTable: (text: string, results: IRange.Coords) => DataTableDefinition | null;
12
+ //# sourceMappingURL=LibreOfficeDataTable.d.ts.map
@@ -0,0 +1,14 @@
1
+ import { IWorkbook } from '@sheetxl/sdk';
2
+ /** The `paramMap` key under which the styles part leaves its `pivotButton="1"` cell xf indices. */
3
+ export declare const PIVOT_BUTTON_XFS_PARAM = "pivotButtonXfs";
4
+ /**
5
+ * Moves xlsx's per-format `pivotButton` onto the pivot tables whose cells carry it.
6
+ *
7
+ * In xlsx the field button is a flag on the cell's xf, but it is the table's: Excel drops it from
8
+ * a copied cell and clears it with the table. So each styled range using a button xf is cut to the
9
+ * tables it falls in, page fields included, and kept on that table, relative to its top-left cell
10
+ * (`pivotAreaOf`). A button outside every table is dropped; the xf itself reads as the format
11
+ * without the flag.
12
+ */
13
+ export declare const applyPivotButtons: (jsonWB: IWorkbook.JSON, buttonXfs: ReadonlySet<number> | undefined) => void;
14
+ //# sourceMappingURL=PivotButtons.d.ts.map
@@ -0,0 +1,22 @@
1
+ import { IWorkbook } from '@sheetxl/sdk';
2
+ /**
3
+ * Takes out of a pivot table's cells the formats its definition explains.
4
+ *
5
+ * Excel writes into each pivot cell's xf the formats the table owns: a data field's or a pivot
6
+ * field's number format, a compact row label's `horizontal="left"` and indent, and the formats a
7
+ * user put on the table (`<formats>`) (`pivot-probes/probe-pivot-xf-source.ps1`,
8
+ * `probe-pivot-indent-source.ps1`). Those are the table's, which renders them from its definition;
9
+ * a cell's direct style is what the user set. So
10
+ * for each laid-out, modeled table, the styled ranges over its cells are cut to it and each cell
11
+ * points at its xf less what the definition gives it there, an equal xf reused when there is one.
12
+ * What the definition does not explain stays, as Excel shows a saved xf until the table is laid
13
+ * out again; a cell left with nothing has no direct style. Runs after `applyPivotButtons`, which
14
+ * reads the xf indices as read.
15
+ *
16
+ * An xf that carries a cell control's complement (`xfComplements`, read before `applyCellControls`
17
+ * splits the controls out) keeps one: its stripped style is an xf of its own, recorded with the
18
+ * same complement, and a cell left with nothing keeps an empty style to carry it. An xf without one
19
+ * is never matched to one that has one.
20
+ */
21
+ export declare const applyPivotCellFormats: (jsonWB: IWorkbook.JSON, xfComplements?: Map<number, number>) => void;
22
+ //# sourceMappingURL=PivotCellFormats.d.ts.map
@@ -0,0 +1,26 @@
1
+ import { IWorkbook } from '@sheetxl/sdk';
2
+ import { SlicerRecord } from './_SlicerRecord';
3
+ export interface SlicerJoinOptions {
4
+ /** Reports a slicer that could not be imported. */
5
+ warn(message: string, onceKey: string): void;
6
+ /** Marks a source part as taken onto the model, so a save writes it from there. */
7
+ markAbsorbed(partPath: string): void;
8
+ /** The package's slicer parts by path, each the records it holds by slicer name. */
9
+ slicerParts: ReadonlyMap<string, Record<string, SlicerRecord>>;
10
+ }
11
+ /**
12
+ * Joins each sheet's slicer records to the drawing frames that place them, once every sheet is
13
+ * read: a frame of type `slicer` with no source takes the record of its name, and the record's
14
+ * table and column ids become the model's source, `Sales[Region]`. A slicer may sit on another
15
+ * sheet than its table, which is why this waits for the whole workbook.
16
+ *
17
+ * @remarks
18
+ * A record on pivot tables (a pivot or data-model slicer, or a timeline) names them by sheet id and name; those
19
+ * become sheet names, and its cache's `pivotCacheId` the workbook pivot cache that carries the
20
+ * same id, when there is one. A record whose table or column is not in the workbook is not
21
+ * imported: its frame is dropped and its parts are left to the package. Every slicer that is
22
+ * imported has its cache part, and the slicer part when every slicer of it was imported, marked
23
+ * absorbed.
24
+ */
25
+ export declare function joinSlicers(jsonWorkbook: IWorkbook.JSON, options: SlicerJoinOptions): void;
26
+ //# sourceMappingURL=SlicerJoin.d.ts.map
@@ -50,7 +50,7 @@ export declare class ZipReader {
50
50
  * doesn't parse where the central directory says it should.
51
51
  *
52
52
  * @remarks
53
- * `entry.compressedSize`/`compressionMethod`/`signature` come from the *central directory*, which
53
+ * `entry.compressedSize`/`compressionMethod`/`crc32` come from the *central directory*, which
54
54
  * zip.js has already resolved (Zip64 extra fields included) — those are trusted as-is. Only the
55
55
  * local header's own filename/extra-field lengths are read here, since the zip spec allows those
56
56
  * two (and only those two) to legitimately differ from the central directory's copy; they're what
@@ -0,0 +1,59 @@
1
+ /**
2
+ * A table slicer as the reader gathers it from its part (`xl/slicers/*`) and its cache
3
+ * (`xl/slicerCaches/*`), by the xlsx ids the file names its column with. Not the model's JSON
4
+ * (`ISlicer.JSON`, which names the column by structured reference): a record is joined to the
5
+ * drawing frame that places it, and its ids resolved to a table, once every sheet is read.
6
+ */
7
+ export interface SlicerRecord {
8
+ /** The table part's `@id`. Absent for a pivot or OLAP slicer, which names no table. */
9
+ tableId?: string;
10
+ /** The column's `tableColumn/@id`, as Excel writes it the column's 1-based index. */
11
+ columnId?: string;
12
+ /** The cache's `@name`: what a formula refers to the selection by. */
13
+ cacheName?: string;
14
+ /** The cache part's path in the package, for the read to absorb once the slicer is on the model. */
15
+ cachePath?: string;
16
+ /** The cache's `@sourceName`: the column's name when the file was written. */
17
+ sourceName?: string;
18
+ sortOrder?: string;
19
+ customListSort?: boolean;
20
+ crossFilter?: string;
21
+ /** The slicer's `xr10:uid`. */
22
+ uid?: string;
23
+ caption?: string;
24
+ startItem?: number;
25
+ columnCount?: number;
26
+ showCaption?: boolean;
27
+ level?: number;
28
+ style?: string;
29
+ lockedPosition?: boolean;
30
+ /** In EMU, as the part spells it. */
31
+ rowHeight?: number;
32
+ /** A pivot slicer's pivot tables: each `pivotTable`'s `tabId` (the sheet's `sheetId`) and `name`. */
33
+ pivotTables?: {
34
+ tabId: string;
35
+ name: string;
36
+ }[];
37
+ /** A pivot slicer's `data/*\/@pivotCacheId`: the `x14:pivotCacheDefinition` ext of the cache it indexes. */
38
+ pivotCacheId?: string;
39
+ /**
40
+ * A pivot slicer's cache children after `pivotTables`, verbatim; for a `tabular` one, those after
41
+ * `<data>`, whose item states the pivot tables hold.
42
+ */
43
+ pivotBody?: string;
44
+ /** Whether the cache's items are `tabular`: a worksheet pivot cache's, not a data model's. */
45
+ tabular?: boolean;
46
+ /** A `tabular` slicer's `<data>`, verbatim: carried when the model does not hold its pivot cache. */
47
+ pivotData?: string;
48
+ /** `tabular/@showMissing`. */
49
+ showMissing?: boolean;
50
+ /** A timeline's attributes beyond its name, uid, cache and caption, as read. */
51
+ timelineAttributes?: Record<string, string>;
52
+ /** A timeline's children, verbatim. */
53
+ timelineBody?: string;
54
+ }
55
+ /** A sheet's JSON with the slicer records read for it, by slicer name. */
56
+ export interface SheetSlicerRecords {
57
+ slicers?: Record<string, SlicerRecord>;
58
+ }
59
+ //# sourceMappingURL=_SlicerRecord.d.ts.map
@@ -1,4 +1,4 @@
1
- import { IStyle } from '@sheetxl/sdk';
1
+ import { ICellStyle } from '@sheetxl/sdk';
2
2
  import { TransformerOptions } from './Types';
3
3
  import { Visitor } from './Visitor';
4
4
  import { ExecutionContext } from './ExecutionContext';
@@ -22,7 +22,7 @@ export declare class DOMTransformer {
22
22
  * the `dxfs` table, so it arrives from the streaming reader with no index to look up. The
23
23
  * `processingDXFs` flag matters: a dxf's solid pattern fill has its colors inverted.
24
24
  */
25
- parseDxf(elem: Element, location?: string, options?: TransformerOptions): IStyle.JSON;
25
+ parseDxf(elem: Element, location?: string, options?: TransformerOptions): ICellStyle.JSON;
26
26
  getVisitorParamsState(): Map<string, any>;
27
27
  transform(xmlRootDoc: Document, location: string, options?: TransformerOptions): any;
28
28
  protected _walkScoped(elemName: string, context: ExecutionContext, visited: VisitedRecord[], elemParent: Element, jsonParent: any, location: string, options: TransformerOptions): void;
@@ -3,8 +3,20 @@ interface CoreProperty {
3
3
  key: string;
4
4
  value: string;
5
5
  }
6
+ /** A `docProps/custom.xml` `<property>`: its name, the local name of its `vt:` value, and the value's text. */
7
+ export interface CustomPropertyEntry {
8
+ key: string;
9
+ kind: string | null;
10
+ value: string;
11
+ linkTarget?: string;
12
+ }
13
+ /**
14
+ * `<Properties>` is the root of both `docProps/app.xml` and `docProps/custom.xml`. The custom part's
15
+ * children are `<property>`, which the app part never has.
16
+ */
6
17
  export declare class AppPropertiesVisitor implements Visitor {
7
- visit(context: ExecutionContext, elemParent: Element, jsonParent: any): CoreProperty[];
18
+ visit(context: ExecutionContext, elemParent: Element, jsonParent: any): CoreProperty[] | CustomPropertyEntry[];
19
+ visitCustom(elemParent: Element, jsonParent: any): CustomPropertyEntry[];
8
20
  processProperty(context: ExecutionContext, elem: Element): CoreProperty | undefined;
9
21
  }
10
22
  export {};
@@ -1,25 +1,17 @@
1
- import { ICondition, IFilter, Scalar, ITable } from '@sheetxl/sdk';
1
+ import { ICondition, Scalar, ITable } from '@sheetxl/sdk';
2
2
  import { Visitor, ExecutionContext } from '../dom';
3
3
  /**
4
4
  * Auto Filter Visitor assumes that we are always nested within a Table.
5
5
  *
6
6
  * @remarks
7
7
  * We have 2 implementations 1 in dom and 1 in sax. The sax parser is used for AutoTables within
8
- * the SheetView.
8
+ * the WorksheetView.
9
9
  */
10
10
  export declare class AutoFilterVisitor implements Visitor {
11
- visit(context: ExecutionContext, elem: Element, jsonTable: ITable.JSON): IFilter.JSON | undefined;
11
+ visit(context: ExecutionContext, elem: Element, jsonTable: ITable.JSON): ITable.JSON | undefined;
12
12
  processColorFilter(context: ExecutionContext, elem: Element): ICondition.JSON;
13
13
  processCustomFilter(context: ExecutionContext, elem: Element): ICondition.JSON | null;
14
14
  processCustomFilters(context: ExecutionContext, elem: Element): ICondition.JSON;
15
- /**
16
- * `dynamicFilter` is Excel's Average (`aboveAverage` / `belowAverage`) or a TimePeriod.
17
- *
18
- * @remarks
19
- * `val` and `maxVal` are Excel's cache of the last evaluation (the average; a period's start
20
- * and exclusive end), not an anchor and not a deviation count. Excel honors `type` alone and
21
- * rewrites them on save (`probe-filter-dynamic`), so they are dropped here.
22
- */
23
15
  processDynamicFilter(context: ExecutionContext, elem: Element): ICondition.JSON;
24
16
  processDateGroupItem(context: ExecutionContext, elem: Element): ICondition.DateGroupItem;
25
17
  processFilterItem(context: ExecutionContext, elem: Element): Scalar | undefined;
@@ -1,3 +1,4 @@
1
+ import { Rectangle } from '@sheetxl/utils';
1
2
  import { IFill, IEffect } from '@sheetxl/sdk';
2
3
  import { Visitor, ExecutionContext } from '../dom';
3
4
  export declare class ColorContainerVisitor implements Visitor {
@@ -23,7 +24,13 @@ export declare class ColorContainerVisitor implements Visitor {
23
24
  processEffectElement(_context: ExecutionContext, elem: Element, name: string): IEffect.JSON | undefined;
24
25
  getFill(context: ExecutionContext, shPropsElement: Element): any;
25
26
  processGradFill(context: ExecutionContext, gradFillElement: Element): IFill.GradientJSON;
26
- getRect(fillToRectElement: Element): any;
27
+ /**
28
+ * A path gradient's focus from its `fillToRect`: the inner rectangle's edges as `0…1` positions
29
+ * across the shape, as a cell's gradient states them. DrawingML states the right and bottom edges
30
+ * as insets from the far side; SpreadsheetML (and the model) as positions from the near side.
31
+ * `null` for an element that states no edge.
32
+ */
33
+ getFocus(fillToRectElement: Element): Rectangle | null;
27
34
  /**
28
35
  * A `blipFill`: the image as a workbook resource (the blip's embed or link relationship), the
29
36
  * part of it used, and whether it is stretched or tiled.
@@ -1,4 +1,4 @@
1
- import { IRange, IComment, IStyledFont } from '@sheetxl/sdk';
1
+ import { IRange, IComment, IFontStyle } from '@sheetxl/sdk';
2
2
  import { Visitor, ExecutionContext } from '../dom';
3
3
  /**
4
4
  * One `<comment>` of a legacy comments part, as read: its author as an index into the part's
@@ -24,5 +24,5 @@ export declare function readRichText(textElement: Element | null): IComment.Cont
24
24
  * A run's `<rPr>` as the font properties it sets, or `null` when it sets none. Unlike a cell font
25
25
  * record, a run is differential: what it leaves out is inherited, so nothing is defaulted.
26
26
  */
27
- export declare function readRunProperties(rPr: Element): IStyledFont.JSON | null;
27
+ export declare function readRunProperties(rPr: Element): IFontStyle.JSON | null;
28
28
  //# sourceMappingURL=CommentVisitor.d.ts.map
@@ -1,5 +1,7 @@
1
- import { IMovable, IShape } from '@sheetxl/sdk';
1
+ import { IGroup, IMovable, IShape, ITheme } from '@sheetxl/sdk';
2
2
  import { Visitor, ExecutionContext } from '../dom';
3
+ /** Every reference a `style` element states, defaults included. */
4
+ export declare const readStyleRefsElement: (context: ExecutionContext, elemStyle: Element) => ITheme.StyleRefsJSON;
3
5
  export declare class DrawingElementVisitor implements Visitor {
4
6
  visit(context: ExecutionContext, elem: Element, json: IMovable.JSON): IMovable.JSON | undefined;
5
7
  /** A `cNvPr`'s title and hyperlinks onto the JSON that will hold the content's identity. */
@@ -9,14 +11,19 @@ export declare class DrawingElementVisitor implements Visitor {
9
11
  */
10
12
  protected setContent(json: IMovable.JSON, content: IMovable.ContentJSON<any>): void;
11
13
  /** Whether the JSON a drawing element is read into is a group's content, i.e. the element is a member. */
12
- protected isGroupContent(json: unknown): json is IShape.JSON & {
13
- children: IShape.JSON[];
14
+ protected isGroupContent(json: unknown): json is IGroup.JSON & {
15
+ members: IMovable.JSON[];
14
16
  };
15
17
  /**
16
- * A group member's own JSON: its kind and what its `cNvPr` says. The walker fills in the rest
17
- * (`spPr`, `txBody`) as it descends; the member is not captured, the group's markup holds it.
18
+ * A group member: an ordinary movable JSON whose content is of `type`, named and hidden as its
19
+ * `cNvPr` says. The walker fills the content in (`spPr`, `txBody`) as it descends; where the
20
+ * member sits is hoisted from the content onto the movable once the drawing is read
21
+ * (`DrawingVisitor.afterVisit`).
18
22
  */
19
- protected readChildHeader(context: ExecutionContext, elem: Element, type: IShape.Type): IShape.JSON;
23
+ protected readMemberHeader(context: ExecutionContext, elem: Element, type: string): {
24
+ movable: IMovable.JSON;
25
+ content: any;
26
+ };
20
27
  /**
21
28
  * A shape's `style` element — its references into the theme's format scheme — onto the content
22
29
  * JSON. Excel's own shapes state their fill and line this way and nothing in `spPr`. A reference
@@ -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 (its part read into its model), 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 model 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,16 +1,19 @@
1
1
  import { IMovable } from '@sheetxl/sdk';
2
2
  import { Visitor, ExecutionContext } from '../dom';
3
- import { DrawingSpVisitor } from './DrawingSpVisitor';
3
+ import { DrawingElementVisitor } from './DrawingElementVisitor';
4
4
  /**
5
- * A `grpSp`: a group, read as a shape whose `type` is `group` with its members in `children`.
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.
6
7
  *
7
8
  * @remarks
8
- * The group's frame is its `grpSpPr/xfrm`: `bounds` is where it sits (`off`/`ext`) and
9
- * `childBounds` is the space its members' own bounds are stated in (`chOff`/`chExt`), both in
10
- * pixels. Members are read by the walker as it descends — each `sp`/`cxnSp`/`grpSp`/`pic` under
11
- * the group adds itself to `children` in document order, which is z-order.
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.
12
14
  */
13
- export declare class DrawingGrpSpVisitor extends DrawingSpVisitor implements Visitor {
15
+ export declare class DrawingGrpSpVisitor extends DrawingElementVisitor implements Visitor {
16
+ private readonly _fills;
14
17
  visit(context: ExecutionContext, elem: Element, json: IMovable.JSON): any;
15
18
  }
16
19
  //# sourceMappingURL=DrawingGrpSpVisitor.d.ts.map
@@ -1,26 +1,35 @@
1
- import { IMovable, IShape } from '@sheetxl/sdk';
1
+ import { IMovable, IPicture } from '@sheetxl/sdk';
2
2
  import { Visitor, ExecutionContext } from '../dom';
3
3
  import { DrawingElementVisitor } from './DrawingElementVisitor';
4
4
  /**
5
- * A `pic`: the picture content of a movable, or a member of a group.
5
+ * A `pic`: the picture content of a movable, or of a member of a group.
6
6
  *
7
7
  * @remarks
8
- * A member is read into the group's `children` as an `IShape.PictureMemberJSON`: its image as an
9
- * image fill, its locks by the file's names, and — by the `spPr` visitor the walker runs over its
10
- * children — its bounds in the group's child space.
8
+ * What the element itself states — its image and how it fills the frame, its non-visual
9
+ * properties and locks — is read here onto the picture's JSON; its frame properties (the shape
10
+ * it is cropped to, a fill behind the image, a border, effects) are read into the same JSON by
11
+ * the `spPr` visitor the walker runs over its children, and what that reads of placement is
12
+ * hoisted onto the movable afterwards. A member of a group is read the same way, as a movable of
13
+ * the group's `members`.
11
14
  */
12
15
  export declare class DrawingPicVisitor extends DrawingElementVisitor implements Visitor {
13
- private readonly _fills;
14
- visit(context: ExecutionContext, elem: Element, jsonHandle: IMovable.JSON): IMovable.JSON | undefined;
16
+ visit(context: ExecutionContext, elem: Element, jsonHandle: IMovable.JSON): any;
15
17
  /**
16
- * What a group member states beyond its header: the `pic` attributes, its locks by name and its
17
- * `blipFill` as an image fill.
18
+ * The image (`blipFill`), the macro and publish flag, the resize preference and the locks onto
19
+ * the content; the aspect lock onto the movable too, as a shape's is.
18
20
  */
19
- protected readPictureDetails(context: ExecutionContext, elem: Element, member: IShape.PictureMemberJSON): void;
21
+ protected readPictureDetails(context: ExecutionContext, elem: Element, image: PictureImage | undefined, movable: IMovable.JSON, content: IPicture.JSON): void;
20
22
  /**
21
- * The resource a `blipFill`'s image is read to: `undefined` when the element has no `blip`,
22
- * `null` when the blip names no relationship (warned once), else what the relationship resolves to.
23
+ * The picture's image and how it fills the frame: the `blipFill` read as an image fill is.
24
+ * `undefined` when the element has no `blip`, `null` when the blip names no relationship
25
+ * (warned once). The whole image stretched over the whole frame is the default and is left out.
23
26
  */
24
- protected readImageResource(context: ExecutionContext, elem: Element): number | null | undefined;
27
+ protected readImage(context: ExecutionContext, elem: Element): PictureImage | null | undefined;
25
28
  }
29
+ /** What a `blipFill` gives a picture: its image as a resource, and how it fills the frame. */
30
+ interface PictureImage {
31
+ resId: number | undefined;
32
+ image: IPicture.ImageJSON | undefined;
33
+ }
34
+ export {};
26
35
  //# sourceMappingURL=DrawingPicVisitor.d.ts.map
@@ -2,17 +2,17 @@ import { IMovable, IShape } from '@sheetxl/sdk';
2
2
  import { Visitor, ExecutionContext } from '../dom';
3
3
  import { DrawingElementVisitor } from './DrawingElementVisitor';
4
4
  /**
5
- * An `sp`: the shape content of a movable, or a member of a group.
5
+ * An `sp`: the shape content of a movable, or of a member of a group.
6
6
  *
7
7
  * @remarks
8
8
  * What the element itself states — its kind, attributes, non-visual properties, style references
9
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
- * into the group's `children`.
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
12
  */
13
13
  export declare class DrawingSpVisitor extends DrawingElementVisitor implements Visitor {
14
14
  visit(context: ExecutionContext, elem: Element, json: IMovable.JSON): any;
15
- protected visitShape(context: ExecutionContext, elem: Element, json: IMovable.JSON, type: 'sp' | 'cxnSp' | 'grpSp', locksPath: string): any;
15
+ protected visitShape(context: ExecutionContext, elem: Element, json: IMovable.JSON, type: 'sp' | 'cxnSp', locksPath: string): any;
16
16
  /**
17
17
  * The VML shape a form control's hidden twin names, by its `spid` (`_x0000_s1025` is 1025).
18
18
  */
@@ -21,6 +21,6 @@ export declare class DrawingSpVisitor extends DrawingElementVisitor implements V
21
21
  * What the element itself and its non-visual properties say beyond the name: the macro and
22
22
  * text link, the text-box flag, the edit locks by name, and a connector's glued ends.
23
23
  */
24
- protected readShapeDetails(context: ExecutionContext, elem: Element, type: 'sp' | 'cxnSp' | 'grpSp', locksPath: string, content: IShape.JSON): void;
24
+ protected readShapeDetails(context: ExecutionContext, elem: Element, type: 'sp' | 'cxnSp', locksPath: string, content: IShape.JSON): void;
25
25
  }
26
26
  //# sourceMappingURL=DrawingSpVisitor.d.ts.map
@@ -3,8 +3,10 @@ import { Visitor, ExecutionContext } from '../dom';
3
3
  export declare class DrawingVisitor implements Visitor {
4
4
  visit(context: ExecutionContext, elemParent: Element, jsonParent: any): any;
5
5
  /**
6
- * A top-level shape's or group's `xfrm/@rot` is read onto its content with the rest of its
7
- * `xfrm`; the rotation is the movable's frame's, so it moves there. A group member keeps its own.
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.
8
10
  */
9
11
  afterVisit(_context: ExecutionContext, _elemParent: Element, jsonDrawing: {
10
12
  movables?: Partial<IMovable.JSON>[];
@@ -23,7 +23,7 @@ export declare class ExternalLinkVisitor implements Visitor {
23
23
  * Cached types measured across the bench corpus are `n`, `str`, `b`, `e` — strings are inline in
24
24
  * `<v>`, never an sst index (design doc §1). Mirrors `WorksheetVisitor`'s scalar coercion for `n`
25
25
  * / `b` / `e`; `str` here is the literal value (unlike a live sheet's `str`, which is a formula
26
- * marker whose text lives elsewhere), so it needs no `{t,v}` wrapper — `ICell.JSON`'s untyped arm
26
+ * marker whose text lives elsewhere), so it needs no `{t,v}` wrapper — `Scalar.JSON`'s untyped arm
27
27
  * is a bare JS primitive, self-typed at runtime.
28
28
  */
29
29
  private _readCellValue;
@@ -32,16 +32,6 @@ export declare class ExternalLinkVisitor implements Visitor {
32
32
  private _findAbsoluteUrlRelId;
33
33
  }
34
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
35
  interface RelIds {
46
36
  __bookRelId?: string;
47
37
  __absoluteUrlRelId?: string;
@@ -0,0 +1,18 @@
1
+ import { ICellControl } from '@sheetxl/sdk';
2
+ import { Visitor, ExecutionContext } from '../dom';
3
+ /**
4
+ * What `xl/featurePropertyBag/featurePropertyBag.xml` says the cell xfs' complements are.
5
+ *
6
+ * @remarks
7
+ * `controls[i]` is the control an xf with `xfComplement i="i"` carries, or `null` when the chain
8
+ * names something SheetXL does not read (a foreign bag type is warned about, and its cells keep
9
+ * their values).
10
+ */
11
+ export interface FeaturePropertyBags {
12
+ controls: (ICellControl.JSON | null)[];
13
+ }
14
+ export declare class FeaturePropertyBagVisitor implements Visitor {
15
+ visit(context: ExecutionContext, elem: Element, jsonParent: any): FeaturePropertyBags;
16
+ private _readBag;
17
+ }
18
+ //# sourceMappingURL=FeaturePropertyBagVisitor.d.ts.map
@@ -1,17 +1,6 @@
1
1
  import { ITheme } from '@sheetxl/sdk';
2
2
  import { Visitor, ExecutionContext } from '../dom';
3
3
  import { ColorContainerVisitor } from './ColorContainerVisitor';
4
- /**
5
- * Parses the source theme's `<a:fmtScheme>` (fill/line/effect/background-fill style lists) into
6
- * typed `ITheme.JSON` fields (`fillStyleLst`/`lnStyleLst`/`effectStyleLst`/`bgFillStyleLst`) so
7
- * idx-referencing shape/chart styles (`<a:lnRef idx="N">`, `<a:fillRef>`, `<a:effectRef>`) keep
8
- * resolving against the same source definitions on save — see DESIGN-PACKAGE-PASSTHROUGH.md §11.2.
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.
14
- */
15
4
  export declare class FmtSchemeVisitor extends ColorContainerVisitor implements Visitor {
16
5
  visit(context: ExecutionContext, elemParent: Element, jsonParent: ITheme.JSON): void;
17
6
  private parseFillList;
@@ -1,7 +1,8 @@
1
- import { ITheme, IStyledFont } from '@sheetxl/sdk';
1
+ import { ITheme } from '@sheetxl/sdk';
2
2
  import { Visitor, ExecutionContext } from '../dom';
3
3
  export declare class FontSchemeVisitor implements Visitor {
4
4
  visit(context: ExecutionContext, elemParent: Element, jsonParent: ITheme.JSON): ITheme.FontSchemeJSON;
5
- processFontElement(context: ExecutionContext, elem: Element, jsonFont: Partial<IStyledFont.Properties>): Partial<IStyledFont.Properties> | undefined;
5
+ /** A `majorFont`/`minorFont`: the latin, East Asian and complex-script fonts, then the fonts by script. */
6
+ processFontCollection(context: ExecutionContext, elem: Element): ITheme.FontCollectionJSON | undefined;
6
7
  }
7
8
  //# sourceMappingURL=FontSchemeVisitor.d.ts.map
@@ -0,0 +1,11 @@
1
+ import { IShape, ITheme } from '@sheetxl/sdk';
2
+ import { Visitor, ExecutionContext } from '../dom';
3
+ /**
4
+ * A theme's `objectDefaults`: each of `spDef`, `lnDef` and `txDef` read as the shape JSON it gives a
5
+ * new object, its style references in full.
6
+ */
7
+ export declare class ObjectDefaultsVisitor implements Visitor {
8
+ visit(context: ExecutionContext, elemParent: Element, jsonParent: ITheme.JSON): object;
9
+ processDefault(context: ExecutionContext, elemDef: Element): IShape.JSON;
10
+ }
11
+ //# sourceMappingURL=ObjectDefaultsVisitor.d.ts.map
@@ -1,4 +1,4 @@
1
- import { IFill, IBorders, IStyledFont } from '@sheetxl/sdk';
1
+ import { IFill, IBorders, IFontStyle } 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;
@@ -7,7 +7,7 @@ export declare class SheetColorContainerVisitor implements Visitor {
7
7
  */
8
8
  processDataBarColor(context: ExecutionContext, elemColor: Element, jsonParent: any, key: string, auto?: string): any;
9
9
  processFonts(context: ExecutionContext, elem: Element, jsonParent: any): any;
10
- processFont(context: ExecutionContext, elem: Element, jsonFont: IStyledFont.Properties<string>): any;
10
+ processFont(context: ExecutionContext, elem: Element, jsonFont: IFontStyle.Properties<string>): any;
11
11
  processFills(context: ExecutionContext, elem: Element, jsonParent: any): any;
12
12
  processFill(context: ExecutionContext, elem: Element, jsonParent: any, index: number): any;
13
13
  processGradientFill(context: ExecutionContext, elem: Element, jsonParent: IFill.GradientJSON): any;
@@ -1,25 +1,46 @@
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 {
5
5
  visit(context: ExecutionContext, elem: Element, jsonParent: IStyleCollection.JSON): any;
6
+ /** The font of the Normal style (`builtinId` 0): its named xf's `fontId`, 0 when not stated. */
7
+ normalFontId(context: ExecutionContext, elem: Element): number;
6
8
  processIndexColors(context: ExecutionContext, elem: Element, jsonParent: any): void;
7
9
  processMruColors(context: ExecutionContext, elem: Element, jsonParent: any): void;
8
10
  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;
11
+ processXFs(context: ExecutionContext, elem: Element, jsonParent: ICellStyle.JSON[], denormalized: any, namedIds?: Map<number, string> | null, ignoreApplys?: boolean): any;
12
+ processXF(context: ExecutionContext, elem: Element, jsonParent: ICellStyle.JSON, denormalized: any, namedIds: Map<number, string> | null, ignoreApplys: boolean): any;
11
13
  processAlignment(context: ExecutionContext, elem: Element, jsonParent: any): any;
12
14
  /**
13
15
  * The cell xfs whose `<protection>` says `hidden="1"`. They become the sheet's `showFormulas` once
14
16
  * the sheets are read (`applyHiddenFormulas`), since a format alone cannot say it.
15
17
  */
16
18
  collectHiddenXfs(elem: Element): Set<number>;
19
+ /**
20
+ * The cell xfs that say `pivotButton="1"`. The button is the pivot table's, so it moves onto the
21
+ * table that covers the cell once the sheets are read (`applyPivotButtons`).
22
+ */
23
+ collectPivotButtonXfs(elem: Element): Set<number>;
24
+ /**
25
+ * The cell xfs whose `extLst` carries an `xfComplement`, by xf index, with the complement index.
26
+ * They become cell controls once the sheets and the feature property bags are read
27
+ * (`applyCellControls`); the style itself does not keep them.
28
+ */
29
+ collectXfComplements(elem: Element): Map<number, number>;
17
30
  processProtection(context: ExecutionContext, elem: Element, jsonParent: any): any;
18
- processDXF(context: ExecutionContext, elem: Element, jsonParent: IStyle.JSON): any;
31
+ processDXF(context: ExecutionContext, elem: Element, jsonParent: ICellStyle.JSON): any;
19
32
  processDXFs(context: ExecutionContext, elem: Element, jsonParent: any[]): any;
33
+ /**
34
+ * Reads the slicer styles from the styles part's `extLst`: `x14:slicerStyles` names each slicer
35
+ * style's eight item elements, as ids into `x14:dxfs` (a list of its own, apart from the main
36
+ * `dxfs`). A slicer style's frame and header are in the file as a hidden table style of the same
37
+ * name (`table="0" pivot="0"`); that table style is taken out of the table styles and joins the
38
+ * slicer style.
39
+ */
40
+ processSlicerStyles(context: ExecutionContext, elemExtLst: Element | null, jsonParent: any): void;
20
41
  processTableStyle(context: ExecutionContext, elem: Element, jsonParent: any, dxfs: any[], shiftTableDx?: boolean): any;
21
42
  processTableStyles(context: ExecutionContext, elem: Element, jsonParent: any, dxfs: any[], shiftTableDx?: boolean): any;
22
- processCellStyles(context: ExecutionContext, elem: Element, named: IStyle.NamedJSON[], namedXfs: IStyle.JSON[], namedIds: Map<number, string>): any;
43
+ processCellStyles(context: ExecutionContext, elem: Element, named: ICellStyle.NamedJSON[], namedXfs: ICellStyle.JSON[], namedIds: Map<number, string>): any;
23
44
  afterVisit(_context: ExecutionContext, _elem: Element, _json: any): void;
24
45
  }
25
46
  //# sourceMappingURL=SheetStyleVisitor.d.ts.map
@@ -1,6 +1,15 @@
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 data-model
6
+ * slicer's: its pivot tables are read by sheet id and name. A pivot slicer's `tabular` items are
7
+ * read for their settings and the pivot cache they index; their states are the pivot tables' hidden
8
+ * items, so they are not kept. The rest (a data model's `olap` items, the `extLst`) is kept as
9
+ * written. A timeline cache (`timelineCacheDefinition`) is read the same way: it has no table form.
10
+ */
3
11
  export declare class SlicerCacheDefinitionVisitor implements Visitor {
4
- visit(context: ExecutionContext, elem: Element, jsonSlicer: ISlicer.JSON): ISlicer.JSON;
12
+ visit(context: ExecutionContext, elem: Element, jsonSlicer: SlicerRecord): SlicerRecord;
13
+ processPivot(context: ExecutionContext, elem: Element, jsonSlicer: SlicerRecord): void;
5
14
  }
6
15
  //# sourceMappingURL=SlicerCacheDefinitionVisitor.d.ts.map