@sheetxl/io-xlsx 0.8.0-beta.7 → 1.0.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 (215) hide show
  1. package/LICENSE.md +8 -7
  2. package/browser/esm/7rZlWcm56hn3Jmnk.mjs +7021 -0
  3. package/browser/esm/AZus_5slvoIVhf1u.mjs +10323 -0
  4. package/browser/esm/B9QfzGvsvg-V3utu.mjs +4632 -0
  5. package/browser/esm/{CX3yVwe-BnhCk4FY.mjs → BIR_Si489gIkGOnc.mjs} +194 -144
  6. package/browser/esm/BJFvc-i40R4rPZ5y.mjs +2433 -0
  7. package/browser/esm/{CGXxwkCRWLc0gcRQ.mjs → BX8Ebx4NC5zp7_3J.mjs} +3 -3
  8. package/browser/esm/{B4eKxNwxJjHLN126.mjs → Bnxw38IvtA04zXEE.mjs} +2 -2
  9. package/browser/esm/{DwcLXqv8-6Tl1zLO.mjs → CfVhYH77KdrR3fEK.mjs} +3 -3
  10. package/browser/esm/index.mjs +3 -4
  11. package/browser/esm/jIQks3Crw6jehdDU.mjs +2474 -0
  12. package/browser/esm/{DUi-V-E_AJwTIqlO.mjs → qc9hnuR2z-whY8YO.mjs} +3 -3
  13. package/browser/esm/wZGpmkMUubNjClhG.mjs +104 -0
  14. package/licenses/dependencies.txt +2 -2
  15. package/node/esm/{C51yFT2l-6il_xXO.mjs → BNLHWJHyy5eB0P_4.mjs} +2 -2
  16. package/node/esm/CVtsY2F9A9NzEGLk.mjs +2478 -0
  17. package/node/esm/CoeQ0LO-nNXiowwv.mjs +7284 -0
  18. package/node/esm/CxY3iIYLXVhCebeV.mjs +4746 -0
  19. package/node/esm/D2CZy9TQM9h2uqBh.mjs +2562 -0
  20. package/node/esm/{CMq7eF1vxibUumqT.mjs → Dm0hvKcR4xb0TV_N.mjs} +3 -3
  21. package/node/esm/_IA1gQ-zFQYQSZSs.mjs +6957 -0
  22. package/node/esm/index.mjs +65 -28
  23. package/node/esm/{DLBm8l0jyL2fVlxg.mjs → zZFe3mW0xjmobowq.mjs} +3 -3
  24. package/package.json +9 -10
  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 +2 -2
  85. package/types/src/reader/domVisitors/DrawingCxnSpVisitor.d.ts +1 -0
  86. package/types/src/reader/domVisitors/DrawingElementVisitor.d.ts +30 -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/ThreadedCommentsVisitor.d.ts +2 -2
  106. package/types/src/reader/domVisitors/TimelinesVisitor.d.ts +13 -0
  107. package/types/src/reader/domVisitors/WorkbookVisitor.d.ts +0 -9
  108. package/types/src/reader/domVisitors/_Dxfs.d.ts +10 -0
  109. package/types/src/reader/domVisitors/index.d.ts +10 -36
  110. package/types/src/reader/saxVisitors/ContentTypesVisitor.d.ts +1 -0
  111. package/types/src/reader/saxVisitors/SharedStringsVisitor.d.ts +31 -6
  112. package/types/src/reader/saxVisitors/WorksheetVisitor.d.ts +26 -8
  113. package/types/src/richValue/ErrorRichValueHandler.d.ts +22 -0
  114. package/types/src/richValue/IRichValueHandler.d.ts +109 -0
  115. package/types/src/richValue/LocalImageRichValueHandler.d.ts +18 -0
  116. package/types/src/richValue/RichDataParts.d.ts +69 -0
  117. package/types/src/richValue/RichRecordWriter.d.ts +61 -0
  118. package/types/src/richValue/RichValueHandlers.d.ts +25 -0
  119. package/types/src/richValue/RichValueResolver.d.ts +54 -0
  120. package/types/src/richValue/WebImageRichValueHandler.d.ts +37 -0
  121. package/types/src/richValue/index.d.ts +7 -0
  122. package/types/src/utils/DrawingMLText.d.ts +39 -0
  123. package/types/src/utils/FormControls.d.ts +170 -0
  124. package/types/src/utils/SharedNames.d.ts +13 -0
  125. package/types/src/utils/SpreadsheetFont.d.ts +38 -0
  126. package/types/src/utils/VmlNoteShapes.d.ts +25 -32
  127. package/types/src/utils/VmlNoteStyle.d.ts +25 -0
  128. package/types/src/utils/VmlPrefixes.d.ts +24 -0
  129. package/types/src/vba/VBAProject.d.ts +0 -19
  130. package/types/src/writer/EvaluationSheet.d.ts +5 -0
  131. package/types/src/writer/builder/Emitter.d.ts +5 -0
  132. package/types/src/writer/builder/OpcXmlUtils.d.ts +0 -8
  133. package/types/src/writer/builder/PackageBuilder.d.ts +4 -41
  134. package/types/src/writer/builder/Types.d.ts +28 -28
  135. package/types/src/writer/emitters/CommentsEmitter.d.ts +3 -3
  136. package/types/src/writer/emitters/DrawingEmitter.d.ts +2 -2
  137. package/types/src/writer/emitters/ExternalLinkEmitter.d.ts +0 -11
  138. package/types/src/writer/emitters/FeaturePropertyBagEmitter.d.ts +8 -0
  139. package/types/src/writer/emitters/LegacyDrawingEmitter.d.ts +4 -4
  140. package/types/src/writer/emitters/PivotTableEmitter.d.ts +30 -1
  141. package/types/src/writer/emitters/PropsCoreEmitter.d.ts +7 -2
  142. package/types/src/writer/emitters/PropsCustomEmitter.d.ts +15 -0
  143. package/types/src/writer/emitters/RichValuePartsEmitters.d.ts +36 -0
  144. package/types/src/writer/emitters/RichValueRelEmitter.d.ts +12 -0
  145. package/types/src/writer/emitters/RichValueStructureEmitter.d.ts +4 -3
  146. package/types/src/writer/emitters/RichValueTypesEmitter.d.ts +3 -2
  147. package/types/src/writer/emitters/RichValueWebImageEmitter.d.ts +24 -0
  148. package/types/src/writer/emitters/SharedStringsEmitter.d.ts +6 -3
  149. package/types/src/writer/emitters/SlicerEmitter.d.ts +132 -0
  150. package/types/src/writer/emitters/StylesEmitter.d.ts +35 -2
  151. package/types/src/writer/emitters/TableEmitter.d.ts +14 -0
  152. package/types/src/writer/emitters/WorkbookEmitter.d.ts +24 -2
  153. package/types/src/writer/emitters/WorksheetEmitter.d.ts +4 -3
  154. package/types/src/writer/utils/AutoFilter.d.ts +3 -3
  155. package/types/src/writer/utils/CellControlComplements.d.ts +29 -0
  156. package/types/src/writer/utils/CustGeomUtils.d.ts +5 -0
  157. package/types/src/writer/utils/DateSystem.d.ts +6 -0
  158. package/types/src/writer/utils/DefaultRows.d.ts +22 -0
  159. package/types/src/writer/utils/DrawMLUtils.d.ts +42 -3
  160. package/types/src/writer/utils/DummyFunction.d.ts +0 -25
  161. package/types/src/writer/utils/DxfCollector.d.ts +14 -11
  162. package/types/src/writer/utils/PrstGeomUtils.d.ts +14 -0
  163. package/types/src/writer/utils/RichValueCollector.d.ts +81 -129
  164. package/types/src/writer/utils/SheetStyleLayout.d.ts +86 -0
  165. package/types/src/writer/utils/TextUtils.d.ts +26 -2
  166. package/types/src/writer/utils/UnsupportedFunctions.d.ts +2 -2
  167. package/types/src/writer/utils/XfVariants.d.ts +61 -0
  168. package/browser/cjs/17tMBnuyu4YIxixh.cjs +0 -1
  169. package/browser/cjs/B6sirGz6w-Bm7Ofo.cjs +0 -1
  170. package/browser/cjs/B7_pDFYCVzt-3hUs.cjs +0 -1
  171. package/browser/cjs/BxU-OlZIQViQl7gX.cjs +0 -1
  172. package/browser/cjs/CDs8etXnw0kbBKKv.cjs +0 -1
  173. package/browser/cjs/CIpMN7SDVREKQUQE.cjs +0 -6
  174. package/browser/cjs/CycnxkfuKrDdwoJN.cjs +0 -5
  175. package/browser/cjs/D3EWCPfCu-qMOIGd.cjs +0 -1
  176. package/browser/cjs/DHKWtqZ0vQfXrbq1.cjs +0 -2
  177. package/browser/cjs/MqKQ_B5qRARrRbO4.cjs +0 -24
  178. package/browser/cjs/index.cjs +0 -1
  179. package/browser/cjs/xQ6-wbTw5UzZUM1Y.cjs +0 -1
  180. package/browser/esm/9n64lXAgZUe3aThr.mjs +0 -159
  181. package/browser/esm/BsNoW41d6hdpxTTS.mjs +0 -67
  182. package/browser/esm/BvAptAMpZVyBCx6-.mjs +0 -2402
  183. package/browser/esm/CjKioy-GzeSf08f8.mjs +0 -3326
  184. package/browser/esm/cJxidonaVNZHAXiZ.mjs +0 -4532
  185. package/browser/esm/dsVZVtt5w_yLb967.mjs +0 -5300
  186. package/node/esm/BRQYaMYO4UfhjJHw.mjs +0 -170
  187. package/node/esm/BlbtH3EvAf3K4foF.mjs +0 -2450
  188. package/node/esm/DhSPOg9wN0kD87Tb.mjs +0 -3051
  189. package/node/esm/KeV-N47eTyh5YE70.mjs +0 -4642
  190. package/node/esm/s_yVG0m9KB14YKeN.mjs +0 -3412
  191. package/types/src/legacyChart/OOXMLMappings.d.ts +0 -8
  192. package/types/src/legacyChart/OOXMLUtils.d.ts +0 -78
  193. package/types/src/legacyChart/ToOOXMLConverter.d.ts +0 -30
  194. package/types/src/reader/domVisitors/AxisVisitor.d.ts +0 -12
  195. package/types/src/reader/domVisitors/BarChartTypeVisitor.d.ts +0 -6
  196. package/types/src/reader/domVisitors/ChartSpaceVisitor.d.ts +0 -6
  197. package/types/src/reader/domVisitors/ChartTypeVisitor.d.ts +0 -7
  198. package/types/src/reader/domVisitors/ChartVisitor.d.ts +0 -7
  199. package/types/src/reader/domVisitors/DataLabelsVisitor.d.ts +0 -8
  200. package/types/src/reader/domVisitors/DataPointVisitor.d.ts +0 -6
  201. package/types/src/reader/domVisitors/HyperlinkVisitor.d.ts +0 -6
  202. package/types/src/reader/domVisitors/LayoutVisitor.d.ts +0 -5
  203. package/types/src/reader/domVisitors/LegendEntryVisitor.d.ts +0 -5
  204. package/types/src/reader/domVisitors/LegendVisitor.d.ts +0 -5
  205. package/types/src/reader/domVisitors/MarkerVisitor.d.ts +0 -5
  206. package/types/src/reader/domVisitors/NegativeShapeVisitor.d.ts +0 -6
  207. package/types/src/reader/domVisitors/PlotAreaVisitor.d.ts +0 -5
  208. package/types/src/reader/domVisitors/RichValueDataVisitor.d.ts +0 -7
  209. package/types/src/reader/domVisitors/RichValueStructureVisitor.d.ts +0 -6
  210. package/types/src/reader/domVisitors/SeriesVisitor.d.ts +0 -8
  211. package/types/src/reader/domVisitors/TitleVisitor.d.ts +0 -9
  212. package/types/src/writer/emitters/ChartColorsEmitter.d.ts +0 -7
  213. package/types/src/writer/emitters/ChartEmitter.d.ts +0 -14
  214. package/types/src/writer/emitters/ChartStyleEmitter.d.ts +0 -46
  215. package/types/src/writer/utils/HiddenFormulaXfs.d.ts +0 -28
@@ -1,159 +0,0 @@
1
- /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.7
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 { n as e } from "./DwcLXqv8-6Tl1zLO.mjs";
8
- import { t } from "./dsVZVtt5w_yLb967.mjs";
9
- import { CommonUtils as n } from "@sheetxl/utils";
10
- import { AddressUtils as r, IColor as i, IStyle as a } from "@sheetxl/sdk";
11
- var o = (e, t, n) => {
12
- let r = `Unable to read '${e}': ${t?.message ?? t}`;
13
- n?.onWarning ? n.onWarning(r, e) : console.warn(r);
14
- }, s = (e, t, n, r = null) => {
15
- if (!e) return null;
16
- let i = e;
17
- i.startsWith("/") && (i = i.substring(1));
18
- let a = r?.parsedRefs?.get(e);
19
- if (a !== void 0) return a;
20
- let s = t(i);
21
- if (!s) return null;
22
- let c = s.content;
23
- try {
24
- n && (c = n(c, e));
25
- } catch (t) {
26
- o(e, t, r);
27
- }
28
- return r?.parsedRefs?.set(e, c), c;
29
- }, c = (e, t, r, i, a = null) => {
30
- if (!e) return null;
31
- let s = e;
32
- s.startsWith("/") && (s = s.substring(1));
33
- let c = a?.parsedRefs?.get(e);
34
- if (c !== void 0) return c;
35
- let l = t(s);
36
- if (!l) return null;
37
- let u = l.content;
38
- try {
39
- let t = new TextDecoder().decode(u), o = r.parseFromString(t, "text/xml"), s = i.transform(o, e, a ?? n.EmptyObject);
40
- return a?.parsedRefs?.set(e, s), s;
41
- } catch (t) {
42
- o(e, t, a);
43
- }
44
- return null;
45
- }, l = (e, t, n, r, i = null) => {
46
- if (!e) return null;
47
- let a = c(e, t, n, r, i);
48
- if (!a) return null;
49
- let o = /* @__PURE__ */ new Map(), s = Object.keys(a), l = s.length;
50
- for (let e = 0; e < l; e++) {
51
- let t = s[e], n = a[t];
52
- o.set(t, n);
53
- }
54
- return o;
55
- }, u = (e, t, n, r, i, a = null) => {
56
- let o = /* @__PURE__ */ new Map(), s = t[e], l = s ? s.length : 0;
57
- for (let e = 0; e < l; e++) {
58
- let t = s[e];
59
- if (!t) continue;
60
- let l = t;
61
- l.startsWith("/") && (l = l.substring(1));
62
- let u = c(l, n, r, i, a);
63
- o.set(l, u);
64
- }
65
- return o;
66
- }, d = (e) => {
67
- let t = e.split(/\/+/);
68
- return t.reduce((e, t, n) => (t === "." ? e.splice(n, 1) : t === ".." && e.splice(n - 1, 2), e), t).join("/");
69
- }, f = Object.freeze([
70
- "lt1",
71
- "dk1",
72
- "lt2",
73
- "dk2",
74
- "accent1",
75
- "accent2",
76
- "accent3",
77
- "accent4",
78
- "accent5",
79
- "accent6",
80
- "hlink",
81
- "folHlink"
82
- ]), p = (e, t = "auto") => {
83
- let n, r = e("auto");
84
- r === void 0 || r !== "1" && r !== "true" || (n = t);
85
- let a = e("indexed");
86
- a && (n = a === "64" ? "auto" : `index${a}`);
87
- let o = e("rgb");
88
- o && (n = o.toLowerCase(), o.length !== 8 || o.startsWith("FF") || (n = "FF" + o.substring(2, o.length)));
89
- let s = e("theme");
90
- s && (n = f[Number(s)]);
91
- let c = e("tint");
92
- if (c && (n += ` ${i.AdjustmentType.ETint} ${parseFloat(c)}`), n) return n;
93
- }, m = (e) => e && e.replace(/^\{([\s\S]+)\}$/, "$1"), h = e({
94
- EMU_PER_PIXEL: () => _,
95
- EMU_PER_POINT: () => g,
96
- fixedPointToDouble: () => b,
97
- parseAngle: () => S,
98
- parseAsBoolean: () => C,
99
- parsePercentage: () => x,
100
- toPixels: () => y,
101
- toPoints: () => v
102
- }), g = 12700, _ = 9525, v = (e) => e ? n.roundAccurately(parseFloat(e) / g, 4) : null, y = (e) => e ? n.roundAccurately(parseFloat(e) / _, 1) : null, b = (e) => (e >> 16) + (65535 & e) / 65536, x = (e) => parseFloat(e) / 1e3, S = (e) => parseFloat(e) / 6e4, C = (e) => e === "true" || e === "1", w = "hiddenXfs", T = (e) => (Array.isArray(e) ? e[1] : e?.v)?.s, E = (e) => {
103
- if (!e || e.length === 0) return !1;
104
- let n = r.refsToRuns(e, !0), i = 0;
105
- for (let e of n) {
106
- if (e.min > i || e.value?.s === void 0) return !1;
107
- i = Math.max(i, e.max + 1);
108
- }
109
- return i > t;
110
- }, D = (e, t) => {
111
- e.protection = {
112
- ...e.protection,
113
- showFormulas: t
114
- };
115
- }, O = (e, t) => {
116
- if (!t || t.size === 0) return;
117
- let n = e.styles;
118
- if (!n) return;
119
- let r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set();
120
- for (let n of e.sheets ?? []) {
121
- let e = n?.sheet;
122
- if (!e) continue;
123
- let a = /* @__PURE__ */ new Set();
124
- E(e.cols) || a.add(0);
125
- for (let t of e.directStyles ?? []) a.add(Array.isArray(t) ? t[1] : t.v);
126
- for (let t of e.rows ?? []) {
127
- let e = T(t);
128
- e !== void 0 && a.add(e);
129
- }
130
- for (let t of e.cols ?? []) {
131
- let e = T(t);
132
- e !== void 0 && a.add(e);
133
- }
134
- let o = !1;
135
- for (let e of a) if (t.has(e)) {
136
- o = !0;
137
- break;
138
- }
139
- if (o) {
140
- e.protection = {
141
- ...e.protection ?? { sheet: !0 },
142
- showFormulas: !1
143
- };
144
- for (let e of a) (t.has(e) ? i : r).add(e);
145
- }
146
- }
147
- if (r.size === 0) return;
148
- let o = n.direct ??= [];
149
- for (let e of r) e !== 0 && D(o[e] ?? (o[e] = {}), !0);
150
- for (let e of i) e !== 0 && D(o[e] ?? (o[e] = {}), !1);
151
- if (r.has(0)) {
152
- let e = n.named ??= [], t = a.BuiltInName.Normal.toLowerCase(), r = e.find((e) => e.name?.toLowerCase() === t);
153
- r || (r = {
154
- name: a.BuiltInName.Normal,
155
- style: {}
156
- }, e.push(r)), D(r.style, !0);
157
- }
158
- };
159
- export { C as a, v as c, c as d, u as f, d as h, S as i, l, m, O as n, x as o, p, h as r, y as s, w as t, s as u };
@@ -1,67 +0,0 @@
1
- /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.7
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 { defineLazyModule as e } from "@sheetxl/utils";
8
- var t = [
9
- 208,
10
- 207,
11
- 17,
12
- 224,
13
- 161,
14
- 177,
15
- 26,
16
- 225
17
- ], n = async () => (await import("./CGXxwkCRWLc0gcRQ.mjs")).OffCryptoEncryption, r = {
18
- key: "offcrypto",
19
- description: "Office Document Encryption",
20
- detect: async (e) => !!((e) => {
21
- if (e.byteLength < t.length) return !1;
22
- let n = new Uint8Array(e, 0, t.length);
23
- for (let e = 0; e < t.length; e++) if (n[e] !== t[e]) return !1;
24
- return !0;
25
- })(e) && (await n()).detect(e),
26
- decode: async (e, t) => (await n()).decode(e, t),
27
- encode: async (e, t) => (await n()).encode(e, t)
28
- }, i = e("io-xlsx:reader", () => import("./CjKioy-GzeSf08f8.mjs"), { tier: "common" }), a = e("io-xlsx:writer", () => import("./cJxidonaVNZHAXiZ.mjs"), { tier: "common" }), o = "Excel", s = "ExcelMacro", c = {
29
- key: o,
30
- description: "Excel Workbook",
31
- mimeType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
32
- exts: ["xlsx", "xls"],
33
- handler: async (e, t) => (await i.load()).readXLSX(e, t)
34
- }, l = {
35
- key: s,
36
- description: "Excel Macro-Enabled Workbook",
37
- mimeType: "application/vnd.ms-excel.sheet.macroEnabled.12",
38
- exts: ["xlsm"],
39
- handler: async (e, t) => (await i.load()).readXLSX(e, t)
40
- }, u = {
41
- key: o,
42
- mimeType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
43
- description: "Excel Workbook",
44
- exts: ["xlsx"],
45
- handler: async (e, t) => (await a.load()).writeXLSX(e, {
46
- ...t,
47
- macroEnabled: !1
48
- })
49
- }, d = {
50
- key: s,
51
- mimeType: "application/vnd.ms-excel.sheet.macroEnabled.12",
52
- description: "Excel Macro-Enabled Workbook",
53
- exts: ["xlsm"],
54
- handler: async (e, t) => (await a.load()).writeXLSX(e, {
55
- ...t,
56
- macroEnabled: !0
57
- })
58
- }, f = {
59
- name: "@sheetxl/io-xlsx",
60
- version: "0.8.0-beta.7",
61
- description: "XLSX I/O formats for SheetXL",
62
- author: "SheetXL",
63
- async register(e) {
64
- await e.registerReadFormat(c), await e.registerReadFormat(l), await e.registerWriteFormat(u), await e.registerWriteFormat(d), await e.registerEncryption(r);
65
- }
66
- };
67
- export { s as n, o as r, f as t };