@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
|
@@ -8,8 +8,10 @@ export type ColorToCSS = (color: string) => string | null;
|
|
|
8
8
|
/**
|
|
9
9
|
* A color as concrete CSS: `#RRGGBB`, or `rgba(r,g,b,a)` when it is not opaque. Never a theme
|
|
10
10
|
* reference, a CSS variable or `light-dark()`.
|
|
11
|
+
*
|
|
12
|
+
* @param darkMode The color as a dark grid draws it (`IColor.toRGBA(true)`).
|
|
11
13
|
*/
|
|
12
|
-
export declare function toConcreteCSS(color: IColor): string;
|
|
14
|
+
export declare function toConcreteCSS(color: IColor, darkMode?: boolean): string;
|
|
13
15
|
/**
|
|
14
16
|
* A fill with each of its colors drawn through `css`: a solid fill's color, a gradient's stops, a
|
|
15
17
|
* pattern's foreground and background. What it does not color (an image, the gradient's geometry,
|
|
@@ -32,8 +32,6 @@ export declare class AdvanceTable implements IFont.AdvanceTable {
|
|
|
32
32
|
private _hinting;
|
|
33
33
|
/** Measures a character the table lacks, per em; see {@link setMeasureMissing}. */
|
|
34
34
|
private _measureMissing;
|
|
35
|
-
/** Excel's row pitch per integer ppem from `first`; set once {@link applyRows} has run. */
|
|
36
|
-
private _rows;
|
|
37
35
|
/** The table in the wasm, built on first ask from this table's data; see {@link native}. */
|
|
38
36
|
private _native;
|
|
39
37
|
/** Per-em advances recorded since the twin was built, written to it on the next ask. */
|
|
@@ -52,19 +50,10 @@ export declare class AdvanceTable implements IFont.AdvanceTable {
|
|
|
52
50
|
* @throws when the format is not one this reads, or the file is for another face.
|
|
53
51
|
*/
|
|
54
52
|
applyHinting(json: AdvanceTable.HintedJSON): void;
|
|
53
|
+
/** {@inheritDoc IFont.AdvanceTable.typoLine} */
|
|
54
|
+
get typoLine(): number | null;
|
|
55
55
|
/** Whether widths are GDI's hinted whole pixels ({@link applyHinting}). */
|
|
56
56
|
get isHinted(): boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Gives the table Excel's own row heights, from the companion `.rows.json` (format
|
|
59
|
-
* `sheetxl-font-rows/1`) captured from Excel: {@link metrics} then reports the pitch Excel
|
|
60
|
-
* autofits a row of this face to at each size. GDI's box plus 2 is Excel's up to about 22 pt
|
|
61
|
-
* and runs under it from there, by a per-font amount no table predicts.
|
|
62
|
-
*
|
|
63
|
-
* @throws when the format is not one this reads, or fewer than two sizes are listed.
|
|
64
|
-
*/
|
|
65
|
-
applyRows(json: AdvanceTable.RowsJSON): void;
|
|
66
|
-
/** Whether row heights are Excel's captured ones ({@link applyRows}). */
|
|
67
|
-
get hasRows(): boolean;
|
|
68
57
|
/** The number of characters with an advance. */
|
|
69
58
|
get size(): number;
|
|
70
59
|
/** The advance of `codepoint` per em, or `undefined` when the table has none. */
|
|
@@ -78,7 +67,7 @@ export declare class AdvanceTable implements IFont.AdvanceTable {
|
|
|
78
67
|
private _record;
|
|
79
68
|
/**
|
|
80
69
|
* This table in the wasm (the binding's `MetricsTable`), for the Rust wrapper to measure from:
|
|
81
|
-
* filled once from the same advances
|
|
70
|
+
* filled once from the same advances and hinted deltas, and kept in step with them
|
|
82
71
|
* afterwards, so the wrapper measures exactly what {@link width} and {@link metrics} do. The
|
|
83
72
|
* table stays the owner; the twin is its view, freed by {@link release}.
|
|
84
73
|
*
|
|
@@ -90,8 +79,8 @@ export declare class AdvanceTable implements IFont.AdvanceTable {
|
|
|
90
79
|
get hasNative(): boolean;
|
|
91
80
|
/**
|
|
92
81
|
* Frees the wasm twin, if there is one; the next {@link native} builds it again. The wasm has
|
|
93
|
-
* no garbage collector, so a table that changes what it would answer ({@link applyHinting}
|
|
94
|
-
*
|
|
82
|
+
* no garbage collector, so a table that changes what it would answer ({@link applyHinting}) or
|
|
83
|
+
* goes out of use lets its twin go here.
|
|
95
84
|
*/
|
|
96
85
|
release(): void;
|
|
97
86
|
private _buildNative;
|
|
@@ -110,7 +99,10 @@ export declare class AdvanceTable implements IFont.AdvanceTable {
|
|
|
110
99
|
width(text: string, px: number, options?: AdvanceTable.WidthOptions): number;
|
|
111
100
|
/** One character's advance in px: hinted whole pixels when the table is hinted. */
|
|
112
101
|
private _advancePx;
|
|
113
|
-
/**
|
|
102
|
+
/**
|
|
103
|
+
* The face's whole-px vertical metrics at `px` pixels per em: GDI's ascent and descent, and a
|
|
104
|
+
* line their sum tall (the win metrics ask for no leading).
|
|
105
|
+
*/
|
|
114
106
|
metrics(px: number): IFont.Metrics;
|
|
115
107
|
/**
|
|
116
108
|
* The underline at `px`: its center's offset above the baseline (negative below) and its
|
|
@@ -158,31 +150,6 @@ export declare namespace AdvanceTable {
|
|
|
158
150
|
*/
|
|
159
151
|
sizes: [number, number[]][];
|
|
160
152
|
}
|
|
161
|
-
/** The `format` of a `.rows.json` this version reads. */
|
|
162
|
-
const ROWS_FORMAT = "sheetxl-font-rows/1";
|
|
163
|
-
/**
|
|
164
|
-
* A captured `.rows.json`, the companion of a `.metrics.json`: Excel's autofit row height for
|
|
165
|
-
* the face, in px at 96 dpi, at every integer ppem from `firstPpem` up to where the row reaches
|
|
166
|
-
* Excel's 409 pt cap (`private-assets/design/rust/tools/capture-excel-row-heights.ps1`).
|
|
167
|
-
*/
|
|
168
|
-
interface RowsJSON {
|
|
169
|
-
format: typeof ROWS_FORMAT;
|
|
170
|
-
family: string;
|
|
171
|
-
weight: number;
|
|
172
|
-
italic: boolean;
|
|
173
|
-
source?: {
|
|
174
|
-
application?: string;
|
|
175
|
-
dpi?: number;
|
|
176
|
-
};
|
|
177
|
-
firstPpem: number;
|
|
178
|
-
/** `pitches[i]` is the pitch at `firstPpem + i`. */
|
|
179
|
-
pitches: number[];
|
|
180
|
-
}
|
|
181
|
-
/** Excel's row pitch per integer ppem, from `first` on. */
|
|
182
|
-
interface RowPitches {
|
|
183
|
-
readonly first: number;
|
|
184
|
-
readonly pitches: readonly number[];
|
|
185
|
-
}
|
|
186
153
|
/** A table's twin in the wasm: the binding's `MetricsTable` (`crates/sheetxl-wasm-sdk`). */
|
|
187
154
|
type Native = InstanceType<SdkWasmExports['MetricsTable']>;
|
|
188
155
|
type Face = IFont.AdvanceTable.Face;
|
|
@@ -195,6 +162,8 @@ export declare namespace AdvanceTable {
|
|
|
195
162
|
ascent: number;
|
|
196
163
|
/** OS/2 `winDescent` per em, positive below the baseline. */
|
|
197
164
|
descent: number;
|
|
165
|
+
/** See {@link IFont.AdvanceTable.typoLine}; absent for a font that does not ask for it. */
|
|
166
|
+
typoLine?: number | null;
|
|
198
167
|
underline?: LineRule | null;
|
|
199
168
|
strikeout?: LineRule | null;
|
|
200
169
|
}
|
|
@@ -217,6 +186,11 @@ export declare namespace AdvanceTable {
|
|
|
217
186
|
unitsPerEm: number;
|
|
218
187
|
winAscent: number;
|
|
219
188
|
winDescent: number;
|
|
189
|
+
/**
|
|
190
|
+
* Typo ascent less descent plus line gap in design units, present only when the font sets
|
|
191
|
+
* `USE_TYPO_METRICS`.
|
|
192
|
+
*/
|
|
193
|
+
typoLine?: number;
|
|
220
194
|
/** `[position, thickness]` in design units. */
|
|
221
195
|
underline?: [number, number];
|
|
222
196
|
/** `[position, thickness]` in design units. */
|
|
@@ -165,9 +165,8 @@ export declare namespace IFont {
|
|
|
165
165
|
readonly strikeThickness?: number;
|
|
166
166
|
readonly italicAngle?: number;
|
|
167
167
|
/**
|
|
168
|
-
* The line pitch in px — what a line of this
|
|
169
|
-
*
|
|
170
|
-
* gridline gutter above and below the font box). Includes {@link lineGap}.
|
|
168
|
+
* The line pitch in px — what a line of this text advances by: {@link ascent} plus
|
|
169
|
+
* {@link descent} plus {@link lineGap}.
|
|
171
170
|
*/
|
|
172
171
|
readonly lineHeight: number;
|
|
173
172
|
/**
|
|
@@ -175,6 +174,7 @@ export declare namespace IFont {
|
|
|
175
174
|
* paints the line as a box (a CSS line box) puts the alphabetic baseline.
|
|
176
175
|
*/
|
|
177
176
|
readonly baseline: number;
|
|
177
|
+
/** The leading in px: the room in {@link lineHeight} beyond the ascent and descent. */
|
|
178
178
|
readonly lineGap: number;
|
|
179
179
|
/**
|
|
180
180
|
* The font's ascent above the baseline in whole px at the measured size — GDI's `tmAscent`,
|
|
@@ -190,9 +190,8 @@ export declare namespace IFont {
|
|
|
190
190
|
*
|
|
191
191
|
* @remarks
|
|
192
192
|
* Advances are per em and vertical metrics follow GDI, so a table measures as Excel does: a
|
|
193
|
-
* shipped face measures GDI's hinted whole pixels
|
|
194
|
-
*
|
|
195
|
-
* made or changed.
|
|
193
|
+
* shipped face measures GDI's hinted whole pixels. Tables are built by the collection from the
|
|
194
|
+
* shipped files or the platform; they are read here, never made or changed.
|
|
196
195
|
*/
|
|
197
196
|
interface AdvanceTable {
|
|
198
197
|
/** The family the table measures, as a style names it. */
|
|
@@ -202,8 +201,12 @@ export declare namespace IFont {
|
|
|
202
201
|
readonly italic: boolean;
|
|
203
202
|
/** Whether widths are GDI's hinted whole pixels. */
|
|
204
203
|
readonly isHinted: boolean;
|
|
205
|
-
/**
|
|
206
|
-
|
|
204
|
+
/**
|
|
205
|
+
* The height of a line per em by the font's typo metrics (ascent less descent plus line gap),
|
|
206
|
+
* for a font that asks for them; `null` otherwise. DirectWrite lays a line out this tall, so
|
|
207
|
+
* Excel's charts do.
|
|
208
|
+
*/
|
|
209
|
+
readonly typoLine: number | null;
|
|
207
210
|
/** The number of characters with an advance. */
|
|
208
211
|
readonly size: number;
|
|
209
212
|
/** The advance of `codepoint` per em, or `undefined` when the table has none. */
|
|
@@ -215,7 +218,10 @@ export declare namespace IFont {
|
|
|
215
218
|
* super/subscript scale, then `letterSpacing` between characters.
|
|
216
219
|
*/
|
|
217
220
|
width(text: string, px: number, options?: AdvanceTable.WidthOptions): number;
|
|
218
|
-
/**
|
|
221
|
+
/**
|
|
222
|
+
* The face's whole-px vertical metrics at `px` pixels per em: GDI's ascent and descent, and a
|
|
223
|
+
* line as tall as the font's own metrics ask.
|
|
224
|
+
*/
|
|
219
225
|
metrics(px: number): Metrics;
|
|
220
226
|
/**
|
|
221
227
|
* The underline at `px`: its center's offset above the baseline (negative below) and its
|
|
@@ -344,6 +350,23 @@ export declare namespace IFont {
|
|
|
344
350
|
* ```
|
|
345
351
|
*/
|
|
346
352
|
function captureTables(bytes: Uint8Array, options?: CaptureOptions): Promise<CapturedFace[]>;
|
|
353
|
+
/**
|
|
354
|
+
* The CSS `font-family` value that paints `family`: the family, then the fonts that stand in for
|
|
355
|
+
* it where it is not installed, then `fallbacks`, each followed by its own stand-ins.
|
|
356
|
+
*
|
|
357
|
+
* A stand-in is the family `family` is measured by and that family's open metric-compatible
|
|
358
|
+
* twins, so text painted on a machine without the original still fits its measurement.
|
|
359
|
+
*
|
|
360
|
+
* @param family The family as a style names it.
|
|
361
|
+
* @param fallbacks Families or CSS generic names to try after it.
|
|
362
|
+
*
|
|
363
|
+
* @example
|
|
364
|
+
* ```ts
|
|
365
|
+
* IFont.toCSSFontFamily('Calibri', ['sans-serif']); // 'Calibri, Carlito, sans-serif'
|
|
366
|
+
* IFont.toCSSFontFamily('Aptos Narrow', ['sans-serif']); // '"Aptos Narrow", "Intos Narrow", Calibri, Carlito, sans-serif'
|
|
367
|
+
* ```
|
|
368
|
+
*/
|
|
369
|
+
function toCSSFontFamily(family: string, fallbacks?: readonly string[] | null): string;
|
|
347
370
|
/**
|
|
348
371
|
* Provides a font-family fallback based on the PANOSE hex string.
|
|
349
372
|
*
|
|
@@ -16,15 +16,18 @@ export declare class TableFileAdvanceBuilder implements AdvanceBuilder {
|
|
|
16
16
|
readonly name = "table-file";
|
|
17
17
|
readonly kind = "table";
|
|
18
18
|
private readonly _base;
|
|
19
|
+
private readonly _companions;
|
|
19
20
|
private readonly _pending;
|
|
20
21
|
/**
|
|
21
22
|
* @param base A base to search after the user resource roots, or `null` for none (the default).
|
|
23
|
+
* @param companions Other files shipped beside a face's tables, by suffix (`.rows.json`): each
|
|
24
|
+
* one found is handed to its reader before the table resolves.
|
|
22
25
|
*/
|
|
23
|
-
constructor(base?: string | null);
|
|
26
|
+
constructor(base?: string | null, companions?: Readonly<Record<string, (json: any) => void>>);
|
|
24
27
|
build(face: AdvanceTable.Face): Promise<AdvanceTable | null>;
|
|
25
28
|
/**
|
|
26
|
-
* Gives `table` the hinted widths of its `.hinted.json` companion and
|
|
27
|
-
*
|
|
29
|
+
* Gives `table` the hinted widths of its `.hinted.json` companion, and hands each other
|
|
30
|
+
* companion the face has to its reader.
|
|
28
31
|
*
|
|
29
32
|
* @returns Whether the table is hinted now.
|
|
30
33
|
*/
|
|
@@ -2,14 +2,6 @@ export declare const DefaultMinFontSize: number;
|
|
|
2
2
|
export declare const DefaultMaxFontSize: number;
|
|
3
3
|
export declare const DefaultMaxFontPrecision: number;
|
|
4
4
|
export declare const DefaultLineHeightMultiplier: number;
|
|
5
|
-
/**
|
|
6
|
-
* Excel's horizontal padding a side for a cell whose font's widest digit is `digitWidth` px: a
|
|
7
|
-
* quarter of that digit, rounded up (2 px at Calibri 11, 17 at Calibri 100, 56 at Arial 300).
|
|
8
|
-
* Exact against Excel's own autofit over 130 cells, Calibri and Arial, 8 to 48 pt
|
|
9
|
-
* (`private-assets/design/rust/tools/sweep-excel-autofit.ps1`), and against the column at which
|
|
10
|
-
* Excel stops showing a number as `#` from 20 to 300 pt (`tools/oracle-excel-overflow.ps1`:
|
|
11
|
-
* content + 2 x this + 1 every time).
|
|
12
|
-
*/
|
|
13
5
|
export declare function defaultHorizontalPadding(digitWidth: number): number;
|
|
14
6
|
export declare function defaultVerticalPadding(_fontSize: number): number;
|
|
15
7
|
/**
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which family measures which, and what paints in its place where it is not installed.
|
|
3
|
+
*
|
|
4
|
+
* Kept free of imports: the measurer (`FontCollection`) and every CSS `font-family` writer read it,
|
|
5
|
+
* so a family's paint stack and the table it is measured by cannot drift apart.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Families measured by another family's table: the metric-compatible twins by the family they
|
|
9
|
+
* twin, the near relations by the closest family we have, and the CSS generic names by a family
|
|
10
|
+
* of their class. A relation is used only when the family has no table of its own: Aptos has
|
|
11
|
+
* one, and is measured as Calibri only where its tables cannot be reached (Aptos Narrow's digits
|
|
12
|
+
* are Calibri's). Calibri Light's digits and line metrics are Calibri's, its letters about 1%
|
|
13
|
+
* narrower.
|
|
14
|
+
*/
|
|
15
|
+
export declare const RELATED: ReadonlyMap<string, string>;
|
|
16
|
+
/**
|
|
17
|
+
* The families that paint in `family`'s place, in order, not including `family` itself: its own
|
|
18
|
+
* open metric twins, then the family it is measured by when its table cannot be reached and that
|
|
19
|
+
* family's twins. Empty for a family measured by nothing but itself or the canvas, and for a CSS
|
|
20
|
+
* generic name.
|
|
21
|
+
*/
|
|
22
|
+
export declare function standInsOf(family: string): readonly string[];
|
|
23
|
+
/**
|
|
24
|
+
* `families` with each one's stand-ins after it, duplicates dropped: the stack a platform paints
|
|
25
|
+
* `families` from.
|
|
26
|
+
*/
|
|
27
|
+
export declare function withStandIns(families: readonly string[]): string[];
|
|
28
|
+
/**
|
|
29
|
+
* A CSS `font-family` value for `family` and its `fallbacks`, each followed by its stand-ins: a
|
|
30
|
+
* generic name bare, every other name quoted when it has more than one word.
|
|
31
|
+
*/
|
|
32
|
+
export declare function toCSSFontFamily(family: string, fallbacks?: readonly string[] | null): string;
|
|
33
|
+
//# sourceMappingURL=_StandIns.d.ts.map
|
|
@@ -57,8 +57,18 @@ export interface IHyperlink {
|
|
|
57
57
|
getTarget(): string;
|
|
58
58
|
/**
|
|
59
59
|
* Removes the link from the cell it is attached to. The cell's text stays.
|
|
60
|
+
*
|
|
61
|
+
* @throws When the link is read-only ({@link isReadOnly}).
|
|
60
62
|
*/
|
|
61
63
|
delete(options?: ITransaction.OperationOptions): void;
|
|
64
|
+
/**
|
|
65
|
+
* Whether the link can only be followed: it is not edited or removed as a link.
|
|
66
|
+
*
|
|
67
|
+
* @remarks
|
|
68
|
+
* A link that is the cell's value (a `HYPERLINK()` result) is read-only; it changes with its
|
|
69
|
+
* formula.
|
|
70
|
+
*/
|
|
71
|
+
isReadOnly(): boolean;
|
|
62
72
|
/**
|
|
63
73
|
* For runtime type checking.
|
|
64
74
|
*/
|
|
@@ -12,7 +12,10 @@ export declare class Hyperlink implements IHyperlink {
|
|
|
12
12
|
protected _p: IHyperlink.Properties;
|
|
13
13
|
protected _r: (address: string, options: ITypes.SelectOptions | null, target: string, features?: string) => Promise<boolean>;
|
|
14
14
|
protected _d: ((options?: ITransaction.OperationOptions) => void) | undefined;
|
|
15
|
-
|
|
15
|
+
protected _readOnly: boolean;
|
|
16
|
+
constructor(textToDisplay: () => string, resolver: (address: string, options: ITypes.SelectOptions | null, target: string, features?: string) => Promise<boolean>, json: IHyperlink.JSON, remover?: (options?: ITransaction.OperationOptions) => void, readOnly?: boolean);
|
|
17
|
+
/** {@inheritDoc IHyperlink.isReadOnly} */
|
|
18
|
+
isReadOnly(): boolean;
|
|
16
19
|
/** {@inheritDoc IHyperlink.delete} */
|
|
17
20
|
delete(options?: ITransaction.OperationOptions): void;
|
|
18
21
|
/** {@inheritDoc IHyperlink.open} */
|
package/types/src/index.d.ts
CHANGED
|
@@ -28,12 +28,12 @@ export * from './hyperlink';
|
|
|
28
28
|
export * from './numFmt';
|
|
29
29
|
export * from './style';
|
|
30
30
|
export * from './resource';
|
|
31
|
+
export * from './fetch';
|
|
31
32
|
export * from './string';
|
|
32
33
|
export * from './richData';
|
|
33
34
|
export * from './anchored';
|
|
34
35
|
export * from './chart';
|
|
35
36
|
export * from './pivot';
|
|
36
|
-
export * from './dataTable';
|
|
37
37
|
export * from './picture';
|
|
38
38
|
export * from './shape';
|
|
39
39
|
export * from './group';
|
|
@@ -51,6 +51,7 @@ export * from './externalBook';
|
|
|
51
51
|
export * from './dataValidation';
|
|
52
52
|
export * from './conditionalFormat';
|
|
53
53
|
export * from './protectedRange';
|
|
54
|
+
export * from './cellControl';
|
|
54
55
|
export * from './slicer';
|
|
55
56
|
export * from './table';
|
|
56
57
|
export { Table } from './table/Table';
|
|
@@ -454,7 +454,7 @@ export declare namespace IWorkbookIO {
|
|
|
454
454
|
* write path both actually ask, use {@link isEncrypted}.
|
|
455
455
|
*
|
|
456
456
|
* Never the password: origins are rendered into logs and REPL output, and ride events and
|
|
457
|
-
* progress callbacks, so a secret has no business here
|
|
457
|
+
* progress callbacks, so a secret has no business here.
|
|
458
458
|
*
|
|
459
459
|
* Use it to show a lock affordance, and to recognise that writing plaintext over it would be a
|
|
460
460
|
* downgrade — {@link IWorkbookIO.WriteOptions.password} makes that refusal explicit.
|
|
@@ -860,8 +860,8 @@ export declare namespace IWorkbookIO {
|
|
|
860
860
|
* - `'auto'` — cached values are trusted; the load pass evaluates a formula cell with no
|
|
861
861
|
* cached value (a repair — Excel always stores one) and refreshes volatiles. Everything is
|
|
862
862
|
* recalculated only when Excel would recalculate on open: the file sets `fullCalcOnLoad`,
|
|
863
|
-
* or for xlsx its `calcId` is missing or older than the Excel build this library
|
|
864
|
-
*
|
|
863
|
+
* or for xlsx its `calcId` is missing or older than the Excel build this library
|
|
864
|
+
* targets. (What this library writes carries one: the source file's, else that
|
|
865
865
|
* build's.) To take the file's values as they are whatever it says — as openpyxl does —
|
|
866
866
|
* pass `'none'`; to always recalculate, `'full'`.
|
|
867
867
|
* - `'full'` — everything is recalculated, whatever the file says.
|
|
@@ -100,12 +100,12 @@ export declare class WorkbookOrigin implements IWorkbookIO.Origin {
|
|
|
100
100
|
* Update what is known about the file in place. Fires `onChange` if anything actually changed.
|
|
101
101
|
*
|
|
102
102
|
* @remarks
|
|
103
|
-
* The **privileged mutation channel**
|
|
103
|
+
* The **privileged mutation channel** for the backing store and the IO layer:
|
|
104
104
|
* the written size, the encryption on disk, the format key a read resolved. Never format handlers,
|
|
105
105
|
* never the model, never chrome.
|
|
106
106
|
*
|
|
107
107
|
* There is no `path`: an origin names one file for its whole life. A save that resolves another
|
|
108
|
-
* destination mints a new origin for it
|
|
108
|
+
* destination mints a new origin for it.
|
|
109
109
|
*/
|
|
110
110
|
update(next: {
|
|
111
111
|
name?: string | null;
|
|
@@ -21,7 +21,8 @@ declare class LM {
|
|
|
21
21
|
private _doPrint;
|
|
22
22
|
private _print;
|
|
23
23
|
/**
|
|
24
|
-
* Return the current license details.
|
|
24
|
+
* Return the current license details. Prints nothing: the license notice is printed when the
|
|
25
|
+
* engine starts under the license (see {@link assertUsable}).
|
|
25
26
|
*/
|
|
26
27
|
getDetails(): Promise<LicenseDetails>;
|
|
27
28
|
/**
|
|
@@ -13,10 +13,11 @@ export declare function getBuildDate(): string;
|
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
15
|
* Every release restamps the date, so a current install never reaches the end of the window;
|
|
16
|
-
* only one that is never updated does.
|
|
17
|
-
* lockfile)
|
|
16
|
+
* only one that is never updated does. Seventy days gives a pinned install (CI, a locked
|
|
17
|
+
* lockfile) over two months before it has to move, and bounds how long any one build can run
|
|
18
|
+
* unlicensed.
|
|
18
19
|
*/
|
|
19
|
-
export declare const EVAL_PERIOD_DAYS =
|
|
20
|
+
export declare const EVAL_PERIOD_DAYS = 70;
|
|
20
21
|
/** When this build's evaluation period ends, or `null` for an unstamped (workspace, test) build. */
|
|
21
22
|
export declare function getEvalPeriodEnd(): Date | null;
|
|
22
23
|
/** Whether this build's evaluation period is over. An unstamped build never expires. */
|
|
@@ -18,7 +18,9 @@ export interface UnlicensedOptions {
|
|
|
18
18
|
*/
|
|
19
19
|
export declare const genUnlicensedDetails: (options: UnlicensedOptions) => LicenseDetails;
|
|
20
20
|
/**
|
|
21
|
-
* The license a key grants on `host`. A key that
|
|
21
|
+
* The license a key grants on `host`. A key that is not a validly signed token is an `invalid`
|
|
22
|
+
* license. A development build checks no signatures, so it accepts keys only in a development
|
|
23
|
+
* environment; deployed anywhere else, it rejects every key.
|
|
22
24
|
*/
|
|
23
25
|
export declare const detailsForKey: (from: string, key: string, host: HostDetails, isDevEnv: boolean) => LicenseDetails;
|
|
24
26
|
//# sourceMappingURL=details.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The public keys this build accepts license tokens from, by key id, or `null` in a development build,
|
|
3
|
+
* where signatures are not checked.
|
|
4
|
+
*/
|
|
5
|
+
export declare function getTrustedKeys(): Readonly<Record<string, string>> | null;
|
|
6
|
+
//# sourceMappingURL=keys.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { LicenseDetails } from './LicenseDetails';
|
|
2
1
|
/**
|
|
3
2
|
* Where a license runs. `browser` is any page (checked against its origin); `server` is any
|
|
4
3
|
* JavaScript runtime outside a browser - Node, Bun, Deno, the CLI, a CI runner (checked against the
|
|
@@ -6,49 +5,33 @@ import { LicenseDetails } from './LicenseDetails';
|
|
|
6
5
|
*/
|
|
7
6
|
export type LicenseRuntime = 'browser' | 'server';
|
|
8
7
|
export declare const LICENSE_RUNTIMES: readonly LicenseRuntime[];
|
|
8
|
+
/** The terms of a verified license token (see `verifyLicenseToken`). */
|
|
9
9
|
export interface Decoded {
|
|
10
|
+
/** The signing key's id. */
|
|
11
|
+
keyId?: string;
|
|
12
|
+
/** The license id, stable across reissues. */
|
|
13
|
+
licenseId?: string;
|
|
10
14
|
licensee?: string | null;
|
|
11
15
|
type?: string;
|
|
16
|
+
/** Issued at, epoch milliseconds. */
|
|
17
|
+
issuedAt?: number;
|
|
18
|
+
/** Expires at, epoch milliseconds. */
|
|
12
19
|
expiry?: number;
|
|
13
20
|
developerCount?: number;
|
|
14
|
-
/** The runtimes the key covers
|
|
21
|
+
/** The runtimes the key covers. */
|
|
15
22
|
runtimes?: LicenseRuntime[];
|
|
23
|
+
/** Licensed origins, `<protocol>://<host>` (see `Origin`). */
|
|
16
24
|
domains?: string[];
|
|
25
|
+
/** Node fingerprint. */
|
|
17
26
|
fingerprint?: string | null;
|
|
27
|
+
/** Number of CPUs (0 = unconstrained). */
|
|
18
28
|
cpuCount?: number;
|
|
29
|
+
/** Memory in GB (0 = unconstrained). */
|
|
19
30
|
memory?: number | null;
|
|
20
|
-
features?: Record<string,
|
|
31
|
+
features?: Record<string, unknown>;
|
|
21
32
|
}
|
|
22
|
-
/**
|
|
23
|
-
* The runtimes a decoded key covers. A key issued before runtimes were explicit covers `browser`
|
|
24
|
-
* when it has origins, and `server` unless its cpu and memory are both 0 (the old browser-only
|
|
25
|
-
* marker).
|
|
26
|
-
*/
|
|
33
|
+
/** The runtimes a decoded key covers. */
|
|
27
34
|
export declare function getRuntimes(decoded: Decoded): LicenseRuntime[];
|
|
28
|
-
export interface LicenseAndKey {
|
|
29
|
-
details: LicenseDetails;
|
|
30
|
-
key: string;
|
|
31
|
-
}
|
|
32
|
-
export interface LicenseKeyDetails {
|
|
33
|
-
licensee: string;
|
|
34
|
-
type?: string | null;
|
|
35
|
-
expiration?: string | null;
|
|
36
|
-
developerCount?: number;
|
|
37
|
-
/**
|
|
38
|
-
* The runtimes the key covers. Defaults to what the other terms imply: `browser` when there are
|
|
39
|
-
* origins, `server` when there is a fingerprint, cpu count or memory.
|
|
40
|
-
*/
|
|
41
|
-
runtimes?: LicenseRuntime[] | null;
|
|
42
|
-
/** Licensed origins, `<protocol>://<host>` each (see `Origin`); a string is comma-separated. */
|
|
43
|
-
domains?: string | string[] | null;
|
|
44
|
-
fingerprint?: string | null;
|
|
45
|
-
cpuCount?: number | null;
|
|
46
|
-
memory?: number | null;
|
|
47
|
-
features?: Record<string, any> | null;
|
|
48
|
-
}
|
|
49
|
-
export declare function rot(text: string, key: number, n?: number): string;
|
|
50
|
-
export declare function deobs(str: string): Decoded;
|
|
51
|
-
export declare function encodeLicenseKey(keyDetails: LicenseKeyDetails): LicenseAndKey;
|
|
52
35
|
export declare function validateDomain(domain: string, allowDomain?: boolean): boolean;
|
|
53
36
|
/**
|
|
54
37
|
* A licensed origin, `<protocol>://<host>`.
|
|
@@ -76,5 +59,4 @@ export declare function validateOrigin(entry: string, allowDomain?: boolean): bo
|
|
|
76
59
|
* them — is covered by `entry`. An entry with no protocol covers nothing.
|
|
77
60
|
*/
|
|
78
61
|
export declare function originMatches(entry: string, protocol: string, hostname: string): boolean;
|
|
79
|
-
export declare function validateFingerprint(fingerprint: string | null): boolean;
|
|
80
62
|
//# sourceMappingURL=license-key.d.ts.map
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Decoded, LicenseRuntime } from './license-key';
|
|
2
|
+
/** The format version every token starts with: `sxl1.<payload>.<signature>`. */
|
|
3
|
+
export declare const LICENSE_TOKEN_PREFIX = "sxl1";
|
|
4
|
+
/**
|
|
5
|
+
* The signed body of a license token. Keys are short because a browser key is served to every
|
|
6
|
+
* visitor and travels in config. There is no email or other personal data.
|
|
7
|
+
*/
|
|
8
|
+
export interface LicenseTokenPayload {
|
|
9
|
+
/** The signing key's id. */
|
|
10
|
+
kid: string;
|
|
11
|
+
/** The license id, stable across reissues. */
|
|
12
|
+
lid: string;
|
|
13
|
+
/** Licensee. */
|
|
14
|
+
l: string;
|
|
15
|
+
/** License type, e.g. `community`, `commercial`. */
|
|
16
|
+
t: string;
|
|
17
|
+
/** The runtimes the license covers. */
|
|
18
|
+
r: LicenseRuntime[];
|
|
19
|
+
/** Licensed origins, `<protocol>://<host>`. */
|
|
20
|
+
d?: string[];
|
|
21
|
+
/** Developer count. */
|
|
22
|
+
dc?: number;
|
|
23
|
+
/** CPU count (0 or absent = unconstrained). */
|
|
24
|
+
cc?: number;
|
|
25
|
+
/** Memory in GB (0 or absent = unconstrained). */
|
|
26
|
+
m?: number;
|
|
27
|
+
/** Node fingerprint. */
|
|
28
|
+
n?: string;
|
|
29
|
+
/** Features. */
|
|
30
|
+
f?: Record<string, unknown>;
|
|
31
|
+
/** Issued at, epoch seconds. */
|
|
32
|
+
iat: number;
|
|
33
|
+
/** Expires at, epoch seconds. */
|
|
34
|
+
exp: number;
|
|
35
|
+
}
|
|
36
|
+
/** Why a token was rejected. The message is shown to the user as the license exception. */
|
|
37
|
+
export declare class LicenseTokenError extends Error {
|
|
38
|
+
constructor(message: string);
|
|
39
|
+
}
|
|
40
|
+
/** Decodes unpadded base64url. */
|
|
41
|
+
export declare function fromBase64Url(text: string): Uint8Array;
|
|
42
|
+
/**
|
|
43
|
+
* Reads a license token without checking its signature. For display and diagnostics only; never
|
|
44
|
+
* grant anything on the result.
|
|
45
|
+
*/
|
|
46
|
+
export declare function readLicenseTokenPayload(token: string): LicenseTokenPayload;
|
|
47
|
+
/**
|
|
48
|
+
* Verifies a license token's signature against the keys this build trusts and returns its terms.
|
|
49
|
+
* Expiry, origin, runtime and hardware are not checked here; `details.ts` checks them against the
|
|
50
|
+
* host. With `trustedKeys` `null` (a development build, see `keys.ts`) the signature is not checked.
|
|
51
|
+
*
|
|
52
|
+
* @throws LicenseTokenError when the token is malformed, signed by an unknown key, or altered.
|
|
53
|
+
*/
|
|
54
|
+
export declare function verifyLicenseToken(token: string, trustedKeys?: Readonly<Record<string, string>> | null): Decoded;
|
|
55
|
+
//# sourceMappingURL=token.d.ts.map
|
|
@@ -78,6 +78,25 @@ export interface INamedCollection extends ICollection<INamed> {
|
|
|
78
78
|
* take the first.
|
|
79
79
|
*/
|
|
80
80
|
getByRanges(ranges: ICellRanges.Address, options?: INamedCollection.GetByRangesOptions): string[];
|
|
81
|
+
/**
|
|
82
|
+
* Deletes the defined names nothing reads, as one operation.
|
|
83
|
+
*
|
|
84
|
+
* @param options `hiddenOnly` limits it to names flagged hidden; `dryRun` counts without deleting.
|
|
85
|
+
* @returns How many names were deleted, or with `dryRun`, would be.
|
|
86
|
+
* @throws `Error` if the names are read-only (a protected workbook structure) and this is not a dry run.
|
|
87
|
+
*
|
|
88
|
+
* @remarks
|
|
89
|
+
* A name is read when a cell formula, a conditional format, a data validation, a chart or another
|
|
90
|
+
* name refers to it — the readers `ICalculation.INamedFormula.getDependents` reports. A name
|
|
91
|
+
* that a kept name's definition mentions is kept too, whether or not anything reads that one.
|
|
92
|
+
* Only defined names are considered; a table is named by the table it belongs to. Excel's built-in
|
|
93
|
+
* names (`_xlnm.Print_Area`, `_xlnm.Print_Titles`, `_xlnm._FilterDatabase`) are read by the sheet
|
|
94
|
+
* itself, not by formulas, and are never removed.
|
|
95
|
+
*
|
|
96
|
+
* One operation, so one undo puts every name back. Asked of a sheet's collection
|
|
97
|
+
* (`IWorksheet.getNames()`), only the names scoped to that sheet are considered.
|
|
98
|
+
*/
|
|
99
|
+
removeUnused(options?: INamedCollection.RemoveUnusedOptions): Promise<number>;
|
|
81
100
|
/**
|
|
82
101
|
* Lookup a named range with a given name.
|
|
83
102
|
*
|
|
@@ -216,6 +235,23 @@ export declare namespace INamedCollection {
|
|
|
216
235
|
*/
|
|
217
236
|
includeHidden?: boolean;
|
|
218
237
|
}
|
|
238
|
+
/**
|
|
239
|
+
* Options for {@link INamedCollection.removeUnused}.
|
|
240
|
+
*/
|
|
241
|
+
interface RemoveUnusedOptions {
|
|
242
|
+
/**
|
|
243
|
+
* Only names flagged hidden — the ones a user cannot see to delete.
|
|
244
|
+
*
|
|
245
|
+
* @defaultValue false
|
|
246
|
+
*/
|
|
247
|
+
hiddenOnly?: boolean;
|
|
248
|
+
/**
|
|
249
|
+
* Count the names that would be deleted, and delete none.
|
|
250
|
+
*
|
|
251
|
+
* @defaultValue false
|
|
252
|
+
*/
|
|
253
|
+
dryRun?: boolean;
|
|
254
|
+
}
|
|
219
255
|
/**
|
|
220
256
|
* Options for {@link INamedCollection.getByRanges}.
|
|
221
257
|
*
|
|
@@ -143,6 +143,14 @@ export declare class NamedCollection extends AbstractCollection<INamed, INamedCo
|
|
|
143
143
|
* {@link _scopedTo}.
|
|
144
144
|
*/
|
|
145
145
|
addFormula(name: string, expression: string, replaceExisting?: boolean): INamed;
|
|
146
|
+
/** {@inheritDoc INamedCollection.removeUnused} */
|
|
147
|
+
removeUnused(options?: INamedCollection.RemoveUnusedOptions): Promise<number>;
|
|
148
|
+
/**
|
|
149
|
+
* {@link removeUnused}, limited to one scope — see {@link _scopedTo}.
|
|
150
|
+
*
|
|
151
|
+
* @param scope The sheet whose names are considered; `undefined` for every scope.
|
|
152
|
+
*/
|
|
153
|
+
_removeUnused(options: INamedCollection.RemoveUnusedOptions | undefined, scope: string | undefined): Promise<number>;
|
|
146
154
|
/** {@link addFormula}, against an explicit `scope` — see {@link _scopedTo}. */
|
|
147
155
|
_addFormula(name: string, expression: string, replaceExisting?: boolean, scope?: string | null): INamed;
|
|
148
156
|
/** {@inheritDoc ITransaction.ITransactional.beginCommit} */
|
|
@@ -249,6 +257,16 @@ export declare namespace NamedCollection {
|
|
|
249
257
|
* nothing to prepare and leaves it undefined.
|
|
250
258
|
*/
|
|
251
259
|
prepareRanges?(items: readonly INamed[]): void;
|
|
260
|
+
/**
|
|
261
|
+
* Backs {@link INamedCollection.removeUnused} for the source that owns defined names.
|
|
262
|
+
*
|
|
263
|
+
* @remarks
|
|
264
|
+
* `scope`, when given, is the sheet whose own names are considered (a sheet's collection);
|
|
265
|
+
* `undefined` considers every scope.
|
|
266
|
+
*/
|
|
267
|
+
removeUnused?(options: INamedCollection.RemoveUnusedOptions & {
|
|
268
|
+
scope?: string;
|
|
269
|
+
}): Promise<number>;
|
|
252
270
|
}
|
|
253
271
|
/**
|
|
254
272
|
* What {@link Source.add} needs to define a name.
|