@sheetxl/sdk 0.8.0-beta.15 → 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/{zjEXdQiQruTkUyf5.mjs → 9YWdxmSjzLN4j_ts.mjs} +22 -22
- package/browser/esm/B6BdiHigbUdbZp3J.mjs +686 -0
- package/browser/esm/{D8PxKK6OrmancpLT.mjs → BF_QwkZ_hs2rFoTT.mjs} +3 -3
- package/browser/esm/{Do8TQqQvnFXRlFu-.mjs → BMo2_9Ul36IwRm3S.mjs} +3 -3
- package/browser/esm/{DDQtExVGSoCzAf6-.mjs → BWY1qiidTUBVPJoD.mjs} +506 -502
- package/browser/esm/{DA4S5eqog20pG7b2.mjs → Bf80epSsm_RyAOb9.mjs} +29 -29
- package/browser/esm/{FHp0QfwZMIfP0Sry.mjs → BfoE6Dn_GQCIkQD3.mjs} +2 -2
- package/browser/esm/{D4ZCoKyNCJvDQAkx.mjs → BlMYYQZP-QM-iBHz.mjs} +23 -22
- package/browser/esm/{CWyzk_3eDCR9bKq6.mjs → BqT-ASHP0NVSUUnY.mjs} +1528 -1433
- package/browser/esm/{DwH4H_p6gTAcpQ17.mjs → BtNuoQIrrHw_jnbJ.mjs} +4 -4
- package/browser/esm/BxFzcCYhvo9NXFjC.mjs +527 -0
- package/browser/esm/{BsGN0Tk0jVc2n0hy.mjs → BxYuRTSF9ykc-Tpz.mjs} +3 -3
- package/browser/esm/{KgTozk3nvOZzEG27.mjs → C2PvZwqK-uvsugVS.mjs} +2 -2
- package/browser/esm/C3JOjQwdG9kAig7i.mjs +2017 -0
- package/browser/esm/{Blo0Hwg2ojXt99Dl.mjs → C5x0EzqElYGTiTQc.mjs} +2 -2
- package/browser/esm/{Bbrhl946_QbCz5WS.mjs → CMChv-fCFh68VQQt.mjs} +588 -587
- package/browser/esm/{Cl3jq6y4Idilod82.mjs → CRbQATfI0yZxe1kX.mjs} +3 -3
- package/browser/esm/{CxhXbk-5XhaK8UNs.mjs → CUu3zeHqcwMRYiov.mjs} +2 -2
- package/browser/esm/{CNM5d4p0Y7In0rTf.mjs → C_jLGkFemj55_BP3.mjs} +3 -3
- package/browser/esm/{BGPT-k25jo0UhtT5.mjs → CkZoDPUCK5jMUaeJ.mjs} +26901 -22016
- package/browser/esm/{DMbcmIZ-G2fbWn8v.mjs → D-iHJ3q4nwOLcn1D.mjs} +2 -2
- package/browser/esm/{KsfZhE6ocmYobGjY.mjs → D807piM0VSokWz-L.mjs} +2 -2
- package/browser/esm/{BVsG6Vpvb1ZzpURJ.mjs → DW3oQ39IF0bsc_lm.mjs} +2 -2
- package/browser/esm/{BzG0p8RdGDWHttVr.mjs → DcB52JPBPmkc3l1m.mjs} +4 -4
- package/browser/esm/{CZ_ZPliIkoh8BViV.mjs → DlVnybrgwZWxWN3_.mjs} +10 -10
- package/browser/esm/{CqzKBrmmV-fWRoK7.mjs → DvVhatd0J1ch3OCO.mjs} +22 -22
- package/browser/esm/{tm7XJ-Zd_04xWKG6.mjs → Dx9Fya60meMpuHqm.mjs} +2 -2
- package/browser/esm/{Blo0jHze0bQxnKh4.mjs → HV0FkJ6k3Ils318J.mjs} +78 -78
- package/browser/esm/{DJNLo8Rd_5UQP0U5.mjs → JV9Szh5qTssjxJoE.mjs} +2 -2
- package/browser/esm/{D0KMmRjGOQUs7Ls-.mjs → KpuD1kEcWB7cT0VM.mjs} +3 -3
- package/browser/esm/{Bw66vzKThXKvXvPI.mjs → U4FL-QeC0bRUhTEo.mjs} +2 -2
- package/browser/esm/{Dp4OIVjjAVhpD815.mjs → WLlpmgLN5OVLoLrC.mjs} +3 -3
- package/browser/esm/{D6OqcO9IWPaY211T.mjs → WR146UAqrsUsL39e.mjs} +2 -2
- package/browser/esm/{CPUobTehcKZllBDS.mjs → WcHfawW2lkTHtWUd.mjs} +51 -49
- package/browser/esm/{XrasOsWQ-64jwMn1.mjs → Zp5-cTJ0Llb6EfGi.mjs} +4 -4
- package/browser/esm/{CMSeF5rGzeuMUydM.mjs → ad9PX897hYE4Srkc.mjs} +3 -3
- package/browser/esm/{CIab4UYcHQQKTHeD.mjs → d_t-7d5BD1AdHg3u.mjs} +404 -404
- package/browser/esm/{L7SKr6r1tmMwFx6Q.mjs → dwGdnbV-CykjNrlm.mjs} +2 -2
- package/browser/esm/{DpaqR081c-Q7WemN.mjs → e69NcYnKMLnAmqyA.mjs} +2 -2
- package/browser/esm/index.mjs +886 -578
- package/browser/esm/{BN1MW1nuBndrzryn.mjs → r-o0UCm7KtluNmyK.mjs} +3 -3
- package/licenses/dependencies.txt +69 -69
- package/node/esm/{DjsOfZn5vYpB7L6U.mjs → 446KYBjJQa8g-8Gg.mjs} +52 -50
- package/node/esm/{BlHlBRvKGt-4CS0A.mjs → 5OfKfTRX2_y2NwpU.mjs} +2 -2
- package/node/esm/{BRnNpoS8VpkAhdVk.mjs → A3PEHO1HJvkHfb5n.mjs} +2 -2
- package/node/esm/{ZtF9EuipL7Z9Iwfs.mjs → B4WUGzJBkQu7BXRm.mjs} +2 -2
- package/node/esm/{DKdFasYVvjAitASZ.mjs → BH8J6vKSO5zI_TWo.mjs} +2 -2
- package/node/esm/BLmdKnkLwkb3wWe6.mjs +2040 -0
- package/node/esm/{D9RwzPR5s2mWrbCQ.mjs → BZSxu_ZqX8-Uczzn.mjs} +2 -2
- package/node/esm/{-afI0SRg_vgXtea7.mjs → BfPBiAgVmWhuFgFP.mjs} +3 -3
- package/node/esm/{OnkJkCGFDjamqIUQ.mjs → Bknw7zWZhl2-w1pi.mjs} +3 -3
- package/node/esm/{BNiG1ISiMjs-G2mE.mjs → BvIPsPiHhMclZ1kH.mjs} +22 -22
- package/node/esm/{B07QPde9GloqsW8e.mjs → By2TFKOjA1HekZap.mjs} +4 -4
- package/node/esm/{D9zb5xVRehABdbXL.mjs → BywIhvYkWk2o7MSW.mjs} +2 -2
- package/node/esm/{BZ0IRjh2hYuI86xW.mjs → C3zyhnMwQ2hRQBz7.mjs} +31 -30
- package/node/esm/{DVejVdSBXzAFQbqo.mjs → C884edhUf9yMqpPp.mjs} +2 -2
- package/node/esm/{DDIiQZTdeY4vdK8_.mjs → CDHY-0OyQ9348Brb.mjs} +189 -189
- package/node/esm/{BlzPuXtKvF3Qfr0p.mjs → CERNLhFrAwtu_p-q.mjs} +2 -2
- package/node/esm/{BfXLtDqsXXYeZ6LX.mjs → CFkX_Cn6avQqQiVC.mjs} +78 -78
- package/node/esm/CJDV8P3hI8lu--3Z.mjs +530 -0
- package/node/esm/{C6b4rM62pIWIywlM.mjs → CKwiipdPJGzAiPjg.mjs} +2 -2
- package/node/esm/{DUft-qpAS4MMANwG.mjs → CLtUMJfKsy4SevWE.mjs} +3 -3
- package/node/esm/{Cx9nQSsuyqhayyBS.mjs → CVPieTgKCwkL21nD.mjs} +32752 -27295
- package/node/esm/{DW3u4bBJIUaHZ6m-.mjs → C_fYuynP2a_70WdL.mjs} +2 -2
- package/node/esm/{C-JEySqMuKdpcKe0.mjs → CgdNA3B_GFG_yJiN.mjs} +3 -3
- package/node/esm/Cs3ibv6YHCDwLRlk.mjs +115 -0
- package/node/esm/{CjwmkzMtjj6OMJbO.mjs → Cxak8i2NidZ4Uv6v.mjs} +487 -483
- package/node/esm/{MtRwC1PMkOEb1Nty.mjs → D88A3UpCyGRjcX3U.mjs} +3 -3
- package/node/esm/{B8KEX44VZTFTTKb3.mjs → DBIUe2BC9xU7qMHR.mjs} +3 -3
- package/node/esm/{C7h7SvhWNwQ9TfGh.mjs → DELfV5HQZo1mInBd.mjs} +4 -4
- package/node/esm/{WBHD7ECKG6HZ5UpY.mjs → DOt3t-13tsnM7Fj6.mjs} +2 -2
- package/node/esm/{BqvqbFsPQB0gEvwF.mjs → DfWc3nW_Z_qqc_Wf.mjs} +1762 -1674
- package/node/esm/DgnwKbUEyQN5_gWT.mjs +169 -0
- package/node/esm/{D7ia4o3y5Wvl__9Y.mjs → Dhv9JymnXqcF54oo.mjs} +2 -2
- package/node/esm/{CHBlLTJaoPUVxA2J.mjs → DvtyKKzOnoOM80NB.mjs} +22 -22
- package/node/esm/{Dh8o-woVpmUL50BD.mjs → KDGrIa9R5XzWfjM2.mjs} +2 -2
- package/node/esm/{DyIASfKKPuNl5Xx-.mjs → RTwm9ge1KoPdlBNt.mjs} +2 -2
- package/node/esm/{DQqXPS05dvF0F-gh.mjs → _RIAmJI98l6bIFfZ.mjs} +2 -2
- package/node/esm/{j8DqCwPgfIPICFtf.mjs → bIGdvfpnijWeCac6.mjs} +1005 -1004
- package/node/esm/index.mjs +913 -598
- package/node/esm/kaiXmn0AA5WDsLPo.mjs +199 -0
- package/node/esm/{Ddd1y3TP0kqnnSs7.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/BrHplg4RuI5jOmmr.mjs +0 -357
- package/browser/esm/eImPONkfn5DstmS8.mjs +0 -184
- package/node/esm/03AYPvCda2x9EOlY.mjs +0 -360
- package/node/esm/BmVQRGAijOHzgHmz.mjs +0 -199
- package/node/esm/Dk4KLs5GoRRuD8J4.mjs +0 -115
- package/types/src/pivot/_PivotXml.d.ts +0 -24
- package/types/src/primitives/Grouping.d.ts +0 -65
|
@@ -1,14 +1,14 @@
|
|
|
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 { C as u, E as d, T as f, h as p, i as m, r as h, w as g, x as _, y as v } from "./
|
|
9
|
-
import { n as y, r as b, t as x } from "./
|
|
10
|
-
import { i as S, r as C } from "./
|
|
11
|
-
import { a as w, n as T } from "./
|
|
7
|
+
import { Hi as e, Mr as t, Ui as n, Vr as r, Wr as i, Xr as a, gt as o, mt as s, pi as c, rr as l } from "./CkZoDPUCK5jMUaeJ.mjs";
|
|
8
|
+
import { C as u, E as d, T as f, h as p, i as m, r as h, w as g, x as _, y as v } from "./BWY1qiidTUBVPJoD.mjs";
|
|
9
|
+
import { n as y, r as b, t as x } from "./9YWdxmSjzLN4j_ts.mjs";
|
|
10
|
+
import { i as S, r as C } from "./d_t-7d5BD1AdHg3u.mjs";
|
|
11
|
+
import { a as w, n as T } from "./BMo2_9Ul36IwRm3S.mjs";
|
|
12
12
|
import { ScalarType as E } from "@sheetxl/primitives";
|
|
13
13
|
import D from "@sheetxl/formulas/declarations";
|
|
14
14
|
import O from "@sheetxl/formulas-extended/declarations";
|
|
@@ -35,7 +35,7 @@ function A(e) {
|
|
|
35
35
|
return n;
|
|
36
36
|
};
|
|
37
37
|
for (let t of Object.keys(n)) {
|
|
38
|
-
let { decl: r } = w(t, n[t], i), a = new
|
|
38
|
+
let { decl: r } = w(t, n[t], i), a = new l(r);
|
|
39
39
|
e.set(t.toUpperCase(), {
|
|
40
40
|
getName: () => t,
|
|
41
41
|
getDeclaration: () => a,
|
|
@@ -49,8 +49,8 @@ function A(e) {
|
|
|
49
49
|
var j = null, M = Object.freeze({
|
|
50
50
|
rowStart: 0,
|
|
51
51
|
colStart: 0,
|
|
52
|
-
rowEnd:
|
|
53
|
-
colEnd:
|
|
52
|
+
rowEnd: n,
|
|
53
|
+
colEnd: e
|
|
54
54
|
}), N = (e) => A(e);
|
|
55
55
|
function P(e, t) {
|
|
56
56
|
if (typeof e != "string" || e.length === 0) return null;
|
|
@@ -58,7 +58,7 @@ function P(e, t) {
|
|
|
58
58
|
let n = t?.anchor, r;
|
|
59
59
|
try {
|
|
60
60
|
let i = j.parse(n?.rowIndex ?? 0, n?.colIndex ?? 0, e);
|
|
61
|
-
if (i.errors.length > 0 || !i.root || i.root.type ===
|
|
61
|
+
if (i.errors.length > 0 || !i.root || i.root.type === c.Unparsed) return null;
|
|
62
62
|
if (r = i.root, t?.normalize) {
|
|
63
63
|
let e = g(r, N);
|
|
64
64
|
typeof e != "string" && (r = e), r = d(r, N), r = h(r, N), r = v(r), r = f(r), r = u(r), r = m(r), r = _(r);
|
|
@@ -73,38 +73,38 @@ function F(e, t) {
|
|
|
73
73
|
}
|
|
74
74
|
function I(e, t) {
|
|
75
75
|
let n = p(h(v(x(e)), N)), r = t?.entireCoords ?? M, i = !0 === t?.r1c1;
|
|
76
|
-
return (e) => i ?
|
|
76
|
+
return (e) => i ? o(n, r) : s(n, r, e?.rowIndex ?? 0, e?.colIndex ?? 0);
|
|
77
77
|
}
|
|
78
|
-
function L(
|
|
79
|
-
let
|
|
80
|
-
if (!
|
|
81
|
-
let
|
|
78
|
+
function L(e) {
|
|
79
|
+
let n = e.trim();
|
|
80
|
+
if (!n) return;
|
|
81
|
+
let o;
|
|
82
82
|
try {
|
|
83
|
-
let e = S.shared().tokenize(
|
|
83
|
+
let e = S.shared().tokenize(n, !1);
|
|
84
84
|
if (e.errors.length > 0) return;
|
|
85
|
-
|
|
85
|
+
o = e.tokens;
|
|
86
86
|
} catch {
|
|
87
87
|
return;
|
|
88
88
|
}
|
|
89
|
-
let
|
|
90
|
-
if (
|
|
91
|
-
let e =
|
|
92
|
-
e === "MinOp" ? (
|
|
89
|
+
let s = 0, c = 0;
|
|
90
|
+
if (o.length === 2) {
|
|
91
|
+
let e = o[0].tokenType?.name;
|
|
92
|
+
e === "MinOp" ? (s = -1, c = 1) : e === "PlusOp" && (s = 1, c = 1);
|
|
93
93
|
}
|
|
94
|
-
if (
|
|
95
|
-
let l =
|
|
94
|
+
if (o.length - c !== 1) return;
|
|
95
|
+
let l = o[c], u = l.image;
|
|
96
96
|
try {
|
|
97
97
|
switch (l.tokenType?.name) {
|
|
98
98
|
case "NumberToken":
|
|
99
99
|
case "ScientificDigit":
|
|
100
100
|
case "DigitToken": {
|
|
101
|
-
let e =
|
|
102
|
-
return
|
|
101
|
+
let e = i(u).value;
|
|
102
|
+
return s === 0 ? e : s * e;
|
|
103
103
|
}
|
|
104
|
-
case "StringToken": return
|
|
105
|
-
case "BooleanToken": return
|
|
104
|
+
case "StringToken": return s === 0 ? a(u).value : void 0;
|
|
105
|
+
case "BooleanToken": return s === 0 ? t(u).value : void 0;
|
|
106
106
|
case "LiteralError":
|
|
107
|
-
case "RefError": return
|
|
107
|
+
case "RefError": return s === 0 ? r(u).value : void 0;
|
|
108
108
|
default: return;
|
|
109
109
|
}
|
|
110
110
|
} catch {
|
|
@@ -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
|
function e(e, t) {
|
|
8
8
|
if (!Number.isFinite(e)) return "0";
|
|
@@ -1,30 +1,30 @@
|
|
|
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 { D as r, E as i, a, c as o, d as s, f as c, l, m as u, n as d, o as f, p, r as m, s as h, u as g, v as _, w as v } from "./
|
|
9
|
-
import { n as y, r as b, t as x } from "./
|
|
7
|
+
import { jt as e, mi as t, pi as n } from "./CkZoDPUCK5jMUaeJ.mjs";
|
|
8
|
+
import { D as r, E as i, a, c as o, d as s, f as c, l, m as u, n as d, o as f, p, r as m, s as h, u as g, v as _, w as v } from "./BWY1qiidTUBVPJoD.mjs";
|
|
9
|
+
import { n as y, r as b, t as x } from "./d_t-7d5BD1AdHg3u.mjs";
|
|
10
10
|
import { FormulaError as S } from "@sheetxl/primitives";
|
|
11
11
|
import { CommonUtils as C } from "@sheetxl/utils";
|
|
12
12
|
var w = class {
|
|
13
13
|
constructor(e) {
|
|
14
14
|
e = { ...e }, this._editing = e.profile === "editing", this._parser = new b(e);
|
|
15
15
|
}
|
|
16
|
-
compile(
|
|
16
|
+
compile(e, n, d, b, C, w, E, D, O) {
|
|
17
17
|
if (b.length === 0) {
|
|
18
|
-
let
|
|
19
|
-
return this._compileUnparsed(
|
|
18
|
+
let t = new S.Parse(x);
|
|
19
|
+
return this._compileUnparsed(e, C, b, {
|
|
20
20
|
input: b,
|
|
21
|
-
cause:
|
|
22
|
-
causes: [
|
|
21
|
+
cause: t,
|
|
22
|
+
causes: [t]
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
if (b.length >
|
|
26
|
-
let n = new S.Parse(y(b.length,
|
|
27
|
-
return this._compileUnparsed(
|
|
25
|
+
if (b.length > t.MAX_EXPRESSION_LENGTH) {
|
|
26
|
+
let n = new S.Parse(y(b.length, t.MAX_EXPRESSION_LENGTH));
|
|
27
|
+
return this._compileUnparsed(e, C, b, {
|
|
28
28
|
input: b,
|
|
29
29
|
cause: n,
|
|
30
30
|
causes: [n]
|
|
@@ -59,10 +59,10 @@ var w = class {
|
|
|
59
59
|
causes: M.length > 0 ? M : [A]
|
|
60
60
|
}), !k) {
|
|
61
61
|
if (this._editing) {
|
|
62
|
-
let
|
|
63
|
-
if (
|
|
62
|
+
let t = this._recoverCompiled(e, n, d, b, C, N, E);
|
|
63
|
+
if (t) return t;
|
|
64
64
|
}
|
|
65
|
-
return this._compileUnparsed(
|
|
65
|
+
return this._compileUnparsed(e, C, b, N, this._editing, () => T(C, E, n, d));
|
|
66
66
|
}
|
|
67
67
|
if (k = i(k, w ?? null), k = m(k, w ?? null), C) {
|
|
68
68
|
let e = this._editing ? O : {
|
|
@@ -83,8 +83,8 @@ var w = class {
|
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
let P = a(
|
|
87
|
-
return this._editing && N && r(P.getTokens(), C) !== b ? this._recoverCompiled(
|
|
86
|
+
let P = a(e, C, k, this._editing, N, w ?? null);
|
|
87
|
+
return this._editing && N && r(P.getTokens(), C) !== b ? this._recoverCompiled(e, n, d, b, C, N, E) || this._compileUnparsed(e, C, b, N, !0) : P;
|
|
88
88
|
}
|
|
89
89
|
autoCorrect(e) {
|
|
90
90
|
let t = function(e) {
|
|
@@ -137,6 +137,7 @@ var w = class {
|
|
|
137
137
|
namedIds: C.EmptyArray,
|
|
138
138
|
symbolIds: C.EmptyArray,
|
|
139
139
|
hasTotals: !1,
|
|
140
|
+
hasPivotData: !1,
|
|
140
141
|
hasDataTable: !1,
|
|
141
142
|
hasVolatile: !1,
|
|
142
143
|
isBlankCacheable: !1,
|
|
@@ -259,14 +260,14 @@ var w = class {
|
|
|
259
260
|
l >= 0 && !/[A-Za-z0-9_.]/.test(u) ? (l > 0 && s(t.slice(0, l)), s(t.slice(l), !0)) : s(t);
|
|
260
261
|
}
|
|
261
262
|
};
|
|
262
|
-
function T(
|
|
263
|
-
if (!
|
|
264
|
-
let a =
|
|
263
|
+
function T(t, n, r, i) {
|
|
264
|
+
if (!t || !n) return;
|
|
265
|
+
let a = t.bind(e.Table, "", { at: {
|
|
265
266
|
scope: n,
|
|
266
267
|
rowIndex: r,
|
|
267
268
|
colIndex: i
|
|
268
269
|
} });
|
|
269
|
-
return a ?
|
|
270
|
+
return a ? t.resolve(e.Table, a)?.toString() : void 0;
|
|
270
271
|
}
|
|
271
272
|
var E = /[A-Za-z_\\\u007F-\uFFFF][A-Za-z0-9_.\u007F-\uFFFF]*$/, D = /[A-Za-z0-9_.)\]}"'!#\u007F-\uFFFF]/;
|
|
272
273
|
function O(e, t) {
|