@sheetxl/sdk 0.8.0-beta.15 → 0.8.0-beta.17
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/{DDQtExVGSoCzAf6-.mjs → B-Q1-7RgSnA75J32.mjs} +506 -502
- package/browser/esm/{Cl3jq6y4Idilod82.mjs → BI6NwRrdLCbPdz6f.mjs} +3 -3
- package/browser/esm/{Blo0Hwg2ojXt99Dl.mjs → BWNQcQyx8wt6huOq.mjs} +2 -2
- package/browser/esm/{Do8TQqQvnFXRlFu-.mjs → BY_-BTa5h6HnnZ1W.mjs} +3 -3
- package/browser/esm/{D4ZCoKyNCJvDQAkx.mjs → BlkstmZEklk6Y1QD.mjs} +23 -22
- package/browser/esm/{DpaqR081c-Q7WemN.mjs → BuKA3E-Ev8Dp5W2I.mjs} +2 -2
- package/browser/esm/{Bbrhl946_QbCz5WS.mjs → Byp_bvP9G-tN6hcz.mjs} +588 -587
- package/browser/esm/{CMSeF5rGzeuMUydM.mjs → C0o6WpBojS7XhV5m.mjs} +3 -3
- package/browser/esm/CAjITJT3eLst9Rhi.mjs +686 -0
- package/browser/esm/{CZ_ZPliIkoh8BViV.mjs → CFywn1iiD35nNNUP.mjs} +10 -10
- package/browser/esm/{DJNLo8Rd_5UQP0U5.mjs → CHByUyHFA3ESf7DX.mjs} +2 -2
- package/browser/esm/CLT3qGy_brDIwbYd.mjs +2017 -0
- package/browser/esm/{Blo0jHze0bQxnKh4.mjs → CVV4xqwD8gIjYj1E.mjs} +78 -78
- package/browser/esm/{FHp0QfwZMIfP0Sry.mjs → CWkaF7gYWCkW7vDA.mjs} +2 -2
- package/browser/esm/{CNM5d4p0Y7In0rTf.mjs → DCs7bk-yx0UhCvQ4.mjs} +3 -3
- package/browser/esm/{BsGN0Tk0jVc2n0hy.mjs → DDNerAeet8uDYKhf.mjs} +3 -3
- package/browser/esm/{D6OqcO9IWPaY211T.mjs → DGUOlgm1_WFmf_xO.mjs} +2 -2
- package/browser/esm/{Dp4OIVjjAVhpD815.mjs → DJTEQZiR9IFTuN_4.mjs} +3 -3
- package/browser/esm/{KgTozk3nvOZzEG27.mjs → DJrnSjYjFxJvpQiH.mjs} +2 -2
- package/browser/esm/{D0KMmRjGOQUs7Ls-.mjs → DTXsi--x2wgqgwtf.mjs} +3 -3
- package/browser/esm/{CPUobTehcKZllBDS.mjs → DUB6Oj_aiV3f8s5_.mjs} +51 -49
- package/browser/esm/{Bw66vzKThXKvXvPI.mjs → DW3kFc5t4Wnh5E9S.mjs} +2 -2
- package/browser/esm/{BzG0p8RdGDWHttVr.mjs → DkmqFp_-iUIy_l3D.mjs} +4 -4
- package/browser/esm/{zjEXdQiQruTkUyf5.mjs → Dlk1kRgkiBIpUxd9.mjs} +22 -22
- package/browser/esm/{tm7XJ-Zd_04xWKG6.mjs → DnMFW_oKYQxRjP1l.mjs} +2 -2
- package/browser/esm/{DA4S5eqog20pG7b2.mjs → DrmOaEx6CQ91zBsP.mjs} +29 -29
- package/browser/esm/{D8PxKK6OrmancpLT.mjs → DsWDvmky7CgzX_7W.mjs} +3 -3
- package/browser/esm/{DMbcmIZ-G2fbWn8v.mjs → Dx_dZ7jrw5Hxeoot.mjs} +2 -2
- package/browser/esm/{BN1MW1nuBndrzryn.mjs → Dy0TAi9WafVT8eke.mjs} +3 -3
- package/browser/esm/{L7SKr6r1tmMwFx6Q.mjs → JmmPE8Vsj85wdV8H.mjs} +2 -2
- package/browser/esm/{CIab4UYcHQQKTHeD.mjs → O970I8lbI7okqG7N.mjs} +404 -404
- package/browser/esm/{DwH4H_p6gTAcpQ17.mjs → WR3-xqcK1gF3ewAR.mjs} +4 -4
- package/browser/esm/XHhDDWrJiZJgWxPM.mjs +165 -0
- package/browser/esm/{KsfZhE6ocmYobGjY.mjs → YwDdO4YwcIE4OB0D.mjs} +2 -2
- package/browser/esm/aYpwVCDSwMUuz147.mjs +527 -0
- package/browser/esm/{BGPT-k25jo0UhtT5.mjs → gQzj95vSMXdKhpWf.mjs} +29032 -24101
- package/browser/esm/index.mjs +886 -578
- package/browser/esm/{CxhXbk-5XhaK8UNs.mjs → jotvQFBWO2jXAhWx.mjs} +2 -2
- package/browser/esm/{CWyzk_3eDCR9bKq6.mjs → mufbL88lyIKJEWyP.mjs} +1528 -1433
- package/browser/esm/{BVsG6Vpvb1ZzpURJ.mjs → qNv1x-Ny9TPbvZzj.mjs} +2 -2
- package/browser/esm/{XrasOsWQ-64jwMn1.mjs → taTjDyUIIxq2eClH.mjs} +4 -4
- package/browser/esm/{CqzKBrmmV-fWRoK7.mjs → yudASWe8CWXYcGt3.mjs} +22 -22
- package/licenses/dependencies.txt +69 -69
- package/node/esm/{CjwmkzMtjj6OMJbO.mjs → -q1xF3_2jmk3QHIY.mjs} +487 -483
- package/node/esm/{DDIiQZTdeY4vdK8_.mjs → 7ZwdVIsOdcziHpMD.mjs} +189 -189
- package/node/esm/{C7h7SvhWNwQ9TfGh.mjs → B6BQYUDRxbRnzca4.mjs} +4 -4
- package/node/esm/{DjsOfZn5vYpB7L6U.mjs → B8MYgBe4XICBSROW.mjs} +52 -50
- package/node/esm/{B8KEX44VZTFTTKb3.mjs → BBUVvO9Ma1RzbKux.mjs} +3 -3
- package/node/esm/{D9RwzPR5s2mWrbCQ.mjs → BQko-9y6mf2oQK7u.mjs} +2 -2
- package/node/esm/{BNiG1ISiMjs-G2mE.mjs → BSlFO0_8UZ38gfeE.mjs} +22 -22
- package/node/esm/{DUft-qpAS4MMANwG.mjs → Bgy7uWJVGwkN7AlD.mjs} +3 -3
- package/node/esm/{DyIASfKKPuNl5Xx-.mjs → BhosJbKOPgbJSZMY.mjs} +2 -2
- package/node/esm/BoLecFnIxhYKGor-.mjs +2040 -0
- package/node/esm/{WBHD7ECKG6HZ5UpY.mjs → BwyoLlHutolJw7OW.mjs} +2 -2
- package/node/esm/{Dh8o-woVpmUL50BD.mjs → CDgUHRW6vSASfqNr.mjs} +2 -2
- package/node/esm/{BZ0IRjh2hYuI86xW.mjs → CHS84ZGEoH6aeHsZ.mjs} +31 -30
- package/node/esm/{BRnNpoS8VpkAhdVk.mjs → CIlH2fSEpdYBZwUA.mjs} +2 -2
- package/node/esm/{BlzPuXtKvF3Qfr0p.mjs → CIxb44vA81H9lRip.mjs} +2 -2
- package/node/esm/{Cx9nQSsuyqhayyBS.mjs → Cb1-r2RCxcJZB6fM.mjs} +32675 -27215
- package/node/esm/{DKdFasYVvjAitASZ.mjs → CjCqcGyCYGkaMQI9.mjs} +2 -2
- package/node/esm/{D7ia4o3y5Wvl__9Y.mjs → ClJJC8tBpgsqHwdn.mjs} +2 -2
- package/node/esm/{C-JEySqMuKdpcKe0.mjs → Cle-_21jebWv_-D4.mjs} +3 -3
- package/node/esm/{j8DqCwPgfIPICFtf.mjs → D51xu0rubo34Ppeg.mjs} +1005 -1004
- package/node/esm/{Ddd1y3TP0kqnnSs7.mjs → DCSJKgcCQzOV-dMJ.mjs} +3 -3
- package/node/esm/{ZtF9EuipL7Z9Iwfs.mjs → DCaLNIs-_4Y6hJ8S.mjs} +2 -2
- package/node/esm/DTkV7IK2_ODMJAP5.mjs +115 -0
- package/node/esm/DfbVTAhNutxM74E8.mjs +169 -0
- package/node/esm/{DVejVdSBXzAFQbqo.mjs → DfrxGbxxowFmm3SF.mjs} +2 -2
- package/node/esm/{DW3u4bBJIUaHZ6m-.mjs → DgsBYF3xbjgx9Mzp.mjs} +2 -2
- package/node/esm/{CHBlLTJaoPUVxA2J.mjs → DxnBYzOueAKEqaQT.mjs} +22 -22
- package/node/esm/M3jahkTgfUxGyeZv.mjs +530 -0
- package/node/esm/{-afI0SRg_vgXtea7.mjs → NnrDjio_xwTBs05n.mjs} +3 -3
- package/node/esm/{BqvqbFsPQB0gEvwF.mjs → OCrS6pBT6lGRu82d.mjs} +1762 -1674
- package/node/esm/XhDjStxKy-dd3WKa.mjs +199 -0
- package/node/esm/{D9zb5xVRehABdbXL.mjs → Yo7_havHbr9VL8R4.mjs} +2 -2
- package/node/esm/{MtRwC1PMkOEb1Nty.mjs → btVWSwUwMjM0J5fS.mjs} +3 -3
- package/node/esm/{DQqXPS05dvF0F-gh.mjs → cRz94rkuvDrA8mr9.mjs} +2 -2
- package/node/esm/{BfXLtDqsXXYeZ6LX.mjs → fwfAgq8qIADcHmY4.mjs} +78 -78
- package/node/esm/index.mjs +913 -598
- package/node/esm/{OnkJkCGFDjamqIUQ.mjs → jqBKdf9DG54xqpaw.mjs} +3 -3
- package/node/esm/{C6b4rM62pIWIywlM.mjs → nxxwAZZF8NsdErJW.mjs} +2 -2
- package/node/esm/{B07QPde9GloqsW8e.mjs → oGGVbqahqfK45-Uz.mjs} +4 -4
- package/node/esm/{BlHlBRvKGt-4CS0A.mjs → zh6vcRzFqdV1aYh5.mjs} +2 -2
- 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
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.17
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: SheetXL EULA — https://www.sheetxl.com/eula
|
|
6
|
+
*/
|
|
7
|
+
import { Gr as e, Kr as t, Pr as n, Rr as r, Ur as s, jr as o, jt as l, ni as i, pi as c, zr as a } from "./Cb1-r2RCxcJZB6fM.mjs";
|
|
8
|
+
var u = Symbol("sheetxl.formulaNode.internal"), f = Symbol("sheetxl.formulaNode.value"), p = Symbol("sheetxl.formulaNode.replaced"), g = { canonical: !0 }, v = (e, t) => {
|
|
9
|
+
const n = e.inputs;
|
|
10
|
+
let r = null;
|
|
11
|
+
if (n) {
|
|
12
|
+
const e = n.length;
|
|
13
|
+
r = new Array(e);
|
|
14
|
+
for (let s = 0; s < e; s++) {
|
|
15
|
+
const e = n[s];
|
|
16
|
+
r[s] = e ? v(e, t) : e;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
const s = ((e, t) => {
|
|
20
|
+
const n = e.type, r = e.value;
|
|
21
|
+
if (n === c.Named) {
|
|
22
|
+
const n = r;
|
|
23
|
+
let s = n?.nameId, o = n?.scope ?? null;
|
|
24
|
+
return t && (s = t.resolve(l.NamedFormula, s)?.toString() ?? s, o && (o = t.resolve(l.Sheet, o)?.toString() ?? o)), e.binding?.declaration && e.binding.optional ? {
|
|
25
|
+
name: s,
|
|
26
|
+
scope: o,
|
|
27
|
+
optional: !0
|
|
28
|
+
} : {
|
|
29
|
+
name: s,
|
|
30
|
+
scope: o
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
if (n === c.TableReference) {
|
|
34
|
+
const e = "string" == typeof r ? r : r?.tableId;
|
|
35
|
+
return e ? t ? t.resolve(l.Table, e)?.toString() ?? e : e : "";
|
|
36
|
+
}
|
|
37
|
+
if (!t) return r;
|
|
38
|
+
switch (n) {
|
|
39
|
+
case c.Function: return t.resolve(l.Function, r, g)?.toString() ?? r;
|
|
40
|
+
case c.TableColumn: return t.resolve(l.TableColumn, r)?.toString() ?? r;
|
|
41
|
+
case c.Cell: {
|
|
42
|
+
const e = r;
|
|
43
|
+
if (e?.scope) {
|
|
44
|
+
const n = t.resolve(l.Sheet, e.scope)?.toString() ?? e.scope;
|
|
45
|
+
return {
|
|
46
|
+
...e,
|
|
47
|
+
scope: n
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
return r;
|
|
51
|
+
}
|
|
52
|
+
case c.Error: {
|
|
53
|
+
const e = r;
|
|
54
|
+
if (e?.scope) {
|
|
55
|
+
const n = t.resolve(l.Sheet, e.scope)?.toString() ?? e.scope;
|
|
56
|
+
return {
|
|
57
|
+
...e,
|
|
58
|
+
scope: n
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
return r;
|
|
62
|
+
}
|
|
63
|
+
default: return r;
|
|
64
|
+
}
|
|
65
|
+
})(e, t);
|
|
66
|
+
return {
|
|
67
|
+
type: e.type,
|
|
68
|
+
value: s,
|
|
69
|
+
inputs: r,
|
|
70
|
+
isReference: e.isReference,
|
|
71
|
+
[u]: e,
|
|
72
|
+
[f]: s
|
|
73
|
+
};
|
|
74
|
+
}, m = (e, t, n) => {
|
|
75
|
+
const r = e.inputs;
|
|
76
|
+
let s;
|
|
77
|
+
if (r) {
|
|
78
|
+
const t = r.length;
|
|
79
|
+
for (let o = 0; o < t; o++) {
|
|
80
|
+
const t = r[o];
|
|
81
|
+
if (!t) continue;
|
|
82
|
+
const l = m(t, e, n);
|
|
83
|
+
l !== t && (s || (s = [...r]), s[o] = l);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
let o = e;
|
|
87
|
+
s && (o = {
|
|
88
|
+
...e,
|
|
89
|
+
inputs: s
|
|
90
|
+
});
|
|
91
|
+
const l = n(o, t);
|
|
92
|
+
return null == l || l === o ? o : (void 0 === l[u] && void 0 !== o[u] && (l[p] = o[u]), l);
|
|
93
|
+
}, y = [
|
|
94
|
+
":",
|
|
95
|
+
".:.",
|
|
96
|
+
".:",
|
|
97
|
+
":.",
|
|
98
|
+
" "
|
|
99
|
+
], b = (o, l) => {
|
|
100
|
+
const u = o.type, f = o.value;
|
|
101
|
+
switch (u) {
|
|
102
|
+
case c.Function: return r(String(f), l);
|
|
103
|
+
case c.Infix: return a(f, l[0], l[1], o.isReference ?? y.includes(f));
|
|
104
|
+
case c.Prefix: return t(f, l?.[0], o.isReference ?? "@" === f);
|
|
105
|
+
case c.Postfix: return e(f, l?.[0], o.isReference ?? "#" === f);
|
|
106
|
+
case c.Named: {
|
|
107
|
+
const e = s("string" == typeof f ? f : f?.name), t = "object" == typeof f ? f?.scope : null;
|
|
108
|
+
return t && (e.value = {
|
|
109
|
+
...e.value,
|
|
110
|
+
scope: t
|
|
111
|
+
}), "object" == typeof f && !0 === f?.optional && (e.value = {
|
|
112
|
+
...e.value,
|
|
113
|
+
optional: !0
|
|
114
|
+
}), e;
|
|
115
|
+
}
|
|
116
|
+
case c.Cell: return n(f);
|
|
117
|
+
case c.TableReference: return {
|
|
118
|
+
type: c.TableReference,
|
|
119
|
+
value: f,
|
|
120
|
+
inputs: l ?? null,
|
|
121
|
+
isReference: !0
|
|
122
|
+
};
|
|
123
|
+
case c.TableSpecifier: return {
|
|
124
|
+
type: c.TableSpecifier,
|
|
125
|
+
value: f,
|
|
126
|
+
image: `[${f}]`,
|
|
127
|
+
inputs: null,
|
|
128
|
+
isReference: !0
|
|
129
|
+
};
|
|
130
|
+
case c.TableColumn: {
|
|
131
|
+
const e = "string" == typeof f && f.startsWith("[") ? f : `[${i(String(f))}]`;
|
|
132
|
+
return {
|
|
133
|
+
type: c.TableColumn,
|
|
134
|
+
value: f,
|
|
135
|
+
image: e,
|
|
136
|
+
inputs: null,
|
|
137
|
+
isReference: !0
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
case c.String:
|
|
141
|
+
case c.Number:
|
|
142
|
+
case c.Boolean: return {
|
|
143
|
+
type: u,
|
|
144
|
+
value: f,
|
|
145
|
+
inputs: null,
|
|
146
|
+
isLiteral: !0
|
|
147
|
+
};
|
|
148
|
+
default: return {
|
|
149
|
+
type: u,
|
|
150
|
+
value: f,
|
|
151
|
+
inputs: l ?? null,
|
|
152
|
+
isReference: o.isReference
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
}, d = (e) => {
|
|
156
|
+
const t = e[u], n = e.inputs;
|
|
157
|
+
let r = null;
|
|
158
|
+
if (n) {
|
|
159
|
+
const e = n.length;
|
|
160
|
+
r = new Array(e);
|
|
161
|
+
for (let t = 0; t < e; t++) {
|
|
162
|
+
const e = n[t];
|
|
163
|
+
r[t] = e ? d(e) : e;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
if (t) {
|
|
167
|
+
const n = e.value !== e[f];
|
|
168
|
+
let s = !1;
|
|
169
|
+
const o = t.inputs;
|
|
170
|
+
if (r && o && r.length === o.length) {
|
|
171
|
+
for (let e = 0; e < r.length; e++) if (r[e] !== o[e]) {
|
|
172
|
+
s = !0;
|
|
173
|
+
break;
|
|
174
|
+
}
|
|
175
|
+
} else s = null === r != (null == o) || (r?.length ?? 0) !== (o?.length ?? 0);
|
|
176
|
+
if (!n && !s) return t;
|
|
177
|
+
if (!n) return {
|
|
178
|
+
...t,
|
|
179
|
+
inputs: r
|
|
180
|
+
};
|
|
181
|
+
const l = b(e, r);
|
|
182
|
+
return S(l, t), l;
|
|
183
|
+
}
|
|
184
|
+
const s = b(e, r), o = e[p];
|
|
185
|
+
return o && S(s, o), s;
|
|
186
|
+
}, S = (e, t) => {
|
|
187
|
+
o(e, t), e.type !== t.type && void 0 !== e.image && (e.image = void 0);
|
|
188
|
+
};
|
|
189
|
+
function h(e, t) {
|
|
190
|
+
return v(e, t);
|
|
191
|
+
}
|
|
192
|
+
function R(e, t) {
|
|
193
|
+
return e && "function" == typeof t ? m(e, void 0, t) : e;
|
|
194
|
+
}
|
|
195
|
+
function T(e) {
|
|
196
|
+
const t = d(e);
|
|
197
|
+
return !0 === e.legacyIntersect && (t.legacyIntersect = !0), t;
|
|
198
|
+
}
|
|
199
|
+
export { h as n, R as r, T 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.17
|
|
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
|
mathDivide: {
|
|
@@ -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.17
|
|
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 { t } from "./
|
|
7
|
+
import { t } from "./BQko-9y6mf2oQK7u.mjs";
|
|
8
8
|
import i from "linebreak";
|
|
9
9
|
var e = /\s/, s = () => ({
|
|
10
10
|
sum: 0,
|
|
@@ -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.17
|
|
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",
|
|
@@ -1,13 +1,13 @@
|
|
|
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.17
|
|
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 { t } from "./
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { i as w, r as _, t as k } from "./
|
|
7
|
+
import { t } from "./CjCqcGyCYGkaMQI9.mjs";
|
|
8
|
+
import { Ki as e, Ta as r, aa as s, ia as i, ji as n, na as o, on as l } from "./Cb1-r2RCxcJZB6fM.mjs";
|
|
9
|
+
import { $t as a, Bt as u, Ct as h, Ht as c, Lt as d, Pt as p, Qt as g, T as f, Ut as m, Y as y, et as x, lt as b, mt as v } from "./D51xu0rubo34Ppeg.mjs";
|
|
10
|
+
import { i as w, r as _, t as k } from "./B6BQYUDRxbRnzca4.mjs";
|
|
11
11
|
import { FormulaError as S } from "@sheetxl/primitives";
|
|
12
12
|
import { ExpectedError as M, messageKey as P, t as L } from "@sheetxl/utils";
|
|
13
13
|
var C = /<!\[CDATA\[([\s\S]*?)\]\]>|<!--[\s\S]*?-->|<\?[\s\S]*?\?>|<(\/?)([^\s/>]+)((?:\s+[^\s=/>]+\s*=\s*(?:"[^"]*"|'[^']*'))*)\s*(\/?)>|([^<]+)/g, A = {
|
|
@@ -1120,7 +1120,7 @@ var ae = [
|
|
|
1120
1120
|
color: t
|
|
1121
1121
|
}), me = (t) => t?.paragraphs?.[0]?.pPr?.defaultRun, ye = (t, e) => !("scatter" !== e.type && "bubble" !== e.type || "b" !== t.axPos && "t" !== t.axPos), xe = (t, e, r) => {
|
|
1122
1122
|
try {
|
|
1123
|
-
return
|
|
1123
|
+
return v.getEngine().format(t || "General", e, {
|
|
1124
1124
|
date1904: r,
|
|
1125
1125
|
placeholders: !0
|
|
1126
1126
|
}).text ?? "";
|
|
@@ -1213,7 +1213,7 @@ var Ce = class {
|
|
|
1213
1213
|
if (!t) return e;
|
|
1214
1214
|
const r = this.fill(t.fill);
|
|
1215
1215
|
if (null === r) return null;
|
|
1216
|
-
const s = t.lineCap, i = void 0 === t.dash ? e?.dash :
|
|
1216
|
+
const s = t.lineCap, i = void 0 === t.dash ? e?.dash : b.toDashLengths(t.dash) ? t.dash : void 0;
|
|
1217
1217
|
return {
|
|
1218
1218
|
fill: r ?? e?.fill ?? fe(this.color("tx1")),
|
|
1219
1219
|
width: "number" == typeof t.width ? t.width : e?.width ?? .75,
|
|
@@ -1245,7 +1245,7 @@ var Ce = class {
|
|
|
1245
1245
|
};
|
|
1246
1246
|
}
|
|
1247
1247
|
typeface(t) {
|
|
1248
|
-
return t && t !==
|
|
1248
|
+
return t && t !== g.ThemeFamily.Body ? t === g.ThemeFamily.Heading ? this._theme.majorFont() : t : this._theme.minorFont();
|
|
1249
1249
|
}
|
|
1250
1250
|
textFont(t, e) {
|
|
1251
1251
|
const r = t.tx?.rich;
|
|
@@ -1509,7 +1509,7 @@ var Ce = class {
|
|
|
1509
1509
|
}(o, i, n, {
|
|
1510
1510
|
order: t.order,
|
|
1511
1511
|
intercept: t.intercept
|
|
1512
|
-
}), a = t.period ?? 2, u = Math.max(0, t.forward ?? 0), h = Math.max(0, t.backward ?? 0), c = t.name ?? `${"movingAvg" === o ? `${a} per. Mov. Avg.` : he[o]} (${e.name})`, d = t.spPr ? this.stroke(t.spPr.stroke, this.line(r, 1.5, "round",
|
|
1512
|
+
}), a = t.period ?? 2, u = Math.max(0, t.forward ?? 0), h = Math.max(0, t.backward ?? 0), c = t.name ?? `${"movingAvg" === o ? `${a} per. Mov. Avg.` : he[o]} (${e.name})`, d = t.spPr ? this.stroke(t.spPr.stroke, this.line(r, 1.5, "round", b.DashStyle.SysDot)) : this.stroke(void 0, this.line("#000000", this._c14 ? 1 : .5, "round"));
|
|
1513
1513
|
let p = null;
|
|
1514
1514
|
if (l && (t.dispEq || t.dispRSqr)) {
|
|
1515
1515
|
const e = t.trendlineLbl, r = e?.numFmt?.formatCode, s = r && "General" !== r ? (t) => xe(r, t, this._date1904) : pt, i = [];
|
|
@@ -2181,23 +2181,23 @@ function Te(t, e, r) {
|
|
|
2181
2181
|
return new Ce(t, e, r ?? null).resolve();
|
|
2182
2182
|
}
|
|
2183
2183
|
var Ie = /^\p{White_Space}$/u;
|
|
2184
|
-
function Fe(t =
|
|
2185
|
-
const
|
|
2184
|
+
function Fe(t = r.getShared()) {
|
|
2185
|
+
const e = (e) => t.getByName(e.family, {
|
|
2186
2186
|
bold: e.bold,
|
|
2187
2187
|
italic: e.italic
|
|
2188
2188
|
}).table;
|
|
2189
2189
|
return {
|
|
2190
|
-
width: (t,
|
|
2190
|
+
width: (t, r) => function(t, e, r) {
|
|
2191
2191
|
if (!t.isHinted) return t.width(e, r);
|
|
2192
2192
|
const s = t.advance(32) ?? 0;
|
|
2193
2193
|
let i = 0;
|
|
2194
2194
|
for (const r of e) i += t.advance(r.codePointAt(0)) ?? (Ie.test(r) ? s : 0);
|
|
2195
2195
|
return i * r;
|
|
2196
|
-
}(r
|
|
2196
|
+
}(e(r), t, r.size),
|
|
2197
2197
|
lineHeight: (t) => {
|
|
2198
|
-
const
|
|
2199
|
-
if (null !==
|
|
2200
|
-
const s =
|
|
2198
|
+
const r = e(t);
|
|
2199
|
+
if (null !== r.typoLine) return r.typoLine * t.size;
|
|
2200
|
+
const s = r.metrics(1e4);
|
|
2201
2201
|
return (s.ascent + s.descent) / 1e4 * t.size;
|
|
2202
2202
|
}
|
|
2203
2203
|
};
|
|
@@ -4141,24 +4141,24 @@ function jr(t) {
|
|
|
4141
4141
|
function $r(t, e = "days", r = !1) {
|
|
4142
4142
|
const s = Math.floor(t);
|
|
4143
4143
|
if ("days" === e) return s;
|
|
4144
|
-
const i = s - (
|
|
4144
|
+
const i = s - (p(s, r) - 1);
|
|
4145
4145
|
if ("months" === e) return i;
|
|
4146
|
-
const n =
|
|
4147
|
-
return
|
|
4146
|
+
const n = d(i, r) % 12;
|
|
4147
|
+
return h(i, -n, !1, r);
|
|
4148
4148
|
}
|
|
4149
4149
|
function Wr(t, e, r, s = !1) {
|
|
4150
|
-
return "days" === r ? t + e :
|
|
4150
|
+
return "days" === r ? t + e : h(t, "months" === r ? e : 12 * e, !1, s);
|
|
4151
4151
|
}
|
|
4152
4152
|
function Gr(t, e, r, s = !1) {
|
|
4153
4153
|
if ("days" === r) return Math.floor(e) - Math.floor(t);
|
|
4154
|
-
const i =
|
|
4155
|
-
return "months" === r ? i : Math.floor(
|
|
4154
|
+
const i = d(Math.floor(e), s) - d(Math.floor(t), s);
|
|
4155
|
+
return "months" === r ? i : Math.floor(d(Math.floor(e), s) / 12) - Math.floor(d(Math.floor(t), s) / 12);
|
|
4156
4156
|
}
|
|
4157
4157
|
function Hr(t, e = !1) {
|
|
4158
4158
|
const r = [...new Set(t.filter(Number.isFinite).map((t) => Math.floor(t)))].sort((t, e) => t - e);
|
|
4159
4159
|
let s = "years";
|
|
4160
4160
|
for (let t = 1; t < r.length; t++) {
|
|
4161
|
-
const i =
|
|
4161
|
+
const i = d(r[t - 1], e), n = d(r[t], e);
|
|
4162
4162
|
if (i === n) return "days";
|
|
4163
4163
|
Math.floor(i / 12) === Math.floor(n / 12) && (s = "months");
|
|
4164
4164
|
}
|
|
@@ -6253,9 +6253,9 @@ var $s = {
|
|
|
6253
6253
|
...r ? { letterSpacing: 0 } : {},
|
|
6254
6254
|
baseline: 0,
|
|
6255
6255
|
color: si(s),
|
|
6256
|
-
latin:
|
|
6257
|
-
eastAsian:
|
|
6258
|
-
complexScript:
|
|
6256
|
+
latin: g.ThemeFamily.Body,
|
|
6257
|
+
eastAsian: g.ThemeFamily.Body,
|
|
6258
|
+
complexScript: g.ThemeFamily.Body
|
|
6259
6259
|
} },
|
|
6260
6260
|
endRun: { language: "en-US" }
|
|
6261
6261
|
}]
|
|
@@ -7681,7 +7681,7 @@ var Ei = 500000001, Vi = 500000002, zi = [
|
|
|
7681
7681
|
type: "solid",
|
|
7682
7682
|
color: e.color
|
|
7683
7683
|
})), void 0 !== e.family) {
|
|
7684
|
-
const t = e.family ??
|
|
7684
|
+
const t = e.family ?? g.ThemeFamily.Body;
|
|
7685
7685
|
r = $i(r, "latin", t), r = $i(r, "eastAsian", t), r = $i(r, "complexScript", t);
|
|
7686
7686
|
}
|
|
7687
7687
|
return void 0 !== e.fallbacks && (r = $i(r, "fallbacks", e.fallbacks?.length ? [...e.fallbacks] : void 0)), r;
|
|
@@ -8334,9 +8334,9 @@ function $o(t) {
|
|
|
8334
8334
|
return r;
|
|
8335
8335
|
}
|
|
8336
8336
|
var Wo = (t, e) => {
|
|
8337
|
-
const r =
|
|
8338
|
-
return void 0 === r ? t : ("number" == typeof r ?
|
|
8339
|
-
}, Go = (t, e) => null == t ? "blank" : "string" == typeof t ? "text" : "number" == typeof t && e &&
|
|
8337
|
+
const r = u[t];
|
|
8338
|
+
return void 0 === r ? t : ("number" == typeof r ? c(r, e) : void 0) ?? m(r);
|
|
8339
|
+
}, Go = (t, e) => null == t ? "blank" : "string" == typeof t ? "text" : "number" == typeof t && e && v.getEngine().isDateFormat(e) ? "date" : "number", Ho = class {
|
|
8340
8340
|
constructor(t) {
|
|
8341
8341
|
this._sheet = t, this._blocks = [];
|
|
8342
8342
|
}
|
|
@@ -8378,9 +8378,9 @@ var Wo = (t, e) => {
|
|
|
8378
8378
|
format(t, e) {
|
|
8379
8379
|
return this._at(t, e).format;
|
|
8380
8380
|
}
|
|
8381
|
-
}, qo = (t,
|
|
8382
|
-
const
|
|
8383
|
-
return `${
|
|
8381
|
+
}, qo = (t, r) => {
|
|
8382
|
+
const s = i(t.getName()), n = (t, r) => `$${e(r)}$${o(t)}`, l = n(r.rowStart, r.colStart);
|
|
8383
|
+
return `${s}!${r.rowStart === r.rowEnd && r.colStart === r.colEnd ? l : `${l}:${n(r.rowEnd, r.colEnd)}`}`;
|
|
8384
8384
|
}, Ko = (t) => qo(t.getWorksheet(), t.getCoords()), Yo = (t) => {
|
|
8385
8385
|
const e = /^\{(.*)\}$/s.exec(t.trim());
|
|
8386
8386
|
if (!e) return null;
|
|
@@ -8427,7 +8427,7 @@ var Wo = (t, e) => {
|
|
|
8427
8427
|
};
|
|
8428
8428
|
};
|
|
8429
8429
|
function Jo(t, e, r) {
|
|
8430
|
-
let
|
|
8430
|
+
let i, n = null;
|
|
8431
8431
|
if ("string" == typeof t) {
|
|
8432
8432
|
const o = t.trim().replace(/^=/, ""), l = Yo(o);
|
|
8433
8433
|
if (l) {
|
|
@@ -8442,20 +8442,20 @@ function Jo(t, e, r) {
|
|
|
8442
8442
|
return l.numbers || "values" === e ? { numLit: t } : { strLit: t };
|
|
8443
8443
|
}
|
|
8444
8444
|
if (!o) throw new M(L("error.chart.noData"));
|
|
8445
|
-
|
|
8446
|
-
} else
|
|
8447
|
-
if ("values" === e) return { numRef: { f:
|
|
8448
|
-
if (!
|
|
8449
|
-
const o =
|
|
8450
|
-
if (o.rowEnd > o.rowStart && o.colEnd > o.colStart) return { multiLvlStrRef: { f:
|
|
8451
|
-
const l =
|
|
8445
|
+
n = Xo(o, r), i = n && s(o) ? Ko(n) : o;
|
|
8446
|
+
} else n = t, i = Ko(t);
|
|
8447
|
+
if ("values" === e) return { numRef: { f: i } };
|
|
8448
|
+
if (!n || n.isInvalid()) return { strRef: { f: i } };
|
|
8449
|
+
const o = n.getCoords();
|
|
8450
|
+
if (o.rowEnd > o.rowStart && o.colEnd > o.colStart) return { multiLvlStrRef: { f: i } };
|
|
8451
|
+
const l = n.getValues(), a = n.getNumberFormats();
|
|
8452
8452
|
let u = 0;
|
|
8453
8453
|
for (let t = 0; t < l.length; t++) for (let e = 0; e < l[t].length; e++) {
|
|
8454
8454
|
const r = Go(l[t][e], a[t]?.[e] ?? "");
|
|
8455
|
-
if ("text" === r) return { strRef: { f:
|
|
8455
|
+
if ("text" === r) return { strRef: { f: i } };
|
|
8456
8456
|
"blank" !== r && u++;
|
|
8457
8457
|
}
|
|
8458
|
-
return u > 0 ? { numRef: { f:
|
|
8458
|
+
return u > 0 ? { numRef: { f: i } } : { strRef: { f: i } };
|
|
8459
8459
|
}
|
|
8460
8460
|
function Qo(t, e) {
|
|
8461
8461
|
if ("string" != typeof t) return t.isInvalid() ? 0 : t.size;
|
|
@@ -8547,7 +8547,7 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
8547
8547
|
}, Cl = (t) => ({
|
|
8548
8548
|
type: "solid",
|
|
8549
8549
|
color: t
|
|
8550
|
-
}), Al = (t, e, r, s, i) => new
|
|
8550
|
+
}), Al = (t, e, r, s, i) => new f({
|
|
8551
8551
|
getData: () => {
|
|
8552
8552
|
const t = e();
|
|
8553
8553
|
return {
|
|
@@ -8576,7 +8576,7 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
8576
8576
|
}
|
|
8577
8577
|
getFamily() {
|
|
8578
8578
|
const t = this._pick("latin");
|
|
8579
|
-
return t && t !==
|
|
8579
|
+
return t && t !== g.ThemeFamily.Body ? t === g.ThemeFamily.Heading ? this._host.theme().majorFont() : t : this._host.theme().minorFont();
|
|
8580
8580
|
}
|
|
8581
8581
|
setFamily(t, e) {
|
|
8582
8582
|
return this.update({ family: t }, e);
|
|
@@ -8589,7 +8589,7 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
8589
8589
|
}
|
|
8590
8590
|
getThemeFamily() {
|
|
8591
8591
|
const t = this._pick("latin");
|
|
8592
|
-
return t && t !==
|
|
8592
|
+
return t && t !== g.ThemeFamily.Body ? t === g.ThemeFamily.Heading ? t : null : g.ThemeFamily.Body;
|
|
8593
8593
|
}
|
|
8594
8594
|
getFallbacks() {
|
|
8595
8595
|
return this._pick("fallbacks") ?? [];
|
|
@@ -8616,19 +8616,19 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
8616
8616
|
return this.update({ bold: t }, e);
|
|
8617
8617
|
}
|
|
8618
8618
|
getItalic() {
|
|
8619
|
-
return this._pick("style") ===
|
|
8619
|
+
return this._pick("style") === a.Style.Italic;
|
|
8620
8620
|
}
|
|
8621
8621
|
setItalic(t, e) {
|
|
8622
8622
|
return this.update({ italic: t }, e);
|
|
8623
8623
|
}
|
|
8624
8624
|
getUnderline() {
|
|
8625
|
-
return this._pick("underline") ??
|
|
8625
|
+
return this._pick("underline") ?? a.UnderlineStyle.None;
|
|
8626
8626
|
}
|
|
8627
8627
|
setUnderline(t, e) {
|
|
8628
8628
|
return this.update({ underline: t }, e);
|
|
8629
8629
|
}
|
|
8630
8630
|
getStrike() {
|
|
8631
|
-
return this._pick("strike") ??
|
|
8631
|
+
return this._pick("strike") ?? a.StrikeStyle.None;
|
|
8632
8632
|
}
|
|
8633
8633
|
setStrike(t, e) {
|
|
8634
8634
|
return this.update({ strike: t }, e);
|
|
@@ -8659,14 +8659,14 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
8659
8659
|
void 0 !== t.family && (s.family = t.family), void 0 !== t.fallbacks && (s.fallbacks = t.fallbacks), void 0 !== t.size && (s.size = r(t.size, (t) => t > 0) ?? this._defaults.size);
|
|
8660
8660
|
const i = t.weight ?? (void 0 === t.bold || null === t.bold ? t.bold : t.bold ? 700 : 400);
|
|
8661
8661
|
void 0 !== i && (s.weight = r("string" == typeof i ? "bold" === i ? 700 : "normal" === i ? 400 : Number(i) : i, (t) => t >= 1 && t <= 1e3) ?? (this._defaults.bold ? 700 : 400));
|
|
8662
|
-
const n = t.style ?? (void 0 === t.italic || null === t.italic ? t.italic : t.italic ?
|
|
8663
|
-
if (void 0 !== n && (s.italic = n ===
|
|
8664
|
-
const r = !0 === t.underline ?
|
|
8665
|
-
r !==
|
|
8662
|
+
const n = t.style ?? (void 0 === t.italic || null === t.italic ? t.italic : t.italic ? a.Style.Italic : a.Style.Normal);
|
|
8663
|
+
if (void 0 !== n && (s.italic = n === a.Style.Italic), void 0 !== t.color && (s.color = null === t.color ? null : Bl(this._host, String(t.color))), void 0 !== t.underline) {
|
|
8664
|
+
const r = !0 === t.underline ? a.UnderlineStyle.Single : t.underline || a.UnderlineStyle.None;
|
|
8665
|
+
r !== a.UnderlineStyle.SingleAccounting && r !== a.UnderlineStyle.DoubleAccounting && Object.values(a.UnderlineStyle).includes(r) || e(r), s.underline = r;
|
|
8666
8666
|
}
|
|
8667
8667
|
if (void 0 !== t.strike) {
|
|
8668
|
-
const r = t.strike ??
|
|
8669
|
-
Object.values(
|
|
8668
|
+
const r = t.strike ?? a.StrikeStyle.None;
|
|
8669
|
+
Object.values(a.StrikeStyle).includes(r) || e(r), s.strike = r;
|
|
8670
8670
|
}
|
|
8671
8671
|
return void 0 !== t.letterSpacing && (s.letterSpacing = r(t.letterSpacing, (t) => Math.abs(t) <= 4e3) ?? 0), void 0 !== t.baseline && (s.baseline = r(t.baseline, () => !0) ?? 0), this._write(s);
|
|
8672
8672
|
}
|
|
@@ -8689,11 +8689,11 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
8689
8689
|
}
|
|
8690
8690
|
toCSS(t, e = 1) {
|
|
8691
8691
|
return {
|
|
8692
|
-
fontFamily:
|
|
8693
|
-
fontSize: this.getSize() *
|
|
8692
|
+
fontFamily: y(this.getFamily(), this.getFallbacks()),
|
|
8693
|
+
fontSize: this.getSize() * a.getDeviceScale() * e + "px",
|
|
8694
8694
|
fontWeight: this.getWeight(),
|
|
8695
|
-
fontStyle: this.getItalic() ?
|
|
8696
|
-
textDecoration:
|
|
8695
|
+
fontStyle: this.getItalic() ? a.Style.Italic : a.Style.Normal,
|
|
8696
|
+
textDecoration: x(this.getUnderline(), this.getStrike()),
|
|
8697
8697
|
letterSpacing: `${this.getLetterSpacing()}pt`,
|
|
8698
8698
|
color: this.getColor().toCSS(t)
|
|
8699
8699
|
};
|
|
@@ -8703,7 +8703,7 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
8703
8703
|
family: this.getThemeFamily() ?? this.getFamily(),
|
|
8704
8704
|
size: this.getSize(),
|
|
8705
8705
|
weight: this.getWeight(),
|
|
8706
|
-
style: this.getItalic() ?
|
|
8706
|
+
style: this.getItalic() ? a.Style.Italic : a.Style.Normal,
|
|
8707
8707
|
color: String(this.getColor()),
|
|
8708
8708
|
underline: this.getUnderline(),
|
|
8709
8709
|
strike: this.getStrike(),
|
|
@@ -11925,9 +11925,9 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
11925
11925
|
const e = {};
|
|
11926
11926
|
for (const [r, s] of Object.entries(t ?? {})) void 0 !== s && (e[r] = s);
|
|
11927
11927
|
return e;
|
|
11928
|
-
}, Ra = class
|
|
11928
|
+
}, Ra = class e extends t {
|
|
11929
11929
|
constructor(t) {
|
|
11930
|
-
super(t), this._part = null, this._readSource = null, this._read = null, this._partModel = null, this._series = null, this._parts = null, this._held = null, this._heldModel = null, this._heldBefore = /* @__PURE__ */ new WeakMap(), this._layoutListeners = 0, this._layoutSources = null, this._dataListeners = /* @__PURE__ */ new Map(), this._sheetListeners = /* @__PURE__ */ new Map(), this._layoutQueued = !1, this._getStyles = t.getStyles ?? null, this._canHold = !!t.addWatch, t.json && (this._part =
|
|
11930
|
+
super(t), this._part = null, this._readSource = null, this._read = null, this._partModel = null, this._series = null, this._parts = null, this._held = null, this._heldModel = null, this._heldBefore = /* @__PURE__ */ new WeakMap(), this._layoutListeners = 0, this._layoutSources = null, this._dataListeners = /* @__PURE__ */ new Map(), this._sheetListeners = /* @__PURE__ */ new Map(), this._layoutQueued = !1, this._getStyles = t.getStyles ?? null, this._canHold = !!t.addWatch, t.json && (this._part = l.fromJSON(t.json.part, t.fromResourceId), this._updateState({ data: t.json }), this._partModel = t.json.model ?? null), this._syncHolds();
|
|
11931
11931
|
}
|
|
11932
11932
|
_syncHolds() {
|
|
11933
11933
|
if (!this._canHold) return;
|
|
@@ -12026,7 +12026,7 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
12026
12026
|
}
|
|
12027
12027
|
_rangeAt(t) {
|
|
12028
12028
|
const e = this._formulaAt(t);
|
|
12029
|
-
if (!e || !
|
|
12029
|
+
if (!e || !s(e)) return null;
|
|
12030
12030
|
try {
|
|
12031
12031
|
return this._resolveRange(e);
|
|
12032
12032
|
} catch {
|
|
@@ -12328,10 +12328,10 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
12328
12328
|
return t && "groups" in t ? t : this._getLayout(t);
|
|
12329
12329
|
}
|
|
12330
12330
|
_hitNames(t) {
|
|
12331
|
-
const
|
|
12332
|
-
if (
|
|
12331
|
+
const r = e._hitNamesOf.get(t);
|
|
12332
|
+
if (r) return r;
|
|
12333
12333
|
const s = this._nameHits();
|
|
12334
|
-
return
|
|
12334
|
+
return e._hitNamesOf.set(t, s), s;
|
|
12335
12335
|
}
|
|
12336
12336
|
_nameHits() {
|
|
12337
12337
|
const t = this._getParts(), e = /* @__PURE__ */ new Map();
|
|
@@ -12668,7 +12668,7 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
12668
12668
|
return t && G(t) ? Te(t, le(this._styles()), this._dataReader()) : null;
|
|
12669
12669
|
}
|
|
12670
12670
|
_styles() {
|
|
12671
|
-
return this._getStyles?.() ?? (
|
|
12671
|
+
return this._getStyles?.() ?? (e._defaultStyles ??= new n());
|
|
12672
12672
|
}
|
|
12673
12673
|
getPivotSource() {
|
|
12674
12674
|
return this._getFacts()?.pivotSource ?? null;
|
|
@@ -12836,7 +12836,7 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
12836
12836
|
if (this._layoutListeners += t, this._layoutListeners > 0 && !this._layoutSources && !this._closed) {
|
|
12837
12837
|
const t = () => {
|
|
12838
12838
|
this._closed || this._emitter.notify("onLayoutChange");
|
|
12839
|
-
},
|
|
12839
|
+
}, e = this.getMovable(), s = () => JSON.stringify(e?.getBounds() ?? null);
|
|
12840
12840
|
let i = s();
|
|
12841
12841
|
const n = () => {
|
|
12842
12842
|
const e = s();
|
|
@@ -12846,9 +12846,9 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
12846
12846
|
onAnyChange: t,
|
|
12847
12847
|
onReferencesChange: () => this._syncDataListeners()
|
|
12848
12848
|
}),
|
|
12849
|
-
|
|
12849
|
+
e?.addListeners({ onBoundsChange: n }),
|
|
12850
12850
|
this._getStyles?.()?.addListeners({ onThemeChange: t }),
|
|
12851
|
-
|
|
12851
|
+
r.getShared().addListeners({ onCollectionChange: t })
|
|
12852
12852
|
];
|
|
12853
12853
|
this._layoutSources = o.filter((t) => !!t), this._syncDataListeners();
|
|
12854
12854
|
} else this._layoutListeners <= 0 && this._layoutSources && this._releaseLayoutSources();
|
|
@@ -12962,12 +12962,12 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
12962
12962
|
toJSON(t) {
|
|
12963
12963
|
const e = this._getState();
|
|
12964
12964
|
if (!e?.data) return null;
|
|
12965
|
-
const r = { ...e.data }, s = this._getModel(),
|
|
12966
|
-
if (s &&
|
|
12967
|
-
else if (s &&
|
|
12965
|
+
const r = { ...e.data }, s = this._getModel(), i = this._getRead()?.slots, n = (t) => this._movedAt(t);
|
|
12966
|
+
if (s && i && !W(s)) r.model = it(s, i, { movedAt: n });
|
|
12967
|
+
else if (s && i) {
|
|
12968
12968
|
const t = /* @__PURE__ */ new Map();
|
|
12969
|
-
r.model = it(s,
|
|
12970
|
-
movedAt:
|
|
12969
|
+
r.model = it(s, i, {
|
|
12970
|
+
movedAt: n,
|
|
12971
12971
|
cacheOf: (e, r) => {
|
|
12972
12972
|
const s = "multiLvlStr" === r ? null : this._plotRange(e);
|
|
12973
12973
|
if (!s) return this._cacheOf(e, r);
|
|
@@ -12976,8 +12976,8 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
12976
12976
|
}
|
|
12977
12977
|
});
|
|
12978
12978
|
}
|
|
12979
|
-
const
|
|
12980
|
-
return
|
|
12979
|
+
const o = l.toJSON(this._part, t);
|
|
12980
|
+
return o ? ((r.model ?? null) !== this._partModel && delete o.xml, r.part = o) : delete r.part, r;
|
|
12981
12981
|
}
|
|
12982
12982
|
getTypeDescription() {
|
|
12983
12983
|
return "Chart";
|