@sheetxl/sdk 0.8.0-beta.14 → 0.8.0-beta.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +8 -7
- package/browser/esm/4MbBwfmW2hDXk9_w.mjs +165 -0
- package/browser/esm/{ChYgQL-8qIDFmX31.mjs → 9YWdxmSjzLN4j_ts.mjs} +22 -22
- package/browser/esm/B6BdiHigbUdbZp3J.mjs +686 -0
- package/browser/esm/{CImFKFaYToUH-bSE.mjs → BF_QwkZ_hs2rFoTT.mjs} +3 -3
- package/browser/esm/{DBvu0tdSf-5vol4e.mjs → BMo2_9Ul36IwRm3S.mjs} +3 -3
- package/browser/esm/{B1aH_qa-czVyEVHd.mjs → BWY1qiidTUBVPJoD.mjs} +506 -502
- package/browser/esm/{BSXQAXwZdJKYTO4P.mjs → Bf80epSsm_RyAOb9.mjs} +29 -29
- package/browser/esm/{D_XMi4_5iO2rkET5.mjs → BfoE6Dn_GQCIkQD3.mjs} +2 -2
- package/browser/esm/{Dhw5XEJYFrkYjdU2.mjs → BlMYYQZP-QM-iBHz.mjs} +23 -22
- package/browser/esm/{MuNBN02MyZ558c_K.mjs → BqT-ASHP0NVSUUnY.mjs} +1528 -1433
- package/browser/esm/{DnR0xY7_iE3TmMcg.mjs → BtNuoQIrrHw_jnbJ.mjs} +4 -4
- package/browser/esm/BxFzcCYhvo9NXFjC.mjs +527 -0
- package/browser/esm/{DonQz2Tc3k9lNT8E.mjs → BxYuRTSF9ykc-Tpz.mjs} +3 -3
- package/browser/esm/{aRXqxIzjuSLwawMh.mjs → C2PvZwqK-uvsugVS.mjs} +2 -2
- package/browser/esm/C3JOjQwdG9kAig7i.mjs +2017 -0
- package/browser/esm/{SwLp-iElwDjfcJtv.mjs → C5x0EzqElYGTiTQc.mjs} +2 -2
- package/browser/esm/{AXlD9K1gCwPU4gCO.mjs → CMChv-fCFh68VQQt.mjs} +588 -587
- package/browser/esm/{BpwULQPKbb4R9Jew.mjs → CRbQATfI0yZxe1kX.mjs} +3 -3
- package/browser/esm/{CM_X1zZYzEUPaNJL.mjs → CUu3zeHqcwMRYiov.mjs} +2 -2
- package/{node/esm/b3XnssSr9lmvAC2N.mjs → browser/esm/C_jLGkFemj55_BP3.mjs} +3 -3
- package/browser/esm/{CtC__ALh4I8PKIln.mjs → CkZoDPUCK5jMUaeJ.mjs} +26955 -22064
- package/browser/esm/{DvvqmUQ9Z0NFm1-4.mjs → D-iHJ3q4nwOLcn1D.mjs} +2 -2
- package/browser/esm/{qCqzZW74-fhaIG2V.mjs → D807piM0VSokWz-L.mjs} +2 -2
- package/browser/esm/{BLYl-afJe_3std8i.mjs → DW3oQ39IF0bsc_lm.mjs} +2 -2
- package/browser/esm/{Ln4gsmhqH1LyoANj.mjs → DcB52JPBPmkc3l1m.mjs} +4 -4
- package/browser/esm/{DIfAk63CvaOZ3QKi.mjs → DlVnybrgwZWxWN3_.mjs} +10 -10
- package/browser/esm/{Dh84MDs-OhdCPCIg.mjs → DvVhatd0J1ch3OCO.mjs} +22 -22
- package/browser/esm/{BWoz4kQdA5KKJfl6.mjs → Dx9Fya60meMpuHqm.mjs} +2 -2
- package/browser/esm/{r_EZapMBdyS4gUd-.mjs → HV0FkJ6k3Ils318J.mjs} +78 -78
- package/browser/esm/{C7hpfT-sX2lyLS-D.mjs → JV9Szh5qTssjxJoE.mjs} +2 -2
- package/browser/esm/{CPIWV3Enlh_BF2TY.mjs → KpuD1kEcWB7cT0VM.mjs} +3 -3
- package/browser/esm/{3t4S9eda2I6jFad0.mjs → U4FL-QeC0bRUhTEo.mjs} +2 -2
- package/browser/esm/{D39XcmtPXVtMN4yF.mjs → WLlpmgLN5OVLoLrC.mjs} +3 -3
- package/browser/esm/{Cy8uYCggktF83278.mjs → WR146UAqrsUsL39e.mjs} +2 -2
- package/browser/esm/{BPPMKyMn65i1a1mE.mjs → WcHfawW2lkTHtWUd.mjs} +51 -49
- package/browser/esm/{Bdcd3QOzsc0aVMjN.mjs → Zp5-cTJ0Llb6EfGi.mjs} +4 -4
- package/browser/esm/{oSCy1X5CJ1iYtGDp.mjs → ad9PX897hYE4Srkc.mjs} +3 -3
- package/browser/esm/{UMQTbO0zNmBpzW1V.mjs → d_t-7d5BD1AdHg3u.mjs} +404 -404
- package/browser/esm/{BVqIknGhQCLUB_7Q.mjs → dwGdnbV-CykjNrlm.mjs} +2 -2
- package/browser/esm/{DiXeQjc0WJGLSVEo.mjs → e69NcYnKMLnAmqyA.mjs} +2 -2
- package/browser/esm/index.mjs +886 -578
- package/browser/esm/{yuF8SbWfjBfrxcq5.mjs → r-o0UCm7KtluNmyK.mjs} +3 -3
- package/licenses/dependencies.txt +69 -69
- package/node/esm/{BEBt5fo__rvT2q_u.mjs → 446KYBjJQa8g-8Gg.mjs} +52 -50
- package/node/esm/{BELc5aQ_pFPgbiso.mjs → 5OfKfTRX2_y2NwpU.mjs} +2 -2
- package/node/esm/{C-5JLSNof0FhkuFd.mjs → A3PEHO1HJvkHfb5n.mjs} +2 -2
- package/node/esm/{YpOpRyciqQLIY1-G.mjs → B4WUGzJBkQu7BXRm.mjs} +2 -2
- package/node/esm/{I-FZojIFWluC6X-j.mjs → BH8J6vKSO5zI_TWo.mjs} +2 -2
- package/node/esm/BLmdKnkLwkb3wWe6.mjs +2040 -0
- package/node/esm/{BuyAYLI4s33-vmgG.mjs → BZSxu_ZqX8-Uczzn.mjs} +2 -2
- package/node/esm/{DiCMnYA2bttmrX3q.mjs → BfPBiAgVmWhuFgFP.mjs} +3 -3
- package/node/esm/{BSVttk12GXNfKZ9k.mjs → Bknw7zWZhl2-w1pi.mjs} +3 -3
- package/node/esm/{uLrulyR7IXq0SF4j.mjs → BvIPsPiHhMclZ1kH.mjs} +22 -22
- package/node/esm/{clgEkmEwfB28nkz2.mjs → By2TFKOjA1HekZap.mjs} +4 -4
- package/node/esm/{BXg-D8Rc_iyB8p7X.mjs → BywIhvYkWk2o7MSW.mjs} +2 -2
- package/node/esm/{pF2vCOTmrxPAB41Q.mjs → C3zyhnMwQ2hRQBz7.mjs} +31 -30
- package/node/esm/{BCjHRVU8tC5lYypg.mjs → C884edhUf9yMqpPp.mjs} +2 -2
- package/node/esm/{B6jhx5pHPs2W5GE7.mjs → CDHY-0OyQ9348Brb.mjs} +189 -189
- package/node/esm/{xRGObcoaGDnAZFnj.mjs → CERNLhFrAwtu_p-q.mjs} +2 -2
- package/node/esm/{DbPUG2DcQ3T_QhcJ.mjs → CFkX_Cn6avQqQiVC.mjs} +78 -78
- package/node/esm/CJDV8P3hI8lu--3Z.mjs +530 -0
- package/node/esm/{Cyeq1rDslIqF1LKz.mjs → CKwiipdPJGzAiPjg.mjs} +2 -2
- package/node/esm/{BLPrFp_jKGYgWPX1.mjs → CLtUMJfKsy4SevWE.mjs} +3 -3
- package/node/esm/{DLdXl0O0TXuyqLU4.mjs → CVPieTgKCwkL21nD.mjs} +28573 -23108
- package/node/esm/{Dlk2ZYExFgQ0xE2H.mjs → C_fYuynP2a_70WdL.mjs} +2 -2
- package/{browser/esm/BEDfJP2tcuRy2Y2E.mjs → node/esm/CgdNA3B_GFG_yJiN.mjs} +3 -3
- package/node/esm/Cs3ibv6YHCDwLRlk.mjs +115 -0
- package/node/esm/{DeFE8QfuCeGw-mvd.mjs → Cxak8i2NidZ4Uv6v.mjs} +487 -483
- package/node/esm/{NA-8urR7T1NCwrgD.mjs → D88A3UpCyGRjcX3U.mjs} +3 -3
- package/node/esm/{99miMotf3dOuG5Jk.mjs → DBIUe2BC9xU7qMHR.mjs} +3 -3
- package/node/esm/{BEdxa3I4VOiCsvy7.mjs → DELfV5HQZo1mInBd.mjs} +4 -4
- package/node/esm/{BfEdeOg4iYXaYTlh.mjs → DOt3t-13tsnM7Fj6.mjs} +2 -2
- package/node/esm/{B3hBxzqJ2_hUylNr.mjs → DfWc3nW_Z_qqc_Wf.mjs} +1762 -1674
- package/node/esm/DgnwKbUEyQN5_gWT.mjs +169 -0
- package/node/esm/{Ccocd9DTvOnlOE9D.mjs → Dhv9JymnXqcF54oo.mjs} +2 -2
- package/node/esm/{Lj98EH6coGdKUzuS.mjs → DvtyKKzOnoOM80NB.mjs} +22 -22
- package/node/esm/{Crn6dnSQQRCQAnQ-.mjs → KDGrIa9R5XzWfjM2.mjs} +2 -2
- package/node/esm/{D30rC6AWaGGf3CaC.mjs → RTwm9ge1KoPdlBNt.mjs} +2 -2
- package/node/esm/{CdSTmD2ZvG9NesNR.mjs → _RIAmJI98l6bIFfZ.mjs} +2 -2
- package/node/esm/{CI8UIWR01z9QDlzH.mjs → bIGdvfpnijWeCac6.mjs} +1005 -1004
- package/node/esm/index.mjs +913 -598
- package/node/esm/kaiXmn0AA5WDsLPo.mjs +199 -0
- package/node/esm/{B5VmOC0jO9Zbh9Mq.mjs → mTIhoz1gEcaEm7s1.mjs} +3 -3
- package/package.json +7 -7
- package/resources/locales/de/model.msg.json +82 -1
- package/resources/locales/en/model.msg.json +80 -1
- package/types/scripting-api.json +9967 -9497
- package/types/scripting-enums.json +27 -0
- package/types/scripting.d.ts +2282 -166
- package/types/src/.generated/wasm/sdk.d.ts +332 -0
- package/types/src/calculation/Calculation.d.ts +8 -0
- package/types/src/calculation/ICalculation.d.ts +51 -0
- package/types/src/calculation/compiler/Types.d.ts +5 -0
- package/types/src/calculation/executor/CalcExecutorUtils.d.ts +1 -1
- package/types/src/calculation/formula/FormulaBlock.d.ts +2 -0
- package/types/src/calculation/formula/IFormulaBlock.d.ts +18 -0
- package/types/src/calculation/grid/CalcGrid.d.ts +5 -1
- package/types/src/calculation/grid/CalcGridBackend.d.ts +36 -1
- package/types/src/calculation/grid/CalcGridProxy.d.ts +2 -0
- package/types/src/calculation/grid/CalcGridUtils.d.ts +4 -2
- package/types/src/calculation/grid/FormulaHost.d.ts +3 -1
- package/types/src/calculation/grid/ICalcGrid.d.ts +88 -0
- package/types/src/calculation/grid/_CalcRequest.d.ts +9 -0
- package/types/src/calculation/spatial/FormulaSpatialValue.d.ts +2 -0
- package/types/src/calculation/spatial/SpillEntry.d.ts +55 -4
- package/types/src/calculation/state/CalcNode.d.ts +6 -3
- package/types/src/calculation/state/CalculationContext.d.ts +4 -2
- package/types/src/calculation/state/_PivotView.d.ts +22 -0
- package/types/src/cell/ICell.d.ts +1 -21
- package/types/src/cellRange/ICellRange.d.ts +18 -2
- package/types/src/collections/MixedTypedArrayList.d.ts +16 -2
- package/types/src/condition/BuiltInOperators/AbstractOperator.d.ts +10 -0
- package/types/src/condition/BuiltInOperators/GreaterThanEqualToOperator.d.ts +3 -0
- package/types/src/condition/BuiltInOperators/GreaterThanOperator.d.ts +3 -0
- package/types/src/condition/BuiltInOperators/LessThanEqualToOperator.d.ts +3 -0
- package/types/src/condition/BuiltInOperators/LessThanOperator.d.ts +3 -0
- package/types/src/condition/BuiltInOperators/MatchesOperator.d.ts +10 -0
- package/types/src/condition/BuiltInOperators/TimePeriodOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/index.d.ts +2 -0
- package/types/src/condition/Condition.d.ts +1 -0
- package/types/src/condition/ICondition.d.ts +15 -0
- package/types/src/condition/_ConditionUtils.d.ts +14 -0
- package/types/src/conditionalFormat/ConditionalFormat.d.ts +2 -1
- package/types/src/conditionalFormat/IConditionalFormat.d.ts +4 -3
- package/types/src/license/LicenseDetails.d.ts +27 -0
- package/types/src/license/LicenseManager.d.ts +24 -7
- package/types/src/license/_Utils.d.ts +34 -3
- package/types/src/license/index.d.ts +1 -0
- package/types/src/license/runtime.browser.d.ts +32 -4
- package/types/src/license/runtime.node.d.ts +8 -5
- package/types/src/license/summary.d.ts +18 -0
- package/types/src/pivot/IPivotTable.d.ts +1549 -13
- package/types/src/pivot/IPivotTableCollection.d.ts +70 -4
- package/types/src/pivot/PivotCache.d.ts +95 -11
- package/types/src/pivot/PivotDataField.d.ts +73 -0
- package/types/src/pivot/PivotField.d.ts +142 -0
- package/types/src/pivot/PivotTable.d.ts +548 -14
- package/types/src/pivot/PivotTableCollection.d.ts +18 -3
- package/types/src/pivot/_PivotAreas.d.ts +48 -0
- package/types/src/pivot/_PivotControls.d.ts +140 -0
- package/types/src/pivot/_PivotEngine.d.ts +9 -0
- package/types/src/pivot/_PivotGroups.d.ts +25 -0
- package/types/src/pivot/_PivotItems.d.ts +167 -0
- package/types/src/pivot/_PivotStructure.d.ts +237 -0
- package/types/src/pivot/_PivotStylePreview.d.ts +21 -0
- package/types/src/pivot/_PivotUtils.d.ts +37 -0
- package/types/src/pivot/engine/PivotAdd.d.ts +37 -0
- package/types/src/pivot/engine/PivotData.d.ts +65 -0
- package/types/src/pivot/engine/PivotEdit.d.ts +45 -0
- package/types/src/pivot/engine/PivotFilters.d.ts +50 -0
- package/types/src/pivot/engine/PivotFormulas.d.ts +72 -0
- package/types/src/pivot/engine/PivotLayout.d.ts +133 -0
- package/types/src/pivot/engine/PivotMove.d.ts +24 -0
- package/types/src/pivot/engine/PivotRefresh.d.ts +87 -0
- package/types/src/pivot/engine/PivotSort.d.ts +26 -0
- package/types/src/pivot/engine/PivotViewBuilder.d.ts +22 -0
- package/types/src/pivot/engine/index.d.ts +15 -0
- package/types/src/pivot/index.d.ts +4 -0
- package/types/src/pivot/kernel/KernelPivot.d.ts +63 -0
- package/types/src/pivot/kernel/_KernelLeaves.d.ts +100 -0
- package/types/src/pivot/kernel/_PivotAxisTree.d.ts +71 -0
- package/types/src/primitives/Range.d.ts +12 -1
- package/types/src/sheet/IWorksheet.d.ts +35 -0
- package/types/src/sheet/SheetCell.d.ts +21 -14
- package/types/src/sheet/SheetRange.d.ts +3 -0
- package/types/src/sheet/Worksheet.d.ts +175 -7
- package/types/src/sheet/_PivotFootprint.d.ts +42 -0
- package/types/src/sheet/_SheetAutoFitUtils.d.ts +12 -1
- package/types/src/sheet/_SheetMutations.d.ts +47 -0
- package/types/src/sheet/_SheetStateTypes.d.ts +11 -0
- package/types/src/sheet/style/SheetCellStyle.d.ts +6 -0
- package/types/src/sheet/style/SheetPivotStyle.d.ts +83 -0
- package/types/src/sheet/style/_IndentUnit.d.ts +14 -0
- package/types/src/sheetHeader/SheetCellHeader.d.ts +1 -1
- package/types/src/slicer/ISlicer.d.ts +114 -34
- package/types/src/slicer/ITimeline.d.ts +61 -0
- package/types/src/slicer/Slicer.d.ts +76 -3
- package/types/src/slicer/_PivotSlicer.d.ts +51 -0
- package/types/src/slicer/index.d.ts +1 -0
- package/types/src/table/AnchoredTable.d.ts +11 -1
- package/types/src/table/ITable.d.ts +5 -6
- package/types/src/table/ITableStyle.d.ts +50 -34
- package/types/src/table/_BuiltInPivotStyles.d.ts +8 -0
- package/types/src/table/_BuiltInTableStyles.d.ts +0 -1
- package/types/src/type/ITypes.d.ts +5 -1
- package/types/src/workbook/IWorkbook.d.ts +8 -2
- package/types/src/workbook/Workbook.d.ts +72 -6
- package/browser/esm/D2NFcBM4xsv0JJ1q.mjs +0 -184
- package/browser/esm/DnqwX3-2NfGBaXXl.mjs +0 -357
- package/node/esm/C3S4hF1vn0NyJPPd.mjs +0 -199
- package/node/esm/CPsGyt3vnOdLTShj.mjs +0 -360
- package/node/esm/D4Y1WJgjiFEgbWrW.mjs +0 -115
- package/types/src/pivot/_PivotXml.d.ts +0 -24
- package/types/src/primitives/Grouping.d.ts +0 -65
|
@@ -1,357 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.14
|
|
3
|
-
*
|
|
4
|
-
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
import { t as e } from "./qCqzZW74-fhaIG2V.mjs";
|
|
8
|
-
import { An as t, Dn as n, Mi as r, Mr as i, On as a, jn as o, kn as s, kr as c } from "./CtC__ALh4I8PKIln.mjs";
|
|
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 = c.BuiltInSelectorNames.Display, x = Object.freeze({
|
|
11
|
-
selector: b,
|
|
12
|
-
scope: "column"
|
|
13
|
-
}), S = Object.freeze({ transactional: !1 }), C = class extends e {
|
|
14
|
-
constructor(e) {
|
|
15
|
-
let t = s(e.json?.source)?.column ?? "", n = e.name;
|
|
16
|
-
!n && e.getMovable && (n = t || null), super({
|
|
17
|
-
...e,
|
|
18
|
-
name: n
|
|
19
|
-
}), this._formula = null, this._wired = null, this._binding = null, this._lossPending = !1, this._columnName = t;
|
|
20
|
-
let r = e.json;
|
|
21
|
-
r && this._updateState({ data: { ...r } }), r?.source && this._addWatch(r.source, (e) => {
|
|
22
|
-
this._formula = e.formula, this._wired ??= e.formula.getExpression(), this._checkSource(!1);
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
getType() {
|
|
26
|
-
return "slicer";
|
|
27
|
-
}
|
|
28
|
-
getTypeDescription() {
|
|
29
|
-
return "Slicer";
|
|
30
|
-
}
|
|
31
|
-
getDefaultAnchorType() {
|
|
32
|
-
return i.Type.Absolute;
|
|
33
|
-
}
|
|
34
|
-
getSource() {
|
|
35
|
-
let e = this._data()?.source ?? "", t = this._formula?.getExpression() ?? null;
|
|
36
|
-
return t === null || t === this._wired ? e : t;
|
|
37
|
-
}
|
|
38
|
-
getTable() {
|
|
39
|
-
return this._resolve()?.table ?? null;
|
|
40
|
-
}
|
|
41
|
-
getColumn() {
|
|
42
|
-
return this._resolve()?.column ?? null;
|
|
43
|
-
}
|
|
44
|
-
setName(e) {
|
|
45
|
-
let t = this._getWorkbook();
|
|
46
|
-
if (t && o(t, e, this) !== e) throw new l(d("error.slicer.nameTaken", { name: e }));
|
|
47
|
-
return super.setName(e);
|
|
48
|
-
}
|
|
49
|
-
getCaption() {
|
|
50
|
-
return this._data()?.caption ?? this._getColumnName();
|
|
51
|
-
}
|
|
52
|
-
setCaption(e, t) {
|
|
53
|
-
return this._set({ caption: e ?? void 0 }, h, t);
|
|
54
|
-
}
|
|
55
|
-
isShowCaption() {
|
|
56
|
-
return !0 !== this._data()?.hiddenCaption;
|
|
57
|
-
}
|
|
58
|
-
setShowCaption(e, t) {
|
|
59
|
-
return this._set({ hiddenCaption: !e || void 0 }, h, t);
|
|
60
|
-
}
|
|
61
|
-
getCacheName() {
|
|
62
|
-
return this._data()?.cacheName || (t(this._getWorkbook()).get(this) ?? n(this._getColumnName()));
|
|
63
|
-
}
|
|
64
|
-
getStyle() {
|
|
65
|
-
return this._data()?.style ?? f;
|
|
66
|
-
}
|
|
67
|
-
setStyle(e, t) {
|
|
68
|
-
return this._set({ style: e && e !== f ? e : void 0 }, g, t);
|
|
69
|
-
}
|
|
70
|
-
getSortOrder() {
|
|
71
|
-
return this._data()?.sortOrder ?? p;
|
|
72
|
-
}
|
|
73
|
-
setSortOrder(e, t) {
|
|
74
|
-
return this._set({ sortOrder: e === p ? void 0 : e }, v, t);
|
|
75
|
-
}
|
|
76
|
-
getCrossFilter() {
|
|
77
|
-
return this._data()?.crossFilter ?? m;
|
|
78
|
-
}
|
|
79
|
-
setCrossFilter(e, t) {
|
|
80
|
-
return this._set({ crossFilter: e === m ? void 0 : e }, v, t);
|
|
81
|
-
}
|
|
82
|
-
getColumnCount() {
|
|
83
|
-
return this._data()?.columnCount ?? 1;
|
|
84
|
-
}
|
|
85
|
-
setColumnCount(e, t) {
|
|
86
|
-
let n = Math.max(1, Math.trunc(e));
|
|
87
|
-
return this._set({ columnCount: n === 1 ? void 0 : n }, _, t);
|
|
88
|
-
}
|
|
89
|
-
getRowHeight() {
|
|
90
|
-
return this._data()?.rowHeight ?? 27;
|
|
91
|
-
}
|
|
92
|
-
setRowHeight(e, t) {
|
|
93
|
-
let n = Math.max(1, e);
|
|
94
|
-
return this._set({ rowHeight: n === 27 ? void 0 : n }, _, t);
|
|
95
|
-
}
|
|
96
|
-
isLockedPosition() {
|
|
97
|
-
return !0 === this._data()?.lockedPosition;
|
|
98
|
-
}
|
|
99
|
-
setLockedPosition(e, t) {
|
|
100
|
-
return this._set({ lockedPosition: e || void 0 }, _, t);
|
|
101
|
-
}
|
|
102
|
-
isFilterCleared() {
|
|
103
|
-
return !this.getColumn()?.getFilter()?.getCondition();
|
|
104
|
-
}
|
|
105
|
-
async getItems() {
|
|
106
|
-
let e = this.getColumn()?.getFilter();
|
|
107
|
-
if (!e) return w;
|
|
108
|
-
let t = await e.getItems(x), n = e.getCondition(), i = n ? function(e, t) {
|
|
109
|
-
let n = e.toJSON();
|
|
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
|
-
return (e) => {
|
|
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
|
-
let n = null;
|
|
119
|
-
for (let t = 0; t < s.runs.length && !n; t++) {
|
|
120
|
-
let r = s.runs[t];
|
|
121
|
-
r.min <= e && e <= r.max && (n = r.value ?? null);
|
|
122
|
-
}
|
|
123
|
-
if (!n) return !1;
|
|
124
|
-
for (let e = 0; e < o.length; e++) if (D(o[e], n)) return !0;
|
|
125
|
-
return !1;
|
|
126
|
-
};
|
|
127
|
-
}(n, t) : null, a = [];
|
|
128
|
-
for (let e = 0; e < t.items.length; e++) {
|
|
129
|
-
let n = t.items[e], r = !0 === n.passesOthers;
|
|
130
|
-
a.push({
|
|
131
|
-
item: {
|
|
132
|
-
key: n.text,
|
|
133
|
-
name: n.text,
|
|
134
|
-
value: n.value,
|
|
135
|
-
hasData: r,
|
|
136
|
-
isSelected: !i || (r ? n.checked : i(e))
|
|
137
|
-
},
|
|
138
|
-
firstRow: n.firstRow
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
let o = this.getSortOrder();
|
|
142
|
-
if (o === "dataSource") a.sort((e, t) => e.firstRow - t.firstRow);
|
|
143
|
-
else {
|
|
144
|
-
let t = e.getRange().getWorksheet().getRuntime().getLocaleProfile(), n = o === "descending" ? -1 : 1;
|
|
145
|
-
a.sort((e, i) => n * (r.compare(e.item.value, i.item.value, t) || r.compare(e.item.key, i.item.key, t)));
|
|
146
|
-
}
|
|
147
|
-
let s = null;
|
|
148
|
-
if (t.hasBlanks) {
|
|
149
|
-
let e = !0 === t.blanksPassOthers;
|
|
150
|
-
s = {
|
|
151
|
-
key: T,
|
|
152
|
-
name: d("slicer.blankItem"),
|
|
153
|
-
value: null,
|
|
154
|
-
hasData: e,
|
|
155
|
-
isSelected: !i || (e ? t.blanksChecked : i(-1))
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
let l = [], u = this.getCrossFilter();
|
|
159
|
-
if (u === "showItemsWithNoData") {
|
|
160
|
-
for (let e = 0; e < a.length; e++) l.push(a[e].item);
|
|
161
|
-
return s && l.push(s), l;
|
|
162
|
-
}
|
|
163
|
-
for (let e = 0; e < a.length; e++) a[e].item.hasData && l.push(a[e].item);
|
|
164
|
-
if (s?.hasData && l.push(s), u === "none") return l;
|
|
165
|
-
for (let e = 0; e < a.length; e++) a[e].item.hasData || l.push(a[e].item);
|
|
166
|
-
return s && !s.hasData && l.push(s), l;
|
|
167
|
-
}
|
|
168
|
-
async getItem(e) {
|
|
169
|
-
let t = await this.getItems();
|
|
170
|
-
for (let n = 0; n < t.length; n++) if (t[n].key === e) return t[n];
|
|
171
|
-
return null;
|
|
172
|
-
}
|
|
173
|
-
async selectItems(e, t) {
|
|
174
|
-
let n = this.getColumn()?.getFilter();
|
|
175
|
-
if (!n) return this;
|
|
176
|
-
if (!e || e.length === 0) return this.clearFilters(t);
|
|
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
|
-
u = !1;
|
|
181
|
-
continue;
|
|
182
|
-
}
|
|
183
|
-
if (e > o) {
|
|
184
|
-
s.push(r.items[e].text);
|
|
185
|
-
continue;
|
|
186
|
-
}
|
|
187
|
-
for (; a.runs[d].max < e;) d++;
|
|
188
|
-
let t = a.runs[d].value;
|
|
189
|
-
t && l[l.length - 1] !== t && l.push(t);
|
|
190
|
-
}
|
|
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
|
-
return l.length > 0 && (p.dateGroups = l), f && (p.blank = !0), await n.setCondition({
|
|
195
|
-
selector: b,
|
|
196
|
-
operator: c.BuiltInOperatorNames.InSet,
|
|
197
|
-
param: p
|
|
198
|
-
}, !1, {
|
|
199
|
-
description: y,
|
|
200
|
-
...t
|
|
201
|
-
}), this;
|
|
202
|
-
}
|
|
203
|
-
async clearFilters(e) {
|
|
204
|
-
return await this.getColumn()?.getFilter()?.delete(e), this;
|
|
205
|
-
}
|
|
206
|
-
addListeners(e, t) {
|
|
207
|
-
let n = super.addListeners(e, t);
|
|
208
|
-
if (!this._binding) {
|
|
209
|
-
let e = this._resolve();
|
|
210
|
-
e && this._bind(e);
|
|
211
|
-
}
|
|
212
|
-
return n;
|
|
213
|
-
}
|
|
214
|
-
toJSON(e) {
|
|
215
|
-
let t = this._data();
|
|
216
|
-
if (!t) return null;
|
|
217
|
-
let n = this.getSource();
|
|
218
|
-
return n ? {
|
|
219
|
-
...t,
|
|
220
|
-
source: n
|
|
221
|
-
} : t;
|
|
222
|
-
}
|
|
223
|
-
get isISlicer() {
|
|
224
|
-
return !0;
|
|
225
|
-
}
|
|
226
|
-
get [Symbol.toStringTag]() {
|
|
227
|
-
return "[Slicer]";
|
|
228
|
-
}
|
|
229
|
-
toString() {
|
|
230
|
-
return this.getTypeDescription();
|
|
231
|
-
}
|
|
232
|
-
_attach() {
|
|
233
|
-
this._checkSource(!0);
|
|
234
|
-
}
|
|
235
|
-
_data() {
|
|
236
|
-
return this._getState()?.data ?? null;
|
|
237
|
-
}
|
|
238
|
-
_getWorkbook() {
|
|
239
|
-
try {
|
|
240
|
-
return this.getMovable()?.getRange().getWorksheet().getWorkbook() ?? null;
|
|
241
|
-
} catch {
|
|
242
|
-
return null;
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
_resolve() {
|
|
246
|
-
if (this._closed) return null;
|
|
247
|
-
let e = s(this.getSource());
|
|
248
|
-
if (!e) return null;
|
|
249
|
-
let t = a(this._getWorkbook(), e.table), n = t?.getColumnByName(e.column) ?? null;
|
|
250
|
-
return n ? (this._columnName = n.getName(), {
|
|
251
|
-
table: t,
|
|
252
|
-
column: n
|
|
253
|
-
}) : null;
|
|
254
|
-
}
|
|
255
|
-
_getColumnName() {
|
|
256
|
-
return this._resolve()?.column.getName() ?? this._columnName;
|
|
257
|
-
}
|
|
258
|
-
_checkSource(e) {
|
|
259
|
-
if (this._closed || this.isDeleted()) return;
|
|
260
|
-
let t = this._resolve();
|
|
261
|
-
if (t) return void this._bind(t);
|
|
262
|
-
let n = this._getTransactions();
|
|
263
|
-
n.isRestoring() || (n.isOpenTransaction() ? this.delete() : e && !this._lossPending && (this._lossPending = !0, queueMicrotask(() => {
|
|
264
|
-
if (this._lossPending = !1, this._closed || this.isDeleted() || n.isOpenTransaction() || n.isRestoring()) return;
|
|
265
|
-
let e = this._resolve();
|
|
266
|
-
e ? this._bind(e) : n.amend(n.getCurrentCommit(!1).getId(), () => {
|
|
267
|
-
this.delete();
|
|
268
|
-
});
|
|
269
|
-
})));
|
|
270
|
-
}
|
|
271
|
-
_bind(e) {
|
|
272
|
-
let t = e.table;
|
|
273
|
-
if (this._binding?.table !== t) {
|
|
274
|
-
this._unbind();
|
|
275
|
-
let e = () => {
|
|
276
|
-
this._checkSource(!0);
|
|
277
|
-
};
|
|
278
|
-
this._binding = {
|
|
279
|
-
table: t,
|
|
280
|
-
removeTable: t.addListeners({
|
|
281
|
-
onFilterChange: () => {
|
|
282
|
-
this._notify("onSelectionChange");
|
|
283
|
-
},
|
|
284
|
-
onAnyChange: () => {
|
|
285
|
-
this._checkSource(!0), this._bindRange(!0);
|
|
286
|
-
},
|
|
287
|
-
onAnchorCoordsChange: () => {
|
|
288
|
-
this._bindRange(!0);
|
|
289
|
-
},
|
|
290
|
-
onDelete: e
|
|
291
|
-
}, S),
|
|
292
|
-
coords: null,
|
|
293
|
-
removeRange: null
|
|
294
|
-
};
|
|
295
|
-
}
|
|
296
|
-
this._bindRange(!1);
|
|
297
|
-
}
|
|
298
|
-
_bindRange(e) {
|
|
299
|
-
let t = this._binding;
|
|
300
|
-
if (!t || this._closed) return;
|
|
301
|
-
let n = this.getColumn()?.getFilter()?.getRange() ?? null, r = n ? n.getCoords() : null;
|
|
302
|
-
(r && t.coords ? r.rowStart !== t.coords.rowStart || r.rowEnd !== t.coords.rowEnd || r.colStart !== t.coords.colStart || r.colEnd !== t.coords.colEnd : r !== t.coords) && (t.removeRange?.(), t.removeRange = n?.addListener(() => {
|
|
303
|
-
this._notify("onItemsChange");
|
|
304
|
-
}, {
|
|
305
|
-
ignoreAddressChanges: !0,
|
|
306
|
-
...S
|
|
307
|
-
}) ?? null, t.coords = r, e && this._notify("onItemsChange"));
|
|
308
|
-
}
|
|
309
|
-
_unbind() {
|
|
310
|
-
let e = this._binding;
|
|
311
|
-
e && (this._binding = null, e.removeTable(), e.removeRange?.());
|
|
312
|
-
}
|
|
313
|
-
_notify(e) {
|
|
314
|
-
this._closed || this.isDeleted() || (this._emitter.notify(e), this._emitter.notify("onAnyChange"));
|
|
315
|
-
}
|
|
316
|
-
_set(e, t, n) {
|
|
317
|
-
this._protectionCheck(t);
|
|
318
|
-
let r = this._data();
|
|
319
|
-
if (!r) return this;
|
|
320
|
-
let i = {
|
|
321
|
-
...r,
|
|
322
|
-
...e
|
|
323
|
-
};
|
|
324
|
-
for (let t in e) i[t] === void 0 && delete i[t];
|
|
325
|
-
return this._updateState({ data: i }, {
|
|
326
|
-
...n,
|
|
327
|
-
description: t
|
|
328
|
-
}, ["onAnyChange"]), this;
|
|
329
|
-
}
|
|
330
|
-
_processDelete() {
|
|
331
|
-
this._unbind(), super._processDelete();
|
|
332
|
-
}
|
|
333
|
-
_processRestoreOrRevert(e, t) {
|
|
334
|
-
if (super._processRestoreOrRevert(e, t), this.isDeleted()) return void this._unbind();
|
|
335
|
-
let n = this._resolve();
|
|
336
|
-
n && this._bind(n);
|
|
337
|
-
}
|
|
338
|
-
close() {
|
|
339
|
-
this._unbind(), super.close();
|
|
340
|
-
}
|
|
341
|
-
}, w = Object.freeze([]), T = "", E = [
|
|
342
|
-
"year",
|
|
343
|
-
"month",
|
|
344
|
-
"day",
|
|
345
|
-
"hour",
|
|
346
|
-
"minute",
|
|
347
|
-
"second"
|
|
348
|
-
];
|
|
349
|
-
function D(e, t) {
|
|
350
|
-
for (let n = 0; n < E.length; n++) {
|
|
351
|
-
let r = E[n];
|
|
352
|
-
if (e[r] !== t[r]) return !1;
|
|
353
|
-
if (r === e.group) return !0;
|
|
354
|
-
}
|
|
355
|
-
return !0;
|
|
356
|
-
}
|
|
357
|
-
export { C as Slicer };
|
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.14
|
|
3
|
-
*
|
|
4
|
-
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
import { $n as e, Hn as n, Kn as t, Zn as r, er as s, jt as o, qn as l, ur as c, xr as i, zn as a } from "./DLdXl0O0TXuyqLU4.mjs";
|
|
8
|
-
var u = Symbol("sheetxl.formulaNode.internal"), f = Symbol("sheetxl.formulaNode.value"), p = Symbol("sheetxl.formulaNode.replaced"), g = { canonical: !0 }, v = (e, n) => {
|
|
9
|
-
const t = e.inputs;
|
|
10
|
-
let r = null;
|
|
11
|
-
if (t) {
|
|
12
|
-
const e = t.length;
|
|
13
|
-
r = new Array(e);
|
|
14
|
-
for (let s = 0; s < e; s++) {
|
|
15
|
-
const e = t[s];
|
|
16
|
-
r[s] = e ? v(e, n) : e;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
const s = ((e, n) => {
|
|
20
|
-
const t = e.type, r = e.value;
|
|
21
|
-
if (t === i.Named) {
|
|
22
|
-
const t = r;
|
|
23
|
-
let s = t?.nameId, l = t?.scope ?? null;
|
|
24
|
-
return n && (s = n.resolve(o.NamedFormula, s)?.toString() ?? s, l && (l = n.resolve(o.Sheet, l)?.toString() ?? l)), e.binding?.declaration && e.binding.optional ? {
|
|
25
|
-
name: s,
|
|
26
|
-
scope: l,
|
|
27
|
-
optional: !0
|
|
28
|
-
} : {
|
|
29
|
-
name: s,
|
|
30
|
-
scope: l
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
if (t === i.TableReference) {
|
|
34
|
-
const e = "string" == typeof r ? r : r?.tableId;
|
|
35
|
-
return e ? n ? n.resolve(o.Table, e)?.toString() ?? e : e : "";
|
|
36
|
-
}
|
|
37
|
-
if (!n) return r;
|
|
38
|
-
switch (t) {
|
|
39
|
-
case i.Function: return n.resolve(o.Function, r, g)?.toString() ?? r;
|
|
40
|
-
case i.TableColumn: return n.resolve(o.TableColumn, r)?.toString() ?? r;
|
|
41
|
-
case i.Cell: {
|
|
42
|
-
const e = r;
|
|
43
|
-
if (e?.scope) {
|
|
44
|
-
const t = n.resolve(o.Sheet, e.scope)?.toString() ?? e.scope;
|
|
45
|
-
return {
|
|
46
|
-
...e,
|
|
47
|
-
scope: t
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
return r;
|
|
51
|
-
}
|
|
52
|
-
case i.Error: {
|
|
53
|
-
const e = r;
|
|
54
|
-
if (e?.scope) {
|
|
55
|
-
const t = n.resolve(o.Sheet, e.scope)?.toString() ?? e.scope;
|
|
56
|
-
return {
|
|
57
|
-
...e,
|
|
58
|
-
scope: t
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
return r;
|
|
62
|
-
}
|
|
63
|
-
default: return r;
|
|
64
|
-
}
|
|
65
|
-
})(e, n);
|
|
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, n, t) => {
|
|
75
|
-
const r = e.inputs;
|
|
76
|
-
let s;
|
|
77
|
-
if (r) {
|
|
78
|
-
const n = r.length;
|
|
79
|
-
for (let o = 0; o < n; o++) {
|
|
80
|
-
const n = r[o];
|
|
81
|
-
if (!n) continue;
|
|
82
|
-
const l = m(n, e, t);
|
|
83
|
-
l !== n && (s || (s = [...r]), s[o] = l);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
let o = e;
|
|
87
|
-
s && (o = {
|
|
88
|
-
...e,
|
|
89
|
-
inputs: s
|
|
90
|
-
});
|
|
91
|
-
const l = t(o, n);
|
|
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, a) => {
|
|
100
|
-
const u = o.type, f = o.value;
|
|
101
|
-
switch (u) {
|
|
102
|
-
case i.Function: return t(String(f), a);
|
|
103
|
-
case i.Infix: return l(f, a[0], a[1], o.isReference ?? y.includes(f));
|
|
104
|
-
case i.Prefix: return s(f, a?.[0], o.isReference ?? "@" === f);
|
|
105
|
-
case i.Postfix: return e(f, a?.[0], o.isReference ?? "#" === f);
|
|
106
|
-
case i.Named: {
|
|
107
|
-
const e = r("string" == typeof f ? f : f?.name), n = "object" == typeof f ? f?.scope : null;
|
|
108
|
-
return n && (e.value = {
|
|
109
|
-
...e.value,
|
|
110
|
-
scope: n
|
|
111
|
-
}), "object" == typeof f && !0 === f?.optional && (e.value = {
|
|
112
|
-
...e.value,
|
|
113
|
-
optional: !0
|
|
114
|
-
}), e;
|
|
115
|
-
}
|
|
116
|
-
case i.Cell: return n(f);
|
|
117
|
-
case i.TableReference: return {
|
|
118
|
-
type: i.TableReference,
|
|
119
|
-
value: f,
|
|
120
|
-
inputs: a ?? null,
|
|
121
|
-
isReference: !0
|
|
122
|
-
};
|
|
123
|
-
case i.TableSpecifier: return {
|
|
124
|
-
type: i.TableSpecifier,
|
|
125
|
-
value: f,
|
|
126
|
-
image: `[${f}]`,
|
|
127
|
-
inputs: null,
|
|
128
|
-
isReference: !0
|
|
129
|
-
};
|
|
130
|
-
case i.TableColumn: {
|
|
131
|
-
const e = "string" == typeof f && f.startsWith("[") ? f : `[${c(String(f))}]`;
|
|
132
|
-
return {
|
|
133
|
-
type: i.TableColumn,
|
|
134
|
-
value: f,
|
|
135
|
-
image: e,
|
|
136
|
-
inputs: null,
|
|
137
|
-
isReference: !0
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
case i.String:
|
|
141
|
-
case i.Number:
|
|
142
|
-
case i.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: a ?? null,
|
|
152
|
-
isReference: o.isReference
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
}, d = (e) => {
|
|
156
|
-
const n = e[u], t = e.inputs;
|
|
157
|
-
let r = null;
|
|
158
|
-
if (t) {
|
|
159
|
-
const e = t.length;
|
|
160
|
-
r = new Array(e);
|
|
161
|
-
for (let n = 0; n < e; n++) {
|
|
162
|
-
const e = t[n];
|
|
163
|
-
r[n] = e ? d(e) : e;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
if (n) {
|
|
167
|
-
const t = e.value !== e[f];
|
|
168
|
-
let s = !1;
|
|
169
|
-
const o = n.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 (!t && !s) return n;
|
|
177
|
-
if (!t) return {
|
|
178
|
-
...n,
|
|
179
|
-
inputs: r
|
|
180
|
-
};
|
|
181
|
-
const l = b(e, r);
|
|
182
|
-
return S(l, n), l;
|
|
183
|
-
}
|
|
184
|
-
const s = b(e, r), o = e[p];
|
|
185
|
-
return o && S(s, o), s;
|
|
186
|
-
}, S = (e, n) => {
|
|
187
|
-
a(e, n), e.type !== n.type && void 0 !== e.image && (e.image = void 0);
|
|
188
|
-
};
|
|
189
|
-
function h(e, n) {
|
|
190
|
-
return v(e, n);
|
|
191
|
-
}
|
|
192
|
-
function R(e, n) {
|
|
193
|
-
return e && "function" == typeof n ? m(e, void 0, n) : e;
|
|
194
|
-
}
|
|
195
|
-
function T(e) {
|
|
196
|
-
const n = d(e);
|
|
197
|
-
return !0 === e.legacyIntersect && (n.legacyIntersect = !0), n;
|
|
198
|
-
}
|
|
199
|
-
export { h as n, R as r, T as t };
|