@sheetxl/sdk 0.8.0-beta.11 → 0.8.0-beta.13
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/THIRD-PARTY-NOTICES.md +172 -0
- package/browser/esm/{BMyDRQ716j79h_bH.mjs → -GEhXGMfNcWmHPby.mjs} +6 -6
- package/browser/esm/{B7aUIvgUjncMMD_i.mjs → 9WXf_BTKjW1cQisZ.mjs} +95 -94
- package/browser/esm/{PcHFjNzQsE54POri.mjs → B2SgIPPBX0wjzuq8.mjs} +1 -1
- package/browser/esm/{DEiPS3Dr-s4fPbVZ.mjs → BC2RwlNwCdRywkoD.mjs} +1 -1
- package/browser/esm/{BpgskG1Er_lGQ_yS.mjs → BEqhm9xAUPiHUCFv.mjs} +1 -1
- package/browser/esm/BHgqi7KNrl7Vjr0W.mjs +348 -0
- package/browser/esm/{BkBhLS0l6z8sxI6D.mjs → BJKH0tDRx2FeSWvt.mjs} +2 -2
- package/browser/esm/{CU3DmJ-YnVVrC1_k.mjs → BTgWtqdQoh2cB6DL.mjs} +1 -1
- package/browser/esm/{Dyq_ivuHvlXLwPCl.mjs → BVshV1iY3bcUH9_E.mjs} +1135 -1129
- package/browser/esm/{BFagR2JeWs74iAG3.mjs → BYQ63XU7JzB4_itX.mjs} +1 -1
- package/browser/esm/{DvAaxH6z_tGvrRzl.mjs → Bax5aOzQkbHKXW_X.mjs} +239 -230
- package/browser/esm/{DLLE0FZNsKxbBzRn.mjs → BiDGKhtzV6yIy66o.mjs} +45 -45
- package/browser/esm/BmYrWK5OmHRtgyqM.mjs +367 -0
- package/browser/esm/{ClPfI4lODvCece29.mjs → BoAlHgjPQ6mxb_oO.mjs} +74 -74
- package/browser/esm/{BoV6zPBnfqCBCqZ7.mjs → C0mjTq8lhrX3HiPa.mjs} +4328 -3166
- package/browser/esm/{nvU0ClAbf0g94YBK.mjs → C5j0IdwtYkWlOftv.mjs} +604 -596
- package/browser/esm/{DWNzqw7DUKwoxjri.mjs → CL84-iL2QeKlLzo5.mjs} +2 -2
- package/browser/esm/{Ctjb0SsxV4K4MMqG.mjs → CLkBe-6n-pStQhnz.mjs} +2 -2
- package/{node/esm/CZICGK_ss0HoGHCP.mjs → browser/esm/CPzfhTPX2Y4dHX2p.mjs} +2 -2
- package/browser/esm/{Dlmig06rIo7cInRk.mjs → CSJuIjYUOE387FIP.mjs} +1 -1
- package/browser/esm/{BjkCiv5Jz6WYKZeu.mjs → Cdw0mGuoV3IU2LhR.mjs} +2 -2
- package/browser/esm/Ced5uyofOWHuL_Jy.mjs +114 -0
- package/browser/esm/{CkxWugaJFjDGZNZ-.mjs → Ci_LJ4S_GvYX0STI.mjs} +1 -1
- package/browser/esm/{zlLuW405RSguy4Kn.mjs → CwygVKP_RXmne5Ot.mjs} +47 -47
- package/browser/esm/{C4MqfLn9Dm-l3OIk.mjs → D-mfK0noQrM2jZLT.mjs} +1 -1
- package/browser/esm/{BnG31I6Oj_HEtSPS.mjs → D9SH_8v3FYCnxOFK.mjs} +1 -1
- package/browser/esm/{BVDiOXGMc5_FMGfy.mjs → DPD8fop6az9HZNiK.mjs} +2 -2
- package/browser/esm/DW-MmlgMH87l-_cw.mjs +302 -0
- package/browser/esm/{CaB7J-xgfKO2uAkG.mjs → DctIlUsO78-OU2ht.mjs} +2 -2
- package/browser/esm/DdcKkVb4jM6Y_epY.mjs +184 -0
- package/browser/esm/{CHU6iu_WGlm7fLET.mjs → DfKzE0IY0TjaEIxG.mjs} +1 -1
- package/browser/esm/{C2VbEI_XVAoseAwa.mjs → DkloMquaR1pbZCER.mjs} +44 -43
- package/browser/esm/{C16ycKja6zG0crV_.mjs → Dz86-De57bv2VYIi.mjs} +19447 -16481
- package/browser/esm/{BtvLTTfSBdAKplVG.mjs → HApSgmV2FXRRwQac.mjs} +1 -1
- package/browser/esm/{CQYjO777cmAznUzK.mjs → IbVAQU4YqtFqLwYk.mjs} +1 -1
- package/browser/esm/index.mjs +823 -644
- package/browser/esm/mHQ95RAfxHzcUN2r.mjs +18 -0
- package/browser/esm/pm00uZZu_H3gxHFx.mjs +117 -0
- package/browser/esm/{CV5EGEjG5_-CPpP0.mjs → quEvwgrEuOb0h3q-.mjs} +1926 -1298
- package/browser/esm/{ClbvFbFzFzXLBKNN.mjs → zZngLMg6mg6nnNGX.mjs} +66 -66
- package/licenses/dependencies.txt +71 -1
- package/node/esm/{BqiexuA89caYnAPz.mjs → -K4Cek-bTUItkB_8.mjs} +1 -1
- package/node/esm/-b8yNV4v9qiq8EMY.mjs +117 -0
- package/node/esm/{D8zEN-6ZdDqDvTxM.mjs → 1V-m67YHbxmg3xk2.mjs} +74 -74
- package/node/esm/{D_t5AUxSm7_icjzq.mjs → 4ROAfJC1mokmqubv.mjs} +1 -1
- package/node/esm/B89et7t3uRmtxk4v.mjs +115 -0
- package/node/esm/BKBkCBNGhMU0nQdY.mjs +372 -0
- package/node/esm/{OVfaSb506tNSIvbv.mjs → BQ2XqExomMceAjfe.mjs} +20822 -18373
- package/node/esm/{2Kihw_-5lVTEnwMa.mjs → Bfg7qjCXCwXbzW3K.mjs} +1 -1
- package/node/esm/{D1TKBVmoKGAXf37B.mjs → BtMeAB_dqJnOfzJM.mjs} +2 -2
- package/node/esm/{D6e2z7eZpxOJXHc7.mjs → Byc_bxU_MdjYtt0x.mjs} +1 -1
- package/node/esm/{CNCNJNg890KdgkWh.mjs → Bzrl292TNCK3Cpid.mjs} +1 -1
- package/node/esm/{De2IONBxQhz-Qbyh.mjs → C0P9zspoypRAj7yv.mjs} +1 -1
- package/node/esm/{CzXT00vrQa1_gvW9.mjs → C9gpMN3galHGZyoK.mjs} +1 -1
- package/node/esm/CKCG2peOkTq0gIIW.mjs +310 -0
- package/node/esm/{DUTskXCXref-IJnI.mjs → CWBS90g3Hz-kQDkY.mjs} +46 -46
- package/node/esm/{BIwObuhTJYf0jpUa.mjs → CoGSVnn-hNMtTEus.mjs} +2 -2
- package/node/esm/{CwePQwTILHHjGDkZ.mjs → CzrLqStvrcPE2-hb.mjs} +194 -185
- package/node/esm/{CCN5vD410obwdz38.mjs → D16EdlZG1hX5WUUK.mjs} +96 -95
- package/node/esm/{CDHdgJXH2vS71WMc.mjs → D1mDga2K5sjs8y07.mjs} +1 -1
- package/node/esm/{cGwrLA1RCE-WhJ7w.mjs → D2jtztjE6c23RKvZ.mjs} +1 -1
- package/node/esm/{Bbf1Pm9Gk7YpLTvg.mjs → D9nRcWsYk3M82iD8.mjs} +1 -1
- package/node/esm/{yavzZOiZW_EjG9lE.mjs → DALYzTxZ9Ur9C69Q.mjs} +1 -1
- package/node/esm/{DkwIPzKc3UwdUIfM.mjs → DF0nL7s01dp7n0Bx.mjs} +10 -10
- package/node/esm/{DNRhGK-8Tr9xcRyc.mjs → DO5ldLqhTvIfPXLW.mjs} +3348 -2610
- package/node/esm/DQz8J8ci7EJdqbuB.mjs +351 -0
- package/node/esm/{BIRq1kT7lLRzns9t.mjs → DR2OQTKqqyIkZnse.mjs} +2 -2
- package/node/esm/{857CIBgQgGpnqrXk.mjs → DSTLPBgpsGW6qP9e.mjs} +73 -73
- package/node/esm/{CGp6VZL-gZa9Uezx.mjs → DiXp7KSOZUSWXaZ5.mjs} +1 -1
- package/node/esm/{CZiqiay42tFTrLI4.mjs → DwvXHsycOQR219c7.mjs} +1 -1
- package/node/esm/{B21JjOLghRoDOrkx.mjs → Hc6B04OyVzHx2F5I.mjs} +38 -37
- package/node/esm/{Ct3h15sCus4Tgt6M.mjs → NkPNHsq2T3DXg76x.mjs} +561 -553
- package/node/esm/{B084DssTcdBheTp_.mjs → Nl_IIkO1jbk0s9i-.mjs} +4552 -3373
- package/node/esm/{D2KBymQJd1XhpeQD.mjs → OQT5lGqq8a4r5xNa.mjs} +1 -1
- package/node/esm/OTaaFGhF-k_iwobp.mjs +18 -0
- package/node/esm/{CdJHUJSBRHZoryPe.mjs → Z1elC_roIu7LhceZ.mjs} +53 -53
- package/{browser/esm/D5np__Jb1euAyaLw.mjs → node/esm/e3F3OVXCxLJrSukW.mjs} +2 -2
- package/node/esm/index.mjs +806 -625
- package/node/esm/{mFiBSM7XgBHV9AY7.mjs → suOBVUz-pca6ilJH.mjs} +1607 -1601
- package/package.json +8 -6
- package/resources/contents.json +108 -0
- package/resources/fonts/aptos-bold-italic.hinted.json +125 -0
- package/resources/fonts/aptos-bold-italic.metrics.json +221 -0
- package/resources/fonts/aptos-bold-italic.rows.json +8 -0
- package/resources/fonts/aptos-bold.hinted.json +125 -0
- package/resources/fonts/aptos-bold.metrics.json +221 -0
- package/resources/fonts/aptos-bold.rows.json +8 -0
- package/resources/fonts/aptos-display-bold-italic.hinted.json +125 -0
- package/resources/fonts/aptos-display-bold-italic.metrics.json +221 -0
- package/resources/fonts/aptos-display-bold-italic.rows.json +8 -0
- package/resources/fonts/aptos-display-bold.hinted.json +125 -0
- package/resources/fonts/aptos-display-bold.metrics.json +221 -0
- package/resources/fonts/aptos-display-bold.rows.json +8 -0
- package/resources/fonts/aptos-display-italic.hinted.json +124 -0
- package/resources/fonts/aptos-display-italic.metrics.json +221 -0
- package/resources/fonts/aptos-display-italic.rows.json +8 -0
- package/resources/fonts/aptos-display-regular.hinted.json +125 -0
- package/resources/fonts/aptos-display-regular.metrics.json +221 -0
- package/resources/fonts/aptos-display-regular.rows.json +8 -0
- package/resources/fonts/aptos-italic.hinted.json +125 -0
- package/resources/fonts/aptos-italic.metrics.json +221 -0
- package/resources/fonts/aptos-italic.rows.json +8 -0
- package/resources/fonts/aptos-narrow-bold-italic.hinted.json +125 -0
- package/resources/fonts/aptos-narrow-bold-italic.metrics.json +221 -0
- package/resources/fonts/aptos-narrow-bold-italic.rows.json +8 -0
- package/resources/fonts/aptos-narrow-bold.hinted.json +125 -0
- package/resources/fonts/aptos-narrow-bold.metrics.json +221 -0
- package/resources/fonts/aptos-narrow-bold.rows.json +8 -0
- package/resources/fonts/aptos-narrow-italic.hinted.json +125 -0
- package/resources/fonts/aptos-narrow-italic.metrics.json +221 -0
- package/resources/fonts/aptos-narrow-italic.rows.json +8 -0
- package/resources/fonts/aptos-narrow-regular.hinted.json +125 -0
- package/resources/fonts/aptos-narrow-regular.metrics.json +221 -0
- package/resources/fonts/aptos-narrow-regular.rows.json +8 -0
- package/resources/fonts/aptos-regular.hinted.json +125 -0
- package/resources/fonts/aptos-regular.metrics.json +221 -0
- package/resources/fonts/aptos-regular.rows.json +8 -0
- package/resources/fonts/arial-bold-italic.rows.json +0 -1
- package/resources/fonts/arial-bold.rows.json +0 -1
- package/resources/fonts/arial-italic.rows.json +0 -1
- package/resources/fonts/arial-regular.rows.json +0 -1
- package/resources/fonts/calibri-bold-italic.rows.json +0 -1
- package/resources/fonts/calibri-bold.rows.json +0 -1
- package/resources/fonts/calibri-italic.rows.json +0 -1
- package/resources/fonts/calibri-regular.rows.json +0 -1
- package/resources/fonts/cambria-bold-italic.rows.json +0 -1
- package/resources/fonts/cambria-bold.rows.json +0 -1
- package/resources/fonts/cambria-italic.rows.json +0 -1
- package/resources/fonts/cambria-regular.rows.json +0 -1
- package/resources/fonts/contents.json +240 -0
- package/resources/fonts/courier-new-bold-italic.rows.json +0 -1
- package/resources/fonts/courier-new-bold.rows.json +0 -1
- package/resources/fonts/courier-new-italic.rows.json +0 -1
- package/resources/fonts/courier-new-regular.rows.json +0 -1
- package/resources/fonts/times-new-roman-bold-italic.rows.json +0 -1
- package/resources/fonts/times-new-roman-bold.rows.json +0 -1
- package/resources/fonts/times-new-roman-italic.rows.json +0 -1
- package/resources/fonts/times-new-roman-regular.rows.json +0 -1
- package/resources/locales/de/model.msg.json +12 -2
- package/resources/locales/en/model.msg.json +13 -2
- package/types/scripting-api.json +10638 -10446
- package/types/scripting-enums.json +20 -1
- package/types/scripting.d.ts +1536 -477
- package/types/src/.generated/wasm/sdk.d.ts +5 -27
- package/types/src/address/AddressUtils.d.ts +8 -0
- package/types/src/address/_SheetNameQuoteChars.d.ts +3 -0
- package/types/src/{sheet → anomalies}/_Anomalies.d.ts +3 -3
- package/types/src/anomalies/_FocusTable.d.ts +5 -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 +61 -98
- package/types/src/calculation/ExternalBookBindings.d.ts +2 -29
- package/types/src/calculation/ICalculation.d.ts +96 -9
- package/types/src/calculation/NamedFormulaCollection.d.ts +110 -10
- package/types/src/calculation/TokenType.d.ts +0 -10
- package/types/src/calculation/_CloneBoundary.d.ts +0 -24
- package/types/src/calculation/_FormulaToolkit.d.ts +0 -5
- package/types/src/calculation/compiler/ASTTypes.d.ts +6 -15
- package/types/src/calculation/compiler/CompilerUtils.d.ts +0 -227
- package/types/src/calculation/compiler/FormulaLexer.d.ts +0 -8
- package/types/src/calculation/compiler/FormulaParser.d.ts +0 -61
- package/types/src/calculation/compiler/ParserUtils.d.ts +0 -24
- package/types/src/calculation/compiler/Types.d.ts +1 -45
- package/types/src/calculation/engine/CalcBackend.d.ts +83 -127
- package/types/src/calculation/engine/index.d.ts +0 -8
- package/types/src/calculation/executor/CalcExecutor.d.ts +50 -116
- package/types/src/calculation/executor/CalcExecutorUtils.d.ts +47 -12
- package/types/src/calculation/executor/CircularReference.d.ts +0 -17
- package/types/src/calculation/executor/_BlockOrder.d.ts +29 -0
- package/types/src/calculation/executor/_WhatIf.d.ts +31 -0
- package/types/src/calculation/formula/FormulaBlock.d.ts +4 -31
- package/types/src/calculation/formula/FormulaRecordView.d.ts +0 -15
- package/types/src/calculation/formula/IFormulaBlock.d.ts +5 -12
- package/types/src/calculation/formula/LambdaValue.d.ts +0 -15
- package/types/src/calculation/formula/TokenUtils.d.ts +1 -8
- package/types/src/calculation/functions/_DataTableFunction.d.ts +14 -0
- package/types/src/calculation/grid/CalcGrid.d.ts +8 -64
- package/types/src/calculation/grid/CalcGridBackend.d.ts +12 -35
- package/types/src/calculation/grid/CalcGridProxy.d.ts +0 -15
- package/types/src/calculation/grid/CalcGridUtils.d.ts +21 -23
- package/types/src/calculation/grid/ICalcGrid.d.ts +28 -109
- package/types/src/calculation/grid/_CalcRequest.d.ts +17 -33
- package/types/src/calculation/spatial/CircularEntry.d.ts +0 -10
- package/types/src/calculation/spatial/FormulaSpatialValue.d.ts +54 -82
- package/types/src/calculation/spatial/SpillEntry.d.ts +20 -3
- package/types/src/calculation/state/CalcNode.d.ts +0 -1
- package/types/src/calculation/state/CalcScope.d.ts +29 -9
- package/types/src/calculation/state/CalcState.d.ts +19 -9
- package/types/src/calculation/state/CalculationContext.d.ts +32 -38
- package/types/src/calculation/state/DeferredCalls.d.ts +207 -0
- package/types/src/calculation/state/IContextContainer.d.ts +19 -55
- package/types/src/calculation/state/_KeepBlanks.d.ts +5 -0
- package/types/src/calculation/state/_PendingOverlayGrid.d.ts +52 -33
- package/types/src/calculation/state/_WhatIfLayer.d.ts +77 -0
- package/types/src/calculation/symbol/ExternalSheetSymbols.d.ts +0 -42
- package/types/src/calculation/symbol/ISymbolRegistry.d.ts +0 -6
- package/types/src/calculation/symbol/SheetSymbolProvider.d.ts +0 -12
- package/types/src/calculation/symbol/SymbolRegistry.d.ts +0 -9
- package/types/src/calculation/toolkit/index.d.ts +0 -8
- package/types/src/cell/ICell.d.ts +59 -54
- 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 +226 -67
- package/types/src/cellRange/ICellRanges.d.ts +4 -3
- package/types/src/chart/Chart.d.ts +0 -16
- package/types/src/chart/_ChartParts.d.ts +0 -39
- package/types/src/chart/_ChartSource.d.ts +0 -14
- package/types/src/chart/createChart.d.ts +1 -1
- package/types/src/chart/kinds/ChartKind.d.ts +4 -4
- package/types/src/chart/kinds/_Placeholder.d.ts +0 -1
- package/types/src/chart/layout/ChartLayout.d.ts +5 -1
- package/types/src/chart/layout/TextMeasurer.d.ts +0 -20
- package/types/src/chart/layout/_LayoutUtils.d.ts +0 -16
- package/types/src/chart/math/BoxStats.d.ts +0 -8
- package/types/src/chart/math/DateUnitCalcs.d.ts +0 -10
- package/types/src/chart/math/Histogram.d.ts +0 -17
- package/types/src/chart/math/OrdUnitCalcs.d.ts +0 -53
- package/types/src/chart/math/Treemap.d.ts +0 -15
- package/types/src/chart/math/Trendlines.d.ts +0 -8
- package/types/src/chart/math/UnitCalcs.d.ts +0 -22
- package/types/src/chart/model/_Edits.d.ts +0 -33
- package/types/src/chart/model/_Grouping.d.ts +0 -25
- package/types/src/chart/model/_Inference.d.ts +0 -18
- package/types/src/chart/model/_NewChart.d.ts +0 -41
- package/types/src/chart/model/_OfPie.d.ts +0 -7
- package/types/src/chart/resolve/_LegacyStyles.d.ts +0 -20
- package/types/src/chart/resolve/_Resolve.d.ts +3 -12
- package/types/src/chart/resolve/_ResolvedChart.d.ts +5 -8
- 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/collections/_GridUtils.d.ts +0 -10
- package/types/src/comment/_NoteBox.d.ts +0 -15
- package/types/src/condition/AnchoredConditional.d.ts +3 -25
- package/types/src/condition/BuiltInOperators/AbstractOperator.d.ts +0 -49
- package/types/src/condition/BuiltinSelectors/DisplaySelector.d.ts +0 -10
- package/types/src/condition/ICondition.d.ts +2 -2
- package/types/src/condition/_ConditionUtils.d.ts +0 -38
- package/types/src/externalBook/ExternalBookCollection.d.ts +0 -15
- package/types/src/externalBook/ExternalBookName.d.ts +2 -3
- package/types/src/externalBook/IExternalBook.d.ts +16 -18
- package/types/src/fetch/Fetcher.d.ts +15 -0
- package/types/src/fetch/IFetcher.d.ts +48 -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/font/AdvanceTable.d.ts +16 -42
- package/types/src/font/IFont.d.ts +32 -9
- package/types/src/font/TableFileAdvanceBuilder.d.ts +6 -3
- package/types/src/font/_FontUtils.d.ts +0 -8
- package/types/src/font/_StandIns.d.ts +33 -0
- 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/io/IWorkbookIO.d.ts +3 -3
- package/types/src/io/WorkbookOrigin.d.ts +2 -2
- package/types/src/license/LicenseManager.d.ts +2 -1
- package/types/src/license/_Utils.d.ts +4 -3
- package/types/src/license/details.d.ts +3 -1
- package/types/src/license/keys.d.ts +6 -0
- package/types/src/license/license-key.d.ts +15 -33
- package/types/src/license/token.d.ts +55 -0
- package/types/src/named/INamedCollection.d.ts +36 -0
- package/types/src/named/NamedCollection.d.ts +18 -0
- package/types/src/picture/IPicture.d.ts +45 -0
- package/types/src/picture/Picture.d.ts +12 -0
- package/types/src/pivot/PivotTable.d.ts +0 -7
- package/types/src/primitives/AsyncValue.d.ts +46 -0
- package/types/src/primitives/PrimitiveUtils.d.ts +1 -110
- package/types/src/primitives/Range.d.ts +0 -60
- package/types/src/primitives/ScalarCollation.d.ts +0 -106
- package/types/src/primitives/stats/AggregateStats.d.ts +0 -19
- package/types/src/print/PageLayout.d.ts +0 -6
- package/types/src/reference/ReferenceUtils.d.ts +4 -2
- 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 +52 -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 -109
- package/types/src/sheet/ICellContainerOptions.d.ts +6 -0
- package/types/src/sheet/IWorksheet.d.ts +26 -22
- package/types/src/sheet/NamedCellRange.d.ts +0 -21
- package/types/src/sheet/SheetCell.d.ts +25 -3
- 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 +117 -104
- package/types/src/sheet/_DelimitedText.d.ts +13 -0
- package/types/src/sheet/_IgnoredErrors.d.ts +0 -12
- package/types/src/sheet/_ListenerAnchor.d.ts +7 -1
- package/types/src/sheet/_ScalarListFactory.d.ts +46 -17
- package/types/src/sheet/_SheetCoords.d.ts +0 -7
- package/types/src/sheet/_SheetFilterUtils.d.ts +0 -8
- package/types/src/sheet/_SheetMutations.d.ts +4 -1
- package/types/src/sheet/_SheetStateReader.d.ts +0 -10
- package/types/src/sheet/_SheetStateTypes.d.ts +23 -14
- package/types/src/sheet/_SheetUtils.d.ts +1 -1
- package/types/src/sheet/style/_RowLine.d.ts +32 -0
- package/types/src/sheet/style/_StyleUtils.d.ts +6 -14
- package/types/src/sheetView/_SheetViewUtils.d.ts +0 -1
- package/types/src/slicer/_BuiltInSlicerStyles.d.ts +0 -5
- package/types/src/style/ICellStyle.d.ts +4 -0
- package/types/src/table/AnchoredTable.d.ts +0 -147
- package/types/src/text/TextFrame.d.ts +4 -1
- package/types/src/text/TextStacked.d.ts +0 -24
- package/types/src/text/TextWrapper.d.ts +3 -5
- package/types/src/text/_LineBox.d.ts +24 -0
- package/types/src/text/_TextUtils.d.ts +5 -2
- package/types/src/text/_TextWrapperFallback.d.ts +2 -1
- package/types/src/wasm/sdkWasm.d.ts +1 -1
- package/types/src/workbook/IWorkbook.d.ts +40 -1
- package/types/src/workbook/Workbook.d.ts +25 -13
- package/types/src/workbook/WorkbookRanges.d.ts +1 -1
- package/browser/esm/BGOFfpxr2jPIdqmV.mjs +0 -40
- package/browser/esm/BLoUBId2xZpXAK_H.mjs +0 -698
- package/browser/esm/C5E6zSGAALWf61n4.mjs +0 -199
- package/browser/esm/S2dNNx1a5ydRnARM.mjs +0 -367
- package/browser/esm/f1IoRb7tEb0QmCSt.mjs +0 -110
- package/browser/esm/gssVX_FH1XFN-twD.mjs +0 -210
- package/node/esm/BrCKGFRsX_ezFJ4B.mjs +0 -811
- package/node/esm/DOU54VsOjG-m-NyQ.mjs +0 -210
- package/node/esm/Db0v7zXNnyjBIjjI.mjs +0 -372
- 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,11 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The formula toolkit's code: the parser, the printer, the literal reader and the built-in
|
|
3
|
-
* declarations, behind `FormulaText`, `parseFormulaLiteral` and `FunctionDeclarations`.
|
|
4
|
-
*
|
|
5
|
-
* @remarks
|
|
6
|
-
* Loaded by `FormulaText.load()` and by a calculation's start, never carried from import
|
|
7
|
-
* (DESIGN-CALC-SERVICE §13.25). Only `_FormulaToolkit` imports it.
|
|
8
|
-
*/
|
|
9
1
|
export { parse, transform, imager } from './FormulaTextParser';
|
|
10
2
|
export { readFormulaLiteral } from './FormulaLiteralReader';
|
|
11
3
|
export { getFunctionDeclaration } from './FunctionDeclarationTable';
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { Scalar, ScalarType, InteropScalarType, InteropScalar, IRange
|
|
1
|
+
import { Scalar, ScalarType, InteropScalarType, InteropScalar, IRange } from '@sheetxl/primitives';
|
|
2
2
|
import { Size, Rectangle, Bounds } from '@sheetxl/utils';
|
|
3
3
|
import { ITypes } from '../type';
|
|
4
4
|
import { ITextFrame, TextRotation, TextStacked, IRichText } from '../text';
|
|
5
5
|
import { NumberFormat } from '../numFmt';
|
|
6
6
|
import { ITable } from '../table';
|
|
7
7
|
import { IDataValidation } from '../dataValidation';
|
|
8
|
-
import { IConditionalFormat } from '../conditionalFormat
|
|
8
|
+
import { IConditionalFormat } from '../conditionalFormat';
|
|
9
|
+
import { ICellControl } from '../cellControl';
|
|
9
10
|
import { IHyperlink } from '../hyperlink';
|
|
10
11
|
import { IComment } from '../comment';
|
|
11
12
|
import { ICellStyle } from '../style';
|
|
@@ -143,10 +144,16 @@ export interface ICell {
|
|
|
143
144
|
*/
|
|
144
145
|
getRole(): ICell.Role | null;
|
|
145
146
|
/**
|
|
146
|
-
* Returns the hyperlink
|
|
147
|
+
* Returns the cell's link: the hyperlink set on the cell, else the link its value is.
|
|
147
148
|
*
|
|
148
149
|
* @remarks
|
|
149
|
-
* Returns `null`
|
|
150
|
+
* Returns `null` when the cell has neither.
|
|
151
|
+
*
|
|
152
|
+
* A `HYPERLINK()` result (a {@link Hyperlink} value with an address) is returned as a link with
|
|
153
|
+
* {@link IHyperlink.isReadOnly} `true`; it is not removed or edited as a link, it changes with
|
|
154
|
+
* its formula. A hyperlink set on the cell wins when the cell has both. Excel's
|
|
155
|
+
* `Range.Hyperlinks` and Office Scripts' `Range.getHyperlink()` return nothing for a
|
|
156
|
+
* `HYPERLINK()` cell.
|
|
150
157
|
*/
|
|
151
158
|
getHyperlink(): IHyperlink | null;
|
|
152
159
|
/**
|
|
@@ -291,6 +298,11 @@ export interface ICell {
|
|
|
291
298
|
isTopLeft(): boolean;
|
|
292
299
|
/**
|
|
293
300
|
* Returns the range of the cell if it is a spill cell.
|
|
301
|
+
*
|
|
302
|
+
* @remarks
|
|
303
|
+
* For a blocked spill (a {@link getSpillKind | kind} of `error`, the anchor shows `#SPILL!`) this
|
|
304
|
+
* is the range it would take. It holds none of those cells: their values are whatever is in the
|
|
305
|
+
* way. Spills can overlap, and one that is not blocked is returned ahead of one that is.
|
|
294
306
|
*/
|
|
295
307
|
getSpill(): ICellRange | null;
|
|
296
308
|
/**
|
|
@@ -363,6 +375,14 @@ export interface ICell {
|
|
|
363
375
|
* only lays out text does not need to read this at all.
|
|
364
376
|
*/
|
|
365
377
|
getConditionalDecorations(): Readonly<IConditionalFormat.Decorations>;
|
|
378
|
+
/**
|
|
379
|
+
* Returns the cell's control, such as a checkbox, or `null` when it has none.
|
|
380
|
+
*
|
|
381
|
+
* @remarks
|
|
382
|
+
* A control draws only a value it accepts: ask `getControl()?.isAccepted(getValue())`. A
|
|
383
|
+
* checkbox cell holding `2` has a control and draws `2`.
|
|
384
|
+
*/
|
|
385
|
+
getControl(): ICellControl | null;
|
|
366
386
|
/**
|
|
367
387
|
* If the cell is in a table this will return it.
|
|
368
388
|
*/
|
|
@@ -717,40 +737,10 @@ export declare namespace ICell {
|
|
|
717
737
|
*/
|
|
718
738
|
anchorBounds: Bounds;
|
|
719
739
|
}
|
|
720
|
-
/**
|
|
721
|
-
* Encodings of ScalarType for persistence
|
|
722
|
-
*/
|
|
723
|
-
type JSONScalarType = 'n' | 's' | 'b' | 'e' | 'r' | 'z';
|
|
724
|
-
/**
|
|
725
|
-
* A value encoded as a number with an associated type.
|
|
726
|
-
*/
|
|
727
|
-
interface JSONTypedValue {
|
|
728
|
-
t: JSONScalarType;
|
|
729
|
-
/**
|
|
730
|
-
* The number, string id, error code or boolean flag; for `'r'`, the rich data's own JSON
|
|
731
|
-
* (`IRichData.JSON`), which its registered kind reads back.
|
|
732
|
-
*/
|
|
733
|
-
v: number | IRichData.JSON;
|
|
734
|
-
}
|
|
735
740
|
/**
|
|
736
741
|
* Reexports the `IRange.CellCoords` type for use in cell coordinates.
|
|
737
742
|
*/
|
|
738
743
|
type Coords = IRange.CellCoords;
|
|
739
|
-
/**
|
|
740
|
-
* JSON values types that have their type embedded in the
|
|
741
|
-
* 'format'.
|
|
742
|
-
*
|
|
743
|
-
* @remarks
|
|
744
|
-
* A string value is the string id in the `IStringsCollection`.
|
|
745
|
-
*/
|
|
746
|
-
type JSONUnTypedValue = number | boolean | string;
|
|
747
|
-
/**
|
|
748
|
-
* For persisting a single Cell value and type.
|
|
749
|
-
*
|
|
750
|
-
* @remarks
|
|
751
|
-
* Styling and other advanced properties are stored as ranges.
|
|
752
|
-
*/
|
|
753
|
-
type JSON = JSONUnTypedValue | JSONTypedValue;
|
|
754
744
|
/**
|
|
755
745
|
* Represents the types of content that can be associated with a cell or range.
|
|
756
746
|
*
|
|
@@ -904,12 +894,22 @@ export declare namespace ICell {
|
|
|
904
894
|
readonly LookupShape: "lookupShape";
|
|
905
895
|
/** A reference to another workbook, a deleted reference, or a function a converter could not name. */
|
|
906
896
|
readonly ExternalReference: "externalReference";
|
|
897
|
+
/** A formula that is only an error value, such as `=#DIV/0!`: what a converter leaves when it drops a formula. */
|
|
898
|
+
readonly ErrorConstant: "errorConstant";
|
|
907
899
|
/** A link to another sheet whose target row is labeled other than its own row. */
|
|
908
900
|
readonly LinkLabelMismatch: "linkLabelMismatch";
|
|
909
901
|
/** A lookup keyed by a typed string that labels neither the formula's row nor its column. */
|
|
910
902
|
readonly KeyLabelMismatch: "keyLabelMismatch";
|
|
911
903
|
/** A link read with the other sign from the sheet's other links into the same row. */
|
|
912
904
|
readonly SignVsSiblings: "signVsSiblings";
|
|
905
|
+
/** A number typed into a formula that equals a typed number on the sheet no formula reads. */
|
|
906
|
+
readonly LiteralMatchesInput: "literalMatchesInput";
|
|
907
|
+
/** A formula that differs from its twins on the sheet, the formulas of the same shape, in a typed number. */
|
|
908
|
+
readonly TwinBlockDivergence: "twinBlockDivergence";
|
|
909
|
+
/** A typed number an order of magnitude or more off the numbers typed in its format on the sheet. */
|
|
910
|
+
readonly ScaleOutlier: "scaleOutlier";
|
|
911
|
+
/** A constant typed into a formula — a number, a string or a boolean — and how often the workbook types it. */
|
|
912
|
+
readonly ConstantFrequency: "constantFrequency";
|
|
913
913
|
};
|
|
914
914
|
type ErrorCheck = typeof ErrorCheck[keyof typeof ErrorCheck];
|
|
915
915
|
/**
|
|
@@ -940,9 +940,14 @@ export declare namespace ICell {
|
|
|
940
940
|
* | `approximateMatch` | `function`; `matchType`, `'1'`, `'-1'`, `'TRUE'` or `'omitted'` |
|
|
941
941
|
* | `lookupShape` | `array`, the range the result is read from; `vector`, the range the key is found in |
|
|
942
942
|
* | `externalReference` | `kind` (`'workbook'`, `'deleted'`, `'udf'`); `reference`, or `function` for a `'udf'` |
|
|
943
|
+
* | `errorConstant` | `error`, the error the formula is; `dataTable`, the anchor of a data table that spills less than the block it heads, and `extent`, the rectangle the two cover |
|
|
943
944
|
* | `linkLabelMismatch` | `label` / `labelAt`, the cell's row label; `target` / `targetAt`, the label of the row it links to |
|
|
944
945
|
* | `keyLabelMismatch` | `function`; `key`; `rowLabel` / `rowLabelAt` and `columnLabel` / `columnLabelAt`, where found |
|
|
945
946
|
* | `signVsSiblings` | `reference`; `sign` (`'negative'` / `'positive'`); `siblings`, how many links into that row read the other sign; `siblingAt`, one of them |
|
|
947
|
+
* | `literalMatchesInput` | `literal`, the number as the formula types it; `inputAt`, the nearest typed number of that value no formula reads; `label` / `labelAt`, that input's label, when it has one; `matches`, the places the value is typed unread |
|
|
948
|
+
* | `twinBlockDivergence` | `part` (`'literal'` / `'sign'`); for a literal, `literal` and `expected`, this formula's number and its twins'; for a sign, `term` of `terms`, the term that differs, `references`, how many the shape holds, and `sign`, how this formula adds it; `twins`, how many formulas carry the other side; `twinAt`, one of them |
|
|
949
|
+
* | `scaleOutlier` | `format` (`'percent'`); `times`, the power of ten the value is off by; `typical`, the median of the sheet's typed numbers in that format; `of`, how many there are |
|
|
950
|
+
* | `constantFrequency` | `kind` (`'number'`, `'string'`, `'boolean'`); `value`, a number without its sign; `uses`, the places in the workbook that type it; `of`, the workbook's constant uses |
|
|
946
951
|
*
|
|
947
952
|
* **Runs.** `formula`, `hardcodeInRun` and `styleBreak` are one rule over different layers of
|
|
948
953
|
* the sheet: a region thin against the run it sits in. The cells on both sides agree with each
|
|
@@ -976,26 +981,26 @@ export declare namespace ICell {
|
|
|
976
981
|
* cell with none authored has the Normal style's. `majority` and `of` are evidence, not a
|
|
977
982
|
* gate: a convention held by 3 of 5 cells is reported as such.
|
|
978
983
|
*
|
|
979
|
-
* **Rank** says which finding to read first. It is not a confidence
|
|
980
|
-
*
|
|
981
|
-
*
|
|
982
|
-
*
|
|
983
|
-
*
|
|
984
|
-
*
|
|
985
|
-
*
|
|
986
|
-
*
|
|
987
|
-
*
|
|
988
|
-
*
|
|
989
|
-
*
|
|
990
|
-
*
|
|
991
|
-
*
|
|
992
|
-
*
|
|
993
|
-
* A
|
|
994
|
-
*
|
|
995
|
-
*
|
|
996
|
-
*
|
|
997
|
-
*
|
|
998
|
-
*
|
|
984
|
+
* **Rank** says which finding to read first. It is not a confidence, and it is relative to the
|
|
985
|
+
* workbook: a finding repeated across a model is the author's style, and the one that occurs
|
|
986
|
+
* once is the exception to read first. So a finding's rank can change when another sheet
|
|
987
|
+
* changes. Regions of the `anomalies` feature list highest rank first, and so do a cell's
|
|
988
|
+
* findings, in check order within an equal rank.
|
|
989
|
+
*
|
|
990
|
+
* **Literals and twins.** `literalMatchesInput` reads the numbers typed into a formula against
|
|
991
|
+
* the typed numbers no formula reads: a reference replaced by its value is what left the input
|
|
992
|
+
* unread. Small counts, calendar periods and powers of ten never fire. `twinBlockDivergence`
|
|
993
|
+
* reads formulas of the same shape once references, literals and signs are set aside: twins that
|
|
994
|
+
* divide by `12` and by `365`, or one that adds a term the others take away. Literals compare only
|
|
995
|
+
* when both are a calendar period, a power of ten or a small count. Every side of a divergence is
|
|
996
|
+
* listed, since two wrong rows can outvote the right one.
|
|
997
|
+
*
|
|
998
|
+
* A sign divergence ranks low: signs differ between line items by design, so it is read when
|
|
999
|
+
* asked for by check.
|
|
1000
|
+
*
|
|
1001
|
+
* `constantFrequency` reports every constant a formula types, the common ones too, with how many
|
|
1002
|
+
* places in the workbook type it (`uses`) and of how many constant uses (`of`). The rarer the
|
|
1003
|
+
* constant, the higher it ranks. A finding's `uses` and `of` change when another sheet changes.
|
|
999
1004
|
*
|
|
1000
1005
|
* A label's position is absolute (`R12C3`), since it stays put whichever cell of a region reads
|
|
1001
1006
|
* it; its text is the one read at the region's first cell.
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { IRange, Scalar } from '@sheetxl/primitives';
|
|
2
|
+
import { IListener } from '../listener';
|
|
3
|
+
import { Anchored } from '../anchored/Anchored';
|
|
4
|
+
import { AbstractAnchored } from '../anchored/AbstractAnchored';
|
|
5
|
+
import { ICellControl } from './ICellControl';
|
|
6
|
+
/**
|
|
7
|
+
* Implementation of {@link ICellControl}.
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* Extends {@link AbstractAnchored} directly: a control has no condition and no formula, so it
|
|
11
|
+
* never subscribes to range events. Its definition is fixed at creation; a different control is a
|
|
12
|
+
* different entry.
|
|
13
|
+
*/
|
|
14
|
+
export declare class CellControl extends AbstractAnchored<State, ICellControl.Events> implements ICellControl {
|
|
15
|
+
/** @internal */
|
|
16
|
+
protected _initialize(options: CellControl.ConstructorOptions): void;
|
|
17
|
+
/** @internal */
|
|
18
|
+
protected _getActionDescription(action: 'delete' | 'initialize' | 'updateListener'): string | null;
|
|
19
|
+
/**
|
|
20
|
+
* Always: a control pins to where it was authored, as a conditional format does.
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
protected _isAnchorAbsolute(): boolean;
|
|
24
|
+
/** @internal */
|
|
25
|
+
protected _processContainerShift(options: Anchored.ShiftOptions): IRange.Coords | null | void;
|
|
26
|
+
/** {@inheritDoc ICellControl.getType} */
|
|
27
|
+
getType(): string;
|
|
28
|
+
/** {@inheritDoc ICellControl.isAccepted} */
|
|
29
|
+
isAccepted(value: Scalar): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Covers `ranges` too, coalesced with what the control already covers. Autofill uses it to grow
|
|
32
|
+
* the template's control rather than mint a twin.
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
_extendRanges(ranges: readonly IRange.Coords[]): void;
|
|
36
|
+
/** {@inheritDoc IListener.ISource.addListeners} */
|
|
37
|
+
addListeners(listeners: ICellControl.IListeners, options?: IListener.Options): IListener.Remove;
|
|
38
|
+
/** {@inheritDoc ICellControl.toJSON} */
|
|
39
|
+
toJSON(): ICellControl.JSON;
|
|
40
|
+
get [Symbol.toStringTag](): string;
|
|
41
|
+
toString(): string;
|
|
42
|
+
/** {@inheritDoc ICellControl.isICellControl} */
|
|
43
|
+
get isICellControl(): true;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Interfaces for creating a {@link CellControl}.
|
|
47
|
+
*/
|
|
48
|
+
export declare namespace CellControl {
|
|
49
|
+
interface ConstructorOptions extends Anchored.ConstructorOptions<ICellControl.JSON> {
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* A frozen copy of `json` with a non-empty `type`.
|
|
53
|
+
*
|
|
54
|
+
* @throws when `json` names no type.
|
|
55
|
+
*/
|
|
56
|
+
function normalizeJSON(json: ICellControl.JSON | null | undefined): Readonly<ICellControl.JSON>;
|
|
57
|
+
/**
|
|
58
|
+
* Whether two controls are the same definition: the same type and the same properties.
|
|
59
|
+
*/
|
|
60
|
+
function isSameJSON(a: Readonly<ICellControl.JSON>, b: Readonly<ICellControl.JSON>): boolean;
|
|
61
|
+
}
|
|
62
|
+
/** @internal */
|
|
63
|
+
interface State extends AbstractAnchored.State {
|
|
64
|
+
json: Readonly<ICellControl.JSON>;
|
|
65
|
+
}
|
|
66
|
+
export {};
|
|
67
|
+
//# sourceMappingURL=CellControl.d.ts.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ICellRanges } from '../cellRange';
|
|
2
|
+
import { ICollection, AbstractCollection } from '../type';
|
|
3
|
+
import { IListener } from '../listener';
|
|
4
|
+
import { ITransaction } from '../transaction';
|
|
5
|
+
import { ICellControlCollection } from './ICellControlCollection';
|
|
6
|
+
import { ICellControl } from './ICellControl';
|
|
7
|
+
/**
|
|
8
|
+
* Implementation for {@link ICellControlCollection}.
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* A front over the sheet's own cell-control state — the sheet keeps the store and the events,
|
|
12
|
+
* this class keeps the API. `onCollectionChange` is the sheet's `onCellControlsChange`, forwarded
|
|
13
|
+
* with this collection as the source.
|
|
14
|
+
*/
|
|
15
|
+
export declare class CellControlCollection extends AbstractCollection<ICellControl, ICellControlCollection.GetItemsOptions> implements ICellControlCollection {
|
|
16
|
+
private _add;
|
|
17
|
+
private _get;
|
|
18
|
+
private _addListeners;
|
|
19
|
+
constructor(add: (address: ICellRanges.Address, control: ICellControl.JSON, options?: ITransaction.OperationOptions) => ICellControl, get: (address: ICellRanges.Address | null | undefined, ignoreHidden?: boolean, fullyContained?: boolean) => ICellControl[], addListeners: (listeners: ICollection.IListeners, options?: IListener.Options) => IListener.Remove);
|
|
20
|
+
/** {@inheritDoc ICellControlCollection.add} */
|
|
21
|
+
add(address: ICellRanges.Address, control: ICellControl.JSON, options?: ITransaction.OperationOptions): ICellControl;
|
|
22
|
+
/** {@inheritDoc AbstractCollection._getItems} */
|
|
23
|
+
protected _getItems(options?: ICellControlCollection.GetItemsOptions): ICellControl[];
|
|
24
|
+
/** {@inheritDoc ICollection.addListeners} */
|
|
25
|
+
addListeners(listeners: ICollection.IListeners, options?: IListener.Options): IListener.Remove;
|
|
26
|
+
/** {@inheritDoc ICellControlCollection.isICellControlCollection} */
|
|
27
|
+
get isICellControlCollection(): true;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=CellControlCollection.d.ts.map
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Scalar } from '@sheetxl/primitives';
|
|
2
|
+
/**
|
|
3
|
+
* What a control type does to the cells it covers: which values it draws.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* The SDK half of a control type. How it looks and how it responds to the pointer and keys belong
|
|
7
|
+
* to the UI, which registers its own renderer under the same `type`.
|
|
8
|
+
*/
|
|
9
|
+
export interface ICellControlKind {
|
|
10
|
+
/**
|
|
11
|
+
* The type this kind is registered under, such as `'checkbox'`.
|
|
12
|
+
*/
|
|
13
|
+
readonly type: string;
|
|
14
|
+
/**
|
|
15
|
+
* The kind's name where a UI lists the kinds that can be inserted, such as `'Rating'`. Plain
|
|
16
|
+
* text; the built-in checkbox takes its name from the command catalog instead.
|
|
17
|
+
*/
|
|
18
|
+
readonly label?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the control draws a cell holding `value`. Any other value draws as text.
|
|
21
|
+
*/
|
|
22
|
+
accepts(value: Scalar): boolean;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Excel's checkbox: draws a boolean or a blank cell, in place of its text.
|
|
26
|
+
*/
|
|
27
|
+
export declare const CheckboxKind: ICellControlKind;
|
|
28
|
+
/**
|
|
29
|
+
* The control types a cell control can have, by type.
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* The built-in types are registered before the registry is first used; a host registers its own
|
|
33
|
+
* the same way. A type nobody has registered still loads and saves, and accepts no value, so its
|
|
34
|
+
* cells draw as text.
|
|
35
|
+
*/
|
|
36
|
+
export declare namespace CellControlRegistry {
|
|
37
|
+
/**
|
|
38
|
+
* Registers a kind. A kind registered again under the same type replaces the earlier one,
|
|
39
|
+
* a built-in included.
|
|
40
|
+
*/
|
|
41
|
+
function register(kind: ICellControlKind): void;
|
|
42
|
+
/** The kind registered for `type`, or `null`. */
|
|
43
|
+
function get(type: string): ICellControlKind | null;
|
|
44
|
+
/** The registered types. */
|
|
45
|
+
function getTypes(): string[];
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=CellControlRegistry.d.ts.map
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { Scalar } from '@sheetxl/primitives';
|
|
2
|
+
import { IAnchored } from '../anchored';
|
|
3
|
+
import { ICellRange } from '../cellRange';
|
|
4
|
+
import { IListener } from '../listener';
|
|
5
|
+
/**
|
|
6
|
+
* A control drawn in the cells of a range, such as a checkbox.
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* A cell control decorates the cell's value; it never holds one. A checkbox draws `TRUE` as
|
|
10
|
+
* checked and `FALSE` or blank as unchecked, and a click writes the boolean into the cell, where
|
|
11
|
+
* formulas read it as any other value. Excel's model is the same: the checkbox is a cell
|
|
12
|
+
* *format*, and *Clear Formats* removes it while the value stays.
|
|
13
|
+
*
|
|
14
|
+
* * A cell has at most one control. One control covers any number of cells, and its ranges
|
|
15
|
+
* shift, split, copy and fill with them.
|
|
16
|
+
* * A control draws only the values its type accepts ({@link isAccepted}). Any other value draws
|
|
17
|
+
* as plain text: a checkbox over `2` or `"true"` draws `2` or `true`, as in Excel.
|
|
18
|
+
* * Most code never needs this interface: {@link ICellRange.setControl} and
|
|
19
|
+
* {@link ICellRange.getControls} stand in for Office Scripts' `Range.setControl` /
|
|
20
|
+
* `getControl`.
|
|
21
|
+
*/
|
|
22
|
+
export interface ICellControl extends IAnchored {
|
|
23
|
+
/**
|
|
24
|
+
* The control's type, such as `'checkbox'`.
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* A type nobody has registered (`CellControlRegistry`) is kept and saved as it was read; it
|
|
28
|
+
* accepts no value, so its cells draw as text.
|
|
29
|
+
*/
|
|
30
|
+
getType(): string;
|
|
31
|
+
/**
|
|
32
|
+
* Returns the first range the control covers.
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* See {@link IAnchored.getRanges} for all of them. To change where a control is, use
|
|
36
|
+
* {@link ICellRange.setControl}.
|
|
37
|
+
*/
|
|
38
|
+
getRange(): ICellRange;
|
|
39
|
+
/**
|
|
40
|
+
* Whether the control draws a cell holding `value`.
|
|
41
|
+
*
|
|
42
|
+
* @remarks
|
|
43
|
+
* A checkbox accepts a boolean or a blank cell. A value it does not accept draws as the cell
|
|
44
|
+
* would without the control.
|
|
45
|
+
*/
|
|
46
|
+
isAccepted(value: Scalar): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Add Listeners.
|
|
49
|
+
*
|
|
50
|
+
* @see
|
|
51
|
+
* {@link IListener.ISource.addListeners}
|
|
52
|
+
*/
|
|
53
|
+
addListeners(listeners: ICellControl.IListeners, options?: IListener.Options): IListener.Remove;
|
|
54
|
+
/**
|
|
55
|
+
* The control as JSON: its `type` and any properties of that type.
|
|
56
|
+
*/
|
|
57
|
+
toJSON(): ICellControl.JSON;
|
|
58
|
+
/**
|
|
59
|
+
* For runtime type checking.
|
|
60
|
+
*/
|
|
61
|
+
readonly isICellControl: true;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* {@inheritDoc ICellControl}
|
|
65
|
+
* @see
|
|
66
|
+
* ### **Interface**
|
|
67
|
+
*
|
|
68
|
+
* {@link ICellControl}
|
|
69
|
+
*
|
|
70
|
+
* **Additional Interfaces**
|
|
71
|
+
* * {@link ICellControlCollection}
|
|
72
|
+
*/
|
|
73
|
+
export declare namespace ICellControl {
|
|
74
|
+
/**
|
|
75
|
+
* A control as JSON: its `type`, and any properties that type defines.
|
|
76
|
+
*
|
|
77
|
+
* @remarks
|
|
78
|
+
* Office Scripts' `CellControl`: `{ type: 'checkbox' }`. A checkbox has no other properties.
|
|
79
|
+
* Office Scripts' `EmptyCellControl` is `null` here.
|
|
80
|
+
*/
|
|
81
|
+
interface JSON {
|
|
82
|
+
/**
|
|
83
|
+
* The control's type, such as `'checkbox'`.
|
|
84
|
+
*/
|
|
85
|
+
type: string;
|
|
86
|
+
/**
|
|
87
|
+
* Properties of the type.
|
|
88
|
+
*/
|
|
89
|
+
[property: string]: unknown;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* IListener for {@link ICellControl} events.
|
|
93
|
+
*/
|
|
94
|
+
interface Events extends IAnchored.Events<ICellControl> {
|
|
95
|
+
}
|
|
96
|
+
interface IListeners extends IListener.Callbacks<ICellControl, ICellControl.Events> {
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=ICellControl.d.ts.map
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { ICellRange, ICellRanges } from '../cellRange';
|
|
2
|
+
import { ICollection } from '../type';
|
|
3
|
+
import { ITransaction } from '../transaction';
|
|
4
|
+
import { ICellControl } from './ICellControl';
|
|
5
|
+
/**
|
|
6
|
+
* Holds a sheet's {@link ICellControl}s.
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* Most code reaches controls through the range instead: {@link ICellRange.setControl} puts a
|
|
10
|
+
* control on cells and {@link ICellRange.getControls} reads it back. The collection is for listing
|
|
11
|
+
* every control, as a task pane does.
|
|
12
|
+
*/
|
|
13
|
+
export interface ICellControlCollection extends ICollection<ICellControl> {
|
|
14
|
+
/**
|
|
15
|
+
* Puts a control on the cells of `address`, replacing their controls, and returns it.
|
|
16
|
+
*
|
|
17
|
+
* @param address The address of the cells. May name several discontiguous ranges.
|
|
18
|
+
* @param control The control, such as `{ type: 'checkbox' }`.
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
* The same write as {@link ICellRange.setControl}, over any address. A cell has at most one
|
|
22
|
+
* control, so the cells leave whatever control they had, and join a control of the same
|
|
23
|
+
* definition when the sheet already has one.
|
|
24
|
+
*/
|
|
25
|
+
add(address: ICellRanges.Address, control: ICellControl.JSON, options?: ITransaction.OperationOptions): ICellControl;
|
|
26
|
+
/**
|
|
27
|
+
* Returns items that match the filter criteria.
|
|
28
|
+
*
|
|
29
|
+
* If no filter criteria is provided, all items will be returned.
|
|
30
|
+
*
|
|
31
|
+
* @param options {@link ICellControlCollection.GetItemsOptions}
|
|
32
|
+
*/
|
|
33
|
+
getItems(options?: ICellControlCollection.GetItemsOptions): ICellControl[];
|
|
34
|
+
/** For runtime type checking. */
|
|
35
|
+
readonly isICellControlCollection: true;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* {@inheritDoc ICellControlCollection}
|
|
39
|
+
* @see
|
|
40
|
+
* ### **Interface**
|
|
41
|
+
*
|
|
42
|
+
* {@link ICellControlCollection}
|
|
43
|
+
*/
|
|
44
|
+
export declare namespace ICellControlCollection {
|
|
45
|
+
/**
|
|
46
|
+
* Options for searching for {@link ICellControl}s.
|
|
47
|
+
*/
|
|
48
|
+
interface GetItemsOptions extends ICollection.GetItemsOptions {
|
|
49
|
+
/**
|
|
50
|
+
* If provided, the search will be limited to items that intersect the range.
|
|
51
|
+
*/
|
|
52
|
+
address?: ICellRange.Address;
|
|
53
|
+
/**
|
|
54
|
+
* Indicate if items that are in hidden headers or marked as hidden should be returned.
|
|
55
|
+
*
|
|
56
|
+
* @defaultValue false
|
|
57
|
+
*/
|
|
58
|
+
ignoreHidden?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Only return items that are completely contained with the search bounds.
|
|
61
|
+
*
|
|
62
|
+
* @defaultValue false
|
|
63
|
+
*/
|
|
64
|
+
fullyContained?: boolean;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=ICellControlCollection.d.ts.map
|