@sheetxl/sdk 0.8.0-beta.1 → 0.8.0-beta.11
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/README.md +1 -1
- package/THIRD-PARTY-NOTICES.md +1 -1
- package/browser/esm/B7aUIvgUjncMMD_i.mjs +394 -0
- package/browser/esm/BFagR2JeWs74iAG3.mjs +171 -0
- package/browser/esm/BGOFfpxr2jPIdqmV.mjs +40 -0
- package/browser/esm/BLoUBId2xZpXAK_H.mjs +698 -0
- package/browser/esm/BMyDRQ716j79h_bH.mjs +86 -0
- package/browser/esm/BVDiOXGMc5_FMGfy.mjs +400 -0
- package/browser/esm/BjkCiv5Jz6WYKZeu.mjs +598 -0
- package/browser/esm/BkBhLS0l6z8sxI6D.mjs +441 -0
- package/browser/esm/BnG31I6Oj_HEtSPS.mjs +167 -0
- package/browser/esm/BoV6zPBnfqCBCqZ7.mjs +7729 -0
- package/browser/esm/BpgskG1Er_lGQ_yS.mjs +142 -0
- package/browser/esm/BtvLTTfSBdAKplVG.mjs +466 -0
- package/browser/esm/C16ycKja6zG0crV_.mjs +55580 -0
- package/browser/esm/C2VbEI_XVAoseAwa.mjs +1552 -0
- package/browser/esm/C4MqfLn9Dm-l3OIk.mjs +540 -0
- package/browser/esm/C5E6zSGAALWf61n4.mjs +199 -0
- package/browser/esm/CHU6iu_WGlm7fLET.mjs +1001 -0
- package/browser/esm/CQYjO777cmAznUzK.mjs +527 -0
- package/browser/esm/CU3DmJ-YnVVrC1_k.mjs +1123 -0
- package/browser/esm/CV5EGEjG5_-CPpP0.mjs +8212 -0
- package/browser/esm/{uyWBMSIxMlt8n5Z3.mjs → CaB7J-xgfKO2uAkG.mjs} +2 -2
- package/browser/esm/CkxWugaJFjDGZNZ-.mjs +12 -0
- package/browser/esm/ClPfI4lODvCece29.mjs +632 -0
- package/browser/esm/ClbvFbFzFzXLBKNN.mjs +193 -0
- package/browser/esm/{DlPMeIyxT9tG_WDk.mjs → Ctjb0SsxV4K4MMqG.mjs} +179 -202
- package/browser/esm/D5np__Jb1euAyaLw.mjs +7 -0
- package/browser/esm/DEiPS3Dr-s4fPbVZ.mjs +607 -0
- package/browser/esm/DLLE0FZNsKxbBzRn.mjs +128 -0
- package/browser/esm/DWNzqw7DUKwoxjri.mjs +20 -0
- package/browser/esm/{B0HS42a7lga1k1U_.mjs → Dlmig06rIo7cInRk.mjs} +2 -2
- package/browser/esm/{f2G3QRgEbvFJcoa2.mjs → DvAaxH6z_tGvrRzl.mjs} +1704 -1008
- package/browser/esm/Dyq_ivuHvlXLwPCl.mjs +12831 -0
- package/browser/esm/PcHFjNzQsE54POri.mjs +1141 -0
- package/browser/esm/S2dNNx1a5ydRnARM.mjs +367 -0
- package/browser/esm/f1IoRb7tEb0QmCSt.mjs +110 -0
- package/browser/esm/gssVX_FH1XFN-twD.mjs +210 -0
- package/browser/esm/index.mjs +1759 -1161
- package/browser/esm/nvU0ClAbf0g94YBK.mjs +1695 -0
- package/browser/esm/zlLuW405RSguy4Kn.mjs +357 -0
- package/licenses/dependencies.txt +141 -141
- package/node/esm/2Kihw_-5lVTEnwMa.mjs +1132 -0
- package/node/esm/857CIBgQgGpnqrXk.mjs +199 -0
- package/node/esm/B084DssTcdBheTp_.mjs +7966 -0
- package/node/esm/B21JjOLghRoDOrkx.mjs +134 -0
- package/node/esm/BIRq1kT7lLRzns9t.mjs +610 -0
- package/node/esm/BIwObuhTJYf0jpUa.mjs +451 -0
- package/node/esm/Bbf1Pm9Gk7YpLTvg.mjs +12 -0
- package/node/esm/BqiexuA89caYnAPz.mjs +1135 -0
- package/node/esm/BrCKGFRsX_ezFJ4B.mjs +811 -0
- package/node/esm/CCN5vD410obwdz38.mjs +405 -0
- package/node/esm/{Cku7XiUvw1xrRasi.mjs → CDHdgJXH2vS71WMc.mjs} +1 -1
- package/node/esm/CGp6VZL-gZa9Uezx.mjs +1860 -0
- package/node/esm/CNCNJNg890KdgkWh.mjs +142 -0
- package/node/esm/CZICGK_ss0HoGHCP.mjs +7 -0
- package/node/esm/CZiqiay42tFTrLI4.mjs +171 -0
- package/node/esm/CdJHUJSBRHZoryPe.mjs +360 -0
- package/node/esm/Ct3h15sCus4Tgt6M.mjs +1762 -0
- package/node/esm/CwePQwTILHHjGDkZ.mjs +1033 -0
- package/node/esm/CzXT00vrQa1_gvW9.mjs +28 -0
- package/node/esm/D1TKBVmoKGAXf37B.mjs +402 -0
- package/node/esm/D2KBymQJd1XhpeQD.mjs +540 -0
- package/node/esm/D6e2z7eZpxOJXHc7.mjs +1783 -0
- package/node/esm/D8zEN-6ZdDqDvTxM.mjs +639 -0
- package/node/esm/DNRhGK-8Tr9xcRyc.mjs +8320 -0
- package/node/esm/DOU54VsOjG-m-NyQ.mjs +210 -0
- package/node/esm/DUTskXCXref-IJnI.mjs +133 -0
- package/node/esm/D_t5AUxSm7_icjzq.mjs +638 -0
- package/node/esm/Db0v7zXNnyjBIjjI.mjs +372 -0
- package/node/esm/De2IONBxQhz-Qbyh.mjs +596 -0
- package/node/esm/Df1bL6VFvrqIdSLB.mjs +40 -0
- package/node/esm/DkwIPzKc3UwdUIfM.mjs +86 -0
- package/node/esm/DrTZbfemSLq2mseG.mjs +111 -0
- package/node/esm/OVfaSb506tNSIvbv.mjs +57107 -0
- package/node/esm/cGwrLA1RCE-WhJ7w.mjs +255 -0
- package/node/esm/index.mjs +2873 -53929
- package/node/esm/mFiBSM7XgBHV9AY7.mjs +13010 -0
- package/node/esm/yavzZOiZW_EjG9lE.mjs +15 -0
- package/package.json +15 -17
- package/resources/contents.json +184 -0
- package/resources/fonts/arial-bold-italic.hinted.json +125 -0
- package/resources/fonts/arial-bold-italic.metrics.json +139 -0
- package/resources/fonts/arial-bold-italic.rows.json +9 -0
- package/resources/fonts/arial-bold.hinted.json +125 -0
- package/resources/fonts/arial-bold.metrics.json +139 -0
- package/resources/fonts/arial-bold.rows.json +9 -0
- package/resources/fonts/arial-italic.hinted.json +125 -0
- package/resources/fonts/arial-italic.metrics.json +139 -0
- package/resources/fonts/arial-italic.rows.json +9 -0
- package/resources/fonts/arial-regular.hinted.json +125 -0
- package/resources/fonts/arial-regular.metrics.json +139 -0
- package/resources/fonts/arial-regular.rows.json +9 -0
- package/resources/fonts/calibri-bold-italic.hinted.json +122 -0
- package/resources/fonts/calibri-bold-italic.metrics.json +137 -0
- package/resources/fonts/calibri-bold-italic.rows.json +9 -0
- package/resources/fonts/calibri-bold.hinted.json +122 -0
- package/resources/fonts/calibri-bold.metrics.json +137 -0
- package/resources/fonts/calibri-bold.rows.json +9 -0
- package/resources/fonts/calibri-italic.hinted.json +121 -0
- package/resources/fonts/calibri-italic.metrics.json +137 -0
- package/resources/fonts/calibri-italic.rows.json +9 -0
- package/resources/fonts/calibri-regular.hinted.json +121 -0
- package/resources/fonts/calibri-regular.metrics.json +137 -0
- package/resources/fonts/calibri-regular.rows.json +9 -0
- package/resources/fonts/cambria-bold-italic.hinted.json +105 -0
- package/resources/fonts/cambria-bold-italic.metrics.json +66 -0
- package/resources/fonts/cambria-bold-italic.rows.json +9 -0
- package/resources/fonts/cambria-bold.hinted.json +108 -0
- package/resources/fonts/cambria-bold.metrics.json +66 -0
- package/resources/fonts/cambria-bold.rows.json +9 -0
- package/resources/fonts/cambria-italic.hinted.json +102 -0
- package/resources/fonts/cambria-italic.metrics.json +66 -0
- package/resources/fonts/cambria-italic.rows.json +9 -0
- package/resources/fonts/cambria-regular.hinted.json +110 -0
- package/resources/fonts/cambria-regular.metrics.json +66 -0
- package/resources/fonts/cambria-regular.rows.json +9 -0
- package/resources/fonts/contents.json +406 -0
- package/resources/fonts/courier-new-bold-italic.hinted.json +11 -0
- package/resources/fonts/courier-new-bold-italic.metrics.json +143 -0
- package/resources/fonts/courier-new-bold-italic.rows.json +9 -0
- package/resources/fonts/courier-new-bold.hinted.json +11 -0
- package/resources/fonts/courier-new-bold.metrics.json +143 -0
- package/resources/fonts/courier-new-bold.rows.json +9 -0
- package/resources/fonts/courier-new-italic.hinted.json +11 -0
- package/resources/fonts/courier-new-italic.metrics.json +143 -0
- package/resources/fonts/courier-new-italic.rows.json +9 -0
- package/resources/fonts/courier-new-regular.hinted.json +11 -0
- package/resources/fonts/courier-new-regular.metrics.json +143 -0
- package/resources/fonts/courier-new-regular.rows.json +9 -0
- package/resources/fonts/times-new-roman-bold-italic.hinted.json +125 -0
- package/resources/fonts/times-new-roman-bold-italic.metrics.json +141 -0
- package/resources/fonts/times-new-roman-bold-italic.rows.json +9 -0
- package/resources/fonts/times-new-roman-bold.hinted.json +125 -0
- package/resources/fonts/times-new-roman-bold.metrics.json +141 -0
- package/resources/fonts/times-new-roman-bold.rows.json +9 -0
- package/resources/fonts/times-new-roman-italic.hinted.json +125 -0
- package/resources/fonts/times-new-roman-italic.metrics.json +143 -0
- package/resources/fonts/times-new-roman-italic.rows.json +9 -0
- package/resources/fonts/times-new-roman-regular.hinted.json +125 -0
- package/resources/fonts/times-new-roman-regular.metrics.json +141 -0
- package/resources/fonts/times-new-roman-regular.rows.json +9 -0
- package/resources/locales/de/model.msg.json +199 -21
- package/resources/locales/en/model.msg.json +207 -23
- package/types/scripting-api.json +10663 -0
- package/types/scripting-enums.json +435 -130
- package/types/scripting.d.ts +33010 -15730
- package/types/src/.generated/wasm/fonts.d.ts +161 -0
- package/types/src/.generated/wasm/fonts_bg.inline.d.ts +3 -0
- package/types/src/.generated/wasm/sdk.d.ts +122 -0
- package/types/src/.generated/wasm/sdk_bg.inline.d.ts +3 -0
- package/types/src/address/AddressUtils.d.ts +10 -1
- package/types/src/address/_StructuredAddress.d.ts +58 -0
- package/types/src/anchored/AbstractAnchored.d.ts +18 -8
- package/types/src/anchored/AnchoredMap.d.ts +2 -0
- package/types/src/anchored/IAnchoredMap.d.ts +52 -4
- package/types/src/autoFill/AutoFill.d.ts +316 -32
- package/types/src/autoFill/IAutoFill.d.ts +232 -15
- package/types/src/border/{IBorder.d.ts → IBorders.d.ts} +58 -41
- package/types/src/border/index.d.ts +1 -1
- package/types/src/calculation/Calculation.d.ts +584 -149
- package/types/src/calculation/ExternalBookBindings.d.ts +118 -0
- package/types/src/calculation/FormulaLiterals.d.ts +2 -1
- package/types/src/calculation/FormulaText.d.ts +98 -0
- package/types/src/calculation/ICalculation.d.ts +353 -88
- package/types/src/calculation/INamedFormulasCollection.d.ts +9 -8
- package/types/src/calculation/NamedFormulaCollection.d.ts +322 -115
- package/types/src/calculation/NamedLambdaFunction.d.ts +28 -0
- package/types/src/calculation/TokenType.d.ts +9 -0
- package/types/src/calculation/Types.d.ts +83 -2
- package/types/src/calculation/_CloneBoundary.d.ts +80 -0
- package/types/src/calculation/_FormulaToolkit.d.ts +9 -0
- package/types/src/calculation/_TableExtent.d.ts +60 -0
- package/types/src/calculation/_TableRename.d.ts +13 -0
- package/types/src/calculation/compiler/ASTTypes.d.ts +71 -0
- package/types/src/calculation/compiler/CompilerUtils.d.ts +152 -44
- package/types/src/calculation/compiler/FormulaCompiler.d.ts +29 -4
- package/types/src/calculation/compiler/FormulaParser.d.ts +1 -2
- package/types/src/calculation/compiler/LiteTransform.d.ts +17 -0
- package/types/src/calculation/compiler/ParserUtils.d.ts +42 -1
- package/types/src/calculation/compiler/SRParser.d.ts +2 -1
- package/types/src/calculation/compiler/Types.d.ts +79 -9
- package/types/src/calculation/engine/CalcBackend.d.ts +855 -0
- package/types/src/calculation/engine/index.d.ts +10 -0
- package/types/src/calculation/executor/CalcExecutor.d.ts +331 -33
- package/types/src/calculation/executor/CalcExecutorUtils.d.ts +49 -2
- package/types/src/calculation/executor/CircularReference.d.ts +2 -0
- package/types/src/calculation/formula/Formula.d.ts +67 -21
- package/types/src/calculation/formula/FormulaBlock.d.ts +131 -23
- package/types/src/calculation/formula/FormulaRecordView.d.ts +79 -0
- package/types/src/calculation/formula/FunctionValues.d.ts +10 -0
- package/types/src/calculation/formula/IFormulaBlock.d.ts +277 -67
- package/types/src/calculation/formula/LambdaValue.d.ts +51 -26
- package/types/src/calculation/formula/LazyValue.d.ts +96 -0
- package/types/src/calculation/formula/TokenUtils.d.ts +25 -1
- package/types/src/calculation/formula/index.d.ts +1 -0
- package/types/src/calculation/functions/FunctionDeclarations.d.ts +35 -0
- package/types/src/calculation/functions/Operators.d.ts +8 -0
- package/types/src/calculation/functions/expandDeclaration.d.ts +15 -0
- package/types/src/calculation/functions/initializeFunctions.d.ts +3 -2
- package/types/src/calculation/grid/CalcGrid.d.ts +443 -158
- package/types/src/calculation/grid/CalcGridBackend.d.ts +523 -0
- package/types/src/calculation/grid/CalcGridProxy.d.ts +135 -0
- package/types/src/calculation/grid/CalcGridUtils.d.ts +69 -12
- package/types/src/calculation/grid/FormulaEntry.d.ts +129 -0
- package/types/src/calculation/grid/FormulaHost.d.ts +284 -0
- package/types/src/calculation/grid/ICalcGrid.d.ts +528 -141
- package/types/src/calculation/grid/_CalcRequest.d.ts +299 -0
- package/types/src/calculation/grid/_CellValueRun.d.ts +21 -0
- package/types/src/calculation/grid/index.d.ts +4 -0
- package/types/src/calculation/index.d.ts +2 -0
- package/types/src/calculation/spatial/ContentfulSpatialValue.d.ts +6 -2
- package/types/src/calculation/spatial/FormulaSpatialValue.d.ts +364 -11
- package/types/src/calculation/spatial/SpillEntry.d.ts +20 -5
- package/types/src/calculation/spatial/TouchedWindows.d.ts +86 -0
- package/types/src/calculation/spatial/index.d.ts +1 -0
- package/types/src/calculation/state/CalcInputs.d.ts +41 -0
- package/types/src/calculation/state/CalcNode.d.ts +141 -30
- package/types/src/calculation/state/CalcScope.d.ts +46 -0
- package/types/src/calculation/state/CalcState.d.ts +32 -1
- package/types/src/calculation/state/CalculationContext.d.ts +50 -3
- package/types/src/calculation/state/IContextContainer.d.ts +141 -27
- package/types/src/calculation/state/_PendingOverlayGrid.d.ts +163 -0
- package/types/src/calculation/state/_ReadObservedGrid.d.ts +74 -8
- package/types/src/calculation/state/index.d.ts +1 -0
- package/types/src/calculation/symbol/ExternalSheetSymbols.d.ts +80 -0
- package/types/src/calculation/symbol/ISymbolRegistry.d.ts +23 -0
- package/types/src/calculation/symbol/IndirectSymbolProvider.d.ts +16 -2
- package/types/src/calculation/symbol/SheetSymbolProvider.d.ts +63 -3
- package/types/src/calculation/symbol/SymbolRegistry.d.ts +20 -0
- package/types/src/calculation/symbol/index.d.ts +3 -2
- package/types/src/calculation/toolkit/FormulaLiteralReader.d.ts +4 -0
- package/types/src/calculation/toolkit/FormulaTextParser.d.ts +10 -0
- package/types/src/calculation/toolkit/FunctionDeclarationTable.d.ts +4 -0
- package/types/src/calculation/toolkit/index.d.ts +12 -0
- package/types/src/cell/ICell.d.ts +357 -33
- package/types/src/cell/ICellHeader.d.ts +31 -8
- package/types/src/cell/ICellProtection.d.ts +50 -10
- package/types/src/cellRange/ICellHeaderRange.d.ts +6 -9
- package/types/src/cellRange/ICellHeaderRanges.d.ts +5 -0
- package/types/src/cellRange/ICellRange.d.ts +737 -130
- package/types/src/cellRange/ICellRanges.d.ts +31 -24
- package/types/src/chart/Chart.d.ts +246 -16
- package/types/src/chart/ChartCollection.d.ts +31 -0
- package/types/src/chart/IChart.d.ts +2058 -18
- package/types/src/chart/IChartCollection.d.ts +50 -0
- package/types/src/chart/_ChartParts.d.ts +1066 -0
- package/types/src/chart/_ChartSource.d.ts +47 -0
- package/types/src/chart/createChart.d.ts +26 -0
- package/types/src/chart/index.d.ts +5 -3
- package/types/src/chart/kinds/ChartKind.d.ts +252 -0
- package/types/src/chart/kinds/_Area.d.ts +3 -0
- package/types/src/chart/kinds/_Bar.d.ts +4 -0
- package/types/src/chart/kinds/_BoxWhisker.d.ts +4 -0
- package/types/src/chart/kinds/_Bubble.d.ts +3 -0
- package/types/src/chart/kinds/_Funnel.d.ts +4 -0
- package/types/src/chart/kinds/_Hierarchy.d.ts +31 -0
- package/types/src/chart/kinds/_Histogram.d.ts +4 -0
- package/types/src/chart/kinds/_HitKinds.d.ts +23 -0
- package/types/src/chart/kinds/_Line.d.ts +4 -0
- package/types/src/chart/kinds/_OfPie.d.ts +4 -0
- package/types/src/chart/kinds/_Pie.d.ts +4 -0
- package/types/src/chart/kinds/_Placeholder.d.ts +6 -0
- package/types/src/chart/kinds/_Radar.d.ts +4 -0
- package/types/src/chart/kinds/_Scatter.d.ts +8 -0
- package/types/src/chart/kinds/_Sunburst.d.ts +4 -0
- package/types/src/chart/kinds/_Surface.d.ts +4 -0
- package/types/src/chart/kinds/_Treemap.d.ts +4 -0
- package/types/src/chart/kinds/_Waterfall.d.ts +18 -0
- package/types/src/chart/kinds/_builtIns.d.ts +11 -0
- package/types/src/chart/layout/ChartLayout.d.ts +825 -0
- package/types/src/chart/layout/TextMeasurer.d.ts +38 -0
- package/types/src/chart/layout/_HitGeometry.d.ts +50 -0
- package/types/src/chart/layout/_HitTest.d.ts +36 -0
- package/types/src/chart/layout/_Layout.d.ts +25 -0
- package/types/src/chart/layout/_LayoutUtils.d.ts +97 -0
- package/types/src/chart/math/BoxStats.d.ts +35 -0
- package/types/src/chart/math/DateUnitCalcs.d.ts +80 -0
- package/types/src/chart/math/DisplayUnits.d.ts +53 -0
- package/types/src/chart/math/Histogram.d.ts +48 -0
- package/types/src/chart/math/OrdUnitCalcs.d.ts +166 -0
- package/types/src/chart/math/Treemap.d.ts +28 -0
- package/types/src/chart/math/Trendlines.d.ts +71 -0
- package/types/src/chart/math/UnitCalcs.d.ts +98 -0
- package/types/src/chart/model/ChartModel.d.ts +681 -0
- package/types/src/chart/model/_ChartType.d.ts +14 -0
- package/types/src/chart/model/_Edits.d.ts +489 -0
- package/types/src/chart/model/_Grouping.d.ts +83 -0
- package/types/src/chart/model/_Inference.d.ts +52 -0
- package/types/src/chart/model/_ModelFacts.d.ts +112 -0
- package/types/src/chart/model/_NewChart.d.ts +208 -0
- package/types/src/chart/model/_OfPie.d.ts +18 -0
- package/types/src/chart/resolve/_LegacyStyles.d.ts +48 -0
- package/types/src/chart/resolve/_Resolve.d.ts +51 -0
- package/types/src/chart/resolve/_ResolvedChart.d.ts +444 -0
- package/types/src/collections/ArraysGrid.d.ts +1 -1
- package/types/src/collections/IGrid.d.ts +1 -1
- package/types/src/collections/ISparseGrid.d.ts +9 -0
- package/types/src/collections/ISpatialMap.d.ts +59 -21
- package/types/src/collections/ImmutableList.d.ts +28 -0
- package/types/src/collections/MixedTypedArrayList.d.ts +168 -108
- package/types/src/collections/RTree.d.ts +116 -36
- package/types/src/collections/RepeatingList.d.ts +7 -0
- package/types/src/collections/ScalarGrid.d.ts +50 -0
- package/types/src/collections/SparseGrid.d.ts +7 -4
- package/types/src/collections/SpatialMap.d.ts +15 -29
- package/types/src/collections/SpatialMap3D.d.ts +2 -0
- package/types/src/collections/Tuple.d.ts +128 -16
- package/types/src/collections/_GridUtils.d.ts +19 -6
- package/types/src/collections/_SpatialUtils.d.ts +20 -2
- package/types/src/collections/index.d.ts +2 -1
- package/types/src/color/_BuiltInIndexDefs.d.ts +6 -0
- package/types/src/comment/Comment.d.ts +246 -0
- package/types/src/comment/CommentCollection.d.ts +40 -0
- package/types/src/comment/IComment.d.ts +377 -50
- package/types/src/comment/ICommentCollection.d.ts +90 -0
- package/types/src/comment/NoteMovable.d.ts +26 -0
- package/types/src/comment/_CommentUtils.d.ts +50 -0
- package/types/src/comment/_NoteBox.d.ts +67 -0
- package/types/src/comment/index.d.ts +1 -0
- package/types/src/condition/AnchoredConditional.d.ts +110 -19
- package/types/src/condition/BuiltInOperators/AbstractOperator.d.ts +42 -12
- package/types/src/condition/BuiltInOperators/AfterEqualToOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/AfterOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/AndOperator.d.ts +3 -1
- package/types/src/condition/BuiltInOperators/AverageOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/BeforeEqualToOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/BeforeOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/BetweenOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/ColorOperator.d.ts +4 -0
- package/types/src/condition/BuiltInOperators/ContainsOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/EndsWithOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/EqualToOperator.d.ts +4 -1
- package/types/src/condition/BuiltInOperators/ExpressionOperator.d.ts +5 -6
- package/types/src/condition/BuiltInOperators/GreaterThanEqualToOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/GreaterThanOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/IconOperator.d.ts +4 -0
- package/types/src/condition/BuiltInOperators/InSetOperator.d.ts +22 -5
- package/types/src/condition/BuiltInOperators/LessThanEqualToOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/LessThanOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/NotOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/OrOperator.d.ts +3 -1
- package/types/src/condition/BuiltInOperators/StartsWithOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/TimePeriodOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/TopNOperator.d.ts +6 -0
- package/types/src/condition/BuiltinSelectors/BaseSelector.d.ts +21 -6
- package/types/src/condition/BuiltinSelectors/DateSelector.d.ts +4 -5
- package/types/src/condition/BuiltinSelectors/DisplaySelector.d.ts +20 -0
- package/types/src/condition/BuiltinSelectors/TextLengthSelector.d.ts +7 -5
- package/types/src/condition/BuiltinSelectors/TimeSelector.d.ts +3 -5
- package/types/src/condition/BuiltinSelectors/WholeSelector.d.ts +3 -5
- package/types/src/condition/BuiltinSelectors/index.d.ts +12 -6
- package/types/src/condition/Condition.d.ts +19 -1
- package/types/src/condition/ICondition.d.ts +296 -75
- package/types/src/condition/_ConditionFormula.d.ts +152 -0
- package/types/src/condition/_ConditionUtils.d.ts +167 -13
- package/types/src/conditionalFormat/ConditionalEntry.d.ts +3 -3
- package/types/src/conditionalFormat/ConditionalFormat.d.ts +34 -17
- package/types/src/conditionalFormat/ConditionalFormatCollection.d.ts +19 -8
- package/types/src/conditionalFormat/IConditionalFormat.d.ts +16 -13
- package/types/src/conditionalFormat/IConditionalFormatCollection.d.ts +2 -0
- package/types/src/dataTable/DataTable.d.ts +67 -0
- package/types/src/dataTable/DataTableCollection.d.ts +19 -0
- package/types/src/dataTable/IDataTable.d.ts +99 -0
- package/types/src/dataTable/IDataTableCollection.d.ts +18 -0
- package/types/src/dataTable/index.d.ts +6 -0
- package/types/src/dataValidation/DataValidation.d.ts +70 -4
- package/types/src/dataValidation/DataValidationCollection.d.ts +23 -9
- package/types/src/dataValidation/IDataValidation.d.ts +150 -31
- package/types/src/dataValidation/IDataValidationCollection.d.ts +34 -2
- package/types/src/date/DateUtils.d.ts +20 -0
- package/types/src/date/_DateUtils.d.ts +91 -7
- package/types/src/documentProperties/DocumentProperties.d.ts +66 -0
- package/types/src/documentProperties/ICustomProperty.d.ts +69 -0
- package/types/src/documentProperties/IDocumentProperties.d.ts +110 -0
- package/types/src/documentProperties/index.d.ts +3 -0
- package/types/src/externalBook/ExternalBookCollection.d.ts +145 -12
- package/types/src/externalBook/ExternalBookName.d.ts +96 -0
- package/types/src/externalBook/IExternalBook.d.ts +171 -19
- package/types/src/externalBook/IExternalBookCollection.d.ts +79 -7
- package/types/src/externalBook/index.d.ts +1 -0
- package/types/src/{lib/file → file}/file.browser.d.ts +22 -8
- package/types/src/{lib/file → file}/file.node.d.ts +7 -2
- package/types/src/fill/IEffect.d.ts +5 -5
- package/types/src/fill/IFill.d.ts +129 -77
- package/types/src/fill/IFillable.d.ts +47 -0
- package/types/src/fill/IStroke.d.ts +204 -64
- package/types/src/fill/PaintUtils.d.ts +22 -0
- package/types/src/fill/RectAlignment.d.ts +20 -0
- package/types/src/fill/_Fills.d.ts +187 -0
- package/types/src/fill/_Stroke.d.ts +89 -0
- package/types/src/fill/index.d.ts +3 -0
- package/types/src/filter/IFilter.d.ts +188 -5
- package/types/src/font/AdvanceBuilder.d.ts +59 -0
- package/types/src/font/AdvanceTable.d.ts +228 -0
- package/types/src/font/CanvasAdvanceBuilder.d.ts +54 -0
- package/types/src/font/FontCapture.d.ts +4 -0
- package/types/src/font/FontCollection.d.ts +108 -0
- package/types/src/font/FontPlatform.d.ts +20 -0
- package/types/src/font/FontUtils.d.ts +5 -0
- package/types/src/font/IFont.d.ts +208 -61
- package/types/src/font/IFontCollection.d.ts +126 -22
- package/types/src/font/IFontStyle.d.ts +207 -0
- package/types/src/font/TableFileAdvanceBuilder.d.ts +36 -0
- package/types/src/font/_BuiltinFontTables.d.ts +10 -0
- package/types/src/font/_FontUtils.d.ts +11 -4
- package/types/src/font/_FontsVersion.d.ts +7 -0
- package/types/src/font/index.d.ts +2 -1
- package/types/src/font/platform.browser.d.ts +15 -0
- package/types/src/font/platform.node.d.ts +5 -0
- package/types/src/group/Group.d.ts +141 -0
- package/types/src/group/GroupMovableCollection.d.ts +41 -0
- package/types/src/group/IGroup.d.ts +129 -0
- package/types/src/group/index.d.ts +2 -0
- package/types/src/history/IHistory.d.ts +21 -3
- package/types/src/hyperlink/IHyperlink.d.ts +20 -1
- package/types/src/hyperlink/_Hyperlink.d.ts +5 -1
- package/types/src/i18n/LanguagePack.d.ts +12 -4
- package/types/src/index.d.ts +8 -0
- package/types/src/io/AbstractBackingStore.d.ts +24 -1
- package/types/src/io/ArrayBackingStore.d.ts +1 -1
- package/types/src/io/EmbeddedPart.d.ts +20 -0
- package/types/src/io/IEmbeddedPart.d.ts +63 -0
- package/types/src/io/IWorkbookIO.d.ts +185 -18
- package/types/src/io/WorkbookIO.d.ts +9 -0
- package/types/src/io/WorkbookOrigin.d.ts +20 -11
- package/types/src/io/WorkbookOriginProvider.d.ts +46 -0
- package/types/src/io/_XmlFragment.d.ts +49 -0
- package/types/src/io/index.d.ts +1 -0
- package/types/src/license/LicenseDetails.d.ts +1 -0
- package/types/src/license/LicenseManager.d.ts +25 -1
- package/types/src/license/Types.d.ts +38 -0
- package/types/src/license/_Utils.d.ts +39 -0
- package/types/src/license/details.d.ts +24 -0
- package/types/src/license/license-key.d.ts +49 -2
- package/types/src/license/runtime.browser.d.ts +46 -0
- package/types/src/{lib/utils/utils.node.d.ts → license/runtime.node.d.ts} +19 -12
- package/types/src/listener/IListener.d.ts +23 -6
- package/types/src/listener/ListenerEmitter.d.ts +55 -6
- package/types/src/model/AbstractModel.d.ts +14 -5
- package/types/src/movable/AbstractMovableContent.d.ts +182 -0
- package/types/src/movable/CustomElement.d.ts +4 -5
- package/types/src/movable/ErrorContent.d.ts +49 -0
- package/types/src/movable/FormControl.d.ts +285 -0
- package/types/src/movable/GroupMember.d.ts +87 -0
- package/types/src/movable/ICustomElement.d.ts +7 -2
- package/types/src/movable/IErrorContent.d.ts +23 -0
- package/types/src/movable/IFormControl.d.ts +455 -0
- package/types/src/movable/IMovable.d.ts +405 -60
- package/types/src/movable/IMovableCollection.d.ts +64 -4
- package/types/src/movable/Movable.d.ts +161 -50
- package/types/src/movable/MovableCollection.d.ts +21 -10
- package/types/src/movable/MovableContentRegistry.d.ts +113 -0
- package/types/src/movable/_BuiltInContents.d.ts +14 -0
- package/types/src/movable/_ContentFactory.d.ts +35 -0
- package/types/src/movable/_DrawnBounds.d.ts +37 -0
- package/types/src/movable/_InsertableCollection.d.ts +39 -0
- package/types/src/movable/_MovableUtils.d.ts +5 -0
- package/types/src/movable/_PendingContent.d.ts +25 -0
- package/types/src/movable/_PlacementUtils.d.ts +55 -0
- package/types/src/movable/_RotatedFrame.d.ts +20 -0
- package/types/src/movable/index.d.ts +7 -1
- package/types/src/named/AbstractNamed.d.ts +1 -1
- package/types/src/named/INamed.d.ts +34 -1
- package/types/src/named/INamedCollection.d.ts +28 -2
- package/types/src/named/NamedCollection.d.ts +32 -19
- package/types/src/numFmt/BuiltInFormats.d.ts +20 -7
- package/types/src/numFmt/IFormatEngine.d.ts +2 -0
- package/types/src/numFmt/NumberFormatParser.d.ts +5 -0
- package/types/src/numFmt/NumfmtFormatEngine.d.ts +2 -0
- package/types/src/numFmt/_FormatCell.d.ts +11 -2
- package/types/src/numFmt/_NumFmtUtils.d.ts +0 -1
- package/types/src/numFmt/vendor/numfmt/_sheetxl.d.ts +6 -0
- package/types/src/outline/IOutline.d.ts +186 -0
- package/types/src/outline/Outline.d.ts +157 -0
- package/types/src/outline/index.d.ts +2 -0
- package/types/src/person/IPerson.d.ts +99 -0
- package/types/src/person/IPersonCollection.d.ts +51 -0
- package/types/src/person/Person.d.ts +32 -0
- package/types/src/person/PersonCollection.d.ts +49 -0
- package/types/src/person/index.d.ts +4 -0
- package/types/src/picture/IPicture.d.ts +131 -4
- package/types/src/picture/Picture.d.ts +42 -14
- package/types/src/pivot/IPivotTable.d.ts +72 -0
- package/types/src/pivot/IPivotTableCollection.d.ts +25 -0
- package/types/src/pivot/PivotCache.d.ts +34 -0
- package/types/src/pivot/PivotTable.d.ts +61 -0
- package/types/src/pivot/PivotTableCollection.d.ts +25 -0
- package/types/src/pivot/_PivotXml.d.ts +24 -0
- package/types/src/pivot/index.d.ts +6 -0
- package/types/src/primitives/CompositeRangeStats.d.ts +2 -0
- package/types/src/primitives/Criteria.d.ts +1 -1
- package/types/src/primitives/Grouping.d.ts +65 -0
- package/types/src/primitives/LambdaBrand.d.ts +26 -0
- package/types/src/primitives/PrimitiveUtils.d.ts +56 -19
- package/types/src/primitives/Range.d.ts +133 -25
- package/types/src/primitives/RangeStats.d.ts +30 -2
- package/types/src/primitives/ReferenceRange.d.ts +44 -0
- package/types/src/primitives/Runtime.d.ts +15 -2
- package/types/src/primitives/environment.browser.d.ts +9 -0
- package/types/src/primitives/environment.node.d.ts +10 -0
- package/types/src/primitives/stats/AggregateStats.d.ts +49 -15
- package/types/src/primitives/stats/Cancellation.d.ts +13 -0
- package/types/src/primitives/stats/FrequencyStats.d.ts +10 -1
- package/types/src/primitives/stats/LookupIndex.d.ts +46 -0
- package/types/src/primitives/stats/Ranked.d.ts +1 -1
- package/types/src/primitives/stats/SortedNumbers.d.ts +4 -2
- package/types/src/primitives/stats/index.d.ts +1 -0
- package/types/src/print/IPageLayout.d.ts +635 -0
- package/types/src/print/PageLayout.d.ts +258 -0
- package/types/src/print/index.d.ts +1 -1
- package/types/src/protectedRange/IProtectedRange.d.ts +6 -2
- package/types/src/protectedRange/IProtectedRangeCollection.d.ts +2 -0
- package/types/src/protectedRange/ProtectedRange.d.ts +1 -4
- package/types/src/protectedRange/ProtectedRangeCollection.d.ts +19 -8
- package/types/src/protection/DefaultProtection.d.ts +12 -1
- package/types/src/protection/IProtection.d.ts +42 -2
- package/types/src/protection/PasswordHasher.d.ts +13 -0
- package/types/src/reference/ReferenceUtils.d.ts +80 -0
- package/types/src/reference/index.d.ts +2 -0
- package/types/src/resource/IResource.d.ts +21 -1
- package/types/src/resource/IResourceCollection.d.ts +9 -1
- package/types/src/resource/ResourceCollection.d.ts +6 -6
- package/types/src/richData/IRichDataKind.d.ts +22 -0
- package/types/src/richData/RichDataRegistry.d.ts +57 -0
- package/types/src/richData/RichText.d.ts +59 -0
- package/types/src/richData/index.d.ts +3 -0
- package/types/src/scripting/FunctionCollection.d.ts +49 -15
- package/types/src/scripting/IFunctionCollection.d.ts +62 -32
- package/types/src/scripting/IModule.d.ts +25 -0
- package/types/src/scripting/IModuleCollection.d.ts +17 -0
- package/types/src/scripting/IScript.d.ts +30 -28
- package/types/src/scripting/ITypedFunction.d.ts +1 -1
- package/types/src/scripting/Module.d.ts +34 -6
- package/types/src/scripting/ModuleCollection.d.ts +17 -12
- package/types/src/scripting/Runtime.d.ts +15 -0
- package/types/src/scripting/Scripts.d.ts +3 -7
- package/types/src/scripting/TypedFunction.d.ts +154 -18
- package/types/src/scripting/_FunctionIndex.d.ts +8 -3
- package/types/src/scripting/_ModuleUtils.d.ts +11 -1
- package/types/src/scripting/_ScriptUtils.d.ts +3 -0
- package/types/src/scripting/declarations.browser.d.ts +10 -0
- package/types/src/scripting/declarations.d.ts +52 -0
- package/types/src/scripting/declarations.node.d.ts +9 -0
- package/types/src/scripting/index.d.ts +3 -0
- package/types/src/selection/ChartElementSelection.d.ts +39 -0
- package/types/src/selection/IChartElementSelection.d.ts +103 -0
- package/types/src/selection/IItemSelection.d.ts +131 -0
- package/types/src/selection/IMovableSelection.d.ts +120 -0
- package/types/src/selection/IRangeSelection.d.ts +13 -8
- package/types/src/selection/ItemSelection.d.ts +49 -0
- package/types/src/selection/MovableSelection.d.ts +29 -0
- package/types/src/selection/RangeSelection.d.ts +19 -4
- package/types/src/selection/index.d.ts +4 -0
- package/types/src/shape/GeometryPreset.d.ts +197 -0
- package/types/src/shape/IGeometry.d.ts +380 -0
- package/types/src/shape/IShape.d.ts +342 -194
- package/types/src/shape/IShapeStyle.d.ts +109 -0
- package/types/src/shape/ITextBoxStyle.d.ts +85 -0
- package/types/src/shape/Shape.d.ts +107 -21
- package/types/src/shape/ShapeStyleUtils.d.ts +66 -0
- package/types/src/shape/_ConnectorFrame.d.ts +32 -0
- package/types/src/shape/_ConnectorRoute.d.ts +33 -0
- package/types/src/shape/_Connectors.d.ts +108 -0
- package/types/src/shape/_Geometry.d.ts +14 -0
- package/types/src/shape/_GeometryLoader.d.ts +21 -0
- package/types/src/shape/_ShapeStyle.d.ts +79 -0
- package/types/src/shape/_builtIn/_BuiltInChunks.d.ts +10 -0
- package/types/src/shape/_builtIn/_BuiltInDef.d.ts +9 -0
- package/types/src/shape/_builtIn/arrows.d.ts +6 -0
- package/types/src/shape/_builtIn/basic.d.ts +6 -0
- package/types/src/shape/_builtIn/callouts.d.ts +6 -0
- package/types/src/shape/_builtIn/flowchart.d.ts +6 -0
- package/types/src/shape/_builtIn/lines.d.ts +6 -0
- package/types/src/shape/_builtIn/math.d.ts +6 -0
- package/types/src/shape/_builtIn/other.d.ts +6 -0
- package/types/src/shape/_builtIn/rectangles.d.ts +6 -0
- package/types/src/shape/_builtIn/starsBanners.d.ts +6 -0
- package/types/src/shape/geometry/_strokeEnds.d.ts +7 -0
- package/types/src/shape/geometry/format.d.ts +3 -0
- package/types/src/shape/geometry/geometry.d.ts +85 -0
- package/types/src/shape/geometry/guides.d.ts +54 -0
- package/types/src/shape/geometry/handles.d.ts +14 -0
- package/types/src/shape/geometry/index.d.ts +7 -0
- package/types/src/shape/geometry/lineEnds.d.ts +54 -0
- package/types/src/shape/geometry/paths.d.ts +35 -0
- package/types/src/shape/geometry/segments.d.ts +114 -0
- package/types/src/shape/index.d.ts +4 -0
- package/types/src/sheet/CellRegion.d.ts +43 -3
- package/types/src/sheet/ICellContainerOptions.d.ts +50 -0
- package/types/src/sheet/IOpaqueSheet.d.ts +46 -0
- package/types/src/sheet/ISheet.d.ts +81 -931
- package/types/src/sheet/IWorksheet.d.ts +1514 -0
- package/types/src/sheet/{ISheetCollection.d.ts → IWorksheetCollection.d.ts} +38 -16
- package/types/src/sheet/NamedCellRange.d.ts +17 -8
- package/types/src/sheet/NamedRange.d.ts +10 -2
- package/types/src/sheet/OpaqueSheet.d.ts +114 -0
- package/types/src/sheet/SheetCell.d.ts +96 -39
- package/types/src/sheet/SheetRange.d.ts +130 -27
- package/types/src/sheet/SheetRanges.d.ts +33 -18
- package/types/src/sheet/Worksheet.d.ts +2250 -0
- package/types/src/sheet/WorksheetCollection.d.ts +39 -0
- package/types/src/sheet/_Anomalies.d.ts +109 -0
- package/types/src/sheet/_AnomalyFormulaChecks.d.ts +125 -0
- package/types/src/sheet/_AnomalyLabelChecks.d.ts +21 -0
- package/types/src/sheet/_CellBuffer.d.ts +224 -0
- package/types/src/sheet/_CopyUtils.d.ts +13 -6
- package/types/src/sheet/_HeldFormula.d.ts +69 -0
- package/types/src/sheet/_IgnoredErrors.d.ts +46 -0
- package/types/src/sheet/_InvalidSheetRange.d.ts +10 -9
- package/types/src/sheet/_Kinds.d.ts +34 -0
- package/types/src/sheet/_Labels.d.ts +38 -0
- package/types/src/sheet/_ListenerAnchor.d.ts +104 -0
- package/types/src/sheet/_RangeStateSweep.d.ts +15 -0
- package/types/src/sheet/_ScalarListFactory.d.ts +61 -0
- package/types/src/sheet/_SheetAutoFillUtils.d.ts +74 -0
- package/types/src/sheet/_SheetAutoFitUtils.d.ts +5 -5
- package/types/src/sheet/_SheetChangeEvent.d.ts +72 -0
- package/types/src/sheet/_SheetCoords.d.ts +3 -3
- package/types/src/sheet/_SheetEvents.d.ts +43 -0
- package/types/src/sheet/_SheetFilterUtils.d.ts +51 -3
- package/types/src/sheet/_SheetIntents.d.ts +314 -0
- package/types/src/sheet/_SheetMessages.d.ts +1 -1
- package/types/src/sheet/_SheetMutations.d.ts +185 -66
- package/types/src/sheet/_SheetSortUtils.d.ts +2 -2
- package/types/src/sheet/_SheetStateReader.d.ts +35 -11
- package/types/src/sheet/_SheetStateTypes.d.ts +143 -79
- package/types/src/sheet/_SheetUtils.d.ts +59 -41
- package/types/src/sheet/_WatchAnchor.d.ts +106 -0
- package/types/src/sheet/clipboard/RangeClipboardItems.d.ts +4 -4
- package/types/src/sheet/clipboard/SheetHTMLTableParser.d.ts +3 -3
- package/types/src/sheet/clipboard/SheetHTMLTableWriter.d.ts +3 -3
- package/types/src/sheet/index.d.ts +5 -2
- package/types/src/sheet/spatial/HeldFormulaEntry.d.ts +36 -0
- package/types/src/sheet/spatial/index.d.ts +1 -0
- package/types/src/sheet/style/SheetCellStyle.d.ts +223 -337
- package/types/src/sheet/style/SheetDirectStyle.d.ts +31 -20
- package/types/src/sheet/style/SheetNamedStyle.d.ts +19 -17
- package/types/src/sheet/style/SheetTableStyle.d.ts +5 -5
- package/types/src/sheet/style/_DigitWidth.d.ts +7 -0
- package/types/src/sheet/style/_Resolvers.d.ts +17 -10
- package/types/src/sheet/style/_StyleUtils.d.ts +34 -40
- package/types/src/sheetHeader/ISheetHeader.d.ts +96 -55
- package/types/src/sheetHeader/SheetCellHeader.d.ts +6 -0
- package/types/src/sheetHeader/SheetCellHeaderRange.d.ts +2 -0
- package/types/src/sheetHeader/SheetCellHeaderRanges.d.ts +2 -0
- package/types/src/sheetHeader/SheetHeader.d.ts +48 -27
- package/types/src/sheetHeader/_HeaderMetrics.d.ts +37 -0
- package/types/src/sheetHeader/_HeaderUtils.d.ts +5 -4
- package/types/src/sheetProtection/{ISheetProtection.d.ts → IWorksheetProtection.d.ts} +64 -30
- package/types/src/sheetProtection/WorksheetProtection.d.ts +51 -0
- package/types/src/sheetProtection/index.d.ts +1 -1
- package/types/src/sheetView/{ISheetView.d.ts → IWorksheetView.d.ts} +230 -69
- package/types/src/sheetView/WorksheetView.d.ts +139 -0
- package/types/src/sheetView/_SheetViewUtils.d.ts +5 -3
- package/types/src/sheetView/index.d.ts +1 -1
- package/types/src/slicer/ISlicer.d.ts +304 -17
- package/types/src/slicer/ISlicerStyle.d.ts +109 -0
- package/types/src/slicer/Slicer.d.ts +128 -13
- package/types/src/slicer/SlicerStyle.d.ts +25 -0
- package/types/src/slicer/_BuiltInSlicerStyles.d.ts +13 -0
- package/types/src/slicer/_SlicerUtils.d.ts +30 -0
- package/types/src/slicer/index.d.ts +1 -0
- package/types/src/sort/ISort.d.ts +39 -7
- package/types/src/string/IStringCollection.d.ts +5 -0
- package/types/src/string/StringCollection.d.ts +6 -6
- package/types/src/style/{IStyle.d.ts → ICellStyle.d.ts} +117 -85
- package/types/src/style/INamedStyleCollection.d.ts +72 -0
- package/types/src/style/ISlicerStyleCollection.d.ts +77 -0
- package/types/src/style/IStyleCollection.d.ts +91 -60
- package/types/src/style/ITableStyleCollection.d.ts +89 -0
- package/types/src/style/NamedStyleCollection.d.ts +39 -0
- package/types/src/style/SlicerStyleCollection.d.ts +46 -0
- package/types/src/style/StyleCollection.d.ts +81 -26
- package/types/src/style/TableStyleCollection.d.ts +49 -0
- package/types/src/style/_BuiltInStyleDefs.d.ts +9 -8
- package/types/src/style/_BuiltInStyleNames.d.ts +2 -2
- package/types/src/style/index.d.ts +7 -1
- package/types/src/table/AnchoredTable.d.ts +723 -78
- package/types/src/table/AutoTable.d.ts +8 -6
- package/types/src/table/ITable.d.ts +289 -49
- package/types/src/table/ITableCollection.d.ts +12 -0
- package/types/src/table/ITableStyle.d.ts +37 -37
- package/types/src/table/TableCollection.d.ts +19 -8
- package/types/src/table/_FilterField.d.ts +19 -6
- package/types/src/table/_NamedTable.d.ts +20 -4
- package/types/src/table/_NamedTableSource.d.ts +3 -2
- package/types/src/table/_SortField.d.ts +2 -0
- package/types/src/table/_TableColumn.d.ts +13 -2
- package/types/src/table/_TableMessages.d.ts +1 -0
- package/types/src/table/_TableUtils.d.ts +40 -0
- package/types/src/text/Bullet.d.ts +4 -0
- package/types/src/text/IText.d.ts +150 -15
- package/types/src/text/ITextFrame.d.ts +110 -1
- package/types/src/text/TextBoxAlignment.d.ts +25 -16
- package/types/src/text/TextEngine.d.ts +34 -0
- package/types/src/text/TextFrame.d.ts +8 -2
- package/types/src/text/TextLine.d.ts +4 -0
- package/types/src/text/TextParagraph.d.ts +4 -0
- package/types/src/text/TextRotation.d.ts +3 -3
- package/types/src/text/TextRun.d.ts +12 -2
- package/types/src/text/TextStacked.d.ts +83 -0
- package/types/src/text/TextWrapper.d.ts +32 -26
- package/types/src/text/_TextUtils.d.ts +5 -5
- package/types/src/text/_TextWrapperFallback.d.ts +49 -0
- package/types/src/text/impl/TabStrategy.d.ts +3 -1
- package/types/src/text/index.d.ts +1 -0
- package/types/src/text/richtext/IRichText.d.ts +50 -0
- package/types/src/text/richtext/index.d.ts +1 -1
- package/types/src/theme/ITheme.d.ts +153 -11
- package/types/src/theme/IThemeCollection.d.ts +2 -0
- package/types/src/theme/ThemeCollection.d.ts +16 -7
- package/types/src/theme/_OfficeFontScheme.d.ts +8 -0
- package/types/src/theme/_OfficeFormatScheme.d.ts +3 -0
- package/types/src/transaction/ITransaction.d.ts +277 -45
- package/types/src/transaction/Transaction.d.ts +108 -11
- package/types/src/transaction/TransactionUndoManager.d.ts +4 -1
- package/types/src/transaction/_BatchHandle.d.ts +118 -0
- package/types/src/type/AbstractCollection.d.ts +92 -0
- package/types/src/type/ICollection.d.ts +131 -1
- package/types/src/type/IProperties.d.ts +1 -1
- package/types/src/type/ITypes.d.ts +9 -7
- package/types/src/type/index.d.ts +1 -0
- package/types/src/utils/_CSSUtils.d.ts +4 -4
- package/types/src/wasm/_fontsWasm.d.ts +7 -0
- package/types/src/wasm/_sdkWasm.d.ts +7 -0
- package/types/src/wasm/fontsWasm.d.ts +32 -0
- package/types/src/wasm/index.d.ts +3 -0
- package/types/src/wasm/loader.browser.d.ts +9 -0
- package/types/src/wasm/loader.node.d.ts +9 -0
- package/types/src/wasm/sdkWasm.d.ts +32 -0
- package/types/src/workbook/IWorkbook.d.ts +404 -73
- package/types/src/workbook/Workbook.d.ts +196 -28
- package/types/src/workbook/WorkbookRange.d.ts +2 -2
- package/types/src/workbook/WorkbookRanges.d.ts +2 -2
- package/types/src/workbook/_WorkbookIntents.d.ts +36 -0
- package/types/src/workbook/_WorkbookMessages.d.ts +5 -0
- package/types/src/workbookProtection/IWorkbookProtection.d.ts +7 -0
- package/types/src/workbookProtection/WorkbookProtection.d.ts +3 -0
- package/types/src/workbookView/IWorkbookView.d.ts +94 -0
- package/types/src/workbookView/WorkbookView.d.ts +26 -0
- package/browser/cjs/B7_pDFYCVzt-3hUs.cjs +0 -1
- package/browser/cjs/BatsV2UUraVDCRXm.cjs +0 -57
- package/browser/cjs/CUz53T65cRGQRgvv.cjs +0 -33
- package/browser/cjs/DU0kYUtdFa3jK-im.cjs +0 -1
- package/browser/cjs/Dv3x6zut1ZRUt3IF.cjs +0 -10
- package/browser/cjs/Dv4yIPLV98M5zLHa.cjs +0 -1
- package/browser/cjs/a0Z-SXs_N71CtqYb.cjs +0 -1
- package/browser/cjs/index.cjs +0 -3
- package/browser/esm/6JKSOvc5czaQB2Bj.mjs +0 -109
- package/browser/esm/BtuJ9AGzeURtAsGo.mjs +0 -51241
- package/browser/esm/DGU6sM25u0EWCKl1.mjs +0 -824
- package/node/esm/-pxdn3M3tc6PLHs7.mjs +0 -114
- package/node/esm/0n5bslM9jhO1JnI2.mjs +0 -843
- package/types/src/cellRange/_GraphNode.d.ts +0 -38
- package/types/src/collections/OverlappingRangeIterator.d.ts +0 -91
- package/types/src/condition/BuiltinSelectors/ListSelector.d.ts +0 -12
- package/types/src/dataValidation/_Utils.d.ts +0 -10
- package/types/src/font/CanvasFontMeasurer.d.ts +0 -25
- package/types/src/font/FontKitFontMeasurer.d.ts +0 -11
- package/types/src/font/SimpleFontMeasurer.d.ts +0 -4
- package/types/src/lib/utils/_Utils.d.ts +0 -27
- package/types/src/lib/utils/utils.browser.d.ts +0 -33
- package/types/src/movable/IGroup.d.ts +0 -30
- package/types/src/movable/IMovableSelection.d.ts +0 -49
- package/types/src/print/IPrint.d.ts +0 -234
- package/types/src/sheet/Sheet.d.ts +0 -1107
- package/types/src/sheet/SheetCollection.d.ts +0 -18
- package/types/src/sheet/listener/RangesListener.d.ts +0 -32
- package/types/src/sheet/listener/RangesListenerEntry.d.ts +0 -19
- package/types/src/sheet/listener/index.d.ts +0 -3
- package/types/src/sheetProtection/SheetProtection.d.ts +0 -39
- package/types/src/sheetView/SheetView.d.ts +0 -113
- package/types/src/text/richtext/IStyledFont.d.ts +0 -330
- /package/types/src/{lib/utils → license}/banner.d.ts +0 -0
|
@@ -1,56 +1,56 @@
|
|
|
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.11
|
|
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 "./
|
|
7
|
+
import { t as e } from "./Dlmig06rIo7cInRk.mjs";
|
|
8
8
|
var t = e((e, t) => {
|
|
9
9
|
var n = e, r = function e() {
|
|
10
|
-
var t
|
|
11
|
-
function
|
|
10
|
+
var t = typeof self < "u" ? self : typeof window < "u" ? window : t === void 0 ? {} : t, n = !t.document && !!t.postMessage, r = t.IS_PAPA_WORKER || !1, i = {}, a = 0, o = {};
|
|
11
|
+
function s(e) {
|
|
12
12
|
return e.charCodeAt(0) === 65279 ? e.slice(1) : e;
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function c(e) {
|
|
15
15
|
this._handle = null, this._finished = !1, this._completed = !1, this._halted = !1, this._input = null, this._baseIndex = 0, this._partialLine = "", this._rowCount = 0, this._start = 0, this._nextChunk = null, this.isFirstChunk = !0, this._completeResults = {
|
|
16
16
|
data: [],
|
|
17
17
|
errors: [],
|
|
18
18
|
meta: {}
|
|
19
19
|
}, function(e) {
|
|
20
|
-
var t =
|
|
21
|
-
t.chunkSize = parseInt(t.chunkSize), e.step || e.chunk || (t.chunkSize = null), this._handle = new
|
|
22
|
-
}.call(this, e), this.parseChunk = function(e,
|
|
23
|
-
var
|
|
24
|
-
if (this.isFirstChunk && 0 <
|
|
20
|
+
var t = y(e);
|
|
21
|
+
t.chunkSize = parseInt(t.chunkSize), e.step || e.chunk || (t.chunkSize = null), this._handle = new p(t), (this._handle.streamer = this)._config = t;
|
|
22
|
+
}.call(this, e), this.parseChunk = function(e, n) {
|
|
23
|
+
var i = parseInt(this._config.skipFirstNLines) || 0;
|
|
24
|
+
if (this.isFirstChunk && 0 < i) {
|
|
25
25
|
let t = this._config.newline;
|
|
26
|
-
t ||= (a = this._config.quoteChar || "\"", this._handle.guessLineEndings(e, a)), e = [...e.split(t).slice(
|
|
26
|
+
t ||= (a = this._config.quoteChar || "\"", this._handle.guessLineEndings(e, a)), e = [...e.split(t).slice(i)].join(t);
|
|
27
27
|
}
|
|
28
|
-
this.isFirstChunk &&
|
|
29
|
-
var a = (this._partialLine = "", this._handle.parse(
|
|
28
|
+
this.isFirstChunk && x(this._config.beforeFirstChunk) && (a = this._config.beforeFirstChunk(e)) !== void 0 && (e = a), this.isFirstChunk = !1, this._halted = !1, i = this._partialLine + e;
|
|
29
|
+
var a = (this._partialLine = "", this._handle.parse(i, this._baseIndex, !this._finished));
|
|
30
30
|
if (!this._handle.paused() && !this._handle.aborted()) {
|
|
31
|
-
if (e = a.meta.cursor, this._finished || (this._partialLine =
|
|
31
|
+
if (e = a.meta.cursor, this._finished || (this._partialLine = i.substring(e - this._baseIndex), this._baseIndex = e), a && a.data && (this._rowCount += a.data.length), i = this._finished || this._config.preview && this._rowCount >= this._config.preview, r) t.postMessage({
|
|
32
32
|
results: a,
|
|
33
|
-
workerId:
|
|
34
|
-
finished:
|
|
33
|
+
workerId: o.WORKER_ID,
|
|
34
|
+
finished: i
|
|
35
35
|
});
|
|
36
|
-
else if (
|
|
36
|
+
else if (x(this._config.chunk) && !n) {
|
|
37
37
|
if (this._config.chunk(a, this._handle), this._handle.paused() || this._handle.aborted()) return void (this._halted = !0);
|
|
38
38
|
this._completeResults = a = void 0;
|
|
39
39
|
}
|
|
40
|
-
return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(a.data), this._completeResults.errors = this._completeResults.errors.concat(a.errors), this._completeResults.meta = a.meta), this._completed || !
|
|
40
|
+
return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(a.data), this._completeResults.errors = this._completeResults.errors.concat(a.errors), this._completeResults.meta = a.meta), this._completed || !i || !x(this._config.complete) || a && a.meta.aborted || (this._config.complete(this._completeResults, this._input), this._completed = !0), i || a && a.meta.paused || this._nextChunk(), a;
|
|
41
41
|
}
|
|
42
42
|
this._halted = !0;
|
|
43
43
|
}, this._sendError = function(e) {
|
|
44
|
-
|
|
45
|
-
workerId:
|
|
44
|
+
x(this._config.error) ? this._config.error(e) : r && this._config.error && t.postMessage({
|
|
45
|
+
workerId: o.WORKER_ID,
|
|
46
46
|
error: e,
|
|
47
47
|
finished: !1
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function l(e) {
|
|
52
52
|
var t;
|
|
53
|
-
(e ||= {}).chunkSize || (e.chunkSize =
|
|
53
|
+
(e ||= {}).chunkSize || (e.chunkSize = o.RemoteChunkSize), c.call(this, e), this._nextChunk = n ? function() {
|
|
54
54
|
this._readChunk(), this._chunkLoaded();
|
|
55
55
|
} : function() {
|
|
56
56
|
this._readChunk();
|
|
@@ -59,9 +59,9 @@ var t = e((e, t) => {
|
|
|
59
59
|
}, this._readChunk = function() {
|
|
60
60
|
if (this._finished) this._chunkLoaded();
|
|
61
61
|
else {
|
|
62
|
-
if (t = new XMLHttpRequest(), this._config.withCredentials && (t.withCredentials = this._config.withCredentials),
|
|
63
|
-
var e,
|
|
64
|
-
for (e in
|
|
62
|
+
if (t = new XMLHttpRequest(), this._config.withCredentials && (t.withCredentials = this._config.withCredentials), n || (t.onload = b(this._chunkLoaded, this), t.onerror = b(this._chunkError, this)), t.ontimeout = b(this._chunkTimeout, this), t.open(this._config.downloadRequestBody ? "POST" : "GET", this._input, !n), this._config.downloadTimeout && !n && (t.timeout = this._config.downloadTimeout), this._config.downloadRequestHeaders) {
|
|
63
|
+
var e, r = this._config.downloadRequestHeaders;
|
|
64
|
+
for (e in r) t.setRequestHeader(e, r[e]);
|
|
65
65
|
}
|
|
66
66
|
var i;
|
|
67
67
|
this._config.chunkSize && (i = this._start + this._config.chunkSize - 1, t.setRequestHeader("Range", "bytes=" + this._start + "-" + i));
|
|
@@ -70,19 +70,21 @@ var t = e((e, t) => {
|
|
|
70
70
|
} catch (e) {
|
|
71
71
|
this._chunkError(e.message);
|
|
72
72
|
}
|
|
73
|
-
|
|
73
|
+
n && t.status === 0 && this._chunkError();
|
|
74
74
|
}
|
|
75
75
|
}, this._chunkLoaded = function() {
|
|
76
76
|
t.readyState === 4 && (t.status < 200 || 400 <= t.status ? this._chunkError() : (this._start += this._config.chunkSize || t.responseText.length, this._finished = !this._config.chunkSize || this._start >= ((e) => (e = e.getResponseHeader("Content-Range")) === null ? -1 : parseInt(e.substring(e.lastIndexOf("/") + 1)))(t), this.parseChunk(t.responseText)));
|
|
77
77
|
}, this._chunkError = function(e) {
|
|
78
78
|
e = t.statusText || e, this._sendError(Error(e));
|
|
79
|
+
}, this._chunkTimeout = function() {
|
|
80
|
+
this._chunkError("Request timed out after " + this._config.downloadTimeout + "ms");
|
|
79
81
|
};
|
|
80
82
|
}
|
|
81
|
-
function
|
|
82
|
-
(e ||= {}).chunkSize || (e.chunkSize =
|
|
83
|
+
function u(e) {
|
|
84
|
+
(e ||= {}).chunkSize || (e.chunkSize = o.LocalChunkSize), c.call(this, e);
|
|
83
85
|
var t, n, r = typeof FileReader < "u";
|
|
84
86
|
this.stream = function(e) {
|
|
85
|
-
this._input = e, n = e.slice || e.webkitSlice || e.mozSlice, r ? ((t = new FileReader()).onload =
|
|
87
|
+
this._input = e, n = e.slice || e.webkitSlice || e.mozSlice, r ? ((t = new FileReader()).onload = b(this._chunkLoaded, this), t.onerror = b(this._chunkError, this)) : t = new FileReaderSync(), this._nextChunk();
|
|
86
88
|
}, this._nextChunk = function() {
|
|
87
89
|
this._finished || this._config.preview && !(this._rowCount < this._config.preview) || this._readChunk();
|
|
88
90
|
}, this._readChunk = function() {
|
|
@@ -94,175 +96,177 @@ var t = e((e, t) => {
|
|
|
94
96
|
this._sendError(t.error);
|
|
95
97
|
};
|
|
96
98
|
}
|
|
97
|
-
function
|
|
99
|
+
function d(e) {
|
|
98
100
|
var t;
|
|
99
|
-
|
|
101
|
+
c.call(this, e ||= {}), this.stream = function(e) {
|
|
100
102
|
return t = e, this._nextChunk();
|
|
101
103
|
}, this._nextChunk = function() {
|
|
102
104
|
var e, n;
|
|
103
105
|
if (!this._finished) return e = this._config.chunkSize, t = e ? (n = t.substring(0, e), t.substring(e)) : (n = t, ""), this._finished = !t, this.parseChunk(n);
|
|
104
106
|
};
|
|
105
107
|
}
|
|
106
|
-
function
|
|
107
|
-
|
|
108
|
+
function f(e) {
|
|
109
|
+
c.call(this, e ||= {});
|
|
108
110
|
var t = [], n = !0, r = !1;
|
|
109
111
|
this.pause = function() {
|
|
110
|
-
|
|
112
|
+
c.prototype.pause.apply(this, arguments), this._input.pause();
|
|
111
113
|
}, this.resume = function() {
|
|
112
|
-
|
|
114
|
+
c.prototype.resume.apply(this, arguments), this._input.resume();
|
|
113
115
|
}, this.stream = function(e) {
|
|
114
116
|
this._input = e, this._input.on("data", this._streamData), this._input.on("end", this._streamEnd), this._input.on("error", this._streamError);
|
|
115
117
|
}, this._checkIsFinished = function() {
|
|
116
118
|
r && t.length === 1 && (this._finished = !0);
|
|
117
119
|
}, this._nextChunk = function() {
|
|
118
120
|
this._checkIsFinished(), t.length ? this.parseChunk(t.shift()) : n = !0;
|
|
119
|
-
}, this._streamData =
|
|
121
|
+
}, this._streamData = b(function(e) {
|
|
120
122
|
try {
|
|
121
123
|
t.push(typeof e == "string" ? e : e.toString(this._config.encoding)), n && (n = !1, this._checkIsFinished(), this.parseChunk(t.shift()));
|
|
122
124
|
} catch (e) {
|
|
123
125
|
this._streamError(e);
|
|
124
126
|
}
|
|
125
|
-
}, this), this._streamError =
|
|
127
|
+
}, this), this._streamError = b(function(e) {
|
|
126
128
|
this._streamCleanUp(), this._sendError(e);
|
|
127
|
-
}, this), this._streamEnd =
|
|
129
|
+
}, this), this._streamEnd = b(function() {
|
|
128
130
|
this._streamCleanUp(), r = !0, this._streamData("");
|
|
129
|
-
}, this), this._streamCleanUp =
|
|
131
|
+
}, this), this._streamCleanUp = b(function() {
|
|
130
132
|
this._input.removeListener("data", this._streamData), this._input.removeListener("end", this._streamEnd), this._input.removeListener("error", this._streamError);
|
|
131
133
|
}, this);
|
|
132
134
|
}
|
|
133
|
-
function
|
|
134
|
-
var t, n, r, i, a = 2 ** 53,
|
|
135
|
+
function p(e) {
|
|
136
|
+
var t, n, r, i, a = 2 ** 53, s = -a, c = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, l = /^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/, u = this, d = 0, f = 0, p = !1, g = !1, _ = [], v = {
|
|
135
137
|
data: [],
|
|
136
138
|
errors: [],
|
|
137
139
|
meta: {}
|
|
138
140
|
};
|
|
139
|
-
function
|
|
141
|
+
function b(t) {
|
|
140
142
|
return e.skipEmptyLines === "greedy" ? t.join("").trim() === "" : t.length === 1 && t[0].length === 0;
|
|
141
143
|
}
|
|
142
|
-
function
|
|
143
|
-
if (
|
|
144
|
-
return !
|
|
145
|
-
})),
|
|
146
|
-
if (
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
144
|
+
function S() {
|
|
145
|
+
if (v && r && (w("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '" + o.DefaultDelimiter + "'"), r = !1), e.skipEmptyLines && (v.data = v.data.filter(function(e) {
|
|
146
|
+
return !b(e);
|
|
147
|
+
})), C()) {
|
|
148
|
+
if (v) {
|
|
149
|
+
if (Array.isArray(v.data[0])) {
|
|
150
|
+
for (var t = 0; C() && t < v.data.length; t++) v.data[t].forEach(e);
|
|
151
|
+
v.data.splice(0, 1);
|
|
152
|
+
} else v.data.forEach(e);
|
|
153
|
+
}
|
|
154
|
+
function e(e) {
|
|
155
|
+
_.push(e);
|
|
152
156
|
}
|
|
153
157
|
}
|
|
154
158
|
function n(t, n) {
|
|
155
159
|
for (var r = e.header ? {} : [], i = 0; i < t.length; i++) {
|
|
156
|
-
var
|
|
157
|
-
|
|
158
|
-
if (
|
|
159
|
-
})(n) ? parseFloat(n) :
|
|
160
|
+
var o = i, u = t[i];
|
|
161
|
+
u = ((t, n) => ((t) => (e.dynamicTypingFunction && e.dynamicTyping[t] === void 0 && (e.dynamicTyping[t] = e.dynamicTypingFunction(t)), !0 === (e.dynamicTyping[t] || e.dynamicTyping)))(t) ? n === "true" || n === "TRUE" || n !== "false" && n !== "FALSE" && (((e) => {
|
|
162
|
+
if (c.test(e) && (e = parseFloat(e), s < e && e < a)) return 1;
|
|
163
|
+
})(n) ? parseFloat(n) : l.test(n) ? new Date(n) : n === "" ? null : n) : n)(o = e.header ? i >= _.length ? "__parsed_extra" : _[i] : o, u = e.transform ? e.transform(u, o) : u), o === "__parsed_extra" ? (r[o] = r[o] || [], r[o].push(u)) : r[o] = u;
|
|
160
164
|
}
|
|
161
|
-
return e.header && (i >
|
|
165
|
+
return e.header && (i > _.length ? w("FieldMismatch", "TooManyFields", "Too many fields: expected " + _.length + " fields but parsed " + i, f + n) : i < _.length && w("FieldMismatch", "TooFewFields", "Too few fields: expected " + _.length + " fields but parsed " + i, f + n)), r;
|
|
162
166
|
}
|
|
163
167
|
var i;
|
|
164
|
-
|
|
168
|
+
v && (e.header || e.dynamicTyping || e.transform) && (i = 1, !v.data.length || Array.isArray(v.data[0]) ? (v.data = v.data.map(n), i = v.data.length) : v.data = n(v.data, 0), e.header && v.meta && (v.meta.fields = _), f += i);
|
|
165
169
|
}
|
|
166
|
-
function
|
|
167
|
-
return e.header &&
|
|
170
|
+
function C() {
|
|
171
|
+
return e.header && _.length === 0;
|
|
168
172
|
}
|
|
169
|
-
function
|
|
173
|
+
function w(e, t, n, r) {
|
|
170
174
|
e = {
|
|
171
175
|
type: e,
|
|
172
176
|
code: t,
|
|
173
177
|
message: n
|
|
174
|
-
}, r !== void 0 && (e.row = r),
|
|
178
|
+
}, r !== void 0 && (e.row = r), v.errors.push(e);
|
|
175
179
|
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
}), this.parse = function(i, a,
|
|
180
|
+
x(e.step) && (i = e.step, e.step = function(t) {
|
|
181
|
+
v = t, C() ? S() : (S(), v.data.length !== 0 && (d += t.data.length, e.preview && d > e.preview ? n.abort() : (v.data = v.data[0], i(v, u))));
|
|
182
|
+
}), this.parse = function(i, a, s) {
|
|
179
183
|
var c = e.quoteChar || "\"";
|
|
180
|
-
return e.newline ||= this.guessLineEndings(i, c), r = !1, e.delimiter ?
|
|
181
|
-
var
|
|
184
|
+
return e.newline ||= this.guessLineEndings(i, c), r = !1, e.delimiter ? x(e.delimiter) && (e.delimiter = e.delimiter(i), v.meta.delimiter = e.delimiter) : ((c = ((t, n, r, i, a) => {
|
|
185
|
+
var s, c, l, u;
|
|
182
186
|
a ||= [
|
|
183
187
|
",",
|
|
184
188
|
" ",
|
|
185
189
|
"|",
|
|
186
190
|
";",
|
|
187
|
-
|
|
188
|
-
|
|
191
|
+
o.RECORD_SEP,
|
|
192
|
+
o.UNIT_SEP
|
|
189
193
|
];
|
|
190
194
|
for (var d = 0; d < a.length; d++) {
|
|
191
|
-
for (var f, p = a[d], m = 0,
|
|
195
|
+
for (var f, p = a[d], m = 0, g = 0, _ = 0, v = (l = void 0, new h({
|
|
192
196
|
comments: i,
|
|
193
197
|
delimiter: p,
|
|
194
198
|
newline: n,
|
|
195
199
|
preview: 10
|
|
196
|
-
}).parse(t)), y = 0; y < v.data.length; y++) r &&
|
|
197
|
-
0 < v.data.length && (
|
|
200
|
+
}).parse(t)), y = 0; y < v.data.length; y++) r && b(v.data[y]) ? _++ : (g += f = v.data[y].length, l === void 0 ? l = f : 0 < f && (m += Math.abs(f - l), l = f));
|
|
201
|
+
0 < v.data.length && (g /= v.data.length - _), 1.99 < g && (c === void 0 || m < c || m === c && u < g) && (c = m, s = p, u = g);
|
|
198
202
|
}
|
|
199
203
|
return {
|
|
200
|
-
successful: !!(e.delimiter =
|
|
201
|
-
bestDelimiter:
|
|
204
|
+
successful: !!(e.delimiter = s),
|
|
205
|
+
bestDelimiter: s
|
|
202
206
|
};
|
|
203
|
-
})(i, e.newline, e.skipEmptyLines, e.comments, e.delimitersToGuess)).successful ? e.delimiter = c.bestDelimiter : (r = !0, e.delimiter =
|
|
207
|
+
})(i, e.newline, e.skipEmptyLines, e.comments, e.delimitersToGuess)).successful ? e.delimiter = c.bestDelimiter : (r = !0, e.delimiter = o.DefaultDelimiter), v.meta.delimiter = e.delimiter), (c = y(e)).header = C(), e.preview && e.header && c.preview++, t = i, n = new h(c), v = n.parse(t, a, s), S(), p ? { meta: { paused: !0 } } : v || { meta: { paused: !1 } };
|
|
204
208
|
}, this.paused = function() {
|
|
205
|
-
return
|
|
209
|
+
return p;
|
|
206
210
|
}, this.pause = function() {
|
|
207
|
-
|
|
211
|
+
p = !0, n.abort(), t = x(e.chunk) ? "" : t.substring(n.getCharIndex());
|
|
208
212
|
}, this.resume = function() {
|
|
209
|
-
|
|
213
|
+
u.streamer._halted ? (p = !1, u.streamer.parseChunk(t, !0)) : setTimeout(u.resume, 3);
|
|
210
214
|
}, this.aborted = function() {
|
|
211
|
-
return
|
|
215
|
+
return g;
|
|
212
216
|
}, this.abort = function() {
|
|
213
|
-
|
|
217
|
+
g = !0, n.abort(), v.meta.aborted = !0, x(e.complete) && e.complete(v), t = "";
|
|
214
218
|
}, this.guessLineEndings = function(e, t) {
|
|
215
|
-
e = e.substring(0, 1048576), t = RegExp(
|
|
219
|
+
e = e.substring(0, 1048576), t = RegExp(m(t) + "([^]*?)" + m(t), "gm");
|
|
216
220
|
var n = (e = e.replace(t, "")).split("\r");
|
|
217
221
|
if (e = 1 < (t = e.split("\n")).length && t[0].length < n[0].length, n.length === 1 || e) return "\n";
|
|
218
222
|
for (var r = 0, i = 0; i < n.length; i++) n[i][0] === "\n" && r++;
|
|
219
223
|
return r >= n.length / 2 ? "\r\n" : "\r";
|
|
220
224
|
};
|
|
221
225
|
}
|
|
222
|
-
function
|
|
226
|
+
function m(e) {
|
|
223
227
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
224
228
|
}
|
|
225
|
-
function
|
|
226
|
-
var t = (e ||= {}).delimiter, n = e.newline, r = e.comments, i = e.step, a = e.preview,
|
|
227
|
-
if (e.escapeChar !== void 0 && (f = e.escapeChar), (typeof t != "string" || -1 <
|
|
228
|
-
!0 === r ? r = "#" : (typeof r != "string" || -1 <
|
|
229
|
-
var p = 0,
|
|
230
|
-
this.parse = function(
|
|
231
|
-
if (typeof
|
|
232
|
-
var v =
|
|
233
|
-
if (!
|
|
234
|
-
if (
|
|
235
|
-
for (var O =
|
|
229
|
+
function h(e) {
|
|
230
|
+
var t = (e ||= {}).delimiter, n = e.newline, r = e.comments, i = e.step, a = e.preview, c = e.fastMode, l = null, u = !1, d = e.quoteChar == null ? "\"" : e.quoteChar, f = d;
|
|
231
|
+
if (e.escapeChar !== void 0 && (f = e.escapeChar), (typeof t != "string" || -1 < o.BAD_DELIMITERS.indexOf(t)) && (t = ","), r === t) throw Error("Comment character same as delimiter");
|
|
232
|
+
!0 === r ? r = "#" : (typeof r != "string" || -1 < o.BAD_DELIMITERS.indexOf(r)) && (r = !1), n !== "\n" && n !== "\r" && n !== "\r\n" && (n = "\n");
|
|
233
|
+
var p = 0, h = !1;
|
|
234
|
+
this.parse = function(o, g, _) {
|
|
235
|
+
if (typeof o != "string") throw Error("Input must be a string");
|
|
236
|
+
var v = o.length, y = t.length, b = n.length, S = r.length, C = x(i), w = [], T = [], E = [], D = p = 0;
|
|
237
|
+
if (!o) return z();
|
|
238
|
+
if (c || !1 !== c && o.indexOf(d) === -1) {
|
|
239
|
+
for (var O = o.split(n), k = 0; k < O.length; k++) {
|
|
236
240
|
if (E = O[k], p += E.length, k !== O.length - 1) p += n.length;
|
|
237
241
|
else if (_) return z();
|
|
238
|
-
if (!r || E.substring(0,
|
|
242
|
+
if (!r || E.substring(0, S) !== r) {
|
|
239
243
|
if (C) {
|
|
240
|
-
if (w = [], F(E.split(t)), B(),
|
|
244
|
+
if (w = [], F(E.split(t)), B(), h) return z();
|
|
241
245
|
} else F(E.split(t));
|
|
242
246
|
if (a && a <= k) return w = w.slice(0, a), z(!0);
|
|
243
247
|
}
|
|
244
248
|
}
|
|
245
249
|
return z();
|
|
246
250
|
}
|
|
247
|
-
for (var A =
|
|
248
|
-
if ((N =
|
|
251
|
+
for (var A = o.indexOf(t, p), j = o.indexOf(n, p), M = new RegExp(m(f) + m(d), "g"), N = o.indexOf(d, p);;) if (o[p] === d) for (N = p, p++;;) {
|
|
252
|
+
if ((N = o.indexOf(d, N + 1)) === -1) return _ || T.push({
|
|
249
253
|
type: "Quotes",
|
|
250
254
|
code: "MissingQuotes",
|
|
251
255
|
message: "Quoted field unterminated",
|
|
252
256
|
row: w.length,
|
|
253
257
|
index: p
|
|
254
258
|
}), L();
|
|
255
|
-
if (N === v - 1) return L(
|
|
256
|
-
if (d === f &&
|
|
257
|
-
else if (d === f || N === 0 ||
|
|
258
|
-
A !== -1 && A < N + 1 && (A =
|
|
259
|
-
var P = I((j = j !== -1 && j < N + 1 ?
|
|
260
|
-
if (
|
|
261
|
-
E.push(
|
|
259
|
+
if (N === v - 1) return L(o.substring(p, N).replace(M, d));
|
|
260
|
+
if (d === f && o[N + 1] === f) N++;
|
|
261
|
+
else if (d === f || N === 0 || o[N - 1] !== f) {
|
|
262
|
+
A !== -1 && A < N + 1 && (A = o.indexOf(t, N + 1));
|
|
263
|
+
var P = I((j = j !== -1 && j < N + 1 ? o.indexOf(n, N + 1) : j) === -1 ? A : Math.min(A, j));
|
|
264
|
+
if (o.substr(N + 1 + P, y) === t) {
|
|
265
|
+
E.push(o.substring(p, N).replace(M, d)), o[p = N + 1 + P + y] !== d && (N = o.indexOf(d, p)), A = o.indexOf(t, p), j = o.indexOf(n, p);
|
|
262
266
|
break;
|
|
263
267
|
}
|
|
264
|
-
if (P = I(j),
|
|
265
|
-
if (E.push(
|
|
268
|
+
if (P = I(j), o.substring(N + 1 + P, N + 1 + P + b) === n) {
|
|
269
|
+
if (E.push(o.substring(p, N).replace(M, d)), R(N + 1 + P + b), A = o.indexOf(t, p), N = o.indexOf(d, p), C && (B(), h)) return z();
|
|
266
270
|
if (a && w.length >= a) return z(!0);
|
|
267
271
|
break;
|
|
268
272
|
}
|
|
@@ -275,13 +279,13 @@ var t = e((e, t) => {
|
|
|
275
279
|
}), N++;
|
|
276
280
|
}
|
|
277
281
|
}
|
|
278
|
-
else if (r && E.length === 0 &&
|
|
282
|
+
else if (r && E.length === 0 && o.substring(p, p + S) === r) {
|
|
279
283
|
if (j === -1) return z();
|
|
280
|
-
p = j + b, j =
|
|
281
|
-
} else if (A !== -1 && (A < j || j === -1)) E.push(
|
|
284
|
+
p = j + b, j = o.indexOf(n, p), A = o.indexOf(t, p);
|
|
285
|
+
} else if (A !== -1 && (A < j || j === -1)) E.push(o.substring(p, A)), p = A + y, A = o.indexOf(t, p);
|
|
282
286
|
else {
|
|
283
287
|
if (j === -1) break;
|
|
284
|
-
if (E.push(
|
|
288
|
+
if (E.push(o.substring(p, j)), R(j + b), C && (B(), h)) return z();
|
|
285
289
|
if (a && w.length >= a) return z(!0);
|
|
286
290
|
}
|
|
287
291
|
return L();
|
|
@@ -289,21 +293,21 @@ var t = e((e, t) => {
|
|
|
289
293
|
w.push(e), D = p;
|
|
290
294
|
}
|
|
291
295
|
function I(e) {
|
|
292
|
-
return e !== -1 && (e =
|
|
296
|
+
return e !== -1 && (e = o.substring(N + 1, e)) && e.trim() === "" ? e.length : 0;
|
|
293
297
|
}
|
|
294
298
|
function L(e) {
|
|
295
|
-
return _ || (e === void 0 && (e =
|
|
299
|
+
return _ || (e === void 0 && (e = o.substring(p)), E.push(e), p = v, F(E), C && B()), z();
|
|
296
300
|
}
|
|
297
301
|
function R(e) {
|
|
298
|
-
p = e, F(E), E = [], j =
|
|
302
|
+
p = e, F(E), E = [], j = o.indexOf(n, p);
|
|
299
303
|
}
|
|
300
304
|
function z(r) {
|
|
301
305
|
if (e.header && !g && w.length && !u) {
|
|
302
306
|
var i = w[0], a = Object.create(null), o = new Set(i);
|
|
303
307
|
let t = !1;
|
|
304
308
|
for (let n = 0; n < i.length; n++) {
|
|
305
|
-
let r =
|
|
306
|
-
if (a[r =
|
|
309
|
+
let r = s(i[n]);
|
|
310
|
+
if (a[r = x(e.transformHeader) ? e.transformHeader(r, n) : r]) {
|
|
307
311
|
let e, s = a[r];
|
|
308
312
|
for (; e = r + "_" + s, s++, o.has(e););
|
|
309
313
|
o.add(e), i[n] = e, a[r]++, t = !0, (l = l === null ? {} : l)[e] = r;
|
|
@@ -318,7 +322,7 @@ var t = e((e, t) => {
|
|
|
318
322
|
meta: {
|
|
319
323
|
delimiter: t,
|
|
320
324
|
linebreak: n,
|
|
321
|
-
aborted:
|
|
325
|
+
aborted: h,
|
|
322
326
|
truncated: !!r,
|
|
323
327
|
cursor: D + (g || 0),
|
|
324
328
|
renamedHeaders: l
|
|
@@ -329,174 +333,147 @@ var t = e((e, t) => {
|
|
|
329
333
|
i(z()), w = [], T = [];
|
|
330
334
|
}
|
|
331
335
|
}, this.abort = function() {
|
|
332
|
-
|
|
336
|
+
h = !0;
|
|
333
337
|
}, this.getCharIndex = function() {
|
|
334
338
|
return p;
|
|
335
339
|
};
|
|
336
340
|
}
|
|
337
|
-
function
|
|
338
|
-
var t = e.data, n =
|
|
341
|
+
function g(e) {
|
|
342
|
+
var t = e.data, n = i[t.workerId], r = !1;
|
|
339
343
|
if (t.error) n.userError(t.error, t.file);
|
|
340
344
|
else if (t.results && t.results.data) {
|
|
341
|
-
var
|
|
345
|
+
var a = {
|
|
342
346
|
abort: function() {
|
|
343
|
-
r = !0,
|
|
347
|
+
r = !0, _(t.workerId, {
|
|
344
348
|
data: [],
|
|
345
349
|
errors: [],
|
|
346
350
|
meta: { aborted: !0 }
|
|
347
351
|
});
|
|
348
352
|
},
|
|
349
|
-
pause:
|
|
350
|
-
resume:
|
|
353
|
+
pause: v,
|
|
354
|
+
resume: v
|
|
351
355
|
};
|
|
352
|
-
if (
|
|
356
|
+
if (x(n.userStep)) {
|
|
353
357
|
for (var o = 0; o < t.results.data.length && (n.userStep({
|
|
354
358
|
data: t.results.data[o],
|
|
355
359
|
errors: t.results.errors,
|
|
356
360
|
meta: t.results.meta
|
|
357
|
-
},
|
|
361
|
+
}, a), !r); o++);
|
|
358
362
|
delete t.results;
|
|
359
|
-
} else
|
|
363
|
+
} else x(n.userChunk) && (n.userChunk(t.results, a, t.file), delete t.results);
|
|
360
364
|
}
|
|
361
|
-
t.finished && !r &&
|
|
365
|
+
t.finished && !r && _(t.workerId, t.results);
|
|
362
366
|
}
|
|
363
|
-
function
|
|
364
|
-
var n =
|
|
365
|
-
|
|
367
|
+
function _(e, t) {
|
|
368
|
+
var n = i[e];
|
|
369
|
+
x(n.userComplete) && n.userComplete(t), n.terminate(), delete i[e];
|
|
366
370
|
}
|
|
367
|
-
function
|
|
371
|
+
function v() {
|
|
368
372
|
throw Error("Not implemented.");
|
|
369
373
|
}
|
|
370
|
-
function
|
|
374
|
+
function y(e) {
|
|
371
375
|
if (typeof e != "object" || !e) return e;
|
|
372
376
|
var t, n = Array.isArray(e) ? [] : {};
|
|
373
|
-
for (t in e) n[t] =
|
|
377
|
+
for (t in e) n[t] = y(e[t]);
|
|
374
378
|
return n;
|
|
375
379
|
}
|
|
376
|
-
function
|
|
380
|
+
function b(e, t) {
|
|
377
381
|
return function() {
|
|
378
382
|
e.apply(t, arguments);
|
|
379
383
|
};
|
|
380
384
|
}
|
|
381
|
-
function
|
|
385
|
+
function x(e) {
|
|
382
386
|
return typeof e == "function";
|
|
383
387
|
}
|
|
384
|
-
return
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
388
|
+
return o.parse = function(n, r) {
|
|
389
|
+
if (x(c = (r ||= {}).dynamicTyping || !1) && (r.dynamicTypingFunction = c, c = {}), r.dynamicTyping = c, r.transform = !!x(r.transform) && r.transform, r.downloadTimeout !== void 0) {
|
|
390
|
+
var c = parseInt(r.downloadTimeout);
|
|
391
|
+
if (isNaN(c)) throw Error("Config downloadTimeout value (" + r.downloadTimeout + ") not parsable by parseInt(val).");
|
|
392
|
+
r.downloadTimeout = c;
|
|
393
|
+
}
|
|
394
|
+
if (!r.worker || !o.WORKERS_SUPPORTED) return c = null, o.NODE_STREAM_INPUT, typeof n == "string" ? (n = s(n), c = new (r.download ? l : d)(r)) : !0 === n.readable && x(n.read) && x(n.on) ? c = new f(r) : (t.File && n instanceof File || n instanceof Object) && (c = new u(r)), c.stream(n);
|
|
395
|
+
(c = (() => {
|
|
396
|
+
var n;
|
|
397
|
+
return !!o.WORKERS_SUPPORTED && (n = (() => {
|
|
398
|
+
var n = t.URL || t.webkitURL || null, r = e.toString();
|
|
399
|
+
return o.BLOB_URL ||= n.createObjectURL(new Blob([
|
|
392
400
|
"var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ",
|
|
393
401
|
"(",
|
|
394
402
|
r,
|
|
395
403
|
")();"
|
|
396
404
|
], { type: "text/javascript" }));
|
|
397
|
-
})(), (
|
|
398
|
-
})()).userStep = r.step,
|
|
399
|
-
input:
|
|
405
|
+
})(), (n = new t.Worker(n)).onmessage = g, n.id = a++, i[n.id] = n);
|
|
406
|
+
})()).userStep = r.step, c.userChunk = r.chunk, c.userComplete = r.complete, c.userError = r.error, r.step = x(r.step), r.chunk = x(r.chunk), r.complete = x(r.complete), r.error = x(r.error), delete r.worker, c.postMessage({
|
|
407
|
+
input: n,
|
|
400
408
|
config: r,
|
|
401
|
-
workerId:
|
|
409
|
+
workerId: c.id
|
|
402
410
|
});
|
|
403
|
-
},
|
|
404
|
-
var n = !1, r = !0, i = ",", a = "\r\n",
|
|
411
|
+
}, o.unparse = function(e, t) {
|
|
412
|
+
var n = !1, r = !0, i = ",", a = "\r\n", s = "\"", c = s + s, l = !1, u = null, d = !1, f = ((() => {
|
|
405
413
|
if (typeof t == "object") {
|
|
406
|
-
if (typeof t.delimiter != "string" ||
|
|
414
|
+
if (typeof t.delimiter != "string" || o.BAD_DELIMITERS.filter(function(e) {
|
|
407
415
|
return t.delimiter.indexOf(e) !== -1;
|
|
408
|
-
}).length || (i = t.delimiter), typeof t.quotes != "boolean" && typeof t.quotes != "function" && !Array.isArray(t.quotes) || (n = t.quotes), typeof t.skipEmptyLines != "boolean" && typeof t.skipEmptyLines != "string" || (l = t.skipEmptyLines), typeof t.newline == "string" && (a = t.newline), typeof t.quoteChar == "string" && (
|
|
416
|
+
}).length || (i = t.delimiter), typeof t.quotes != "boolean" && typeof t.quotes != "function" && !Array.isArray(t.quotes) || (n = t.quotes), typeof t.skipEmptyLines != "boolean" && typeof t.skipEmptyLines != "string" || (l = t.skipEmptyLines), typeof t.newline == "string" && (a = t.newline), typeof t.quoteChar == "string" && (s = t.quoteChar, c = s + s), typeof t.header == "boolean" && (r = t.header), Array.isArray(t.columns)) {
|
|
409
417
|
if (t.columns.length === 0) throw Error("Option columns is empty");
|
|
410
418
|
u = t.columns;
|
|
411
419
|
}
|
|
412
|
-
t.escapeChar !== void 0 && (c = t.escapeChar +
|
|
420
|
+
t.escapeChar !== void 0 && (c = t.escapeChar + s), t.escapeFormulae instanceof RegExp ? d = t.escapeFormulae : typeof t.escapeFormulae == "boolean" && t.escapeFormulae && (d = /^[=+\-@\t\r].*$/);
|
|
413
421
|
}
|
|
414
|
-
})(), new RegExp(
|
|
422
|
+
})(), new RegExp(m(s), "g"));
|
|
415
423
|
if (typeof e == "string" && (e = JSON.parse(e)), Array.isArray(e)) {
|
|
416
424
|
if (!e.length || Array.isArray(e[0])) return p(null, e, l);
|
|
417
425
|
if (typeof e[0] == "object") return p(u || Object.keys(e[0]), e, l);
|
|
418
|
-
} else if (typeof e == "object") return typeof e.data == "string" && (e.data = JSON.parse(e.data)), Array.isArray(e.data) && (e.fields
|
|
426
|
+
} else if (typeof e == "object") return typeof e.data == "string" && (e.data = JSON.parse(e.data)), Array.isArray(e.data) && (e.fields || (e.fields = e.meta && e.meta.fields || u), e.fields || (e.fields = Array.isArray(e.data[0]) ? e.fields : typeof e.data[0] == "object" ? Object.keys(e.data[0]) : []), Array.isArray(e.data[0]) || typeof e.data[0] == "object" || (e.data = [e.data])), p(e.fields || [], e.data || [], l);
|
|
419
427
|
throw Error("Unable to serialize unrecognized input");
|
|
420
428
|
function p(e, t, n) {
|
|
421
429
|
var o = "", s = (typeof e == "string" && (e = JSON.parse(e)), typeof t == "string" && (t = JSON.parse(t)), Array.isArray(e) && 0 < e.length), c = !Array.isArray(t[0]);
|
|
422
430
|
if (s && r) {
|
|
423
|
-
for (var l = 0; l < e.length; l++) 0 < l && (o += i), o +=
|
|
431
|
+
for (var l = 0; l < e.length; l++) 0 < l && (o += i), o += h(e[l], l);
|
|
424
432
|
0 < t.length && (o += a);
|
|
425
433
|
}
|
|
426
434
|
for (var u = 0; u < t.length; u++) {
|
|
427
435
|
var d = (s ? e : t[u]).length, f = !1, p = s ? Object.keys(t[u]).length === 0 : t[u].length === 0;
|
|
428
436
|
if (n && !s && (f = n === "greedy" ? t[u].join("").trim() === "" : t[u].length === 1 && t[u][0].length === 0), n === "greedy" && s) {
|
|
429
|
-
for (var
|
|
437
|
+
for (var m = [], g = 0; g < d; g++) {
|
|
430
438
|
var _ = c ? e[g] : g;
|
|
431
|
-
|
|
439
|
+
m.push(t[u][_]);
|
|
432
440
|
}
|
|
433
|
-
f =
|
|
441
|
+
f = m.join("").trim() === "";
|
|
434
442
|
}
|
|
435
443
|
if (!f) {
|
|
436
444
|
for (var v = 0; v < d; v++) {
|
|
437
445
|
0 < v && !p && (o += i);
|
|
438
446
|
var y = s && c ? e[v] : v;
|
|
439
|
-
o +=
|
|
447
|
+
o += h(t[u][y], v);
|
|
440
448
|
}
|
|
441
449
|
u < t.length - 1 && (!n || 0 < d && !p) && (o += a);
|
|
442
450
|
}
|
|
443
451
|
}
|
|
444
452
|
return o;
|
|
445
453
|
}
|
|
446
|
-
function
|
|
454
|
+
function h(e, t) {
|
|
447
455
|
var r, a, l;
|
|
448
|
-
return e == null ? "" : e.constructor === Date ?
|
|
456
|
+
return e == null ? "" : e.constructor === Date ? isNaN(e.getTime()) ? "" : e.toISOString() : (l = !1, d && typeof e == "string" && d.test(e) && (e = "'" + e, l = !0), a = (r = e.toString()).replace(f, c), (l = l || !0 === n || typeof n == "function" && n(e, t) || Array.isArray(n) && n[t] || ((e, t) => {
|
|
449
457
|
for (var n = 0; n < t.length; n++) if (-1 < e.indexOf(t[n])) return !0;
|
|
450
458
|
return !1;
|
|
451
|
-
})(a,
|
|
459
|
+
})(a, o.BAD_DELIMITERS) || -1 < a.indexOf(i) || -1 < r.indexOf(s) || a.charAt(0) === " " || a.charAt(a.length - 1) === " ") ? s + a + s : a);
|
|
452
460
|
}
|
|
453
|
-
},
|
|
461
|
+
}, o.RECORD_SEP = "", o.UNIT_SEP = "", o.BYTE_ORDER_MARK = "", o.BAD_DELIMITERS = [
|
|
454
462
|
"\r",
|
|
455
463
|
"\n",
|
|
456
464
|
"\"",
|
|
457
|
-
|
|
458
|
-
],
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
for (var a = 0; a < this.files.length; a++) i.push({
|
|
463
|
-
file: this.files[a],
|
|
464
|
-
inputElem: this,
|
|
465
|
-
instanceConfig: t.extend({}, r)
|
|
466
|
-
});
|
|
467
|
-
}), a(), this;
|
|
468
|
-
function a() {
|
|
469
|
-
if (i.length === 0) S(e.complete) && e.complete();
|
|
470
|
-
else {
|
|
471
|
-
var n, r, a, c = i[0];
|
|
472
|
-
if (S(e.before)) {
|
|
473
|
-
var l = e.before(c.file, c.inputElem);
|
|
474
|
-
if (typeof l == "object") {
|
|
475
|
-
if (l.action === "abort") return n = c.file, r = c.inputElem, a = l.reason, void (S(e.error) && e.error({ name: "AbortError" }, n, r, a));
|
|
476
|
-
if (l.action === "skip") return void o();
|
|
477
|
-
typeof l.config == "object" && (c.instanceConfig = t.extend(c.instanceConfig, l.config));
|
|
478
|
-
} else if (l === "skip") return void o();
|
|
479
|
-
}
|
|
480
|
-
var u = c.instanceConfig.complete;
|
|
481
|
-
c.instanceConfig.complete = function(e) {
|
|
482
|
-
S(u) && u(e, c.file, c.inputElem), o();
|
|
483
|
-
}, s.parse(c.file, c.instanceConfig);
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
function o() {
|
|
487
|
-
i.splice(0, 1), a();
|
|
488
|
-
}
|
|
489
|
-
}), i && (n.onmessage = function(e) {
|
|
490
|
-
e = e.data, s.WORKER_ID === void 0 && e && (s.WORKER_ID = e.workerId), typeof e.input == "string" ? n.postMessage({
|
|
491
|
-
workerId: s.WORKER_ID,
|
|
492
|
-
results: s.parse(e.input, e.config),
|
|
465
|
+
o.BYTE_ORDER_MARK
|
|
466
|
+
], o.WORKERS_SUPPORTED = !n && !!t.Worker, o.NODE_STREAM_INPUT = 1, o.LocalChunkSize = 10485760, o.RemoteChunkSize = 5242880, o.DefaultDelimiter = ",", o.Parser = h, o.ParserHandle = p, o.NetworkStreamer = l, o.FileStreamer = u, o.StringStreamer = d, o.ReadableStreamStreamer = f, r && (t.onmessage = function(e) {
|
|
467
|
+
e = e.data, o.WORKER_ID === void 0 && e && (o.WORKER_ID = e.workerId), typeof e.input == "string" ? t.postMessage({
|
|
468
|
+
workerId: o.WORKER_ID,
|
|
469
|
+
results: o.parse(e.input, e.config),
|
|
493
470
|
finished: !0
|
|
494
|
-
}) : (
|
|
495
|
-
workerId:
|
|
471
|
+
}) : (t.File && e.input instanceof File || e.input instanceof Object) && (e = o.parse(e.input, e.config)) && t.postMessage({
|
|
472
|
+
workerId: o.WORKER_ID,
|
|
496
473
|
results: e,
|
|
497
474
|
finished: !0
|
|
498
475
|
});
|
|
499
|
-
}), (
|
|
476
|
+
}), (l.prototype = Object.create(c.prototype)).constructor = l, (u.prototype = Object.create(c.prototype)).constructor = u, (d.prototype = Object.create(d.prototype)).constructor = d, (f.prototype = Object.create(c.prototype)).constructor = f, o;
|
|
500
477
|
};
|
|
501
478
|
typeof define == "function" && define.amd ? define([], r) : typeof t == "object" && e !== void 0 ? t.exports = r() : n.Papa = r();
|
|
502
479
|
});
|