@sheetxl/io-xlsx 0.8.0-beta.2 → 0.8.0-beta.20

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 (217) hide show
  1. package/LICENSE.md +8 -7
  2. package/browser/esm/Bw35-W8cnzxxvqQy.mjs +104 -0
  3. package/browser/esm/{CMHb6pUUmsCP9r_9.mjs → C16bEh6IrUpJONhS.mjs} +3 -3
  4. package/browser/esm/CPK1-z95jtLOfCXG.mjs +2474 -0
  5. package/browser/esm/CSOuRlSN9bhykqDr.mjs +4627 -0
  6. package/browser/esm/{DhqYgh9G2vLn7mIE.mjs → D2872f7aTugYxhht.mjs} +3 -3
  7. package/browser/esm/D7ogsrtXfjU5NW7r.mjs +10312 -0
  8. package/browser/esm/D8CQKL3Y3CMFOPqD.mjs +7007 -0
  9. package/browser/esm/{CMzkLUwbgA73RvCb.mjs → DpPFQ7-tBwVyjvWr.mjs} +3 -3
  10. package/browser/esm/{IZf0hIeLYj3T0Xvu.mjs → PgUWs0pPSCSFYJtU.mjs} +194 -144
  11. package/browser/esm/RFSuXvJ9sgsaA2LC.mjs +2433 -0
  12. package/browser/esm/{_UDbQq5-pHbU1f82.mjs → S4Uq85YdUb6O5Pz0.mjs} +2 -2
  13. package/browser/esm/index.mjs +3 -4
  14. package/licenses/dependencies.txt +2 -2
  15. package/node/esm/BOAucs-qLpjtUOcZ.mjs +6957 -0
  16. package/node/esm/{CY-pSutJLHskZfXZ.mjs → BSHqfcsR9hY-JB30.mjs} +2 -2
  17. package/node/esm/{CB1ijGbhl-e2l6Mm.mjs → C6eSWtTkyDQKbQdT.mjs} +3 -3
  18. package/node/esm/{Bi_kZVtZams7taqa.mjs → CPhiu1T7tl-leKh2.mjs} +3 -3
  19. package/node/esm/D2vDZOgLcv-YiWnB.mjs +4741 -0
  20. package/node/esm/DFw0ibBUmPyd-wey.mjs +2479 -0
  21. package/node/esm/DGuQIj077oygCTGu.mjs +2562 -0
  22. package/node/esm/Qn2Bv4QG3mOLiJHh.mjs +7269 -0
  23. package/node/esm/index.mjs +65 -28
  24. package/package.json +8 -9
  25. package/types/src/AutoFilterRules.d.ts +85 -22
  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 +30 -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/CustGeomUtils.d.ts +7 -0
  80. package/types/src/reader/dom/DOMTransformer.d.ts +2 -2
  81. package/types/src/reader/domVisitors/AppPropertiesVisitor.d.ts +13 -1
  82. package/types/src/reader/domVisitors/AutoFilterVisitor.d.ts +8 -3
  83. package/types/src/reader/domVisitors/ColorContainerVisitor.d.ts +15 -2
  84. package/types/src/reader/domVisitors/CommentVisitor.d.ts +7 -2
  85. package/types/src/reader/domVisitors/DrawingCxnSpVisitor.d.ts +1 -0
  86. package/types/src/reader/domVisitors/DrawingElementVisitor.d.ts +34 -1
  87. package/types/src/reader/domVisitors/DrawingGraphicFrameVisitor.d.ts +9 -0
  88. package/types/src/reader/domVisitors/DrawingGrpSpVisitor.d.ts +14 -2
  89. package/types/src/reader/domVisitors/DrawingPicVisitor.d.ts +30 -2
  90. package/types/src/reader/domVisitors/DrawingSpVisitor.d.ts +20 -1
  91. package/types/src/reader/domVisitors/DrawingVisitor.d.ts +10 -0
  92. package/types/src/reader/domVisitors/ExternalLinkVisitor.d.ts +1 -11
  93. package/types/src/reader/domVisitors/FeaturePropertyBagVisitor.d.ts +18 -0
  94. package/types/src/reader/domVisitors/FmtSchemeVisitor.d.ts +0 -11
  95. package/types/src/reader/domVisitors/FontSchemeVisitor.d.ts +3 -2
  96. package/types/src/reader/domVisitors/FormControlPrVisitor.d.ts +9 -0
  97. package/types/src/reader/domVisitors/ObjectDefaultsVisitor.d.ts +11 -0
  98. package/types/src/reader/domVisitors/ShapeTextVisitor.d.ts +44 -0
  99. package/types/src/reader/domVisitors/SheetColorContainerVisitor.d.ts +2 -2
  100. package/types/src/reader/domVisitors/SheetStyleVisitor.d.ts +26 -5
  101. package/types/src/reader/domVisitors/SlicerCacheDefinitionVisitor.d.ts +11 -2
  102. package/types/src/reader/domVisitors/SlicersVisitor.d.ts +9 -3
  103. package/types/src/reader/domVisitors/SortStateVisitor.d.ts +2 -2
  104. package/types/src/reader/domVisitors/TextPropertiesVisitor.d.ts +13 -1
  105. package/types/src/reader/domVisitors/ThreadedCommentVisitor.d.ts +9 -0
  106. package/types/src/reader/domVisitors/ThreadedCommentsVisitor.d.ts +2 -2
  107. package/types/src/reader/domVisitors/TimelinesVisitor.d.ts +13 -0
  108. package/types/src/reader/domVisitors/WorkbookVisitor.d.ts +0 -9
  109. package/types/src/reader/domVisitors/_Dxfs.d.ts +10 -0
  110. package/types/src/reader/domVisitors/index.d.ts +10 -36
  111. package/types/src/reader/saxVisitors/ContentTypesVisitor.d.ts +1 -0
  112. package/types/src/reader/saxVisitors/SharedStringsVisitor.d.ts +31 -6
  113. package/types/src/reader/saxVisitors/WorksheetVisitor.d.ts +26 -8
  114. package/types/src/richValue/ErrorRichValueHandler.d.ts +22 -0
  115. package/types/src/richValue/IRichValueHandler.d.ts +109 -0
  116. package/types/src/richValue/LocalImageRichValueHandler.d.ts +18 -0
  117. package/types/src/richValue/RichDataParts.d.ts +69 -0
  118. package/types/src/richValue/RichRecordWriter.d.ts +61 -0
  119. package/types/src/richValue/RichValueHandlers.d.ts +25 -0
  120. package/types/src/richValue/RichValueResolver.d.ts +54 -0
  121. package/types/src/richValue/WebImageRichValueHandler.d.ts +37 -0
  122. package/types/src/richValue/index.d.ts +7 -0
  123. package/types/src/utils/DrawingMLText.d.ts +39 -0
  124. package/types/src/utils/FormControls.d.ts +170 -0
  125. package/types/src/utils/SharedNames.d.ts +13 -0
  126. package/types/src/utils/SpreadsheetFont.d.ts +38 -0
  127. package/types/src/utils/VmlNoteShapes.d.ts +88 -35
  128. package/types/src/utils/VmlNoteStyle.d.ts +25 -0
  129. package/types/src/utils/VmlPrefixes.d.ts +24 -0
  130. package/types/src/vba/VBAProject.d.ts +0 -19
  131. package/types/src/writer/EvaluationSheet.d.ts +5 -0
  132. package/types/src/writer/builder/Emitter.d.ts +5 -0
  133. package/types/src/writer/builder/OpcXmlUtils.d.ts +0 -8
  134. package/types/src/writer/builder/PackageBuilder.d.ts +4 -41
  135. package/types/src/writer/builder/Types.d.ts +28 -28
  136. package/types/src/writer/emitters/CommentsEmitter.d.ts +10 -4
  137. package/types/src/writer/emitters/DrawingEmitter.d.ts +2 -2
  138. package/types/src/writer/emitters/ExternalLinkEmitter.d.ts +0 -11
  139. package/types/src/writer/emitters/FeaturePropertyBagEmitter.d.ts +8 -0
  140. package/types/src/writer/emitters/LegacyDrawingEmitter.d.ts +4 -4
  141. package/types/src/writer/emitters/PivotTableEmitter.d.ts +30 -1
  142. package/types/src/writer/emitters/PropsCoreEmitter.d.ts +7 -2
  143. package/types/src/writer/emitters/PropsCustomEmitter.d.ts +15 -0
  144. package/types/src/writer/emitters/RichValuePartsEmitters.d.ts +36 -0
  145. package/types/src/writer/emitters/RichValueRelEmitter.d.ts +12 -0
  146. package/types/src/writer/emitters/RichValueStructureEmitter.d.ts +4 -3
  147. package/types/src/writer/emitters/RichValueTypesEmitter.d.ts +3 -2
  148. package/types/src/writer/emitters/RichValueWebImageEmitter.d.ts +24 -0
  149. package/types/src/writer/emitters/SharedStringsEmitter.d.ts +6 -3
  150. package/types/src/writer/emitters/SlicerEmitter.d.ts +132 -0
  151. package/types/src/writer/emitters/StylesEmitter.d.ts +35 -2
  152. package/types/src/writer/emitters/TableEmitter.d.ts +14 -0
  153. package/types/src/writer/emitters/ThreadedCommentsEmitter.d.ts +7 -1
  154. package/types/src/writer/emitters/WorkbookEmitter.d.ts +24 -2
  155. package/types/src/writer/emitters/WorksheetEmitter.d.ts +4 -3
  156. package/types/src/writer/utils/AutoFilter.d.ts +3 -3
  157. package/types/src/writer/utils/CellControlComplements.d.ts +29 -0
  158. package/types/src/writer/utils/CustGeomUtils.d.ts +5 -0
  159. package/types/src/writer/utils/DateSystem.d.ts +6 -0
  160. package/types/src/writer/utils/DefaultRows.d.ts +22 -0
  161. package/types/src/writer/utils/DrawMLUtils.d.ts +42 -3
  162. package/types/src/writer/utils/DummyFunction.d.ts +0 -25
  163. package/types/src/writer/utils/DxfCollector.d.ts +14 -11
  164. package/types/src/writer/utils/PrstGeomUtils.d.ts +6 -0
  165. package/types/src/writer/utils/RichValueCollector.d.ts +81 -129
  166. package/types/src/writer/utils/SheetStyleLayout.d.ts +86 -0
  167. package/types/src/writer/utils/TextUtils.d.ts +26 -2
  168. package/types/src/writer/utils/UnsupportedFunctions.d.ts +2 -2
  169. package/types/src/writer/utils/XfVariants.d.ts +61 -0
  170. package/browser/cjs/B6sirGz6w-Bm7Ofo.cjs +0 -1
  171. package/browser/cjs/B7_pDFYCVzt-3hUs.cjs +0 -1
  172. package/browser/cjs/BzOEBR0jaxXg9wvt.cjs +0 -5
  173. package/browser/cjs/C8oC1tPbhgR0Dqtx.cjs +0 -2
  174. package/browser/cjs/CIpMN7SDVREKQUQE.cjs +0 -6
  175. package/browser/cjs/Ca-xJDjg5bOpUPXX.cjs +0 -1
  176. package/browser/cjs/D3EWCPfCu-qMOIGd.cjs +0 -1
  177. package/browser/cjs/DULsYP_GcPGLVYSE.cjs +0 -11
  178. package/browser/cjs/DtBN3UOzNJjYBwJ6.cjs +0 -1
  179. package/browser/cjs/index.cjs +0 -1
  180. package/browser/cjs/sNZR19Wk-XQ2xZ9E.cjs +0 -1
  181. package/browser/cjs/xQ6-wbTw5UzZUM1Y.cjs +0 -1
  182. package/browser/esm/B9q618XELV7uWJsA.mjs +0 -67
  183. package/browser/esm/BwbMurFOptAFs7gC.mjs +0 -5214
  184. package/browser/esm/D75_rfogFUfXADKc.mjs +0 -3324
  185. package/browser/esm/DfuBawaydlvgZMR-.mjs +0 -4428
  186. package/browser/esm/DoMlKUCnMSlR2qX5.mjs +0 -159
  187. package/browser/esm/DtpWa7tZahylJ3HS.mjs +0 -2310
  188. package/node/esm/BD03jrMQ_UKA196-.mjs +0 -4535
  189. package/node/esm/BxHvzSROx_N_7nJH.mjs +0 -2356
  190. package/node/esm/CO1M1H1N6fB422K-.mjs +0 -2959
  191. package/node/esm/CWpezSa6TERGEv-B.mjs +0 -3410
  192. package/node/esm/Dezt2uIDqlxjiuk5.mjs +0 -170
  193. package/types/src/legacyChart/OOXMLMappings.d.ts +0 -8
  194. package/types/src/legacyChart/OOXMLUtils.d.ts +0 -78
  195. package/types/src/legacyChart/ToOOXMLConverter.d.ts +0 -30
  196. package/types/src/reader/domVisitors/AxisVisitor.d.ts +0 -12
  197. package/types/src/reader/domVisitors/BarChartTypeVisitor.d.ts +0 -6
  198. package/types/src/reader/domVisitors/ChartSpaceVisitor.d.ts +0 -6
  199. package/types/src/reader/domVisitors/ChartTypeVisitor.d.ts +0 -7
  200. package/types/src/reader/domVisitors/ChartVisitor.d.ts +0 -7
  201. package/types/src/reader/domVisitors/DataLabelsVisitor.d.ts +0 -8
  202. package/types/src/reader/domVisitors/DataPointVisitor.d.ts +0 -6
  203. package/types/src/reader/domVisitors/HyperlinkVisitor.d.ts +0 -6
  204. package/types/src/reader/domVisitors/LayoutVisitor.d.ts +0 -5
  205. package/types/src/reader/domVisitors/LegendEntryVisitor.d.ts +0 -5
  206. package/types/src/reader/domVisitors/LegendVisitor.d.ts +0 -5
  207. package/types/src/reader/domVisitors/MarkerVisitor.d.ts +0 -5
  208. package/types/src/reader/domVisitors/NegativeShapeVisitor.d.ts +0 -6
  209. package/types/src/reader/domVisitors/PlotAreaVisitor.d.ts +0 -5
  210. package/types/src/reader/domVisitors/RichValueDataVisitor.d.ts +0 -7
  211. package/types/src/reader/domVisitors/RichValueStructureVisitor.d.ts +0 -6
  212. package/types/src/reader/domVisitors/SeriesVisitor.d.ts +0 -8
  213. package/types/src/reader/domVisitors/TitleVisitor.d.ts +0 -9
  214. package/types/src/writer/emitters/ChartColorsEmitter.d.ts +0 -7
  215. package/types/src/writer/emitters/ChartEmitter.d.ts +0 -14
  216. package/types/src/writer/emitters/ChartStyleEmitter.d.ts +0 -46
  217. package/types/src/writer/utils/HiddenFormulaXfs.d.ts +0 -28
@@ -1,170 +0,0 @@
1
- /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.2
3
- *
4
- * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- import { t } from "./CO1M1H1N6fB422K-.mjs";
8
- import { CommonUtils as e } from "@sheetxl/utils";
9
- import { AddressUtils as n, IColor as s, IStyle as r } from "@sheetxl/sdk";
10
- var o = Object.defineProperty, a = (t, e) => {
11
- let n = {};
12
- for (var s in t) o(n, s, {
13
- get: t[s],
14
- enumerable: !0
15
- });
16
- return e || o(n, Symbol.toStringTag, { value: "Module" }), n;
17
- }, l = (t, e, n) => {
18
- const s = `Unable to read '${t}': ${e?.message ?? e}`;
19
- n?.onWarning ? n.onWarning(s, t) : console.warn(s);
20
- }, c = (t, e, n, s = null) => {
21
- if (!t) return null;
22
- let r = t;
23
- r.startsWith("/") && (r = r.substring(1));
24
- let o = s?.parsedRefs?.get(t);
25
- if (void 0 !== o) return o;
26
- const a = e(r);
27
- if (!a) return null;
28
- let c = a.content;
29
- try {
30
- n && (c = n(c, t));
31
- } catch (e) {
32
- l(t, e, s);
33
- }
34
- return s?.parsedRefs?.set(t, c), c;
35
- }, i = (t, n, s, r, o = null) => {
36
- if (!t) return null;
37
- let a = t;
38
- a.startsWith("/") && (a = a.substring(1));
39
- let c = o?.parsedRefs?.get(t);
40
- if (void 0 !== c) return c;
41
- const i = n(a);
42
- if (!i) return null;
43
- const u = i.content;
44
- try {
45
- const n = new TextDecoder().decode(u), a = s.parseFromString(n, "text/xml"), l = r.transform(a, t, o ?? e.EmptyObject);
46
- return o?.parsedRefs?.set(t, l), l;
47
- } catch (e) {
48
- l(t, e, o);
49
- }
50
- return null;
51
- }, u = (t, e, n, s, r = null) => {
52
- if (!t) return null;
53
- const o = i(t, e, n, s, r);
54
- if (!o) return null;
55
- const a = /* @__PURE__ */ new Map(), l = Object.keys(o), c = l.length;
56
- for (let t = 0; t < c; t++) {
57
- const e = l[t], n = o[e];
58
- a.set(e, n);
59
- }
60
- return a;
61
- }, f = (t, e, n, s, r, o = null) => {
62
- const a = /* @__PURE__ */ new Map();
63
- let l = e[t];
64
- const c = l ? l.length : 0;
65
- for (let t = 0; t < c; t++) {
66
- const e = l[t];
67
- if (!e) continue;
68
- let c = e;
69
- c.startsWith("/") && (c = c.substring(1));
70
- const u = i(c, n, s, r, o);
71
- a.set(c, u);
72
- }
73
- return a;
74
- }, d = (t) => {
75
- const e = t.split(/\/+/);
76
- return e.reduce((t, e, n) => ("." === e ? t.splice(n, 1) : ".." === e && t.splice(n - 1, 2), t), e).join("/");
77
- }, p = Object.freeze([
78
- "lt1",
79
- "dk1",
80
- "lt2",
81
- "dk2",
82
- "accent1",
83
- "accent2",
84
- "accent3",
85
- "accent4",
86
- "accent5",
87
- "accent6",
88
- "hlink",
89
- "folHlink"
90
- ]), m = (t, e = "auto") => {
91
- let n;
92
- const r = t("auto");
93
- void 0 === r || "1" !== r && "true" !== r || (n = e);
94
- const o = t("indexed");
95
- o && (n = "64" === o ? "auto" : `index${o}`);
96
- const a = t("rgb");
97
- a && (n = a.toLowerCase(), 8 !== a.length || a.startsWith("FF") || (n = "FF" + a.substring(2, a.length)));
98
- const l = t("theme");
99
- l && (n = p[Number(l)]);
100
- let c = t("tint");
101
- if (c && (n += ` ${s.AdjustmentType.ETint} ${parseFloat(c)}`), n) return n;
102
- }, h = (t) => t ? t.replace(/^\{([\s\S]+)\}$/, "$1") : t, g = a({
103
- EMU_PER_PIXEL: () => b,
104
- EMU_PER_POINT: () => y,
105
- fixedPointToDouble: () => x,
106
- parseAngle: () => A,
107
- parseAsBoolean: () => P,
108
- parsePercentage: () => F,
109
- toPixels: () => v,
110
- toPoints: () => w
111
- }), y = 12700, b = 9525, w = (t) => t ? e.roundAccurately(parseFloat(t) / y, 4) : null, v = (t) => t ? e.roundAccurately(parseFloat(t) / b, 1) : null, x = (t) => (t >> 16) + (65535 & t) / 65536, F = (t) => parseFloat(t) / 1e3, A = (t) => parseFloat(t) / 6e4, P = (t) => "true" === t || "1" === t, S = "hiddenXfs", j = (t) => (Array.isArray(t) ? t[1] : t?.v)?.s, k = (e) => {
112
- if (!e || 0 === e.length) return !1;
113
- const s = n.refsToRuns(e, !0);
114
- let r = 0;
115
- for (const t of s) {
116
- if (t.min > r || void 0 === t.value?.s) return !1;
117
- r = Math.max(r, t.max + 1);
118
- }
119
- return r > t;
120
- }, E = (t, e) => {
121
- t.protection = {
122
- ...t.protection,
123
- showFormulas: e
124
- };
125
- }, R = (t, e) => {
126
- if (!e || 0 === e.size) return;
127
- const n = t.styles;
128
- if (!n) return;
129
- const s = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set();
130
- for (const n of t.sheets ?? []) {
131
- const t = n?.sheet;
132
- if (!t) continue;
133
- const r = /* @__PURE__ */ new Set();
134
- k(t.cols) || r.add(0);
135
- for (const e of t.directStyles ?? []) r.add(Array.isArray(e) ? e[1] : e.v);
136
- for (const e of t.rows ?? []) {
137
- const t = j(e);
138
- void 0 !== t && r.add(t);
139
- }
140
- for (const e of t.cols ?? []) {
141
- const t = j(e);
142
- void 0 !== t && r.add(t);
143
- }
144
- let a = !1;
145
- for (const t of r) if (e.has(t)) {
146
- a = !0;
147
- break;
148
- }
149
- if (a) {
150
- t.protection = {
151
- ...t.protection ?? { sheet: !0 },
152
- showFormulas: !1
153
- };
154
- for (const t of r) (e.has(t) ? o : s).add(t);
155
- }
156
- }
157
- if (0 === s.size) return;
158
- const a = n.direct ?? (n.direct = []);
159
- for (const t of s) 0 !== t && E(a[t] ?? (a[t] = {}), !0);
160
- for (const t of o) 0 !== t && E(a[t] ?? (a[t] = {}), !1);
161
- if (s.has(0)) {
162
- const t = n.named ?? (n.named = []), e = r.BuiltInName.Normal.toLowerCase();
163
- let s = t.find((t) => t.name?.toLowerCase() === e);
164
- s || (s = {
165
- name: r.BuiltInName.Normal,
166
- style: {}
167
- }, t.push(s)), E(s.style, !0);
168
- }
169
- };
170
- export { P as a, w as c, i as d, f, a as g, d as h, A as i, u as l, h as m, R as n, F as o, m as p, g as r, v as s, S as t, c as u };
@@ -1,8 +0,0 @@
1
- export declare const toOOXMLLineCap: (value: string) => string | undefined;
2
- export declare const toOOXMLAlign: (value: string) => string;
3
- export declare const toOOXMLCompound: (value: string) => string;
4
- export declare const toOOXMLGradientType: (value: string) => string;
5
- export declare const toOOXMLPoints: (pixels: number) => number;
6
- export declare const toPixelFromEmu: (emu: number) => number;
7
- export declare const toOOXMLAngle: (deg: number) => number;
8
- //# sourceMappingURL=OOXMLMappings.d.ts.map
@@ -1,78 +0,0 @@
1
- export declare const getAxisID: () => number;
2
- export declare const isMultiLevel: (objChartSeries: any, pointCoord: any) => boolean;
3
- export declare function getValues(objChartSeries: any, pointCoord: any, isMultiLevel?: boolean): {
4
- isNumericList: boolean;
5
- values: any[];
6
- formatCodes: Map<any, any>;
7
- listFormatCode: any;
8
- allSameFormatCodes: boolean;
9
- };
10
- export declare function getMultiLevelValues(objChartSeries: any, pointCoord: any): {
11
- isNumericList: boolean;
12
- values: number[][];
13
- formatCodes: Map<any, any>;
14
- listFormatCode: null;
15
- allSameFormatCodes: boolean;
16
- };
17
- export declare function createDataList(execContext: any, values: any, xmlNode: any, setFormatCodes?: boolean, formatCodes?: Map<number, string> | null): void;
18
- export declare function getDPt(execContext: any, dPtNodes: any, idx: number): any;
19
- export declare const builtInDisplayUnitsKeys: string[];
20
- export declare const builtInDisplayUnits: {
21
- none: {
22
- description: string;
23
- multi: number;
24
- };
25
- hundreds: {
26
- description: string;
27
- multi: number;
28
- };
29
- thousands: {
30
- description: string;
31
- multi: number;
32
- };
33
- tenThousands: {
34
- description: string;
35
- multi: number;
36
- };
37
- hundredThousands: {
38
- description: string;
39
- multi: number;
40
- };
41
- millions: {
42
- description: string;
43
- multi: number;
44
- };
45
- tenMillions: {
46
- description: string;
47
- multi: number;
48
- };
49
- hundredMillions: {
50
- description: string;
51
- multi: number;
52
- };
53
- billions: {
54
- description: string;
55
- multi: number;
56
- };
57
- trillions: {
58
- description: string;
59
- multi: number;
60
- };
61
- };
62
- export declare const isLineType: (chartType: string) => boolean;
63
- /**
64
- * Create a string from an array of cells.
65
- * @param cells
66
- * @param separator
67
- * This is being used by OOXML import from the charting code. Not sure what it is doing but it's incorrectly.
68
- */
69
- export declare const stringFromCells: (cells: any[], separator?: string) => string;
70
- /**
71
- * Rolls a potential 2d array into a single array.
72
- * @param array
73
- *
74
- * @remarks
75
- * This is not recursive and only handles arrays of 2 levels deep.
76
- */
77
- export declare function flatten2DArray<T = any>(array: readonly T[]): T[] | null;
78
- //# sourceMappingURL=OOXMLUtils.d.ts.map
@@ -1,30 +0,0 @@
1
- import { Document as PartialDocument, Element as PartialElement } from '@xmldom/xmldom';
2
- export declare function getNativeClass(obj: any): string;
3
- export declare function getAnyClass(obj: any): string;
4
- export interface ToOOXMLContext {
5
- }
6
- export declare class ToOOXMLConverter {
7
- visitHandlerRegistry: Record<string, any>;
8
- rootModelObj: any;
9
- rootXmlDoc: PartialDocument | null;
10
- visitedModels: any[];
11
- nodePath: PartialElement[];
12
- axisIds: Map<number, any>;
13
- c16UniqueIdCounter: number;
14
- constructor();
15
- setAttribute(xmlNode: PartialElement, attrName: string, attrValue: any): void;
16
- createNode(xmlNodeName: string): PartialElement;
17
- createChildNodes(xmlNode: PartialElement, xpath: string): PartialElement;
18
- createTextNode(text: string): PartialElement;
19
- createChildNode(xmlNode: PartialElement, childNodeName: string): PartialElement;
20
- appendChildNode(xmlParentNode: PartialElement, xmlChildNode: PartialElement, condition?: boolean): void;
21
- appendNonEmptyChildNode(xmlParentNode: PartialElement, xmlChildNode: PartialElement): void;
22
- copyValue(modelObj: any, modelPropertyPath: string, xmlNode: PartialElement, xmlChildNodeName: string, setterFunction: any, copyCheck?: (prop: any) => boolean): void;
23
- getNode(xmlNode: PartialElement, xpath: string): PartialElement | undefined;
24
- visit(xmlNode: PartialElement, modelChildObj: any, xmlChildNodeName: string | null, visitorOverride?: any): PartialElement | null;
25
- getParentNode(): PartialElement;
26
- getParentModel(): any;
27
- convert(chartShape: any, options?: any): string;
28
- }
29
- export type ToHandler<T = any> = (context: any, json: T, element: PartialElement) => void;
30
- //# sourceMappingURL=ToOOXMLConverter.d.ts.map
@@ -1,12 +0,0 @@
1
- import { Visitor, ExecutionContext } from '../dom';
2
- export declare class AxisVisitor implements Visitor {
3
- visit(context: ExecutionContext, elemParent: Element, _jsonParent: any): any;
4
- parseTimeUnits(context: ExecutionContext, elemParent: Element, jsonParent: any, jsonKey: string, timeUnitXPath: string, unitXPath: string): void;
5
- parseDisplayCustOrBuiltInUnit(elemParent: Element, context: ExecutionContext, jsonAxis: any): void;
6
- parseLabelAlign(context: ExecutionContext, elemParent: Element, jsonParent: any): void;
7
- parseOrientation(context: ExecutionContext, elemParent: Element, jsonParent: any): void;
8
- parseNumFormat(context: ExecutionContext, elemParent: Element, jsonParent: any): void;
9
- parseScaling(context: ExecutionContext, elemParent: Element, jsonParent: any): void;
10
- afterVisit(context: ExecutionContext, elemParent: Element, jsonParent: any): void;
11
- }
12
- //# sourceMappingURL=AxisVisitor.d.ts.map
@@ -1,6 +0,0 @@
1
- import { Visitor, ExecutionContext } from '../dom';
2
- import { ChartTypeVisitor } from './ChartTypeVisitor';
3
- export declare class BarChartTypeVisitor extends ChartTypeVisitor implements Visitor {
4
- parseType(context: ExecutionContext, elemParent: Element, jsonParent: any): void;
5
- }
6
- //# sourceMappingURL=BarChartTypeVisitor.d.ts.map
@@ -1,6 +0,0 @@
1
- import { Visitor, ExecutionContext } from '../dom';
2
- export declare class ChartSpaceVisitor implements Visitor {
3
- visit(context: ExecutionContext, elemParent: Element, jsonParent: any): any;
4
- afterVisit(context: ExecutionContext, chartSpaceElement: Element, jsonChartSpace: any): void;
5
- }
6
- //# sourceMappingURL=ChartSpaceVisitor.d.ts.map
@@ -1,7 +0,0 @@
1
- import { Visitor, ExecutionContext } from '../dom';
2
- export declare class ChartTypeVisitor implements Visitor {
3
- visit(context: ExecutionContext, elemParent: Element, _jsonParent: any): any;
4
- parseType(context: ExecutionContext, elemParent: Element, jsonParent: any): void;
5
- parseAxisIds(context: ExecutionContext, elemParent: Element, jsonParent: any): void;
6
- }
7
- //# sourceMappingURL=ChartTypeVisitor.d.ts.map
@@ -1,7 +0,0 @@
1
- import { Visitor } from '../dom/Visitor';
2
- import { ExecutionContext } from '../dom/ExecutionContext';
3
- export declare class ChartVisitor implements Visitor {
4
- visit(context: ExecutionContext, elemParent: Element, jsonParent: any): any;
5
- afterVisit(context: ExecutionContext, elemParent: Element, jsonParent: any): void;
6
- }
7
- //# sourceMappingURL=ChartVisitor.d.ts.map
@@ -1,8 +0,0 @@
1
- import { Visitor, ExecutionContext } from '../dom';
2
- export declare class DataLabelsVisitor implements Visitor {
3
- private jsonKey;
4
- constructor(jsonKey: string);
5
- visit(context: ExecutionContext, elemParent: Element, jsonParent: any): any;
6
- parseNumFormat(context: ExecutionContext, elemParent: Element, jsonParent: any): void;
7
- }
8
- //# sourceMappingURL=DataLabelsVisitor.d.ts.map
@@ -1,6 +0,0 @@
1
- import { Visitor, ExecutionContext } from '../dom';
2
- export declare class DataPointVisitor implements Visitor {
3
- DataPointVisitor(): void;
4
- visit(context: ExecutionContext, elemParent: Element, jsonParent: any): any;
5
- }
6
- //# sourceMappingURL=DataPointVisitor.d.ts.map
@@ -1,6 +0,0 @@
1
- import { IHyperlink } from '@sheetxl/sdk';
2
- import { Visitor, ExecutionContext } from '../dom';
3
- export declare class HyperlinkVisitor implements Visitor {
4
- visit(context: ExecutionContext, elem: Element, jsonParent: any): IHyperlink.JSON | undefined;
5
- }
6
- //# sourceMappingURL=HyperlinkVisitor.d.ts.map
@@ -1,5 +0,0 @@
1
- import { Visitor, ExecutionContext } from '../dom';
2
- export declare class LayoutVisitor implements Visitor {
3
- visit(context: ExecutionContext, elemParent: Element, jsonParent: any): any;
4
- }
5
- //# sourceMappingURL=LayoutVisitor.d.ts.map
@@ -1,5 +0,0 @@
1
- import { Visitor, ExecutionContext } from '../dom';
2
- export declare class LegendEntryVisitor implements Visitor {
3
- visit(context: ExecutionContext, elemParent: Element, jsonParent: any): any;
4
- }
5
- //# sourceMappingURL=LegendEntryVisitor.d.ts.map
@@ -1,5 +0,0 @@
1
- import { Visitor, ExecutionContext } from '../dom';
2
- export declare class LegendVisitor implements Visitor {
3
- visit(context: ExecutionContext, elemParent: Element, jsonParent: any): any;
4
- }
5
- //# sourceMappingURL=LegendVisitor.d.ts.map
@@ -1,5 +0,0 @@
1
- import { Visitor, ExecutionContext } from '../dom';
2
- export declare class MarkerVisitor implements Visitor {
3
- visit(context: ExecutionContext, elemParent: Element, jsonParent: any): any;
4
- }
5
- //# sourceMappingURL=MarkerVisitor.d.ts.map
@@ -1,6 +0,0 @@
1
- import { ExecutionContext } from '../dom';
2
- import { ShapePropertiesVisitor } from './ShapePropertiesVisitor';
3
- export declare class NegativeShapeVisitor extends ShapePropertiesVisitor {
4
- visit(context: ExecutionContext, elemParent: Element, jsonParent: any): any;
5
- }
6
- //# sourceMappingURL=NegativeShapeVisitor.d.ts.map
@@ -1,5 +0,0 @@
1
- import { Visitor, ExecutionContext } from '../dom';
2
- export declare class PlotAreaVisitor implements Visitor {
3
- visit(context: ExecutionContext, elemParent: Element, jsonParent: any): any;
4
- }
5
- //# sourceMappingURL=PlotAreaVisitor.d.ts.map
@@ -1,7 +0,0 @@
1
- import { Visitor, ExecutionContext } from '../dom';
2
- export declare class RichValueDataVisitor implements Visitor {
3
- visit(context: ExecutionContext, elemParent: Element, jsonParent: any): any[] | undefined;
4
- mapType(context: ExecutionContext, jsonInstance: any): void;
5
- processValues(context: ExecutionContext, elem: Element, jsonInstance: any, jsonStructure: any): void;
6
- }
7
- //# sourceMappingURL=RichValueDataVisitor.d.ts.map
@@ -1,6 +0,0 @@
1
- import { Visitor, ExecutionContext } from '../dom';
2
- export declare class RichValueStructureVisitor implements Visitor {
3
- visit(context: ExecutionContext, elemParent: Element, jsonParent: any): any[];
4
- processKeys(context: ExecutionContext, elem: Element, richType: any): void;
5
- }
6
- //# sourceMappingURL=RichValueStructureVisitor.d.ts.map
@@ -1,8 +0,0 @@
1
- import { Visitor, ExecutionContext } from '../dom';
2
- export declare class SeriesVisitor implements Visitor {
3
- visit(context: ExecutionContext, elemParent: Element, _jsonParent: any): any;
4
- parseTitleRangeOrValue(context: ExecutionContext, elemParent: Element, jsonSeries: any): void;
5
- parsePointsAsString(context: ExecutionContext, elemParent: Element): string;
6
- afterVisit(context: ExecutionContext, elemParent: Element, jsonParent: any): void;
7
- }
8
- //# sourceMappingURL=SeriesVisitor.d.ts.map
@@ -1,9 +0,0 @@
1
- import { ExecutionContext } from '../dom';
2
- import { TextPropertiesVisitor } from './TextPropertiesVisitor';
3
- export declare class TitleVisitor extends TextPropertiesVisitor {
4
- constructor(jsonKey?: string);
5
- parseTitleRangeOrValue(context: ExecutionContext, elemParent: Element, jsonTitle: any): void;
6
- visit(context: ExecutionContext, elemParent: Element, jsonParent: any): any;
7
- afterVisit(context: ExecutionContext, xmlElementContext: Element, jsonTitle: any): void;
8
- }
9
- //# sourceMappingURL=TitleVisitor.d.ts.map
@@ -1,7 +0,0 @@
1
- import { Emitter, EmitContext } from '../builder';
2
- export declare class ChartColorsEmitter extends Emitter<Map<any, string>> {
3
- constructor();
4
- /** @inheritdoc IEmitter.emit */
5
- emit(colors: Map<any, string>, ctx: EmitContext): Promise<void>;
6
- }
7
- //# sourceMappingURL=ChartColorsEmitter.d.ts.map
@@ -1,14 +0,0 @@
1
- import { IChart, IStyleCollection } from '@sheetxl/sdk';
2
- import { Emitter, EmitContext } from '../builder';
3
- export declare class ChartEmitter extends Emitter<ModelHandle> {
4
- constructor();
5
- /** @inheritdoc IEmitter.emit */
6
- emit(handle: ModelHandle, ctx: EmitContext): Promise<void>;
7
- }
8
- type ModelHandle = {
9
- json: IChart.JSON;
10
- model: IChart;
11
- styles: IStyleCollection;
12
- };
13
- export {};
14
- //# sourceMappingURL=ChartEmitter.d.ts.map
@@ -1,46 +0,0 @@
1
- import { IStyleCollection } from '@sheetxl/sdk';
2
- import { Emitter, EmitContext } from '../builder';
3
- export declare class ChartStyleEmitter extends Emitter<Handle> {
4
- constructor();
5
- /** @inheritdoc IEmitter.emit */
6
- emit(handle: Handle, ctx: EmitContext): Promise<void>;
7
- }
8
- interface Handle {
9
- styles: IStyleCollection;
10
- }
11
- export declare const PartTypes: {
12
- readonly AxisTitle: "axisTitle";
13
- readonly CategoryAxis: "categoryAxis";
14
- readonly ChartArea: "chartArea";
15
- readonly DataLabel: "dataLabel";
16
- readonly DataLabelCallout: "dataLabelCallout";
17
- readonly DataPoint: "dataPoint";
18
- readonly DataPoint3D: "dataPoint3D";
19
- readonly DataPointLine: "dataPointLine";
20
- readonly DataPointMarker: "dataPointMarker";
21
- readonly DataPointMarkerLayout: "dataPointMarkerLayout";
22
- readonly DataPointWireframe: "dataPointWireframe";
23
- readonly DataTable: "dataTable";
24
- readonly DownBar: "downBar";
25
- readonly DropLine: "dropLine";
26
- readonly ErrorBar: "errorBar";
27
- readonly Floor: "floor";
28
- readonly GridlineMajor: "gridlineMajor";
29
- readonly GridlineMinor: "gridlineMinor";
30
- readonly HiLoLine: "hiLoLine";
31
- readonly LeaderLine: "leaderLine";
32
- readonly Legend: "legend";
33
- readonly PlotArea: "plotArea";
34
- readonly PlotArea3D: "plotArea3D";
35
- readonly SeriesAxis: "seriesAxis";
36
- readonly SeriesLine: "seriesLine";
37
- readonly Title: "title";
38
- readonly Trendline: "trendline";
39
- readonly TrendlineLabel: "trendlineLabel";
40
- readonly UpBar: "upBar";
41
- readonly ValueAxis: "valueAxis";
42
- readonly Wall: "wall";
43
- };
44
- export type PartTypes = typeof PartTypes[keyof typeof PartTypes];
45
- export {};
46
- //# sourceMappingURL=ChartStyleEmitter.d.ts.map
@@ -1,28 +0,0 @@
1
- import { IStyleCollection } from '@sheetxl/sdk';
2
- export declare const HIDDEN_FORMULA_XFS_SHARED_STATE = "hiddenFormulaXfs";
3
- /**
4
- * The `hidden="1"` twins of cell xfs, for sheets whose protection hides formulas.
5
- *
6
- * xlsx has no sheet-level form of `ISheetProtection.showFormulas: false`; Excel only hides a formula
7
- * whose format says `hidden="1"`. So a sheet that hides formulas writes every format it uses as a
8
- * hidden variant, unless the format itself grants `showFormulas`. Variants are appended after the
9
- * direct styles and shared by every sheet that asks for one. `cellXfs[0]` is never changed in place:
10
- * it is workbook-wide, and protection is per sheet.
11
- *
12
- * Worksheets allocate while they emit; `StylesEmitter` writes the variants afterwards.
13
- */
14
- export declare class HiddenFormulaXfs {
15
- private _json;
16
- private _styles;
17
- /** The cellXfs written for the direct styles; the variants start here. */
18
- private _directCount;
19
- private _variants;
20
- private _sources;
21
- constructor(json: IStyleCollection.JSON | undefined, styles: IStyleCollection);
22
- /** The xf to write in place of `xf` on a sheet that hides formulas. */
23
- getHiddenXf(xf: number): number;
24
- /** The direct xf behind each variant, in variant order. */
25
- getSources(): readonly number[];
26
- private _isShown;
27
- }
28
- //# sourceMappingURL=HiddenFormulaXfs.d.ts.map