@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
|
@@ -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 } from "./
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { i as w, r as _, t as k } from "./
|
|
7
|
+
import { t } from "./Bfg7qjCXCwXbzW3K.mjs";
|
|
8
|
+
import { Ni as e, ei as r, fi as s, nn as i, pi as n, ui as o, zr as l } from "./BQ2XqExomMceAjfe.mjs";
|
|
9
|
+
import { Bt as a, Ft as u, Mt as h, Rt as c, T as d, Xt as p, Y as g, Yt as f, et as m, lt as y, mt as x, xt as b, zt as v } from "./DO5ldLqhTvIfPXLW.mjs";
|
|
10
|
+
import { i as w, r as _, t as k } from "./DF0nL7s01dp7n0Bx.mjs";
|
|
11
11
|
import { FormulaError as S } from "@sheetxl/primitives";
|
|
12
12
|
import { ExpectedError as M, messageKey as P, t as L } from "@sheetxl/utils";
|
|
13
13
|
var C = /<!\[CDATA\[([\s\S]*?)\]\]>|<!--[\s\S]*?-->|<\?[\s\S]*?\?>|<(\/?)([^\s/>]+)((?:\s+[^\s=/>]+\s*=\s*(?:"[^"]*"|'[^']*'))*)\s*(\/?)>|([^<]+)/g, A = {
|
|
@@ -47,10 +47,10 @@ var C = /<!\[CDATA\[([\s\S]*?)\]\]>|<!--[\s\S]*?-->|<\?[\s\S]*?\?>|<(\/?)([^\s/>
|
|
|
47
47
|
};
|
|
48
48
|
for (const e of F(t)) r(e);
|
|
49
49
|
return e;
|
|
50
|
-
},
|
|
50
|
+
}, z = Object.freeze({
|
|
51
51
|
text: null,
|
|
52
52
|
slot: null
|
|
53
|
-
}),
|
|
53
|
+
}), N = Object.freeze({
|
|
54
54
|
slot: null,
|
|
55
55
|
literal: null
|
|
56
56
|
}), D = {
|
|
@@ -195,7 +195,7 @@ var C = /<!\[CDATA\[([\s\S]*?)\]\]>|<!--[\s\S]*?-->|<\?[\s\S]*?\?>|<(\/?)([^\s/>
|
|
|
195
195
|
return t ? this._slots.get(t) ?? null : null;
|
|
196
196
|
}
|
|
197
197
|
text(t) {
|
|
198
|
-
if (!t) return
|
|
198
|
+
if (!t) return z;
|
|
199
199
|
if (t.rich) return {
|
|
200
200
|
text: J(t.rich) || null,
|
|
201
201
|
slot: null
|
|
@@ -210,13 +210,13 @@ var C = /<!\[CDATA\[([\s\S]*?)\]\]>|<!--[\s\S]*?-->|<\?[\s\S]*?\?>|<(\/?)([^\s/>
|
|
|
210
210
|
slot: null
|
|
211
211
|
};
|
|
212
212
|
const r = Q(t);
|
|
213
|
-
return null === r ?
|
|
213
|
+
return null === r ? z : {
|
|
214
214
|
text: r,
|
|
215
215
|
slot: null
|
|
216
216
|
};
|
|
217
217
|
}
|
|
218
218
|
source(t) {
|
|
219
|
-
if (!t) return
|
|
219
|
+
if (!t) return N;
|
|
220
220
|
if (t.numLit && !t.numLit.levels) return {
|
|
221
221
|
slot: null,
|
|
222
222
|
literal: tt(t.numLit, !1)
|
|
@@ -226,7 +226,7 @@ var C = /<!\[CDATA\[([\s\S]*?)\]\]>|<!--[\s\S]*?-->|<\?[\s\S]*?\?>|<(\/?)([^\s/>
|
|
|
226
226
|
literal: tt(t.strLit, !0)
|
|
227
227
|
};
|
|
228
228
|
const e = this.slotOf(t.multiLvlStrRef ?? t.numRef ?? t.strRef);
|
|
229
|
-
return null === e ?
|
|
229
|
+
return null === e ? N : {
|
|
230
230
|
slot: e,
|
|
231
231
|
literal: null
|
|
232
232
|
};
|
|
@@ -617,10 +617,10 @@ var Bt = (t) => {
|
|
|
617
617
|
"stock"
|
|
618
618
|
],
|
|
619
619
|
["scatter"]
|
|
620
|
-
],
|
|
620
|
+
], zt = (t, e) => t.type === e.type && !!t.is3D == !!e.is3D && ("bar" !== t.type || (t.barDir ?? "col") === (e.barDir ?? "col")), Nt = (t) => {
|
|
621
621
|
const e = t.axes[0];
|
|
622
622
|
return e ? [e.axId, e.crossAx ?? e.axId] : [];
|
|
623
|
-
}, Dt = (t, e) => t.axIds.length > 0 && e.length > 0 && t.axIds.some((t) => e.includes(t)), Ot = (t, e) => 0 === e.axIds.length ? null : Dt(e,
|
|
623
|
+
}, Dt = (t, e) => t.axIds.length > 0 && e.length > 0 && t.axIds.some((t) => e.includes(t)), Ot = (t, e) => 0 === e.axIds.length ? null : Dt(e, Nt(t)) ? "primary" : "secondary", Ut = (t, e) => {
|
|
624
624
|
for (let r = 0; r < t.groups.length; r++) {
|
|
625
625
|
const s = t.groups[r], i = s.series.find((t) => t.idx === e);
|
|
626
626
|
if (i) return {
|
|
@@ -649,7 +649,7 @@ var Bt = (t) => {
|
|
|
649
649
|
}
|
|
650
650
|
return null;
|
|
651
651
|
}, jt = (t) => {
|
|
652
|
-
const e = [], r =
|
|
652
|
+
const e = [], r = Nt(t);
|
|
653
653
|
r.length && e.push(r);
|
|
654
654
|
for (const r of t.axes) e.some((t) => t.includes(r.axId)) || e.push([r.axId, r.crossAx ?? r.axId]);
|
|
655
655
|
return e;
|
|
@@ -792,7 +792,7 @@ var Bt = (t) => {
|
|
|
792
792
|
}
|
|
793
793
|
}, Xt = (t) => {
|
|
794
794
|
let e = t.groups.filter((t) => t.series.length > 0);
|
|
795
|
-
const r =
|
|
795
|
+
const r = Nt(t);
|
|
796
796
|
if (r.length > 0 && e.some((t) => t.axIds.length > 0) && !e.some((t) => Dt(t, r))) {
|
|
797
797
|
const s = [];
|
|
798
798
|
for (const i of e) {
|
|
@@ -800,7 +800,7 @@ var Bt = (t) => {
|
|
|
800
800
|
s.push(i);
|
|
801
801
|
continue;
|
|
802
802
|
}
|
|
803
|
-
const e = s.find((t) => t.axIds.length > 0 &&
|
|
803
|
+
const e = s.find((t) => t.axIds.length > 0 && zt(t, i));
|
|
804
804
|
if (e) {
|
|
805
805
|
let t = e.series;
|
|
806
806
|
for (const e of i.series) t = Gt(t, e);
|
|
@@ -838,7 +838,7 @@ var Bt = (t) => {
|
|
|
838
838
|
if (!i) throw new Error(`No series with idx ${e}.`);
|
|
839
839
|
const { group: n, groupIndex: o } = i;
|
|
840
840
|
if (Et(r) || t.groups.some(Et)) return ((t, e) => {
|
|
841
|
-
const r = t.groups.flatMap((t) => t.series).sort((t, e) => (t.order ?? 0) - (e.order ?? 0)), s = Bt(e), i =
|
|
841
|
+
const r = t.groups.flatMap((t) => t.series).sort((t, e) => (t.order ?? 0) - (e.order ?? 0)), s = Bt(e), i = Nt(t);
|
|
842
842
|
let n = t.axes.filter((t) => i.includes(t.axId));
|
|
843
843
|
"none" === s ? n = [] : "bubble" !== s && "scatter" !== s || (n = n.map((t) => ({
|
|
844
844
|
...t,
|
|
@@ -857,7 +857,7 @@ var Bt = (t) => {
|
|
|
857
857
|
axes: n
|
|
858
858
|
};
|
|
859
859
|
})(t, r);
|
|
860
|
-
if (
|
|
860
|
+
if (zt(n, r)) {
|
|
861
861
|
if (void 0 === r.grouping || r.grouping === n.grouping) return t;
|
|
862
862
|
const e = [...t.groups], s = {
|
|
863
863
|
...n,
|
|
@@ -894,7 +894,7 @@ var Bt = (t) => {
|
|
|
894
894
|
} : e);
|
|
895
895
|
}
|
|
896
896
|
} else {
|
|
897
|
-
if (e.length >= 2) throw new Error("This move needs a third pair of axes
|
|
897
|
+
if (e.length >= 2) throw new Error("This move needs a third pair of axes, which is not supported.");
|
|
898
898
|
const t = Yt(l, s, 0 === e.length);
|
|
899
899
|
u = [...u, ...t.axes], h = t.axIds;
|
|
900
900
|
}
|
|
@@ -903,7 +903,7 @@ var Bt = (t) => {
|
|
|
903
903
|
...t,
|
|
904
904
|
groups: a,
|
|
905
905
|
axes: u
|
|
906
|
-
}, d = a.findIndex((t) =>
|
|
906
|
+
}, d = a.findIndex((t) => zt(t, r) && ("none" === l ? 0 === t.axIds.length : Dt(t, h)));
|
|
907
907
|
if (-1 !== d) {
|
|
908
908
|
const t = {
|
|
909
909
|
...a[d],
|
|
@@ -1120,7 +1120,7 @@ var ae = [
|
|
|
1120
1120
|
color: t
|
|
1121
1121
|
}), me = (t) => t?.paragraphs?.[0]?.pPr?.defaultRun, ye = (t, e) => !("scatter" !== e.type && "bubble" !== e.type || "b" !== t.axPos && "t" !== t.axPos), xe = (t, e, r) => {
|
|
1122
1122
|
try {
|
|
1123
|
-
return
|
|
1123
|
+
return x.getEngine().format(t || "General", e, {
|
|
1124
1124
|
date1904: r,
|
|
1125
1125
|
placeholders: !0
|
|
1126
1126
|
}).text ?? "";
|
|
@@ -1213,7 +1213,7 @@ var Ce = class {
|
|
|
1213
1213
|
if (!t) return e;
|
|
1214
1214
|
const r = this.fill(t.fill);
|
|
1215
1215
|
if (null === r) return null;
|
|
1216
|
-
const s = t.lineCap, i = void 0 === t.dash ? e?.dash :
|
|
1216
|
+
const s = t.lineCap, i = void 0 === t.dash ? e?.dash : y.toDashLengths(t.dash) ? t.dash : void 0;
|
|
1217
1217
|
return {
|
|
1218
1218
|
fill: r ?? e?.fill ?? fe(this.color("tx1")),
|
|
1219
1219
|
width: "number" == typeof t.width ? t.width : e?.width ?? .75,
|
|
@@ -1245,7 +1245,7 @@ var Ce = class {
|
|
|
1245
1245
|
};
|
|
1246
1246
|
}
|
|
1247
1247
|
typeface(t) {
|
|
1248
|
-
return t && t !==
|
|
1248
|
+
return t && t !== f.ThemeFamily.Body ? t === f.ThemeFamily.Heading ? this._theme.majorFont() : t : this._theme.minorFont();
|
|
1249
1249
|
}
|
|
1250
1250
|
textFont(t, e) {
|
|
1251
1251
|
const r = t.tx?.rich;
|
|
@@ -1509,7 +1509,7 @@ var Ce = class {
|
|
|
1509
1509
|
}(o, i, n, {
|
|
1510
1510
|
order: t.order,
|
|
1511
1511
|
intercept: t.intercept
|
|
1512
|
-
}), a = t.period ?? 2, u = Math.max(0, t.forward ?? 0), h = Math.max(0, t.backward ?? 0), c = t.name ?? `${"movingAvg" === o ? `${a} per. Mov. Avg.` : he[o]} (${e.name})`, d = t.spPr ? this.stroke(t.spPr.stroke, this.line(r, 1.5, "round",
|
|
1512
|
+
}), a = t.period ?? 2, u = Math.max(0, t.forward ?? 0), h = Math.max(0, t.backward ?? 0), c = t.name ?? `${"movingAvg" === o ? `${a} per. Mov. Avg.` : he[o]} (${e.name})`, d = t.spPr ? this.stroke(t.spPr.stroke, this.line(r, 1.5, "round", y.DashStyle.SysDot)) : this.stroke(void 0, this.line("#000000", this._c14 ? 1 : .5, "round"));
|
|
1513
1513
|
let p = null;
|
|
1514
1514
|
if (l && (t.dispEq || t.dispRSqr)) {
|
|
1515
1515
|
const e = t.trendlineLbl, r = e?.numFmt?.formatCode, s = r && "General" !== r ? (t) => xe(r, t, this._date1904) : pt, i = [];
|
|
@@ -2195,8 +2195,10 @@ function Fe(t = e.getShared()) {
|
|
|
2195
2195
|
return i * r;
|
|
2196
2196
|
}(r(e), t, e.size),
|
|
2197
2197
|
lineHeight: (t) => {
|
|
2198
|
-
const e = r(t)
|
|
2199
|
-
|
|
2198
|
+
const e = r(t);
|
|
2199
|
+
if (null !== e.typoLine) return e.typoLine * t.size;
|
|
2200
|
+
const s = e.metrics(1e4);
|
|
2201
|
+
return (s.ascent + s.descent) / 1e4 * t.size;
|
|
2200
2202
|
}
|
|
2201
2203
|
};
|
|
2202
2204
|
}
|
|
@@ -2206,7 +2208,7 @@ var Be = 96 / 72, Ee = {
|
|
|
2206
2208
|
}, Ve = {
|
|
2207
2209
|
perLine: .5127,
|
|
2208
2210
|
offset: -4.5
|
|
2209
|
-
},
|
|
2211
|
+
}, ze = (t) => .99 * t - 1.1, Ne = (t) => .6 * t + .6, De = (t) => t * Be, Oe = (t) => (t + 4) * Be, Ue = (t, e, r, s) => ({
|
|
2210
2212
|
x: Oe(t),
|
|
2211
2213
|
y: Oe(e),
|
|
2212
2214
|
width: De(r),
|
|
@@ -3140,7 +3142,7 @@ var vr = 4.13, wr = {
|
|
|
3140
3142
|
fill: s.fill,
|
|
3141
3143
|
border: je(s.border)
|
|
3142
3144
|
};
|
|
3143
|
-
}) : void 0, M =
|
|
3145
|
+
}) : void 0, M = Ne(l.size), P = h.map((t, r) => {
|
|
3144
3146
|
if (!c) return null;
|
|
3145
3147
|
const s = e.text.width(t, l);
|
|
3146
3148
|
return {
|
|
@@ -3566,7 +3568,7 @@ var vr = 4.13, wr = {
|
|
|
3566
3568
|
const s = t.series[e], i = s?.slices[r];
|
|
3567
3569
|
return i && i.endAngle > i.startAngle ? ar(Br(s, i)) : null;
|
|
3568
3570
|
}
|
|
3569
|
-
}, Vr = (t) => Math.ceil(t / 3),
|
|
3571
|
+
}, Vr = (t) => Math.ceil(t / 3), zr = (t, e) => {
|
|
3570
3572
|
const r = e.length, s = e.reduce((t, e) => t + (null === e ? 0 : Math.abs(e)), 0), i = "pos" === t.splitType && void 0 !== t.splitPos ? t.splitPos : Vr(r);
|
|
3571
3573
|
return e.map((e, n) => {
|
|
3572
3574
|
switch (t.splitType) {
|
|
@@ -3576,7 +3578,7 @@ var vr = 4.13, wr = {
|
|
|
3576
3578
|
default: return n >= r - i;
|
|
3577
3579
|
}
|
|
3578
3580
|
});
|
|
3579
|
-
},
|
|
3581
|
+
}, Nr = (t) => ({
|
|
3580
3582
|
center: t.center,
|
|
3581
3583
|
innerRadius: 0,
|
|
3582
3584
|
outerRadius: t.radius,
|
|
@@ -3610,7 +3612,7 @@ var vr = 4.13, wr = {
|
|
|
3610
3612
|
series: []
|
|
3611
3613
|
}, f = t.series[0];
|
|
3612
3614
|
if (!f) return g;
|
|
3613
|
-
const m = f.values, y =
|
|
3615
|
+
const m = f.values, y = zr(s, m), x = (t) => null === t ? 0 : Math.abs(t), b = m.reduce((t, e) => t + x(e), 0), v = m.reduce((t, e, r) => t + (y[r] ? x(e) : 0), 0), w = (t) => f.points?.[t] ?? {
|
|
3614
3616
|
fill: f.fill,
|
|
3615
3617
|
stroke: f.stroke,
|
|
3616
3618
|
explosion: 0
|
|
@@ -3712,7 +3714,7 @@ var vr = 4.13, wr = {
|
|
|
3712
3714
|
const s = r.series[t];
|
|
3713
3715
|
for (let r = s.slices.length - 1; r >= 0; r--) {
|
|
3714
3716
|
const i = s.slices[r];
|
|
3715
|
-
if (i && lr(e,
|
|
3717
|
+
if (i && lr(e, Nr(i))) return {
|
|
3716
3718
|
series: t,
|
|
3717
3719
|
point: r
|
|
3718
3720
|
};
|
|
@@ -3721,7 +3723,7 @@ var vr = 4.13, wr = {
|
|
|
3721
3723
|
point: r
|
|
3722
3724
|
};
|
|
3723
3725
|
}
|
|
3724
|
-
if (lr(e,
|
|
3726
|
+
if (lr(e, Nr(s.other))) return {
|
|
3725
3727
|
series: t,
|
|
3726
3728
|
point: null
|
|
3727
3729
|
};
|
|
@@ -3730,7 +3732,7 @@ var vr = 4.13, wr = {
|
|
|
3730
3732
|
},
|
|
3731
3733
|
pointBounds: (t, e, r) => {
|
|
3732
3734
|
const s = t.series[e], i = s?.slices[r];
|
|
3733
|
-
return i ? i.endAngle > i.startAngle ? ar(
|
|
3735
|
+
return i ? i.endAngle > i.startAngle ? ar(Nr(i)) : null : s?.bars?.[r]?.rect ?? null;
|
|
3734
3736
|
}
|
|
3735
3737
|
}, Or = {
|
|
3736
3738
|
types: ["radar"],
|
|
@@ -3825,7 +3827,7 @@ var vr = 4.13, wr = {
|
|
|
3825
3827
|
...s ? { labels: s } : {}
|
|
3826
3828
|
};
|
|
3827
3829
|
})
|
|
3828
|
-
},
|
|
3830
|
+
}, z = s.axes.map((t) => {
|
|
3829
3831
|
const r = {
|
|
3830
3832
|
id: t.id,
|
|
3831
3833
|
crossAxisId: t.crossAx,
|
|
@@ -3863,7 +3865,7 @@ var vr = 4.13, wr = {
|
|
|
3863
3865
|
});
|
|
3864
3866
|
return e.frame({
|
|
3865
3867
|
inner: _,
|
|
3866
|
-
axes:
|
|
3868
|
+
axes: z,
|
|
3867
3869
|
groups: [V]
|
|
3868
3870
|
});
|
|
3869
3871
|
},
|
|
@@ -3965,7 +3967,7 @@ var vr = 4.13, wr = {
|
|
|
3965
3967
|
const s = e.text.width(t, a.labelFont);
|
|
3966
3968
|
return {
|
|
3967
3969
|
text: t,
|
|
3968
|
-
rect: Ue(_(r) - s / 2, w.y + w.height +
|
|
3970
|
+
rect: Ue(_(r) - s / 2, w.y + w.height + Ne(a.labelFont.size), s, y),
|
|
3969
3971
|
insets: {
|
|
3970
3972
|
left: 0,
|
|
3971
3973
|
top: 0,
|
|
@@ -4139,24 +4141,24 @@ function jr(t) {
|
|
|
4139
4141
|
function $r(t, e = "days", r = !1) {
|
|
4140
4142
|
const s = Math.floor(t);
|
|
4141
4143
|
if ("days" === e) return s;
|
|
4142
|
-
const i = s - (
|
|
4144
|
+
const i = s - (h(s, r) - 1);
|
|
4143
4145
|
if ("months" === e) return i;
|
|
4144
|
-
const n =
|
|
4145
|
-
return
|
|
4146
|
+
const n = u(i, r) % 12;
|
|
4147
|
+
return b(i, -n, !1, r);
|
|
4146
4148
|
}
|
|
4147
4149
|
function Wr(t, e, r, s = !1) {
|
|
4148
|
-
return "days" === r ? t + e :
|
|
4150
|
+
return "days" === r ? t + e : b(t, "months" === r ? e : 12 * e, !1, s);
|
|
4149
4151
|
}
|
|
4150
4152
|
function Gr(t, e, r, s = !1) {
|
|
4151
4153
|
if ("days" === r) return Math.floor(e) - Math.floor(t);
|
|
4152
|
-
const i =
|
|
4153
|
-
return "months" === r ? i : Math.floor(
|
|
4154
|
+
const i = u(Math.floor(e), s) - u(Math.floor(t), s);
|
|
4155
|
+
return "months" === r ? i : Math.floor(u(Math.floor(e), s) / 12) - Math.floor(u(Math.floor(t), s) / 12);
|
|
4154
4156
|
}
|
|
4155
4157
|
function Hr(t, e = !1) {
|
|
4156
4158
|
const r = [...new Set(t.filter(Number.isFinite).map((t) => Math.floor(t)))].sort((t, e) => t - e);
|
|
4157
4159
|
let s = "years";
|
|
4158
4160
|
for (let t = 1; t < r.length; t++) {
|
|
4159
|
-
const i =
|
|
4161
|
+
const i = u(r[t - 1], e), n = u(r[t], e);
|
|
4160
4162
|
if (i === n) return "days";
|
|
4161
4163
|
Math.floor(i / 12) === Math.floor(n / 12) && (s = "months");
|
|
4162
4164
|
}
|
|
@@ -5210,31 +5212,31 @@ var ds = .0122, ps = {
|
|
|
5210
5212
|
}, I = (t) => t.multiLevel && null !== T(t), F = (t) => I(t) ? "between" : f(t)?.crossBetween ?? "between", B = p.filter((t) => !He(t) && qe(t)), E = (t) => {
|
|
5211
5213
|
const e = this.lineHeight(t.labelFont);
|
|
5212
5214
|
return t.labelVertical ? (y.get(t.id)?.labels ?? []).reduce((t, e) => Math.max(t, Array.from(e).length), 1) * ls * e : e;
|
|
5213
|
-
}, V = B.reduce((t, e) => Math.max(t, E(e)), 0),
|
|
5215
|
+
}, V = B.reduce((t, e) => Math.max(t, E(e)), 0), z = {
|
|
5214
5216
|
b: 0,
|
|
5215
5217
|
t: 0,
|
|
5216
5218
|
l: 0,
|
|
5217
5219
|
r: 0
|
|
5218
|
-
},
|
|
5220
|
+
}, N = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), O = (t, e, r = 1 / 0) => {
|
|
5219
5221
|
const s = D.get(t.id);
|
|
5220
5222
|
if (!s) return 0;
|
|
5221
5223
|
const i = this.lineHeight(t.labelFont);
|
|
5222
5224
|
return s.slice(0, r).reduce((t, r, s) => t + r.depth + e * i + (s >= 1 ? .75 : 0), 0);
|
|
5223
5225
|
}, U = () => {
|
|
5224
|
-
|
|
5226
|
+
z.b = 0, z.t = 0;
|
|
5225
5227
|
for (const e of t.axes) {
|
|
5226
5228
|
if (!He(e) || !qe(e)) continue;
|
|
5227
5229
|
const t = b(e);
|
|
5228
5230
|
if ("b" !== t && "t" !== t) continue;
|
|
5229
|
-
const r = this.lineHeight(e.labelFont), s =
|
|
5230
|
-
|
|
5231
|
+
const r = this.lineHeight(e.labelFont), s = N.get(e.id)?.depth ?? r, i = c.get(e.id)?.side === t || d.get(e.id)?.side === t ? 6 : 0, n = this._chrome.categoryBand, o = O(e, n.perLine);
|
|
5232
|
+
z[t] = Math.max(z[t], s + n.perLine * r + n.offset + i + o + w(e));
|
|
5231
5233
|
}
|
|
5232
5234
|
}, R = (e = V / 2) => {
|
|
5233
5235
|
let r = h.y, s = h.y + h.height;
|
|
5234
5236
|
const i = this._chrome.overhang;
|
|
5235
|
-
V > 0 && (r = Math.max(r, h.y - i + e)), s -=
|
|
5237
|
+
V > 0 && (r = Math.max(r, h.y - i + e)), s -= z.b > 0 ? z.b : V > 0 ? Math.max(0, V / 2 - i) : 0, z.t > 0 && (r = Math.max(r, h.y + z.t));
|
|
5236
5238
|
for (const e of t.axes) {
|
|
5237
|
-
const t =
|
|
5239
|
+
const t = N.get(e.id);
|
|
5238
5240
|
if (!t || He(e) || "val" === e.type || !qe(e)) continue;
|
|
5239
5241
|
const i = (h.width + 12) / C(e) / 2;
|
|
5240
5242
|
r = Math.max(r, h.y + t.reach.end - i), s = Math.min(s, h.y + h.height - (t.reach.start - i));
|
|
@@ -5354,16 +5356,16 @@ var ds = .0122, ps = {
|
|
|
5354
5356
|
depth: i.depth + -.75
|
|
5355
5357
|
});
|
|
5356
5358
|
}
|
|
5357
|
-
return
|
|
5359
|
+
return N.set(t.id, i), i;
|
|
5358
5360
|
};
|
|
5359
5361
|
for (const e of t.axes) {
|
|
5360
5362
|
if (He(e) || !qe(e)) continue;
|
|
5361
5363
|
const t = W.has(e.id) ? 0 : "val" === e.type ? e.labelVertical ? ls * this.lineHeight(e.labelFont) : ($.get(e.id).measured ?? $.get(e.id).labels).reduce((t, r) => Math.max(t, this.textWidth(r, e.labelFont)), 0) : H(e, j.bottom - j.top).depth, r = b(e);
|
|
5362
5364
|
if ("l" !== r && "r" !== r) continue;
|
|
5363
5365
|
const s = this.lineHeight(e.labelFont), i = c.get(e.id)?.side === r || d.get(e.id)?.side === r ? 6 : 0, n = this._chrome.valueBand, o = O(e, n.perLine);
|
|
5364
|
-
|
|
5366
|
+
z[r] = Math.max(z[r], t + n.perLine * s + n.offset + i + o + w(e) + (G && "val" === e.type ? 5.7 : 0));
|
|
5365
5367
|
}
|
|
5366
|
-
for (const e of t.axes) He(e) && "val" !== e.type && qe(e) && H(e, h.width -
|
|
5368
|
+
for (const e of t.axes) He(e) && "val" !== e.type && qe(e) && H(e, h.width - z.l - z.r);
|
|
5367
5369
|
U();
|
|
5368
5370
|
let q = V / 2;
|
|
5369
5371
|
if (g && B.length > 0) {
|
|
@@ -5374,11 +5376,11 @@ var ds = .0122, ps = {
|
|
|
5374
5376
|
}, 0), G && (q += 1.05);
|
|
5375
5377
|
}
|
|
5376
5378
|
const { top: K, bottom: Y } = R(g ? q : void 0), X = Y - K;
|
|
5377
|
-
let Z = h.x +
|
|
5379
|
+
let Z = h.x + z.l, J = h.x + h.width - z.r - this._chrome.insideRight;
|
|
5378
5380
|
for (const e of t.axes) {
|
|
5379
5381
|
if (!He(e) || !qe(e)) continue;
|
|
5380
5382
|
if ("val" !== e.type) {
|
|
5381
|
-
const t =
|
|
5383
|
+
const t = N.get(e.id), r = P(e) && 0 === t.rotation ? t.skip : 1, s = "midCat" === F(e) ? 0 : r * (h.width + 12) / C(e) / 2;
|
|
5382
5384
|
Z = Math.max(Z, h.x + t.reach.start - s), J = Math.min(J, h.x + h.width - (t.reach.end - s));
|
|
5383
5385
|
continue;
|
|
5384
5386
|
}
|
|
@@ -5584,7 +5586,7 @@ var ds = .0122, ps = {
|
|
|
5584
5586
|
const e = n ? i - t : t;
|
|
5585
5587
|
return s ? Q.x + e * Q.width / i : Q.y + Q.height - e * Q.height / i;
|
|
5586
5588
|
}, d = [];
|
|
5587
|
-
let p = (s ?
|
|
5589
|
+
let p = (s ? Ne(o.size) : ze(o.size)) + w(t) + e.depth;
|
|
5588
5590
|
for (const t of r) {
|
|
5589
5591
|
const e = p + (s ? ks(o.size) : Ss(o.size)), r = [];
|
|
5590
5592
|
for (const i of t.groups) {
|
|
@@ -5673,7 +5675,7 @@ var ds = .0122, ps = {
|
|
|
5673
5675
|
if (!e || !r) return null;
|
|
5674
5676
|
const { width: s, height: i } = e.size, n = "b" === e.side || "t" === e.side, o = b(t) ?? e.side;
|
|
5675
5677
|
let l, a;
|
|
5676
|
-
n ? (l = Q.x + Q.width - s, a = o === e.side ? e.at : "b" === o ? Q.y + Q.height +
|
|
5678
|
+
n ? (l = Q.x + Q.width - s, a = o === e.side ? e.at : "b" === o ? Q.y + Q.height + z.b + 6 : Q.y - z.t - 6 - i) : (a = Q.y, l = o === e.side ? e.at : "r" === o ? Q.x + Q.width + z.r + 6 : Q.x - z.l - 6 - s);
|
|
5677
5679
|
const u = r.rotation ?? 0;
|
|
5678
5680
|
return {
|
|
5679
5681
|
text: r.text,
|
|
@@ -5699,7 +5701,7 @@ var ds = .0122, ps = {
|
|
|
5699
5701
|
tickMark: t.majorTickMark,
|
|
5700
5702
|
tickLength: De(4),
|
|
5701
5703
|
labelFont: e && !W.has(t.id) ? Re(t.labelFont) : null,
|
|
5702
|
-
labelMargin: De((He(t) ?
|
|
5704
|
+
labelMargin: De((He(t) ? Ne(t.labelFont.size) : ze(t.labelFont.size)) + w(t)),
|
|
5703
5705
|
lineAt: Oe(ot(t)),
|
|
5704
5706
|
...lt(t),
|
|
5705
5707
|
title: pt(t),
|
|
@@ -5724,7 +5726,7 @@ var ds = .0122, ps = {
|
|
|
5724
5726
|
} : {}
|
|
5725
5727
|
};
|
|
5726
5728
|
}
|
|
5727
|
-
const n = A(t), o =
|
|
5729
|
+
const n = A(t), o = N.get(t.id), l = D.get(t.id);
|
|
5728
5730
|
return {
|
|
5729
5731
|
...i,
|
|
5730
5732
|
kind: "category",
|
|
@@ -5767,7 +5769,7 @@ function Is(t) {
|
|
|
5767
5769
|
var Fs = (t) => k.get("custom" === t.type ? `custom:${t.kind}` : t.type), Bs = (t, e) => e.some((e) => null !== sr(t, e, 3)), Es = (t, e) => e.some((e) => null !== sr(t, [e.from, e.to], 3)), Vs = (t) => {
|
|
5768
5770
|
const e = er(t);
|
|
5769
5771
|
return e ? Je(e, 3) : null;
|
|
5770
|
-
},
|
|
5772
|
+
}, zs = (t) => Vs(t.flatMap((t) => [t.from, t.to])), Ns = (t) => Vs(t.flat()), Ds = (t) => {
|
|
5771
5773
|
const e = [];
|
|
5772
5774
|
return "upDownBars" in t && t.upDownBars && e.push({
|
|
5773
5775
|
name: "upDownBars",
|
|
@@ -6251,9 +6253,9 @@ var $s = {
|
|
|
6251
6253
|
...r ? { letterSpacing: 0 } : {},
|
|
6252
6254
|
baseline: 0,
|
|
6253
6255
|
color: si(s),
|
|
6254
|
-
latin:
|
|
6255
|
-
eastAsian:
|
|
6256
|
-
complexScript:
|
|
6256
|
+
latin: f.ThemeFamily.Body,
|
|
6257
|
+
eastAsian: f.ThemeFamily.Body,
|
|
6258
|
+
complexScript: f.ThemeFamily.Body
|
|
6257
6259
|
} },
|
|
6258
6260
|
endRun: { language: "en-US" }
|
|
6259
6261
|
}]
|
|
@@ -6969,7 +6971,7 @@ function Bi(t, e) {
|
|
|
6969
6971
|
}
|
|
6970
6972
|
};
|
|
6971
6973
|
}
|
|
6972
|
-
var Ei = 500000001, Vi = 500000002,
|
|
6974
|
+
var Ei = 500000001, Vi = 500000002, zi = [
|
|
6973
6975
|
"spPr",
|
|
6974
6976
|
"marker",
|
|
6975
6977
|
"invertIfNegative",
|
|
@@ -6978,7 +6980,7 @@ var Ei = 500000001, Vi = 500000002, Ni = [
|
|
|
6978
6980
|
"smooth",
|
|
6979
6981
|
"bubble3D",
|
|
6980
6982
|
"bubbleSize"
|
|
6981
|
-
],
|
|
6983
|
+
], Ni = [
|
|
6982
6984
|
"hidden",
|
|
6983
6985
|
"layoutPr",
|
|
6984
6986
|
"cumulativeLine",
|
|
@@ -7093,10 +7095,10 @@ var Ei = 500000001, Vi = 500000002, Ni = [
|
|
|
7093
7095
|
const o = i.groups.every((t) => "custom" !== t.type && !Ri.has(t.type)) || i.groups.every((t) => "custom" === t.type), l = n.map(({ series: t, fromScatter: e }, i) => {
|
|
7094
7096
|
const n = ((t, e, r, s) => {
|
|
7095
7097
|
const i = {};
|
|
7096
|
-
for (const e of
|
|
7098
|
+
for (const e of zi) i[e] = t[e];
|
|
7097
7099
|
const n = { ...t };
|
|
7098
|
-
for (const t of Ni) delete n[t];
|
|
7099
7100
|
for (const t of zi) delete n[t];
|
|
7101
|
+
for (const t of Ni) delete n[t];
|
|
7100
7102
|
const o = i.spPr ?? i.points?.[0]?.spPr, l = mi({
|
|
7101
7103
|
...t,
|
|
7102
7104
|
spPr: o
|
|
@@ -7608,7 +7610,7 @@ var Ei = 500000001, Vi = 500000002, Ni = [
|
|
|
7608
7610
|
effects: []
|
|
7609
7611
|
} }))(e));
|
|
7610
7612
|
return i === s ? t : ((t, e, r) => "serLines" === e ? $i(t, "serLines", r ? [r] : void 0) : $i(t, e, r))(t, e, i);
|
|
7611
|
-
}), En = (t, e, r) => Bn(t, e, (t) => r ? t : void 0), Vn = (t, e, r) => Bn(t, e, (t) => Pn(t, r)),
|
|
7613
|
+
}), En = (t, e, r) => Bn(t, e, (t) => r ? t : void 0), Vn = (t, e, r) => Bn(t, e, (t) => Pn(t, r)), zn = (t, e) => (r) => qi(r, t, (t) => {
|
|
7612
7614
|
const r = t.upDownBars, s = e(r ?? ((t) => {
|
|
7613
7615
|
const e = (t) => ({
|
|
7614
7616
|
type: "solid",
|
|
@@ -7649,7 +7651,7 @@ var Ei = 500000001, Vi = 500000002, Ni = [
|
|
|
7649
7651
|
};
|
|
7650
7652
|
})(t));
|
|
7651
7653
|
return s === r ? t : $i(t, "upDownBars", s);
|
|
7652
|
-
}),
|
|
7654
|
+
}), Nn = (t, e) => zn(t, (t) => e ? t : void 0), Dn = (t, e) => zn(t, (t) => $i(t, "gapWidth", e)), On = (t, e, r) => zn(t, (t) => {
|
|
7653
7655
|
const i = Pn(t[e] ?? {}, r);
|
|
7654
7656
|
return i === t[e] ? t : {
|
|
7655
7657
|
...t,
|
|
@@ -7679,7 +7681,7 @@ var Ei = 500000001, Vi = 500000002, Ni = [
|
|
|
7679
7681
|
type: "solid",
|
|
7680
7682
|
color: e.color
|
|
7681
7683
|
})), void 0 !== e.family) {
|
|
7682
|
-
const t = e.family ??
|
|
7684
|
+
const t = e.family ?? f.ThemeFamily.Body;
|
|
7683
7685
|
r = $i(r, "latin", t), r = $i(r, "eastAsian", t), r = $i(r, "complexScript", t);
|
|
7684
7686
|
}
|
|
7685
7687
|
return void 0 !== e.fallbacks && (r = $i(r, "fallbacks", e.fallbacks?.length ? [...e.fallbacks] : void 0)), r;
|
|
@@ -8110,7 +8112,7 @@ function Ao(t, e, r = "category", s) {
|
|
|
8110
8112
|
}(t, e);
|
|
8111
8113
|
return "bubble" === r ? function(t, e) {
|
|
8112
8114
|
const r = Bo(t), s = t.rows - r.rows, i = t.cols - r.cols;
|
|
8113
|
-
if (e) return ("columns" === e ? t.cols : t.rows) % 2 == 1 &&
|
|
8115
|
+
if (e) return ("columns" === e ? t.cols : t.rows) % 2 == 1 && No(t, e, 0) ? Do(t, e) : Oo(t, r, e);
|
|
8114
8116
|
if (r.cols > 0 && function(t, e) {
|
|
8115
8117
|
for (let r = e.r0; r <= e.r1; r++) for (let s = e.c0; s <= e.c1; s++) if ("text" === t.kind(r, s)) return !0;
|
|
8116
8118
|
return !1;
|
|
@@ -8129,8 +8131,8 @@ function Ao(t, e, r = "category", s) {
|
|
|
8129
8131
|
let a;
|
|
8130
8132
|
a = o !== l ? l ? "columns" : "rows" : t.rows !== t.cols ? t.rows > t.cols ? "columns" : "rows" : l ? "columns" : "rows";
|
|
8131
8133
|
return Do(t, a);
|
|
8132
|
-
}(i ?? Io(t[0], e), s) : i ?
|
|
8133
|
-
const i = Io(t[0], e), n = Bo(i), o = s ?? Eo(i, n), l =
|
|
8134
|
+
}(i ?? Io(t[0], e), s) : i ? zo(i, r, s) : function(t, e, r, s) {
|
|
8135
|
+
const i = Io(t[0], e), n = Bo(i), o = s ?? Eo(i, n), l = zo(i, r, o), a = l.series[0]?.categories ?? null;
|
|
8134
8136
|
for (let r = 1; r < t.length; r++) {
|
|
8135
8137
|
const s = Io(t[r], e), i = "columns" === o ? Math.min(n.rows, s.rows - 1) : Math.min(n.cols, s.cols - 1), { lines: u } = Vo(s, "columns" === o ? {
|
|
8136
8138
|
rows: i,
|
|
@@ -8255,7 +8257,7 @@ function Vo(t, e, r) {
|
|
|
8255
8257
|
} : null
|
|
8256
8258
|
};
|
|
8257
8259
|
}
|
|
8258
|
-
function
|
|
8260
|
+
function zo(t, e, r) {
|
|
8259
8261
|
const s = Bo(t), i = r ?? Eo(t, s), { lines: n, categories: o } = Vo(t, s, i), l = (e) => e ? t.toAreas(e) : null;
|
|
8260
8262
|
let a = l(o), u = 0;
|
|
8261
8263
|
"scatter" === e && !a && n.length > 1 && (a = t.toAreas(n[0].values), u = 1);
|
|
@@ -8270,7 +8272,7 @@ function No(t, e, r) {
|
|
|
8270
8272
|
series: h
|
|
8271
8273
|
};
|
|
8272
8274
|
}
|
|
8273
|
-
function
|
|
8275
|
+
function No(t, e, r) {
|
|
8274
8276
|
const s = "columns" === e ? t.rows : t.cols;
|
|
8275
8277
|
for (let i = 0; i < s; i++) {
|
|
8276
8278
|
const s = "columns" === e ? t.kind(i, r) : t.kind(r, i);
|
|
@@ -8291,7 +8293,7 @@ function Do(t, e) {
|
|
|
8291
8293
|
r1: i,
|
|
8292
8294
|
c1: t.cols - 1
|
|
8293
8295
|
});
|
|
8294
|
-
const i = s % 2 == 1 &&
|
|
8296
|
+
const i = s % 2 == 1 && No(t, e, 0), n = i ? t.toAreas(r[0]) : null;
|
|
8295
8297
|
return Uo(t, e, r.slice(i ? 1 : 0).map((t) => ({
|
|
8296
8298
|
name: null,
|
|
8297
8299
|
values: t
|
|
@@ -8332,9 +8334,9 @@ function $o(t) {
|
|
|
8332
8334
|
return r;
|
|
8333
8335
|
}
|
|
8334
8336
|
var Wo = (t, e) => {
|
|
8335
|
-
const r =
|
|
8336
|
-
return void 0 === r ? t : ("number" == typeof r ?
|
|
8337
|
-
}, Go = (t, e) => null == t ? "blank" : "string" == typeof t ? "text" : "number" == typeof t && e &&
|
|
8337
|
+
const r = c[t];
|
|
8338
|
+
return void 0 === r ? t : ("number" == typeof r ? v(r, e) : void 0) ?? a(r);
|
|
8339
|
+
}, Go = (t, e) => null == t ? "blank" : "string" == typeof t ? "text" : "number" == typeof t && e && x.getEngine().isDateFormat(e) ? "date" : "number", Ho = class {
|
|
8338
8340
|
constructor(t) {
|
|
8339
8341
|
this._sheet = t, this._blocks = [];
|
|
8340
8342
|
}
|
|
@@ -8377,8 +8379,8 @@ var Wo = (t, e) => {
|
|
|
8377
8379
|
return this._at(t, e).format;
|
|
8378
8380
|
}
|
|
8379
8381
|
}, qo = (t, e) => {
|
|
8380
|
-
const i =
|
|
8381
|
-
return `${i}!${e.rowStart === e.rowEnd && e.colStart === e.colEnd ? l : `${l}:${
|
|
8382
|
+
const i = s(t.getName()), n = (t, e) => `$${r(e)}$${o(t)}`, l = n(e.rowStart, e.colStart);
|
|
8383
|
+
return `${i}!${e.rowStart === e.rowEnd && e.colStart === e.colEnd ? l : `${l}:${n(e.rowEnd, e.colEnd)}`}`;
|
|
8382
8384
|
}, Ko = (t) => qo(t.getWorksheet(), t.getCoords()), Yo = (t) => {
|
|
8383
8385
|
const e = /^\{(.*)\}$/s.exec(t.trim());
|
|
8384
8386
|
if (!e) return null;
|
|
@@ -8425,7 +8427,7 @@ var Wo = (t, e) => {
|
|
|
8425
8427
|
};
|
|
8426
8428
|
};
|
|
8427
8429
|
function Jo(t, e, r) {
|
|
8428
|
-
let s,
|
|
8430
|
+
let s, i = null;
|
|
8429
8431
|
if ("string" == typeof t) {
|
|
8430
8432
|
const o = t.trim().replace(/^=/, ""), l = Yo(o);
|
|
8431
8433
|
if (l) {
|
|
@@ -8440,13 +8442,13 @@ function Jo(t, e, r) {
|
|
|
8440
8442
|
return l.numbers || "values" === e ? { numLit: t } : { strLit: t };
|
|
8441
8443
|
}
|
|
8442
8444
|
if (!o) throw new M(L("error.chart.noData"));
|
|
8443
|
-
|
|
8444
|
-
} else
|
|
8445
|
+
i = Xo(o, r), s = i && n(o) ? Ko(i) : o;
|
|
8446
|
+
} else i = t, s = Ko(t);
|
|
8445
8447
|
if ("values" === e) return { numRef: { f: s } };
|
|
8446
|
-
if (!
|
|
8447
|
-
const o =
|
|
8448
|
+
if (!i || i.isInvalid()) return { strRef: { f: s } };
|
|
8449
|
+
const o = i.getCoords();
|
|
8448
8450
|
if (o.rowEnd > o.rowStart && o.colEnd > o.colStart) return { multiLvlStrRef: { f: s } };
|
|
8449
|
-
const l =
|
|
8451
|
+
const l = i.getValues(), a = i.getNumberFormats();
|
|
8450
8452
|
let u = 0;
|
|
8451
8453
|
for (let t = 0; t < l.length; t++) for (let e = 0; e < l[t].length; e++) {
|
|
8452
8454
|
const r = Go(l[t][e], a[t]?.[e] ?? "");
|
|
@@ -8545,7 +8547,7 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
8545
8547
|
}, Cl = (t) => ({
|
|
8546
8548
|
type: "solid",
|
|
8547
8549
|
color: t
|
|
8548
|
-
}), Al = (t, e, r, s, i) => new
|
|
8550
|
+
}), Al = (t, e, r, s, i) => new d({
|
|
8549
8551
|
getData: () => {
|
|
8550
8552
|
const t = e();
|
|
8551
8553
|
return {
|
|
@@ -8574,7 +8576,7 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
8574
8576
|
}
|
|
8575
8577
|
getFamily() {
|
|
8576
8578
|
const t = this._pick("latin");
|
|
8577
|
-
return t && t !==
|
|
8579
|
+
return t && t !== f.ThemeFamily.Body ? t === f.ThemeFamily.Heading ? this._host.theme().majorFont() : t : this._host.theme().minorFont();
|
|
8578
8580
|
}
|
|
8579
8581
|
setFamily(t, e) {
|
|
8580
8582
|
return this.update({ family: t }, e);
|
|
@@ -8587,7 +8589,7 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
8587
8589
|
}
|
|
8588
8590
|
getThemeFamily() {
|
|
8589
8591
|
const t = this._pick("latin");
|
|
8590
|
-
return t && t !==
|
|
8592
|
+
return t && t !== f.ThemeFamily.Body ? t === f.ThemeFamily.Heading ? t : null : f.ThemeFamily.Body;
|
|
8591
8593
|
}
|
|
8592
8594
|
getFallbacks() {
|
|
8593
8595
|
return this._pick("fallbacks") ?? [];
|
|
@@ -8614,19 +8616,19 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
8614
8616
|
return this.update({ bold: t }, e);
|
|
8615
8617
|
}
|
|
8616
8618
|
getItalic() {
|
|
8617
|
-
return this._pick("style") ===
|
|
8619
|
+
return this._pick("style") === p.Style.Italic;
|
|
8618
8620
|
}
|
|
8619
8621
|
setItalic(t, e) {
|
|
8620
8622
|
return this.update({ italic: t }, e);
|
|
8621
8623
|
}
|
|
8622
8624
|
getUnderline() {
|
|
8623
|
-
return this._pick("underline") ??
|
|
8625
|
+
return this._pick("underline") ?? p.UnderlineStyle.None;
|
|
8624
8626
|
}
|
|
8625
8627
|
setUnderline(t, e) {
|
|
8626
8628
|
return this.update({ underline: t }, e);
|
|
8627
8629
|
}
|
|
8628
8630
|
getStrike() {
|
|
8629
|
-
return this._pick("strike") ??
|
|
8631
|
+
return this._pick("strike") ?? p.StrikeStyle.None;
|
|
8630
8632
|
}
|
|
8631
8633
|
setStrike(t, e) {
|
|
8632
8634
|
return this.update({ strike: t }, e);
|
|
@@ -8657,14 +8659,14 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
8657
8659
|
void 0 !== t.family && (s.family = t.family), void 0 !== t.fallbacks && (s.fallbacks = t.fallbacks), void 0 !== t.size && (s.size = r(t.size, (t) => t > 0) ?? this._defaults.size);
|
|
8658
8660
|
const i = t.weight ?? (void 0 === t.bold || null === t.bold ? t.bold : t.bold ? 700 : 400);
|
|
8659
8661
|
void 0 !== i && (s.weight = r("string" == typeof i ? "bold" === i ? 700 : "normal" === i ? 400 : Number(i) : i, (t) => t >= 1 && t <= 1e3) ?? (this._defaults.bold ? 700 : 400));
|
|
8660
|
-
const n = t.style ?? (void 0 === t.italic || null === t.italic ? t.italic : t.italic ?
|
|
8661
|
-
if (void 0 !== n && (s.italic = n ===
|
|
8662
|
-
const r = !0 === t.underline ?
|
|
8663
|
-
r !==
|
|
8662
|
+
const n = t.style ?? (void 0 === t.italic || null === t.italic ? t.italic : t.italic ? p.Style.Italic : p.Style.Normal);
|
|
8663
|
+
if (void 0 !== n && (s.italic = n === p.Style.Italic), void 0 !== t.color && (s.color = null === t.color ? null : Bl(this._host, String(t.color))), void 0 !== t.underline) {
|
|
8664
|
+
const r = !0 === t.underline ? p.UnderlineStyle.Single : t.underline || p.UnderlineStyle.None;
|
|
8665
|
+
r !== p.UnderlineStyle.SingleAccounting && r !== p.UnderlineStyle.DoubleAccounting && Object.values(p.UnderlineStyle).includes(r) || e(r), s.underline = r;
|
|
8664
8666
|
}
|
|
8665
8667
|
if (void 0 !== t.strike) {
|
|
8666
|
-
const r = t.strike ??
|
|
8667
|
-
Object.values(
|
|
8668
|
+
const r = t.strike ?? p.StrikeStyle.None;
|
|
8669
|
+
Object.values(p.StrikeStyle).includes(r) || e(r), s.strike = r;
|
|
8668
8670
|
}
|
|
8669
8671
|
return void 0 !== t.letterSpacing && (s.letterSpacing = r(t.letterSpacing, (t) => Math.abs(t) <= 4e3) ?? 0), void 0 !== t.baseline && (s.baseline = r(t.baseline, () => !0) ?? 0), this._write(s);
|
|
8670
8672
|
}
|
|
@@ -8687,11 +8689,11 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
8687
8689
|
}
|
|
8688
8690
|
toCSS(t, e = 1) {
|
|
8689
8691
|
return {
|
|
8690
|
-
fontFamily:
|
|
8691
|
-
fontSize: this.getSize() *
|
|
8692
|
+
fontFamily: g(this.getFamily(), this.getFallbacks()),
|
|
8693
|
+
fontSize: this.getSize() * p.getDeviceScale() * e + "px",
|
|
8692
8694
|
fontWeight: this.getWeight(),
|
|
8693
|
-
fontStyle: this.getItalic() ?
|
|
8694
|
-
textDecoration:
|
|
8695
|
+
fontStyle: this.getItalic() ? p.Style.Italic : p.Style.Normal,
|
|
8696
|
+
textDecoration: m(this.getUnderline(), this.getStrike()),
|
|
8695
8697
|
letterSpacing: `${this.getLetterSpacing()}pt`,
|
|
8696
8698
|
color: this.getColor().toCSS(t)
|
|
8697
8699
|
};
|
|
@@ -8701,7 +8703,7 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
8701
8703
|
family: this.getThemeFamily() ?? this.getFamily(),
|
|
8702
8704
|
size: this.getSize(),
|
|
8703
8705
|
weight: this.getWeight(),
|
|
8704
|
-
style: this.getItalic() ?
|
|
8706
|
+
style: this.getItalic() ? p.Style.Italic : p.Style.Normal,
|
|
8705
8707
|
color: String(this.getColor()),
|
|
8706
8708
|
underline: this.getUnderline(),
|
|
8707
8709
|
strike: this.getStrike(),
|
|
@@ -8806,7 +8808,7 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
8806
8808
|
const s = [];
|
|
8807
8809
|
for (let i = 0; i < e; i++) s.push(El(t, i, () => r(i)));
|
|
8808
8810
|
return s;
|
|
8809
|
-
},
|
|
8811
|
+
}, zl = class {
|
|
8810
8812
|
constructor(t) {
|
|
8811
8813
|
this._host = t, this._styleCache = null;
|
|
8812
8814
|
}
|
|
@@ -8890,7 +8892,7 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
8890
8892
|
get isIChartArea() {
|
|
8891
8893
|
return !0;
|
|
8892
8894
|
}
|
|
8893
|
-
},
|
|
8895
|
+
}, Nl = class {
|
|
8894
8896
|
constructor(t) {
|
|
8895
8897
|
this._host = t, this._styleCache = null;
|
|
8896
8898
|
}
|
|
@@ -10094,7 +10096,7 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
10094
10096
|
}
|
|
10095
10097
|
getSecondPlotPoints() {
|
|
10096
10098
|
const t = this.found()?.group;
|
|
10097
|
-
return "ofPie" !== t?.type ? [] :
|
|
10099
|
+
return "ofPie" !== t?.type ? [] : zr(t, this.resolved()?.values ?? []).flatMap((t, e) => t ? [e] : []);
|
|
10098
10100
|
}
|
|
10099
10101
|
setSecondPlotPoints(t, e) {
|
|
10100
10102
|
return this.update({ secondPlotPoints: t }, e);
|
|
@@ -10107,7 +10109,7 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
10107
10109
|
if ("value" in t && (!Number.isFinite(t.value) || t.value < 0 || "cust" === e.splitType)) throw new M(L("error.chart.notValidForType", { type: "splitValue" }));
|
|
10108
10110
|
if ("points" in t && t.points.some((t) => !Number.isInteger(t) || t < 0 || t >= r.length)) throw new M(L("error.chart.notValidForType", { type: "secondPlotPoints" }));
|
|
10109
10111
|
return ((t, e, r) => (s) => qi(s, t, (t) => {
|
|
10110
|
-
const s = t.splitType ?? "auto", i = () =>
|
|
10112
|
+
const s = t.splitType ?? "auto", i = () => zr(t, r).flatMap((t, e) => t ? [e] : []);
|
|
10111
10113
|
let n = t;
|
|
10112
10114
|
return "points" in e ? (n = $i(n, "splitType", "cust"), n = $i(n, "splitPos", void 0), $i(n, "custSplit", [...new Set(e.points)].sort((t, e) => t - e))) : "value" in e ? ("auto" === s && (n = $i(n, "splitType", "pos")), $i(n, "splitPos", e.value)) : e.type === s ? t : (n = $i(n, "splitType", e.type), "cust" === e.type ? (n = $i(n, "splitPos", void 0), $i(n, "custSplit", i())) : (n = $i(n, "custSplit", void 0), $i(n, "splitPos", "pos" === e.type ? i().length : 1)));
|
|
10113
10115
|
}))(this.idx(), t, r);
|
|
@@ -10177,7 +10179,7 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
10177
10179
|
if (!Wt(Bt(n), $t({
|
|
10178
10180
|
...t,
|
|
10179
10181
|
groups: u
|
|
10180
|
-
}, c))) throw new Error("Those axes hold groups this series cannot share them with
|
|
10182
|
+
}, c))) throw new Error("Those axes hold groups this series cannot share them with.");
|
|
10181
10183
|
} else {
|
|
10182
10184
|
const t = Yt(Bt(n), s, !1);
|
|
10183
10185
|
h = [...h, ...t.axes], c = t.axIds;
|
|
@@ -10186,7 +10188,7 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
10186
10188
|
...t,
|
|
10187
10189
|
groups: u,
|
|
10188
10190
|
axes: h
|
|
10189
|
-
}, p = u.findIndex((t) =>
|
|
10191
|
+
}, p = u.findIndex((t) => zt(t, n) && Dt(t, c));
|
|
10190
10192
|
if (-1 !== p) u = [...u], u[p] = {
|
|
10191
10193
|
...u[p],
|
|
10192
10194
|
series: Gt(u[p].series, i.series)
|
|
@@ -11211,9 +11213,9 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
11211
11213
|
}
|
|
11212
11214
|
edits(t) {
|
|
11213
11215
|
const e = this._check();
|
|
11214
|
-
if (!1 === t.visible) return [
|
|
11216
|
+
if (!1 === t.visible) return [Nn(e, !1)];
|
|
11215
11217
|
const r = [];
|
|
11216
|
-
if (t.visible && r.push(
|
|
11218
|
+
if (t.visible && r.push(Nn(e, !0)), void 0 !== t.gapWidth) {
|
|
11217
11219
|
const s = t.gapWidth;
|
|
11218
11220
|
if (!Number.isFinite(s) || s < 0 || s > 500) throw new M(L("error.chart.notValidForType", { type: "gapWidth" }));
|
|
11219
11221
|
r.push(Dn(e, Math.round(s)));
|
|
@@ -11616,7 +11618,7 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
11616
11618
|
update(t, e) {
|
|
11617
11619
|
return this._host.edit(_l, ji(this.edits(t)), e), this;
|
|
11618
11620
|
}
|
|
11619
|
-
},
|
|
11621
|
+
}, za = class {
|
|
11620
11622
|
constructor(t) {
|
|
11621
11623
|
this._host = t, this._styleCache = null;
|
|
11622
11624
|
}
|
|
@@ -11710,7 +11712,7 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
11710
11712
|
update(t, e) {
|
|
11711
11713
|
return this._host.edit(kl, ji(this.edits(t)), e), this;
|
|
11712
11714
|
}
|
|
11713
|
-
},
|
|
11715
|
+
}, Na = class {
|
|
11714
11716
|
constructor(t, e) {
|
|
11715
11717
|
this._host = t, this._index = e, this._upDownBars = null, this._lines = /* @__PURE__ */ new Map();
|
|
11716
11718
|
}
|
|
@@ -11925,7 +11927,7 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
11925
11927
|
return e;
|
|
11926
11928
|
}, Ra = class r extends t {
|
|
11927
11929
|
constructor(t) {
|
|
11928
|
-
super(t), 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 = t.getStyles ?? null, this._canHold = !!t.addWatch, t.json && (this._part =
|
|
11930
|
+
super(t), 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 = t.getStyles ?? null, this._canHold = !!t.addWatch, t.json && (this._part = i.fromJSON(t.json.part, t.fromResourceId), this._updateState({ data: t.json }), this._partModel = t.json.model ?? null), this._syncHolds();
|
|
11929
11931
|
}
|
|
11930
11932
|
_syncHolds() {
|
|
11931
11933
|
if (!this._canHold) return;
|
|
@@ -11981,9 +11983,9 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
11981
11983
|
key: `${n}-line`,
|
|
11982
11984
|
type: "paretoLine",
|
|
11983
11985
|
name: r.text(i.cumulativeLine.tx),
|
|
11984
|
-
values:
|
|
11985
|
-
categories:
|
|
11986
|
-
sizes:
|
|
11986
|
+
values: N,
|
|
11987
|
+
categories: N,
|
|
11988
|
+
sizes: N,
|
|
11987
11989
|
secondary: !1,
|
|
11988
11990
|
group: t
|
|
11989
11991
|
}
|
|
@@ -12024,7 +12026,7 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
12024
12026
|
}
|
|
12025
12027
|
_rangeAt(t) {
|
|
12026
12028
|
const e = this._formulaAt(t);
|
|
12027
|
-
if (!e || !
|
|
12029
|
+
if (!e || !n(e)) return null;
|
|
12028
12030
|
try {
|
|
12029
12031
|
return this._resolveRange(e);
|
|
12030
12032
|
} catch {
|
|
@@ -12060,7 +12062,7 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
12060
12062
|
group: (e) => {
|
|
12061
12063
|
const r = this._getParts().groups;
|
|
12062
12064
|
let s = r.get(e);
|
|
12063
|
-
return s || r.set(e, s = new
|
|
12065
|
+
return s || r.set(e, s = new Na(t, e)), s;
|
|
12064
12066
|
},
|
|
12065
12067
|
model: () => this._getModel(),
|
|
12066
12068
|
facts: () => this._getFacts(),
|
|
@@ -12079,14 +12081,14 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
12079
12081
|
};
|
|
12080
12082
|
return this._parts = {
|
|
12081
12083
|
host: t,
|
|
12082
|
-
chartArea: new
|
|
12083
|
-
title: new
|
|
12084
|
+
chartArea: new zl(t),
|
|
12085
|
+
title: new Nl(t),
|
|
12084
12086
|
legend: new Rl(t),
|
|
12085
12087
|
axes: new Yl(t),
|
|
12086
12088
|
series: /* @__PURE__ */ new Map(),
|
|
12087
12089
|
groups: /* @__PURE__ */ new Map(),
|
|
12088
12090
|
plotArea: new Va(t),
|
|
12089
|
-
dataTable: new
|
|
12091
|
+
dataTable: new za(t),
|
|
12090
12092
|
labels: new Da(t, () => this._seriesParts())
|
|
12091
12093
|
};
|
|
12092
12094
|
}
|
|
@@ -12271,11 +12273,11 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
12271
12273
|
if (!u) return null;
|
|
12272
12274
|
if ("title" === n) return u.title?.rect ?? null;
|
|
12273
12275
|
const h = t.groups.find((t) => "radar" === t.type);
|
|
12274
|
-
if ("majorGridlines" === n) return h && h.axisIds[1] === u.id ? Vs(h.rings.flat()) : u.gridlines ?
|
|
12276
|
+
if ("majorGridlines" === n) return h && h.axisIds[1] === u.id ? Vs(h.rings.flat()) : u.gridlines ? zs(u.gridlines) : null;
|
|
12275
12277
|
if (void 0 !== n) return null;
|
|
12276
12278
|
if (!u.deleted) return Os(u, t.plotArea);
|
|
12277
12279
|
const c = t.groups.find((t) => "funnel" === t.type);
|
|
12278
|
-
return c && c.axisIds[0] === u.id ? tr([...c.categoryLabels.map((t) => t?.rect), c.axisLine ?
|
|
12280
|
+
return c && c.axisIds[0] === u.id ? tr([...c.categoryLabels.map((t) => t?.rect), c.axisLine ? zs([c.axisLine]) : null]) : h && h.axisIds[0] === u.id ? tr([...h.categoryLabels.map((t) => t?.rect), zs(h.spokes)]) : h && h.axisIds[1] === u.id ? tr(h.valueLabels.map((t) => t.rect)) : null;
|
|
12279
12281
|
}
|
|
12280
12282
|
case "series": {
|
|
12281
12283
|
const [e, s, o, l, ...a] = i;
|
|
@@ -12297,11 +12299,11 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
12297
12299
|
if ("dataLabels" === s) return void 0 === o ? tr((d.labels ?? []).map((t) => t?.rect)) : null;
|
|
12298
12300
|
if ("errorBars" === s) {
|
|
12299
12301
|
const t = d.errorBars?.find((t) => t.direction === o);
|
|
12300
|
-
return t && void 0 === l ?
|
|
12302
|
+
return t && void 0 === l ? Ns(t.paths) : null;
|
|
12301
12303
|
}
|
|
12302
12304
|
if ("trendlines" === s) {
|
|
12303
12305
|
const t = d.trendlines?.[n(o)];
|
|
12304
|
-
return t ? void 0 === l ?
|
|
12306
|
+
return t ? void 0 === l ? Ns(t.paths) : "label" === l ? t.label?.rect ?? null : null : null;
|
|
12305
12307
|
}
|
|
12306
12308
|
if ("points" !== s) return null;
|
|
12307
12309
|
const p = n(o);
|
|
@@ -12314,7 +12316,7 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
12314
12316
|
if (!l) return null;
|
|
12315
12317
|
if (void 0 === s) return tr(l.series.map((t, e) => Us(l, e)));
|
|
12316
12318
|
const a = Ds(l).find((t) => t.name === s);
|
|
12317
|
-
return a ? a.rects ? tr(a.rects) :
|
|
12319
|
+
return a ? a.rects ? tr(a.rects) : zs(a.segments ?? []) : null;
|
|
12318
12320
|
}
|
|
12319
12321
|
}
|
|
12320
12322
|
}(s, r, this._hitNames(s)) : null;
|
|
@@ -12557,7 +12559,7 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
12557
12559
|
}
|
|
12558
12560
|
if ("upDownBarsNone" === e || "upDownBarsShow" === e) {
|
|
12559
12561
|
const t = n(Pa);
|
|
12560
|
-
return 0 === t.length ? r() : t.map((t) =>
|
|
12562
|
+
return 0 === t.length ? r() : t.map((t) => Nn(t.idx(), "upDownBarsShow" === e));
|
|
12561
12563
|
}
|
|
12562
12564
|
return "plotAreaNone" === e ? t.plotArea.edits({ style: {
|
|
12563
12565
|
fill: { type: "none" },
|
|
@@ -12960,12 +12962,12 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
12960
12962
|
toJSON(t) {
|
|
12961
12963
|
const e = this._getState();
|
|
12962
12964
|
if (!e?.data) return null;
|
|
12963
|
-
const r = { ...e.data }, s = this._getModel(),
|
|
12964
|
-
if (s &&
|
|
12965
|
-
else if (s &&
|
|
12965
|
+
const r = { ...e.data }, s = this._getModel(), n = this._getRead()?.slots, o = (t) => this._movedAt(t);
|
|
12966
|
+
if (s && n && !W(s)) r.model = it(s, n, { movedAt: o });
|
|
12967
|
+
else if (s && n) {
|
|
12966
12968
|
const t = /* @__PURE__ */ new Map();
|
|
12967
|
-
r.model = it(s,
|
|
12968
|
-
movedAt:
|
|
12969
|
+
r.model = it(s, n, {
|
|
12970
|
+
movedAt: o,
|
|
12969
12971
|
cacheOf: (e, r) => {
|
|
12970
12972
|
const s = "multiLvlStr" === r ? null : this._plotRange(e);
|
|
12971
12973
|
if (!s) return this._cacheOf(e, r);
|
|
@@ -12974,7 +12976,7 @@ var bl = P("op.deleteChartSeries"), vl = P("op.setChartSeriesOrder"), wl = P("op
|
|
|
12974
12976
|
}
|
|
12975
12977
|
});
|
|
12976
12978
|
}
|
|
12977
|
-
const l =
|
|
12979
|
+
const l = i.toJSON(this._part, t);
|
|
12978
12980
|
return l ? ((r.model ?? null) !== this._partModel && delete l.xml, r.part = l) : delete r.part, r;
|
|
12979
12981
|
}
|
|
12980
12982
|
getTypeDescription() {
|