@sheetxl/sdk 0.8.0-beta.11 → 0.8.0-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/esm/{BpgskG1Er_lGQ_yS.mjs → -Jx-jNHmtIQQfLvK.mjs} +1 -1
- package/browser/esm/{BLoUBId2xZpXAK_H.mjs → 2WuhYrIpYmOR5H73.mjs} +15 -15
- package/browser/esm/{Ctjb0SsxV4K4MMqG.mjs → 2mIwPy2D2JUX-9wx.mjs} +2 -2
- package/browser/esm/{CkxWugaJFjDGZNZ-.mjs → B3wf5vZCsWfWsDbj.mjs} +1 -1
- package/browser/esm/{BjkCiv5Jz6WYKZeu.mjs → BIHrHjRGWVlJglcp.mjs} +2 -2
- package/browser/esm/{BtvLTTfSBdAKplVG.mjs → BTFBedJMRWGvZyCE.mjs} +1 -1
- package/browser/esm/{C4MqfLn9Dm-l3OIk.mjs → BdCJNawfifyPupCP.mjs} +1 -1
- package/browser/esm/{CV5EGEjG5_-CPpP0.mjs → Bg5Di9GLNAkbqQ1P.mjs} +3 -3
- package/browser/esm/{C2VbEI_XVAoseAwa.mjs → BnC4-27Igwb8oDf2.mjs} +2 -2
- package/browser/esm/{CQYjO777cmAznUzK.mjs → Bt8_m94tBdks209L.mjs} +1 -1
- package/browser/esm/{C16ycKja6zG0crV_.mjs → BudSIfXBAsTxvu-K.mjs} +17836 -15712
- package/browser/esm/{DvAaxH6z_tGvrRzl.mjs → C9u8FUewte5ugUjH.mjs} +686 -686
- package/browser/esm/{DEiPS3Dr-s4fPbVZ.mjs → CBYMTDzMf1Vh7pkw.mjs} +1 -1
- package/browser/esm/{Dyq_ivuHvlXLwPCl.mjs → CNdjyofiRu6CYOrr.mjs} +1106 -1102
- package/browser/esm/{PcHFjNzQsE54POri.mjs → CRkYR-siY2C994KV.mjs} +1 -1
- package/browser/esm/{C5E6zSGAALWf61n4.mjs → CTe2qfmIUEad6FJv.mjs} +2 -2
- package/browser/esm/{BoV6zPBnfqCBCqZ7.mjs → CUzYuYTTGsChC_kZ.mjs} +3841 -3148
- package/browser/esm/CdEO8CEee6lEhabA.mjs +117 -0
- package/browser/esm/{S2dNNx1a5ydRnARM.mjs → CfRqiPDg6RBTg1EN.mjs} +2 -2
- package/browser/esm/{ClbvFbFzFzXLBKNN.mjs → CndRBvVfQUJIYRRj.mjs} +50 -50
- package/browser/esm/{BnG31I6Oj_HEtSPS.mjs → CwOPLXU3-9ZHGyOT.mjs} +1 -1
- package/browser/esm/{CHU6iu_WGlm7fLET.mjs → Cxjxk0ncRKx80I-w.mjs} +1 -1
- package/browser/esm/D2RZh0O9neOsyLAE.mjs +281 -0
- package/browser/esm/{BkBhLS0l6z8sxI6D.mjs → D64dM68B1pKYFzdP.mjs} +2 -2
- package/browser/esm/{BVDiOXGMc5_FMGfy.mjs → D9xNz46kAfXMZzp4.mjs} +2 -2
- package/browser/esm/{zlLuW405RSguy4Kn.mjs → DK899HhWX1HINMC1.mjs} +53 -53
- package/browser/esm/{B7aUIvgUjncMMD_i.mjs → DPhGQLNGmDZwODwJ.mjs} +5 -4
- package/browser/esm/{gssVX_FH1XFN-twD.mjs → DVroRnhi-5IDXNgM.mjs} +1 -1
- package/{node/esm/CZICGK_ss0HoGHCP.mjs → browser/esm/DZiivy0NmO1Vnyzk.mjs} +2 -2
- package/browser/esm/{ClPfI4lODvCece29.mjs → DgrAuRD2qr2DvFeJ.mjs} +61 -61
- package/browser/esm/{CU3DmJ-YnVVrC1_k.mjs → DobHLF6VjHr7Xi40.mjs} +1 -1
- package/browser/esm/{CaB7J-xgfKO2uAkG.mjs → DwZCT7DZiiXoTweg.mjs} +2 -2
- package/browser/esm/{BMyDRQ716j79h_bH.mjs → DwwR3O2sEZApPSTF.mjs} +6 -6
- package/browser/esm/{DLLE0FZNsKxbBzRn.mjs → Tah7cnFb_HNZdLtj.mjs} +45 -45
- package/browser/esm/{Dlmig06rIo7cInRk.mjs → fXWUMDhZ5yMSO629.mjs} +1 -1
- package/browser/esm/{DWNzqw7DUKwoxjri.mjs → hCQJcmIzPDxDEv2q.mjs} +2 -2
- package/browser/esm/index.mjs +679 -542
- package/browser/esm/{BFagR2JeWs74iAG3.mjs → qO-ujUrgq6H3TQix.mjs} +1 -1
- package/browser/esm/w6Jea0TiclPrYZ2M.mjs +1703 -0
- package/browser/esm/yuhcOYw6SHQ-RCm3.mjs +114 -0
- package/node/esm/-TA0MneBDKdGhsib.mjs +8668 -0
- package/node/esm/{B21JjOLghRoDOrkx.mjs → B-HUPAcqvK0eeeCz.mjs} +1 -1
- package/node/esm/{DNRhGK-8Tr9xcRyc.mjs → BL2iiEoqxDEV2Xrg.mjs} +3 -3
- package/node/esm/{D1TKBVmoKGAXf37B.mjs → BNXLOEddJ6O9gYws.mjs} +2 -2
- package/node/esm/{BrCKGFRsX_ezFJ4B.mjs → BSvOluusoDM4z_dx.mjs} +15 -15
- package/node/esm/{BIwObuhTJYf0jpUa.mjs → BskP3b8vUoIOGLY6.mjs} +2 -2
- package/node/esm/{2Kihw_-5lVTEnwMa.mjs → Btw4148Ot8ifhNc1.mjs} +1 -1
- package/node/esm/{BqiexuA89caYnAPz.mjs → C14-R6tifRh7pc0p.mjs} +1 -1
- package/node/esm/{DUTskXCXref-IJnI.mjs → C99zzq8DImQXi4BQ.mjs} +47 -47
- package/node/esm/{D8zEN-6ZdDqDvTxM.mjs → CBuEu5Jk-LfaDy-H.mjs} +61 -61
- package/node/esm/{yavzZOiZW_EjG9lE.mjs → CG-qBU5BAaVz7e-P.mjs} +1 -1
- package/node/esm/CPI58duc0j0a-HpJ.mjs +115 -0
- package/node/esm/{CCN5vD410obwdz38.mjs → CRt3vXe6YmXzqk3H.mjs} +15 -14
- package/node/esm/{CzXT00vrQa1_gvW9.mjs → C_aL7CGS1lrNn1Ng.mjs} +1 -1
- package/node/esm/{CZiqiay42tFTrLI4.mjs → C_xf5Bz30VqiJjXn.mjs} +1 -1
- package/node/esm/{BIRq1kT7lLRzns9t.mjs → CiIymQN6aJCul62g.mjs} +9 -9
- package/node/esm/{CNCNJNg890KdgkWh.mjs → Ci_zLYmCD7e-C79O.mjs} +1 -1
- package/{browser/esm/D5np__Jb1euAyaLw.mjs → node/esm/CkRYLed8Mmn3giNg.mjs} +2 -2
- package/node/esm/D3ptRKzASqBut1DE.mjs +117 -0
- package/node/esm/{cGwrLA1RCE-WhJ7w.mjs → D4ROK9UwDpS6jO3Z.mjs} +1 -1
- package/node/esm/{mFiBSM7XgBHV9AY7.mjs → D8hO07ToAibIuniw.mjs} +1535 -1531
- package/node/esm/{CDHdgJXH2vS71WMc.mjs → DUTmDHbFbhLDT4F3.mjs} +1 -1
- package/node/esm/{CGp6VZL-gZa9Uezx.mjs → DV5CU37aEbFbWFL0.mjs} +1 -1
- package/node/esm/{De2IONBxQhz-Qbyh.mjs → DdoiuKg9BKubtF1V.mjs} +1 -1
- package/node/esm/{Db0v7zXNnyjBIjjI.mjs → DggQ23jKMpwhENfa.mjs} +2 -2
- package/node/esm/{CwePQwTILHHjGDkZ.mjs → DhS6yWjrrSNIJMsn.mjs} +204 -204
- package/node/esm/{D_t5AUxSm7_icjzq.mjs → DhTya_mhmN53vskv.mjs} +1 -1
- package/node/esm/{DOU54VsOjG-m-NyQ.mjs → Dn1M7YWi25DeeYUb.mjs} +1 -1
- package/node/esm/{DkwIPzKc3UwdUIfM.mjs → DrCf6ITcBhVOFpRj.mjs} +6 -6
- package/node/esm/{D2KBymQJd1XhpeQD.mjs → DxazKtROyaI51dWl.mjs} +1 -1
- package/node/esm/{D6e2z7eZpxOJXHc7.mjs → Q_S1g46ZOTrdhTae.mjs} +1 -1
- package/node/esm/{OVfaSb506tNSIvbv.mjs → Vocy-I9dKzZMr0Ct.mjs} +19038 -16822
- package/node/esm/ZXPFcsT2zrALCZux.mjs +289 -0
- package/node/esm/{857CIBgQgGpnqrXk.mjs → eimUGjiIP-b8HiM6.mjs} +55 -55
- package/node/esm/{Bbf1Pm9Gk7YpLTvg.mjs → icn2nX5Z8e_3mNAv.mjs} +1 -1
- package/node/esm/index.mjs +740 -603
- package/node/esm/{Ct3h15sCus4Tgt6M.mjs → lGJ42sHqg5if2bba.mjs} +624 -616
- package/node/esm/{CdJHUJSBRHZoryPe.mjs → pYtP7wPyS96NQyXS.mjs} +59 -59
- package/package.json +6 -6
- package/resources/locales/de/model.msg.json +8 -2
- package/resources/locales/en/model.msg.json +9 -2
- package/types/scripting-api.json +10619 -10446
- package/types/scripting-enums.json +20 -1
- package/types/scripting.d.ts +1233 -296
- package/types/src/{sheet → anomalies}/_Anomalies.d.ts +3 -3
- package/types/src/anomalies/_FocusTable.d.ts +11 -0
- package/types/src/{sheet/_AnomalyFormulaChecks.d.ts → anomalies/_FormulaChecks.d.ts} +10 -2
- package/types/src/{sheet/_AnomalyLabelChecks.d.ts → anomalies/_LabelChecks.d.ts} +1 -1
- package/types/src/anomalies/_LiteralChecks.d.ts +35 -0
- package/types/src/anomalies/_SeriesChecks.d.ts +13 -0
- package/types/src/calculation/Calculation.d.ts +47 -9
- package/types/src/calculation/ExternalBookBindings.d.ts +2 -3
- package/types/src/calculation/ICalculation.d.ts +96 -9
- package/types/src/calculation/NamedFormulaCollection.d.ts +104 -8
- package/types/src/calculation/_CloneBoundary.d.ts +1 -1
- package/types/src/calculation/compiler/ASTTypes.d.ts +6 -2
- package/types/src/calculation/compiler/Types.d.ts +8 -0
- package/types/src/calculation/engine/CalcBackend.d.ts +104 -6
- package/types/src/calculation/executor/CalcExecutor.d.ts +73 -22
- package/types/src/calculation/executor/CalcExecutorUtils.d.ts +17 -1
- package/types/src/calculation/executor/_WhatIf.d.ts +50 -0
- package/types/src/calculation/formula/FormulaBlock.d.ts +4 -3
- package/types/src/calculation/formula/IFormulaBlock.d.ts +5 -0
- package/types/src/calculation/functions/_DataTableFunction.d.ts +14 -0
- package/types/src/calculation/grid/CalcGrid.d.ts +4 -6
- package/types/src/calculation/grid/CalcGridBackend.d.ts +5 -27
- package/types/src/calculation/grid/CalcGridProxy.d.ts +0 -2
- package/types/src/calculation/grid/CalcGridUtils.d.ts +4 -2
- package/types/src/calculation/grid/ICalcGrid.d.ts +16 -12
- package/types/src/calculation/grid/_CalcRequest.d.ts +17 -5
- package/types/src/calculation/spatial/FormulaSpatialValue.d.ts +2 -0
- package/types/src/calculation/spatial/SpillEntry.d.ts +16 -2
- package/types/src/calculation/state/CalcNode.d.ts +0 -1
- package/types/src/calculation/state/CalcScope.d.ts +29 -0
- package/types/src/calculation/state/CalcState.d.ts +26 -4
- package/types/src/calculation/state/CalculationContext.d.ts +28 -1
- package/types/src/calculation/state/DeferredCalls.d.ts +260 -0
- package/types/src/calculation/state/IContextContainer.d.ts +20 -0
- package/types/src/calculation/state/_PendingOverlayGrid.d.ts +6 -0
- package/types/src/calculation/state/_WhatIfLayer.d.ts +91 -0
- package/types/src/cell/ICell.d.ts +53 -34
- package/types/src/cellControl/CellControl.d.ts +67 -0
- package/types/src/cellControl/CellControlCollection.d.ts +29 -0
- package/types/src/cellControl/CellControlRegistry.d.ts +47 -0
- package/types/src/cellControl/ICellControl.d.ts +99 -0
- package/types/src/cellControl/ICellControlCollection.d.ts +67 -0
- package/types/src/cellControl/index.d.ts +4 -0
- package/types/src/cellRange/ICellRange.d.ts +207 -59
- package/types/src/cellRange/ICellRanges.d.ts +4 -3
- package/types/src/chart/layout/ChartLayout.d.ts +5 -1
- package/types/src/chart/resolve/_Resolve.d.ts +10 -0
- package/types/src/chart/resolve/_ResolvedChart.d.ts +5 -2
- package/types/src/collections/ISparseGrid.d.ts +11 -2
- package/types/src/collections/MixedTypedArrayList.d.ts +8 -2
- package/types/src/collections/SparseGrid.d.ts +3 -8
- package/types/src/condition/AnchoredConditional.d.ts +2 -2
- package/types/src/externalBook/IExternalBook.d.ts +3 -4
- package/types/src/fetch/Fetcher.d.ts +15 -0
- package/types/src/fetch/IFetcher.d.ts +47 -0
- package/types/src/fetch/_WorkbookFetch.d.ts +43 -0
- package/types/src/fetch/index.d.ts +3 -0
- package/types/src/fill/PaintUtils.d.ts +3 -1
- package/types/src/hyperlink/IHyperlink.d.ts +10 -0
- package/types/src/hyperlink/_Hyperlink.d.ts +4 -1
- package/types/src/index.d.ts +2 -1
- package/types/src/named/INamedCollection.d.ts +36 -0
- package/types/src/named/NamedCollection.d.ts +18 -0
- package/types/src/primitives/AsyncValue.d.ts +58 -0
- package/types/src/resource/IResource.d.ts +9 -0
- package/types/src/resource/IResourceCollection.d.ts +4 -0
- package/types/src/resource/Resource.d.ts +2 -0
- package/types/src/resource/_AddResource.d.ts +13 -0
- package/types/src/richData/CellImage.d.ts +95 -0
- package/types/src/richData/Hyperlink.d.ts +49 -0
- package/types/src/richData/IRichDataCollection.d.ts +76 -0
- package/types/src/richData/IRichDataKind.d.ts +55 -11
- package/types/src/richData/RichArray.d.ts +42 -0
- package/types/src/richData/RichDataCollection.d.ts +23 -0
- package/types/src/richData/RichDataRegistry.d.ts +46 -14
- package/types/src/richData/RichDataValues.d.ts +20 -0
- package/types/src/richData/RichRecord.d.ts +68 -0
- package/types/src/richData/RichText.d.ts +5 -5
- package/types/src/richData/index.d.ts +6 -0
- package/types/src/scripting/FunctionArguments.d.ts +17 -1
- package/types/src/scripting/FunctionCollection.d.ts +8 -0
- package/types/src/scripting/Scripts.d.ts +10 -0
- package/types/src/scripting/TypedFunction.d.ts +2 -0
- package/types/src/sheet/ICellContainerOptions.d.ts +6 -0
- package/types/src/sheet/IWorksheet.d.ts +24 -17
- package/types/src/sheet/SheetCell.d.ts +17 -1
- package/types/src/sheet/SheetRange.d.ts +8 -2
- package/types/src/sheet/SheetRanges.d.ts +2 -2
- package/types/src/sheet/Worksheet.d.ts +110 -56
- package/types/src/sheet/_ListenerAnchor.d.ts +7 -1
- package/types/src/sheet/_ScalarListFactory.d.ts +54 -6
- package/types/src/sheet/_SheetMutations.d.ts +4 -1
- package/types/src/sheet/_SheetStateTypes.d.ts +23 -11
- package/types/src/workbook/IWorkbook.d.ts +40 -1
- package/types/src/workbook/Workbook.d.ts +25 -3
- package/types/src/workbook/WorkbookRanges.d.ts +1 -1
- package/browser/esm/BGOFfpxr2jPIdqmV.mjs +0 -40
- package/browser/esm/f1IoRb7tEb0QmCSt.mjs +0 -110
- package/browser/esm/nvU0ClAbf0g94YBK.mjs +0 -1695
- package/node/esm/B084DssTcdBheTp_.mjs +0 -7966
- package/node/esm/Df1bL6VFvrqIdSLB.mjs +0 -40
- package/node/esm/DrTZbfemSLq2mseG.mjs +0 -111
- package/types/src/dataTable/DataTable.d.ts +0 -67
- package/types/src/dataTable/DataTableCollection.d.ts +0 -19
- package/types/src/dataTable/IDataTable.d.ts +0 -99
- package/types/src/dataTable/IDataTableCollection.d.ts +0 -18
- package/types/src/dataTable/index.d.ts +0 -6
|
@@ -1,18 +1,18 @@
|
|
|
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.12
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { t as e } from "./
|
|
8
|
-
import {
|
|
7
|
+
import { t as e } from "./DobHLF6VjHr7Xi40.mjs";
|
|
8
|
+
import { An as t, Dn as n, En as r, Mr as i, On as a, ji as o, kn as s, kr as c } from "./BudSIfXBAsTxvu-K.mjs";
|
|
9
9
|
import { ExpectedError as l, messageKey as u, t as d } from "@sheetxl/utils";
|
|
10
|
-
var f = "SlicerStyleLight1", p = "ascending", m = "showItemsWithDataAtTop", h = u("op.setSlicerCaption"), g = u("op.setSlicerStyle"), _ = u("op.setSlicerLayout"), v = u("op.setSlicerSort"), y = u("op.selectSlicerItems"), b =
|
|
10
|
+
var f = "SlicerStyleLight1", p = "ascending", m = "showItemsWithDataAtTop", h = u("op.setSlicerCaption"), g = u("op.setSlicerStyle"), _ = u("op.setSlicerLayout"), v = u("op.setSlicerSort"), y = u("op.selectSlicerItems"), b = c.BuiltInSelectorNames.Display, x = Object.freeze({
|
|
11
11
|
selector: b,
|
|
12
12
|
scope: "column"
|
|
13
13
|
}), S = Object.freeze({ transactional: !1 }), C = class extends e {
|
|
14
14
|
constructor(e) {
|
|
15
|
-
let t =
|
|
15
|
+
let t = a(e.json?.source)?.column ?? "", n = e.name;
|
|
16
16
|
!n && e.getMovable && (n = t || null), super({
|
|
17
17
|
...e,
|
|
18
18
|
name: n
|
|
@@ -29,7 +29,7 @@ var f = "SlicerStyleLight1", p = "ascending", m = "showItemsWithDataAtTop", h =
|
|
|
29
29
|
return "Slicer";
|
|
30
30
|
}
|
|
31
31
|
getDefaultAnchorType() {
|
|
32
|
-
return
|
|
32
|
+
return i.Type.Absolute;
|
|
33
33
|
}
|
|
34
34
|
getSource() {
|
|
35
35
|
let e = this._data()?.source ?? "", t = this._formula?.getExpression() ?? null;
|
|
@@ -42,8 +42,8 @@ var f = "SlicerStyleLight1", p = "ascending", m = "showItemsWithDataAtTop", h =
|
|
|
42
42
|
return this._resolve()?.column ?? null;
|
|
43
43
|
}
|
|
44
44
|
setName(e) {
|
|
45
|
-
let
|
|
46
|
-
if (
|
|
45
|
+
let n = this._getWorkbook();
|
|
46
|
+
if (n && t(n, e, this) !== e) throw new l(d("error.slicer.nameTaken", { name: e }));
|
|
47
47
|
return super.setName(e);
|
|
48
48
|
}
|
|
49
49
|
getCaption() {
|
|
@@ -59,7 +59,7 @@ var f = "SlicerStyleLight1", p = "ascending", m = "showItemsWithDataAtTop", h =
|
|
|
59
59
|
return this._set({ hiddenCaption: !e || void 0 }, h, t);
|
|
60
60
|
}
|
|
61
61
|
getCacheName() {
|
|
62
|
-
return this._data()?.cacheName || (
|
|
62
|
+
return this._data()?.cacheName || (s(this._getWorkbook()).get(this) ?? r(this._getColumnName()));
|
|
63
63
|
}
|
|
64
64
|
getStyle() {
|
|
65
65
|
return this._data()?.style ?? f;
|
|
@@ -105,65 +105,65 @@ var f = "SlicerStyleLight1", p = "ascending", m = "showItemsWithDataAtTop", h =
|
|
|
105
105
|
async getItems() {
|
|
106
106
|
let e = this.getColumn()?.getFilter();
|
|
107
107
|
if (!e) return w;
|
|
108
|
-
let t = await e.getItems(x), n = e.getCondition(),
|
|
108
|
+
let t = await e.getItems(x), n = e.getCondition(), r = n ? function(e, t) {
|
|
109
109
|
let n = e.toJSON();
|
|
110
|
-
if (n.operator !==
|
|
111
|
-
let
|
|
112
|
-
for (let e = 0; e <
|
|
113
|
-
let
|
|
110
|
+
if (n.operator !== c.BuiltInOperatorNames.InSet) return () => !1;
|
|
111
|
+
let r = n.param ?? {}, i = /* @__PURE__ */ new Set(), a = r.items ?? [];
|
|
112
|
+
for (let e = 0; e < a.length; e++) a[e] !== null && i.add(String(a[e]).toLowerCase());
|
|
113
|
+
let o = r.dateGroups ?? [], s = t.dates?.[t.dates.length - 1] ?? null;
|
|
114
114
|
return (e) => {
|
|
115
|
-
if (e < 0) return !0 ===
|
|
116
|
-
if (
|
|
117
|
-
if (!
|
|
115
|
+
if (e < 0) return !0 === r.blank;
|
|
116
|
+
if (i.has(t.items[e].text.toLowerCase())) return !0;
|
|
117
|
+
if (!s || o.length === 0) return !1;
|
|
118
118
|
let n = null;
|
|
119
|
-
for (let t = 0; t <
|
|
120
|
-
let r =
|
|
119
|
+
for (let t = 0; t < s.runs.length && !n; t++) {
|
|
120
|
+
let r = s.runs[t];
|
|
121
121
|
r.min <= e && e <= r.max && (n = r.value ?? null);
|
|
122
122
|
}
|
|
123
123
|
if (!n) return !1;
|
|
124
|
-
for (let e = 0; e <
|
|
124
|
+
for (let e = 0; e < o.length; e++) if (D(o[e], n)) return !0;
|
|
125
125
|
return !1;
|
|
126
126
|
};
|
|
127
|
-
}(n, t) : null,
|
|
127
|
+
}(n, t) : null, i = [];
|
|
128
128
|
for (let e = 0; e < t.items.length; e++) {
|
|
129
|
-
let n = t.items[e],
|
|
130
|
-
|
|
129
|
+
let n = t.items[e], a = !0 === n.passesOthers;
|
|
130
|
+
i.push({
|
|
131
131
|
item: {
|
|
132
132
|
key: n.text,
|
|
133
133
|
name: n.text,
|
|
134
134
|
value: n.value,
|
|
135
|
-
hasData:
|
|
136
|
-
isSelected: !
|
|
135
|
+
hasData: a,
|
|
136
|
+
isSelected: !r || (a ? n.checked : r(e))
|
|
137
137
|
},
|
|
138
138
|
firstRow: n.firstRow
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
|
-
let
|
|
142
|
-
if (
|
|
141
|
+
let a = this.getSortOrder();
|
|
142
|
+
if (a === "dataSource") i.sort((e, t) => e.firstRow - t.firstRow);
|
|
143
143
|
else {
|
|
144
|
-
let t = e.getRange().getWorksheet().getRuntime().getLocaleProfile(), n =
|
|
145
|
-
|
|
144
|
+
let t = e.getRange().getWorksheet().getRuntime().getLocaleProfile(), n = a === "descending" ? -1 : 1;
|
|
145
|
+
i.sort((e, r) => n * (o.compare(e.item.value, r.item.value, t) || o.compare(e.item.key, r.item.key, t)));
|
|
146
146
|
}
|
|
147
|
-
let
|
|
147
|
+
let s = null;
|
|
148
148
|
if (t.hasBlanks) {
|
|
149
149
|
let e = !0 === t.blanksPassOthers;
|
|
150
|
-
|
|
150
|
+
s = {
|
|
151
151
|
key: T,
|
|
152
152
|
name: d("slicer.blankItem"),
|
|
153
153
|
value: null,
|
|
154
154
|
hasData: e,
|
|
155
|
-
isSelected: !
|
|
155
|
+
isSelected: !r || (e ? t.blanksChecked : r(-1))
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
158
|
let l = [], u = this.getCrossFilter();
|
|
159
159
|
if (u === "showItemsWithNoData") {
|
|
160
|
-
for (let e = 0; e <
|
|
161
|
-
return
|
|
160
|
+
for (let e = 0; e < i.length; e++) l.push(i[e].item);
|
|
161
|
+
return s && l.push(s), l;
|
|
162
162
|
}
|
|
163
|
-
for (let e = 0; e <
|
|
164
|
-
if (
|
|
165
|
-
for (let e = 0; e <
|
|
166
|
-
return
|
|
163
|
+
for (let e = 0; e < i.length; e++) i[e].item.hasData && l.push(i[e].item);
|
|
164
|
+
if (s?.hasData && l.push(s), u === "none") return l;
|
|
165
|
+
for (let e = 0; e < i.length; e++) i[e].item.hasData || l.push(i[e].item);
|
|
166
|
+
return s && !s.hasData && l.push(s), l;
|
|
167
167
|
}
|
|
168
168
|
async getItem(e) {
|
|
169
169
|
let t = await this.getItems();
|
|
@@ -174,26 +174,26 @@ var f = "SlicerStyleLight1", p = "ascending", m = "showItemsWithDataAtTop", h =
|
|
|
174
174
|
let n = this.getColumn()?.getFilter();
|
|
175
175
|
if (!n) return this;
|
|
176
176
|
if (!e || e.length === 0) return this.clearFilters(t);
|
|
177
|
-
let
|
|
178
|
-
for (let e = 0; e <
|
|
179
|
-
if (!
|
|
177
|
+
let r = await n.getItems(x), i = new Set(e), a = r.dates?.[r.dates.length - 1] ?? null, o = a && a.runs.length > 0 ? a.runs[a.runs.length - 1].max : -1, s = [], l = [], u = !0, d = 0;
|
|
178
|
+
for (let e = 0; e < r.items.length; e++) {
|
|
179
|
+
if (!i.has(r.items[e].text)) {
|
|
180
180
|
u = !1;
|
|
181
181
|
continue;
|
|
182
182
|
}
|
|
183
|
-
if (e >
|
|
184
|
-
|
|
183
|
+
if (e > o) {
|
|
184
|
+
s.push(r.items[e].text);
|
|
185
185
|
continue;
|
|
186
186
|
}
|
|
187
|
-
for (;
|
|
188
|
-
let t =
|
|
187
|
+
for (; a.runs[d].max < e;) d++;
|
|
188
|
+
let t = a.runs[d].value;
|
|
189
189
|
t && l[l.length - 1] !== t && l.push(t);
|
|
190
190
|
}
|
|
191
|
-
let f =
|
|
192
|
-
if (
|
|
193
|
-
let p = { items:
|
|
191
|
+
let f = r.hasBlanks && i.has(T);
|
|
192
|
+
if (r.hasBlanks && !f && (u = !1), u && !r.truncated) return this.clearFilters(t);
|
|
193
|
+
let p = { items: s };
|
|
194
194
|
return l.length > 0 && (p.dateGroups = l), f && (p.blank = !0), await n.setCondition({
|
|
195
195
|
selector: b,
|
|
196
|
-
operator:
|
|
196
|
+
operator: c.BuiltInOperatorNames.InSet,
|
|
197
197
|
param: p
|
|
198
198
|
}, !1, {
|
|
199
199
|
description: y,
|
|
@@ -244,12 +244,12 @@ var f = "SlicerStyleLight1", p = "ascending", m = "showItemsWithDataAtTop", h =
|
|
|
244
244
|
}
|
|
245
245
|
_resolve() {
|
|
246
246
|
if (this._closed) return null;
|
|
247
|
-
let e =
|
|
247
|
+
let e = a(this.getSource());
|
|
248
248
|
if (!e) return null;
|
|
249
|
-
let t =
|
|
250
|
-
return
|
|
249
|
+
let t = n(this._getWorkbook(), e.table), r = t?.getColumnByName(e.column) ?? null;
|
|
250
|
+
return r ? (this._columnName = r.getName(), {
|
|
251
251
|
table: t,
|
|
252
|
-
column:
|
|
252
|
+
column: r
|
|
253
253
|
}) : null;
|
|
254
254
|
}
|
|
255
255
|
_getColumnName() {
|
|
@@ -1,12 +1,12 @@
|
|
|
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.12
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
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 { At as e, br as t, xr as n } from "./BudSIfXBAsTxvu-K.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 "./w6Jea0TiclPrYZ2M.mjs";
|
|
9
|
+
import { n as y, r as b, t as x } from "./C9u8FUewte5ugUjH.mjs";
|
|
10
10
|
import { FormulaError as S } from "@sheetxl/primitives";
|
|
11
11
|
import { CommonUtils as C } from "@sheetxl/utils";
|
|
12
12
|
var w = class {
|
|
@@ -137,6 +137,7 @@ var w = class {
|
|
|
137
137
|
namedIds: C.EmptyArray,
|
|
138
138
|
symbolIds: C.EmptyArray,
|
|
139
139
|
hasTotals: !1,
|
|
140
|
+
hasDataTable: !1,
|
|
140
141
|
hasVolatile: !1,
|
|
141
142
|
isBlankCacheable: !1,
|
|
142
143
|
isBlankCacheableArray: !1,
|
|
@@ -1,5 +1,5 @@
|
|
|
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.12
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.12
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
export { n as addSubpathsBounds, t as decorateSubpaths, r as emptyBox, i as subpathsToSVG } from "./
|
|
7
|
+
export { n as addSubpathsBounds, t as decorateSubpaths, r as emptyBox, i as subpathsToSVG } from "./BIHrHjRGWVlJglcp.mjs";
|
|
@@ -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.12
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { t as e } from "./
|
|
8
|
-
import {
|
|
9
|
-
import { g as c, v as l, w as u, x as d } from "./
|
|
7
|
+
import { t as e } from "./DobHLF6VjHr7Xi40.mjs";
|
|
8
|
+
import { Mr as t, R as n, an as r, in as i, rn as a, ya as o, z as s } from "./BudSIfXBAsTxvu-K.mjs";
|
|
9
|
+
import { g as c, v as l, w as u, x as d } from "./Bg5Di9GLNAkbqQ1P.mjs";
|
|
10
10
|
import { CommonUtils as f, CoordUtils as p, ExpectedError as m, messageKey as h, t as g } from "@sheetxl/utils";
|
|
11
|
-
var _ = class extends
|
|
11
|
+
var _ = class extends a {
|
|
12
12
|
constructor(e) {
|
|
13
13
|
super(e), this._optionsMember = e;
|
|
14
14
|
}
|
|
@@ -25,7 +25,7 @@ var _ = class extends i {
|
|
|
25
25
|
return !!super.isDeleted() || ((this._optionsMovable?.getParent?.())?.isDeleted() ?? !1);
|
|
26
26
|
}
|
|
27
27
|
getAnchorType() {
|
|
28
|
-
return
|
|
28
|
+
return t.Type.Absolute;
|
|
29
29
|
}
|
|
30
30
|
setAnchorType(e) {
|
|
31
31
|
return this;
|
|
@@ -127,7 +127,7 @@ var _ = class extends i {
|
|
|
127
127
|
this._getEmitter().notify("onBoundsChange"), this._forwardLayout();
|
|
128
128
|
}
|
|
129
129
|
_fromJSON(e) {
|
|
130
|
-
let
|
|
130
|
+
let n = e.anchor?.tl ?? f.EmptyObject, r = e.anchor?.br ?? f.EmptyObject;
|
|
131
131
|
this._updateState({
|
|
132
132
|
offsets: {
|
|
133
133
|
tl: {
|
|
@@ -145,12 +145,12 @@ var _ = class extends i {
|
|
|
145
145
|
flipV: e.flipV ?? !1,
|
|
146
146
|
lockAspectRatio: e.lockAspect ?? null,
|
|
147
147
|
locks: e.locks ?? null,
|
|
148
|
-
anchorType:
|
|
148
|
+
anchorType: t.Type.Absolute,
|
|
149
149
|
pixelBounds: {
|
|
150
|
-
x:
|
|
151
|
-
y:
|
|
152
|
-
width:
|
|
153
|
-
height:
|
|
150
|
+
x: n.x ?? 0,
|
|
151
|
+
y: n.y ?? 0,
|
|
152
|
+
width: r.x ?? 0,
|
|
153
|
+
height: r.y ?? 0
|
|
154
154
|
}
|
|
155
155
|
}, { description: h("op.loadMovable") });
|
|
156
156
|
}
|
|
@@ -176,7 +176,7 @@ var _ = class extends i {
|
|
|
176
176
|
let t = super.toJSON(e);
|
|
177
177
|
return delete t.anchorType, t;
|
|
178
178
|
}
|
|
179
|
-
}, v = class extends
|
|
179
|
+
}, v = class extends o {
|
|
180
180
|
constructor(e, t) {
|
|
181
181
|
super(t), this._group = e;
|
|
182
182
|
}
|
|
@@ -333,18 +333,18 @@ var _ = class extends i {
|
|
|
333
333
|
async ungroup(e) {
|
|
334
334
|
let t = this.getMovable();
|
|
335
335
|
if (!t || this.isDeleted()) return [];
|
|
336
|
-
let
|
|
337
|
-
this._protectionCheck(
|
|
338
|
-
let
|
|
336
|
+
let r = e?.description ?? h("op.ungroupDrawings");
|
|
337
|
+
this._protectionCheck(r);
|
|
338
|
+
let i = t.getRange().getWorksheet(), a = n(i.getView().getMovableSelection());
|
|
339
339
|
return await this.doBatch(() => {
|
|
340
|
-
let t = this._free(this._members_(),
|
|
340
|
+
let t = this._free(this._members_(), r);
|
|
341
341
|
this.delete(e);
|
|
342
|
-
let
|
|
343
|
-
return
|
|
342
|
+
let n = this._transactions.getPendingTransaction();
|
|
343
|
+
return n && s(n, i, t, {
|
|
344
344
|
autoSelect: e?.autoSelect ?? !0,
|
|
345
345
|
autoSelectRestore: e?.autoSelectRestore
|
|
346
|
-
},
|
|
347
|
-
}, { description:
|
|
346
|
+
}, a), t;
|
|
347
|
+
}, { description: r });
|
|
348
348
|
}
|
|
349
349
|
_free(e, t) {
|
|
350
350
|
let n = this.getMovable(), r = n.getParent()?.getMovables() ?? n.getRange().getWorksheet().getMovables(), i = n.getZIndex(), a = this._createOptions.beginPersistResource();
|
|
@@ -409,7 +409,7 @@ var _ = class extends i {
|
|
|
409
409
|
}
|
|
410
410
|
async _prepareMember(e) {
|
|
411
411
|
if (!e?.type) throw new m("A member needs a type.");
|
|
412
|
-
return this._protectionCheck(h("op.insertDrawing")), await
|
|
412
|
+
return this._protectionCheck(h("op.insertDrawing")), await r({
|
|
413
413
|
type: e.type,
|
|
414
414
|
json: e.json
|
|
415
415
|
}), e;
|
|
@@ -462,15 +462,15 @@ var _ = class extends i {
|
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
464
|
async _groupMembers(e, t) {
|
|
465
|
-
let
|
|
466
|
-
if (this._protectionCheck(
|
|
467
|
-
let
|
|
468
|
-
for (let t of e) if (!
|
|
469
|
-
let
|
|
470
|
-
if (
|
|
471
|
-
let
|
|
472
|
-
if (!
|
|
473
|
-
let l =
|
|
465
|
+
let r = t?.description ?? h("op.groupDrawings");
|
|
466
|
+
if (this._protectionCheck(r), !e || e.length < 2) throw new m(g("error.movable.groupTooFew"));
|
|
467
|
+
let i = this._members_();
|
|
468
|
+
for (let t of e) if (!i.includes(t)) throw new m(g("error.movable.groupNotSameGroup"));
|
|
469
|
+
let a = i.filter((t) => e.includes(t));
|
|
470
|
+
if (a.length === i.length) throw new m(g("error.movable.groupWholeGroup"));
|
|
471
|
+
let o = this.getMovable();
|
|
472
|
+
if (!o) throw new m("The group is not placed.");
|
|
473
|
+
let l = o.getRange().getWorksheet(), d = n(l.getView().getMovableSelection()), f = c.unionBounds(a.map((e) => {
|
|
474
474
|
let t = e._getLocalPlacement();
|
|
475
475
|
return u(t.bounds, t.rotation);
|
|
476
476
|
})), p = this._createOptions.beginPersistResource();
|
|
@@ -490,24 +490,24 @@ var _ = class extends i {
|
|
|
490
490
|
type: "group",
|
|
491
491
|
json: {
|
|
492
492
|
childBounds: { ...f },
|
|
493
|
-
members:
|
|
493
|
+
members: a.map((e) => e.toJSON(p.toResourceId.bind(p)))
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
496
|
};
|
|
497
497
|
t?.name && (e.content.name = t.name);
|
|
498
|
-
let
|
|
498
|
+
let n = this._beginCommit(r);
|
|
499
499
|
try {
|
|
500
|
-
for (let e of
|
|
501
|
-
let
|
|
502
|
-
for (let e of
|
|
500
|
+
for (let e of a) e.unselect();
|
|
501
|
+
let r = this._createMember(e, p.fromResourceId.bind(p)), o = a[a.length - 1], c = [];
|
|
502
|
+
for (let e of i) e === o ? c.push(r) : a.includes(e) || c.push(e);
|
|
503
503
|
this._updateState({ members: c });
|
|
504
|
-
for (let e of
|
|
505
|
-
return this._rebound(),
|
|
504
|
+
for (let e of a) e.getContent().delete();
|
|
505
|
+
return this._rebound(), s(n, l, [r], {
|
|
506
506
|
autoSelect: t?.autoSelect ?? !0,
|
|
507
507
|
autoSelectRestore: t?.autoSelectRestore
|
|
508
|
-
}, d),
|
|
508
|
+
}, d), n.commit(), this._members._notifyChange(), r;
|
|
509
509
|
} catch (e) {
|
|
510
|
-
throw
|
|
510
|
+
throw n.rollback(), e;
|
|
511
511
|
}
|
|
512
512
|
} finally {
|
|
513
513
|
p.endPersist();
|
|
@@ -522,7 +522,7 @@ var _ = class extends i {
|
|
|
522
522
|
let i = n.filter((t) => t !== e);
|
|
523
523
|
if (this._updateState({ members: i }), i.length === 1 && this.getMovable()) {
|
|
524
524
|
let e = i[0], n = e.isSelected(), [a] = this._free(i, t?.description ?? h("op.deleteDrawing"));
|
|
525
|
-
this.delete(t), n &&
|
|
525
|
+
this.delete(t), n && s(r, a.getRange().getWorksheet(), [a], { autoSelect: !0 }, [e]);
|
|
526
526
|
} else i.length === 0 ? this.delete(t) : this._rebound();
|
|
527
527
|
r.commit(), this._members._notifyChange();
|
|
528
528
|
} catch (e) {
|
|
@@ -537,15 +537,15 @@ var _ = class extends i {
|
|
|
537
537
|
a.splice(i, 1), a.splice(t, 0, e), this._updateState({ members: a }, { description: n }), this._members._notifyChange();
|
|
538
538
|
}
|
|
539
539
|
_createMember(e, t) {
|
|
540
|
-
let
|
|
541
|
-
type:
|
|
540
|
+
let n = this, r = e.content?.type ?? "custom", a = this._createOptions, o, s = {
|
|
541
|
+
type: r,
|
|
542
542
|
transactions: a.transactions,
|
|
543
543
|
beginPersistResource: a.beginPersistResource,
|
|
544
544
|
fromResourceId: t,
|
|
545
545
|
json: e.content?.json,
|
|
546
546
|
name: e.content?.name ?? null,
|
|
547
547
|
description: e.content?.description ?? null,
|
|
548
|
-
isReadOnly: () =>
|
|
548
|
+
isReadOnly: () => n.isReadOnly(),
|
|
549
549
|
deleteFromContainer: () => {
|
|
550
550
|
o?._deleteFromContent();
|
|
551
551
|
},
|
|
@@ -553,11 +553,11 @@ var _ = class extends i {
|
|
|
553
553
|
getStyles: a.getStyles,
|
|
554
554
|
getRange: a.getRange,
|
|
555
555
|
addWatch: a.addWatch
|
|
556
|
-
}, l =
|
|
556
|
+
}, l = i(r, s, {
|
|
557
557
|
getMovable: () => o,
|
|
558
|
-
amend: (e) =>
|
|
559
|
-
isClosed: () =>
|
|
560
|
-
}), u = () =>
|
|
558
|
+
amend: (e) => n._amend(e),
|
|
559
|
+
isClosed: () => n._closed
|
|
560
|
+
}), u = () => n.getMovable(), d = () => n._members_().indexOf(o), f;
|
|
561
561
|
return o = new _({
|
|
562
562
|
content: l,
|
|
563
563
|
json: e,
|
|
@@ -565,14 +565,14 @@ var _ = class extends i {
|
|
|
565
565
|
beginPersistResource: a.beginPersistResource,
|
|
566
566
|
fromResourceId: t,
|
|
567
567
|
getParent: u,
|
|
568
|
-
onMemberPlacementChange: () =>
|
|
568
|
+
onMemberPlacementChange: () => n._rebound(),
|
|
569
569
|
place: (e) => {
|
|
570
|
-
let t =
|
|
571
|
-
return t ? c.placeInParent(t,
|
|
570
|
+
let t = n._drawnPlacement();
|
|
571
|
+
return t ? c.placeInParent(t, n._childBounds(), e) : null;
|
|
572
572
|
},
|
|
573
573
|
unplace: (e) => {
|
|
574
|
-
let t =
|
|
575
|
-
return t ? c.placeInChild(t,
|
|
574
|
+
let t = n._drawnPlacement();
|
|
575
|
+
return t ? c.placeInChild(t, n._childBounds(), e) : null;
|
|
576
576
|
},
|
|
577
577
|
coords: p.EmptyRange,
|
|
578
578
|
getRanges: (e) => u().getRanges(),
|
|
@@ -585,20 +585,20 @@ var _ = class extends i {
|
|
|
585
585
|
height: 0
|
|
586
586
|
}),
|
|
587
587
|
getCoordsAtBounds: () => p.EmptyRange,
|
|
588
|
-
isProtected: () =>
|
|
589
|
-
moveToBackOnContainer: () =>
|
|
590
|
-
moveBackwardOnContainer: () =>
|
|
591
|
-
moveForwardOnContainer: () =>
|
|
592
|
-
moveToFrontOnContainer: () =>
|
|
593
|
-
deleteFromContainer: (e) =>
|
|
588
|
+
isProtected: () => n.isReadOnly(),
|
|
589
|
+
moveToBackOnContainer: () => n._moveMember(o, 0, h("op.moveToBack")),
|
|
590
|
+
moveBackwardOnContainer: () => n._moveMember(o, d() - 1, h("op.moveBackwards")),
|
|
591
|
+
moveForwardOnContainer: () => n._moveMember(o, d() + 1, h("op.moveForward")),
|
|
592
|
+
moveToFrontOnContainer: () => n._moveMember(o, n._members_().length - 1, h("op.moveToFront")),
|
|
593
|
+
deleteFromContainer: (e) => n._removeMember(o, e),
|
|
594
594
|
setContainerCallbacks: (e) => {
|
|
595
595
|
e && (f = {
|
|
596
596
|
...f,
|
|
597
597
|
...e
|
|
598
|
-
}), o && f &&
|
|
598
|
+
}), o && f && n._memberCallbacks.set(o, f);
|
|
599
599
|
},
|
|
600
600
|
invalidate: () => {
|
|
601
|
-
|
|
601
|
+
n._members._notifyChange();
|
|
602
602
|
}
|
|
603
603
|
}), f && this._memberCallbacks.set(o, f), o;
|
|
604
604
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
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.12
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,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.12
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
7
|
async function e() {
|
|
8
|
-
let e = "@0.8.0-beta.
|
|
8
|
+
let e = "@0.8.0-beta.12";
|
|
9
9
|
e !== "@local" && e !== "@0.0.0" || (e = "");
|
|
10
10
|
let t = `https://cdn.jsdelivr.net/npm/@sheetxl/sdk${e}/types/scripting-enums.json`, n = await fetch(t);
|
|
11
11
|
if (!n.ok) throw Error(`Unable to load script enum runtime (${n.status}) from ${t}.`);
|
|
@@ -1,18 +1,18 @@
|
|
|
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.12
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { n as e } from "./
|
|
8
|
-
import { ct as t } from "./
|
|
7
|
+
import { n as e } from "./fXWUMDhZ5yMSO629.mjs";
|
|
8
|
+
import { ct as t } from "./Bg5Di9GLNAkbqQ1P.mjs";
|
|
9
9
|
var n = e({
|
|
10
10
|
toConcreteCSS: () => i,
|
|
11
11
|
toConcreteFill: () => a
|
|
12
12
|
}), r = (e) => Math.round(Math.min(255, Math.max(0, e))).toString(16).padStart(2, "0").toUpperCase();
|
|
13
|
-
function i(e) {
|
|
14
|
-
let
|
|
15
|
-
return
|
|
13
|
+
function i(e, t = !1) {
|
|
14
|
+
let n = e.toRGBA(t), i = n.alpha ?? 1;
|
|
15
|
+
return i >= 1 ? `#${r(n.red)}${r(n.green)}${r(n.blue)}` : `rgba(${Math.round(n.red)},${Math.round(n.green)},${Math.round(n.blue)},${Math.round(1e3 * i) / 1e3})`;
|
|
16
16
|
}
|
|
17
17
|
function a(e, n) {
|
|
18
18
|
if (e === void 0) return;
|