@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
|
@@ -0,0 +1,169 @@
|
|
|
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 t, gi as e, n as s } from "./CVPieTgKCwkL21nD.mjs";
|
|
8
|
+
import { FormulaError as n } from "@sheetxl/primitives";
|
|
9
|
+
var i = t.Type, o = 4294967295, r = {
|
|
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
|
+
}, l = 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(t) {
|
|
30
|
+
if (null == t) return 0;
|
|
31
|
+
if ("number" == typeof t) return this._number(t);
|
|
32
|
+
const s = e(t);
|
|
33
|
+
let n = this._keys.get(s);
|
|
34
|
+
return void 0 === n && (n = this._next++, this._keys.set(s, n), this.values[n] = t), n;
|
|
35
|
+
}
|
|
36
|
+
fill(t, e) {
|
|
37
|
+
if (t instanceof s && t._visitColumnRuns((t, s, n, i) => this._run(e, t, s, n, i))) return;
|
|
38
|
+
const n = e.length;
|
|
39
|
+
for (const s of t.entries()) {
|
|
40
|
+
const t = s.coords.rowIndex;
|
|
41
|
+
t < n && (e[t] = this.of(s.value));
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
_number(t) {
|
|
45
|
+
let e = this._numbers.get(t);
|
|
46
|
+
return void 0 === e && (e = this._next++, this._numbers.set(t, e), this.values[e] = t), e;
|
|
47
|
+
}
|
|
48
|
+
_run(e, s, n, o, r) {
|
|
49
|
+
if (!(n instanceof t && n.codec)) {
|
|
50
|
+
for (let t = o, i = s; t <= r; t++, i++) e[i] = this.of(n.at(t));
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
const l = n.codec;
|
|
54
|
+
let a = this._strings.get(l);
|
|
55
|
+
a || this._strings.set(l, a = /* @__PURE__ */ new Map());
|
|
56
|
+
const { types: u, defaultType: c, ints: d, doubles: f, intShift: h, intOffset: p } = n.getViews();
|
|
57
|
+
for (let t = o, _ = s; t <= r; t++, _++) {
|
|
58
|
+
const s = u ? u[t] : c;
|
|
59
|
+
if (s === i.Int32) e[_] = this._number(d[(t << h) + p]);
|
|
60
|
+
else if (s === i.Float64) e[_] = this._number(f[t]);
|
|
61
|
+
else if (s === i.String) {
|
|
62
|
+
const s = d[(t << h) + p];
|
|
63
|
+
let n = a.get(s);
|
|
64
|
+
void 0 === n && a.set(s, n = this.of(l.decodeString(s))), e[_] = n;
|
|
65
|
+
} else s === i.Blank ? e[_] = 0 : e[_] = this.of(n.at(t));
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}, a = class {
|
|
69
|
+
constructor() {
|
|
70
|
+
this.table = [n.BuiltIn.Div0], this._codes = /* @__PURE__ */ new Map();
|
|
71
|
+
}
|
|
72
|
+
codeOf(t) {
|
|
73
|
+
let e = this._codes.get(t);
|
|
74
|
+
return void 0 === e && (e = this.table.length, this.table.push(t), this._codes.set(t, e)), e;
|
|
75
|
+
}
|
|
76
|
+
}, u = (e, n, o) => {
|
|
77
|
+
const r = n.types.length, l = {
|
|
78
|
+
ok: !0,
|
|
79
|
+
numeric: !0
|
|
80
|
+
}, a = (t, e) => c(n, t, e, o, l);
|
|
81
|
+
if (!(e instanceof s && e._visitColumnRuns((e, s, o, r) => {
|
|
82
|
+
if (!(s instanceof t && s.codec)) {
|
|
83
|
+
for (let t = o, n = e; t <= r; t++, n++) a(n, s.at(t));
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
const { types: l, defaultType: u, ints: c, doubles: d, intShift: f, intOffset: h } = s.getViews();
|
|
87
|
+
if (!l && u === i.Float64) return n.doubles.set(d.subarray(o, r + 1), e), void n.types.fill(i.Float64, e, e + r - o + 1);
|
|
88
|
+
for (let t = o, p = e; t <= r; t++, p++) {
|
|
89
|
+
const e = l ? l[t] : u;
|
|
90
|
+
e === i.Int32 ? (n.ints[p << 1] = c[(t << f) + h], n.types[p] = i.Int32) : e === i.Float64 ? (n.doubles[p] = d[t], n.types[p] = i.Float64) : e !== i.Blank && a(p, s.at(t));
|
|
91
|
+
}
|
|
92
|
+
}))) for (const t of e.entries()) {
|
|
93
|
+
const e = t.coords.rowIndex;
|
|
94
|
+
e < r && a(e, t.value);
|
|
95
|
+
}
|
|
96
|
+
return l;
|
|
97
|
+
}, c = (t, e, s, o, r) => {
|
|
98
|
+
if (null != s) {
|
|
99
|
+
switch (typeof s) {
|
|
100
|
+
case "number":
|
|
101
|
+
t.doubles[e] = s, t.types[e] = i.Float64;
|
|
102
|
+
return;
|
|
103
|
+
case "string":
|
|
104
|
+
t.types[e] = i.String, r.numeric = !1;
|
|
105
|
+
return;
|
|
106
|
+
case "boolean":
|
|
107
|
+
t.types[e] = s ? i.True : i.False, r.numeric = !1;
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
if (n.isError(s)) return t.ints[e << 1] = o.codeOf(s), void (t.types[e] = i.Error);
|
|
111
|
+
r.ok = !1;
|
|
112
|
+
}
|
|
113
|
+
}, d = (e, s, o) => {
|
|
114
|
+
const r = o.table, l = new t(((t, e, s, n) => {
|
|
115
|
+
const o = !!(n & n - 1), r = 1 << i.Blank | 1 << i.False | 1 << i.True;
|
|
116
|
+
return {
|
|
117
|
+
buffer: t,
|
|
118
|
+
byteOffset: e,
|
|
119
|
+
length: s,
|
|
120
|
+
width: n & 1 << i.Float64 ? 8 : 4,
|
|
121
|
+
defaultType: o ? i.Blank : 31 - Math.clz32(n),
|
|
122
|
+
typeMask: n,
|
|
123
|
+
hasTypes: o,
|
|
124
|
+
hasSlots: 0 !== (n & ~r)
|
|
125
|
+
};
|
|
126
|
+
})(e, s.ptr(), s.length(), s.type_mask()), {
|
|
127
|
+
isError: () => !1,
|
|
128
|
+
encodeString: () => 0,
|
|
129
|
+
decodeString: () => null,
|
|
130
|
+
encodeError: () => 0,
|
|
131
|
+
decodeError: (t) => r[t] ?? null
|
|
132
|
+
});
|
|
133
|
+
return (t) => {
|
|
134
|
+
const e = l.at(t) ?? null;
|
|
135
|
+
return "number" != typeof e || Number.isFinite(e) ? e : n.BuiltIn.Num;
|
|
136
|
+
};
|
|
137
|
+
}, f = (t, e) => `${t}|${e.join(",")}`, h = class {
|
|
138
|
+
constructor(t, e) {
|
|
139
|
+
this._json = t, this._values = new Map(t.values), this._mode = e;
|
|
140
|
+
}
|
|
141
|
+
getDataFields() {
|
|
142
|
+
return this._json.dataFields;
|
|
143
|
+
}
|
|
144
|
+
getFields() {
|
|
145
|
+
return this._json.fields;
|
|
146
|
+
}
|
|
147
|
+
getValue(t, e) {
|
|
148
|
+
const s = this._json.fields, i = [];
|
|
149
|
+
for (let t = 0; t < s.length; t++) {
|
|
150
|
+
const n = s[t].page, o = e.get(t);
|
|
151
|
+
if (void 0 === n) i.push(o ?? -1);
|
|
152
|
+
else if (void 0 !== o && o !== n) return;
|
|
153
|
+
}
|
|
154
|
+
const o = f(t, i);
|
|
155
|
+
return "blocked" === this._mode ? o === this._json.block?.first ? n.BuiltIn.Spill : void 0 : "wanted" !== this._mode ? this._values.get(o) : void 0;
|
|
156
|
+
}
|
|
157
|
+
isComputed() {
|
|
158
|
+
return !1 !== this._json.computed;
|
|
159
|
+
}
|
|
160
|
+
}, p = {
|
|
161
|
+
placed: /* @__PURE__ */ new WeakMap(),
|
|
162
|
+
blocked: /* @__PURE__ */ new WeakMap(),
|
|
163
|
+
wanted: /* @__PURE__ */ new WeakMap()
|
|
164
|
+
}, _ = (t, e = "placed") => {
|
|
165
|
+
const s = p[e];
|
|
166
|
+
let n = s.get(t);
|
|
167
|
+
return n || (n = new h(t, e), s.set(t, n)), n;
|
|
168
|
+
};
|
|
169
|
+
export { r as a, c, l as i, u as l, _ as n, o, a as r, d as s, f as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
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
7
|
var e = Object.defineProperty, r = (r, t) => {
|
|
8
8
|
let a = {};
|
|
@@ -1,11 +1,11 @@
|
|
|
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 {
|
|
8
|
-
import { a as n, i as s, n as o, r, t as i } from "./
|
|
7
|
+
import { ir as e, ka as t } from "./CVPieTgKCwkL21nD.mjs";
|
|
8
|
+
import { a as n, i as s, n as o, r, t as i } from "./CLtUMJfKsy4SevWE.mjs";
|
|
9
9
|
import { ScalarType as a } from "@sheetxl/primitives";
|
|
10
10
|
import { CommonUtils as c, DefaultLanguagePackService as f, fetchLocaleResource as l } from "@sheetxl/utils";
|
|
11
11
|
import m from "@sheetxl/formulas";
|
|
@@ -27,7 +27,7 @@ var d = [
|
|
|
27
27
|
files: ["grammar.json"]
|
|
28
28
|
}
|
|
29
29
|
], p = /* @__PURE__ */ new Set();
|
|
30
|
-
function
|
|
30
|
+
function h(e, t) {
|
|
31
31
|
const n = `${e.id}\0${t}`;
|
|
32
32
|
p.has(n) || (p.add(n), f.registerPack(e.id, t, async () => {
|
|
33
33
|
const n = { tag: t };
|
|
@@ -37,30 +37,30 @@ function g(e, t) {
|
|
|
37
37
|
})), n;
|
|
38
38
|
}));
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
if (e && "en" !== e && !e.startsWith("en-")) for (const t of d)
|
|
40
|
+
function g(e) {
|
|
41
|
+
if (e && "en" !== e && !e.startsWith("en-")) for (const t of d) h(t, e);
|
|
42
42
|
}
|
|
43
43
|
var x = !1;
|
|
44
44
|
var y = /* @__PURE__ */ new WeakMap();
|
|
45
45
|
function j() {
|
|
46
|
-
const
|
|
47
|
-
if (!
|
|
48
|
-
let s = y.get(
|
|
46
|
+
const e = t(), n = e?.functionHelp;
|
|
47
|
+
if (!e || !n) return Promise.resolve(null);
|
|
48
|
+
let s = y.get(e);
|
|
49
49
|
return s || (s = n().then((e) => e && "object" == typeof e ? "default" in e ? {
|
|
50
50
|
functions: e.default,
|
|
51
51
|
enums: e.enums
|
|
52
52
|
} : {
|
|
53
53
|
functions: e,
|
|
54
54
|
enums: void 0
|
|
55
|
-
} : null).catch(() => null), y.set(
|
|
55
|
+
} : null).catch(() => null), y.set(e, s)), s;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
x || (x = !0,
|
|
59
|
-
const n = m(e,
|
|
60
|
-
if (u(e,
|
|
57
|
+
function k(e, t) {
|
|
58
|
+
x || (x = !0, g(f.getActive()), f.addChangeListener((e) => g(e)));
|
|
59
|
+
const n = m(e, v);
|
|
60
|
+
if (u(e, v, n), v(n, e, s(e), o.declarations, r, i), t) for (const s of t) s(e, v, n);
|
|
61
61
|
return n;
|
|
62
62
|
}
|
|
63
|
-
var
|
|
63
|
+
var v = (s, o, r, i, f, l, m) => {
|
|
64
64
|
const u = /* @__PURE__ */ new Map(), d = (e) => {
|
|
65
65
|
let t = u.get(e);
|
|
66
66
|
if (!t) {
|
|
@@ -75,9 +75,9 @@ var k = (s, o, r, i, f, l, m) => {
|
|
|
75
75
|
return t;
|
|
76
76
|
}, p = Object.keys(i);
|
|
77
77
|
for (const a of p) {
|
|
78
|
-
const m = i[a], u = a, { decl: p, enumIds:
|
|
78
|
+
const m = i[a], u = a, { decl: p, enumIds: h } = n(u, m, d), g = r[m.fn ?? u];
|
|
79
79
|
let x, y;
|
|
80
|
-
const
|
|
80
|
+
const k = new e(p, g, o, async (e) => {
|
|
81
81
|
if (!f) return null;
|
|
82
82
|
let n;
|
|
83
83
|
if (x) n = x;
|
|
@@ -100,14 +100,14 @@ var k = (s, o, r, i, f, l, m) => {
|
|
|
100
100
|
}
|
|
101
101
|
const d = {
|
|
102
102
|
name: u,
|
|
103
|
-
nameLocal:
|
|
103
|
+
nameLocal: t()?.functions?.[u] ?? u,
|
|
104
104
|
summary: r?.s ?? s.s ?? "",
|
|
105
105
|
category: r?.c ?? s.c ?? l ?? null,
|
|
106
106
|
parameters: a,
|
|
107
107
|
deprecated: s.h ?? !1,
|
|
108
108
|
links: s.l ?? c.EmptyArray
|
|
109
109
|
};
|
|
110
|
-
for (const e of
|
|
110
|
+
for (const e of h) {
|
|
111
111
|
const t = [
|
|
112
112
|
o?.enums?.[`${u}:${e}`],
|
|
113
113
|
o?.enums?.[e],
|
|
@@ -127,7 +127,7 @@ var k = (s, o, r, i, f, l, m) => {
|
|
|
127
127
|
}
|
|
128
128
|
return d;
|
|
129
129
|
}, !0);
|
|
130
|
-
s.set(u,
|
|
130
|
+
s.set(u, k);
|
|
131
131
|
}
|
|
132
132
|
};
|
|
133
|
-
export {
|
|
133
|
+
export { k as initializeFunctions };
|
|
@@ -1,8 +1,8 @@
|
|
|
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
7
|
var d = [[
|
|
8
8
|
"3cd4 hc t",
|
|
@@ -1,8 +1,8 @@
|
|
|
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
7
|
var x = [], y = Object.freeze({
|
|
8
8
|
bentConnector2: { paths: [{
|
|
@@ -1,8 +1,8 @@
|
|
|
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
7
|
var x = [[
|
|
8
8
|
"3cd4 hc t",
|