@sheetxl/sdk 0.8.0-beta.14 → 0.8.0-beta.16
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.
- package/LICENSE.md +8 -7
- package/browser/esm/4MbBwfmW2hDXk9_w.mjs +165 -0
- package/browser/esm/{ChYgQL-8qIDFmX31.mjs → 9YWdxmSjzLN4j_ts.mjs} +22 -22
- package/browser/esm/B6BdiHigbUdbZp3J.mjs +686 -0
- package/browser/esm/{CImFKFaYToUH-bSE.mjs → BF_QwkZ_hs2rFoTT.mjs} +3 -3
- package/browser/esm/{DBvu0tdSf-5vol4e.mjs → BMo2_9Ul36IwRm3S.mjs} +3 -3
- package/browser/esm/{B1aH_qa-czVyEVHd.mjs → BWY1qiidTUBVPJoD.mjs} +506 -502
- package/browser/esm/{BSXQAXwZdJKYTO4P.mjs → Bf80epSsm_RyAOb9.mjs} +29 -29
- package/browser/esm/{D_XMi4_5iO2rkET5.mjs → BfoE6Dn_GQCIkQD3.mjs} +2 -2
- package/browser/esm/{Dhw5XEJYFrkYjdU2.mjs → BlMYYQZP-QM-iBHz.mjs} +23 -22
- package/browser/esm/{MuNBN02MyZ558c_K.mjs → BqT-ASHP0NVSUUnY.mjs} +1528 -1433
- package/browser/esm/{DnR0xY7_iE3TmMcg.mjs → BtNuoQIrrHw_jnbJ.mjs} +4 -4
- package/browser/esm/BxFzcCYhvo9NXFjC.mjs +527 -0
- package/browser/esm/{DonQz2Tc3k9lNT8E.mjs → BxYuRTSF9ykc-Tpz.mjs} +3 -3
- package/browser/esm/{aRXqxIzjuSLwawMh.mjs → C2PvZwqK-uvsugVS.mjs} +2 -2
- package/browser/esm/C3JOjQwdG9kAig7i.mjs +2017 -0
- package/browser/esm/{SwLp-iElwDjfcJtv.mjs → C5x0EzqElYGTiTQc.mjs} +2 -2
- package/browser/esm/{AXlD9K1gCwPU4gCO.mjs → CMChv-fCFh68VQQt.mjs} +588 -587
- package/browser/esm/{BpwULQPKbb4R9Jew.mjs → CRbQATfI0yZxe1kX.mjs} +3 -3
- package/browser/esm/{CM_X1zZYzEUPaNJL.mjs → CUu3zeHqcwMRYiov.mjs} +2 -2
- package/{node/esm/b3XnssSr9lmvAC2N.mjs → browser/esm/C_jLGkFemj55_BP3.mjs} +3 -3
- package/browser/esm/{CtC__ALh4I8PKIln.mjs → CkZoDPUCK5jMUaeJ.mjs} +26955 -22064
- package/browser/esm/{DvvqmUQ9Z0NFm1-4.mjs → D-iHJ3q4nwOLcn1D.mjs} +2 -2
- package/browser/esm/{qCqzZW74-fhaIG2V.mjs → D807piM0VSokWz-L.mjs} +2 -2
- package/browser/esm/{BLYl-afJe_3std8i.mjs → DW3oQ39IF0bsc_lm.mjs} +2 -2
- package/browser/esm/{Ln4gsmhqH1LyoANj.mjs → DcB52JPBPmkc3l1m.mjs} +4 -4
- package/browser/esm/{DIfAk63CvaOZ3QKi.mjs → DlVnybrgwZWxWN3_.mjs} +10 -10
- package/browser/esm/{Dh84MDs-OhdCPCIg.mjs → DvVhatd0J1ch3OCO.mjs} +22 -22
- package/browser/esm/{BWoz4kQdA5KKJfl6.mjs → Dx9Fya60meMpuHqm.mjs} +2 -2
- package/browser/esm/{r_EZapMBdyS4gUd-.mjs → HV0FkJ6k3Ils318J.mjs} +78 -78
- package/browser/esm/{C7hpfT-sX2lyLS-D.mjs → JV9Szh5qTssjxJoE.mjs} +2 -2
- package/browser/esm/{CPIWV3Enlh_BF2TY.mjs → KpuD1kEcWB7cT0VM.mjs} +3 -3
- package/browser/esm/{3t4S9eda2I6jFad0.mjs → U4FL-QeC0bRUhTEo.mjs} +2 -2
- package/browser/esm/{D39XcmtPXVtMN4yF.mjs → WLlpmgLN5OVLoLrC.mjs} +3 -3
- package/browser/esm/{Cy8uYCggktF83278.mjs → WR146UAqrsUsL39e.mjs} +2 -2
- package/browser/esm/{BPPMKyMn65i1a1mE.mjs → WcHfawW2lkTHtWUd.mjs} +51 -49
- package/browser/esm/{Bdcd3QOzsc0aVMjN.mjs → Zp5-cTJ0Llb6EfGi.mjs} +4 -4
- package/browser/esm/{oSCy1X5CJ1iYtGDp.mjs → ad9PX897hYE4Srkc.mjs} +3 -3
- package/browser/esm/{UMQTbO0zNmBpzW1V.mjs → d_t-7d5BD1AdHg3u.mjs} +404 -404
- package/browser/esm/{BVqIknGhQCLUB_7Q.mjs → dwGdnbV-CykjNrlm.mjs} +2 -2
- package/browser/esm/{DiXeQjc0WJGLSVEo.mjs → e69NcYnKMLnAmqyA.mjs} +2 -2
- package/browser/esm/index.mjs +886 -578
- package/browser/esm/{yuF8SbWfjBfrxcq5.mjs → r-o0UCm7KtluNmyK.mjs} +3 -3
- package/licenses/dependencies.txt +69 -69
- package/node/esm/{BEBt5fo__rvT2q_u.mjs → 446KYBjJQa8g-8Gg.mjs} +52 -50
- package/node/esm/{BELc5aQ_pFPgbiso.mjs → 5OfKfTRX2_y2NwpU.mjs} +2 -2
- package/node/esm/{C-5JLSNof0FhkuFd.mjs → A3PEHO1HJvkHfb5n.mjs} +2 -2
- package/node/esm/{YpOpRyciqQLIY1-G.mjs → B4WUGzJBkQu7BXRm.mjs} +2 -2
- package/node/esm/{I-FZojIFWluC6X-j.mjs → BH8J6vKSO5zI_TWo.mjs} +2 -2
- package/node/esm/BLmdKnkLwkb3wWe6.mjs +2040 -0
- package/node/esm/{BuyAYLI4s33-vmgG.mjs → BZSxu_ZqX8-Uczzn.mjs} +2 -2
- package/node/esm/{DiCMnYA2bttmrX3q.mjs → BfPBiAgVmWhuFgFP.mjs} +3 -3
- package/node/esm/{BSVttk12GXNfKZ9k.mjs → Bknw7zWZhl2-w1pi.mjs} +3 -3
- package/node/esm/{uLrulyR7IXq0SF4j.mjs → BvIPsPiHhMclZ1kH.mjs} +22 -22
- package/node/esm/{clgEkmEwfB28nkz2.mjs → By2TFKOjA1HekZap.mjs} +4 -4
- package/node/esm/{BXg-D8Rc_iyB8p7X.mjs → BywIhvYkWk2o7MSW.mjs} +2 -2
- package/node/esm/{pF2vCOTmrxPAB41Q.mjs → C3zyhnMwQ2hRQBz7.mjs} +31 -30
- package/node/esm/{BCjHRVU8tC5lYypg.mjs → C884edhUf9yMqpPp.mjs} +2 -2
- package/node/esm/{B6jhx5pHPs2W5GE7.mjs → CDHY-0OyQ9348Brb.mjs} +189 -189
- package/node/esm/{xRGObcoaGDnAZFnj.mjs → CERNLhFrAwtu_p-q.mjs} +2 -2
- package/node/esm/{DbPUG2DcQ3T_QhcJ.mjs → CFkX_Cn6avQqQiVC.mjs} +78 -78
- package/node/esm/CJDV8P3hI8lu--3Z.mjs +530 -0
- package/node/esm/{Cyeq1rDslIqF1LKz.mjs → CKwiipdPJGzAiPjg.mjs} +2 -2
- package/node/esm/{BLPrFp_jKGYgWPX1.mjs → CLtUMJfKsy4SevWE.mjs} +3 -3
- package/node/esm/{DLdXl0O0TXuyqLU4.mjs → CVPieTgKCwkL21nD.mjs} +28573 -23108
- package/node/esm/{Dlk2ZYExFgQ0xE2H.mjs → C_fYuynP2a_70WdL.mjs} +2 -2
- package/{browser/esm/BEDfJP2tcuRy2Y2E.mjs → node/esm/CgdNA3B_GFG_yJiN.mjs} +3 -3
- package/node/esm/Cs3ibv6YHCDwLRlk.mjs +115 -0
- package/node/esm/{DeFE8QfuCeGw-mvd.mjs → Cxak8i2NidZ4Uv6v.mjs} +487 -483
- package/node/esm/{NA-8urR7T1NCwrgD.mjs → D88A3UpCyGRjcX3U.mjs} +3 -3
- package/node/esm/{99miMotf3dOuG5Jk.mjs → DBIUe2BC9xU7qMHR.mjs} +3 -3
- package/node/esm/{BEdxa3I4VOiCsvy7.mjs → DELfV5HQZo1mInBd.mjs} +4 -4
- package/node/esm/{BfEdeOg4iYXaYTlh.mjs → DOt3t-13tsnM7Fj6.mjs} +2 -2
- package/node/esm/{B3hBxzqJ2_hUylNr.mjs → DfWc3nW_Z_qqc_Wf.mjs} +1762 -1674
- package/node/esm/DgnwKbUEyQN5_gWT.mjs +169 -0
- package/node/esm/{Ccocd9DTvOnlOE9D.mjs → Dhv9JymnXqcF54oo.mjs} +2 -2
- package/node/esm/{Lj98EH6coGdKUzuS.mjs → DvtyKKzOnoOM80NB.mjs} +22 -22
- package/node/esm/{Crn6dnSQQRCQAnQ-.mjs → KDGrIa9R5XzWfjM2.mjs} +2 -2
- package/node/esm/{D30rC6AWaGGf3CaC.mjs → RTwm9ge1KoPdlBNt.mjs} +2 -2
- package/node/esm/{CdSTmD2ZvG9NesNR.mjs → _RIAmJI98l6bIFfZ.mjs} +2 -2
- package/node/esm/{CI8UIWR01z9QDlzH.mjs → bIGdvfpnijWeCac6.mjs} +1005 -1004
- package/node/esm/index.mjs +913 -598
- package/node/esm/kaiXmn0AA5WDsLPo.mjs +199 -0
- package/node/esm/{B5VmOC0jO9Zbh9Mq.mjs → mTIhoz1gEcaEm7s1.mjs} +3 -3
- package/package.json +7 -7
- package/resources/locales/de/model.msg.json +82 -1
- package/resources/locales/en/model.msg.json +80 -1
- package/types/scripting-api.json +9967 -9497
- package/types/scripting-enums.json +27 -0
- package/types/scripting.d.ts +2282 -166
- package/types/src/.generated/wasm/sdk.d.ts +332 -0
- package/types/src/calculation/Calculation.d.ts +8 -0
- package/types/src/calculation/ICalculation.d.ts +51 -0
- package/types/src/calculation/compiler/Types.d.ts +5 -0
- package/types/src/calculation/executor/CalcExecutorUtils.d.ts +1 -1
- package/types/src/calculation/formula/FormulaBlock.d.ts +2 -0
- package/types/src/calculation/formula/IFormulaBlock.d.ts +18 -0
- package/types/src/calculation/grid/CalcGrid.d.ts +5 -1
- package/types/src/calculation/grid/CalcGridBackend.d.ts +36 -1
- package/types/src/calculation/grid/CalcGridProxy.d.ts +2 -0
- package/types/src/calculation/grid/CalcGridUtils.d.ts +4 -2
- package/types/src/calculation/grid/FormulaHost.d.ts +3 -1
- package/types/src/calculation/grid/ICalcGrid.d.ts +88 -0
- package/types/src/calculation/grid/_CalcRequest.d.ts +9 -0
- package/types/src/calculation/spatial/FormulaSpatialValue.d.ts +2 -0
- package/types/src/calculation/spatial/SpillEntry.d.ts +55 -4
- package/types/src/calculation/state/CalcNode.d.ts +6 -3
- package/types/src/calculation/state/CalculationContext.d.ts +4 -2
- package/types/src/calculation/state/_PivotView.d.ts +22 -0
- package/types/src/cell/ICell.d.ts +1 -21
- package/types/src/cellRange/ICellRange.d.ts +18 -2
- package/types/src/collections/MixedTypedArrayList.d.ts +16 -2
- package/types/src/condition/BuiltInOperators/AbstractOperator.d.ts +10 -0
- package/types/src/condition/BuiltInOperators/GreaterThanEqualToOperator.d.ts +3 -0
- package/types/src/condition/BuiltInOperators/GreaterThanOperator.d.ts +3 -0
- package/types/src/condition/BuiltInOperators/LessThanEqualToOperator.d.ts +3 -0
- package/types/src/condition/BuiltInOperators/LessThanOperator.d.ts +3 -0
- package/types/src/condition/BuiltInOperators/MatchesOperator.d.ts +10 -0
- package/types/src/condition/BuiltInOperators/TimePeriodOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/index.d.ts +2 -0
- package/types/src/condition/Condition.d.ts +1 -0
- package/types/src/condition/ICondition.d.ts +15 -0
- package/types/src/condition/_ConditionUtils.d.ts +14 -0
- package/types/src/conditionalFormat/ConditionalFormat.d.ts +2 -1
- package/types/src/conditionalFormat/IConditionalFormat.d.ts +4 -3
- package/types/src/license/LicenseDetails.d.ts +27 -0
- package/types/src/license/LicenseManager.d.ts +24 -7
- package/types/src/license/_Utils.d.ts +34 -3
- package/types/src/license/index.d.ts +1 -0
- package/types/src/license/runtime.browser.d.ts +32 -4
- package/types/src/license/runtime.node.d.ts +8 -5
- package/types/src/license/summary.d.ts +18 -0
- package/types/src/pivot/IPivotTable.d.ts +1549 -13
- package/types/src/pivot/IPivotTableCollection.d.ts +70 -4
- package/types/src/pivot/PivotCache.d.ts +95 -11
- package/types/src/pivot/PivotDataField.d.ts +73 -0
- package/types/src/pivot/PivotField.d.ts +142 -0
- package/types/src/pivot/PivotTable.d.ts +548 -14
- package/types/src/pivot/PivotTableCollection.d.ts +18 -3
- package/types/src/pivot/_PivotAreas.d.ts +48 -0
- package/types/src/pivot/_PivotControls.d.ts +140 -0
- package/types/src/pivot/_PivotEngine.d.ts +9 -0
- package/types/src/pivot/_PivotGroups.d.ts +25 -0
- package/types/src/pivot/_PivotItems.d.ts +167 -0
- package/types/src/pivot/_PivotStructure.d.ts +237 -0
- package/types/src/pivot/_PivotStylePreview.d.ts +21 -0
- package/types/src/pivot/_PivotUtils.d.ts +37 -0
- package/types/src/pivot/engine/PivotAdd.d.ts +37 -0
- package/types/src/pivot/engine/PivotData.d.ts +65 -0
- package/types/src/pivot/engine/PivotEdit.d.ts +45 -0
- package/types/src/pivot/engine/PivotFilters.d.ts +50 -0
- package/types/src/pivot/engine/PivotFormulas.d.ts +72 -0
- package/types/src/pivot/engine/PivotLayout.d.ts +133 -0
- package/types/src/pivot/engine/PivotMove.d.ts +24 -0
- package/types/src/pivot/engine/PivotRefresh.d.ts +87 -0
- package/types/src/pivot/engine/PivotSort.d.ts +26 -0
- package/types/src/pivot/engine/PivotViewBuilder.d.ts +22 -0
- package/types/src/pivot/engine/index.d.ts +15 -0
- package/types/src/pivot/index.d.ts +4 -0
- package/types/src/pivot/kernel/KernelPivot.d.ts +63 -0
- package/types/src/pivot/kernel/_KernelLeaves.d.ts +100 -0
- package/types/src/pivot/kernel/_PivotAxisTree.d.ts +71 -0
- package/types/src/primitives/Range.d.ts +12 -1
- package/types/src/sheet/IWorksheet.d.ts +35 -0
- package/types/src/sheet/SheetCell.d.ts +21 -14
- package/types/src/sheet/SheetRange.d.ts +3 -0
- package/types/src/sheet/Worksheet.d.ts +175 -7
- package/types/src/sheet/_PivotFootprint.d.ts +42 -0
- package/types/src/sheet/_SheetAutoFitUtils.d.ts +12 -1
- package/types/src/sheet/_SheetMutations.d.ts +47 -0
- package/types/src/sheet/_SheetStateTypes.d.ts +11 -0
- package/types/src/sheet/style/SheetCellStyle.d.ts +6 -0
- package/types/src/sheet/style/SheetPivotStyle.d.ts +83 -0
- package/types/src/sheet/style/_IndentUnit.d.ts +14 -0
- package/types/src/sheetHeader/SheetCellHeader.d.ts +1 -1
- package/types/src/slicer/ISlicer.d.ts +114 -34
- package/types/src/slicer/ITimeline.d.ts +61 -0
- package/types/src/slicer/Slicer.d.ts +76 -3
- package/types/src/slicer/_PivotSlicer.d.ts +51 -0
- package/types/src/slicer/index.d.ts +1 -0
- package/types/src/table/AnchoredTable.d.ts +11 -1
- package/types/src/table/ITable.d.ts +5 -6
- package/types/src/table/ITableStyle.d.ts +50 -34
- package/types/src/table/_BuiltInPivotStyles.d.ts +8 -0
- package/types/src/table/_BuiltInTableStyles.d.ts +0 -1
- package/types/src/type/ITypes.d.ts +5 -1
- package/types/src/workbook/IWorkbook.d.ts +8 -2
- package/types/src/workbook/Workbook.d.ts +72 -6
- package/browser/esm/D2NFcBM4xsv0JJ1q.mjs +0 -184
- package/browser/esm/DnqwX3-2NfGBaXXl.mjs +0 -357
- package/node/esm/C3S4hF1vn0NyJPPd.mjs +0 -199
- package/node/esm/CPsGyt3vnOdLTShj.mjs +0 -360
- package/node/esm/D4Y1WJgjiFEgbWrW.mjs +0 -115
- package/types/src/pivot/_PivotXml.d.ts +0 -24
- package/types/src/primitives/Grouping.d.ts +0 -65
package/LICENSE.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
#
|
|
1
|
+
# License
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Copyright (c) 2026-present SheetXL Inc. & Michael T. Ford. All rights reserved.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
This package is commercial software, licensed under the SheetXL End-User License Agreement:
|
|
6
|
+
https://www.sheetxl.com/eula
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
A free Community License covers evaluation, learning and non-commercial use. Commercial use
|
|
9
|
+
requires a paid license — see https://www.sheetxl.com/pricing.
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
https://www.sheetxl.com/docs/guides/licensing-pricing
|
|
11
|
+
Third-party components bundled in this package remain under their own licenses, listed in
|
|
12
|
+
`licenses/dependencies.txt`.
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.16
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: SheetXL EULA — https://www.sheetxl.com/eula
|
|
6
|
+
*/
|
|
7
|
+
import { Pa as e, gi as t, n } from "./CkZoDPUCK5jMUaeJ.mjs";
|
|
8
|
+
import { FormulaError as r } from "@sheetxl/primitives";
|
|
9
|
+
var i = e.Type, a = 4294967295, o = {
|
|
10
|
+
SUM: 0,
|
|
11
|
+
COUNT: 1,
|
|
12
|
+
COUNTA: 2,
|
|
13
|
+
AVERAGE: 3,
|
|
14
|
+
MIN: 4,
|
|
15
|
+
MAX: 5,
|
|
16
|
+
PRODUCT: 6,
|
|
17
|
+
"VAR.S": 7,
|
|
18
|
+
VAR: 7,
|
|
19
|
+
"VAR.P": 8,
|
|
20
|
+
VARP: 8,
|
|
21
|
+
"STDEV.S": 9,
|
|
22
|
+
STDEV: 9,
|
|
23
|
+
"STDEV.P": 10,
|
|
24
|
+
STDEVP: 10
|
|
25
|
+
}, s = class {
|
|
26
|
+
constructor() {
|
|
27
|
+
this._next = 1, this._numbers = /* @__PURE__ */ new Map(), this._keys = /* @__PURE__ */ new Map(), this._strings = /* @__PURE__ */ new Map(), this.values = [null];
|
|
28
|
+
}
|
|
29
|
+
of(e) {
|
|
30
|
+
if (e == null) return 0;
|
|
31
|
+
if (typeof e == "number") return this._number(e);
|
|
32
|
+
let n = t(e), r = this._keys.get(n);
|
|
33
|
+
return r === void 0 && (r = this._next++, this._keys.set(n, r), this.values[r] = e), r;
|
|
34
|
+
}
|
|
35
|
+
fill(e, t) {
|
|
36
|
+
if (e instanceof n && e._visitColumnRuns((e, n, r, i) => this._run(t, e, n, r, i))) return;
|
|
37
|
+
let r = t.length;
|
|
38
|
+
for (let n of e.entries()) {
|
|
39
|
+
let e = n.coords.rowIndex;
|
|
40
|
+
e < r && (t[e] = this.of(n.value));
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
_number(e) {
|
|
44
|
+
let t = this._numbers.get(e);
|
|
45
|
+
return t === void 0 && (t = this._next++, this._numbers.set(e, t), this.values[t] = e), t;
|
|
46
|
+
}
|
|
47
|
+
_run(t, n, r, a, o) {
|
|
48
|
+
if (!(r instanceof e && r.codec)) {
|
|
49
|
+
for (let e = a, i = n; e <= o; e++, i++) t[i] = this.of(r.at(e));
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
let s = r.codec, c = this._strings.get(s);
|
|
53
|
+
c || this._strings.set(s, c = /* @__PURE__ */ new Map());
|
|
54
|
+
let { types: l, defaultType: u, ints: d, doubles: f, intShift: p, intOffset: m } = r.getViews();
|
|
55
|
+
for (let e = a, h = n; e <= o; e++, h++) {
|
|
56
|
+
let n = l ? l[e] : u;
|
|
57
|
+
if (n === i.Int32) t[h] = this._number(d[(e << p) + m]);
|
|
58
|
+
else if (n === i.Float64) t[h] = this._number(f[e]);
|
|
59
|
+
else if (n === i.String) {
|
|
60
|
+
let n = d[(e << p) + m], r = c.get(n);
|
|
61
|
+
r === void 0 && c.set(n, r = this.of(s.decodeString(n))), t[h] = r;
|
|
62
|
+
} else n === i.Blank ? t[h] = 0 : t[h] = this.of(r.at(e));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}, c = class {
|
|
66
|
+
constructor() {
|
|
67
|
+
this.table = [r.BuiltIn.Div0], this._codes = /* @__PURE__ */ new Map();
|
|
68
|
+
}
|
|
69
|
+
codeOf(e) {
|
|
70
|
+
let t = this._codes.get(e);
|
|
71
|
+
return t === void 0 && (t = this.table.length, this.table.push(e), this._codes.set(e, t)), t;
|
|
72
|
+
}
|
|
73
|
+
}, l = (t, r, a) => {
|
|
74
|
+
let o = r.types.length, s = {
|
|
75
|
+
ok: !0,
|
|
76
|
+
numeric: !0
|
|
77
|
+
}, c = (e, t) => u(r, e, t, a, s);
|
|
78
|
+
if (!(t instanceof n && t._visitColumnRuns((t, n, a, o) => {
|
|
79
|
+
if (!(n instanceof e && n.codec)) {
|
|
80
|
+
for (let e = a, r = t; e <= o; e++, r++) c(r, n.at(e));
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
let { types: s, defaultType: l, ints: u, doubles: d, intShift: f, intOffset: p } = n.getViews();
|
|
84
|
+
if (!s && l === i.Float64) return r.doubles.set(d.subarray(a, o + 1), t), void r.types.fill(i.Float64, t, t + o - a + 1);
|
|
85
|
+
for (let e = a, m = t; e <= o; e++, m++) {
|
|
86
|
+
let t = s ? s[e] : l;
|
|
87
|
+
t === i.Int32 ? (r.ints[m << 1] = u[(e << f) + p], r.types[m] = i.Int32) : t === i.Float64 ? (r.doubles[m] = d[e], r.types[m] = i.Float64) : t !== i.Blank && c(m, n.at(e));
|
|
88
|
+
}
|
|
89
|
+
}))) for (let e of t.entries()) {
|
|
90
|
+
let t = e.coords.rowIndex;
|
|
91
|
+
t < o && c(t, e.value);
|
|
92
|
+
}
|
|
93
|
+
return s;
|
|
94
|
+
}, u = (e, t, n, a, o) => {
|
|
95
|
+
if (n != null) {
|
|
96
|
+
switch (typeof n) {
|
|
97
|
+
case "number":
|
|
98
|
+
e.doubles[t] = n, e.types[t] = i.Float64;
|
|
99
|
+
return;
|
|
100
|
+
case "string":
|
|
101
|
+
e.types[t] = i.String, o.numeric = !1;
|
|
102
|
+
return;
|
|
103
|
+
case "boolean":
|
|
104
|
+
e.types[t] = n ? i.True : i.False, o.numeric = !1;
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
if (r.isError(n)) return e.ints[t << 1] = a.codeOf(n), void (e.types[t] = i.Error);
|
|
108
|
+
o.ok = !1;
|
|
109
|
+
}
|
|
110
|
+
}, d = (t, n, a) => {
|
|
111
|
+
let o = a.table, s = new e(((e, t, n, r) => {
|
|
112
|
+
let a = !!(r & r - 1), o = 1 << i.Blank | 1 << i.False | 1 << i.True;
|
|
113
|
+
return {
|
|
114
|
+
buffer: e,
|
|
115
|
+
byteOffset: t,
|
|
116
|
+
length: n,
|
|
117
|
+
width: r & 1 << i.Float64 ? 8 : 4,
|
|
118
|
+
defaultType: a ? i.Blank : 31 - Math.clz32(r),
|
|
119
|
+
typeMask: r,
|
|
120
|
+
hasTypes: a,
|
|
121
|
+
hasSlots: (r & ~o) !== 0
|
|
122
|
+
};
|
|
123
|
+
})(t, n.ptr(), n.length(), n.type_mask()), {
|
|
124
|
+
isError: () => !1,
|
|
125
|
+
encodeString: () => 0,
|
|
126
|
+
decodeString: () => null,
|
|
127
|
+
encodeError: () => 0,
|
|
128
|
+
decodeError: (e) => o[e] ?? null
|
|
129
|
+
});
|
|
130
|
+
return (e) => {
|
|
131
|
+
let t = s.at(e) ?? null;
|
|
132
|
+
return typeof t != "number" || Number.isFinite(t) ? t : r.BuiltIn.Num;
|
|
133
|
+
};
|
|
134
|
+
}, f = (e, t) => `${e}|${t.join(",")}`, p = class {
|
|
135
|
+
constructor(e, t) {
|
|
136
|
+
this._json = e, this._values = new Map(e.values), this._mode = t;
|
|
137
|
+
}
|
|
138
|
+
getDataFields() {
|
|
139
|
+
return this._json.dataFields;
|
|
140
|
+
}
|
|
141
|
+
getFields() {
|
|
142
|
+
return this._json.fields;
|
|
143
|
+
}
|
|
144
|
+
getValue(e, t) {
|
|
145
|
+
let n = this._json.fields, i = [];
|
|
146
|
+
for (let e = 0; e < n.length; e++) {
|
|
147
|
+
let r = n[e].page, a = t.get(e);
|
|
148
|
+
if (r === void 0) i.push(a ?? -1);
|
|
149
|
+
else if (a !== void 0 && a !== r) return;
|
|
150
|
+
}
|
|
151
|
+
let a = f(e, i);
|
|
152
|
+
return this._mode === "blocked" ? a === this._json.block?.first ? r.BuiltIn.Spill : void 0 : this._mode === "wanted" ? void 0 : this._values.get(a);
|
|
153
|
+
}
|
|
154
|
+
isComputed() {
|
|
155
|
+
return !1 !== this._json.computed;
|
|
156
|
+
}
|
|
157
|
+
}, m = {
|
|
158
|
+
placed: /* @__PURE__ */ new WeakMap(),
|
|
159
|
+
blocked: /* @__PURE__ */ new WeakMap(),
|
|
160
|
+
wanted: /* @__PURE__ */ new WeakMap()
|
|
161
|
+
}, h = (e, t = "placed") => {
|
|
162
|
+
let n = m[t], r = n.get(e);
|
|
163
|
+
return r || (r = new p(e, t), n.set(e, r)), r;
|
|
164
|
+
};
|
|
165
|
+
export { o as a, u as c, s as i, l, h as n, a as o, c as r, d as s, f as t };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.16
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License:
|
|
5
|
+
* License: SheetXL EULA — https://www.sheetxl.com/eula
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import { Gr as e, Kr as t, Pr as n, Rr as r, Ur as i, jr as a, jt as o, ni as s, pi as c, zr as l } from "./CkZoDPUCK5jMUaeJ.mjs";
|
|
8
8
|
var u = Symbol("sheetxl.formulaNode.internal"), d = Symbol("sheetxl.formulaNode.value"), f = Symbol("sheetxl.formulaNode.replaced"), p = { canonical: !0 }, m = (e, t) => {
|
|
9
9
|
let n = e.inputs, r = null;
|
|
10
10
|
if (n) {
|
|
@@ -18,28 +18,28 @@ var u = Symbol("sheetxl.formulaNode.internal"), d = Symbol("sheetxl.formulaNode.
|
|
|
18
18
|
let i = ((e, t) => {
|
|
19
19
|
let n = e.type, r = e.value;
|
|
20
20
|
if (n === c.Named) {
|
|
21
|
-
let n = r, i = n?.nameId,
|
|
22
|
-
return t && (i = t.resolve(
|
|
21
|
+
let n = r, i = n?.nameId, a = n?.scope ?? null;
|
|
22
|
+
return t && (i = t.resolve(o.NamedFormula, i)?.toString() ?? i, a &&= t.resolve(o.Sheet, a)?.toString() ?? a), e.binding?.declaration && e.binding.optional ? {
|
|
23
23
|
name: i,
|
|
24
|
-
scope:
|
|
24
|
+
scope: a,
|
|
25
25
|
optional: !0
|
|
26
26
|
} : {
|
|
27
27
|
name: i,
|
|
28
|
-
scope:
|
|
28
|
+
scope: a
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
if (n === c.TableReference) {
|
|
32
32
|
let e = typeof r == "string" ? r : r?.tableId;
|
|
33
|
-
return e ? t ? t.resolve(
|
|
33
|
+
return e ? t ? t.resolve(o.Table, e)?.toString() ?? e : e : "";
|
|
34
34
|
}
|
|
35
35
|
if (!t) return r;
|
|
36
36
|
switch (n) {
|
|
37
|
-
case c.Function: return t.resolve(
|
|
38
|
-
case c.TableColumn: return t.resolve(
|
|
37
|
+
case c.Function: return t.resolve(o.Function, r, p)?.toString() ?? r;
|
|
38
|
+
case c.TableColumn: return t.resolve(o.TableColumn, r)?.toString() ?? r;
|
|
39
39
|
case c.Cell: {
|
|
40
40
|
let e = r;
|
|
41
41
|
if (e?.scope) {
|
|
42
|
-
let n = t.resolve(
|
|
42
|
+
let n = t.resolve(o.Sheet, e.scope)?.toString() ?? e.scope;
|
|
43
43
|
return {
|
|
44
44
|
...e,
|
|
45
45
|
scope: n
|
|
@@ -50,7 +50,7 @@ var u = Symbol("sheetxl.formulaNode.internal"), d = Symbol("sheetxl.formulaNode.
|
|
|
50
50
|
case c.Error: {
|
|
51
51
|
let e = r;
|
|
52
52
|
if (e?.scope) {
|
|
53
|
-
let n = t.resolve(
|
|
53
|
+
let n = t.resolve(o.Sheet, e.scope)?.toString() ?? e.scope;
|
|
54
54
|
return {
|
|
55
55
|
...e,
|
|
56
56
|
scope: n
|
|
@@ -93,15 +93,15 @@ var u = Symbol("sheetxl.formulaNode.internal"), d = Symbol("sheetxl.formulaNode.
|
|
|
93
93
|
".:",
|
|
94
94
|
":.",
|
|
95
95
|
" "
|
|
96
|
-
], _ = (a,
|
|
96
|
+
], _ = (a, o) => {
|
|
97
97
|
let u = a.type, d = a.value;
|
|
98
98
|
switch (u) {
|
|
99
|
-
case c.Function: return
|
|
100
|
-
case c.Infix: return
|
|
101
|
-
case c.Prefix: return
|
|
102
|
-
case c.Postfix: return e(d,
|
|
99
|
+
case c.Function: return r(String(d), o);
|
|
100
|
+
case c.Infix: return l(d, o[0], o[1], a.isReference ?? g.includes(d));
|
|
101
|
+
case c.Prefix: return t(d, o?.[0], a.isReference ?? d === "@");
|
|
102
|
+
case c.Postfix: return e(d, o?.[0], a.isReference ?? d === "#");
|
|
103
103
|
case c.Named: {
|
|
104
|
-
let e =
|
|
104
|
+
let e = i(typeof d == "string" ? d : d?.name), t = typeof d == "object" ? d?.scope : null;
|
|
105
105
|
return t && (e.value = {
|
|
106
106
|
...e.value,
|
|
107
107
|
scope: t
|
|
@@ -110,11 +110,11 @@ var u = Symbol("sheetxl.formulaNode.internal"), d = Symbol("sheetxl.formulaNode.
|
|
|
110
110
|
optional: !0
|
|
111
111
|
}), e;
|
|
112
112
|
}
|
|
113
|
-
case c.Cell: return
|
|
113
|
+
case c.Cell: return n(d);
|
|
114
114
|
case c.TableReference: return {
|
|
115
115
|
type: c.TableReference,
|
|
116
116
|
value: d,
|
|
117
|
-
inputs:
|
|
117
|
+
inputs: o ?? null,
|
|
118
118
|
isReference: !0
|
|
119
119
|
};
|
|
120
120
|
case c.TableSpecifier: return {
|
|
@@ -145,7 +145,7 @@ var u = Symbol("sheetxl.formulaNode.internal"), d = Symbol("sheetxl.formulaNode.
|
|
|
145
145
|
default: return {
|
|
146
146
|
type: u,
|
|
147
147
|
value: d,
|
|
148
|
-
inputs:
|
|
148
|
+
inputs: o ?? null,
|
|
149
149
|
isReference: a.isReference
|
|
150
150
|
};
|
|
151
151
|
}
|
|
@@ -178,7 +178,7 @@ var u = Symbol("sheetxl.formulaNode.internal"), d = Symbol("sheetxl.formulaNode.
|
|
|
178
178
|
let i = _(e, r), a = e[f];
|
|
179
179
|
return a && y(i, a), i;
|
|
180
180
|
}, y = (e, t) => {
|
|
181
|
-
|
|
181
|
+
a(e, t), e.type !== t.type && e.image !== void 0 && (e.image = void 0);
|
|
182
182
|
};
|
|
183
183
|
function b(e, t) {
|
|
184
184
|
return m(e, t);
|