@sheetxl/io-xlsx 0.8.0-beta.12 → 0.8.0-beta.14

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 (54) hide show
  1. package/browser/esm/{9dwUocbOsJuAcmKn.mjs → BjkdoGjLpkKUlK5q.mjs} +2234 -2250
  2. package/browser/esm/{DeMZN_qj__PKo4Wh.mjs → Bomb4K5f16UyiyED.mjs} +1 -1
  3. package/browser/esm/{D8k22TSWPd_RHEpj.mjs → Bs0IJqyry5ZycCBU.mjs} +988 -1008
  4. package/browser/esm/CIRY1QIACITHu_lA.mjs +24 -0
  5. package/browser/esm/{DVLJTjJCGqrJUa8c.mjs → Cs4lg7bxClbTkldF.mjs} +61 -61
  6. package/browser/esm/{aUBXbTh2r0u3x4Xo.mjs → DAYdoS9sLmYf8kzD.mjs} +2 -2
  7. package/browser/esm/{BIvDjK4Zl8bWRgl8.mjs → DKWU_JYjVmtOzTGr.mjs} +2 -2
  8. package/browser/esm/{DsppUz-14Z7ti9i3.mjs → DN7ig6HovGU5gMbr.mjs} +1 -1
  9. package/browser/esm/{CcH5ITJFTMVWUJO9.mjs → DbygDdjktfjoU4DI.mjs} +1041 -1041
  10. package/browser/esm/{DO75RoAQTgMuVzXv.mjs → DiNNY0EgHikWbrDz.mjs} +2 -2
  11. package/browser/esm/{DKnOwucZq4z9_-r-.mjs → QuYxg3ec6kN-djPF.mjs} +4 -4
  12. package/browser/esm/index.mjs +2 -2
  13. package/node/esm/{C78E45n6j2E8rruH.mjs → BCSJ_kqVLXkZlYh3.mjs} +818 -819
  14. package/node/esm/{DXusvwW73FUDSyvD.mjs → BCXSNXHvNQ9JQMLE.mjs} +1129 -1129
  15. package/node/esm/{DsyuWxk3bdGhJUQN.mjs → BycDf9HTtfpzL-zt.mjs} +1 -1
  16. package/node/esm/{BmIIQODk4dBVIXA4.mjs → CTdvEKRTM-W1L1KU.mjs} +976 -994
  17. package/node/esm/{DCaAOfuW-w_dx_qd.mjs → CkenuXqno-ffP331.mjs} +2 -2
  18. package/node/esm/{CDKm5s3JE_d99TJw.mjs → CvcAx132Yp5uUDUB.mjs} +81 -81
  19. package/node/esm/{C-e5AO_4TnGywT-m.mjs → H9egT6kWCw8RAf76.mjs} +1 -1
  20. package/node/esm/{DSgxL0sBZtWMydVl.mjs → TPq4Re0SQgONsX_u.mjs} +2 -2
  21. package/node/esm/index.mjs +4 -4
  22. package/package.json +3 -3
  23. package/types/src/AutoFilterRules.d.ts +0 -42
  24. package/types/src/DataTableFormula.d.ts +0 -10
  25. package/types/src/DataValidationRules.d.ts +0 -5
  26. package/types/src/ExcelCalcStamp.d.ts +0 -36
  27. package/types/src/ExcelCompat.d.ts +0 -140
  28. package/types/src/ExcelFunctionFacts.d.ts +0 -272
  29. package/types/src/ExcelReservedNames.d.ts +0 -64
  30. package/types/src/KnownFonts.d.ts +0 -13
  31. package/types/src/LegacyFormula.d.ts +0 -58
  32. package/types/src/Plugin.d.ts +3 -3
  33. package/types/src/SheetKinds.d.ts +0 -15
  34. package/types/src/SourcePackage.d.ts +0 -44
  35. package/types/src/Types.d.ts +2 -3
  36. package/types/src/chart/_chartExStyle.d.ts +0 -9
  37. package/types/src/reader/DummyFunctionUnwrap.d.ts +43 -23
  38. package/types/src/reader/domVisitors/AutoFilterVisitor.d.ts +0 -8
  39. package/types/src/reader/domVisitors/ExternalLinkVisitor.d.ts +0 -10
  40. package/types/src/reader/domVisitors/FeaturePropertyBagVisitor.d.ts +0 -9
  41. package/types/src/reader/domVisitors/FmtSchemeVisitor.d.ts +0 -11
  42. package/types/src/reader/domVisitors/WorkbookVisitor.d.ts +0 -9
  43. package/types/src/reader/saxVisitors/SharedStringsVisitor.d.ts +0 -15
  44. package/types/src/reader/saxVisitors/WorksheetVisitor.d.ts +3 -1
  45. package/types/src/richValue/WebImageRichValueHandler.d.ts +0 -5
  46. package/types/src/utils/VmlNoteStyle.d.ts +0 -19
  47. package/types/src/vba/VBAProject.d.ts +0 -19
  48. package/types/src/writer/builder/OpcXmlUtils.d.ts +0 -8
  49. package/types/src/writer/builder/PackageBuilder.d.ts +0 -41
  50. package/types/src/writer/builder/Types.d.ts +0 -30
  51. package/types/src/writer/emitters/ExternalLinkEmitter.d.ts +0 -11
  52. package/types/src/writer/emitters/FeaturePropertyBagEmitter.d.ts +0 -10
  53. package/types/src/writer/utils/DefaultRows.d.ts +0 -16
  54. package/types/src/writer/utils/DummyFunction.d.ts +0 -23
@@ -72,17 +72,6 @@ export declare class PackageBuilder<Out> {
72
72
  private _explicitRelTargets;
73
73
  private _mapState;
74
74
  constructor(zip: IZipBackend<Out>, registry: EmitterRegistry, options?: PackageBuilderOptions);
75
- /**
76
- * Whether a source part named `name` will be in this package once {@link _passthroughSourceParts}
77
- * has run — the drop rules of `DESIGN-PACKAGE-PASSTHROUGH.md` §4, as one predicate. `false` when
78
- * there is no source package or it has no such part.
79
- *
80
- * @remarks
81
- * Does not consider whether an emitter claimed the *path* — that part is then in the package, but
82
- * as the emitter's, not the source's. It does consider whether the reader took the part onto the
83
- * model ({@link ISourcePackage.isAbsorbed}), which is a different question: the model writes that
84
- * part wherever its own numbering puts it, which need not be where the source had it.
85
- */
86
75
  private _isSourcePartCarried;
87
76
  /**
88
77
  * Hold the source's own relationship ids back in `partPath`'s set, before the emitter rewriting
@@ -102,15 +91,6 @@ export declare class PackageBuilder<Out> {
102
91
  * @returns The resulting package as a Uint8Array.
103
92
  */
104
93
  build(options?: ZipBackendCloseOptions): Promise<Uint8Array>;
105
- /**
106
- * Copy through every source-package part no emitter claimed, once emission is complete and
107
- * {@link _writtenPaths} is final. See `DESIGN-PACKAGE-PASSTHROUGH.md` §4 (bucket rules) and §6
108
- * (the rels/content-types merge).
109
- *
110
- * @remarks
111
- * No re-fetch, no residue map: this only ever reads the bytes handed in via
112
- * {@link PackageBuilderOptions.sourcePackage} — see the design doc's non-goals (§7).
113
- */
114
94
  private _passthroughSourceParts;
115
95
  /**
116
96
  * Declare the workbook part's macro-enabled **variant** of `CT_Workbook` when the package being
@@ -138,27 +118,6 @@ export declare class PackageBuilder<Out> {
138
118
  * would let a stale declaration through on anything.
139
119
  */
140
120
  private _applyWorkbookContentTypeVariant;
141
- /**
142
- * Seed `sourcePart`'s {@link IRelationshipSet} with the source's edges, each under the source's
143
- * own id. Targets are carried forward as-is (still relative to the same referencing part, at the
144
- * same OPC path) — nothing to recompute.
145
- *
146
- * @remarks
147
- * Which edges come back depends on who wrote the part (`DESIGN-PACKAGE-PASSTHROUGH.md` §6):
148
- *
149
- * - A **preserved** part is the source's bytes, so its XML still cites the ids the source's
150
- * `.rels` defined; every edge whose target is still in the package comes back with that id.
151
- * Nothing else ever wrote into this set, so the ids are free.
152
- * - A **rewritten** part (the root, or one an emitter claimed) had its emitter recreate the edges
153
- * it cites, so only what the emitter did not recreate is added: not an edge whose target an
154
- * emitter claimed (its own, correct edge exists already — keeping both would duplicate it), not
155
- * one added by name through `addRelationship`. The set had the source's ids reserved before
156
- * the emitter allocated ({@link _reserveSourceRelIds}), so these too keep their names —
157
- * unless an emitter took the id as a hint for a different target, in which case it is fresh.
158
- *
159
- * An edge whose target did not survive at all is dropped either way (§5). A `TargetMode="External"`
160
- * or `#`-fragment target is not a part and is never resolved as one.
161
- */
162
121
  private _mergeSourceRelsInto;
163
122
  /**
164
123
  * Add a root part to the package.
@@ -161,25 +161,6 @@ export interface EmitContext {
161
161
  * @returns The rId of the added relationship.
162
162
  */
163
163
  addExternal(relTypeUri: string, targetUrl: string, idHint?: string): PackagePart;
164
- /**
165
- * Adds a relationship from the current part to a part that is already going to be in this
166
- * package, rather than creating one: either a part another emitter wrote — one that is shared,
167
- * written once by whoever owns it and referenced from each part that uses it (a pivot cache,
168
- * written by the workbook, from every pivot table on it) — or a part the source package carries
169
- * through untouched because nothing modeled it (a `<ddeLink>` external link).
170
- *
171
- * @param relTypeUri The relationship type URI.
172
- * @param targetPartPath The target's absolute path (relative to the package root, no leading `/`).
173
- * @param idHint A preferred id (e.g. the source's own original rId), honored only if free in this
174
- * part's set; it falls back silently to an auto-generated id otherwise, so a caller that needs the
175
- * id to line up with something it already wrote (a replayed fragment citing this target) must use
176
- * the returned value rather than assume the hint was honored.
177
- * @returns The id assigned, or `null` if the target will not be in the package — no emitter
178
- * claimed the path and no source part survives at it (there is no source package, it has no such
179
- * part, the model absorbed it, or it is in a drop bucket for this save; see
180
- * `DESIGN-PACKAGE-PASSTHROUGH.md` §4). Nothing was added in that case: the caller must not write
181
- * the element that would have cited it.
182
- */
183
164
  addRelationship(relTypeUri: string, targetPartPath: string, idHint?: string): string | null;
184
165
  /**
185
166
  * Waits for all dependants to be emitted.
@@ -296,11 +277,6 @@ export interface PackageBuilderOptions {
296
277
  * A map that can be used across emitters to share state.
297
278
  */
298
279
  mapState?: Map<string, any>;
299
- /**
300
- * The source package to seed the build from, if the destination is being saved back into the same
301
- * OOXML package family it was read from. Parts no emitter claims are copied through verbatim
302
- * instead of being dropped. See `DESIGN-PACKAGE-PASSTHROUGH.md`.
303
- */
304
280
  sourcePackage?: ISourcePackage | null;
305
281
  /**
306
282
  * Whether the package being built is macro-enabled (`.xlsm`) rather than plain (`.xlsx`).
@@ -361,12 +337,6 @@ export interface ISourcePackagePart {
361
337
  readonly uncompressedSize: number;
362
338
  readonly raw?: ISourcePackageRawPart;
363
339
  }
364
- /**
365
- * Structural interface for a retained source package, seeded into {@link PackageBuilder} so an
366
- * xlsx→xlsx round trip can copy through the parts nothing modeled instead of dropping them. Kept
367
- * structural (not importing `../SourcePackage` directly) so `builder/` stays format-agnostic — see
368
- * `DESIGN-PACKAGE-PASSTHROUGH.md` §6.
369
- */
370
340
  export interface ISourcePackage {
371
341
  getNames(): string[];
372
342
  has(name: string): boolean;
@@ -1,16 +1,5 @@
1
1
  import { IExternalBook } from '@sheetxl/sdk';
2
2
  import { Emitter, EmitContext } from '../builder';
3
- /**
4
- * Emits one `xl/externalLinks/externalLinkN.xml` — the cached snapshot of another workbook that
5
- * `[n]` in a formula addresses. See `DESIGN-EXTERNAL-LINKS.md` §5 phase A.
6
- *
7
- * @remarks
8
- * The part is scheduled by `WorkbookEmitter`, which owns the `[n]` order and therefore the path
9
- * numbering; this emitter only writes what one {@link IExternalBook.JSON} says.
10
- *
11
- * DDE and OLE links never reach here — they are not modeled at all, and their bytes are carried
12
- * through the package instead (design doc §2.1).
13
- */
14
3
  export declare class ExternalLinkEmitter extends Emitter<IExternalBook.JSON> {
15
4
  constructor();
16
5
  /** @inheritdoc IEmitter.emit */
@@ -1,15 +1,5 @@
1
1
  import { Emitter, EmitContext } from '../builder';
2
2
  import { CellControlComplements } from '../utils/CellControlComplements';
3
- /**
4
- * Writes `xl/featurePropertyBag/featurePropertyBag.xml`: the controls the cell xfs' `xfComplement`
5
- * indices stand for.
6
- *
7
- * @remarks
8
- * The chain Excel writes for a checkbox (measured 2026-10-27, `checkbox.xlsx`), bags referenced by
9
- * position: the control bag, an `XFControls` bag naming it as `CellControl`, an `XFComplement` bag
10
- * naming that, and last one `XFComplements` bag whose `MappedFeaturePropertyBags` array lists the
11
- * `XFComplement` bags. An xf's `xfComplement i` indexes that array, not the bags.
12
- */
13
3
  export declare class FeaturePropertyBagEmitter extends Emitter<CellControlComplements> {
14
4
  constructor();
15
5
  /** @inheritdoc IEmitter.emit */
@@ -18,21 +18,5 @@ export interface DefaultRows {
18
18
  * no run lists, at the height they no longer get by default.
19
19
  */
20
20
  export declare const listedRowRuns: (rows: ITypes.RunCoordValue<XlsxHeader>[], defaultRun: ITypes.RunCoordValue<XlsxHeader>, unlistedHeight: number, maxRows: number) => ITypes.RunCoordValue<XlsxHeader>[];
21
- /**
22
- * How a sheet's unlisted rows are written: Excel's `sheetFormatPr` is its cache of the row height
23
- * every row shares, so the height that covers most of the sheet is written once there rather than as
24
- * a row element per row.
25
- *
26
- * @remarks
27
- * Excel computes an unlisted row's height from the Normal font plus a pixel for each `thickTop`/
28
- * `thickBottom` (`probe-sheet-thick-derive.ps1`); it moves the flags there only for a style on whole
29
- * columns, and our export promotes a style on most of a column to one, so the default takes the flags
30
- * of the run it replaces. A height those explain is written that way, so Excel keeps sizing the rows
31
- * itself; any other is written as a custom height.
32
- *
33
- * @param normalHeight The Normal font's row height, in points.
34
- * @param maxRows The sheet's row count.
35
- * @returns `null` when the rows share no height but the Normal one.
36
- */
37
21
  export declare const resolveDefaultRows: (json: XlsxWorksheetJSON, normalHeight: number, maxRows: number) => DefaultRows | null;
38
22
  //# sourceMappingURL=DefaultRows.d.ts.map
@@ -1,27 +1,4 @@
1
1
  import { Scalar, IWorkbook } from '@sheetxl/sdk';
2
- /**
3
- * Exporting a formula Excel cannot evaluate.
4
- *
5
- * Excel has no notion of "a function I do not know but should keep working". A name it does not
6
- * have evaluates to `#NAME?` and the computed value is gone — so a user's own UDF, or one of the
7
- * 29 built-ins Excel lacks, survives a save as an error and nothing else.
8
- *
9
- * Google Sheets solved this years ago and the shape is a de-facto convention, so we emit THEIR
10
- * spelling rather than inventing one — the same text is then understood by Sheets, by Grid, and by
11
- * our own reader, which needs a single unwrap path either way:
12
- *
13
- * ```
14
- * IFERROR(__xludf.DUMMYFUNCTION("ISEMAIL(""biggie"")"),FALSE)
15
- * ```
16
- *
17
- * The unknown call errors in Excel, `IFERROR` yields the literal, and the cell keeps showing the
18
- * right answer. The original formula text rides along as a string argument, which is what lets the
19
- * round trip back into SheetXL be lossless.
20
- *
21
- * The trade is real and worth stating: **the formula is dead in Excel.** It never recalculates, so
22
- * editing a precedent leaves a stale value with no visual cue. That is Google's trade too; the
23
- * alternative (emit bare, show `#NAME?`) loses the value instead. See CALC-ISSUES item 7.
24
- */
25
2
  /** Google's marker. Deliberately their exact spelling — see the note above. */
26
3
  export declare const DUMMY_FUNCTION = "__xludf.DUMMYFUNCTION";
27
4
  /**