@sheetxl/sdk 0.8.0-beta.11 → 0.8.0-beta.12

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 (191) hide show
  1. package/browser/esm/{BpgskG1Er_lGQ_yS.mjs → -Jx-jNHmtIQQfLvK.mjs} +1 -1
  2. package/browser/esm/{BLoUBId2xZpXAK_H.mjs → 2WuhYrIpYmOR5H73.mjs} +15 -15
  3. package/browser/esm/{Ctjb0SsxV4K4MMqG.mjs → 2mIwPy2D2JUX-9wx.mjs} +2 -2
  4. package/browser/esm/{CkxWugaJFjDGZNZ-.mjs → B3wf5vZCsWfWsDbj.mjs} +1 -1
  5. package/browser/esm/{BjkCiv5Jz6WYKZeu.mjs → BIHrHjRGWVlJglcp.mjs} +2 -2
  6. package/browser/esm/{BtvLTTfSBdAKplVG.mjs → BTFBedJMRWGvZyCE.mjs} +1 -1
  7. package/browser/esm/{C4MqfLn9Dm-l3OIk.mjs → BdCJNawfifyPupCP.mjs} +1 -1
  8. package/browser/esm/{CV5EGEjG5_-CPpP0.mjs → Bg5Di9GLNAkbqQ1P.mjs} +3 -3
  9. package/browser/esm/{C2VbEI_XVAoseAwa.mjs → BnC4-27Igwb8oDf2.mjs} +2 -2
  10. package/browser/esm/{CQYjO777cmAznUzK.mjs → Bt8_m94tBdks209L.mjs} +1 -1
  11. package/browser/esm/{C16ycKja6zG0crV_.mjs → BudSIfXBAsTxvu-K.mjs} +17836 -15712
  12. package/browser/esm/{DvAaxH6z_tGvrRzl.mjs → C9u8FUewte5ugUjH.mjs} +686 -686
  13. package/browser/esm/{DEiPS3Dr-s4fPbVZ.mjs → CBYMTDzMf1Vh7pkw.mjs} +1 -1
  14. package/browser/esm/{Dyq_ivuHvlXLwPCl.mjs → CNdjyofiRu6CYOrr.mjs} +1106 -1102
  15. package/browser/esm/{PcHFjNzQsE54POri.mjs → CRkYR-siY2C994KV.mjs} +1 -1
  16. package/browser/esm/{C5E6zSGAALWf61n4.mjs → CTe2qfmIUEad6FJv.mjs} +2 -2
  17. package/browser/esm/{BoV6zPBnfqCBCqZ7.mjs → CUzYuYTTGsChC_kZ.mjs} +3841 -3148
  18. package/browser/esm/CdEO8CEee6lEhabA.mjs +117 -0
  19. package/browser/esm/{S2dNNx1a5ydRnARM.mjs → CfRqiPDg6RBTg1EN.mjs} +2 -2
  20. package/browser/esm/{ClbvFbFzFzXLBKNN.mjs → CndRBvVfQUJIYRRj.mjs} +50 -50
  21. package/browser/esm/{BnG31I6Oj_HEtSPS.mjs → CwOPLXU3-9ZHGyOT.mjs} +1 -1
  22. package/browser/esm/{CHU6iu_WGlm7fLET.mjs → Cxjxk0ncRKx80I-w.mjs} +1 -1
  23. package/browser/esm/D2RZh0O9neOsyLAE.mjs +281 -0
  24. package/browser/esm/{BkBhLS0l6z8sxI6D.mjs → D64dM68B1pKYFzdP.mjs} +2 -2
  25. package/browser/esm/{BVDiOXGMc5_FMGfy.mjs → D9xNz46kAfXMZzp4.mjs} +2 -2
  26. package/browser/esm/{zlLuW405RSguy4Kn.mjs → DK899HhWX1HINMC1.mjs} +53 -53
  27. package/browser/esm/{B7aUIvgUjncMMD_i.mjs → DPhGQLNGmDZwODwJ.mjs} +5 -4
  28. package/browser/esm/{gssVX_FH1XFN-twD.mjs → DVroRnhi-5IDXNgM.mjs} +1 -1
  29. package/{node/esm/CZICGK_ss0HoGHCP.mjs → browser/esm/DZiivy0NmO1Vnyzk.mjs} +2 -2
  30. package/browser/esm/{ClPfI4lODvCece29.mjs → DgrAuRD2qr2DvFeJ.mjs} +61 -61
  31. package/browser/esm/{CU3DmJ-YnVVrC1_k.mjs → DobHLF6VjHr7Xi40.mjs} +1 -1
  32. package/browser/esm/{CaB7J-xgfKO2uAkG.mjs → DwZCT7DZiiXoTweg.mjs} +2 -2
  33. package/browser/esm/{BMyDRQ716j79h_bH.mjs → DwwR3O2sEZApPSTF.mjs} +6 -6
  34. package/browser/esm/{DLLE0FZNsKxbBzRn.mjs → Tah7cnFb_HNZdLtj.mjs} +45 -45
  35. package/browser/esm/{Dlmig06rIo7cInRk.mjs → fXWUMDhZ5yMSO629.mjs} +1 -1
  36. package/browser/esm/{DWNzqw7DUKwoxjri.mjs → hCQJcmIzPDxDEv2q.mjs} +2 -2
  37. package/browser/esm/index.mjs +679 -542
  38. package/browser/esm/{BFagR2JeWs74iAG3.mjs → qO-ujUrgq6H3TQix.mjs} +1 -1
  39. package/browser/esm/w6Jea0TiclPrYZ2M.mjs +1703 -0
  40. package/browser/esm/yuhcOYw6SHQ-RCm3.mjs +114 -0
  41. package/node/esm/-TA0MneBDKdGhsib.mjs +8668 -0
  42. package/node/esm/{B21JjOLghRoDOrkx.mjs → B-HUPAcqvK0eeeCz.mjs} +1 -1
  43. package/node/esm/{DNRhGK-8Tr9xcRyc.mjs → BL2iiEoqxDEV2Xrg.mjs} +3 -3
  44. package/node/esm/{D1TKBVmoKGAXf37B.mjs → BNXLOEddJ6O9gYws.mjs} +2 -2
  45. package/node/esm/{BrCKGFRsX_ezFJ4B.mjs → BSvOluusoDM4z_dx.mjs} +15 -15
  46. package/node/esm/{BIwObuhTJYf0jpUa.mjs → BskP3b8vUoIOGLY6.mjs} +2 -2
  47. package/node/esm/{2Kihw_-5lVTEnwMa.mjs → Btw4148Ot8ifhNc1.mjs} +1 -1
  48. package/node/esm/{BqiexuA89caYnAPz.mjs → C14-R6tifRh7pc0p.mjs} +1 -1
  49. package/node/esm/{DUTskXCXref-IJnI.mjs → C99zzq8DImQXi4BQ.mjs} +47 -47
  50. package/node/esm/{D8zEN-6ZdDqDvTxM.mjs → CBuEu5Jk-LfaDy-H.mjs} +61 -61
  51. package/node/esm/{yavzZOiZW_EjG9lE.mjs → CG-qBU5BAaVz7e-P.mjs} +1 -1
  52. package/node/esm/CPI58duc0j0a-HpJ.mjs +115 -0
  53. package/node/esm/{CCN5vD410obwdz38.mjs → CRt3vXe6YmXzqk3H.mjs} +15 -14
  54. package/node/esm/{CzXT00vrQa1_gvW9.mjs → C_aL7CGS1lrNn1Ng.mjs} +1 -1
  55. package/node/esm/{CZiqiay42tFTrLI4.mjs → C_xf5Bz30VqiJjXn.mjs} +1 -1
  56. package/node/esm/{BIRq1kT7lLRzns9t.mjs → CiIymQN6aJCul62g.mjs} +9 -9
  57. package/node/esm/{CNCNJNg890KdgkWh.mjs → Ci_zLYmCD7e-C79O.mjs} +1 -1
  58. package/{browser/esm/D5np__Jb1euAyaLw.mjs → node/esm/CkRYLed8Mmn3giNg.mjs} +2 -2
  59. package/node/esm/D3ptRKzASqBut1DE.mjs +117 -0
  60. package/node/esm/{cGwrLA1RCE-WhJ7w.mjs → D4ROK9UwDpS6jO3Z.mjs} +1 -1
  61. package/node/esm/{mFiBSM7XgBHV9AY7.mjs → D8hO07ToAibIuniw.mjs} +1535 -1531
  62. package/node/esm/{CDHdgJXH2vS71WMc.mjs → DUTmDHbFbhLDT4F3.mjs} +1 -1
  63. package/node/esm/{CGp6VZL-gZa9Uezx.mjs → DV5CU37aEbFbWFL0.mjs} +1 -1
  64. package/node/esm/{De2IONBxQhz-Qbyh.mjs → DdoiuKg9BKubtF1V.mjs} +1 -1
  65. package/node/esm/{Db0v7zXNnyjBIjjI.mjs → DggQ23jKMpwhENfa.mjs} +2 -2
  66. package/node/esm/{CwePQwTILHHjGDkZ.mjs → DhS6yWjrrSNIJMsn.mjs} +204 -204
  67. package/node/esm/{D_t5AUxSm7_icjzq.mjs → DhTya_mhmN53vskv.mjs} +1 -1
  68. package/node/esm/{DOU54VsOjG-m-NyQ.mjs → Dn1M7YWi25DeeYUb.mjs} +1 -1
  69. package/node/esm/{DkwIPzKc3UwdUIfM.mjs → DrCf6ITcBhVOFpRj.mjs} +6 -6
  70. package/node/esm/{D2KBymQJd1XhpeQD.mjs → DxazKtROyaI51dWl.mjs} +1 -1
  71. package/node/esm/{D6e2z7eZpxOJXHc7.mjs → Q_S1g46ZOTrdhTae.mjs} +1 -1
  72. package/node/esm/{OVfaSb506tNSIvbv.mjs → Vocy-I9dKzZMr0Ct.mjs} +19038 -16822
  73. package/node/esm/ZXPFcsT2zrALCZux.mjs +289 -0
  74. package/node/esm/{857CIBgQgGpnqrXk.mjs → eimUGjiIP-b8HiM6.mjs} +55 -55
  75. package/node/esm/{Bbf1Pm9Gk7YpLTvg.mjs → icn2nX5Z8e_3mNAv.mjs} +1 -1
  76. package/node/esm/index.mjs +740 -603
  77. package/node/esm/{Ct3h15sCus4Tgt6M.mjs → lGJ42sHqg5if2bba.mjs} +624 -616
  78. package/node/esm/{CdJHUJSBRHZoryPe.mjs → pYtP7wPyS96NQyXS.mjs} +59 -59
  79. package/package.json +6 -6
  80. package/resources/locales/de/model.msg.json +8 -2
  81. package/resources/locales/en/model.msg.json +9 -2
  82. package/types/scripting-api.json +10619 -10446
  83. package/types/scripting-enums.json +20 -1
  84. package/types/scripting.d.ts +1233 -296
  85. package/types/src/{sheet → anomalies}/_Anomalies.d.ts +3 -3
  86. package/types/src/anomalies/_FocusTable.d.ts +11 -0
  87. package/types/src/{sheet/_AnomalyFormulaChecks.d.ts → anomalies/_FormulaChecks.d.ts} +10 -2
  88. package/types/src/{sheet/_AnomalyLabelChecks.d.ts → anomalies/_LabelChecks.d.ts} +1 -1
  89. package/types/src/anomalies/_LiteralChecks.d.ts +35 -0
  90. package/types/src/anomalies/_SeriesChecks.d.ts +13 -0
  91. package/types/src/calculation/Calculation.d.ts +47 -9
  92. package/types/src/calculation/ExternalBookBindings.d.ts +2 -3
  93. package/types/src/calculation/ICalculation.d.ts +96 -9
  94. package/types/src/calculation/NamedFormulaCollection.d.ts +104 -8
  95. package/types/src/calculation/_CloneBoundary.d.ts +1 -1
  96. package/types/src/calculation/compiler/ASTTypes.d.ts +6 -2
  97. package/types/src/calculation/compiler/Types.d.ts +8 -0
  98. package/types/src/calculation/engine/CalcBackend.d.ts +104 -6
  99. package/types/src/calculation/executor/CalcExecutor.d.ts +73 -22
  100. package/types/src/calculation/executor/CalcExecutorUtils.d.ts +17 -1
  101. package/types/src/calculation/executor/_WhatIf.d.ts +50 -0
  102. package/types/src/calculation/formula/FormulaBlock.d.ts +4 -3
  103. package/types/src/calculation/formula/IFormulaBlock.d.ts +5 -0
  104. package/types/src/calculation/functions/_DataTableFunction.d.ts +14 -0
  105. package/types/src/calculation/grid/CalcGrid.d.ts +4 -6
  106. package/types/src/calculation/grid/CalcGridBackend.d.ts +5 -27
  107. package/types/src/calculation/grid/CalcGridProxy.d.ts +0 -2
  108. package/types/src/calculation/grid/CalcGridUtils.d.ts +4 -2
  109. package/types/src/calculation/grid/ICalcGrid.d.ts +16 -12
  110. package/types/src/calculation/grid/_CalcRequest.d.ts +17 -5
  111. package/types/src/calculation/spatial/FormulaSpatialValue.d.ts +2 -0
  112. package/types/src/calculation/spatial/SpillEntry.d.ts +16 -2
  113. package/types/src/calculation/state/CalcNode.d.ts +0 -1
  114. package/types/src/calculation/state/CalcScope.d.ts +29 -0
  115. package/types/src/calculation/state/CalcState.d.ts +26 -4
  116. package/types/src/calculation/state/CalculationContext.d.ts +28 -1
  117. package/types/src/calculation/state/DeferredCalls.d.ts +260 -0
  118. package/types/src/calculation/state/IContextContainer.d.ts +20 -0
  119. package/types/src/calculation/state/_PendingOverlayGrid.d.ts +6 -0
  120. package/types/src/calculation/state/_WhatIfLayer.d.ts +91 -0
  121. package/types/src/cell/ICell.d.ts +53 -34
  122. package/types/src/cellControl/CellControl.d.ts +67 -0
  123. package/types/src/cellControl/CellControlCollection.d.ts +29 -0
  124. package/types/src/cellControl/CellControlRegistry.d.ts +47 -0
  125. package/types/src/cellControl/ICellControl.d.ts +99 -0
  126. package/types/src/cellControl/ICellControlCollection.d.ts +67 -0
  127. package/types/src/cellControl/index.d.ts +4 -0
  128. package/types/src/cellRange/ICellRange.d.ts +207 -59
  129. package/types/src/cellRange/ICellRanges.d.ts +4 -3
  130. package/types/src/chart/layout/ChartLayout.d.ts +5 -1
  131. package/types/src/chart/resolve/_Resolve.d.ts +10 -0
  132. package/types/src/chart/resolve/_ResolvedChart.d.ts +5 -2
  133. package/types/src/collections/ISparseGrid.d.ts +11 -2
  134. package/types/src/collections/MixedTypedArrayList.d.ts +8 -2
  135. package/types/src/collections/SparseGrid.d.ts +3 -8
  136. package/types/src/condition/AnchoredConditional.d.ts +2 -2
  137. package/types/src/externalBook/IExternalBook.d.ts +3 -4
  138. package/types/src/fetch/Fetcher.d.ts +15 -0
  139. package/types/src/fetch/IFetcher.d.ts +47 -0
  140. package/types/src/fetch/_WorkbookFetch.d.ts +43 -0
  141. package/types/src/fetch/index.d.ts +3 -0
  142. package/types/src/fill/PaintUtils.d.ts +3 -1
  143. package/types/src/hyperlink/IHyperlink.d.ts +10 -0
  144. package/types/src/hyperlink/_Hyperlink.d.ts +4 -1
  145. package/types/src/index.d.ts +2 -1
  146. package/types/src/named/INamedCollection.d.ts +36 -0
  147. package/types/src/named/NamedCollection.d.ts +18 -0
  148. package/types/src/primitives/AsyncValue.d.ts +58 -0
  149. package/types/src/resource/IResource.d.ts +9 -0
  150. package/types/src/resource/IResourceCollection.d.ts +4 -0
  151. package/types/src/resource/Resource.d.ts +2 -0
  152. package/types/src/resource/_AddResource.d.ts +13 -0
  153. package/types/src/richData/CellImage.d.ts +95 -0
  154. package/types/src/richData/Hyperlink.d.ts +49 -0
  155. package/types/src/richData/IRichDataCollection.d.ts +76 -0
  156. package/types/src/richData/IRichDataKind.d.ts +55 -11
  157. package/types/src/richData/RichArray.d.ts +42 -0
  158. package/types/src/richData/RichDataCollection.d.ts +23 -0
  159. package/types/src/richData/RichDataRegistry.d.ts +46 -14
  160. package/types/src/richData/RichDataValues.d.ts +20 -0
  161. package/types/src/richData/RichRecord.d.ts +68 -0
  162. package/types/src/richData/RichText.d.ts +5 -5
  163. package/types/src/richData/index.d.ts +6 -0
  164. package/types/src/scripting/FunctionArguments.d.ts +17 -1
  165. package/types/src/scripting/FunctionCollection.d.ts +8 -0
  166. package/types/src/scripting/Scripts.d.ts +10 -0
  167. package/types/src/scripting/TypedFunction.d.ts +2 -0
  168. package/types/src/sheet/ICellContainerOptions.d.ts +6 -0
  169. package/types/src/sheet/IWorksheet.d.ts +24 -17
  170. package/types/src/sheet/SheetCell.d.ts +17 -1
  171. package/types/src/sheet/SheetRange.d.ts +8 -2
  172. package/types/src/sheet/SheetRanges.d.ts +2 -2
  173. package/types/src/sheet/Worksheet.d.ts +110 -56
  174. package/types/src/sheet/_ListenerAnchor.d.ts +7 -1
  175. package/types/src/sheet/_ScalarListFactory.d.ts +54 -6
  176. package/types/src/sheet/_SheetMutations.d.ts +4 -1
  177. package/types/src/sheet/_SheetStateTypes.d.ts +23 -11
  178. package/types/src/workbook/IWorkbook.d.ts +40 -1
  179. package/types/src/workbook/Workbook.d.ts +25 -3
  180. package/types/src/workbook/WorkbookRanges.d.ts +1 -1
  181. package/browser/esm/BGOFfpxr2jPIdqmV.mjs +0 -40
  182. package/browser/esm/f1IoRb7tEb0QmCSt.mjs +0 -110
  183. package/browser/esm/nvU0ClAbf0g94YBK.mjs +0 -1695
  184. package/node/esm/B084DssTcdBheTp_.mjs +0 -7966
  185. package/node/esm/Df1bL6VFvrqIdSLB.mjs +0 -40
  186. package/node/esm/DrTZbfemSLq2mseG.mjs +0 -111
  187. package/types/src/dataTable/DataTable.d.ts +0 -67
  188. package/types/src/dataTable/DataTableCollection.d.ts +0 -19
  189. package/types/src/dataTable/IDataTable.d.ts +0 -99
  190. package/types/src/dataTable/IDataTableCollection.d.ts +0 -18
  191. package/types/src/dataTable/index.d.ts +0 -6
@@ -0,0 +1,115 @@
1
+ /**
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.12
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 { Jn as r, Xr as e, Zn as t, Zr as n, br as o, ht as s, mn as a, pt as i, rr as c, zn as l } from "./Vocy-I9dKzZMr0Ct.mjs";
8
+ import { C as u, E as m, T as f, h as p, i as d, r as g, w as h, x as y, y as v } from "./lGJ42sHqg5if2bba.mjs";
9
+ import { n as w, r as x, t as k } from "./eimUGjiIP-b8HiM6.mjs";
10
+ import { i as j, r as T } from "./DhS6yWjrrSNIJMsn.mjs";
11
+ import { a as b, n as E } from "./D3ptRKzASqBut1DE.mjs";
12
+ import { ScalarType as I } from "@sheetxl/primitives";
13
+ import S from "@sheetxl/formulas/declarations";
14
+ import z from "@sheetxl/formulas-extended/declarations";
15
+ var C = null;
16
+ function O(r) {
17
+ return C || (C = (() => {
18
+ const r = /* @__PURE__ */ new Map(), e = [
19
+ ...S,
20
+ ...z,
21
+ E
22
+ ];
23
+ for (const { declarations: t, enums: n } of e) {
24
+ const e = /* @__PURE__ */ new Map(), o = (r) => {
25
+ let t = e.get(r);
26
+ if (!t) {
27
+ const o = n?.[r];
28
+ if (!o) return;
29
+ t = {
30
+ id: r,
31
+ type: "string" === o.s ? I.String : I.Number,
32
+ members: o.m
33
+ }, e.set(r, t);
34
+ }
35
+ return t;
36
+ };
37
+ for (const e of Object.keys(t)) {
38
+ const { decl: n } = b(e, t[e], o), s = new a(n);
39
+ r.set(e.toUpperCase(), {
40
+ getName: () => e,
41
+ getDeclaration: () => s,
42
+ isBuiltIn: () => !0
43
+ });
44
+ }
45
+ }
46
+ return r;
47
+ })()), C.get(r.toUpperCase()) ?? null;
48
+ }
49
+ var D = null, M = Object.freeze({
50
+ rowStart: 0,
51
+ colStart: 0,
52
+ rowEnd: n,
53
+ colEnd: e
54
+ }), N = (r) => O(r);
55
+ function U(r, e) {
56
+ if ("string" != typeof r || 0 === r.length) return null;
57
+ D || (D = new T());
58
+ const t = e?.anchor;
59
+ let n;
60
+ try {
61
+ const s = D.parse(t?.rowIndex ?? 0, t?.colIndex ?? 0, r);
62
+ if (s.errors.length > 0 || !s.root || s.root.type === o.Unparsed) return null;
63
+ if (n = s.root, e?.normalize) {
64
+ const r = h(n, N);
65
+ "string" != typeof r && (n = r), n = m(n, N), n = g(n, N), n = v(n), n = f(n), n = u(n), n = d(n), n = y(n);
66
+ }
67
+ } catch {
68
+ return null;
69
+ }
70
+ return w(n, null);
71
+ }
72
+ function B(r, e) {
73
+ return x(r, e);
74
+ }
75
+ function Z(r, e) {
76
+ const t = p(g(v(k(r)), N)), n = e?.entireCoords ?? M, o = !0 === e?.r1c1;
77
+ return (r) => o ? s(t, n) : i(t, n, r?.rowIndex ?? 0, r?.colIndex ?? 0);
78
+ }
79
+ function J(e) {
80
+ const n = e.trim();
81
+ if (!n) return;
82
+ let o;
83
+ try {
84
+ const r = j.shared().tokenize(n, !1);
85
+ if (r.errors.length > 0) return;
86
+ o = r.tokens;
87
+ } catch {
88
+ return;
89
+ }
90
+ let s = 0, a = 0;
91
+ if (2 === o.length) {
92
+ const r = o[0].tokenType?.name;
93
+ "MinOp" === r ? (s = -1, a = 1) : "PlusOp" === r && (s = 1, a = 1);
94
+ }
95
+ if (o.length - a !== 1) return;
96
+ const i = o[a], u = i.image;
97
+ try {
98
+ switch (i.tokenType?.name) {
99
+ case "NumberToken":
100
+ case "ScientificDigit":
101
+ case "DigitToken": {
102
+ const r = t(u).value;
103
+ return 0 === s ? r : s * r;
104
+ }
105
+ case "StringToken": return 0 === s ? c(u).value : void 0;
106
+ case "BooleanToken": return 0 === s ? l(u).value : void 0;
107
+ case "LiteralError":
108
+ case "RefError": return 0 === s ? r(u).value : void 0;
109
+ default: return;
110
+ }
111
+ } catch {
112
+ return;
113
+ }
114
+ }
115
+ export { O as getFunctionDeclaration, Z as imager, U as parse, J as readFormulaLiteral, B as transform };
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.11
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.12
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import { Ht as e, dr as t, fr as n } from "./OVfaSb506tNSIvbv.mjs";
8
- import { D as r, E as s, a, c as o, d as l, f as i, l as c, m as u, n as p, o as d, p as f, r as h, s as g, u as m, v as x, w as y } from "./Ct3h15sCus4Tgt6M.mjs";
9
- import { n as v, r as I, t as _ } from "./CwePQwTILHHjGDkZ.mjs";
10
- import { FormulaError as b } from "@sheetxl/primitives";
7
+ import { At as e, br as t, xr as n } from "./Vocy-I9dKzZMr0Ct.mjs";
8
+ import { D as r, E as s, a, c as o, d as l, f as i, l as c, m as u, n as p, o as d, p as f, r as h, s as g, u as m, v as x, w as y } from "./lGJ42sHqg5if2bba.mjs";
9
+ import { n as v, r as I, t as b } from "./DhS6yWjrrSNIJMsn.mjs";
10
+ import { FormulaError as _ } from "@sheetxl/primitives";
11
11
  import { CommonUtils as T } from "@sheetxl/utils";
12
12
  var P = class {
13
13
  constructor(e) {
@@ -15,7 +15,7 @@ var P = class {
15
15
  }
16
16
  compile(e, t, p, I, T, P, k, E, w) {
17
17
  if (0 === I.length) {
18
- const t = new b.Parse(_);
18
+ const t = new _.Parse(b);
19
19
  return this._compileUnparsed(e, T, I, {
20
20
  input: I,
21
21
  cause: t,
@@ -23,7 +23,7 @@ var P = class {
23
23
  });
24
24
  }
25
25
  if (I.length > n.MAX_EXPRESSION_LENGTH) {
26
- const t = new b.Parse(v(I.length, n.MAX_EXPRESSION_LENGTH));
26
+ const t = new _.Parse(v(I.length, n.MAX_EXPRESSION_LENGTH));
27
27
  return this._compileUnparsed(e, T, I, {
28
28
  input: I,
29
29
  cause: t,
@@ -35,21 +35,21 @@ var P = class {
35
35
  const e = this._parser.parse(t, p, I);
36
36
  F = e.root, U = e.errors, E && F && 0 === U.length && (F.legacyIntersect = !0);
37
37
  } catch (e) {
38
- C = b.isError(e, b.Code.Parse) ? e : new b.Parse(e.message, e);
38
+ C = _.isError(e, _.Code.Parse) ? e : new _.Parse(e.message, e);
39
39
  }
40
40
  const z = [];
41
41
  for (const e of U) z.push(u(e));
42
42
  if (F) {
43
43
  const e = y(F, P ?? null);
44
- "string" == typeof e ? z.push(new b.Parse(e)) : F = e, l(F, P ?? null) && z.push(new b.Parse("The implicit intersection operator ' ' requires a cell or range on both sides")), m(F, P ?? null) && z.push(new b.Parse("The spill anchor operator '#' requires a cell or range")), f(F, P ?? null) && z.push(new b.Parse("Expected a reference; a value cannot be converted to one."));
44
+ "string" == typeof e ? z.push(new _.Parse(e)) : F = e, l(F, P ?? null) && z.push(new _.Parse("The implicit intersection operator ' ' requires a cell or range on both sides")), m(F, P ?? null) && z.push(new _.Parse("The spill anchor operator '#' requires a cell or range")), f(F, P ?? null) && z.push(new _.Parse("Expected a reference; a value cannot be converted to one."));
45
45
  const t = d(F, P ?? null);
46
- t && z.push(new b.Parse(t));
46
+ t && z.push(new _.Parse(t));
47
47
  const n = g(F, P ?? null);
48
- n && z.push(new b.Parse(n));
48
+ n && z.push(new _.Parse(n));
49
49
  const r = o(F, P ?? null);
50
- r && z.push(new b.Parse(r));
50
+ r && z.push(new _.Parse(r));
51
51
  const s = c(F);
52
- s && z.push(new b.Parse(s));
52
+ s && z.push(new _.Parse(s));
53
53
  }
54
54
  z.length > 0 && !C && (C = z[0]);
55
55
  let R = null;
@@ -75,7 +75,7 @@ var P = class {
75
75
  });
76
76
  const n = i(F, T);
77
77
  if (n) {
78
- const e = new b.Parse(n);
78
+ const e = new _.Parse(n);
79
79
  z.push(e), R = {
80
80
  input: I,
81
81
  cause: R?.cause ?? e,
@@ -139,6 +139,7 @@ var P = class {
139
139
  namedIds: T.EmptyArray,
140
140
  symbolIds: T.EmptyArray,
141
141
  hasTotals: !1,
142
+ hasDataTable: !1,
142
143
  hasVolatile: !1,
143
144
  isBlankCacheable: !1,
144
145
  isBlankCacheableArray: !1,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.11
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.12
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.11
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.12
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.11
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.12
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import { t } from "./Bbf1Pm9Gk7YpLTvg.mjs";
7
+ import { t } from "./icn2nX5Z8e_3mNAv.mjs";
8
8
  var c = 2 * Math.PI;
9
9
  function n(t, c) {
10
10
  const n = Math.cos(c), e = Math.sin(c), s = Math.cos(t.phi), y = Math.sin(t.phi);
@@ -298,7 +298,7 @@ function g(t, c) {
298
298
  }
299
299
  return t;
300
300
  }
301
- function $(e, s) {
301
+ function k(e, s) {
302
302
  const y = [], x = (c) => t(c, s);
303
303
  for (const t of e) {
304
304
  t.implicit || y.push(`M${x(t.x)} ${x(t.y)}`);
@@ -328,7 +328,7 @@ function $(e, s) {
328
328
  }
329
329
  return y.join(" ");
330
330
  }
331
- var k = 192 / 72, b = {
331
+ var $ = 192 / 72, b = {
332
332
  sm: 1,
333
333
  med: 1.5,
334
334
  lg: 2.5
@@ -364,10 +364,10 @@ function v(t, c) {
364
364
  if (!n || "none" === n) return null;
365
365
  const e = t?.length ?? "med", s = t?.width ?? "med";
366
366
  if ("arrow" === n) return function(t, c, n) {
367
- const e = Math.max(t, k), s = w[c] * e, y = A[n] * e, x = Math.atan(y / s), r = Math.hypot(s, y), o = t / (2 * Math.sin(x / 2)), a = t / 2, i = Math.cos(x), h = Math.sin(x), u = o / 2, l = (t, c) => ({
367
+ const e = Math.max(t, $), s = w[c] * e, y = A[n] * e, x = Math.atan(y / s), r = Math.hypot(s, y), o = t / (2 * Math.sin(x / 2)), a = t / 2, i = Math.cos(x), h = Math.sin(x), u = o / 2, l = (t, c) => ({
368
368
  x: t + u,
369
369
  y: c
370
- }), p = l(-o / 2, 0), f = l(r * i - a * h, -r * h - a * i), M = l(r * i, -r * h), m = l(r * i + a * h, -r * h + a * i), d = l(o / 2, 0), g = l(r * i + a * h, r * h - a * i), $ = l(r * i, r * h), b = l(r * i - a * h, r * h + a * i), L = (t, c) => ({
370
+ }), p = l(-o / 2, 0), f = l(r * i - a * h, -r * h - a * i), M = l(r * i, -r * h), m = l(r * i + a * h, -r * h + a * i), d = l(o / 2, 0), g = l(r * i + a * h, r * h - a * i), k = l(r * i, r * h), b = l(r * i - a * h, r * h + a * i), L = (t, c) => ({
371
371
  k: "L",
372
372
  x0: t.x,
373
373
  y0: t.y,
@@ -397,7 +397,7 @@ function v(t, c) {
397
397
  v(M, f, m),
398
398
  L(m, d),
399
399
  L(d, g),
400
- v($, g, b),
400
+ v(k, g, b),
401
401
  L(b, p)
402
402
  ]
403
403
  }],
@@ -405,7 +405,7 @@ function v(t, c) {
405
405
  sample: o / 2
406
406
  };
407
407
  }(c, e, s);
408
- const y = Math.max(c, k), x = b[e] * y, r = b[s] * y;
408
+ const y = Math.max(c, $), x = b[e] * y, r = b[s] * y;
409
409
  switch (n) {
410
410
  case "triangle": return {
411
411
  outline: [L([
@@ -607,4 +607,4 @@ function I(t, c) {
607
607
  ends: y
608
608
  } : null;
609
609
  }
610
- export { $ as i, g as n, p as r, I as t };
610
+ export { k as i, g as n, p as r, I as t };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.11
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.12
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.11
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.12
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- export { n as addSubpathsBounds, t as decorateSubpaths, r as emptyBox, i as subpathsToSVG } from "./BjkCiv5Jz6WYKZeu.mjs";
7
+ export { n as addSubpathsBounds, t as decorateSubpaths, r as emptyBox, i as subpathsToSVG } from "./CiIymQN6aJCul62g.mjs";
@@ -0,0 +1,117 @@
1
+ /**
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.12
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 { r as e } from "./ZXPFcsT2zrALCZux.mjs";
8
+ import { FormulaError as r, ScalarType as t } from "@sheetxl/primitives";
9
+ function n(e, r, n) {
10
+ const l = (e) => {
11
+ let r = null;
12
+ e.s ? r = e.s : e.r || e.g || (r = t.Number);
13
+ const o = {
14
+ name: e.n,
15
+ scalar: r,
16
+ range: e.r ?? null,
17
+ arrayDepth: e.d ?? 0,
18
+ optional: "?" === e.m,
19
+ rest: "..." === e.m
20
+ };
21
+ return void 0 !== e.e && (o.enum = n(e.e)), e.l && (o.lambda = e.l), void 0 !== e.a && (o.lambdaArity = e.a), e.ae && (o.acceptError = !0), void 0 !== e.v && (o.defaultValue = e.v), e.u && (o.omittable = !0), void 0 !== e.w && (o.omittedValue = e.w), e.nl && (o.noLift = !0), e.nf && (o.noFilter = !0), e.lz && (o.lazy = !0), e.rt && (o.reportType = !0), e.vr && (o.valueOrRange = !0), e.g && (o.repeating = e.g.map(l)), delete o.dim, o;
22
+ }, o = [], u = r.p;
23
+ if (u) for (let e = 0; e < u.length; e++) o.push(l(u[e]));
24
+ let a = null;
25
+ r.r && (a = {}, r.r.s && (a.scalar = r.r.s), r.r.r && (a.range = "p" === r.r.r || "r" === r.r.r || "m" === r.r.r ? r.r.r : null), r.r.d && (a.arrayDepth = r.r.d ?? 0), r.r.l && (a.lambda = r.r.l || null), r.r.k && (a.kind = r.r.k), r.r.vol && (a.volatile = !0));
26
+ const i = {
27
+ name: e,
28
+ parameters: o,
29
+ returnType: a,
30
+ context: r.c ? "calculation" : null,
31
+ maxArguments: r.mx
32
+ };
33
+ r.h && (i.hidden = !0);
34
+ const s = [];
35
+ for (const e of o) for (const r of [e, ...e.repeating ?? []]) r.enum && !s.includes(r.enum.id) && s.push(r.enum.id);
36
+ return {
37
+ decl: i,
38
+ enumIds: s
39
+ };
40
+ }
41
+ var l = "SheetXL", o = {
42
+ declarations: { TABLE: {
43
+ p: [
44
+ {
45
+ n: "rowInput",
46
+ r: "r",
47
+ m: "?",
48
+ u: 1,
49
+ ae: 1
50
+ },
51
+ {
52
+ n: "columnInput",
53
+ r: "r",
54
+ m: "?",
55
+ u: 1,
56
+ ae: 1
57
+ },
58
+ { n: "rows" },
59
+ { n: "columns" }
60
+ ],
61
+ r: { r: "r" }
62
+ } },
63
+ category: l
64
+ }, u = async () => ({ default: { TABLE: {
65
+ s: "Returns a what-if data table: a formula on the table's edge evaluated with each axis value put into the input cells.",
66
+ p: {
67
+ rowInput: { d: "is the cell the values in the row above the results are put into; omit it for a table with one input down a column." },
68
+ columnInput: { d: "is the cell the values in the column left of the results are put into; omit it for a table with one input along a row." },
69
+ rows: { d: "is the number of rows of results." },
70
+ columns: { d: "is the number of columns of results." }
71
+ }
72
+ } } }), a = (e, t, n) => {
73
+ if (null == n) return null;
74
+ if (r.isError(n)) return r.isError(n, r.Code.Ref) ? "ref" : r.BuiltIn.Value;
75
+ const l = n;
76
+ if (!0 !== l.isIReferenceRange) return r.BuiltIn.Value;
77
+ const o = l.getCoords();
78
+ return o.rowStart !== o.rowEnd || o.colStart !== o.colEnd || e._gridIdOfReference(o) !== t ? r.BuiltIn.Value : {
79
+ rowIndex: o.rowStart,
80
+ colIndex: o.colStart
81
+ };
82
+ }, i = (e, r) => {
83
+ if ("number" != typeof e || !Number.isFinite(e)) return null;
84
+ const t = Math.trunc(e);
85
+ return t >= 1 && t <= r ? t : null;
86
+ }, s = (t) => ({ TABLE: (n, l, o, u) => ((t, n, l, o, u) => {
87
+ const s = t(), c = s._gridIdOfReference(null);
88
+ if (!c) return r.BuiltIn.Value;
89
+ const f = a(s, c, n);
90
+ if (r.isError(f)) return f;
91
+ const d = a(s, c, l);
92
+ if (r.isError(d)) return d;
93
+ if (null === f && null === d) return r.BuiltIn.Value;
94
+ const m = s.getEntireCoords(), p = i(o, m.rowEnd + 1), h = i(u, m.colEnd + 1);
95
+ if (null === p || null === h) return r.BuiltIn.Value;
96
+ const g = s.getRow(), w = s.getColumn();
97
+ if (0 === g || 0 === w) return r.BuiltIn.Ref;
98
+ if ("ref" === f || "ref" === d) return s.createRange(p, h, r.BuiltIn.Ref);
99
+ const I = {
100
+ gridId: c,
101
+ row: g,
102
+ col: w,
103
+ rows: p,
104
+ cols: h,
105
+ rowInput: f,
106
+ colInput: d
107
+ }, v = e(I);
108
+ for (let e = 0; e < v.length; e++) {
109
+ const r = s.getReference(v[e]);
110
+ if (r?.isFormulaError) return r;
111
+ const t = r.getRowCount(), n = r.getColumnCount();
112
+ for (let e = 0; e < t; e++) for (let t = 0; t < n; t++) r.getValueAt(e, t);
113
+ }
114
+ const b = s._evaluateWhatIf(I);
115
+ return null === b ? r.BuiltIn.Value : s.createRange(p, h, b);
116
+ })(t, n, l, o, u) });
117
+ export { n as a, s as i, o as n, u as r, l as t };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.11
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.12
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.