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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/LICENSE.md +8 -7
  2. package/browser/esm/BPn0BJd77_Q1lYVz.mjs +7021 -0
  3. package/browser/esm/BfV9IAl46gJxLRsa.mjs +2474 -0
  4. package/browser/esm/{DsSIg46AR7IFBN5N.mjs → C1Ql7gO6TtQglsOH.mjs} +939 -804
  5. package/browser/esm/{CxtFawTfwRTCC4Xr.mjs → C74cxGSvdlAfqeqF.mjs} +2 -2
  6. package/browser/esm/CZ3s0Cfjqm3BRszF.mjs +104 -0
  7. package/browser/esm/ChMFy3Rg97YbbuTB.mjs +4632 -0
  8. package/browser/esm/D2WBxzN8ubzIrJ4h.mjs +10323 -0
  9. package/browser/esm/{D-epcZSoKLbsAIaC.mjs → DtUTX1O34sAvjw_I.mjs} +3 -3
  10. package/browser/esm/{C-2KaUyV4gs-sDTZ.mjs → K9Sy1I7Pix2m7GJj.mjs} +194 -144
  11. package/browser/esm/{CRrTMRdN_IcSA_pm.mjs → cjLbism9wq4om43B.mjs} +3 -3
  12. package/browser/esm/index.mjs +3 -4
  13. package/browser/esm/rF6yS_NgcKLlMbGR.mjs +24 -0
  14. package/licenses/dependencies.txt +2 -2
  15. package/node/esm/BMVTOvvr98SnUmif.mjs +2478 -0
  16. package/node/esm/BXHjX5Jr7ZO7XFp1.mjs +6957 -0
  17. package/node/esm/{CBtj0-a4l2qux2hA.mjs → BeAzln1Wp4oOc7xJ.mjs} +3 -3
  18. package/node/esm/C2FEO68INNEEnWCd.mjs +4746 -0
  19. package/node/esm/DDI2JK7U9TLsIobf.mjs +2562 -0
  20. package/node/esm/DhIaDwktkAy1xpDs.mjs +7284 -0
  21. package/node/esm/{BCr4lCI6qQXXN0K1.mjs → el-uWAcXKFVwmwZ-.mjs} +3 -3
  22. package/node/esm/index.mjs +65 -28
  23. package/node/esm/{BsTMtvwpQoPNv95M.mjs → kFd-ABtolhQt-Hqv.mjs} +2 -2
  24. package/package.json +9 -10
  25. package/types/src/AutoFilterRules.d.ts +34 -44
  26. package/types/src/ConditionalFormatRules.d.ts +2 -2
  27. package/types/src/DataTableFormula.d.ts +26 -0
  28. package/types/src/DataValidationRules.d.ts +0 -5
  29. package/types/src/DefinedNameAttributes.d.ts +8 -0
  30. package/types/src/ExcelCalcStamp.d.ts +0 -36
  31. package/types/src/ExcelCompat.d.ts +15 -143
  32. package/types/src/ExcelFunctionFacts.d.ts +0 -272
  33. package/types/src/ExcelReservedNames.d.ts +0 -65
  34. package/types/src/KnownFonts.d.ts +37 -0
  35. package/types/src/LegacyFormula.d.ts +1 -46
  36. package/types/src/OOXMLExtensions.d.ts +24 -2
  37. package/types/src/PageLayoutAttributes.d.ts +8 -0
  38. package/types/src/Plugin.d.ts +15 -3
  39. package/types/src/ProtectionAttributes.d.ts +2 -2
  40. package/types/src/SheetKinds.d.ts +42 -0
  41. package/types/src/SheetViewAttributes.d.ts +4 -0
  42. package/types/src/SortExtent.d.ts +16 -0
  43. package/types/src/SourcePackage.d.ts +0 -44
  44. package/types/src/SparklineGroups.d.ts +52 -0
  45. package/types/src/Types.d.ts +13 -3
  46. package/types/src/XlsxHeader.d.ts +19 -0
  47. package/types/src/chart/ChartExXml.d.ts +38 -0
  48. package/types/src/chart/ChartPartXml.d.ts +47 -0
  49. package/types/src/chart/ChartSpaceXml.d.ts +37 -0
  50. package/types/src/chart/_XmlTree.d.ts +34 -0
  51. package/types/src/chart/_chartCodecs.d.ts +12 -0
  52. package/types/src/chart/_chartExCodecs.d.ts +7 -0
  53. package/types/src/chart/_chartExFold.d.ts +14 -0
  54. package/types/src/chart/_chartExMarkup.d.ts +236 -0
  55. package/types/src/chart/_chartExStyle.d.ts +13 -0
  56. package/types/src/chart/_codec.d.ts +78 -0
  57. package/types/src/chart/_drawingml.d.ts +10 -0
  58. package/types/src/chart/_xml.d.ts +70 -0
  59. package/types/src/pivot/PivotArea.d.ts +20 -0
  60. package/types/src/pivot/PivotCacheRead.d.ts +30 -0
  61. package/types/src/pivot/PivotCacheWrite.d.ts +23 -0
  62. package/types/src/pivot/PivotFilters.d.ts +29 -0
  63. package/types/src/pivot/PivotFormats.d.ts +60 -0
  64. package/types/src/pivot/PivotTableRead.d.ts +44 -0
  65. package/types/src/pivot/PivotTableWrite.d.ts +13 -0
  66. package/types/src/pivot/_PivotCacheXml.d.ts +48 -0
  67. package/types/src/pivot/_PivotTableXml.d.ts +23 -0
  68. package/types/src/reader/CellControls.d.ts +18 -0
  69. package/types/src/reader/DocumentPropertiesRead.d.ts +16 -0
  70. package/types/src/reader/DummyFunctionUnwrap.d.ts +43 -23
  71. package/types/src/reader/HeaderStyles.d.ts +15 -0
  72. package/types/src/reader/IsoDateCell.d.ts +20 -0
  73. package/types/src/reader/LibreOfficeDataTable.d.ts +12 -0
  74. package/types/src/reader/PivotButtons.d.ts +14 -0
  75. package/types/src/reader/PivotCellFormats.d.ts +22 -0
  76. package/types/src/reader/SlicerJoin.d.ts +26 -0
  77. package/types/src/reader/ZipReader.d.ts +1 -1
  78. package/types/src/reader/_SlicerRecord.d.ts +59 -0
  79. package/types/src/reader/dom/DOMTransformer.d.ts +2 -2
  80. package/types/src/reader/domVisitors/AppPropertiesVisitor.d.ts +13 -1
  81. package/types/src/reader/domVisitors/AutoFilterVisitor.d.ts +3 -11
  82. package/types/src/reader/domVisitors/ColorContainerVisitor.d.ts +8 -1
  83. package/types/src/reader/domVisitors/CommentVisitor.d.ts +2 -2
  84. package/types/src/reader/domVisitors/DrawingElementVisitor.d.ts +13 -6
  85. package/types/src/reader/domVisitors/DrawingGraphicFrameVisitor.d.ts +9 -0
  86. package/types/src/reader/domVisitors/DrawingGrpSpVisitor.d.ts +10 -7
  87. package/types/src/reader/domVisitors/DrawingPicVisitor.d.ts +22 -13
  88. package/types/src/reader/domVisitors/DrawingSpVisitor.d.ts +5 -5
  89. package/types/src/reader/domVisitors/DrawingVisitor.d.ts +4 -2
  90. package/types/src/reader/domVisitors/ExternalLinkVisitor.d.ts +1 -11
  91. package/types/src/reader/domVisitors/FeaturePropertyBagVisitor.d.ts +18 -0
  92. package/types/src/reader/domVisitors/FmtSchemeVisitor.d.ts +0 -11
  93. package/types/src/reader/domVisitors/FontSchemeVisitor.d.ts +3 -2
  94. package/types/src/reader/domVisitors/ObjectDefaultsVisitor.d.ts +11 -0
  95. package/types/src/reader/domVisitors/SheetColorContainerVisitor.d.ts +2 -2
  96. package/types/src/reader/domVisitors/SheetStyleVisitor.d.ts +26 -5
  97. package/types/src/reader/domVisitors/SlicerCacheDefinitionVisitor.d.ts +11 -2
  98. package/types/src/reader/domVisitors/SlicersVisitor.d.ts +9 -3
  99. package/types/src/reader/domVisitors/SortStateVisitor.d.ts +2 -2
  100. package/types/src/reader/domVisitors/ThreadedCommentsVisitor.d.ts +2 -2
  101. package/types/src/reader/domVisitors/TimelinesVisitor.d.ts +13 -0
  102. package/types/src/reader/domVisitors/WorkbookVisitor.d.ts +0 -9
  103. package/types/src/reader/domVisitors/_Dxfs.d.ts +10 -0
  104. package/types/src/reader/domVisitors/index.d.ts +6 -34
  105. package/types/src/reader/saxVisitors/ContentTypesVisitor.d.ts +1 -0
  106. package/types/src/reader/saxVisitors/SharedStringsVisitor.d.ts +31 -6
  107. package/types/src/reader/saxVisitors/WorksheetVisitor.d.ts +26 -8
  108. package/types/src/richValue/ErrorRichValueHandler.d.ts +22 -0
  109. package/types/src/richValue/IRichValueHandler.d.ts +109 -0
  110. package/types/src/richValue/LocalImageRichValueHandler.d.ts +18 -0
  111. package/types/src/richValue/RichDataParts.d.ts +69 -0
  112. package/types/src/richValue/RichRecordWriter.d.ts +61 -0
  113. package/types/src/richValue/RichValueHandlers.d.ts +25 -0
  114. package/types/src/richValue/RichValueResolver.d.ts +54 -0
  115. package/types/src/richValue/WebImageRichValueHandler.d.ts +37 -0
  116. package/types/src/richValue/index.d.ts +7 -0
  117. package/types/src/utils/DrawingMLText.d.ts +2 -2
  118. package/types/src/utils/FormControls.d.ts +79 -6
  119. package/types/src/utils/SharedNames.d.ts +13 -0
  120. package/types/src/utils/SpreadsheetFont.d.ts +38 -0
  121. package/types/src/utils/VmlNoteShapes.d.ts +25 -32
  122. package/types/src/utils/VmlNoteStyle.d.ts +25 -0
  123. package/types/src/utils/VmlPrefixes.d.ts +24 -0
  124. package/types/src/vba/VBAProject.d.ts +0 -19
  125. package/types/src/writer/EvaluationSheet.d.ts +5 -0
  126. package/types/src/writer/builder/OpcXmlUtils.d.ts +0 -8
  127. package/types/src/writer/builder/PackageBuilder.d.ts +2 -41
  128. package/types/src/writer/builder/Types.d.ts +18 -28
  129. package/types/src/writer/emitters/CommentsEmitter.d.ts +3 -3
  130. package/types/src/writer/emitters/DrawingEmitter.d.ts +2 -2
  131. package/types/src/writer/emitters/ExternalLinkEmitter.d.ts +0 -11
  132. package/types/src/writer/emitters/FeaturePropertyBagEmitter.d.ts +8 -0
  133. package/types/src/writer/emitters/LegacyDrawingEmitter.d.ts +4 -4
  134. package/types/src/writer/emitters/PivotTableEmitter.d.ts +30 -1
  135. package/types/src/writer/emitters/PropsCoreEmitter.d.ts +7 -2
  136. package/types/src/writer/emitters/PropsCustomEmitter.d.ts +15 -0
  137. package/types/src/writer/emitters/RichValuePartsEmitters.d.ts +36 -0
  138. package/types/src/writer/emitters/RichValueRelEmitter.d.ts +12 -0
  139. package/types/src/writer/emitters/RichValueStructureEmitter.d.ts +4 -3
  140. package/types/src/writer/emitters/RichValueTypesEmitter.d.ts +3 -2
  141. package/types/src/writer/emitters/RichValueWebImageEmitter.d.ts +24 -0
  142. package/types/src/writer/emitters/SharedStringsEmitter.d.ts +6 -3
  143. package/types/src/writer/emitters/SlicerEmitter.d.ts +132 -0
  144. package/types/src/writer/emitters/StylesEmitter.d.ts +35 -2
  145. package/types/src/writer/emitters/TableEmitter.d.ts +14 -0
  146. package/types/src/writer/emitters/WorkbookEmitter.d.ts +24 -2
  147. package/types/src/writer/emitters/WorksheetEmitter.d.ts +4 -3
  148. package/types/src/writer/utils/AutoFilter.d.ts +3 -3
  149. package/types/src/writer/utils/CellControlComplements.d.ts +29 -0
  150. package/types/src/writer/utils/DateSystem.d.ts +6 -0
  151. package/types/src/writer/utils/DefaultRows.d.ts +22 -0
  152. package/types/src/writer/utils/DrawMLUtils.d.ts +8 -6
  153. package/types/src/writer/utils/DummyFunction.d.ts +0 -25
  154. package/types/src/writer/utils/DxfCollector.d.ts +14 -11
  155. package/types/src/writer/utils/PrstGeomUtils.d.ts +11 -3
  156. package/types/src/writer/utils/RichValueCollector.d.ts +81 -129
  157. package/types/src/writer/utils/SheetStyleLayout.d.ts +86 -0
  158. package/types/src/writer/utils/TextUtils.d.ts +6 -1
  159. package/types/src/writer/utils/UnsupportedFunctions.d.ts +2 -2
  160. package/types/src/writer/utils/XfVariants.d.ts +61 -0
  161. package/browser/cjs/B0Ugu_crqQYpdfQz.cjs +0 -1
  162. package/browser/cjs/B6sirGz6w-Bm7Ofo.cjs +0 -1
  163. package/browser/cjs/BHM3_D9PsNURVAVy.cjs +0 -1
  164. package/browser/cjs/BHWdwAQ322YA8JAZ.cjs +0 -6
  165. package/browser/cjs/CeuX8p1aBuKTuagi.cjs +0 -2
  166. package/browser/cjs/D3EWCPfCu-qMOIGd.cjs +0 -1
  167. package/browser/cjs/DSM4q1dhVVXvsgby.cjs +0 -30
  168. package/browser/cjs/DiAHwNv2I8RHE9GY.cjs +0 -1
  169. package/browser/cjs/index.cjs +0 -1
  170. package/browser/cjs/wrpXlaSBGEicQf6_.cjs +0 -6
  171. package/browser/cjs/xQ6-wbTw5UzZUM1Y.cjs +0 -1
  172. package/browser/esm/Bu64BYvRAlVftMr1.mjs +0 -67
  173. package/browser/esm/CWt4fDYEbj2hvsl_.mjs +0 -3346
  174. package/browser/esm/Ccnxz-y2WBEgfvvh.mjs +0 -6498
  175. package/browser/esm/Dx64JMAGwNNDBkC1.mjs +0 -4928
  176. package/browser/esm/Sv4twwEJDb9dZ91h.mjs +0 -149
  177. package/node/esm/BPn5XBizKkwaUqXB.mjs +0 -4285
  178. package/node/esm/BVV11IlqF6Lmlv8D.mjs +0 -154
  179. package/node/esm/BiJEEgltJzx94zIR.mjs +0 -3433
  180. package/node/esm/CkmZuMvRTpva7eQu.mjs +0 -5074
  181. package/node/esm/j0RE2usgdljRw_gr.mjs +0 -2345
  182. package/types/src/legacyChart/OOXMLMappings.d.ts +0 -8
  183. package/types/src/legacyChart/OOXMLUtils.d.ts +0 -78
  184. package/types/src/legacyChart/ToOOXMLConverter.d.ts +0 -30
  185. package/types/src/reader/domVisitors/AxisVisitor.d.ts +0 -12
  186. package/types/src/reader/domVisitors/BarChartTypeVisitor.d.ts +0 -6
  187. package/types/src/reader/domVisitors/ChartSpaceVisitor.d.ts +0 -6
  188. package/types/src/reader/domVisitors/ChartTypeVisitor.d.ts +0 -7
  189. package/types/src/reader/domVisitors/ChartVisitor.d.ts +0 -7
  190. package/types/src/reader/domVisitors/DataLabelsVisitor.d.ts +0 -8
  191. package/types/src/reader/domVisitors/DataPointVisitor.d.ts +0 -6
  192. package/types/src/reader/domVisitors/LayoutVisitor.d.ts +0 -5
  193. package/types/src/reader/domVisitors/LegendEntryVisitor.d.ts +0 -5
  194. package/types/src/reader/domVisitors/LegendVisitor.d.ts +0 -5
  195. package/types/src/reader/domVisitors/MarkerVisitor.d.ts +0 -5
  196. package/types/src/reader/domVisitors/NegativeShapeVisitor.d.ts +0 -6
  197. package/types/src/reader/domVisitors/PlotAreaVisitor.d.ts +0 -5
  198. package/types/src/reader/domVisitors/RichValueDataVisitor.d.ts +0 -7
  199. package/types/src/reader/domVisitors/RichValueStructureVisitor.d.ts +0 -6
  200. package/types/src/reader/domVisitors/SeriesVisitor.d.ts +0 -8
  201. package/types/src/reader/domVisitors/TitleVisitor.d.ts +0 -9
  202. package/types/src/writer/emitters/ChartColorsEmitter.d.ts +0 -7
  203. package/types/src/writer/emitters/ChartEmitter.d.ts +0 -14
  204. package/types/src/writer/emitters/ChartStyleEmitter.d.ts +0 -46
  205. package/types/src/writer/utils/HiddenFormulaXfs.d.ts +0 -28
@@ -1,154 +0,0 @@
1
- /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.9
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 "./BPn5XBizKkwaUqXB.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 = (t, e, n) => {
11
- const s = `Unable to read '${t}': ${e?.message ?? e}`;
12
- n?.onWarning ? n.onWarning(s, t) : console.warn(s);
13
- }, c = (t, e, n, s = null) => {
14
- if (!t) return null;
15
- let r = t;
16
- r.startsWith("/") && (r = r.substring(1));
17
- let c = s?.parsedRefs?.get(t);
18
- if (void 0 !== c) return c;
19
- const a = e(r);
20
- if (!a) return null;
21
- let l = a.content;
22
- try {
23
- n && (l = n(l, t));
24
- } catch (e) {
25
- o(t, e, s);
26
- }
27
- return s?.parsedRefs?.set(t, l), l;
28
- }, a = (t, n, s, r, c = null) => {
29
- if (!t) return null;
30
- let a = t;
31
- a.startsWith("/") && (a = a.substring(1));
32
- let l = c?.parsedRefs?.get(t);
33
- if (void 0 !== l) return l;
34
- const i = n(a);
35
- if (!i) return null;
36
- const u = i.content;
37
- try {
38
- const n = new TextDecoder().decode(u), o = s.parseFromString(n, "text/xml"), a = r.transform(o, t, c ?? e.EmptyObject);
39
- return c?.parsedRefs?.set(t, a), a;
40
- } catch (e) {
41
- o(t, e, c);
42
- }
43
- return null;
44
- }, l = (t, e, n, s, r = null) => {
45
- if (!t) return null;
46
- const o = a(t, e, n, s, r);
47
- if (!o) return null;
48
- const c = /* @__PURE__ */ new Map(), l = Object.keys(o), i = l.length;
49
- for (let t = 0; t < i; t++) {
50
- const e = l[t], n = o[e];
51
- c.set(e, n);
52
- }
53
- return c;
54
- }, i = (t, e, n, s, r, o = null) => {
55
- const c = /* @__PURE__ */ new Map();
56
- let l = e[t];
57
- const i = l ? l.length : 0;
58
- for (let t = 0; t < i; t++) {
59
- const e = l[t];
60
- if (!e) continue;
61
- let i = e;
62
- i.startsWith("/") && (i = i.substring(1));
63
- const u = a(i, n, s, r, o);
64
- c.set(i, u);
65
- }
66
- return c;
67
- }, u = (t) => {
68
- const e = t.split(/\/+/);
69
- return e.reduce((t, e, n) => ("." === e ? t.splice(n, 1) : ".." === e && t.splice(n - 1, 2), t), e).join("/");
70
- }, f = Object.freeze([
71
- "lt1",
72
- "dk1",
73
- "lt2",
74
- "dk2",
75
- "accent1",
76
- "accent2",
77
- "accent3",
78
- "accent4",
79
- "accent5",
80
- "accent6",
81
- "hlink",
82
- "folHlink"
83
- ]), d = (t, e = "auto") => {
84
- let n;
85
- const r = t("auto");
86
- void 0 === r || "1" !== r && "true" !== r || (n = e);
87
- const o = t("indexed");
88
- o && (n = "64" === o ? "auto" : `index${o}`);
89
- const c = t("rgb");
90
- c && (n = c.toLowerCase(), 8 !== c.length || c.startsWith("FF") || (n = "FF" + c.substring(2, c.length)));
91
- const a = t("theme");
92
- a && (n = f[Number(a)]);
93
- let l = t("tint");
94
- if (l && (n += ` ${s.AdjustmentType.ETint} ${parseFloat(l)}`), n) return n;
95
- }, m = (t) => t ? t.replace(/^\{([\s\S]+)\}$/, "$1") : t, h = "hiddenXfs", p = (t) => (Array.isArray(t) ? t[1] : t?.v)?.s, g = (e) => {
96
- if (!e || 0 === e.length) return !1;
97
- const s = n.refsToRuns(e, !0);
98
- let r = 0;
99
- for (const t of s) {
100
- if (t.min > r || void 0 === t.value?.s) return !1;
101
- r = Math.max(r, t.max + 1);
102
- }
103
- return r > t;
104
- }, w = (t, e) => {
105
- t.protection = {
106
- ...t.protection,
107
- showFormulas: e
108
- };
109
- }, y = (t, e) => {
110
- if (!e || 0 === e.size) return;
111
- const n = t.styles;
112
- if (!n) return;
113
- const s = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set();
114
- for (const n of t.sheets ?? []) {
115
- const t = n?.sheet;
116
- if (!t) continue;
117
- const r = /* @__PURE__ */ new Set();
118
- g(t.cols) || r.add(0);
119
- for (const e of t.directStyles ?? []) r.add(Array.isArray(e) ? e[1] : e.v);
120
- for (const e of t.rows ?? []) {
121
- const t = p(e);
122
- void 0 !== t && r.add(t);
123
- }
124
- for (const e of t.cols ?? []) {
125
- const t = p(e);
126
- void 0 !== t && r.add(t);
127
- }
128
- let c = !1;
129
- for (const t of r) if (e.has(t)) {
130
- c = !0;
131
- break;
132
- }
133
- if (c) {
134
- t.protection = {
135
- ...t.protection ?? { sheet: !0 },
136
- showFormulas: !1
137
- };
138
- for (const t of r) (e.has(t) ? o : s).add(t);
139
- }
140
- }
141
- if (0 === s.size) return;
142
- const c = n.direct ?? (n.direct = []);
143
- for (const t of s) 0 !== t && w(c[t] ?? (c[t] = {}), !0);
144
- for (const t of o) 0 !== t && w(c[t] ?? (c[t] = {}), !1);
145
- if (s.has(0)) {
146
- const t = n.named ?? (n.named = []), e = r.BuiltInName.Normal.toLowerCase();
147
- let s = t.find((t) => t.name?.toLowerCase() === e);
148
- s || (s = {
149
- name: r.BuiltInName.Normal,
150
- style: {}
151
- }, t.push(s)), w(s.style, !0);
152
- }
153
- };
154
- export { a, m as c, c as i, u as l, y as n, i as o, l as r, d as s, h as t };