@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,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.16
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License:
|
|
5
|
+
* License: SheetXL EULA — https://www.sheetxl.com/eula
|
|
6
6
|
*/
|
|
7
|
-
import { t as e } from "./
|
|
8
|
-
import { D as t, E as n, T as r, _ as i, a, c as o, d as s, h as c, i as l, k as u, m as d, r as f, u as p, ut as m } from "./
|
|
7
|
+
import { t as e } from "./D807piM0VSokWz-L.mjs";
|
|
8
|
+
import { D as t, E as n, T as r, _ as i, a, c as o, d as s, h as c, i as l, k as u, m as d, r as f, u as p, ut as m } from "./CMChv-fCFh68VQQt.mjs";
|
|
9
9
|
import { ExpectedError as h, messageKey as g } from "@sheetxl/utils";
|
|
10
10
|
var _ = Object.freeze({}), v = /^(line|lineInv|straightConnector\d|bentConnector\d|curvedConnector\d)$/, y = () => {}, b = class extends e {
|
|
11
11
|
constructor(e) {
|
|
@@ -0,0 +1,527 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.16
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: SheetXL EULA — https://www.sheetxl.com/eula
|
|
6
|
+
*/
|
|
7
|
+
import { t as e } from "./D807piM0VSokWz-L.mjs";
|
|
8
|
+
import { an as t, br as n, gr as r, hr as i, in as a, nn as o, rn as s, vr as c, wa as l, wi as u, xi as d, yr as f } from "./CkZoDPUCK5jMUaeJ.mjs";
|
|
9
|
+
import { ExpectedError as p, messageKey as m, t as h } from "@sheetxl/utils";
|
|
10
|
+
var g = "SlicerStyleLight1", _ = "ascending", v = "showItemsWithDataAtTop", y = m("op.setSlicerCaption"), b = m("op.setSlicerStyle"), x = m("op.setSlicerLayout"), S = m("op.setSlicerSort"), C = m("op.selectSlicerItems"), w = d.BuiltInSelectorNames.Display, T = Object.freeze({
|
|
11
|
+
selector: w,
|
|
12
|
+
scope: "column"
|
|
13
|
+
}), E = Object.freeze({ transactional: !1 }), D = class extends e {
|
|
14
|
+
constructor(e) {
|
|
15
|
+
let t = c(e.json?.source)?.column ?? e.json?.pivot?.sourceName ?? "", 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._pivotTables = null, this._pivotBinding = null, 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 u.Type.Absolute;
|
|
33
|
+
}
|
|
34
|
+
getSourceName() {
|
|
35
|
+
return this._data()?.pivot?.sourceName ?? this._getColumnName();
|
|
36
|
+
}
|
|
37
|
+
getTable() {
|
|
38
|
+
return this._data()?.pivot ? this._getPivotTables()?.[0] ?? null : this._resolve()?.table ?? null;
|
|
39
|
+
}
|
|
40
|
+
getColumn() {
|
|
41
|
+
return this._resolve()?.column ?? null;
|
|
42
|
+
}
|
|
43
|
+
getPivotTables() {
|
|
44
|
+
return this._getPivotTables() ?? A;
|
|
45
|
+
}
|
|
46
|
+
getPivotField() {
|
|
47
|
+
let e = this._getPivotTables()?.[0];
|
|
48
|
+
if (!e) return null;
|
|
49
|
+
let n = t(e._getCache(), this.getSourceName());
|
|
50
|
+
return n < 0 ? null : e.getFields()[n] ?? null;
|
|
51
|
+
}
|
|
52
|
+
_getSource() {
|
|
53
|
+
let e = this._data()?.source ?? "", t = this._formula?.getExpression() ?? null;
|
|
54
|
+
return t === null || t === this._wired ? e : t;
|
|
55
|
+
}
|
|
56
|
+
setName(e) {
|
|
57
|
+
let t = this._getWorkbook();
|
|
58
|
+
if (t && n(t, e, this) !== e) throw new p(h("error.slicer.nameTaken", { name: e }));
|
|
59
|
+
return super.setName(e);
|
|
60
|
+
}
|
|
61
|
+
getCaption() {
|
|
62
|
+
return this._data()?.caption ?? this._getColumnName();
|
|
63
|
+
}
|
|
64
|
+
setCaption(e, t) {
|
|
65
|
+
return this._set({ caption: e ?? void 0 }, y, t);
|
|
66
|
+
}
|
|
67
|
+
isShowCaption() {
|
|
68
|
+
return !0 !== this._data()?.hiddenCaption;
|
|
69
|
+
}
|
|
70
|
+
setShowCaption(e, t) {
|
|
71
|
+
return this._set({ hiddenCaption: !e || void 0 }, y, t);
|
|
72
|
+
}
|
|
73
|
+
getCacheName() {
|
|
74
|
+
return this._data()?.cacheName || (f(this._getWorkbook()).get(this) ?? i(this._getColumnName()));
|
|
75
|
+
}
|
|
76
|
+
getStyle() {
|
|
77
|
+
return this._data()?.style ?? g;
|
|
78
|
+
}
|
|
79
|
+
setStyle(e, t) {
|
|
80
|
+
return this._set({ style: e && e !== g ? e : void 0 }, b, t);
|
|
81
|
+
}
|
|
82
|
+
getSortOrder() {
|
|
83
|
+
return this._data()?.sortOrder ?? _;
|
|
84
|
+
}
|
|
85
|
+
setSortOrder(e, t) {
|
|
86
|
+
if (e === "dataSource" && this._data()?.pivot) throw new p(h("error.slicer.pivotSortOrder"));
|
|
87
|
+
return this._set({ sortOrder: e === _ ? void 0 : e }, S, t);
|
|
88
|
+
}
|
|
89
|
+
getCrossFilter() {
|
|
90
|
+
return this._data()?.crossFilter ?? v;
|
|
91
|
+
}
|
|
92
|
+
setCrossFilter(e, t) {
|
|
93
|
+
return this._set({ crossFilter: e === v ? void 0 : e }, S, t);
|
|
94
|
+
}
|
|
95
|
+
getColumnCount() {
|
|
96
|
+
return this._data()?.columnCount ?? 1;
|
|
97
|
+
}
|
|
98
|
+
setColumnCount(e, t) {
|
|
99
|
+
let n = Math.max(1, Math.trunc(e));
|
|
100
|
+
return this._set({ columnCount: n === 1 ? void 0 : n }, x, t);
|
|
101
|
+
}
|
|
102
|
+
getRowHeight() {
|
|
103
|
+
return this._data()?.rowHeight ?? 27;
|
|
104
|
+
}
|
|
105
|
+
setRowHeight(e, t) {
|
|
106
|
+
let n = Math.max(1, e);
|
|
107
|
+
return this._set({ rowHeight: n === 27 ? void 0 : n }, x, t);
|
|
108
|
+
}
|
|
109
|
+
isLockedPosition() {
|
|
110
|
+
return !0 === this._data()?.lockedPosition;
|
|
111
|
+
}
|
|
112
|
+
setLockedPosition(e, t) {
|
|
113
|
+
return this._set({ lockedPosition: e || void 0 }, x, t);
|
|
114
|
+
}
|
|
115
|
+
isFilterCleared() {
|
|
116
|
+
if (this.isITimeline) {
|
|
117
|
+
let e = this._timelineField();
|
|
118
|
+
return !e?.table._getModel()?.filters?.some((t) => t.field === e.field && t.dataField === void 0);
|
|
119
|
+
}
|
|
120
|
+
return this._data()?.pivot ? this._getPivotItems()?.items.every((e) => e.isSelected) ?? !0 : !this.getColumn()?.getFilter()?.getCondition();
|
|
121
|
+
}
|
|
122
|
+
async getItems() {
|
|
123
|
+
let e = this._data()?.pivot;
|
|
124
|
+
if (e?.timeline) return O;
|
|
125
|
+
if (e) {
|
|
126
|
+
let t = this.getCrossFilter();
|
|
127
|
+
return (this._getPivotItems()?.items ?? k).flatMap((n) => {
|
|
128
|
+
if (t === "none" && !n.hasData || e.tabular?.hideMissing && n.missing) return [];
|
|
129
|
+
let { id: r, missing: i, ...a } = n;
|
|
130
|
+
return [a];
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
let t = this.getColumn()?.getFilter();
|
|
134
|
+
if (!t) return O;
|
|
135
|
+
let n = await t.getItems(T), r = t.getCondition(), i = r ? function(e, t) {
|
|
136
|
+
let n = e.toJSON();
|
|
137
|
+
if (n.operator !== d.BuiltInOperatorNames.InSet) return () => !1;
|
|
138
|
+
let r = n.param ?? {}, i = /* @__PURE__ */ new Set(), a = r.items ?? [];
|
|
139
|
+
for (let e = 0; e < a.length; e++) a[e] !== null && i.add(String(a[e]).toLowerCase());
|
|
140
|
+
let o = r.dateGroups ?? [], s = t.dates?.[t.dates.length - 1] ?? null;
|
|
141
|
+
return (e) => {
|
|
142
|
+
if (e < 0) return !0 === r.blank;
|
|
143
|
+
if (i.has(t.items[e].text.toLowerCase())) return !0;
|
|
144
|
+
if (!s || o.length === 0) return !1;
|
|
145
|
+
let n = null;
|
|
146
|
+
for (let t = 0; t < s.runs.length && !n; t++) {
|
|
147
|
+
let r = s.runs[t];
|
|
148
|
+
r.min <= e && e <= r.max && (n = r.value ?? null);
|
|
149
|
+
}
|
|
150
|
+
if (!n) return !1;
|
|
151
|
+
for (let e = 0; e < o.length; e++) if (N(o[e], n)) return !0;
|
|
152
|
+
return !1;
|
|
153
|
+
};
|
|
154
|
+
}(r, n) : null, a = [];
|
|
155
|
+
for (let e = 0; e < n.items.length; e++) {
|
|
156
|
+
let t = n.items[e], r = !0 === t.passesOthers;
|
|
157
|
+
a.push({
|
|
158
|
+
item: {
|
|
159
|
+
key: t.text,
|
|
160
|
+
name: t.text,
|
|
161
|
+
value: t.value,
|
|
162
|
+
hasData: r,
|
|
163
|
+
isSelected: !i || (r ? t.checked : i(e))
|
|
164
|
+
},
|
|
165
|
+
firstRow: t.firstRow
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
let o = this.getSortOrder();
|
|
169
|
+
if (o === "dataSource") a.sort((e, t) => e.firstRow - t.firstRow);
|
|
170
|
+
else {
|
|
171
|
+
let e = t.getRange().getWorksheet().getRuntime().getLocaleProfile(), n = o === "descending" ? -1 : 1;
|
|
172
|
+
a.sort((t, r) => n * (l.compare(t.item.value, r.item.value, e) || l.compare(t.item.key, r.item.key, e)));
|
|
173
|
+
}
|
|
174
|
+
let s = null;
|
|
175
|
+
if (n.hasBlanks) {
|
|
176
|
+
let e = !0 === n.blanksPassOthers;
|
|
177
|
+
s = {
|
|
178
|
+
key: j,
|
|
179
|
+
name: h("slicer.blankItem"),
|
|
180
|
+
value: null,
|
|
181
|
+
hasData: e,
|
|
182
|
+
isSelected: !i || (e ? n.blanksChecked : i(-1))
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
let c = [], u = this.getCrossFilter();
|
|
186
|
+
if (u === "showItemsWithNoData") {
|
|
187
|
+
for (let e = 0; e < a.length; e++) c.push(a[e].item);
|
|
188
|
+
return s && c.push(s), c;
|
|
189
|
+
}
|
|
190
|
+
for (let e = 0; e < a.length; e++) a[e].item.hasData && c.push(a[e].item);
|
|
191
|
+
if (s?.hasData && c.push(s), u === "none") return c;
|
|
192
|
+
for (let e = 0; e < a.length; e++) a[e].item.hasData || c.push(a[e].item);
|
|
193
|
+
return s && !s.hasData && c.push(s), c;
|
|
194
|
+
}
|
|
195
|
+
async getItem(e) {
|
|
196
|
+
let t = await this.getItems();
|
|
197
|
+
for (let n = 0; n < t.length; n++) if (t[n].key === e) return t[n];
|
|
198
|
+
return null;
|
|
199
|
+
}
|
|
200
|
+
async selectItems(e, t) {
|
|
201
|
+
if (this.isITimeline) return this;
|
|
202
|
+
if (this._data()?.pivot) {
|
|
203
|
+
let n = this._getPivotItems()?.items;
|
|
204
|
+
if (!n) return this;
|
|
205
|
+
let r = new Set(e), i = new Set(n.flatMap((e) => r.has(e.key) ? [e.id] : []));
|
|
206
|
+
return await this._showPivotItems(i.size === 0 || i.size === n.length ? null : i, t), this;
|
|
207
|
+
}
|
|
208
|
+
let n = this.getColumn()?.getFilter();
|
|
209
|
+
if (!n) return this;
|
|
210
|
+
if (!e || e.length === 0) return this.clearFilters(t);
|
|
211
|
+
let r = await n.getItems(T), 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 = [], c = [], l = !0, u = 0;
|
|
212
|
+
for (let e = 0; e < r.items.length; e++) {
|
|
213
|
+
if (!i.has(r.items[e].text)) {
|
|
214
|
+
l = !1;
|
|
215
|
+
continue;
|
|
216
|
+
}
|
|
217
|
+
if (e > o) {
|
|
218
|
+
s.push(r.items[e].text);
|
|
219
|
+
continue;
|
|
220
|
+
}
|
|
221
|
+
for (; a.runs[u].max < e;) u++;
|
|
222
|
+
let t = a.runs[u].value;
|
|
223
|
+
t && c[c.length - 1] !== t && c.push(t);
|
|
224
|
+
}
|
|
225
|
+
let f = r.hasBlanks && i.has(j);
|
|
226
|
+
if (r.hasBlanks && !f && (l = !1), l && !r.truncated) return this.clearFilters(t);
|
|
227
|
+
let p = { items: s };
|
|
228
|
+
return c.length > 0 && (p.dateGroups = c), f && (p.blank = !0), await n.setCondition({
|
|
229
|
+
selector: w,
|
|
230
|
+
operator: d.BuiltInOperatorNames.InSet,
|
|
231
|
+
param: p
|
|
232
|
+
}, !1, {
|
|
233
|
+
description: C,
|
|
234
|
+
...t
|
|
235
|
+
}), this;
|
|
236
|
+
}
|
|
237
|
+
async clearFilters(e) {
|
|
238
|
+
return this.isITimeline ? this.setDateRange(null, e) : this._data()?.pivot ? (await this._showPivotItems(null, e), this) : (await this.getColumn()?.getFilter()?.delete(e), this);
|
|
239
|
+
}
|
|
240
|
+
addListeners(e, t) {
|
|
241
|
+
let n = super.addListeners(e, t);
|
|
242
|
+
if (this._data()?.pivot) return this._bindPivot(), n;
|
|
243
|
+
if (!this._binding) {
|
|
244
|
+
let e = this._resolve();
|
|
245
|
+
e && this._bind(e);
|
|
246
|
+
}
|
|
247
|
+
return n;
|
|
248
|
+
}
|
|
249
|
+
toJSON(e) {
|
|
250
|
+
let t = this._data();
|
|
251
|
+
if (!t) return null;
|
|
252
|
+
if (t.pivot) {
|
|
253
|
+
let e = this._getPivotTables();
|
|
254
|
+
if (!e) return t;
|
|
255
|
+
let n = {
|
|
256
|
+
...t.pivot,
|
|
257
|
+
tables: e.map((e) => ({
|
|
258
|
+
sheet: e.getWorksheet().getName(),
|
|
259
|
+
name: e.getName()
|
|
260
|
+
}))
|
|
261
|
+
};
|
|
262
|
+
return n.tabular && e.length > 0 && (n.cacheId = e[0].getCacheId()), {
|
|
263
|
+
...t,
|
|
264
|
+
pivot: n
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
let n = this._getSource();
|
|
268
|
+
return n ? {
|
|
269
|
+
...t,
|
|
270
|
+
source: n
|
|
271
|
+
} : t;
|
|
272
|
+
}
|
|
273
|
+
get isISlicer() {
|
|
274
|
+
return !0;
|
|
275
|
+
}
|
|
276
|
+
get isITimeline() {
|
|
277
|
+
return this._data()?.pivot?.timeline !== void 0;
|
|
278
|
+
}
|
|
279
|
+
getDateRange() {
|
|
280
|
+
let e = this._timelineField(), t = e?.table._getModel();
|
|
281
|
+
return t ? s(t, e.field) : null;
|
|
282
|
+
}
|
|
283
|
+
async setDateRange(e, n) {
|
|
284
|
+
let r = this.isITimeline ? this._getPivotTables() ?? [] : [], i = this._getWorkbook();
|
|
285
|
+
if (!i || r.length === 0) return this;
|
|
286
|
+
let a = this.getSourceName();
|
|
287
|
+
return await i.doBatch(async () => {
|
|
288
|
+
for (let n of r) {
|
|
289
|
+
let r = t(n._getCache(), a);
|
|
290
|
+
r >= 0 && await n._setDateRange(r, a, e);
|
|
291
|
+
}
|
|
292
|
+
}, {
|
|
293
|
+
description: C,
|
|
294
|
+
...n
|
|
295
|
+
}), this;
|
|
296
|
+
}
|
|
297
|
+
_getTimelineState() {
|
|
298
|
+
let e = this._data()?.pivot;
|
|
299
|
+
if (!e?.timeline || !e.tabular) return null;
|
|
300
|
+
let n = this._timelineField();
|
|
301
|
+
if (n) {
|
|
302
|
+
let e = n.table._getModel(), t = n.table._getCache();
|
|
303
|
+
return {
|
|
304
|
+
cacheId: n.table.getCacheId(),
|
|
305
|
+
range: e ? s(e, n.field) : null,
|
|
306
|
+
filtered: !!e?.filters?.some((e) => e.field === n.field && e.dataField === void 0),
|
|
307
|
+
dates: o(t, n.field)
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
if (e.cacheId === void 0) return null;
|
|
311
|
+
let r = this._getWorkbook()?._getPivotCache?.(e.cacheId)?.toJSON() ?? null, i = t(r, e.sourceName);
|
|
312
|
+
return {
|
|
313
|
+
cacheId: e.cacheId,
|
|
314
|
+
range: null,
|
|
315
|
+
filtered: !1,
|
|
316
|
+
dates: r && i >= 0 ? o(r, i) : null
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
_timelineField() {
|
|
320
|
+
if (!this.isITimeline) return null;
|
|
321
|
+
let e = this._getPivotTables()?.[0], n = e ? t(e._getCache(), this.getSourceName()) : -1;
|
|
322
|
+
return n >= 0 ? {
|
|
323
|
+
table: e,
|
|
324
|
+
field: n
|
|
325
|
+
} : null;
|
|
326
|
+
}
|
|
327
|
+
get [Symbol.toStringTag]() {
|
|
328
|
+
return "[Slicer]";
|
|
329
|
+
}
|
|
330
|
+
toString() {
|
|
331
|
+
return this.getTypeDescription();
|
|
332
|
+
}
|
|
333
|
+
_attach() {
|
|
334
|
+
this._checkSource(!0);
|
|
335
|
+
}
|
|
336
|
+
_getPivotTables() {
|
|
337
|
+
if (!this._data()?.pivot) return null;
|
|
338
|
+
if (!this._pivotTables) {
|
|
339
|
+
let e = this._getWorkbook();
|
|
340
|
+
if (!e) return null;
|
|
341
|
+
this._holdPivotTables((t, n) => e.getWorksheets().getByName(t)?.getPivotTables().getByName(n) ?? null);
|
|
342
|
+
}
|
|
343
|
+
return this._pivotTables.filter((e) => !e.isDeleted());
|
|
344
|
+
}
|
|
345
|
+
_holdPivotTables(e) {
|
|
346
|
+
let t = this._data()?.pivot;
|
|
347
|
+
if (!t) return;
|
|
348
|
+
let n = [];
|
|
349
|
+
for (let r = 0; r < t.tables.length; r++) {
|
|
350
|
+
let i = e(t.tables[r].sheet, t.tables[r].name);
|
|
351
|
+
i && !n.includes(i) && n.push(i);
|
|
352
|
+
}
|
|
353
|
+
this._pivotTables = n;
|
|
354
|
+
}
|
|
355
|
+
_getPivotItems() {
|
|
356
|
+
let e = this._data()?.pivot;
|
|
357
|
+
if (!e?.tabular || e.timeline) return null;
|
|
358
|
+
let n = this._getPivotTables()?.[0], r = n ? n.getCacheId() : e.cacheId;
|
|
359
|
+
if (r === void 0) return null;
|
|
360
|
+
let i = this._getWorkbook(), o = n ? n._getModel() : {}, s = n ? n._getCache() : i?._getPivotCache?.(r)?.toJSON() ?? null, c = t(s, e.sourceName), l = (n?.getWorksheet() ?? this.getMovable()?.getRange().getWorksheet())?.getRuntime();
|
|
361
|
+
return !o || !s || c < 0 || !l ? null : {
|
|
362
|
+
cacheId: r,
|
|
363
|
+
items: a(o, s, c, this.getSortOrder(), this.getCrossFilter(), l.getLocaleProfile())
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
async _showPivotItems(e, n) {
|
|
367
|
+
let r = this._getPivotTables() ?? [], i = this._getWorkbook();
|
|
368
|
+
if (!i || r.length === 0) return;
|
|
369
|
+
let a = this.getSourceName();
|
|
370
|
+
await i.doBatch(async () => {
|
|
371
|
+
for (let n of r) {
|
|
372
|
+
let r = t(n._getCache(), a);
|
|
373
|
+
r >= 0 && await n._showSlicerItems(r, e);
|
|
374
|
+
}
|
|
375
|
+
}, {
|
|
376
|
+
description: C,
|
|
377
|
+
...n
|
|
378
|
+
});
|
|
379
|
+
}
|
|
380
|
+
_bindPivot() {
|
|
381
|
+
let e = this._getPivotTables() ?? [], t = this._pivotBinding;
|
|
382
|
+
if (t && t.tables.length === e.length && t.tables.every((t, n) => t === e[n])) return;
|
|
383
|
+
this._unbindPivot();
|
|
384
|
+
let n = () => {
|
|
385
|
+
this._notify("onSelectionChange"), this._notify("onItemsChange");
|
|
386
|
+
};
|
|
387
|
+
this._pivotBinding = {
|
|
388
|
+
tables: [...e],
|
|
389
|
+
removes: e.map((e) => e.addListeners({
|
|
390
|
+
onAnyChange: n,
|
|
391
|
+
onDelete: n
|
|
392
|
+
}, E))
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
_unbindPivot() {
|
|
396
|
+
let e = this._pivotBinding;
|
|
397
|
+
if (e) {
|
|
398
|
+
this._pivotBinding = null;
|
|
399
|
+
for (let t of e.removes) t();
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
_data() {
|
|
403
|
+
return this._getState()?.data ?? null;
|
|
404
|
+
}
|
|
405
|
+
_getWorkbook() {
|
|
406
|
+
try {
|
|
407
|
+
return this.getMovable()?.getRange().getWorksheet().getWorkbook() ?? null;
|
|
408
|
+
} catch {
|
|
409
|
+
return null;
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
_resolve() {
|
|
413
|
+
if (this._closed) return null;
|
|
414
|
+
let e = c(this._getSource());
|
|
415
|
+
if (!e) return null;
|
|
416
|
+
let t = r(this._getWorkbook(), e.table), n = t?.getColumnByName(e.column) ?? null;
|
|
417
|
+
return n ? (this._columnName = n.getName(), {
|
|
418
|
+
table: t,
|
|
419
|
+
column: n
|
|
420
|
+
}) : null;
|
|
421
|
+
}
|
|
422
|
+
_getColumnName() {
|
|
423
|
+
return this._resolve()?.column.getName() ?? this._columnName;
|
|
424
|
+
}
|
|
425
|
+
_checkSource(e) {
|
|
426
|
+
if (this._closed || this.isDeleted() || this._data()?.pivot) return;
|
|
427
|
+
let t = this._resolve();
|
|
428
|
+
if (t) return void this._bind(t);
|
|
429
|
+
let n = this._getTransactions();
|
|
430
|
+
n.isRestoring() || (n.isOpenTransaction() ? this.delete() : e && !this._lossPending && (this._lossPending = !0, queueMicrotask(() => {
|
|
431
|
+
if (this._lossPending = !1, this._closed || this.isDeleted() || n.isOpenTransaction() || n.isRestoring()) return;
|
|
432
|
+
let e = this._resolve();
|
|
433
|
+
e ? this._bind(e) : n.amend(n.getCurrentCommit(!1).getId(), () => {
|
|
434
|
+
this.delete();
|
|
435
|
+
});
|
|
436
|
+
})));
|
|
437
|
+
}
|
|
438
|
+
_bind(e) {
|
|
439
|
+
let t = e.table;
|
|
440
|
+
if (this._binding?.table !== t) {
|
|
441
|
+
this._unbind();
|
|
442
|
+
let e = () => {
|
|
443
|
+
this._checkSource(!0);
|
|
444
|
+
};
|
|
445
|
+
this._binding = {
|
|
446
|
+
table: t,
|
|
447
|
+
removeTable: t.addListeners({
|
|
448
|
+
onFilterChange: () => {
|
|
449
|
+
this._notify("onSelectionChange");
|
|
450
|
+
},
|
|
451
|
+
onAnyChange: () => {
|
|
452
|
+
this._checkSource(!0), this._bindRange(!0);
|
|
453
|
+
},
|
|
454
|
+
onAnchorCoordsChange: () => {
|
|
455
|
+
this._bindRange(!0);
|
|
456
|
+
},
|
|
457
|
+
onDelete: e
|
|
458
|
+
}, E),
|
|
459
|
+
coords: null,
|
|
460
|
+
removeRange: null
|
|
461
|
+
};
|
|
462
|
+
}
|
|
463
|
+
this._bindRange(!1);
|
|
464
|
+
}
|
|
465
|
+
_bindRange(e) {
|
|
466
|
+
let t = this._binding;
|
|
467
|
+
if (!t || this._closed) return;
|
|
468
|
+
let n = this.getColumn()?.getFilter()?.getRange() ?? null, r = n ? n.getCoords() : null;
|
|
469
|
+
(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(() => {
|
|
470
|
+
this._notify("onItemsChange");
|
|
471
|
+
}, {
|
|
472
|
+
ignoreAddressChanges: !0,
|
|
473
|
+
...E
|
|
474
|
+
}) ?? null, t.coords = r, e && this._notify("onItemsChange"));
|
|
475
|
+
}
|
|
476
|
+
_unbind() {
|
|
477
|
+
let e = this._binding;
|
|
478
|
+
e && (this._binding = null, e.removeTable(), e.removeRange?.());
|
|
479
|
+
}
|
|
480
|
+
_notify(e) {
|
|
481
|
+
this._closed || this.isDeleted() || (this._emitter.notify(e), this._emitter.notify("onAnyChange"));
|
|
482
|
+
}
|
|
483
|
+
_set(e, t, n) {
|
|
484
|
+
this._protectionCheck(t);
|
|
485
|
+
let r = this._data();
|
|
486
|
+
if (!r) return this;
|
|
487
|
+
let i = {
|
|
488
|
+
...r,
|
|
489
|
+
...e
|
|
490
|
+
};
|
|
491
|
+
for (let t in e) i[t] === void 0 && delete i[t];
|
|
492
|
+
return this._updateState({ data: i }, {
|
|
493
|
+
...n,
|
|
494
|
+
description: t
|
|
495
|
+
}, ["onAnyChange"]), this;
|
|
496
|
+
}
|
|
497
|
+
_processDelete() {
|
|
498
|
+
this._unbind(), this._unbindPivot();
|
|
499
|
+
let e = this._data()?.pivot?.tabular ? this._getPivotTables() ?? [] : [];
|
|
500
|
+
super._processDelete();
|
|
501
|
+
for (let t of e) t._relayForSlicers?.();
|
|
502
|
+
}
|
|
503
|
+
_processRestoreOrRevert(e, t) {
|
|
504
|
+
if (super._processRestoreOrRevert(e, t), this.isDeleted()) return void this._unbind();
|
|
505
|
+
let n = this._resolve();
|
|
506
|
+
n && this._bind(n);
|
|
507
|
+
}
|
|
508
|
+
close() {
|
|
509
|
+
this._unbind(), this._unbindPivot(), super.close();
|
|
510
|
+
}
|
|
511
|
+
}, O = Object.freeze([]), k = Object.freeze([]), A = Object.freeze([]), j = "", M = [
|
|
512
|
+
"year",
|
|
513
|
+
"month",
|
|
514
|
+
"day",
|
|
515
|
+
"hour",
|
|
516
|
+
"minute",
|
|
517
|
+
"second"
|
|
518
|
+
];
|
|
519
|
+
function N(e, t) {
|
|
520
|
+
for (let n = 0; n < M.length; n++) {
|
|
521
|
+
let r = M[n];
|
|
522
|
+
if (e[r] !== t[r]) return !1;
|
|
523
|
+
if (r === e.group) return !0;
|
|
524
|
+
}
|
|
525
|
+
return !0;
|
|
526
|
+
}
|
|
527
|
+
export { D as Slicer };
|
|
@@ -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.16
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License:
|
|
5
|
+
* License: SheetXL EULA — https://www.sheetxl.com/eula
|
|
6
6
|
*/
|
|
7
|
-
import { i as e, n as t, r as n, t as r } from "./
|
|
7
|
+
import { i as e, n as t, r as n, t as r } from "./BF_QwkZ_hs2rFoTT.mjs";
|
|
8
8
|
var i = 6e4, a = Math.PI / 180 / i, o = 108e5 / Math.PI, s = /^[+-]?\d+$/, c = (e) => s.test(e) ? Number(e) : e, l = /* @__PURE__ */ new WeakMap();
|
|
9
9
|
function u(e) {
|
|
10
10
|
let t = l.get(e);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.16
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License:
|
|
5
|
+
* License: SheetXL EULA — https://www.sheetxl.com/eula
|
|
6
6
|
*/
|
|
7
7
|
function e(e, t, n) {
|
|
8
8
|
let r = e.metrics(t);
|