@office-kit/xlsx 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/README.md +11 -1
  2. package/dist/cell/cell.d.ts +45 -10
  3. package/dist/cell/index.d.ts +4 -4
  4. package/dist/cell/rich-text.d.ts +1 -1
  5. package/dist/{cell-BucgGwl3.mjs → cell-Df3cKRIl.mjs} +72 -30
  6. package/dist/cell-Df3cKRIl.mjs.map +1 -0
  7. package/dist/{cell-style-DuvS_Lsg.mjs → cell-style-BFmJOmcx.mjs} +130 -93
  8. package/dist/cell-style-BFmJOmcx.mjs.map +1 -0
  9. package/dist/cell.mjs +2 -2
  10. package/dist/chart/chart-xml.d.ts +1 -1
  11. package/dist/chart/chart.d.ts +3 -3
  12. package/dist/chart/cx/chartex-xml.d.ts +1 -1
  13. package/dist/chart/cx/chartex.d.ts +2 -2
  14. package/dist/chart/index.d.ts +6 -6
  15. package/dist/chart/user-shapes-xml.d.ts +1 -1
  16. package/dist/chart/user-shapes.d.ts +2 -2
  17. package/dist/chart.mjs.map +1 -1
  18. package/dist/chartsheet/chartsheet-xml.d.ts +1 -1
  19. package/dist/chartsheet/chartsheet.d.ts +4 -4
  20. package/dist/chartsheet/index.d.ts +2 -2
  21. package/dist/chartsheet-C3-tqkPy.mjs.map +1 -1
  22. package/dist/{coordinate-96Ecci4d.mjs → coordinate-Bt5Gni2I.mjs} +19 -8
  23. package/dist/coordinate-Bt5Gni2I.mjs.map +1 -0
  24. package/dist/datetime-B2ySVlXt.mjs.map +1 -1
  25. package/dist/{defined-names-CviWmtQg.mjs → defined-names-Ctu3F6ls.mjs} +4 -3
  26. package/dist/defined-names-Ctu3F6ls.mjs.map +1 -0
  27. package/dist/{differential-DvKU8fJt.mjs → differential-H9SjEeIU.mjs} +2 -2
  28. package/dist/differential-H9SjEeIU.mjs.map +1 -0
  29. package/dist/drawing/dml/dml-xml.d.ts +8 -8
  30. package/dist/drawing/dml/effect.d.ts +2 -2
  31. package/dist/drawing/dml/fill.d.ts +1 -1
  32. package/dist/drawing/dml/geometry.d.ts +1 -1
  33. package/dist/drawing/dml/line.d.ts +1 -1
  34. package/dist/drawing/dml/shape-properties.d.ts +5 -5
  35. package/dist/drawing/dml/text.d.ts +4 -4
  36. package/dist/drawing/drawing-xml.d.ts +1 -1
  37. package/dist/drawing/drawing.d.ts +9 -9
  38. package/dist/drawing/index.d.ts +14 -14
  39. package/dist/{drawing-BxzLuryn.mjs → drawing-ZJ3h4VHD.mjs} +2 -2
  40. package/dist/drawing-ZJ3h4VHD.mjs.map +1 -0
  41. package/dist/drawing.mjs +1 -1
  42. package/dist/drawing.mjs.map +1 -1
  43. package/dist/{escape-DFTE7ZJc.mjs → escape-rnWSPpWY.mjs} +4 -6
  44. package/dist/{escape-DFTE7ZJc.mjs.map → escape-rnWSPpWY.mjs.map} +1 -1
  45. package/dist/formula/tokenizer.d.ts +1 -1
  46. package/dist/formula/translate.d.ts +2 -2
  47. package/dist/{inference-BrI9uIY4.mjs → inference-BMvv9cUY.mjs} +18 -3
  48. package/dist/inference-BMvv9cUY.mjs.map +1 -0
  49. package/dist/io/browser.d.ts +2 -2
  50. package/dist/io/index.d.ts +7 -7
  51. package/dist/io/load.d.ts +4 -4
  52. package/dist/io/node-fs.d.ts +2 -2
  53. package/dist/io/node-save.d.ts +2 -2
  54. package/dist/io/node.d.ts +2 -2
  55. package/dist/io/save.d.ts +2 -2
  56. package/dist/io.mjs +2 -2
  57. package/dist/io.mjs.map +1 -1
  58. package/dist/{load-MyOIjtrU.mjs → load-CJdGh50R.mjs} +8 -8
  59. package/dist/load-CJdGh50R.mjs.map +1 -0
  60. package/dist/{manifest-Cm9K7D62.mjs → manifest-pLmx7KYh.mjs} +3 -3
  61. package/dist/manifest-pLmx7KYh.mjs.map +1 -0
  62. package/dist/node.d.ts +3 -3
  63. package/dist/node.mjs +1 -1
  64. package/dist/node.mjs.map +1 -1
  65. package/dist/packaging/core.d.ts +1 -1
  66. package/dist/packaging/custom.d.ts +2 -2
  67. package/dist/packaging/extended.d.ts +2 -2
  68. package/dist/packaging/index.d.ts +10 -10
  69. package/dist/packaging.mjs +1 -1
  70. package/dist/{parser-D3SLaOFe.mjs → parser-By6RWZVW.mjs} +39 -10
  71. package/dist/parser-By6RWZVW.mjs.map +1 -0
  72. package/dist/reader-BNaUTVCy.mjs.map +1 -1
  73. package/dist/{save-2moCT3Af.mjs → save-a0InIbtJ.mjs} +10 -8
  74. package/dist/save-a0InIbtJ.mjs.map +1 -0
  75. package/dist/schema/core.d.ts +1 -1
  76. package/dist/schema/index.d.ts +3 -3
  77. package/dist/schema/serialize.d.ts +2 -2
  78. package/dist/serialize-BC2Wu3bR.mjs.map +1 -1
  79. package/dist/{serializer-BtO2TrI7.mjs → serializer-C6nm0mRJ.mjs} +2 -2
  80. package/dist/serializer-C6nm0mRJ.mjs.map +1 -0
  81. package/dist/streaming/index.d.ts +2 -2
  82. package/dist/streaming/read-only.d.ts +4 -4
  83. package/dist/streaming/write-only.d.ts +9 -15
  84. package/dist/streaming.mjs +19 -49
  85. package/dist/streaming.mjs.map +1 -1
  86. package/dist/styles/alignment.schema.d.ts +2 -2
  87. package/dist/styles/borders.d.ts +1 -1
  88. package/dist/styles/borders.schema.d.ts +2 -2
  89. package/dist/styles/cell-style.d.ts +86 -40
  90. package/dist/styles/colors.schema.d.ts +2 -2
  91. package/dist/styles/differential.d.ts +7 -7
  92. package/dist/styles/fills.d.ts +1 -1
  93. package/dist/styles/fills.schema.d.ts +2 -2
  94. package/dist/styles/fonts.d.ts +11 -2
  95. package/dist/styles/fonts.schema.d.ts +2 -2
  96. package/dist/styles/index.d.ts +21 -21
  97. package/dist/styles/named-styles.d.ts +6 -6
  98. package/dist/styles/numbers.schema.d.ts +2 -2
  99. package/dist/styles/protection.schema.d.ts +2 -2
  100. package/dist/styles/stylesheet-reader.d.ts +1 -1
  101. package/dist/styles/stylesheet-writer.d.ts +1 -1
  102. package/dist/styles/stylesheet.d.ts +34 -8
  103. package/dist/styles.mjs +4 -4
  104. package/dist/{stylesheet-writer-BrOw4jMY.mjs → stylesheet-writer-D7Uug85X.mjs} +35 -22
  105. package/dist/stylesheet-writer-D7Uug85X.mjs.map +1 -0
  106. package/dist/{table-1P8we2gS.mjs → table-Ccro4rrz.mjs} +11 -9
  107. package/dist/table-Ccro4rrz.mjs.map +1 -0
  108. package/dist/tree-BX-sRRVp.mjs.map +1 -1
  109. package/dist/user-shapes-DfmCGKB0.mjs.map +1 -1
  110. package/dist/utf8-Tn3nzyik.mjs.map +1 -1
  111. package/dist/utils/coordinate.d.ts +30 -4
  112. package/dist/utils/escape.d.ts +3 -5
  113. package/dist/utils/formula-text.d.ts +7 -0
  114. package/dist/utils/index.d.ts +11 -11
  115. package/dist/utils.mjs +3 -3
  116. package/dist/workbook/calc-properties.d.ts +9 -2
  117. package/dist/workbook/defined-names.d.ts +3 -3
  118. package/dist/workbook/index.d.ts +24 -24
  119. package/dist/workbook/protection.d.ts +1 -1
  120. package/dist/workbook/shared-strings.d.ts +2 -2
  121. package/dist/workbook/views.d.ts +1 -1
  122. package/dist/workbook/workbook-properties.d.ts +1 -1
  123. package/dist/workbook/workbook.d.ts +46 -46
  124. package/dist/{workbook-CARZS94U.mjs → workbook-B15-T4cs.mjs} +8 -8
  125. package/dist/workbook-B15-T4cs.mjs.map +1 -0
  126. package/dist/workbook.mjs +45 -3
  127. package/dist/workbook.mjs.map +1 -1
  128. package/dist/worksheet/auto-filter.d.ts +1 -1
  129. package/dist/worksheet/cell-range.d.ts +11 -4
  130. package/dist/worksheet/comments-xml.d.ts +1 -1
  131. package/dist/worksheet/conditional-formatting.d.ts +2 -2
  132. package/dist/worksheet/custom-sheet-views.d.ts +2 -2
  133. package/dist/worksheet/data-validations.d.ts +3 -3
  134. package/dist/worksheet/errors.d.ts +1 -1
  135. package/dist/worksheet/hyperlinks.d.ts +1 -1
  136. package/dist/worksheet/index.d.ts +46 -46
  137. package/dist/worksheet/ole-objects.d.ts +1 -1
  138. package/dist/worksheet/page-setup.d.ts +1 -1
  139. package/dist/worksheet/properties.d.ts +1 -1
  140. package/dist/worksheet/protected-ranges.d.ts +1 -1
  141. package/dist/worksheet/protection.d.ts +1 -1
  142. package/dist/worksheet/reader.d.ts +9 -9
  143. package/dist/worksheet/scenarios.d.ts +1 -1
  144. package/dist/worksheet/table-validate.d.ts +7 -0
  145. package/dist/worksheet/table-xml.d.ts +1 -1
  146. package/dist/worksheet/table.d.ts +6 -3
  147. package/dist/worksheet/views.d.ts +5 -0
  148. package/dist/worksheet/worksheet.d.ts +135 -94
  149. package/dist/worksheet/writer.d.ts +16 -9
  150. package/dist/{worksheet-C5Ensf_j.mjs → worksheet-4xW-i8j9.mjs} +235 -51
  151. package/dist/worksheet-4xW-i8j9.mjs.map +1 -0
  152. package/dist/worksheet.mjs +3 -3
  153. package/dist/worksheet.mjs.map +1 -1
  154. package/dist/writer-IyFccCRJ.mjs.map +1 -1
  155. package/dist/xml/index.d.ts +10 -10
  156. package/dist/xml/parser.d.ts +1 -1
  157. package/dist/xml/serializer.d.ts +1 -1
  158. package/dist/xml/stream-writer.d.ts +1 -1
  159. package/dist/xml.mjs +3 -3
  160. package/dist/xml.mjs.map +1 -1
  161. package/dist/zip/decompression-guard.d.ts +1 -1
  162. package/dist/zip/index.d.ts +6 -6
  163. package/dist/zip/random-access-reader.d.ts +2 -2
  164. package/dist/zip/reader.d.ts +2 -2
  165. package/dist/zip/writer.d.ts +1 -1
  166. package/package.json +4 -1
  167. package/dist/cell-BucgGwl3.mjs.map +0 -1
  168. package/dist/cell-style-DuvS_Lsg.mjs.map +0 -1
  169. package/dist/coordinate-96Ecci4d.mjs.map +0 -1
  170. package/dist/defined-names-CviWmtQg.mjs.map +0 -1
  171. package/dist/differential-DvKU8fJt.mjs.map +0 -1
  172. package/dist/drawing-BxzLuryn.mjs.map +0 -1
  173. package/dist/inference-BrI9uIY4.mjs.map +0 -1
  174. package/dist/load-MyOIjtrU.mjs.map +0 -1
  175. package/dist/manifest-Cm9K7D62.mjs.map +0 -1
  176. package/dist/parser-D3SLaOFe.mjs.map +0 -1
  177. package/dist/save-2moCT3Af.mjs.map +0 -1
  178. package/dist/serializer-BtO2TrI7.mjs.map +0 -1
  179. package/dist/stylesheet-writer-BrOw4jMY.mjs.map +0 -1
  180. package/dist/table-1P8we2gS.mjs.map +0 -1
  181. package/dist/workbook-CARZS94U.mjs.map +0 -1
  182. package/dist/worksheet-C5Ensf_j.mjs.map +0 -1
@@ -1,11 +1,11 @@
1
- export type { CellCoordinate, CellCoordinateNumeric, CellRangeBoundaries } from './coordinate';
2
- export { boundariesToRangeString, columnIndexFromLetter, columnLetterFromIndex, coordinateFromString, coordinateToTuple, formatSheetQualifiedRef, isValidCellRef, isValidColumnLetter, isValidColumnNumber, isValidRangeRef, isValidRowNumber, MAX_COL, MAX_ROW, parseSheetRange, rangeBoundaries, tupleToCoordinate, } from './coordinate';
3
- export type { ExcelEpoch } from './datetime';
4
- export { dateToExcel, durationToExcel, excelToDate, excelToDuration, fromIso8601, MAC_EPOCH_MS, toIso8601, WINDOWS_EPOCH_MS, } from './datetime';
5
- export { cssRecordToInlineStyle } from './css';
6
- export { escapeCellString, unescapeCellString } from './escape';
7
- export type { OpenXmlErrorOptions } from './exceptions';
8
- export { OpenXmlDecompressionBombError, OpenXmlError, OpenXmlInvalidWorkbookError, OpenXmlIoError, OpenXmlNotImplementedError, OpenXmlSchemaError, } from './exceptions';
9
- export type { CellDataType } from './inference';
10
- export { ERROR_CODES, inferCellType } from './inference';
11
- export { cmFromEmu, EMU_PER_CM, EMU_PER_INCH, EMU_PER_PIXEL, EMU_PER_POINT, emuFromCm, emuFromInch, emuFromPoint, emuFromPx, inchFromEmu, pixelToPoint, pointFromEmu, pointToPixel, pxFromEmu, } from './units';
1
+ export type { AbsoluteRefOptions, CellCoordinate, CellCoordinateNumeric, CellRangeBoundaries, RangeRef, } from './coordinate.js';
2
+ export { boundariesToRangeString, columnIndexFromLetter, columnLetterFromIndex, coordinateFromString, coordinateToTuple, formatSheetQualifiedRef, isValidCellRef, isValidColumnLetter, isValidColumnNumber, isValidRangeRef, isValidRowNumber, MAX_COL, MAX_ROW, parseSheetRange, rangeBoundaries, tupleToCoordinate, } from './coordinate.js';
3
+ export type { ExcelEpoch } from './datetime.js';
4
+ export { dateToExcel, durationToExcel, excelToDate, excelToDuration, fromIso8601, MAC_EPOCH_MS, toIso8601, WINDOWS_EPOCH_MS, } from './datetime.js';
5
+ export { cssRecordToInlineStyle } from './css.js';
6
+ export { escapeCellString, unescapeCellString } from './escape.js';
7
+ export type { OpenXmlErrorOptions } from './exceptions.js';
8
+ export { OpenXmlDecompressionBombError, OpenXmlError, OpenXmlInvalidWorkbookError, OpenXmlIoError, OpenXmlNotImplementedError, OpenXmlSchemaError, } from './exceptions.js';
9
+ export type { CellDataType } from './inference.js';
10
+ export { ERROR_CODES, inferCellType } from './inference.js';
11
+ export { cmFromEmu, EMU_PER_CM, EMU_PER_INCH, EMU_PER_PIXEL, EMU_PER_POINT, emuFromCm, emuFromInch, emuFromPoint, emuFromPx, inchFromEmu, pixelToPoint, pointFromEmu, pointToPixel, pxFromEmu, } from './units.js';
package/dist/utils.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import { a as OpenXmlNotImplementedError, i as OpenXmlIoError, n as OpenXmlError, o as OpenXmlSchemaError, r as OpenXmlInvalidWorkbookError, t as OpenXmlDecompressionBombError } from "./exceptions-D-CFwxgm.mjs";
2
- import { a as columnLetterFromIndex, c as formatSheetQualifiedRef, d as isValidColumnNumber, f as isValidRangeRef, g as tupleToCoordinate, h as rangeBoundaries, i as columnIndexFromLetter, l as isValidCellRef, m as parseSheetRange, n as MAX_ROW, o as coordinateFromString, p as isValidRowNumber, r as boundariesToRangeString, s as coordinateToTuple, t as MAX_COL, u as isValidColumnLetter } from "./coordinate-96Ecci4d.mjs";
3
- import { n as inferCellType, t as ERROR_CODES } from "./inference-BrI9uIY4.mjs";
2
+ import { a as columnLetterFromIndex, c as formatSheetQualifiedRef, d as isValidColumnNumber, f as isValidRangeRef, g as tupleToCoordinate, h as rangeBoundaries, i as columnIndexFromLetter, l as isValidCellRef, m as parseSheetRange, n as MAX_ROW, o as coordinateFromString, p as isValidRowNumber, r as boundariesToRangeString, s as coordinateToTuple, t as MAX_COL, u as isValidColumnLetter } from "./coordinate-Bt5Gni2I.mjs";
3
+ import { n as inferCellType, t as ERROR_CODES } from "./inference-BMvv9cUY.mjs";
4
4
  import { a as cmFromEmu, c as emuFromPoint, d as pixelToPoint, f as pointFromEmu, i as EMU_PER_POINT, l as emuFromPx, m as pxFromEmu, n as EMU_PER_INCH, o as emuFromCm, p as pointToPixel, r as EMU_PER_PIXEL, s as emuFromInch, t as EMU_PER_CM, u as inchFromEmu } from "./units-rOMQqXh2.mjs";
5
- import { i as unescapeCellString, t as escapeCellString } from "./escape-DFTE7ZJc.mjs";
5
+ import { i as unescapeCellString, t as escapeCellString } from "./escape-rnWSPpWY.mjs";
6
6
  import { a as excelToDate, c as toIso8601, i as durationToExcel, n as WINDOWS_EPOCH_MS, o as excelToDuration, r as dateToExcel, s as fromIso8601, t as MAC_EPOCH_MS } from "./datetime-B2ySVlXt.mjs";
7
7
  //#region src/utils/css.ts
8
8
  /**
@@ -23,7 +23,7 @@ export interface CalcProperties {
23
23
  forceFullCalc?: boolean;
24
24
  }
25
25
  export declare const makeCalcProperties: (opts?: CalcProperties) => CalcProperties;
26
- import type { Workbook } from './workbook';
26
+ import type { Workbook } from './workbook.js';
27
27
  /**
28
28
  * Set the recalculation mode. `'auto'` is Excel's default;
29
29
  * `'manual'` requires F9 to recompute formulas; `'autoNoTable'`
@@ -41,7 +41,14 @@ export declare const setIterativeCalc: (wb: Workbook, enable: boolean, opts?: {
41
41
  }) => void;
42
42
  /** Toggle "Recalculate workbook before saving" (workbook-level). */
43
43
  export declare const setCalcOnSave: (wb: Workbook, on: boolean) => void;
44
- /** Toggle "Recalculate workbook on load" — forces a full recalc on open. */
44
+ /**
45
+ * Toggle "Recalculate workbook on load". A calculating app (Excel,
46
+ * LibreOffice, Google Sheets) then recomputes every formula on open instead of
47
+ * trusting the cached values in the file, which is what a generated workbook
48
+ * wants when the producer could not compute a cached value for every formula,
49
+ * or is not certain the ones it wrote are current. Viewers that never
50
+ * calculate ignore the flag and keep showing only what is cached.
51
+ */
45
52
  export declare const setFullCalcOnLoad: (wb: Workbook, on: boolean) => void;
46
53
  /** Toggle "Set precision as displayed" (false = full 15-digit precision). */
47
54
  export declare const setFullPrecision: (wb: Workbook, on: boolean) => void;
@@ -14,9 +14,9 @@ export declare function makeDefinedName(opts: Partial<DefinedName> & {
14
14
  name: string;
15
15
  value: string;
16
16
  }): DefinedName;
17
- import { type CellRangeBoundaries } from '../utils/coordinate';
18
- import type { Worksheet } from '../worksheet/worksheet';
19
- import type { Workbook } from './workbook';
17
+ import { type CellRangeBoundaries } from '../utils/coordinate.js';
18
+ import type { Worksheet } from '../worksheet/worksheet.js';
19
+ import type { Workbook } from './workbook.js';
20
20
  /**
21
21
  * One parsed leg of a defined name's value. Defined-name values can be
22
22
  * comma-separated multi-range expressions (e.g. `_xlnm.Print_Titles` sets
@@ -1,24 +1,24 @@
1
- export type { CellSummary, SheetRef, SheetState, Workbook, WorkbookOverview, WorkbookSheetOverview, WorkbookStats, } from './workbook';
2
- export { addChartsheet, addWorksheet, createWorkbook, describeWorkbook, getActiveSheet, getCellAtAddress, getCellSummary, getChartsheet, getSheet, getSheetState, getWorkbookCellsByKind, getWorkbookStats, iterWorksheets, listCustomXmlParts, moveSheet, removeSheet, renameSheet, setActiveSheet, setCellAtAddress, setSheetState, sheetNames, } from './workbook';
3
- export type { DefinedName, DefinedNameTarget } from './defined-names';
4
- export { addDefinedName, getDefinedName, getDefinedNameTarget, listDefinedNames, makeDefinedName, removeDefinedName, } from './defined-names';
5
- export type { WorkbookProtection } from './protection';
6
- export { makeWorkbookProtection } from './protection';
7
- export type { SharedStringEntry, SharedStringsTable } from './shared-strings';
8
- export { addSharedString, getSharedStringAt, getSharedStringIndex, makeSharedStrings, sharedStringCount, } from './shared-strings';
9
- export type { CustomViewShowComments, CustomViewShowObjects, CustomWorkbookView, WorkbookView, WorkbookViewVisibility, } from './views';
10
- export { makeCustomWorkbookView, makeWorkbookView } from './views';
11
- export type { CalcMode, CalcProperties, RefMode } from './calc-properties';
12
- export { makeCalcProperties } from './calc-properties';
13
- export type { ShowObjectsMode, UpdateLinksMode, WorkbookProperties, } from './workbook-properties';
14
- export { makeWorkbookProperties } from './workbook-properties';
15
- export type { FileVersion } from './file-version';
16
- export { makeFileVersion } from './file-version';
17
- export type { FileSharing } from './file-sharing';
18
- export { makeFileSharing } from './file-sharing';
19
- export type { FileRecoveryProperties } from './file-recovery';
20
- export { makeFileRecoveryProperties } from './file-recovery';
21
- export type { SmartTagProperties, SmartTagShowMode, SmartTagType } from './smart-tags';
22
- export { makeSmartTagProperties, makeSmartTagType } from './smart-tags';
23
- export type { FunctionGroup, FunctionGroups } from './function-groups';
24
- export { makeFunctionGroup, makeFunctionGroups } from './function-groups';
1
+ export type { CellSummary, SheetRef, SheetState, Workbook, WorkbookOverview, WorkbookSheetOverview, WorkbookStats, } from './workbook.js';
2
+ export { addChartsheet, addWorksheet, createWorkbook, describeWorkbook, getActiveSheet, getCellAtAddress, getCellSummary, getChartsheet, getSheet, getSheetState, getWorkbookCellsByKind, getWorkbookStats, iterWorksheets, listCustomXmlParts, moveSheet, removeSheet, renameSheet, setActiveSheet, setCellAtAddress, setSheetState, sheetNames, } from './workbook.js';
3
+ export type { DefinedName, DefinedNameTarget } from './defined-names.js';
4
+ export { addDefinedName, getDefinedName, getDefinedNameTarget, listDefinedNames, makeDefinedName, removeDefinedName, } from './defined-names.js';
5
+ export type { WorkbookProtection } from './protection.js';
6
+ export { makeWorkbookProtection } from './protection.js';
7
+ export type { SharedStringEntry, SharedStringsTable } from './shared-strings.js';
8
+ export { addSharedString, getSharedStringAt, getSharedStringIndex, makeSharedStrings, sharedStringCount, } from './shared-strings.js';
9
+ export type { CustomViewShowComments, CustomViewShowObjects, CustomWorkbookView, WorkbookView, WorkbookViewVisibility, } from './views.js';
10
+ export { makeCustomWorkbookView, makeWorkbookView } from './views.js';
11
+ export type { CalcMode, CalcProperties, RefMode } from './calc-properties.js';
12
+ export { makeCalcProperties, setCalcMode, setCalcOnSave, setFullCalcOnLoad, setFullPrecision, setIterativeCalc, } from './calc-properties.js';
13
+ export type { ShowObjectsMode, UpdateLinksMode, WorkbookProperties, } from './workbook-properties.js';
14
+ export { makeWorkbookProperties } from './workbook-properties.js';
15
+ export type { FileVersion } from './file-version.js';
16
+ export { makeFileVersion } from './file-version.js';
17
+ export type { FileSharing } from './file-sharing.js';
18
+ export { makeFileSharing } from './file-sharing.js';
19
+ export type { FileRecoveryProperties } from './file-recovery.js';
20
+ export { makeFileRecoveryProperties } from './file-recovery.js';
21
+ export type { SmartTagProperties, SmartTagShowMode, SmartTagType } from './smart-tags.js';
22
+ export { makeSmartTagProperties, makeSmartTagType } from './smart-tags.js';
23
+ export type { FunctionGroup, FunctionGroups } from './function-groups.js';
24
+ export { makeFunctionGroup, makeFunctionGroups } from './function-groups.js';
@@ -21,7 +21,7 @@ export interface WorkbookProtection {
21
21
  lockRevision?: boolean;
22
22
  }
23
23
  export declare const makeWorkbookProtection: (opts?: WorkbookProtection) => WorkbookProtection;
24
- import type { Workbook } from './workbook';
24
+ import type { Workbook } from './workbook.js';
25
25
  /**
26
26
  * Lock the workbook with Excel's "Protect Workbook → Structure" default
27
27
  * (lockStructure=true). Pass `overrides` to also lock windows /
@@ -1,5 +1,5 @@
1
- import type { RichText } from '../cell/rich-text';
2
- import { type XmlNode } from '../xml/tree';
1
+ import type { RichText } from '../cell/rich-text.js';
2
+ import { type XmlNode } from '../xml/tree.js';
3
3
  /** A single SST entry: either a plain string or a rich-text run array. */
4
4
  export type SharedStringEntry = string | {
5
5
  kind: 'rich-text';
@@ -59,7 +59,7 @@ export interface CustomWorkbookView {
59
59
  showObjects?: CustomViewShowObjects;
60
60
  }
61
61
  export declare const makeCustomWorkbookView: (opts: Pick<CustomWorkbookView, "name" | "guid" | "windowWidth" | "windowHeight" | "activeSheetId"> & Partial<CustomWorkbookView>) => CustomWorkbookView;
62
- import type { Workbook } from './workbook';
62
+ import type { Workbook } from './workbook.js';
63
63
  /** Get the index of the active sheet tab (0-based) from the primary workbookView, or 0 if unset. */
64
64
  export declare const getActiveTab: (wb: Workbook) => number;
65
65
  /** Set the active sheet tab (0-based) on the primary workbookView. */
@@ -32,7 +32,7 @@ export interface WorkbookProperties {
32
32
  defaultThemeVersion?: number;
33
33
  }
34
34
  export declare const makeWorkbookProperties: (opts?: WorkbookProperties) => WorkbookProperties;
35
- import type { Workbook } from './workbook';
35
+ import type { Workbook } from './workbook.js';
36
36
  /**
37
37
  * Set the workbook-level VBA codeName ("ThisWorkbook" by default in
38
38
  * Excel; localised forms like "ЭтаКнига" round-trip too). Empty string
@@ -1,18 +1,18 @@
1
- import type { Chartsheet } from '../chartsheet/chartsheet';
2
- import { type ChartReference } from '../drawing/drawing';
3
- import type { CoreProperties } from '../packaging/core';
4
- import type { CustomProperties } from '../packaging/custom';
5
- import type { ExtendedProperties } from '../packaging/extended';
6
- import type { Stylesheet } from '../styles/stylesheet';
7
- import { type CellValue } from '../cell/cell';
8
- import type { Alignment } from '../styles/alignment';
9
- import type { Border } from '../styles/borders';
10
- import type { Fill } from '../styles/fills';
11
- import type { Font } from '../styles/fonts';
12
- import type { Protection } from '../styles/protection';
13
- import type { LegacyComment } from '../worksheet/comments';
14
- import type { Hyperlink } from '../worksheet/hyperlinks';
15
- import type { CellsByKindCounts, Worksheet } from '../worksheet/worksheet';
1
+ import type { Chartsheet } from '../chartsheet/chartsheet.js';
2
+ import { type ChartReference } from '../drawing/drawing.js';
3
+ import type { CoreProperties } from '../packaging/core.js';
4
+ import type { CustomProperties } from '../packaging/custom.js';
5
+ import type { ExtendedProperties } from '../packaging/extended.js';
6
+ import type { Stylesheet } from '../styles/stylesheet.js';
7
+ import { type CellValue } from '../cell/cell.js';
8
+ import type { Alignment } from '../styles/alignment.js';
9
+ import type { Border } from '../styles/borders.js';
10
+ import type { Fill } from '../styles/fills.js';
11
+ import type { Font } from '../styles/fonts.js';
12
+ import type { Protection } from '../styles/protection.js';
13
+ import type { LegacyComment } from '../worksheet/comments.js';
14
+ import type { Hyperlink } from '../worksheet/hyperlinks.js';
15
+ import type { CellsByKindCounts, Worksheet } from '../worksheet/worksheet.js';
16
16
  export type SheetState = 'visible' | 'hidden' | 'veryHidden';
17
17
  /**
18
18
  * Discriminated union over the two kinds of sheet a workbook can host. Both
@@ -48,7 +48,7 @@ export interface Workbook {
48
48
  /** Author display names, shared between threaded comments. */
49
49
  authors: string[];
50
50
  /** Workbook + sheet-scope defined names (named ranges, print areas etc). */
51
- definedNames: import('./defined-names').DefinedName[];
51
+ definedNames: import('./defined-names.js').DefinedName[];
52
52
  /**
53
53
  * Raw `xl/theme/theme1.xml` payload kept verbatim across read → write. The
54
54
  * theme XML is large and seldom edited by writers; we just shuttle it.
@@ -92,8 +92,8 @@ export interface Workbook {
92
92
  * `<sheets>` element, the rest after `<definedNames>`.
93
93
  */
94
94
  workbookXmlExtras?: {
95
- beforeSheets: import('../xml/tree').XmlNode[];
96
- afterSheets: import('../xml/tree').XmlNode[];
95
+ beforeSheets: import('../xml/tree.js').XmlNode[];
96
+ afterSheets: import('../xml/tree.js').XmlNode[];
97
97
  };
98
98
  /**
99
99
  * The `<workbook>` root's markup-compatibility header, as Excel wrote it:
@@ -115,32 +115,32 @@ export interface Workbook {
115
115
  * the modern hash quad or the legacy 16-bit hash. Round-tripped verbatim;
116
116
  * password hashing helpers come later.
117
117
  */
118
- workbookProtection?: import('./protection').WorkbookProtection;
118
+ workbookProtection?: import('./protection.js').WorkbookProtection;
119
119
  /**
120
120
  * `<bookViews>` — the workbook's window/tab-strip presets. Most workbooks
121
121
  * have a single entry whose `firstSheet` / `activeTab` drive the tab the user
122
122
  * sees first. Stored as an array because Excel allows multiple views (rare).
123
123
  */
124
- bookViews?: import('./views').WorkbookView[];
124
+ bookViews?: import('./views.js').WorkbookView[];
125
125
  /**
126
126
  * `<customWorkbookViews>` — saved per-user view presets used by the
127
127
  * deprecated "Shared Workbook" feature. Each entry carries its own window
128
128
  * position, active sheet, and visibility toggles.
129
129
  */
130
- customWorkbookViews?: import('./views').CustomWorkbookView[];
130
+ customWorkbookViews?: import('./views.js').CustomWorkbookView[];
131
131
  /** `<calcPr>` — calculation engine settings (calcMode / iterate / fullPrecision etc.). */
132
- calcProperties?: import('./calc-properties').CalcProperties;
132
+ calcProperties?: import('./calc-properties.js').CalcProperties;
133
133
  /** `<fileVersion>` — Office app/version metadata Excel records on save. */
134
- fileVersion?: import('./file-version').FileVersion;
134
+ fileVersion?: import('./file-version.js').FileVersion;
135
135
  /** `<fileSharing>` — read-only-recommended toggle + write-protection password. */
136
- fileSharing?: import('./file-sharing').FileSharing;
136
+ fileSharing?: import('./file-sharing.js').FileSharing;
137
137
  /**
138
138
  * `<oleSize ref="…">` — bounding range Excel uses when the workbook is
139
139
  * embedded as an OLE object inside another Office document.
140
140
  */
141
141
  oleSize?: string;
142
142
  /** `<fileRecoveryPr>` — autoRecover-style flags Excel writes after a recovery save. */
143
- fileRecoveryPr?: import('./file-recovery').FileRecoveryProperties;
143
+ fileRecoveryPr?: import('./file-recovery.js').FileRecoveryProperties;
144
144
  /**
145
145
  * `<pivotCaches>` — links from workbook root to xl/pivotCache parts. The
146
146
  * underlying parts survive via the passthrough archive; this typed array
@@ -161,17 +161,17 @@ export interface Workbook {
161
161
  rId: string;
162
162
  }>;
163
163
  /** `<smartTagPr>` — Excel 2003 smart-tag persistence flags. */
164
- smartTagPr?: import('./smart-tags').SmartTagProperties;
164
+ smartTagPr?: import('./smart-tags.js').SmartTagProperties;
165
165
  /** `<smartTagTypes>` — Excel 2003 smart-tag type registrations. */
166
- smartTagTypes?: ReadonlyArray<import('./smart-tags').SmartTagType>;
166
+ smartTagTypes?: ReadonlyArray<import('./smart-tags.js').SmartTagType>;
167
167
  /** `<functionGroups>` — built-in + user-defined XLL function groups. */
168
- functionGroups?: import('./function-groups').FunctionGroups;
168
+ functionGroups?: import('./function-groups.js').FunctionGroups;
169
169
  /**
170
170
  * `<workbookPr>` — VBA codeName, defaultThemeVersion, link-update prompt
171
171
  * mode, etc. `date1904` is mirrored here for completeness but the canonical
172
172
  * source remains `wb.date1904`.
173
173
  */
174
- workbookProperties?: import('./workbook-properties').WorkbookProperties;
174
+ workbookProperties?: import('./workbook-properties.js').WorkbookProperties;
175
175
  /**
176
176
  * Workbook-level rels that don't match a modeled type. Re-emitted with their
177
177
  * original Id so captured `<pivotCaches r:id="…"/>` etc. still resolve after
@@ -407,12 +407,12 @@ export declare function getWorkbookCellsByKind(wb: Workbook): CellsByKindCounts;
407
407
  * `undefined` when the cell isn't materialised. Throws on malformed addresses,
408
408
  * missing sheets, or range inputs.
409
409
  */
410
- export declare function getCellAtAddress(wb: Workbook, address: string): import('../cell/cell').Cell | undefined;
410
+ export declare function getCellAtAddress(wb: Workbook, address: string): import('../cell/cell.js').Cell | undefined;
411
411
  /**
412
412
  * Set a single cell by sheet-qualified A1 address. Throws on malformed
413
413
  * addresses, missing sheets, or range inputs.
414
414
  */
415
- export declare function setCellAtAddress(wb: Workbook, address: string, value: CellValue): import('../cell/cell').Cell;
415
+ export declare function setCellAtAddress(wb: Workbook, address: string, value: CellValue): import('../cell/cell.js').Cell;
416
416
  /**
417
417
  * True iff every Worksheet in the workbook is empty (per {@link
418
418
  * isWorksheetEmpty}). Chartsheets carry no cells so they never affect the
@@ -518,7 +518,7 @@ export declare function iterWorksheetsByState(wb: Workbook, state: SheetState):
518
518
  */
519
519
  export declare function iterAllCells(wb: Workbook): IterableIterator<{
520
520
  sheet: Worksheet;
521
- cell: import('../cell/cell').Cell;
521
+ cell: import('../cell/cell.js').Cell;
522
522
  }>;
523
523
  /**
524
524
  * Collect every merged range across every worksheet. Each entry carries the
@@ -528,7 +528,7 @@ export declare function iterAllCells(wb: Workbook): IterableIterator<{
528
528
  */
529
529
  export declare function getAllMergedRanges(wb: Workbook): ReadonlyArray<{
530
530
  sheet: Worksheet;
531
- range: import('../worksheet/cell-range').CellRange;
531
+ range: import('../worksheet/cell-range.js').CellRange;
532
532
  }>;
533
533
  /**
534
534
  * Collect every hyperlink across every worksheet. Each entry pairs the
@@ -536,7 +536,7 @@ export declare function getAllMergedRanges(wb: Workbook): ReadonlyArray<{
536
536
  */
537
537
  export declare function getAllHyperlinks(wb: Workbook): ReadonlyArray<{
538
538
  sheet: Worksheet;
539
- hyperlink: import('../worksheet/hyperlinks').Hyperlink;
539
+ hyperlink: import('../worksheet/hyperlinks.js').Hyperlink;
540
540
  }>;
541
541
  /**
542
542
  * Collect every legacy comment across every worksheet. Each entry pairs the
@@ -544,7 +544,7 @@ export declare function getAllHyperlinks(wb: Workbook): ReadonlyArray<{
544
544
  */
545
545
  export declare function getAllComments(wb: Workbook): ReadonlyArray<{
546
546
  sheet: Worksheet;
547
- comment: import('../worksheet/comments').LegacyComment;
547
+ comment: import('../worksheet/comments.js').LegacyComment;
548
548
  }>;
549
549
  /**
550
550
  * Collect every Excel table across every worksheet. Each entry pairs the
@@ -553,7 +553,7 @@ export declare function getAllComments(wb: Workbook): ReadonlyArray<{
553
553
  */
554
554
  export declare function getAllTables(wb: Workbook): ReadonlyArray<{
555
555
  sheet: Worksheet;
556
- table: import('../worksheet/table').TableDefinition;
556
+ table: import('../worksheet/table.js').TableDefinition;
557
557
  }>;
558
558
  /**
559
559
  * Locate an Excel table by `displayName` across the whole workbook. Excel
@@ -562,7 +562,7 @@ export declare function getAllTables(wb: Workbook): ReadonlyArray<{
562
562
  */
563
563
  export declare function findTable(wb: Workbook, displayName: string): {
564
564
  sheet: Worksheet;
565
- table: import('../worksheet/table').TableDefinition;
565
+ table: import('../worksheet/table.js').TableDefinition;
566
566
  } | undefined;
567
567
  /**
568
568
  * First cell across the workbook satisfying `predicate`. Walks every worksheet
@@ -570,17 +570,17 @@ export declare function findTable(wb: Workbook, displayName: string): {
570
570
  * {@link iterAllCells}). Returns `{ sheet, cell }` for the match, or
571
571
  * `undefined` when nothing matches.
572
572
  */
573
- export declare function findCellInWorkbook(wb: Workbook, predicate: (cell: import('../cell/cell').Cell, sheet: Worksheet) => boolean): {
573
+ export declare function findCellInWorkbook(wb: Workbook, predicate: (cell: import('../cell/cell.js').Cell, sheet: Worksheet) => boolean): {
574
574
  sheet: Worksheet;
575
- cell: import('../cell/cell').Cell;
575
+ cell: import('../cell/cell.js').Cell;
576
576
  } | undefined;
577
577
  /**
578
578
  * Every cell across the workbook satisfying `predicate`. Same iteration order
579
579
  * as {@link iterAllCells}. Returns an array of `{ sheet, cell }` matches.
580
580
  */
581
- export declare function findCellsInWorkbook(wb: Workbook, predicate: (cell: import('../cell/cell').Cell, sheet: Worksheet) => boolean): ReadonlyArray<{
581
+ export declare function findCellsInWorkbook(wb: Workbook, predicate: (cell: import('../cell/cell.js').Cell, sheet: Worksheet) => boolean): ReadonlyArray<{
582
582
  sheet: Worksheet;
583
- cell: import('../cell/cell').Cell;
583
+ cell: import('../cell/cell.js').Cell;
584
584
  }>;
585
585
  /**
586
586
  * Workbook-wide find-and-replace. Same matching rule as `replaceCellValues` but
@@ -589,14 +589,14 @@ export declare function findCellsInWorkbook(wb: Workbook, predicate: (cell: impo
589
589
  * sheet) → boolean`. `replacement` is the new `CellValue`. Returns the count of
590
590
  * cells changed across all sheets.
591
591
  */
592
- export declare function replaceCellValuesInWorkbook(wb: Workbook, search: string | ((value: import('../cell/cell').CellValue, cell: import('../cell/cell').Cell, sheet: Worksheet) => boolean), replacement: import('../cell/cell').CellValue): number;
592
+ export declare function replaceCellValuesInWorkbook(wb: Workbook, search: string | ((value: import('../cell/cell.js').CellValue, cell: import('../cell/cell.js').Cell, sheet: Worksheet) => boolean), replacement: import('../cell/cell.js').CellValue): number;
593
593
  /**
594
594
  * Collect every data-validation block across every worksheet. Each entry pairs
595
595
  * the validation with a back-reference to the owning sheet, in tab-strip order.
596
596
  */
597
597
  export declare function getAllDataValidations(wb: Workbook): ReadonlyArray<{
598
598
  sheet: Worksheet;
599
- validation: import('../worksheet/data-validations').DataValidation;
599
+ validation: import('../worksheet/data-validations.js').DataValidation;
600
600
  }>;
601
601
  /**
602
602
  * Collect every image (picture) DrawingItem across every worksheet, each paired
@@ -604,7 +604,7 @@ export declare function getAllDataValidations(wb: Workbook): ReadonlyArray<{
604
604
  */
605
605
  export declare function getAllImages(wb: Workbook): ReadonlyArray<{
606
606
  sheet: Worksheet;
607
- item: import('../drawing/drawing').DrawingItem;
607
+ item: import('../drawing/drawing.js').DrawingItem;
608
608
  }>;
609
609
  /**
610
610
  * Collect every chart DrawingItem across every worksheet, each paired with its
@@ -612,7 +612,7 @@ export declare function getAllImages(wb: Workbook): ReadonlyArray<{
612
612
  */
613
613
  export declare function getAllCharts(wb: Workbook): ReadonlyArray<{
614
614
  sheet: Worksheet;
615
- item: import('../drawing/drawing').DrawingItem;
615
+ item: import('../drawing/drawing.js').DrawingItem;
616
616
  }>;
617
617
  /**
618
618
  * Collect every conditional-formatting block across every worksheet. Each entry
@@ -621,7 +621,7 @@ export declare function getAllCharts(wb: Workbook): ReadonlyArray<{
621
621
  */
622
622
  export declare function getAllConditionalFormatting(wb: Workbook): ReadonlyArray<{
623
623
  sheet: Worksheet;
624
- formatting: import('../worksheet/conditional-formatting').ConditionalFormatting;
624
+ formatting: import('../worksheet/conditional-formatting.js').ConditionalFormatting;
625
625
  }>;
626
626
  /**
627
627
  * Iterate over every Chartsheet in the workbook. Yields in tab-strip order,
@@ -1,13 +1,13 @@
1
1
  import { o as OpenXmlSchemaError } from "./exceptions-D-CFwxgm.mjs";
2
- import { m as parseSheetRange, s as coordinateToTuple } from "./coordinate-96Ecci4d.mjs";
3
- import { h as isFormulaValue } from "./cell-BucgGwl3.mjs";
2
+ import { m as parseSheetRange, s as coordinateToTuple } from "./coordinate-Bt5Gni2I.mjs";
3
+ import { h as isFormulaValue } from "./cell-Df3cKRIl.mjs";
4
4
  import { t as makeChartsheet } from "./chartsheet-C3-tqkPy.mjs";
5
- import { a as makeChartDrawingItem, d as makeAbsoluteAnchor, o as makeDrawing } from "./drawing-BxzLuryn.mjs";
6
- import { i as unescapeCellString, n as escapeXmlAttr, r as escapeXmlText, t as escapeCellString } from "./escape-DFTE7ZJc.mjs";
5
+ import { a as makeChartDrawingItem, d as makeAbsoluteAnchor, o as makeDrawing } from "./drawing-ZJ3h4VHD.mjs";
6
+ import { i as unescapeCellString, n as escapeXmlAttr, r as escapeXmlText, t as escapeCellString } from "./escape-rnWSPpWY.mjs";
7
7
  import { a as findChildren, ft as SHEET_MAIN_NS, i as findChild, jt as qname } from "./tree-BX-sRRVp.mjs";
8
- import { t as parseXml } from "./parser-D3SLaOFe.mjs";
9
- import { D as getCellHyperlink, E as getCellComment, L as getMergedRangeAt, _ as countCellsByKind, _n as colorToHex, at as makeWorksheet, dn as rangeToString, in as multiCellRangeContainsCell, ln as rangeContainsCell, sn as parseRange, u as classifyCellValue, w as getCell, xt as setCellByCoord } from "./worksheet-C5Ensf_j.mjs";
10
- import { Zt as stableStringify, _ as getCellNumberFormat, ft as makeStylesheet, g as getCellFont, h as getCellFill, m as getCellBorder, p as getCellAlignment, v as getCellProtection } from "./cell-style-DuvS_Lsg.mjs";
8
+ import { t as parseXml } from "./parser-By6RWZVW.mjs";
9
+ import { D as getCellComment, O as getCellHyperlink, R as getMergedRangeAt, St as setCellByCoord, T as getCell, _ as countCellsByKind, an as multiCellRangeContainsCell, cn as parseRange, fn as rangeToString, ot as makeWorksheet, u as classifyCellValue, un as rangeContainsCell, vn as colorToHex } from "./worksheet-4xW-i8j9.mjs";
10
+ import { _ as getCellNumberFormat, en as stableStringify, g as getCellFont, h as getCellFill, ht as makeStylesheet, m as getCellBorder, p as getCellAlignment, v as getCellProtection } from "./cell-style-BFmJOmcx.mjs";
11
11
  //#region src/workbook/shared-strings.ts
12
12
  const SST_TAG = `{${SHEET_MAIN_NS}}sst`;
13
13
  const SI_TAG = `{${SHEET_MAIN_NS}}si`;
@@ -658,4 +658,4 @@ function listCustomXmlParts(wb) {
658
658
  //#endregion
659
659
  export { sharedStringCount as A, addSharedRichText as C, makeSharedStrings as D, getSharedStringIndex as E, parseRichString as O, validateSheetTitle as S, getSharedStringAt as T, renameSheet as _, getActiveSheet as a, setSheetState as b, getChartsheet as c, getWorkbookCellsByKind as d, getWorkbookStats as f, removeSheet as g, moveSheet as h, describeWorkbook as i, sharedStringsToBytes as j, parseSharedStringsXml as k, getSheet as l, listCustomXmlParts as m, addWorksheet as n, getCellAtAddress as o, iterWorksheets as p, createWorkbook as r, getCellSummary as s, addChartsheet as t, getSheetState as u, setActiveSheet as v, addSharedString as w, sheetNames as x, setCellAtAddress as y };
660
660
 
661
- //# sourceMappingURL=workbook-CARZS94U.mjs.map
661
+ //# sourceMappingURL=workbook-B15-T4cs.mjs.map