@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
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { IRichData, IRichType, Scalar } from '@sheetxl/primitives';
|
|
2
|
+
import { IResource } from '../resource';
|
|
3
|
+
import { IRichDataKind } from './IRichDataKind';
|
|
4
|
+
/**
|
|
5
|
+
* A picture as a cell value: what `IMAGE()` returns.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* It reads as nothing where a primitive is needed, so `LEN`, `&` and `+` over it are `#VALUE!`,
|
|
9
|
+
* and a reference carries it whole: `=A1` over an image is the image.
|
|
10
|
+
*
|
|
11
|
+
* It holds where the picture comes from and, once they are in, the resource holding its bytes:
|
|
12
|
+
* `IMAGE` adds the picture it fetched, and a picture placed in a cell brings its own. The workbook
|
|
13
|
+
* saves a resource while a value holds it. A value with no resource fetches its source to draw.
|
|
14
|
+
*
|
|
15
|
+
* Immutable.
|
|
16
|
+
*/
|
|
17
|
+
export declare class CellImage implements IRichData {
|
|
18
|
+
/** The name of the kind of every `CellImage` ({@link CellImageKind}). */
|
|
19
|
+
static readonly Type = "image";
|
|
20
|
+
private readonly _source;
|
|
21
|
+
private readonly _altText;
|
|
22
|
+
private readonly _sizing;
|
|
23
|
+
private readonly _height;
|
|
24
|
+
private readonly _width;
|
|
25
|
+
private readonly _resource;
|
|
26
|
+
/**
|
|
27
|
+
* @param source Where the picture comes from: a URL.
|
|
28
|
+
*/
|
|
29
|
+
constructor(source: string, options?: CellImage.Options);
|
|
30
|
+
/** {@inheritDoc IRichData.getKind} */
|
|
31
|
+
getKind(): IRichType;
|
|
32
|
+
/** Where the picture comes from. */
|
|
33
|
+
getSource(): string;
|
|
34
|
+
/** The text that describes the picture, for accessibility, or `null`. */
|
|
35
|
+
getAltText(): string | null;
|
|
36
|
+
/** How the picture is sized in its cell. */
|
|
37
|
+
getSizing(): CellImage.Sizing;
|
|
38
|
+
/** The height in pixels for {@link CellImage.Sizing.Custom}, or `null`. */
|
|
39
|
+
getHeight(): number | null;
|
|
40
|
+
/** The width in pixels for {@link CellImage.Sizing.Custom}, or `null`. */
|
|
41
|
+
getWidth(): number | null;
|
|
42
|
+
/** {@inheritDoc IRichData.getProperty} */
|
|
43
|
+
getProperty(_name: string): Scalar;
|
|
44
|
+
/** {@inheritDoc IRichData.toString} */
|
|
45
|
+
toString(): string;
|
|
46
|
+
/** The resource holding the picture's bytes, or `null` when it has none and fetches its source. */
|
|
47
|
+
getResource(): IResource | null;
|
|
48
|
+
/** {@inheritDoc IRichData.toJSON} */
|
|
49
|
+
toJSON(toResourceId?: IRichData.ToResourceId): IRichData.JSON;
|
|
50
|
+
/** {@inheritDoc IRichData.isIRichData} */
|
|
51
|
+
get isIRichData(): true;
|
|
52
|
+
}
|
|
53
|
+
export declare namespace CellImage {
|
|
54
|
+
/**
|
|
55
|
+
* How a picture sits in its cell: `IMAGE()`'s `sizing` argument.
|
|
56
|
+
*/
|
|
57
|
+
const Sizing: {
|
|
58
|
+
/** Fits inside the cell, keeping its aspect ratio. */
|
|
59
|
+
readonly Fit: 0;
|
|
60
|
+
/** Fills the cell, ignoring its aspect ratio. */
|
|
61
|
+
readonly Fill: 1;
|
|
62
|
+
/** At its own size, which may overflow the cell. */
|
|
63
|
+
readonly Original: 2;
|
|
64
|
+
/** At the height and width given. */
|
|
65
|
+
readonly Custom: 3;
|
|
66
|
+
};
|
|
67
|
+
type Sizing = typeof Sizing[keyof typeof Sizing];
|
|
68
|
+
/** What an image holds besides its source. */
|
|
69
|
+
interface Options {
|
|
70
|
+
altText?: string | null;
|
|
71
|
+
sizing?: Sizing;
|
|
72
|
+
height?: number | null;
|
|
73
|
+
width?: number | null;
|
|
74
|
+
/** The resource holding the picture's bytes. */
|
|
75
|
+
resource?: IResource | null;
|
|
76
|
+
}
|
|
77
|
+
/** The `data` of an image's JSON. */
|
|
78
|
+
interface Data {
|
|
79
|
+
source: string;
|
|
80
|
+
altText?: string;
|
|
81
|
+
sizing?: Sizing;
|
|
82
|
+
height?: number;
|
|
83
|
+
width?: number;
|
|
84
|
+
/** The resource holding the picture's bytes, by the id the file gave it. */
|
|
85
|
+
resId?: number;
|
|
86
|
+
/**
|
|
87
|
+
* The resource itself, in place of `resId`, where a value is made in memory rather than read
|
|
88
|
+
* (`createRichData`, `setValue`).
|
|
89
|
+
*/
|
|
90
|
+
resource?: IResource;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
/** The {@link IRichDataKind} of {@link CellImage}. */
|
|
94
|
+
export declare const CellImageKind: IRichDataKind<CellImage>;
|
|
95
|
+
//# sourceMappingURL=CellImage.d.ts.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { IRichData, IRichType, Scalar } from '@sheetxl/primitives';
|
|
2
|
+
import { IRichDataKind } from './IRichDataKind';
|
|
3
|
+
/**
|
|
4
|
+
* A link as a cell value: what `HYPERLINK()` returns.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* It reads as its friendly name, or as its address when it has none, so `LEN`, `&` and comparison
|
|
8
|
+
* see the text a user sees. A reference carries it whole, so `=A1` and `IF(c, HYPERLINK(...), "")`
|
|
9
|
+
* are links too.
|
|
10
|
+
*
|
|
11
|
+
* This is the link a cell's value is. The link a cell carries beside its value is
|
|
12
|
+
* {@link ICell.getHyperlink}; a cell may have both.
|
|
13
|
+
*
|
|
14
|
+
* Immutable.
|
|
15
|
+
*/
|
|
16
|
+
export declare class Hyperlink implements IRichData {
|
|
17
|
+
/** The name of the kind of every `Hyperlink` ({@link HyperlinkKind}). */
|
|
18
|
+
static readonly Type = "hyperlink";
|
|
19
|
+
private readonly _address;
|
|
20
|
+
private readonly _friendly;
|
|
21
|
+
/**
|
|
22
|
+
* @param address Where the link goes: a URL, a file path, or a location in the workbook
|
|
23
|
+
* (`#Sheet1!A1`). `null` when it is not known until the formula that made the link
|
|
24
|
+
* recalculates (a link read from a file whose address is computed).
|
|
25
|
+
* @param friendly What the cell shows. Omitted, the address.
|
|
26
|
+
*/
|
|
27
|
+
constructor(address: string | null, friendly?: string | number | boolean | null);
|
|
28
|
+
/** From the JSON {@link toJSON} wrote. */
|
|
29
|
+
static fromJSON(json: IRichData.JSON): Hyperlink;
|
|
30
|
+
/** {@inheritDoc IRichData.getKind} */
|
|
31
|
+
getKind(): IRichType;
|
|
32
|
+
/** Where the link goes, or `null` when that is not known yet: the link goes nowhere. */
|
|
33
|
+
getAddress(): string | null;
|
|
34
|
+
/** What the cell shows, or `null` when it shows the address. */
|
|
35
|
+
getFriendlyName(): string | number | boolean | null;
|
|
36
|
+
/** {@inheritDoc IRichData.getProperty} */
|
|
37
|
+
getProperty(_name: string): Scalar;
|
|
38
|
+
/** {@inheritDoc IRichData.toString} */
|
|
39
|
+
toString(): string;
|
|
40
|
+
/** {@inheritDoc IRichData.toPrimitive} */
|
|
41
|
+
toPrimitive(): string | number | boolean;
|
|
42
|
+
/** {@inheritDoc IRichData.toJSON} */
|
|
43
|
+
toJSON(): IRichData.JSON;
|
|
44
|
+
/** {@inheritDoc IRichData.isIRichData} */
|
|
45
|
+
get isIRichData(): true;
|
|
46
|
+
}
|
|
47
|
+
/** The {@link IRichDataKind} of {@link Hyperlink}. */
|
|
48
|
+
export declare const HyperlinkKind: IRichDataKind<Hyperlink>;
|
|
49
|
+
//# sourceMappingURL=Hyperlink.d.ts.map
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { IRichData, IRichType } from '@sheetxl/primitives';
|
|
2
|
+
import { ICollection } from '../type';
|
|
3
|
+
import { IRichDataKind } from './IRichDataKind';
|
|
4
|
+
/**
|
|
5
|
+
* The rich values a workbook's cells hold, interned: a cell run stores a rich value as its id here,
|
|
6
|
+
* as it stores a string as its id in the string collection.
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* Equal values share one id (equal JSON; a resource counts by identity), so recalculating a
|
|
10
|
+
* formula that makes a new but equal value adds nothing. Values are not removed: a save writes only
|
|
11
|
+
* the ones a cell holds.
|
|
12
|
+
*/
|
|
13
|
+
export interface IRichDataCollection extends ICollection<IRichData> {
|
|
14
|
+
/**
|
|
15
|
+
* The id of `value`, added when no equal value is here.
|
|
16
|
+
*
|
|
17
|
+
* @param value A rich value. Never an error: an error is stored by its code.
|
|
18
|
+
*/
|
|
19
|
+
add(value: IRichData): number;
|
|
20
|
+
/**
|
|
21
|
+
* The value for an id, or `null` if not found.
|
|
22
|
+
*
|
|
23
|
+
* @param id The id {@link add} answered.
|
|
24
|
+
*/
|
|
25
|
+
getById(id: number): IRichData | null;
|
|
26
|
+
/**
|
|
27
|
+
* Starts saving or loading the rich values cells name. Scopes begun while one is open share its
|
|
28
|
+
* ids, so a workbook and its sheets agree on them.
|
|
29
|
+
*/
|
|
30
|
+
beginPersist(): IRichDataCollection.IPersistScope;
|
|
31
|
+
/** For runtime type checking. */
|
|
32
|
+
readonly isIRichDataCollection: true;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* {@inheritDoc IRichDataCollection}
|
|
36
|
+
* @see
|
|
37
|
+
* ### **Interface**
|
|
38
|
+
*
|
|
39
|
+
* {@link IRichDataCollection}
|
|
40
|
+
*/
|
|
41
|
+
export declare namespace IRichDataCollection {
|
|
42
|
+
/** A saved rich value: its kind's JSON. */
|
|
43
|
+
type JSON = IRichData.JSON;
|
|
44
|
+
/**
|
|
45
|
+
* One save or load of the rich values cells name. Ids are positions in the saved table, not the
|
|
46
|
+
* collection's own.
|
|
47
|
+
*/
|
|
48
|
+
interface IPersistScope {
|
|
49
|
+
/** The saved id of `value`, added to the table when new. */
|
|
50
|
+
add(value: IRichData): number;
|
|
51
|
+
/** The value a loaded id names, or `null`. */
|
|
52
|
+
at(id: number): IRichData | null;
|
|
53
|
+
/**
|
|
54
|
+
* Loads a saved table: each entry made by its kind, its ids then answered by {@link at}.
|
|
55
|
+
*
|
|
56
|
+
* @param ctx What the values are made for: the workbook's resources, and the file's resource ids.
|
|
57
|
+
* @param kinds The kinds saved with the table ({@link toKindsJSON}), made before the values
|
|
58
|
+
* that name them.
|
|
59
|
+
*/
|
|
60
|
+
fromJSON(json: readonly JSON[] | undefined, ctx: IRichDataKind.Context, kinds?: readonly IRichType.JSON[]): void;
|
|
61
|
+
/**
|
|
62
|
+
* The table, in id order.
|
|
63
|
+
*
|
|
64
|
+
* @param toResourceId The saved id of a resource a value holds.
|
|
65
|
+
*/
|
|
66
|
+
toJSONAsync(toResourceId?: IRichData.ToResourceId): Promise<JSON[]>;
|
|
67
|
+
/**
|
|
68
|
+
* The kinds the table's values name, nested values included, that are not registered in code
|
|
69
|
+
* and so are saved with it.
|
|
70
|
+
*/
|
|
71
|
+
toKindsJSON(): IRichType.JSON[];
|
|
72
|
+
/** Ends the scope. The last to end lets the table go. */
|
|
73
|
+
endPersist(): void;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=IRichDataCollection.d.ts.map
|
|
@@ -1,22 +1,66 @@
|
|
|
1
|
-
import { IRichData } from '@sheetxl/primitives';
|
|
1
|
+
import { IRichData, IRichMeta, IRichType } from '@sheetxl/primitives';
|
|
2
|
+
import { IResource, IResourceCollection } from '../resource';
|
|
3
|
+
import { IStringCollection } from '../string';
|
|
2
4
|
/**
|
|
3
|
-
* A registered kind of rich data:
|
|
5
|
+
* A registered kind of rich data: the {@link IRichType} its values return from `getKind()`, and how
|
|
6
|
+
* a value of it is made from its JSON.
|
|
4
7
|
*
|
|
5
8
|
* @remarks
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
+
* What a value reads as where a primitive or an array is consumed is the value's own answer
|
|
10
|
+
* ({@link IRichData.toPrimitive}, {@link IRichData.toArray}), as `toString()` is; the kind
|
|
11
|
+
* describes values and makes them.
|
|
9
12
|
*
|
|
10
|
-
*
|
|
13
|
+
* Make one with {@link IRichDataKind.create}; register it with {@link RichDataRegistry.register}.
|
|
11
14
|
*/
|
|
12
|
-
export interface IRichDataKind<T extends IRichData = IRichData> {
|
|
15
|
+
export interface IRichDataKind<T extends IRichData = IRichData> extends IRichType {
|
|
13
16
|
/**
|
|
14
|
-
*
|
|
17
|
+
* A value from its JSON, as {@link IRichData.toJSON} wrote it.
|
|
18
|
+
*
|
|
19
|
+
* @param ctx What the value is being made for. Every value is made here, whether it is loaded,
|
|
20
|
+
* written with `setValue`, or returned by a function. `{ type }` alone asks for the kind's
|
|
21
|
+
* default value, which is what a UI inserts.
|
|
15
22
|
*/
|
|
16
|
-
|
|
23
|
+
fromJSON(json: IRichData.JSON, ctx: IRichDataKind.Context): T;
|
|
24
|
+
}
|
|
25
|
+
export declare namespace IRichDataKind {
|
|
17
26
|
/**
|
|
18
|
-
*
|
|
27
|
+
* What a kind can reach while making a value.
|
|
19
28
|
*/
|
|
20
|
-
|
|
29
|
+
interface Context {
|
|
30
|
+
/**
|
|
31
|
+
* Binary resources (image bytes) by id, the store pictures use. `null` when the value is
|
|
32
|
+
* made outside a workbook, as an external link's cached values are.
|
|
33
|
+
*/
|
|
34
|
+
readonly resources: IResourceCollection | null;
|
|
35
|
+
/**
|
|
36
|
+
* The string table the value's cells share. `null` outside a workbook.
|
|
37
|
+
*/
|
|
38
|
+
readonly strings: IStringCollection | null;
|
|
39
|
+
/**
|
|
40
|
+
* The resource a value's JSON names by id, while a file is being read: the id
|
|
41
|
+
* `IRichData.toJSON`'s `toResourceId` gave it. `null` for an id the file does not hold, and
|
|
42
|
+
* always outside a read.
|
|
43
|
+
*/
|
|
44
|
+
fromResourceId?(id: number): IResource | null;
|
|
45
|
+
}
|
|
46
|
+
/** A context with nothing to reach: a value made outside any workbook. */
|
|
47
|
+
const DetachedContext: Context;
|
|
48
|
+
/** What {@link create} makes a kind from. */
|
|
49
|
+
interface Definition<T extends IRichData = IRichData> {
|
|
50
|
+
/** {@inheritDoc IRichType.getName} */
|
|
51
|
+
name: string;
|
|
52
|
+
/** {@inheritDoc IRichType.getLabel} */
|
|
53
|
+
label?: string;
|
|
54
|
+
/** {@inheritDoc IRichType.getProperties} */
|
|
55
|
+
properties?: readonly IRichType.Property[];
|
|
56
|
+
/** {@inheritDoc IRichType.getDisplayProperty} */
|
|
57
|
+
displayProperty?: string | null;
|
|
58
|
+
/** {@inheritDoc IRichType.getMeta} */
|
|
59
|
+
meta?: IRichMeta | null;
|
|
60
|
+
/** {@inheritDoc IRichDataKind.fromJSON} */
|
|
61
|
+
fromJSON(json: IRichData.JSON, ctx: Context): T;
|
|
62
|
+
}
|
|
63
|
+
/** A kind from its definition. The kind is immutable. */
|
|
64
|
+
function create<T extends IRichData>(definition: Definition<T>): IRichDataKind<T>;
|
|
21
65
|
}
|
|
22
66
|
//# sourceMappingURL=IRichDataKind.d.ts.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { IRichData, IRichType, Scalar } from '@sheetxl/primitives';
|
|
2
|
+
import { IRichDataKind } from './IRichDataKind';
|
|
3
|
+
/**
|
|
4
|
+
* An array as one value: what an entity's list property holds ("Leader(s)", "Official
|
|
5
|
+
* language"), and what a cell holding a list holds.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* Its elements are rows of values, any of them rich. It unpacks to them where a range or array is
|
|
9
|
+
* accepted ({@link IRichData.toArray}) and reads as nothing where a primitive is.
|
|
10
|
+
*
|
|
11
|
+
* Immutable.
|
|
12
|
+
*/
|
|
13
|
+
export declare class RichArray implements IRichData {
|
|
14
|
+
/** The name of the kind of every `RichArray` ({@link RichArrayKind}). */
|
|
15
|
+
static readonly Type = "array";
|
|
16
|
+
private readonly _elements;
|
|
17
|
+
/**
|
|
18
|
+
* @param elements The rows. Each row is copied; ragged rows are kept as given.
|
|
19
|
+
*/
|
|
20
|
+
constructor(elements: readonly (readonly Scalar[])[]);
|
|
21
|
+
/** From the JSON {@link toJSON} wrote; nested values are made by their kinds. */
|
|
22
|
+
static fromJSON(json: IRichData.JSON, ctx: IRichDataKind.Context): RichArray;
|
|
23
|
+
/** {@inheritDoc IRichData.getKind} */
|
|
24
|
+
getKind(): IRichType;
|
|
25
|
+
/** The rows. */
|
|
26
|
+
getElements(): readonly (readonly Scalar[])[];
|
|
27
|
+
/** The values the array holds, for walks over nested values. @internal */
|
|
28
|
+
getNestedValues(): readonly Scalar[];
|
|
29
|
+
/** {@inheritDoc IRichData.getProperty} */
|
|
30
|
+
getProperty(_name: string): Scalar;
|
|
31
|
+
/** {@inheritDoc IRichData.toArray} */
|
|
32
|
+
toArray(): Scalar[][];
|
|
33
|
+
/** {@inheritDoc IRichData.toString} */
|
|
34
|
+
toString(): string;
|
|
35
|
+
/** {@inheritDoc IRichData.toJSON} */
|
|
36
|
+
toJSON(toResourceId?: IRichData.ToResourceId): IRichData.JSON;
|
|
37
|
+
/** {@inheritDoc IRichData.isIRichData} */
|
|
38
|
+
get isIRichData(): true;
|
|
39
|
+
}
|
|
40
|
+
/** The {@link IRichDataKind} of {@link RichArray}. */
|
|
41
|
+
export declare const RichArrayKind: IRichDataKind<RichArray>;
|
|
42
|
+
//# sourceMappingURL=RichArray.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IRichData } from '@sheetxl/primitives';
|
|
2
|
+
import { AbstractCollection } from '../type';
|
|
3
|
+
import { IRichDataCollection } from './IRichDataCollection';
|
|
4
|
+
export declare class RichDataCollection extends AbstractCollection<IRichData> implements IRichDataCollection {
|
|
5
|
+
private readonly _byId;
|
|
6
|
+
/** By instance first: one lookup for the cells that share a value. Weak, so a replaced value goes. */
|
|
7
|
+
private readonly _byInstance;
|
|
8
|
+
private readonly _byKey;
|
|
9
|
+
private _persist;
|
|
10
|
+
/** {@inheritDoc IRichDataCollection.add} */
|
|
11
|
+
add(value: IRichData): number;
|
|
12
|
+
/** {@inheritDoc IRichDataCollection.getById} */
|
|
13
|
+
getById(id: number): IRichData | null;
|
|
14
|
+
/** {@inheritDoc ICollection.getCount} */
|
|
15
|
+
getCount(): number;
|
|
16
|
+
/** {@inheritDoc AbstractCollection._getItems} */
|
|
17
|
+
protected _getItems(): IRichData[];
|
|
18
|
+
/** {@inheritDoc IRichDataCollection.beginPersist} */
|
|
19
|
+
beginPersist(): IRichDataCollection.IPersistScope;
|
|
20
|
+
/** {@inheritDoc IRichDataCollection.isIRichDataCollection} */
|
|
21
|
+
get isIRichDataCollection(): true;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=RichDataCollection.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IRichData, Scalar, ScalarType } from '@sheetxl/primitives';
|
|
1
|
+
import { IRichData, IRichType, Scalar, ScalarType } from '@sheetxl/primitives';
|
|
2
2
|
import { IRichDataKind } from './IRichDataKind';
|
|
3
3
|
/**
|
|
4
|
-
* The kinds of rich data a cell can hold, by
|
|
4
|
+
* The kinds of rich data a cell can hold, by type.
|
|
5
5
|
*
|
|
6
6
|
* @remarks
|
|
7
7
|
* A value is made from its JSON by looking its `type` up here; what a value reads as where a
|
|
@@ -12,27 +12,60 @@ import { IRichDataKind } from './IRichDataKind';
|
|
|
12
12
|
*/
|
|
13
13
|
export declare namespace RichDataRegistry {
|
|
14
14
|
/**
|
|
15
|
-
* Registers a kind. A kind registered again under the same name replaces the earlier one
|
|
15
|
+
* Registers a kind. A kind registered again under the same name replaces the earlier one,
|
|
16
|
+
* a built-in included.
|
|
16
17
|
*/
|
|
17
18
|
function register(kind: IRichDataKind<any>): void;
|
|
18
|
-
/**
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
/**
|
|
20
|
+
* The kind named `type`: registered, or defined ({@link RichRecord.defineKind}); `null` when
|
|
21
|
+
* there is none.
|
|
22
|
+
*/
|
|
23
|
+
function get(type: string): IRichDataKind | null;
|
|
24
|
+
/** The kind of `value`, registered or defined, or `null` when it is neither. */
|
|
21
25
|
function kindOf(value: IRichData): IRichDataKind | null;
|
|
22
|
-
/** The registered
|
|
23
|
-
function
|
|
26
|
+
/** The names of the registered kinds. */
|
|
27
|
+
function getTypes(): string[];
|
|
24
28
|
/**
|
|
25
29
|
* A value from its JSON: the registered kind's, or an {@link Unmodeled} one carrying the JSON.
|
|
30
|
+
*
|
|
31
|
+
* @param ctx What the value is made for; omitted, a value made outside any workbook.
|
|
26
32
|
*/
|
|
27
|
-
function fromJSON(json: IRichData.JSON): IRichData;
|
|
33
|
+
function fromJSON(json: IRichData.JSON, ctx?: IRichDataKind.Context): IRichData;
|
|
34
|
+
/**
|
|
35
|
+
* Whether `value` is the JSON of a rich value (`{ type, data? }`), as `setValue` accepts it
|
|
36
|
+
* in place of the value.
|
|
37
|
+
*/
|
|
38
|
+
function isJSON(value: unknown): value is IRichData.JSON;
|
|
28
39
|
/**
|
|
29
40
|
* What `value` reads as where a primitive is consumed ({@link IRichData.toPrimitive}), or
|
|
30
41
|
* `undefined` when it reads as nothing.
|
|
31
42
|
*/
|
|
32
|
-
function toPrimitive(value: IRichData):
|
|
43
|
+
function toPrimitive(value: IRichData): Exclude<Scalar, IRichData | null> | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* The text `value` shows in a cell when it reads as no primitive: the value of its kind's
|
|
46
|
+
* display property ({@link IRichType.getDisplayProperty}), or `null` when the kind names none or
|
|
47
|
+
* the value holds no text there.
|
|
48
|
+
*
|
|
49
|
+
* @remarks
|
|
50
|
+
* Display only: the value still reads as nothing to calculation.
|
|
51
|
+
*/
|
|
52
|
+
function toDisplayText(value: IRichData): string | null;
|
|
53
|
+
/**
|
|
54
|
+
* The text that stands for `value` as a whole, as in the formula bar: its display text
|
|
55
|
+
* ({@link toDisplayText}), else the label its kind was given in parentheses, `(Image)`, else
|
|
56
|
+
* `(Rich Object)`.
|
|
57
|
+
*/
|
|
58
|
+
function toPlaceholderText(value: IRichData): string;
|
|
59
|
+
/**
|
|
60
|
+
* The `ScalarType` `value` lays out as in a cell: its primitive's when it has one (a hyperlink
|
|
61
|
+
* named by a number is a number); `String` when it reads as nothing but shows text (an entity's
|
|
62
|
+
* display string), so it aligns left and spills into empty neighbors; `RichData` when it shows
|
|
63
|
+
* no text (a picture).
|
|
64
|
+
*/
|
|
65
|
+
function layoutTypeOf(value: IRichData): ScalarType;
|
|
33
66
|
/**
|
|
34
|
-
* The `ScalarType` of what `value` reads as: `String`, `Number` or `
|
|
35
|
-
* primitive, `RichData` otherwise.
|
|
67
|
+
* The `ScalarType` of what `value` reads as: `String`, `Number`, `Boolean` or `Error` for a
|
|
68
|
+
* kind with a primitive, `RichData` otherwise.
|
|
36
69
|
*/
|
|
37
70
|
function primitiveTypeOf(value: IRichData): ScalarType;
|
|
38
71
|
/**
|
|
@@ -41,13 +74,18 @@ export declare namespace RichDataRegistry {
|
|
|
41
74
|
*/
|
|
42
75
|
function toArray(value: IRichData): Scalar[][] | null;
|
|
43
76
|
/**
|
|
44
|
-
* A value whose
|
|
77
|
+
* A value whose kind nobody has registered: it carries its JSON as it was read and reads as
|
|
45
78
|
* nothing, so a workbook that holds one saves it unchanged.
|
|
79
|
+
*
|
|
80
|
+
* @remarks
|
|
81
|
+
* Its kind is made from what it holds: named by its JSON's `type`, with a property for each
|
|
82
|
+
* entry of its data.
|
|
46
83
|
*/
|
|
47
84
|
class Unmodeled implements IRichData {
|
|
48
85
|
private readonly _json;
|
|
86
|
+
private _kind;
|
|
49
87
|
constructor(json: IRichData.JSON);
|
|
50
|
-
|
|
88
|
+
getKind(): IRichType;
|
|
51
89
|
getProperty(name: string): Scalar;
|
|
52
90
|
toString(): string;
|
|
53
91
|
toJSON(): IRichData.JSON;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IRichData, Scalar } from '@sheetxl/primitives';
|
|
2
|
+
import { IRichDataKind } from './IRichDataKind';
|
|
3
|
+
/**
|
|
4
|
+
* A value held inside a rich value (a property, an array element) as JSON, and back.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* A primitive is itself; an error is `{ e: code }`; a rich value is its JSON (`{ type, data }`),
|
|
8
|
+
* made again by its kind.
|
|
9
|
+
*
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export declare namespace RichDataValues {
|
|
13
|
+
/** `value` as JSON. A rich value whose JSON is only available asynchronously is `null`. */
|
|
14
|
+
function toJSON(value: Scalar, toResourceId?: IRichData.ToResourceId): unknown;
|
|
15
|
+
/** The value `json` is, as {@link toJSON} wrote it. */
|
|
16
|
+
function fromJSON(json: unknown, ctx: IRichDataKind.Context): Scalar;
|
|
17
|
+
/** Every rich value `value` holds, itself included, depth first. */
|
|
18
|
+
function forEachRich(value: Scalar, visit: (rich: IRichData) => void): void;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=RichDataValues.d.ts.map
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { IRichData, IRichMeta, IRichType, Scalar } from '@sheetxl/primitives';
|
|
2
|
+
import { IRichDataKind } from './IRichDataKind';
|
|
3
|
+
/** A kind's definition without its name: what the name is made from. */
|
|
4
|
+
type Content = Omit<IRichType.JSON, 'name'>;
|
|
5
|
+
/**
|
|
6
|
+
* A value of a kind with no code of its own: a record of properties its kind declares, such as an
|
|
7
|
+
* entity read from a file (a stock, a country).
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* It reads as nothing where a primitive is consumed and shows its kind's display property. A
|
|
11
|
+
* property it holds no value for reads as the kind's default. Its presentation per property is its
|
|
12
|
+
* own where it differs from its kind's ({@link getPropertyMeta}).
|
|
13
|
+
*
|
|
14
|
+
* Immutable. Make its kind with {@link RichRecord.defineKind}.
|
|
15
|
+
*/
|
|
16
|
+
export declare class RichRecord implements IRichData {
|
|
17
|
+
private readonly _kind;
|
|
18
|
+
private readonly _values;
|
|
19
|
+
private readonly _meta;
|
|
20
|
+
/**
|
|
21
|
+
* @param kind The record's kind, from {@link RichRecord.defineKind}.
|
|
22
|
+
* @param values The values it holds, by property name.
|
|
23
|
+
* @param meta Presentation for the properties where it differs from its kind, by property name.
|
|
24
|
+
*/
|
|
25
|
+
constructor(kind: IRichDataKind<RichRecord>, values: Readonly<Record<string, Scalar>>, meta?: Readonly<Record<string, IRichMeta>> | null);
|
|
26
|
+
/** {@inheritDoc IRichData.getKind} */
|
|
27
|
+
getKind(): IRichType;
|
|
28
|
+
/** {@inheritDoc IRichData.getProperty} */
|
|
29
|
+
getProperty(name: string): Scalar;
|
|
30
|
+
/** {@inheritDoc IRichData.getPropertyMeta} */
|
|
31
|
+
getPropertyMeta(name: string): IRichMeta | null;
|
|
32
|
+
/** The values the record holds, by property name: not its kind's defaults. */
|
|
33
|
+
getValues(): Readonly<Record<string, Scalar>>;
|
|
34
|
+
/** The presentation the record gives its own properties, by property name, or `null`. */
|
|
35
|
+
getOwnMeta(): Readonly<Record<string, IRichMeta>> | null;
|
|
36
|
+
/** The values the record holds, for walks over nested values. @internal */
|
|
37
|
+
getNestedValues(): readonly Scalar[];
|
|
38
|
+
/** {@inheritDoc IRichData.toString} */
|
|
39
|
+
toString(): string;
|
|
40
|
+
/** {@inheritDoc IRichData.toJSON} */
|
|
41
|
+
toJSON(toResourceId?: IRichData.ToResourceId): IRichData.JSON;
|
|
42
|
+
/** {@inheritDoc IRichData.isIRichData} */
|
|
43
|
+
get isIRichData(): true;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* {@inheritDoc RichRecord}
|
|
47
|
+
*/
|
|
48
|
+
export declare namespace RichRecord {
|
|
49
|
+
/**
|
|
50
|
+
* The kind for a definition, named `base:digest`: the digest is of the whole definition, so the
|
|
51
|
+
* same definition gets the same kind, and the same name, in every workbook and session.
|
|
52
|
+
*
|
|
53
|
+
* @param base What the name starts with: a family of kinds, such as where they come from.
|
|
54
|
+
* @param definition The kind's properties and presentation.
|
|
55
|
+
*/
|
|
56
|
+
function defineKind(base: string, definition: Content): IRichDataKind<RichRecord>;
|
|
57
|
+
/**
|
|
58
|
+
* The kind a saved definition names. A definition saved by {@link toKindJSON} gives back the same
|
|
59
|
+
* kind as the one it was saved from.
|
|
60
|
+
*/
|
|
61
|
+
function kindFromJSON(json: IRichType.JSON): IRichDataKind<RichRecord>;
|
|
62
|
+
/** The defined kind named `name`, or `null`. */
|
|
63
|
+
function getDefinedKind(name: string): IRichDataKind<RichRecord> | null;
|
|
64
|
+
/** The definition to save for `kind`, or `null` when it is not a defined kind. */
|
|
65
|
+
function toKindJSON(kind: IRichType): IRichType.JSON | null;
|
|
66
|
+
}
|
|
67
|
+
export {};
|
|
68
|
+
//# sourceMappingURL=RichRecord.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IRichData, Scalar } from '@sheetxl/primitives';
|
|
1
|
+
import { IRichData, IRichType, Scalar } from '@sheetxl/primitives';
|
|
2
2
|
import { IRichText } from '../text';
|
|
3
3
|
import { IRichDataKind } from './IRichDataKind';
|
|
4
4
|
/**
|
|
@@ -14,7 +14,7 @@ import { IRichDataKind } from './IRichDataKind';
|
|
|
14
14
|
* {@link ICell.getRichText} or `getValue()`.
|
|
15
15
|
*/
|
|
16
16
|
export declare class RichText implements IRichData {
|
|
17
|
-
/** The
|
|
17
|
+
/** The name of the kind of every `RichText` ({@link RichTextKind}). */
|
|
18
18
|
static readonly Type = "richText";
|
|
19
19
|
private readonly _runs;
|
|
20
20
|
private readonly _text;
|
|
@@ -28,8 +28,8 @@ export declare class RichText implements IRichData {
|
|
|
28
28
|
static from(source: RichText | IRichText.Update): RichText;
|
|
29
29
|
/** From the JSON {@link toJSON} wrote. */
|
|
30
30
|
static fromJSON(json: IRichData.JSON): RichText;
|
|
31
|
-
/** {@inheritDoc IRichData.
|
|
32
|
-
|
|
31
|
+
/** {@inheritDoc IRichData.getKind} */
|
|
32
|
+
getKind(): IRichType;
|
|
33
33
|
/**
|
|
34
34
|
* The runs, in order; each font is what the run sets over the cell's font.
|
|
35
35
|
*/
|
|
@@ -44,7 +44,7 @@ export declare class RichText implements IRichData {
|
|
|
44
44
|
*/
|
|
45
45
|
isFormatted(): boolean;
|
|
46
46
|
/** {@inheritDoc IRichData.getProperty} */
|
|
47
|
-
getProperty(
|
|
47
|
+
getProperty(_name: string): Scalar;
|
|
48
48
|
/** {@inheritDoc IRichData.toString} */
|
|
49
49
|
toString(): string;
|
|
50
50
|
/** {@inheritDoc IRichData.toPrimitive} */
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export * from './IRichDataKind';
|
|
2
|
+
export * from './IRichDataCollection';
|
|
3
|
+
export * from './RichDataCollection';
|
|
2
4
|
export * from './RichDataRegistry';
|
|
3
5
|
export * from './RichText';
|
|
6
|
+
export * from './Hyperlink';
|
|
7
|
+
export * from './CellImage';
|
|
8
|
+
export * from './RichArray';
|
|
9
|
+
export * from './RichRecord';
|
|
4
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,12 +11,28 @@ export interface IArgumentsFrame extends IFunctionArguments {
|
|
|
11
11
|
_setLiftValues(values: any[] | null): void;
|
|
12
12
|
/** @see FunctionArguments._setPrivateArgs */
|
|
13
13
|
_setPrivateArgs(args: any[]): void;
|
|
14
|
+
/** @see FunctionArguments._takeServed */
|
|
15
|
+
_takeServed(): unknown;
|
|
14
16
|
}
|
|
15
17
|
/**
|
|
16
18
|
* Binds the view for a call about to dispatch, and returns it so the lift can point it at its
|
|
17
19
|
* per-cell arguments. Pairs with {@link popArguments} in a `finally`.
|
|
18
20
|
*/
|
|
19
|
-
export declare const pushArguments: (params: IFunction.ParameterTypeJSON[] | null | undefined, variadic: number, suffix: number, args: any[], argsLength: number) => IArgumentsFrame;
|
|
21
|
+
export declare const pushArguments: (params: IFunction.ParameterTypeJSON[] | null | undefined, variadic: number, suffix: number, args: any[], argsLength: number, volatile?: boolean) => IArgumentsFrame;
|
|
20
22
|
/** Ends the call {@link pushArguments} began. */
|
|
21
23
|
export declare const popArguments: () => void;
|
|
24
|
+
/**
|
|
25
|
+
* The declaration of the innermost dispatching call — one object per registered function, so it
|
|
26
|
+
* tells which function is running without the dispatch recording anything — or `null`.
|
|
27
|
+
*/
|
|
28
|
+
export declare const currentDeclaration: () => object | null;
|
|
29
|
+
/** Whether the innermost dispatching call's function declares itself volatile; `false` outside one. */
|
|
30
|
+
export declare const currentIsVolatile: () => boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Tells the innermost dispatching call's frame that its body deferred, and which call it was
|
|
33
|
+
* served (`null` for a new one): what a lift reads back per member (`_takeServed`).
|
|
34
|
+
*/
|
|
35
|
+
export declare const noteServed: (served: {
|
|
36
|
+
readonly latest: unknown;
|
|
37
|
+
} | null) => void;
|
|
22
38
|
//# sourceMappingURL=FunctionArguments.d.ts.map
|
|
@@ -22,6 +22,7 @@ export declare class FunctionCollection extends AbstractCollection<IFunction, IF
|
|
|
22
22
|
private _index;
|
|
23
23
|
/** The read-only and own functions, by name. Dropped with {@link _index}. */
|
|
24
24
|
private _sorted;
|
|
25
|
+
private _stamp;
|
|
25
26
|
constructor(options: ConstructorOptions);
|
|
26
27
|
/** {@inheritDoc AbstractCollection._getItems} */
|
|
27
28
|
protected _getItems(options?: IFunctionCollection.GetItemsOptions): IFunction[];
|
|
@@ -79,6 +80,13 @@ export declare class FunctionCollection extends AbstractCollection<IFunction, IF
|
|
|
79
80
|
beginCommit(options?: string | ITransaction.OperationOptions): ITransaction;
|
|
80
81
|
/** Drops everything derived from the collection's contents. */
|
|
81
82
|
private _invalidate;
|
|
83
|
+
/**
|
|
84
|
+
* @hidden
|
|
85
|
+
* Changes whenever {@link getByName} could answer differently for a registered function, and is
|
|
86
|
+
* unique across collections: a caller holding a resolved function may keep it while the stamp it
|
|
87
|
+
* resolved under is still current.
|
|
88
|
+
*/
|
|
89
|
+
_getStamp(): number;
|
|
82
90
|
private _getState;
|
|
83
91
|
private _beginCommit;
|
|
84
92
|
private _updateState;
|