@sheetxl/sdk 0.8.0-beta.12 → 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/{DwwR3O2sEZApPSTF.mjs → -GEhXGMfNcWmHPby.mjs} +3 -3
- package/browser/esm/{DPhGQLNGmDZwODwJ.mjs → 9WXf_BTKjW1cQisZ.mjs} +94 -94
- package/browser/esm/{CRkYR-siY2C994KV.mjs → B2SgIPPBX0wjzuq8.mjs} +1 -1
- package/browser/esm/{CBYMTDzMf1Vh7pkw.mjs → BC2RwlNwCdRywkoD.mjs} +1 -1
- package/browser/esm/{-Jx-jNHmtIQQfLvK.mjs → BEqhm9xAUPiHUCFv.mjs} +1 -1
- package/browser/esm/BHgqi7KNrl7Vjr0W.mjs +348 -0
- package/browser/esm/{D64dM68B1pKYFzdP.mjs → BJKH0tDRx2FeSWvt.mjs} +2 -2
- package/browser/esm/{DobHLF6VjHr7Xi40.mjs → BTgWtqdQoh2cB6DL.mjs} +1 -1
- package/browser/esm/{CNdjyofiRu6CYOrr.mjs → BVshV1iY3bcUH9_E.mjs} +50 -48
- package/browser/esm/{qO-ujUrgq6H3TQix.mjs → BYQ63XU7JzB4_itX.mjs} +1 -1
- package/browser/esm/{C9u8FUewte5ugUjH.mjs → Bax5aOzQkbHKXW_X.mjs} +725 -716
- package/browser/esm/{Tah7cnFb_HNZdLtj.mjs → BiDGKhtzV6yIy66o.mjs} +3 -3
- package/browser/esm/BmYrWK5OmHRtgyqM.mjs +367 -0
- package/browser/esm/{DgrAuRD2qr2DvFeJ.mjs → BoAlHgjPQ6mxb_oO.mjs} +44 -44
- package/browser/esm/{CUzYuYTTGsChC_kZ.mjs → C0mjTq8lhrX3HiPa.mjs} +2052 -1583
- package/browser/esm/{w6Jea0TiclPrYZ2M.mjs → C5j0IdwtYkWlOftv.mjs} +509 -509
- package/browser/esm/{hCQJcmIzPDxDEv2q.mjs → CL84-iL2QeKlLzo5.mjs} +2 -2
- package/browser/esm/{2mIwPy2D2JUX-9wx.mjs → CLkBe-6n-pStQhnz.mjs} +2 -2
- package/browser/esm/{DZiivy0NmO1Vnyzk.mjs → CPzfhTPX2Y4dHX2p.mjs} +2 -2
- package/browser/esm/{fXWUMDhZ5yMSO629.mjs → CSJuIjYUOE387FIP.mjs} +1 -1
- package/browser/esm/{BIHrHjRGWVlJglcp.mjs → Cdw0mGuoV3IU2LhR.mjs} +2 -2
- package/browser/esm/{yuhcOYw6SHQ-RCm3.mjs → Ced5uyofOWHuL_Jy.mjs} +30 -30
- package/browser/esm/{B3wf5vZCsWfWsDbj.mjs → Ci_LJ4S_GvYX0STI.mjs} +1 -1
- package/browser/esm/{DK899HhWX1HINMC1.mjs → CwygVKP_RXmne5Ot.mjs} +25 -25
- package/browser/esm/{BdCJNawfifyPupCP.mjs → D-mfK0noQrM2jZLT.mjs} +1 -1
- package/browser/esm/{CwOPLXU3-9ZHGyOT.mjs → D9SH_8v3FYCnxOFK.mjs} +1 -1
- package/browser/esm/{D9xNz46kAfXMZzp4.mjs → DPD8fop6az9HZNiK.mjs} +2 -2
- package/browser/esm/{D2RZh0O9neOsyLAE.mjs → DW-MmlgMH87l-_cw.mjs} +69 -48
- package/browser/esm/{DwZCT7DZiiXoTweg.mjs → DctIlUsO78-OU2ht.mjs} +2 -2
- package/browser/esm/DdcKkVb4jM6Y_epY.mjs +184 -0
- package/browser/esm/{Cxjxk0ncRKx80I-w.mjs → DfKzE0IY0TjaEIxG.mjs} +1 -1
- package/browser/esm/{BnC4-27Igwb8oDf2.mjs → DkloMquaR1pbZCER.mjs} +44 -43
- package/browser/esm/{BudSIfXBAsTxvu-K.mjs → Dz86-De57bv2VYIi.mjs} +10111 -9269
- package/browser/esm/{BTFBedJMRWGvZyCE.mjs → HApSgmV2FXRRwQac.mjs} +1 -1
- package/browser/esm/{Bt8_m94tBdks209L.mjs → IbVAQU4YqtFqLwYk.mjs} +1 -1
- package/browser/esm/index.mjs +482 -440
- package/browser/esm/mHQ95RAfxHzcUN2r.mjs +18 -0
- package/browser/esm/{CdEO8CEee6lEhabA.mjs → pm00uZZu_H3gxHFx.mjs} +2 -2
- package/browser/esm/{Bg5Di9GLNAkbqQ1P.mjs → quEvwgrEuOb0h3q-.mjs} +1926 -1298
- package/browser/esm/{CndRBvVfQUJIYRRj.mjs → zZngLMg6mg6nnNGX.mjs} +50 -50
- package/licenses/dependencies.txt +71 -1
- package/node/esm/{C14-R6tifRh7pc0p.mjs → -K4Cek-bTUItkB_8.mjs} +1 -1
- package/node/esm/{D3ptRKzASqBut1DE.mjs → -b8yNV4v9qiq8EMY.mjs} +2 -2
- package/node/esm/{CBuEu5Jk-LfaDy-H.mjs → 1V-m67YHbxmg3xk2.mjs} +44 -44
- package/node/esm/{DhTya_mhmN53vskv.mjs → 4ROAfJC1mokmqubv.mjs} +1 -1
- package/node/esm/B89et7t3uRmtxk4v.mjs +115 -0
- package/node/esm/BKBkCBNGhMU0nQdY.mjs +372 -0
- package/node/esm/{Vocy-I9dKzZMr0Ct.mjs → BQ2XqExomMceAjfe.mjs} +10977 -10744
- package/node/esm/{Btw4148Ot8ifhNc1.mjs → Bfg7qjCXCwXbzW3K.mjs} +1 -1
- package/node/esm/{BNXLOEddJ6O9gYws.mjs → BtMeAB_dqJnOfzJM.mjs} +2 -2
- package/node/esm/{Q_S1g46ZOTrdhTae.mjs → Byc_bxU_MdjYtt0x.mjs} +1 -1
- package/node/esm/{Ci_zLYmCD7e-C79O.mjs → Bzrl292TNCK3Cpid.mjs} +1 -1
- package/node/esm/{DdoiuKg9BKubtF1V.mjs → C0P9zspoypRAj7yv.mjs} +1 -1
- package/node/esm/{C_aL7CGS1lrNn1Ng.mjs → C9gpMN3galHGZyoK.mjs} +1 -1
- package/node/esm/CKCG2peOkTq0gIIW.mjs +310 -0
- package/node/esm/{C99zzq8DImQXi4BQ.mjs → CWBS90g3Hz-kQDkY.mjs} +10 -10
- package/node/esm/{BskP3b8vUoIOGLY6.mjs → CoGSVnn-hNMtTEus.mjs} +2 -2
- package/node/esm/{DhS6yWjrrSNIJMsn.mjs → CzrLqStvrcPE2-hb.mjs} +234 -225
- package/node/esm/{CRt3vXe6YmXzqk3H.mjs → D16EdlZG1hX5WUUK.mjs} +102 -102
- package/node/esm/{DUTmDHbFbhLDT4F3.mjs → D1mDga2K5sjs8y07.mjs} +1 -1
- package/node/esm/{D4ROK9UwDpS6jO3Z.mjs → D2jtztjE6c23RKvZ.mjs} +1 -1
- package/node/esm/{icn2nX5Z8e_3mNAv.mjs → D9nRcWsYk3M82iD8.mjs} +1 -1
- package/node/esm/{CG-qBU5BAaVz7e-P.mjs → DALYzTxZ9Ur9C69Q.mjs} +1 -1
- package/node/esm/{DrCf6ITcBhVOFpRj.mjs → DF0nL7s01dp7n0Bx.mjs} +7 -7
- package/node/esm/{BL2iiEoqxDEV2Xrg.mjs → DO5ldLqhTvIfPXLW.mjs} +3348 -2610
- package/node/esm/DQz8J8ci7EJdqbuB.mjs +351 -0
- package/node/esm/{CiIymQN6aJCul62g.mjs → DR2OQTKqqyIkZnse.mjs} +9 -9
- package/node/esm/{eimUGjiIP-b8HiM6.mjs → DSTLPBgpsGW6qP9e.mjs} +52 -52
- package/node/esm/{DV5CU37aEbFbWFL0.mjs → DiXp7KSOZUSWXaZ5.mjs} +1 -1
- package/node/esm/{C_xf5Bz30VqiJjXn.mjs → DwvXHsycOQR219c7.mjs} +1 -1
- package/node/esm/{B-HUPAcqvK0eeeCz.mjs → Hc6B04OyVzHx2F5I.mjs} +38 -37
- package/node/esm/{lGJ42sHqg5if2bba.mjs → NkPNHsq2T3DXg76x.mjs} +458 -458
- package/node/esm/{-TA0MneBDKdGhsib.mjs → Nl_IIkO1jbk0s9i-.mjs} +3329 -2852
- package/node/esm/{DxazKtROyaI51dWl.mjs → OQT5lGqq8a4r5xNa.mjs} +1 -1
- package/node/esm/OTaaFGhF-k_iwobp.mjs +18 -0
- package/node/esm/{pYtP7wPyS96NQyXS.mjs → Z1elC_roIu7LhceZ.mjs} +25 -25
- package/node/esm/{CkRYLed8Mmn3giNg.mjs → e3F3OVXCxLJrSukW.mjs} +2 -2
- package/node/esm/index.mjs +584 -540
- package/node/esm/{D8hO07ToAibIuniw.mjs → suOBVUz-pca6ilJH.mjs} +138 -136
- 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 +4 -0
- package/resources/locales/en/model.msg.json +4 -0
- package/types/scripting-api.json +9339 -9320
- package/types/scripting.d.ts +322 -200
- 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/anomalies/_FocusTable.d.ts +0 -6
- package/types/src/calculation/Calculation.d.ts +20 -95
- package/types/src/calculation/ExternalBookBindings.d.ts +0 -26
- package/types/src/calculation/NamedFormulaCollection.d.ts +6 -2
- 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 +0 -13
- 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 +0 -52
- package/types/src/calculation/engine/CalcBackend.d.ts +15 -157
- package/types/src/calculation/engine/index.d.ts +0 -8
- package/types/src/calculation/executor/CalcExecutor.d.ts +13 -130
- package/types/src/calculation/executor/CalcExecutorUtils.d.ts +30 -11
- 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 +0 -19
- package/types/src/calculation/formula/FormulaBlock.d.ts +0 -28
- package/types/src/calculation/formula/FormulaRecordView.d.ts +0 -15
- package/types/src/calculation/formula/IFormulaBlock.d.ts +0 -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/grid/CalcGrid.d.ts +5 -59
- package/types/src/calculation/grid/CalcGridBackend.d.ts +8 -9
- package/types/src/calculation/grid/CalcGridProxy.d.ts +0 -13
- package/types/src/calculation/grid/CalcGridUtils.d.ts +18 -22
- package/types/src/calculation/grid/ICalcGrid.d.ts +13 -98
- package/types/src/calculation/grid/_CalcRequest.d.ts +1 -29
- package/types/src/calculation/spatial/CircularEntry.d.ts +0 -10
- package/types/src/calculation/spatial/FormulaSpatialValue.d.ts +52 -82
- package/types/src/calculation/spatial/SpillEntry.d.ts +10 -7
- package/types/src/calculation/state/CalcScope.d.ts +0 -9
- package/types/src/calculation/state/CalcState.d.ts +0 -12
- package/types/src/calculation/state/CalculationContext.d.ts +4 -37
- package/types/src/calculation/state/DeferredCalls.d.ts +11 -64
- package/types/src/calculation/state/IContextContainer.d.ts +4 -60
- package/types/src/calculation/state/_KeepBlanks.d.ts +5 -0
- package/types/src/calculation/state/_PendingOverlayGrid.d.ts +46 -33
- package/types/src/calculation/state/_WhatIfLayer.d.ts +0 -14
- 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 +14 -28
- package/types/src/cellRange/ICellRange.d.ts +22 -11
- 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/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 +0 -19
- package/types/src/chart/resolve/_ResolvedChart.d.ts +0 -6
- 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 +1 -23
- 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 +13 -14
- package/types/src/fetch/IFetcher.d.ts +2 -1
- package/types/src/fetch/_WorkbookFetch.d.ts +1 -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/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/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 +0 -12
- 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/richData/RichDataRegistry.d.ts +6 -0
- package/types/src/scripting/TypedFunction.d.ts +0 -109
- package/types/src/sheet/IWorksheet.d.ts +2 -5
- package/types/src/sheet/NamedCellRange.d.ts +0 -21
- package/types/src/sheet/SheetCell.d.ts +8 -2
- package/types/src/sheet/Worksheet.d.ts +7 -48
- package/types/src/sheet/_DelimitedText.d.ts +13 -0
- package/types/src/sheet/_IgnoredErrors.d.ts +0 -12
- package/types/src/sheet/_ScalarListFactory.d.ts +0 -19
- package/types/src/sheet/_SheetCoords.d.ts +0 -7
- package/types/src/sheet/_SheetFilterUtils.d.ts +0 -8
- package/types/src/sheet/_SheetStateReader.d.ts +0 -10
- package/types/src/sheet/_SheetStateTypes.d.ts +0 -3
- 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/Workbook.d.ts +0 -10
- package/browser/esm/2WuhYrIpYmOR5H73.mjs +0 -698
- package/browser/esm/CTe2qfmIUEad6FJv.mjs +0 -199
- package/browser/esm/CfRqiPDg6RBTg1EN.mjs +0 -367
- package/browser/esm/DVroRnhi-5IDXNgM.mjs +0 -210
- package/node/esm/BSvOluusoDM4z_dx.mjs +0 -811
- package/node/esm/CPI58duc0j0a-HpJ.mjs +0 -115
- package/node/esm/DggQ23jKMpwhENfa.mjs +0 -372
- package/node/esm/Dn1M7YWi25DeeYUb.mjs +0 -210
- package/node/esm/ZXPFcsT2zrALCZux.mjs +0 -289
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.13
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
import { t as e } from "./BTgWtqdQoh2cB6DL.mjs";
|
|
8
|
+
import { D as t, E as n, T as r, _ as i, a, c as o, d as s, h as c, i as l, k as u, m as d, r as f, u as p, ut as m } from "./quEvwgrEuOb0h3q-.mjs";
|
|
9
|
+
import { ExpectedError as h, messageKey as g } from "@sheetxl/utils";
|
|
10
|
+
var _ = Object.freeze({}), v = /^(line|lineInv|straightConnector\d|bentConnector\d|curvedConnector\d)$/, y = () => {}, b = class extends e {
|
|
11
|
+
constructor(e) {
|
|
12
|
+
super(e), this._textSource = null, this._textFrame = null, this._resources = null, this._connectorFormat = null, this._style = null, this._drawn = null, this._drawnPending = null, this._getStyles = e.getStyles ?? null, e.json && (this._updateState({ data: e.json }), this._resources = D(e.json, e.fromResourceId));
|
|
13
|
+
}
|
|
14
|
+
_processAfterStateChange(e, t) {
|
|
15
|
+
super._processAfterStateChange(e, t), i();
|
|
16
|
+
}
|
|
17
|
+
getResource(e) {
|
|
18
|
+
return this._resources?.get(e) ?? null;
|
|
19
|
+
}
|
|
20
|
+
getType() {
|
|
21
|
+
return "shape";
|
|
22
|
+
}
|
|
23
|
+
getShapeType() {
|
|
24
|
+
let e = this._getState()?.data?.geometry;
|
|
25
|
+
return typeof e == "string" ? e : e ? "custom" : "rect";
|
|
26
|
+
}
|
|
27
|
+
setShapeType(e, t) {
|
|
28
|
+
let n = t?.description ?? g("op.setShapeType");
|
|
29
|
+
if (this._protectionCheck(n), !e || typeof e != "string" || e === "custom") throw new h(`Invalid shape type: ${e}.`);
|
|
30
|
+
if (this.isConnector() !== v.test(e)) throw new h(this.isConnector() ? "A line or connector cannot be changed to another shape." : "A shape cannot be changed to a line or connector.");
|
|
31
|
+
let r = {
|
|
32
|
+
...this._getState()?.data ?? {},
|
|
33
|
+
geometry: e
|
|
34
|
+
};
|
|
35
|
+
delete r.adjustments;
|
|
36
|
+
let i = this._beginCommit(n);
|
|
37
|
+
try {
|
|
38
|
+
this._updateState({ data: r }, {
|
|
39
|
+
...t,
|
|
40
|
+
description: n
|
|
41
|
+
}, ["onAnyChange"]), this._notifyPlacementChange(), i.commit();
|
|
42
|
+
} catch (e) {
|
|
43
|
+
throw i.rollback(), e;
|
|
44
|
+
}
|
|
45
|
+
return this;
|
|
46
|
+
}
|
|
47
|
+
getTextFrame() {
|
|
48
|
+
let e = this._getState()?.data ?? null;
|
|
49
|
+
if (e === this._textSource) return this._textFrame;
|
|
50
|
+
let t = T(e);
|
|
51
|
+
return this._textSource = e, this._textFrame = t === null ? null : Object.freeze({ getText: () => t }), this._textFrame;
|
|
52
|
+
}
|
|
53
|
+
getStyle() {
|
|
54
|
+
return this._style ? this._style : this._style = new r({
|
|
55
|
+
getData: () => this._getState()?.data ?? null,
|
|
56
|
+
getStyles: () => this._getStyles?.() ?? null,
|
|
57
|
+
getTheme: () => this._theme(),
|
|
58
|
+
getMovable: () => this.getMovable(),
|
|
59
|
+
getResource: (e) => this.getResource(e),
|
|
60
|
+
write: (e, t) => this._writeStyle(e, t)
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
_writeStyle(e, t) {
|
|
64
|
+
let n = t.description ?? g("op.setShapeStyle");
|
|
65
|
+
this._protectionCheck(n);
|
|
66
|
+
let r = { ...this._getState()?.data ?? {} };
|
|
67
|
+
for (let t of Object.keys(e)) {
|
|
68
|
+
let n = e[t];
|
|
69
|
+
n === void 0 ? delete r[t] : r[t] = n;
|
|
70
|
+
}
|
|
71
|
+
this._updateState({ data: r }, {
|
|
72
|
+
...t,
|
|
73
|
+
description: n
|
|
74
|
+
}, ["onAnyChange"]);
|
|
75
|
+
}
|
|
76
|
+
getAdjustments() {
|
|
77
|
+
return this._getState()?.data?.adjustments ?? _;
|
|
78
|
+
}
|
|
79
|
+
setAdjustments(e, t) {
|
|
80
|
+
let n = t?.description ?? g("op.setShapeAdjustments");
|
|
81
|
+
this._protectionCheck(n);
|
|
82
|
+
let r = { ...this._getState()?.data ?? {} };
|
|
83
|
+
e && Object.keys(e).length > 0 ? r.adjustments = { ...e } : delete r.adjustments;
|
|
84
|
+
let i = this._beginCommit(n);
|
|
85
|
+
try {
|
|
86
|
+
this._updateState({ data: r }, {
|
|
87
|
+
...t,
|
|
88
|
+
description: n
|
|
89
|
+
}, ["onAnyChange"]), this._notifyPlacementChange(), i.commit();
|
|
90
|
+
} catch (e) {
|
|
91
|
+
throw i.rollback(), e;
|
|
92
|
+
}
|
|
93
|
+
return this;
|
|
94
|
+
}
|
|
95
|
+
_setRoute(e, t) {
|
|
96
|
+
let n = {
|
|
97
|
+
...this._getState()?.data ?? {},
|
|
98
|
+
geometry: e
|
|
99
|
+
};
|
|
100
|
+
t ? n.adjustments = { ...t } : delete n.adjustments, this._updateState({ data: n }, { description: g("op.setShapeAdjustments") }, ["onAnyChange"]);
|
|
101
|
+
}
|
|
102
|
+
isConnector() {
|
|
103
|
+
return this._getState()?.data?.type === u.Type.Connector;
|
|
104
|
+
}
|
|
105
|
+
getConnectorFormat() {
|
|
106
|
+
return this.isConnector() ? (this._connectorFormat ??= new x(this), this._connectorFormat) : null;
|
|
107
|
+
}
|
|
108
|
+
async getConnectionSiteCount() {
|
|
109
|
+
let e = await this.getGeometry(), t = 0;
|
|
110
|
+
return e?.forEachConnection(() => {
|
|
111
|
+
t++;
|
|
112
|
+
}), t;
|
|
113
|
+
}
|
|
114
|
+
_connectedEnd(e) {
|
|
115
|
+
return (this._getState()?.data)?.connectorEnds?.[e] ?? null;
|
|
116
|
+
}
|
|
117
|
+
_connectedMovable(e) {
|
|
118
|
+
let t = this._connectedEnd(e), n = this.getMovable()?.getRange().getWorksheet() ?? null;
|
|
119
|
+
return t && n ? l(n, t.id) : null;
|
|
120
|
+
}
|
|
121
|
+
_connect(e, t, n, r) {
|
|
122
|
+
let i = r?.description ?? g("op.connectShape");
|
|
123
|
+
this._protectionCheck(i);
|
|
124
|
+
let o = this.getMovable(), c = o?.getRange().getWorksheet() ?? null;
|
|
125
|
+
if (!o || !c) throw new h("A connector is glued on a sheet.");
|
|
126
|
+
if (t === o) throw new h("A connector cannot be glued to itself.");
|
|
127
|
+
if (t.getRange().getWorksheet() !== c) throw new h("A connector is glued to a movable on the same sheet.");
|
|
128
|
+
if (!(Number.isInteger(n) && n >= 0)) throw new h(`Invalid connection site: ${n}.`);
|
|
129
|
+
let l = this._beginCommit(i);
|
|
130
|
+
try {
|
|
131
|
+
let u = {
|
|
132
|
+
id: f(t, () => s(c)),
|
|
133
|
+
index: n
|
|
134
|
+
};
|
|
135
|
+
this._writeEnd(e, u, {
|
|
136
|
+
...r,
|
|
137
|
+
description: i
|
|
138
|
+
});
|
|
139
|
+
let d = () => {
|
|
140
|
+
this.isDeleted() || o.isDeleted() || this._amend(() => a(c, o, d));
|
|
141
|
+
};
|
|
142
|
+
a(c, o, d), l.commit();
|
|
143
|
+
} catch (e) {
|
|
144
|
+
throw l.rollback(), e;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
_disconnect(e, t) {
|
|
148
|
+
let n = t?.description ?? g("op.connectShape");
|
|
149
|
+
this._protectionCheck(n), this._connectedEnd(e) && this._writeEnd(e, null, {
|
|
150
|
+
...t,
|
|
151
|
+
description: n
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
_writeEnd(e, t, n) {
|
|
155
|
+
let r = { ...this._getState()?.data ?? {} }, i = { ...r.connectorEnds };
|
|
156
|
+
t ? i[e] = t : delete i[e], i.start || i.end ? r.connectorEnds = i : delete r.connectorEnds, this._updateState({ data: r }, n, ["onAnyChange"]);
|
|
157
|
+
}
|
|
158
|
+
_notifyPlacementChange() {
|
|
159
|
+
this.getMovable()?._notifyPlacementChange?.();
|
|
160
|
+
}
|
|
161
|
+
_amend(e) {
|
|
162
|
+
let t = this._transactions;
|
|
163
|
+
return t.amend(t.getCurrentCommit(!1).getId(), () => e());
|
|
164
|
+
}
|
|
165
|
+
async getGeometry(e, r, i) {
|
|
166
|
+
if (e === void 0 || r === void 0) {
|
|
167
|
+
let t = this.getMovable()?.getBounds();
|
|
168
|
+
if (!t) return null;
|
|
169
|
+
e ??= t.width, r ??= t.height;
|
|
170
|
+
}
|
|
171
|
+
let a = this._getState()?.data ?? {}, o = i ? S(a, i) : a, s = await n(o, this._theme(), e, r);
|
|
172
|
+
return s && o === a && this._getState()?.data === o && !this._drawnPending && (this._drawn = {
|
|
173
|
+
data: o,
|
|
174
|
+
width: e,
|
|
175
|
+
height: r,
|
|
176
|
+
geometry: s,
|
|
177
|
+
rect: t(s),
|
|
178
|
+
connections: C(s)
|
|
179
|
+
}), s;
|
|
180
|
+
}
|
|
181
|
+
_getDrawnRect(e, t, n) {
|
|
182
|
+
let r = this._evaluated(e, t, n);
|
|
183
|
+
if (!r?.rect) return null;
|
|
184
|
+
let i = r.width > 0 ? e / r.width : 1, a = r.height > 0 ? t / r.height : 1, o = r.rect;
|
|
185
|
+
return {
|
|
186
|
+
l: o.l * i,
|
|
187
|
+
t: o.t * a,
|
|
188
|
+
r: o.r * i,
|
|
189
|
+
b: o.b * a
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
getConnections(e, t, n) {
|
|
193
|
+
let r = n?.adjustments, i = this._evaluated(e, t, n?.onReady ?? y);
|
|
194
|
+
if (!i) return null;
|
|
195
|
+
if (r !== void 0) {
|
|
196
|
+
let n = i.geometry?.withAdjustments(r) ?? null;
|
|
197
|
+
return n ? C(n.getWidth() === e && n.getHeight() === t ? n : n.resize(e, t)) : null;
|
|
198
|
+
}
|
|
199
|
+
if (i.width === e && i.height === t) return i.connections;
|
|
200
|
+
let a = i.width > 0 ? e / i.width : 1, o = i.height > 0 ? t / i.height : 1;
|
|
201
|
+
return i.connections.map((e) => ({
|
|
202
|
+
...e,
|
|
203
|
+
x: e.x * a,
|
|
204
|
+
y: e.y * o
|
|
205
|
+
}));
|
|
206
|
+
}
|
|
207
|
+
_evaluated(e, r, i) {
|
|
208
|
+
let a = this._getState()?.data;
|
|
209
|
+
if (!a) return null;
|
|
210
|
+
let o = this._drawn;
|
|
211
|
+
if (!o || o.data !== a || o.width !== e || o.height !== r) {
|
|
212
|
+
let o = this._drawnPending;
|
|
213
|
+
if (!o || o.data !== a || o.width !== e || o.height !== r) {
|
|
214
|
+
let o = {
|
|
215
|
+
data: a,
|
|
216
|
+
width: e,
|
|
217
|
+
height: r
|
|
218
|
+
};
|
|
219
|
+
this._drawnPending = o, n(a, this._theme(), e, r).then((e) => {
|
|
220
|
+
this._drawnPending === o && (this._drawnPending = null, this._drawn = {
|
|
221
|
+
...o,
|
|
222
|
+
geometry: e,
|
|
223
|
+
rect: e ? t(e) : null,
|
|
224
|
+
connections: e ? C(e) : []
|
|
225
|
+
}, i());
|
|
226
|
+
}, () => {
|
|
227
|
+
this._drawnPending === o && (this._drawnPending = null);
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
return o;
|
|
232
|
+
}
|
|
233
|
+
_theme() {
|
|
234
|
+
try {
|
|
235
|
+
return this._getStyles?.()?.getTheme()?.toJSON() ?? null;
|
|
236
|
+
} catch {
|
|
237
|
+
return null;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
toJSON(e) {
|
|
241
|
+
let t = this._getState(), n = null;
|
|
242
|
+
return t && t.data && (n = e ? O(t.data, this._resources, e) : t.data), n;
|
|
243
|
+
}
|
|
244
|
+
getTypeDescription() {
|
|
245
|
+
return "Shape";
|
|
246
|
+
}
|
|
247
|
+
acceptRotation(e) {
|
|
248
|
+
return e;
|
|
249
|
+
}
|
|
250
|
+
acceptFlip(e) {
|
|
251
|
+
return e;
|
|
252
|
+
}
|
|
253
|
+
get isIShape() {
|
|
254
|
+
return !0;
|
|
255
|
+
}
|
|
256
|
+
get [Symbol.toStringTag]() {
|
|
257
|
+
return "[Shape]";
|
|
258
|
+
}
|
|
259
|
+
toString() {
|
|
260
|
+
return this.getTypeDescription();
|
|
261
|
+
}
|
|
262
|
+
}, x = class {
|
|
263
|
+
constructor(e) {
|
|
264
|
+
this._shape = e;
|
|
265
|
+
}
|
|
266
|
+
getEndPoints(e) {
|
|
267
|
+
let t = e ?? (this._shape.getMovable() ? p(this._shape.getMovable()) : null);
|
|
268
|
+
return t ? d(t) : null;
|
|
269
|
+
}
|
|
270
|
+
placeEnds(e, t) {
|
|
271
|
+
return c(e, t, this._shape.getMovable()?.getRotation() || 0);
|
|
272
|
+
}
|
|
273
|
+
getGluedRoute(e) {
|
|
274
|
+
let t = this._shape.getMovable(), n = t?.getRange().getWorksheet() ?? null;
|
|
275
|
+
if (!t || !n) return null;
|
|
276
|
+
let r = o(n, t, e ?? p, y);
|
|
277
|
+
return r ? {
|
|
278
|
+
placement: r.placement,
|
|
279
|
+
shapeType: r.route?.geometry ?? null,
|
|
280
|
+
adjustments: r.route?.adjustments ?? null
|
|
281
|
+
} : null;
|
|
282
|
+
}
|
|
283
|
+
getConnectorType() {
|
|
284
|
+
let e = this._shape.getShapeType();
|
|
285
|
+
return e.startsWith("bentConnector") ? u.ConnectorType.Elbow : e.startsWith("curvedConnector") ? u.ConnectorType.Curved : u.ConnectorType.Straight;
|
|
286
|
+
}
|
|
287
|
+
isStartConnected() {
|
|
288
|
+
return this._shape._connectedEnd("start") !== null;
|
|
289
|
+
}
|
|
290
|
+
getStartConnectedMovable() {
|
|
291
|
+
return this._shape._connectedMovable("start");
|
|
292
|
+
}
|
|
293
|
+
getStartConnectionSite() {
|
|
294
|
+
return this._shape._connectedEnd("start")?.index ?? null;
|
|
295
|
+
}
|
|
296
|
+
startConnect(e, t, n) {
|
|
297
|
+
this._shape._connect("start", e, t, n);
|
|
298
|
+
}
|
|
299
|
+
startDisconnect(e) {
|
|
300
|
+
this._shape._disconnect("start", e);
|
|
301
|
+
}
|
|
302
|
+
isEndConnected() {
|
|
303
|
+
return this._shape._connectedEnd("end") !== null;
|
|
304
|
+
}
|
|
305
|
+
getEndConnectedMovable() {
|
|
306
|
+
return this._shape._connectedMovable("end");
|
|
307
|
+
}
|
|
308
|
+
getEndConnectionSite() {
|
|
309
|
+
return this._shape._connectedEnd("end")?.index ?? null;
|
|
310
|
+
}
|
|
311
|
+
endConnect(e, t, n) {
|
|
312
|
+
this._shape._connect("end", e, t, n);
|
|
313
|
+
}
|
|
314
|
+
endDisconnect(e) {
|
|
315
|
+
this._shape._disconnect("end", e);
|
|
316
|
+
}
|
|
317
|
+
}, S = (e, t) => {
|
|
318
|
+
let n = { ...e };
|
|
319
|
+
return t.shapeType !== void 0 && (n.geometry = t.shapeType), t.adjustments === null ? delete n.adjustments : t.adjustments !== void 0 && (n.adjustments = { ...t.adjustments }), n;
|
|
320
|
+
}, C = (e) => {
|
|
321
|
+
let t = [];
|
|
322
|
+
return e.forEachConnection((e) => t.push(e)), t;
|
|
323
|
+
}, w = (e) => e.runs.map((e) => e.text ?? "").join(""), T = (e) => e && e.text ? ((e) => {
|
|
324
|
+
let t = e.paragraphs.map(w), n = 0, r = t.length;
|
|
325
|
+
for (; n < r && t[n].trim() === "";) n++;
|
|
326
|
+
for (; r > n && t[r - 1].trim() === "";) r--;
|
|
327
|
+
return t.slice(n, r).join("\n");
|
|
328
|
+
})(e.text) : null, E = (e) => {
|
|
329
|
+
let t = e.fill;
|
|
330
|
+
return t?.type === m.Type.Image ? t : void 0;
|
|
331
|
+
}, D = (e, t) => {
|
|
332
|
+
let n = E(e)?.resId, r = n === void 0 ? void 0 : t?.(n);
|
|
333
|
+
return r ? /* @__PURE__ */ new Map([[n, r]]) : null;
|
|
334
|
+
}, O = (e, t, n) => {
|
|
335
|
+
let r = E(e);
|
|
336
|
+
if (r?.resId === void 0) return e;
|
|
337
|
+
let i = t?.get(r.resId), a = (i ? n(i) : null) ?? void 0;
|
|
338
|
+
if (a === r.resId) return e;
|
|
339
|
+
let { resId: o, ...s } = r;
|
|
340
|
+
return {
|
|
341
|
+
...e,
|
|
342
|
+
fill: a === void 0 ? s : {
|
|
343
|
+
...s,
|
|
344
|
+
resId: a
|
|
345
|
+
}
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
export { b as Shape };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.13
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { i as e, n as t, r as n, t as r } from "./
|
|
7
|
+
import { i as e, n as t, r as n, t as r } from "./Cdw0mGuoV3IU2LhR.mjs";
|
|
8
8
|
var i = 6e4, a = Math.PI / 180 / i, o = 108e5 / Math.PI, s = /^[+-]?\d+$/, c = (e) => s.test(e) ? Number(e) : e, l = /* @__PURE__ */ new WeakMap();
|
|
9
9
|
function u(e) {
|
|
10
10
|
let t = l.get(e);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.13
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.13
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { t as e } from "./
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { i as x, r as S, t as C } from "
|
|
7
|
+
import { t as e } from "./BTgWtqdQoh2cB6DL.mjs";
|
|
8
|
+
import { Ni as t, ei as n, fi as r, nn as i, pi as a, ui as o, zr as s } from "./Dz86-De57bv2VYIi.mjs";
|
|
9
|
+
import { Bt as c, Ft as l, Mt as u, Rt as d, T as f, Y as p, Yt as m, Zt as h, et as g, lt as _, mt as v, xt as y, zt as b } from "./quEvwgrEuOb0h3q-.mjs";
|
|
10
|
+
import { i as x, r as S, t as C } from "./-GEhXGMfNcWmHPby.mjs";
|
|
11
11
|
import { FormulaError as w } from "@sheetxl/primitives";
|
|
12
12
|
import { ExpectedError as T, messageKey as E, t as D } from "@sheetxl/utils";
|
|
13
13
|
var O = /<!\[CDATA\[([\s\S]*?)\]\]>|<!--[\s\S]*?-->|<\?[\s\S]*?\?>|<(\/?)([^\s/>]+)((?:\s+[^\s=/>]+\s*=\s*(?:"[^"]*"|'[^']*'))*)\s*(\/?)>|([^<]+)/g, ee = {
|
|
@@ -869,7 +869,7 @@ var Xe = (e, t, n) => {
|
|
|
869
869
|
} : t);
|
|
870
870
|
}
|
|
871
871
|
} else {
|
|
872
|
-
if (t.length >= 2) throw Error("This move needs a third pair of axes
|
|
872
|
+
if (t.length >= 2) throw Error("This move needs a third pair of axes, which is not supported.");
|
|
873
873
|
let e = mt(s, r, t.length === 0);
|
|
874
874
|
l = [...l, ...e.axes], u = e.axIds;
|
|
875
875
|
}
|
|
@@ -1093,7 +1093,7 @@ var Et = [
|
|
|
1093
1093
|
color: e
|
|
1094
1094
|
}), Nt = (e) => e?.paragraphs?.[0]?.pPr?.defaultRun, Pt = (e, t) => !(t.type !== "scatter" && t.type !== "bubble" || e.axPos !== "b" && e.axPos !== "t"), Ft = (e, t, n) => {
|
|
1095
1095
|
try {
|
|
1096
|
-
return
|
|
1096
|
+
return v.getEngine().format(e || "General", t, {
|
|
1097
1097
|
date1904: n,
|
|
1098
1098
|
placeholders: !0
|
|
1099
1099
|
}).text ?? "";
|
|
@@ -1184,7 +1184,7 @@ var Gt = class {
|
|
|
1184
1184
|
if (!e) return t;
|
|
1185
1185
|
let n = this.fill(e.fill);
|
|
1186
1186
|
if (n === null) return null;
|
|
1187
|
-
let r = e.lineCap, i = e.dash === void 0 ? t?.dash :
|
|
1187
|
+
let r = e.lineCap, i = e.dash === void 0 ? t?.dash : _.toDashLengths(e.dash) ? e.dash : void 0;
|
|
1188
1188
|
return {
|
|
1189
1189
|
fill: n ?? t?.fill ?? F(this.color("tx1")),
|
|
1190
1190
|
width: typeof e.width == "number" ? e.width : t?.width ?? .75,
|
|
@@ -1216,7 +1216,7 @@ var Gt = class {
|
|
|
1216
1216
|
};
|
|
1217
1217
|
}
|
|
1218
1218
|
typeface(e) {
|
|
1219
|
-
return e && e !==
|
|
1219
|
+
return e && e !== m.ThemeFamily.Body ? e === m.ThemeFamily.Heading ? this._theme.majorFont() : e : this._theme.minorFont();
|
|
1220
1220
|
}
|
|
1221
1221
|
textFont(e, t) {
|
|
1222
1222
|
let n = e.tx?.rich;
|
|
@@ -1479,7 +1479,7 @@ var Gt = class {
|
|
|
1479
1479
|
}(o, i, a, {
|
|
1480
1480
|
order: e.order,
|
|
1481
1481
|
intercept: e.intercept
|
|
1482
|
-
}), c = e.period ?? 2, l = Math.max(0, e.forward ?? 0), u = Math.max(0, e.backward ?? 0), d = e.name ?? `${o === "movingAvg" ? `${c} per. Mov. Avg.` : Ot[o]} (${t.name})`, f = e.spPr ? this.stroke(e.spPr.stroke, this.line(n, 1.5, "round",
|
|
1482
|
+
}), c = e.period ?? 2, l = Math.max(0, e.forward ?? 0), u = Math.max(0, e.backward ?? 0), d = e.name ?? `${o === "movingAvg" ? `${c} per. Mov. Avg.` : Ot[o]} (${t.name})`, f = e.spPr ? this.stroke(e.spPr.stroke, this.line(n, 1.5, "round", _.DashStyle.SysDot)) : this.stroke(void 0, this.line("#000000", this._c14 ? 1 : .5, "round")), p = null;
|
|
1483
1483
|
if (s && (e.dispEq || e.dispRSqr)) {
|
|
1484
1484
|
let t = e.trendlineLbl, n = t?.numFmt?.formatCode, r = n && n !== "General" ? (e) => Ft(n, e, this._date1904) : Ne, i = [];
|
|
1485
1485
|
e.dispEq && i.push(function(e, t) {
|
|
@@ -2153,8 +2153,10 @@ function Yt(e = t.getShared()) {
|
|
|
2153
2153
|
return i * n;
|
|
2154
2154
|
}(n(t), e, t.size),
|
|
2155
2155
|
lineHeight: (e) => {
|
|
2156
|
-
let t = n(e)
|
|
2157
|
-
|
|
2156
|
+
let t = n(e);
|
|
2157
|
+
if (t.typoLine !== null) return t.typoLine * e.size;
|
|
2158
|
+
let r = t.metrics(1e4);
|
|
2159
|
+
return (r.ascent + r.descent) / 1e4 * e.size;
|
|
2158
2160
|
}
|
|
2159
2161
|
};
|
|
2160
2162
|
}
|
|
@@ -4064,23 +4066,23 @@ function Qn(e) {
|
|
|
4064
4066
|
function $n(e, t = "days", n = !1) {
|
|
4065
4067
|
let r = Math.floor(e);
|
|
4066
4068
|
if (t === "days") return r;
|
|
4067
|
-
let i = r - (
|
|
4069
|
+
let i = r - (u(r, n) - 1);
|
|
4068
4070
|
if (t === "months") return i;
|
|
4069
|
-
let a =
|
|
4070
|
-
return
|
|
4071
|
+
let a = l(i, n) % 12;
|
|
4072
|
+
return y(i, -a, !1, n);
|
|
4071
4073
|
}
|
|
4072
4074
|
function er(e, t, n, r = !1) {
|
|
4073
|
-
return n === "days" ? e + t :
|
|
4075
|
+
return n === "days" ? e + t : y(e, n === "months" ? t : 12 * t, !1, r);
|
|
4074
4076
|
}
|
|
4075
4077
|
function tr(e, t, n, r = !1) {
|
|
4076
4078
|
if (n === "days") return Math.floor(t) - Math.floor(e);
|
|
4077
|
-
let i =
|
|
4078
|
-
return n === "months" ? i : Math.floor(
|
|
4079
|
+
let i = l(Math.floor(t), r) - l(Math.floor(e), r);
|
|
4080
|
+
return n === "months" ? i : Math.floor(l(Math.floor(t), r) / 12) - Math.floor(l(Math.floor(e), r) / 12);
|
|
4079
4081
|
}
|
|
4080
4082
|
function nr(e, t = !1) {
|
|
4081
4083
|
let n = [...new Set(e.filter(Number.isFinite).map((e) => Math.floor(e)))].sort((e, t) => e - t), r = "years";
|
|
4082
4084
|
for (let e = 1; e < n.length; e++) {
|
|
4083
|
-
let i =
|
|
4085
|
+
let i = l(n[e - 1], t), a = l(n[e], t);
|
|
4084
4086
|
if (i === a) return "days";
|
|
4085
4087
|
Math.floor(i / 12) === Math.floor(a / 12) && (r = "months");
|
|
4086
4088
|
}
|
|
@@ -6132,9 +6134,9 @@ var Hr = (e) => C.get(e.type === "custom" ? `custom:${e.kind}` : e.type), Ur = (
|
|
|
6132
6134
|
...n ? { letterSpacing: 0 } : {},
|
|
6133
6135
|
baseline: 0,
|
|
6134
6136
|
color: W(r),
|
|
6135
|
-
latin:
|
|
6136
|
-
eastAsian:
|
|
6137
|
-
complexScript:
|
|
6137
|
+
latin: m.ThemeFamily.Body,
|
|
6138
|
+
eastAsian: m.ThemeFamily.Body,
|
|
6139
|
+
complexScript: m.ThemeFamily.Body
|
|
6138
6140
|
} },
|
|
6139
6141
|
endRun: { language: "en-US" }
|
|
6140
6142
|
}]
|
|
@@ -7552,7 +7554,7 @@ var Vi = 500000001, Hi = 500000002, Ui = [
|
|
|
7552
7554
|
type: "solid",
|
|
7553
7555
|
color: t.color
|
|
7554
7556
|
})), t.family !== void 0) {
|
|
7555
|
-
let e = t.family ??
|
|
7557
|
+
let e = t.family ?? m.ThemeFamily.Body;
|
|
7556
7558
|
n = J(n, "latin", e), n = J(n, "eastAsian", e), n = J(n, "complexScript", e);
|
|
7557
7559
|
}
|
|
7558
7560
|
return t.fallbacks !== void 0 && (n = J(n, "fallbacks", t.fallbacks?.length ? [...t.fallbacks] : void 0)), n;
|
|
@@ -8191,9 +8193,9 @@ function Wo(e) {
|
|
|
8191
8193
|
return n;
|
|
8192
8194
|
}
|
|
8193
8195
|
var Go = (e, t) => {
|
|
8194
|
-
let n =
|
|
8195
|
-
return n === void 0 ? e : (typeof n == "number" ?
|
|
8196
|
-
}, Ko = (e, t) => e == null ? "blank" : typeof e == "string" ? "text" : typeof e == "number" && t &&
|
|
8196
|
+
let n = d[e];
|
|
8197
|
+
return n === void 0 ? e : (typeof n == "number" ? b(n, t) : void 0) ?? c(n);
|
|
8198
|
+
}, Ko = (e, t) => e == null ? "blank" : typeof e == "string" ? "text" : typeof e == "number" && t && v.getEngine().isDateFormat(t) ? "date" : "number", qo = class {
|
|
8197
8199
|
constructor(e) {
|
|
8198
8200
|
this._sheet = e, this._blocks = [];
|
|
8199
8201
|
}
|
|
@@ -8236,8 +8238,8 @@ var Go = (e, t) => {
|
|
|
8236
8238
|
return this._at(e, t).format;
|
|
8237
8239
|
}
|
|
8238
8240
|
}, Jo = (e, t) => {
|
|
8239
|
-
let i =
|
|
8240
|
-
return `${i}!${t.rowStart === t.rowEnd && t.colStart === t.colEnd ? s : `${s}:${
|
|
8241
|
+
let i = r(e.getName()), a = (e, t) => `$${n(t)}$${o(e)}`, s = a(t.rowStart, t.colStart);
|
|
8242
|
+
return `${i}!${t.rowStart === t.rowEnd && t.colStart === t.colEnd ? s : `${s}:${a(t.rowEnd, t.colEnd)}`}`;
|
|
8241
8243
|
}, Yo = (e) => Jo(e.getWorksheet(), e.getCoords()), Xo = (e) => {
|
|
8242
8244
|
let t = /^\{(.*)\}$/s.exec(e.trim());
|
|
8243
8245
|
if (!t) return null;
|
|
@@ -8281,7 +8283,7 @@ var Go = (e, t) => {
|
|
|
8281
8283
|
};
|
|
8282
8284
|
};
|
|
8283
8285
|
function $o(e, t, n) {
|
|
8284
|
-
let r,
|
|
8286
|
+
let r, i = null;
|
|
8285
8287
|
if (typeof e == "string") {
|
|
8286
8288
|
let o = e.trim().replace(/^=/, ""), s = Xo(o);
|
|
8287
8289
|
if (s) {
|
|
@@ -8296,13 +8298,13 @@ function $o(e, t, n) {
|
|
|
8296
8298
|
return s.numbers || t === "values" ? { numLit: e } : { strLit: e };
|
|
8297
8299
|
}
|
|
8298
8300
|
if (!o) throw new T(D("error.chart.noData"));
|
|
8299
|
-
|
|
8300
|
-
} else
|
|
8301
|
+
i = Zo(o, n), r = i && a(o) ? Yo(i) : o;
|
|
8302
|
+
} else i = e, r = Yo(e);
|
|
8301
8303
|
if (t === "values") return { numRef: { f: r } };
|
|
8302
|
-
if (!
|
|
8303
|
-
let o =
|
|
8304
|
+
if (!i || i.isInvalid()) return { strRef: { f: r } };
|
|
8305
|
+
let o = i.getCoords();
|
|
8304
8306
|
if (o.rowEnd > o.rowStart && o.colEnd > o.colStart) return { multiLvlStrRef: { f: r } };
|
|
8305
|
-
let s =
|
|
8307
|
+
let s = i.getValues(), c = i.getNumberFormats(), l = 0;
|
|
8306
8308
|
for (let e = 0; e < s.length; e++) for (let t = 0; t < s[e].length; t++) {
|
|
8307
8309
|
let n = Ko(s[e][t], c[e]?.[t] ?? "");
|
|
8308
8310
|
if (n === "text") return { strRef: { f: r } };
|
|
@@ -8399,7 +8401,7 @@ var bs = E("op.deleteChartSeries"), xs = E("op.setChartSeriesOrder"), Ss = E("op
|
|
|
8399
8401
|
}, Q = (e) => ({
|
|
8400
8402
|
type: "solid",
|
|
8401
8403
|
color: e
|
|
8402
|
-
}), $ = (e, t, n, r, i) => new
|
|
8404
|
+
}), $ = (e, t, n, r, i) => new f({
|
|
8403
8405
|
getData: () => {
|
|
8404
8406
|
let e = t();
|
|
8405
8407
|
return {
|
|
@@ -8428,7 +8430,7 @@ var bs = E("op.deleteChartSeries"), xs = E("op.setChartSeriesOrder"), Ss = E("op
|
|
|
8428
8430
|
}
|
|
8429
8431
|
getFamily() {
|
|
8430
8432
|
let e = this._pick("latin");
|
|
8431
|
-
return e && e !==
|
|
8433
|
+
return e && e !== m.ThemeFamily.Body ? e === m.ThemeFamily.Heading ? this._host.theme().majorFont() : e : this._host.theme().minorFont();
|
|
8432
8434
|
}
|
|
8433
8435
|
setFamily(e, t) {
|
|
8434
8436
|
return this.update({ family: e }, t);
|
|
@@ -8441,7 +8443,7 @@ var bs = E("op.deleteChartSeries"), xs = E("op.setChartSeriesOrder"), Ss = E("op
|
|
|
8441
8443
|
}
|
|
8442
8444
|
getThemeFamily() {
|
|
8443
8445
|
let e = this._pick("latin");
|
|
8444
|
-
return e && e !==
|
|
8446
|
+
return e && e !== m.ThemeFamily.Body ? e === m.ThemeFamily.Heading ? e : null : m.ThemeFamily.Body;
|
|
8445
8447
|
}
|
|
8446
8448
|
getFallbacks() {
|
|
8447
8449
|
return this._pick("fallbacks") ?? [];
|
|
@@ -8541,11 +8543,11 @@ var bs = E("op.deleteChartSeries"), xs = E("op.setChartSeriesOrder"), Ss = E("op
|
|
|
8541
8543
|
}
|
|
8542
8544
|
toCSS(e, t = 1) {
|
|
8543
8545
|
return {
|
|
8544
|
-
fontFamily:
|
|
8546
|
+
fontFamily: p(this.getFamily(), this.getFallbacks()),
|
|
8545
8547
|
fontSize: this.getSize() * h.getDeviceScale() * t + "px",
|
|
8546
8548
|
fontWeight: this.getWeight(),
|
|
8547
8549
|
fontStyle: this.getItalic() ? h.Style.Italic : h.Style.Normal,
|
|
8548
|
-
textDecoration:
|
|
8550
|
+
textDecoration: g(this.getUnderline(), this.getStrike()),
|
|
8549
8551
|
letterSpacing: `${this.getLetterSpacing()}pt`,
|
|
8550
8552
|
color: this.getColor().toCSS(e)
|
|
8551
8553
|
};
|
|
@@ -10019,7 +10021,7 @@ var bs = E("op.deleteChartSeries"), xs = E("op.setChartSeriesOrder"), Ss = E("op
|
|
|
10019
10021
|
if (!lt(Qe(a), ct({
|
|
10020
10022
|
...e,
|
|
10021
10023
|
groups: l
|
|
10022
|
-
}, d))) throw Error("Those axes hold groups this series cannot share them with
|
|
10024
|
+
}, d))) throw Error("Those axes hold groups this series cannot share them with.");
|
|
10023
10025
|
} else {
|
|
10024
10026
|
let e = mt(Qe(a), r, !1);
|
|
10025
10027
|
u = [...u, ...e.axes], d = e.axIds;
|
|
@@ -11761,7 +11763,7 @@ var bs = E("op.deleteChartSeries"), xs = E("op.setChartSeriesOrder"), Ss = E("op
|
|
|
11761
11763
|
return t;
|
|
11762
11764
|
}, Bc = class n extends e {
|
|
11763
11765
|
constructor(e) {
|
|
11764
|
-
super(e), this._part = null, this._readSource = null, this._read = null, this._partModel = null, this._series = null, this._parts = null, this._held = null, this._heldModel = null, this._heldBefore = /* @__PURE__ */ new WeakMap(), this._layoutListeners = 0, this._layoutSources = null, this._dataListeners = /* @__PURE__ */ new Map(), this._sheetListeners = /* @__PURE__ */ new Map(), this._layoutQueued = !1, this._getStyles = e.getStyles ?? null, this._canHold = !!e.addWatch, e.json && (this._part =
|
|
11766
|
+
super(e), this._part = null, this._readSource = null, this._read = null, this._partModel = null, this._series = null, this._parts = null, this._held = null, this._heldModel = null, this._heldBefore = /* @__PURE__ */ new WeakMap(), this._layoutListeners = 0, this._layoutSources = null, this._dataListeners = /* @__PURE__ */ new Map(), this._sheetListeners = /* @__PURE__ */ new Map(), this._layoutQueued = !1, this._getStyles = e.getStyles ?? null, this._canHold = !!e.addWatch, e.json && (this._part = i.fromJSON(e.json.part, e.fromResourceId), this._updateState({ data: e.json }), this._partModel = e.json.model ?? null), this._syncHolds();
|
|
11765
11767
|
}
|
|
11766
11768
|
_syncHolds() {
|
|
11767
11769
|
if (!this._canHold) return;
|
|
@@ -11859,7 +11861,7 @@ var bs = E("op.deleteChartSeries"), xs = E("op.setChartSeriesOrder"), Ss = E("op
|
|
|
11859
11861
|
}
|
|
11860
11862
|
_rangeAt(e) {
|
|
11861
11863
|
let t = this._formulaAt(e);
|
|
11862
|
-
if (!t || !
|
|
11864
|
+
if (!t || !a(t)) return null;
|
|
11863
11865
|
try {
|
|
11864
11866
|
return this._resolveRange(t);
|
|
11865
11867
|
} catch {
|
|
@@ -12781,12 +12783,12 @@ var bs = E("op.deleteChartSeries"), xs = E("op.setChartSeriesOrder"), Ss = E("op
|
|
|
12781
12783
|
toJSON(e) {
|
|
12782
12784
|
let t = this._getState();
|
|
12783
12785
|
if (!t?.data) return null;
|
|
12784
|
-
let n = { ...t.data }, r = this._getModel(),
|
|
12785
|
-
if (r &&
|
|
12786
|
-
else if (r &&
|
|
12786
|
+
let n = { ...t.data }, r = this._getModel(), a = this._getRead()?.slots, o = (e) => this._movedAt(e);
|
|
12787
|
+
if (r && a && !M(r)) n.model = we(r, a, { movedAt: o });
|
|
12788
|
+
else if (r && a) {
|
|
12787
12789
|
let e = /* @__PURE__ */ new Map();
|
|
12788
|
-
n.model = we(r,
|
|
12789
|
-
movedAt:
|
|
12790
|
+
n.model = we(r, a, {
|
|
12791
|
+
movedAt: o,
|
|
12790
12792
|
cacheOf: (t, n) => {
|
|
12791
12793
|
let r = n === "multiLvlStr" ? null : this._plotRange(t);
|
|
12792
12794
|
if (!r) return this._cacheOf(t, n);
|
|
@@ -12795,7 +12797,7 @@ var bs = E("op.deleteChartSeries"), xs = E("op.setChartSeriesOrder"), Ss = E("op
|
|
|
12795
12797
|
}
|
|
12796
12798
|
});
|
|
12797
12799
|
}
|
|
12798
|
-
let s =
|
|
12800
|
+
let s = i.toJSON(this._part, e);
|
|
12799
12801
|
return s ? ((n.model ?? null) !== this._partModel && delete s.xml, n.part = s) : delete n.part, n;
|
|
12800
12802
|
}
|
|
12801
12803
|
getTypeDescription() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.13
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|