@sheetxl/sdk 0.7.26 → 0.7.28-beta.1
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 +34 -0
- package/browser/cjs/B7_pDFYCVzt-3hUs.cjs +1 -0
- package/browser/cjs/D590vnHyyrIYenQ7.cjs +33 -0
- package/browser/cjs/DfVZ_U2YapkL3Y3y.cjs +1 -0
- package/browser/cjs/DsII2GRIYGbaZjIE.cjs +1 -0
- package/browser/cjs/Dv3x6zut1ZRUt3IF.cjs +10 -0
- package/browser/cjs/index.cjs +3 -6
- package/browser/cjs/nE4y6hua6AwWSil7.cjs +1 -0
- package/browser/cjs/nMss3hrHzgX9s6dC.cjs +57 -0
- package/browser/esm/AyOmyt_vaPirbWnn.mjs +49986 -0
- package/browser/esm/BJ5lU2Y0r4Vy8n4q.mjs +109 -0
- package/browser/esm/BvaEmG7AaTSm7dFt.mjs +818 -0
- package/browser/esm/CWKJatjtHKfWtM2b.mjs +503 -0
- package/browser/esm/CkhE5KvHQvKzw4Ll.mjs +4436 -0
- package/browser/esm/Dpwf1IgHZjpEpK-K.mjs +24 -0
- package/browser/esm/index.mjs +3225 -62
- package/browser/esm/uFvYxePB3xD2HrP0.mjs +14 -0
- package/licenses/dependencies.txt +74 -193
- package/node/esm/CYXOvL3qwWeDE0xf.mjs +114 -0
- package/node/esm/Dgmq_XXiU2AQw1tX.mjs +22 -0
- package/node/esm/index.mjs +53619 -23254
- package/node/esm/qxrG4h6T0dAo8eZ6.mjs +837 -0
- package/package.json +19 -14
- package/resources/contents.json +21 -0
- package/resources/locales/contents.json +19 -0
- package/resources/locales/de/grammar.json +16 -0
- package/resources/locales/de/model.msg.json +510 -0
- package/resources/locales/en/model.msg.json +525 -0
- package/types/index.d.ts +2 -21294
- package/types/scripting-enums.json +1009 -0
- package/types/scripting.d.ts +26540 -31455
- package/types/src/address/AddressUtils.d.ts +252 -0
- package/types/src/address/_AddressMessages.d.ts +7 -0
- package/types/src/address/index.d.ts +35 -0
- package/types/src/anchored/AbstractAnchored.d.ts +200 -0
- package/types/src/anchored/Anchored.d.ts +154 -0
- package/types/src/anchored/AnchoredMap.d.ts +178 -0
- package/types/src/anchored/IAnchored.d.ts +118 -0
- package/types/src/anchored/IAnchoredMap.d.ts +207 -0
- package/types/src/anchored/_AnchorMessages.d.ts +3 -0
- package/types/src/anchored/index.d.ts +2 -0
- package/types/src/autoFill/AutoFill.d.ts +161 -0
- package/types/src/autoFill/IAutoFill.d.ts +117 -0
- package/types/src/autoFill/index.d.ts +3 -0
- package/types/src/border/IBorder.d.ts +284 -0
- package/types/src/border/index.d.ts +2 -0
- package/types/src/calculation/Calculation.d.ts +440 -0
- package/types/src/calculation/FormulaLiterals.d.ts +18 -0
- package/types/src/calculation/ICalculation.d.ts +1016 -0
- package/types/src/calculation/INamedFormulasCollection.d.ts +141 -0
- package/types/src/calculation/NamedFormulaCollection.d.ts +671 -0
- package/types/src/calculation/TokenType.d.ts +117 -0
- package/types/src/calculation/Types.d.ts +110 -0
- package/types/src/calculation/_CalculationMessages.d.ts +3 -0
- package/types/src/calculation/builtInNames.d.ts +2 -0
- package/types/src/calculation/compiler/ASTTypes.d.ts +180 -0
- package/types/src/calculation/compiler/CompilerLocale.d.ts +69 -0
- package/types/src/calculation/compiler/CompilerUtils.d.ts +331 -0
- package/types/src/calculation/compiler/FormulaCompiler.d.ts +69 -0
- package/types/src/calculation/compiler/FormulaLexer.d.ts +85 -0
- package/types/src/calculation/compiler/FormulaParser.d.ts +270 -0
- package/types/src/calculation/compiler/FormulaSeparators.d.ts +35 -0
- package/types/src/calculation/compiler/LiteTransform.d.ts +15 -0
- package/types/src/calculation/compiler/ParserUtils.d.ts +167 -0
- package/types/src/calculation/compiler/SRLexer.d.ts +19 -0
- package/types/src/calculation/compiler/SRParser.d.ts +38 -0
- package/types/src/calculation/compiler/Types.d.ts +274 -0
- package/types/src/calculation/compiler/index.d.ts +3 -0
- package/types/src/calculation/executor/CalcExecutor.d.ts +115 -0
- package/types/src/calculation/executor/CalcExecutorUtils.d.ts +11 -0
- package/types/src/calculation/executor/index.d.ts +3 -0
- package/types/src/calculation/formula/Formula.d.ts +168 -0
- package/types/src/calculation/formula/FormulaBlock.d.ts +207 -0
- package/types/src/calculation/formula/IFormulaBlock.d.ts +181 -0
- package/types/src/calculation/formula/LambdaValue.d.ts +166 -0
- package/types/src/calculation/formula/TokenUtils.d.ts +26 -0
- package/types/src/calculation/formula/index.d.ts +4 -0
- package/types/src/calculation/functions/Operators.d.ts +30 -0
- package/types/src/calculation/functions/index.d.ts +2 -0
- package/types/src/calculation/functions/initializeFunctions.d.ts +22 -0
- package/types/src/calculation/grid/CalcGrid.d.ts +205 -0
- package/types/src/calculation/grid/CalcGridUtils.d.ts +172 -0
- package/types/src/calculation/grid/ICalcGrid.d.ts +500 -0
- package/types/src/calculation/grid/index.d.ts +3 -0
- package/types/src/calculation/index.d.ts +5 -0
- package/types/src/calculation/spatial/ContentfulSpatialValue.d.ts +25 -0
- package/types/src/calculation/spatial/FormulaSpatialValue.d.ts +120 -0
- package/types/src/calculation/spatial/PrecedentSpatialValue.d.ts +115 -0
- package/types/src/calculation/spatial/SpillEntry.d.ts +40 -0
- package/types/src/calculation/spatial/index.d.ts +5 -0
- package/types/src/calculation/state/CalcNode.d.ts +71 -0
- package/types/src/calculation/state/CalcScope.d.ts +35 -0
- package/types/src/calculation/state/CalcState.d.ts +28 -0
- package/types/src/calculation/state/CalculationContext.d.ts +125 -0
- package/types/src/calculation/state/IContextContainer.d.ts +320 -0
- package/types/src/calculation/state/index.d.ts +6 -0
- package/types/src/calculation/symbol/FunctionSymbolProvider.d.ts +44 -0
- package/types/src/calculation/symbol/ISymbolRegistry.d.ts +93 -0
- package/types/src/calculation/symbol/IndirectSymbolProvider.d.ts +144 -0
- package/types/src/calculation/symbol/SheetSymbolProvider.d.ts +18 -0
- package/types/src/calculation/symbol/SymbolRegistry.d.ts +19 -0
- package/types/src/calculation/symbol/TableColumnSymbolProvider.d.ts +21 -0
- package/types/src/calculation/symbol/TableSymbolProvider.d.ts +19 -0
- package/types/src/calculation/symbol/index.d.ts +9 -0
- package/types/src/cell/ICell.d.ts +672 -0
- package/types/src/cell/ICellHeader.d.ts +142 -0
- package/types/src/cell/ICellProtection.d.ts +41 -0
- package/types/src/cell/index.d.ts +4 -0
- package/types/src/cellRange/ICellHeaderRange.d.ts +306 -0
- package/types/src/cellRange/ICellHeaderRanges.d.ts +107 -0
- package/types/src/cellRange/ICellRange.d.ts +2509 -0
- package/types/src/cellRange/ICellRanges.d.ts +407 -0
- package/types/src/cellRange/ICellRegion.d.ts +133 -0
- package/types/src/cellRange/_GraphNode.d.ts +38 -0
- package/types/src/cellRange/index.d.ts +6 -0
- package/types/src/chart/Chart.d.ts +53 -0
- package/types/src/chart/IChart.d.ts +42 -0
- package/types/src/chart/index.d.ts +5 -0
- package/types/src/collections/ArraysGrid.d.ts +72 -0
- package/types/src/collections/BooleanList.d.ts +67 -0
- package/types/src/collections/GridMap.d.ts +47 -0
- package/types/src/collections/HashMap.d.ts +15 -0
- package/types/src/collections/IGrid.d.ts +278 -0
- package/types/src/collections/IList.d.ts +89 -0
- package/types/src/collections/IMap.d.ts +45 -0
- package/types/src/collections/IReadableList.d.ts +120 -0
- package/types/src/collections/ISortedMap.d.ts +171 -0
- package/types/src/collections/ISparseGrid.d.ts +61 -0
- package/types/src/collections/ISparseList.d.ts +103 -0
- package/types/src/collections/ISpatialMap.d.ts +515 -0
- package/types/src/collections/ISpatialMap3D.d.ts +116 -0
- package/types/src/collections/IWritableList.d.ts +41 -0
- package/types/src/collections/ImmutableList.d.ts +52 -0
- package/types/src/collections/IteratorUtils.d.ts +91 -0
- package/types/src/collections/MixedTypedArrayList.d.ts +140 -0
- package/types/src/collections/OverlappingRangeIterator.d.ts +91 -0
- package/types/src/collections/RTree.d.ts +111 -0
- package/types/src/collections/RepeatingList.d.ts +20 -0
- package/types/src/collections/SortedMap.d.ts +396 -0
- package/types/src/collections/SparseGrid.d.ts +99 -0
- package/types/src/collections/SparseList.d.ts +90 -0
- package/types/src/collections/SpatialMap.d.ts +102 -0
- package/types/src/collections/SpatialMap3D.d.ts +64 -0
- package/types/src/collections/Tuple.d.ts +160 -0
- package/types/src/collections/_CollectionUtils.d.ts +25 -0
- package/types/src/collections/_GridUtils.d.ts +268 -0
- package/types/src/collections/_RunUtils.d.ts +170 -0
- package/types/src/collections/_SpatialUtils.d.ts +115 -0
- package/types/src/collections/index.d.ts +21 -0
- package/types/src/color/Color.d.ts +120 -0
- package/types/src/color/ColorSpace.d.ts +45 -0
- package/types/src/color/IColor.d.ts +1110 -0
- package/types/src/color/_BuiltInIndexDefs.d.ts +4 -0
- package/types/src/color/_BuiltInNamedDefs.d.ts +29 -0
- package/types/src/color/_BuiltInSchemeDefs.d.ts +7 -0
- package/types/src/color/_ColorUtils.d.ts +93 -0
- package/types/src/color/index.d.ts +3 -0
- package/types/src/comment/IComment.d.ts +108 -0
- package/types/src/comment/index.d.ts +2 -0
- package/types/src/condition/AnchoredConditional.d.ts +263 -0
- package/types/src/condition/BuiltInOperators/AbstractOperator.d.ts +83 -0
- package/types/src/condition/BuiltInOperators/AfterEqualToOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/AfterOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/AndOperator.d.ts +12 -0
- package/types/src/condition/BuiltInOperators/AverageOperator.d.ts +12 -0
- package/types/src/condition/BuiltInOperators/BeforeEqualToOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/BeforeOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/BetweenOperator.d.ts +12 -0
- package/types/src/condition/BuiltInOperators/BlankOperator.d.ts +9 -0
- package/types/src/condition/BuiltInOperators/ColorOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/ContainsOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/EndsWithOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/EqualToOperator.d.ts +11 -0
- package/types/src/condition/BuiltInOperators/ErrorOperator.d.ts +9 -0
- package/types/src/condition/BuiltInOperators/ExpressionOperator.d.ts +17 -0
- package/types/src/condition/BuiltInOperators/GreaterThanEqualToOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/GreaterThanOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/IconOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/InSetOperator.d.ts +14 -0
- package/types/src/condition/BuiltInOperators/LessThanEqualToOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/LessThanOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/NotOperator.d.ts +12 -0
- package/types/src/condition/BuiltInOperators/OrOperator.d.ts +12 -0
- package/types/src/condition/BuiltInOperators/StartsWithOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/TimePeriodOperator.d.ts +13 -0
- package/types/src/condition/BuiltInOperators/TopNOperator.d.ts +12 -0
- package/types/src/condition/BuiltInOperators/UniqueOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/ValidEmailOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/ValidUrlOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/index.d.ts +59 -0
- package/types/src/condition/BuiltinSelectors/BaseSelector.d.ts +43 -0
- package/types/src/condition/BuiltinSelectors/DateSelector.d.ts +14 -0
- package/types/src/condition/BuiltinSelectors/ListSelector.d.ts +12 -0
- package/types/src/condition/BuiltinSelectors/TextLengthSelector.d.ts +16 -0
- package/types/src/condition/BuiltinSelectors/TimeSelector.d.ts +14 -0
- package/types/src/condition/BuiltinSelectors/WholeSelector.d.ts +14 -0
- package/types/src/condition/BuiltinSelectors/index.d.ts +18 -0
- package/types/src/condition/Condition.d.ts +123 -0
- package/types/src/condition/ICondition.d.ts +915 -0
- package/types/src/condition/_ConditionUtils.d.ts +190 -0
- package/types/src/condition/index.d.ts +3 -0
- package/types/src/conditionalFormat/ConditionalEntry.d.ts +20 -0
- package/types/src/conditionalFormat/ConditionalFormat.d.ts +190 -0
- package/types/src/conditionalFormat/ConditionalFormatCollection.d.ts +20 -0
- package/types/src/conditionalFormat/IConditionalFormat.d.ts +518 -0
- package/types/src/conditionalFormat/IConditionalFormatCollection.d.ts +70 -0
- package/types/src/conditionalFormat/_ConditionalMessages.d.ts +2 -0
- package/types/src/conditionalFormat/index.d.ts +3 -0
- package/types/src/dataValidation/DataValidation.d.ts +121 -0
- package/types/src/dataValidation/DataValidationCollection.d.ts +20 -0
- package/types/src/dataValidation/IDataValidation.d.ts +327 -0
- package/types/src/dataValidation/IDataValidationCollection.d.ts +63 -0
- package/types/src/dataValidation/_DataValidationMessages.d.ts +2 -0
- package/types/src/dataValidation/_Utils.d.ts +10 -0
- package/types/src/dataValidation/index.d.ts +3 -0
- package/types/src/date/DateUtils.d.ts +8 -0
- package/types/src/date/_DateUtils.d.ts +122 -0
- package/types/src/date/index.d.ts +2 -0
- package/types/src/externalBook/ExternalBookCollection.d.ts +36 -0
- package/types/src/externalBook/IExternalBook.d.ts +97 -0
- package/types/src/externalBook/IExternalBookCollection.d.ts +29 -0
- package/types/src/externalBook/index.d.ts +3 -0
- package/types/src/fill/IEffect.d.ts +389 -0
- package/types/src/fill/IFill.d.ts +597 -0
- package/types/src/fill/IStroke.d.ts +265 -0
- package/types/src/fill/_BuiltInPatterns.d.ts +27 -0
- package/types/src/fill/index.d.ts +4 -0
- package/types/src/filter/IFilter.d.ts +83 -0
- package/types/src/filter/index.d.ts +2 -0
- package/types/src/font/CanvasFontMeasurer.d.ts +25 -0
- package/types/src/font/ExtendedTextMetrics.d.ts +1 -0
- package/types/src/font/Font.d.ts +19 -0
- package/types/src/font/FontKitFontMeasurer.d.ts +11 -0
- package/types/src/font/FontUtils.d.ts +9 -0
- package/types/src/font/IFont.d.ts +261 -0
- package/types/src/font/IFontCollection.d.ts +31 -0
- package/types/src/font/SimpleFontMeasurer.d.ts +4 -0
- package/types/src/font/_FontUtils.d.ts +22 -0
- package/types/src/font/index.d.ts +5 -0
- package/types/src/history/IHistory.d.ts +110 -0
- package/types/src/history/index.d.ts +2 -0
- package/types/src/hyperlink/IHyperlink.d.ts +96 -0
- package/types/src/hyperlink/_Hyperlink.d.ts +21 -0
- package/types/src/hyperlink/index.d.ts +2 -0
- package/types/src/i18n/LanguagePack.d.ts +97 -0
- package/types/src/i18n/LocaleProfile.d.ts +15 -0
- package/types/src/i18n/_CurrencyData.d.ts +20 -0
- package/types/src/i18n/functionLocales.d.ts +6 -0
- package/types/src/i18n/index.d.ts +4 -0
- package/types/src/i18n/locales.d.ts +3 -0
- package/types/src/index.d.ts +71 -0
- package/types/src/io/AbstractBackingStore.d.ts +53 -0
- package/types/src/io/ArrayBackingStore.d.ts +34 -0
- package/types/src/io/IWorkbookIO.d.ts +1322 -0
- package/types/src/io/WorkbookIO.d.ts +91 -0
- package/types/src/io/WorkbookOrigin.d.ts +114 -0
- package/types/src/io/WorkbookRegistry.d.ts +49 -0
- package/types/src/io/index.d.ts +5 -0
- package/types/src/lib/file/file.browser.d.ts +41 -0
- package/types/src/lib/file/file.node.d.ts +25 -0
- package/types/src/lib/utils/_Utils.d.ts +20 -0
- package/types/src/lib/utils/banner.d.ts +6 -0
- package/types/src/lib/utils/utils.browser.d.ts +28 -0
- package/types/src/lib/utils/utils.node.d.ts +42 -0
- package/types/src/license/LicenseDetails.d.ts +22 -0
- package/types/src/license/LicenseManager.d.ts +63 -0
- package/types/src/license/index.d.ts +3 -0
- package/types/src/license/license-key.d.ts +33 -0
- package/types/src/listener/IListener.d.ts +62 -0
- package/types/src/listener/ListenerEmitter.d.ts +47 -0
- package/types/src/listener/index.d.ts +2 -0
- package/types/src/model/AbstractModel.d.ts +90 -0
- package/types/src/model/IModel.d.ts +108 -0
- package/types/src/model/_ModelMessages.d.ts +2 -0
- package/types/src/model/index.d.ts +3 -0
- package/types/src/movable/CustomElement.d.ts +42 -0
- package/types/src/movable/ICustomElement.d.ts +29 -0
- package/types/src/movable/IGroup.d.ts +30 -0
- package/types/src/movable/IMovable.d.ts +327 -0
- package/types/src/movable/IMovableCollection.d.ts +129 -0
- package/types/src/movable/IMovableSelection.d.ts +49 -0
- package/types/src/movable/Movable.d.ts +221 -0
- package/types/src/movable/MovableCollection.d.ts +29 -0
- package/types/src/movable/_MovableUtils.d.ts +4 -0
- package/types/src/movable/index.d.ts +4 -0
- package/types/src/named/AbstractNamed.d.ts +41 -0
- package/types/src/named/INamed.d.ts +225 -0
- package/types/src/named/INamedCollection.d.ts +230 -0
- package/types/src/named/NamedCollection.d.ts +302 -0
- package/types/src/named/_BuiltInNamed.d.ts +6 -0
- package/types/src/named/index.d.ts +3 -0
- package/types/src/numFmt/BuiltInFormats.d.ts +49 -0
- package/types/src/numFmt/IFormatEngine.d.ts +149 -0
- package/types/src/numFmt/NumberFormatBuilder.d.ts +46 -0
- package/types/src/numFmt/NumberFormatParser.d.ts +168 -0
- package/types/src/numFmt/NumberFormatStyles.d.ts +43 -0
- package/types/src/numFmt/NumberFormatType.d.ts +79 -0
- package/types/src/numFmt/NumfmtFormatEngine.d.ts +33 -0
- package/types/src/numFmt/_BuiltInNumberFormats.d.ts +12 -0
- package/types/src/numFmt/_FormatCell.d.ts +52 -0
- package/types/src/numFmt/_NumFmtUtils.d.ts +102 -0
- package/types/src/numFmt/index.d.ts +105 -0
- package/types/src/numFmt/vendor/numfmt/_sheetxl.d.ts +15 -0
- package/types/src/numFmt/vendor/numfmt/index.d.ts +721 -0
- package/types/src/picture/IPicture.d.ts +69 -0
- package/types/src/picture/Picture.d.ts +67 -0
- package/types/src/picture/index.d.ts +2 -0
- package/types/src/primitives/CompositeRangeStats.d.ts +63 -0
- package/types/src/primitives/Criteria.d.ts +35 -0
- package/types/src/primitives/FormulaContext.d.ts +2 -0
- package/types/src/primitives/PrimitiveUtils.d.ts +255 -0
- package/types/src/primitives/Range.d.ts +221 -0
- package/types/src/primitives/RangeStats.d.ts +48 -0
- package/types/src/primitives/ReferenceRange.d.ts +19 -0
- package/types/src/primitives/Runtime.d.ts +55 -0
- package/types/src/primitives/ScalarCollation.d.ts +174 -0
- package/types/src/primitives/TextFold.d.ts +62 -0
- package/types/src/primitives/_PrimitiveMessages.d.ts +3 -0
- package/types/src/primitives/index.d.ts +7 -0
- package/types/src/primitives/stats/AggregateStats.d.ts +119 -0
- package/types/src/primitives/stats/Cancellation.d.ts +43 -0
- package/types/src/primitives/stats/FrequencyStats.d.ts +94 -0
- package/types/src/primitives/stats/Ranked.d.ts +26 -0
- package/types/src/primitives/stats/ScalarOrder.d.ts +18 -0
- package/types/src/primitives/stats/SortedNumbers.d.ts +48 -0
- package/types/src/primitives/stats/index.d.ts +7 -0
- package/types/src/print/IPrint.d.ts +234 -0
- package/types/src/print/index.d.ts +2 -0
- package/types/src/protectedRange/IProtectedRange.d.ts +239 -0
- package/types/src/protectedRange/IProtectedRangeCollection.d.ts +73 -0
- package/types/src/protectedRange/ProtectedRange.d.ts +101 -0
- package/types/src/protectedRange/ProtectedRangeCollection.d.ts +21 -0
- package/types/src/protectedRange/index.d.ts +3 -0
- package/types/src/protection/DefaultProtection.d.ts +43 -0
- package/types/src/protection/IProtection.d.ts +170 -0
- package/types/src/protection/PasswordHasher.d.ts +35 -0
- package/types/src/protection/index.d.ts +6 -0
- package/types/src/resource/IResource.d.ts +98 -0
- package/types/src/resource/IResourceCollection.d.ts +96 -0
- package/types/src/resource/Resource.d.ts +39 -0
- package/types/src/resource/ResourceCollection.d.ts +19 -0
- package/types/src/resource/_ResourceMessages.d.ts +4 -0
- package/types/src/resource/index.d.ts +5 -0
- package/types/src/resource/resourceKinds.d.ts +23 -0
- package/types/src/richData/index.d.ts +1 -0
- package/types/src/scripting/FunctionCollection.d.ts +88 -0
- package/types/src/scripting/IFunctionCollection.d.ts +208 -0
- package/types/src/scripting/IModule.d.ts +82 -0
- package/types/src/scripting/IModuleCollection.d.ts +79 -0
- package/types/src/scripting/IScript.d.ts +289 -0
- package/types/src/scripting/ITypedFunction.d.ts +61 -0
- package/types/src/scripting/MacroFunction.d.ts +15 -0
- package/types/src/scripting/Module.d.ts +39 -0
- package/types/src/scripting/ModuleCollection.d.ts +56 -0
- package/types/src/scripting/Runtime.d.ts +16 -0
- package/types/src/scripting/Scripts.d.ts +79 -0
- package/types/src/scripting/TypedFunction.d.ts +161 -0
- package/types/src/scripting/_FunctionIndex.d.ts +111 -0
- package/types/src/scripting/_FunctionMessages.d.ts +6 -0
- package/types/src/scripting/_ModuleUtils.d.ts +5 -0
- package/types/src/scripting/_ScriptUtils.d.ts +18 -0
- package/types/src/scripting/enumManifest.browser.d.ts +9 -0
- package/types/src/scripting/enumManifest.node.d.ts +13 -0
- package/types/src/scripting/index.d.ts +4 -0
- package/types/src/selection/IRangeSelection.d.ts +307 -0
- package/types/src/selection/RangeSelection.d.ts +144 -0
- package/types/src/selection/_RangeSelectionUtils.d.ts +32 -0
- package/types/src/selection/index.d.ts +2 -0
- package/types/src/shape/IShape.d.ts +279 -0
- package/types/src/shape/Shape.d.ts +54 -0
- package/types/src/shape/index.d.ts +2 -0
- package/types/src/sheet/CellRegion.d.ts +106 -0
- package/types/src/sheet/ICellContainerOptions.d.ts +97 -0
- package/types/src/sheet/ISheet.d.ts +1074 -0
- package/types/src/sheet/ISheetCollection.d.ts +70 -0
- package/types/src/sheet/NamedCellRange.d.ts +45 -0
- package/types/src/sheet/NamedRange.d.ts +30 -0
- package/types/src/sheet/Sheet.d.ts +1068 -0
- package/types/src/sheet/SheetCell.d.ts +335 -0
- package/types/src/sheet/SheetCollection.d.ts +18 -0
- package/types/src/sheet/SheetRange.d.ts +362 -0
- package/types/src/sheet/SheetRanges.d.ts +225 -0
- package/types/src/sheet/_CopyUtils.d.ts +33 -0
- package/types/src/sheet/_InvalidSheetRange.d.ts +70 -0
- package/types/src/sheet/_SheetAutoFitUtils.d.ts +18 -0
- package/types/src/sheet/_SheetCoords.d.ts +54 -0
- package/types/src/sheet/_SheetFilterUtils.d.ts +9 -0
- package/types/src/sheet/_SheetMessages.d.ts +11 -0
- package/types/src/sheet/_SheetMutations.d.ts +137 -0
- package/types/src/sheet/_SheetSortUtils.d.ts +9 -0
- package/types/src/sheet/_SheetStateReader.d.ts +161 -0
- package/types/src/sheet/_SheetStateTypes.d.ts +446 -0
- package/types/src/sheet/_SheetUtils.d.ts +265 -0
- package/types/src/sheet/clipboard/IHTMLParser.d.ts +92 -0
- package/types/src/sheet/clipboard/RangeClipboardItems.d.ts +55 -0
- package/types/src/sheet/clipboard/SheetHTMLTableParser.d.ts +29 -0
- package/types/src/sheet/clipboard/SheetHTMLTableWriter.d.ts +46 -0
- package/types/src/sheet/clipboard/_ClipboardUtils.d.ts +10 -0
- package/types/src/sheet/clipboard/index.d.ts +2 -0
- package/types/src/sheet/index.d.ts +6 -0
- package/types/src/sheet/listener/RangesListener.d.ts +32 -0
- package/types/src/sheet/listener/RangesListenerEntry.d.ts +19 -0
- package/types/src/sheet/listener/index.d.ts +3 -0
- package/types/src/sheet/spatial/MergeEntry.d.ts +17 -0
- package/types/src/sheet/spatial/index.d.ts +2 -0
- package/types/src/sheet/style/SheetCellStyle.d.ts +540 -0
- package/types/src/sheet/style/SheetDirectStyle.d.ts +130 -0
- package/types/src/sheet/style/SheetNamedStyle.d.ts +47 -0
- package/types/src/sheet/style/SheetTableStyle.d.ts +47 -0
- package/types/src/sheet/style/UsedRangeSpatialMap.d.ts +80 -0
- package/types/src/sheet/style/_Resolvers.d.ts +41 -0
- package/types/src/sheet/style/_StyleUtils.d.ts +69 -0
- package/types/src/sheet/style/index.d.ts +1 -0
- package/types/src/sheetHeader/ISheetHeader.d.ts +217 -0
- package/types/src/sheetHeader/SheetCellHeader.d.ts +61 -0
- package/types/src/sheetHeader/SheetCellHeaderRange.d.ts +54 -0
- package/types/src/sheetHeader/SheetCellHeaderRanges.d.ts +46 -0
- package/types/src/sheetHeader/SheetHeader.d.ts +257 -0
- package/types/src/sheetHeader/_HeaderUtils.d.ts +94 -0
- package/types/src/sheetHeader/_InvalidSheetHeaderRange.d.ts +7 -0
- package/types/src/sheetHeader/index.d.ts +2 -0
- package/types/src/sheetProtection/ISheetProtection.d.ts +150 -0
- package/types/src/sheetProtection/SheetProtection.d.ts +39 -0
- package/types/src/sheetProtection/index.d.ts +2 -0
- package/types/src/sheetView/ISheetView.d.ts +439 -0
- package/types/src/sheetView/SheetView.d.ts +113 -0
- package/types/src/sheetView/_SheetViewUtils.d.ts +19 -0
- package/types/src/sheetView/index.d.ts +2 -0
- package/types/src/slicer/ISlicer.d.ts +38 -0
- package/types/src/slicer/Slicer.d.ts +41 -0
- package/types/src/slicer/index.d.ts +2 -0
- package/types/src/sort/ISort.d.ts +318 -0
- package/types/src/sort/Sort.d.ts +48 -0
- package/types/src/sort/_SortUtils.d.ts +12 -0
- package/types/src/sort/index.d.ts +3 -0
- package/types/src/string/IStringCollection.d.ts +50 -0
- package/types/src/string/StringCollection.d.ts +26 -0
- package/types/src/string/index.d.ts +3 -0
- package/types/src/style/IStyle.d.ts +485 -0
- package/types/src/style/IStyleCollection.d.ts +292 -0
- package/types/src/style/StyleCollection.d.ts +125 -0
- package/types/src/style/_BuiltInStyleDefs.d.ts +18 -0
- package/types/src/style/_BuiltInStyleNames.d.ts +20 -0
- package/types/src/style/index.d.ts +5 -0
- package/types/src/table/AnchoredTable.d.ts +349 -0
- package/types/src/table/AutoTable.d.ts +64 -0
- package/types/src/table/ITable.d.ts +714 -0
- package/types/src/table/ITableCollection.d.ts +88 -0
- package/types/src/table/ITableStyle.d.ts +318 -0
- package/types/src/table/Table.d.ts +8 -0
- package/types/src/table/TableCollection.d.ts +20 -0
- package/types/src/table/_AutoTableColumn.d.ts +27 -0
- package/types/src/table/_BuiltInTableStyles.d.ts +9 -0
- package/types/src/table/_FilterField.d.ts +30 -0
- package/types/src/table/_NamedTable.d.ts +84 -0
- package/types/src/table/_NamedTableSource.d.ts +57 -0
- package/types/src/table/_SortField.d.ts +29 -0
- package/types/src/table/_TableColumn.d.ts +51 -0
- package/types/src/table/_TableMessages.d.ts +5 -0
- package/types/src/table/_TableUtils.d.ts +94 -0
- package/types/src/table/index.d.ts +5 -0
- package/types/src/text/AutoNumberingScheme.d.ts +175 -0
- package/types/src/text/Bullet.d.ts +34 -0
- package/types/src/text/IText.d.ts +53 -0
- package/types/src/text/ITextFrame.d.ts +313 -0
- package/types/src/text/TextBoxAlignment.d.ts +141 -0
- package/types/src/text/TextFrame.d.ts +43 -0
- package/types/src/text/TextLine.d.ts +24 -0
- package/types/src/text/TextParagraph.d.ts +61 -0
- package/types/src/text/TextRotation.d.ts +106 -0
- package/types/src/text/TextRun.d.ts +85 -0
- package/types/src/text/TextUtils.d.ts +165 -0
- package/types/src/text/TextVisitor.d.ts +11 -0
- package/types/src/text/TextWrapper.d.ts +78 -0
- package/types/src/text/_TextUtils.d.ts +90 -0
- package/types/src/text/impl/Phrase.d.ts +3 -0
- package/types/src/text/impl/TabStrategy.d.ts +9 -0
- package/types/src/text/impl/WordWrapUtils.d.ts +6 -0
- package/types/src/text/index.d.ts +7 -0
- package/types/src/text/richtext/IStyledFont.d.ts +330 -0
- package/types/src/text/richtext/index.d.ts +2 -0
- package/types/src/theme/ITheme.d.ts +252 -0
- package/types/src/theme/IThemeCollection.d.ts +84 -0
- package/types/src/theme/ThemeCollection.d.ts +62 -0
- package/types/src/theme/_BuiltInColorSchemes.d.ts +3 -0
- package/types/src/theme/_BuiltInFontSchemes.d.ts +3 -0
- package/types/src/theme/_BuiltInThemeDefs.d.ts +3 -0
- package/types/src/theme/_ThemeMessages.d.ts +3 -0
- package/types/src/theme/_ThemeUtils.d.ts +3 -0
- package/types/src/theme/index.d.ts +4 -0
- package/types/src/transaction/ITransaction.d.ts +594 -0
- package/types/src/transaction/Transaction.d.ts +184 -0
- package/types/src/transaction/TransactionSaveStateManager.d.ts +85 -0
- package/types/src/transaction/TransactionUndoManager.d.ts +60 -0
- package/types/src/transaction/index.d.ts +5 -0
- package/types/src/type/ICollection.d.ts +110 -0
- package/types/src/type/IProperties.d.ts +51 -0
- package/types/src/type/ITypes.d.ts +69 -0
- package/types/src/type/Registry.d.ts +66 -0
- package/types/src/type/index.d.ts +5 -0
- package/types/src/utils/GeomUtils.d.ts +61 -0
- package/types/src/utils/ObjectPath.d.ts +9 -0
- package/types/src/utils/Profiler.d.ts +38 -0
- package/types/src/utils/_CSSUtils.d.ts +156 -0
- package/types/src/utils/_GeomUtils.d.ts +14 -0
- package/types/src/utils/_RangeCoordUtils.d.ts +84 -0
- package/types/src/utils/_RangeSetUtils.d.ts +55 -0
- package/types/src/utils/index.d.ts +2 -0
- package/types/src/workbook/IWorkbook.d.ts +711 -0
- package/types/src/workbook/Workbook.d.ts +342 -0
- package/types/src/workbook/WorkbookRange.d.ts +25 -0
- package/types/src/workbook/WorkbookRanges.d.ts +39 -0
- package/types/src/workbook/_WorkbookMessages.d.ts +8 -0
- package/types/src/workbook/_WorkbookUtils.d.ts +35 -0
- package/types/src/workbook/index.d.ts +3 -0
- package/types/src/workbookProtection/IWorkbookProtection.d.ts +57 -0
- package/types/src/workbookProtection/WorkbookProtection.d.ts +14 -0
- package/types/src/workbookProtection/index.d.ts +2 -0
- package/types/src/workbookView/IWorkbookView.d.ts +134 -0
- package/types/src/workbookView/WorkbookView.d.ts +49 -0
- package/types/src/workbookView/index.d.ts +3 -0
- package/browser/cjs/8p8T3dD14wnIxaBG.cjs +0 -6
- package/browser/cjs/95PbxEGMp0S1al9b.cjs +0 -6
- package/browser/cjs/B5N-CDhD5v6HYM0I.cjs +0 -6
- package/browser/cjs/BKgMJ6JZUiena1iM.cjs +0 -6
- package/browser/cjs/BSW7L4QsMahkhhhy.cjs +0 -6
- package/browser/cjs/Be4ZjrWJHL1nRmQu.cjs +0 -6
- package/browser/cjs/BkyqIhWBqIxRof6b.cjs +0 -6
- package/browser/cjs/BzjrR52QeojqLbOx.cjs +0 -7
- package/browser/cjs/C4h0pgfUOocSJ3Ke.cjs +0 -6
- package/browser/cjs/CKDSsq1v8jGWlRAi.cjs +0 -55
- package/browser/cjs/CYMVELYS8FNeFpiq.cjs +0 -6
- package/browser/cjs/CYg51Fs361BHxyRI.cjs +0 -6
- package/browser/cjs/CdzYFZ-48HrcE5LQ.cjs +0 -6
- package/browser/cjs/CfKjVPVp-cWgnToo.cjs +0 -6
- package/browser/cjs/D-u1ccCpAGvsjKOp.cjs +0 -6
- package/browser/cjs/D5fl40nw9aOYcQli.cjs +0 -6
- package/browser/cjs/D6KrtS3oZrLOAxO5.cjs +0 -6
- package/browser/cjs/DXQv5Gx-Wtfyk89a.cjs +0 -6
- package/browser/cjs/Di10f5RB2IX9PFHR.cjs +0 -6
- package/browser/cjs/DnOACT9Vxcz9_frM.cjs +0 -15
- package/browser/cjs/Dr2RqSffQZyFVpHL.cjs +0 -6
- package/browser/cjs/Dz0rduQbyCjN2Ni_.cjs +0 -6
- package/browser/cjs/JrzBZL5--Ock2uVj.cjs +0 -6
- package/browser/cjs/VLEyvfkmKqqUCKxv.cjs +0 -124
- package/browser/cjs/W8tk-2bTTSDGstfk.cjs +0 -6
- package/browser/cjs/pc9KfujdfWA19P_V.cjs +0 -6
- package/browser/cjs/qiB3rVaQVJILQk_N.cjs +0 -6
- package/browser/esm/BBYOqwrtztJDWz3c.mjs +0 -10
- package/browser/esm/BBst2hgdCPhA3DPd.mjs +0 -10
- package/browser/esm/BFrnY1TEgniZNVl8.mjs +0 -10
- package/browser/esm/BR4W7_ucdFJi03RO.mjs +0 -10
- package/browser/esm/BUci9XBsYBUNnQub.mjs +0 -10
- package/browser/esm/B_DMz5brejp8Mgto.mjs +0 -10
- package/browser/esm/B_EdCIINiuU7UuR6.mjs +0 -10
- package/browser/esm/BklwssraNXGXEaP2.mjs +0 -10
- package/browser/esm/BvccAibR-3R_xO8l.mjs +0 -10
- package/browser/esm/Bza5H7E2GGoHxEt7.mjs +0 -10
- package/browser/esm/C0brjreeBKRcVYN4.mjs +0 -10
- package/browser/esm/C1hdw7eWXk0zq1SS.mjs +0 -10
- package/browser/esm/C4Y3MpHe_UzFZEaF.mjs +0 -10
- package/browser/esm/CATfU6MHTqOkz5FJ.mjs +0 -10
- package/browser/esm/CDe9GrlTNhuZzOVh.mjs +0 -23841
- package/browser/esm/C_bcVsMhltCNyQij.mjs +0 -10
- package/browser/esm/CqpHJSTi0m49GR_q.mjs +0 -10
- package/browser/esm/CvVXzwNYb-2OZMBj.mjs +0 -426
- package/browser/esm/CwIFvNV1kcbLsXJg.mjs +0 -10
- package/browser/esm/D7xtXncwRYiPYQ3v.mjs +0 -10
- package/browser/esm/D8BmFg9FFVHUz_W1.mjs +0 -10
- package/browser/esm/DRm-FWBKVOv2Jp6x.mjs +0 -10
- package/browser/esm/Due-pSw1d9_zz_19.mjs +0 -12
- package/browser/esm/DvipK7b_PuSzB8G-.mjs +0 -10
- package/browser/esm/aTyRGVa5Smj2T_9l.mjs +0 -10
- package/browser/esm/lRUYQdaIClvoTNGo.mjs +0 -4022
- package/browser/esm/xXGFfp-8v8jL5akS.mjs +0 -5653
- package/node/esm/BBst2hgdCPhA3DPd.mjs +0 -10
- package/node/esm/BFrnY1TEgniZNVl8.mjs +0 -10
- package/node/esm/BLNq3EgGCGKtzrGq.mjs +0 -10
- package/node/esm/BLS0f7etFu8fozVg.mjs +0 -10
- package/node/esm/BMyNI7ZZi2ICO6Bn.mjs +0 -10
- package/node/esm/BR4W7_ucdFJi03RO.mjs +0 -10
- package/node/esm/B_EdCIINiuU7UuR6.mjs +0 -10
- package/node/esm/BhKeh1i4iDAeImus.mjs +0 -1072
- package/node/esm/BklwssraNXGXEaP2.mjs +0 -10
- package/node/esm/Bza5H7E2GGoHxEt7.mjs +0 -10
- package/node/esm/C0brjreeBKRcVYN4.mjs +0 -10
- package/node/esm/C1hdw7eWXk0zq1SS.mjs +0 -10
- package/node/esm/C4Y3MpHe_UzFZEaF.mjs +0 -10
- package/node/esm/CATfU6MHTqOkz5FJ.mjs +0 -10
- package/node/esm/COhANehqT9YVLl76.mjs +0 -10
- package/node/esm/CqpHJSTi0m49GR_q.mjs +0 -10
- package/node/esm/CuijIC4hIp5bpx9B.mjs +0 -10
- package/node/esm/CwIFvNV1kcbLsXJg.mjs +0 -10
- package/node/esm/D7xtXncwRYiPYQ3v.mjs +0 -10
- package/node/esm/D8BmFg9FFVHUz_W1.mjs +0 -10
- package/node/esm/DPs0koPRfrHYG1yO.mjs +0 -13
- package/node/esm/DVM4Cwe0h2V1V4vm.mjs +0 -10
- package/node/esm/DvipK7b_PuSzB8G-.mjs +0 -10
- package/node/esm/aTyRGVa5Smj2T_9l.mjs +0 -10
- package/node/esm/qLqMotWYwBIdEVhE.mjs +0 -2458
|
@@ -0,0 +1,711 @@
|
|
|
1
|
+
import { Scalar, IRange, IRangeStats, IRuntime, LocaleProfileOverrides } from '@sheetxl/primitives';
|
|
2
|
+
import { FunctionProvider } from '@sheetxl/scripting';
|
|
3
|
+
import { ITransaction } from '../transaction';
|
|
4
|
+
import { IListener } from '../listener';
|
|
5
|
+
import { IResourceCollection, IResource } from '../resource';
|
|
6
|
+
import { IStringCollection } from '../string';
|
|
7
|
+
import { ICalculation } from '../calculation';
|
|
8
|
+
import { IScript, IModule } from '../scripting';
|
|
9
|
+
import { ICell } from '../cell';
|
|
10
|
+
import { ICellRange, ICellRanges } from '../cellRange';
|
|
11
|
+
import { IComment } from '../comment';
|
|
12
|
+
import { INamedCollection } from '../named';
|
|
13
|
+
import { IExternalBook, IExternalBookCollection } from '../externalBook';
|
|
14
|
+
import { ITheme } from '../theme';
|
|
15
|
+
import { IStyleCollection } from '../style';
|
|
16
|
+
import { ISheet, ISheetCollection, ICellContainerOptions } from '../sheet';
|
|
17
|
+
import { IWorkbookView } from '../workbookView';
|
|
18
|
+
import { IWorkbookProtection } from '../workbookProtection';
|
|
19
|
+
import { IWorkbookIO } from '../io';
|
|
20
|
+
/**
|
|
21
|
+
* An `IWorkbook` represents a collection of {@link ISheet | sheets}, along with shared resources.
|
|
22
|
+
*
|
|
23
|
+
* This interface provides methods for accessing its elements and event handling.
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* Most interactions with a {@link IWorkbook | workbook} or {@link ISheet | sheet} are done through a
|
|
27
|
+
* {@link ICellRange | workbook range}.
|
|
28
|
+
*
|
|
29
|
+
* @see
|
|
30
|
+
* * {@link getRange} - For interacting with cell values and formatting on a single {@link ISheet | sheet}.
|
|
31
|
+
* * {@link getSheets} - For managing {@link ISheet | sheet}.
|
|
32
|
+
* * {@link getNames} - For managing items with defined names.
|
|
33
|
+
*/
|
|
34
|
+
export interface IWorkbook extends ITransaction.ITransactional, IListener.ISource<IWorkbook, IWorkbook.IListeners> {
|
|
35
|
+
/**
|
|
36
|
+
* Returns the collection of sheets within the workbook.
|
|
37
|
+
*/
|
|
38
|
+
getSheets(): ISheetCollection;
|
|
39
|
+
/**
|
|
40
|
+
* Adds a new sheet to the workbook.
|
|
41
|
+
*
|
|
42
|
+
* @remarks
|
|
43
|
+
* This is a convenience method that wraps `{@link ISheetCollection.add}`.
|
|
44
|
+
*/
|
|
45
|
+
addSheet(options?: ISheetCollection.AddOptions | string | number): ISheet;
|
|
46
|
+
/**
|
|
47
|
+
* Returns the sheet at the given offset.
|
|
48
|
+
*
|
|
49
|
+
* @param index A 0-based index of the sheet.
|
|
50
|
+
* @param visibility The visibility of the sheet.
|
|
51
|
+
*/
|
|
52
|
+
getSheetAt(index: number, visibility?: ISheet.Visibility): ISheet;
|
|
53
|
+
/**
|
|
54
|
+
* Returns the sheet for the given name, or the selected sheet when no name is given.
|
|
55
|
+
*
|
|
56
|
+
* @param name The name of the sheet. Omit for the selected sheet — "the sheet", unqualified,
|
|
57
|
+
* is the one the user (or agent) is looking at. `getSelectedSheet` remains the explicit form.
|
|
58
|
+
* @param visibility The visibility of the sheet.
|
|
59
|
+
*/
|
|
60
|
+
getSheet(name?: string, visibility?: ISheet.Visibility): ISheet;
|
|
61
|
+
/**
|
|
62
|
+
* Returns the currently active sheet within the workbook.
|
|
63
|
+
*/
|
|
64
|
+
getSelectedSheet(): ISheet;
|
|
65
|
+
/**
|
|
66
|
+
* Returns the currently active sheet index within the workbook.
|
|
67
|
+
*/
|
|
68
|
+
getSelectedSheetIndex(): number;
|
|
69
|
+
/**
|
|
70
|
+
* Returns ranges scoped to a sheet.
|
|
71
|
+
*
|
|
72
|
+
* @param address Address of the ranges. Omit for the selected range — selection is modeled
|
|
73
|
+
* by the SDK (not a UI mode), and many operations default to it. `getSelectedRange` remains
|
|
74
|
+
* the explicit form.
|
|
75
|
+
*
|
|
76
|
+
* @remarks
|
|
77
|
+
* When accessing ranges from the `IWorkbook` ranges include a sheet name.
|
|
78
|
+
* This enables cross-sheet references when working at the workbook level.
|
|
79
|
+
*
|
|
80
|
+
* Some examples of cross-sheet reference are:
|
|
81
|
+
*
|
|
82
|
+
* - Linking data and formulas across multiple sheets.
|
|
83
|
+
*
|
|
84
|
+
* - Consolidating data from different sheets for analysis or reporting.
|
|
85
|
+
*
|
|
86
|
+
* - Performing calculations or comparisons that involve values from multiple sheets.
|
|
87
|
+
*/
|
|
88
|
+
getRange(address?: ICellRange.Address, options?: ICellRange.GetRangeOptions): ICellRange;
|
|
89
|
+
/**
|
|
90
|
+
* Returns a {@link ICell} at the specified address.
|
|
91
|
+
*
|
|
92
|
+
* @param address Address of the cell, optionally sheet-qualified (e.g. `'Sales!B11'`).
|
|
93
|
+
* Omit for the selected cell — selection is modeled by the SDK (not a UI mode), and many
|
|
94
|
+
* operations default to it. `getSelectedCell` remains the explicit form.
|
|
95
|
+
*
|
|
96
|
+
* @remarks
|
|
97
|
+
* An address that resolves to more than a single cell is an error.
|
|
98
|
+
*/
|
|
99
|
+
getCell(address?: ICell.Address): ICell;
|
|
100
|
+
/**
|
|
101
|
+
* Returns an a set of ranges including sheet names.
|
|
102
|
+
*
|
|
103
|
+
* @param address Address of the ranges.
|
|
104
|
+
*
|
|
105
|
+
* @remarks
|
|
106
|
+
* @see {@link IWorkbook.getRange}
|
|
107
|
+
*/
|
|
108
|
+
getRanges(address: ICellRanges.Address, options?: ICellRange.GetRangeOptions): ICellRanges;
|
|
109
|
+
/**
|
|
110
|
+
* Returns the statistics for the used cells across all sheets.
|
|
111
|
+
*
|
|
112
|
+
* @param options Iterator options the stats are created with. At workbook scale prefer
|
|
113
|
+
* `{ onError: 'ignore' }` — some error value existing *somewhere* is likely, and the
|
|
114
|
+
* default `'throw'` policy treats one as a fault when aggregating.
|
|
115
|
+
*
|
|
116
|
+
* @remarks
|
|
117
|
+
* The workbook form of {@link ISheet.getStats}: every sheet's used range contributes,
|
|
118
|
+
* including hidden and very-hidden sheets — visibility is a display concern, not a data
|
|
119
|
+
* one. A workbook with no used cells returns empty statistics (`getSize() === 0`),
|
|
120
|
+
* never `null`.
|
|
121
|
+
*
|
|
122
|
+
* Cross-sheet value ordering (where observable) follows sheet index order.
|
|
123
|
+
*
|
|
124
|
+
* @see
|
|
125
|
+
* {@link ICellRange.getStats}
|
|
126
|
+
*/
|
|
127
|
+
getStats(options?: ICellRange.GetStatsOptions): IRangeStats;
|
|
128
|
+
/**
|
|
129
|
+
* Returns a range of cells for the current selection.
|
|
130
|
+
*/
|
|
131
|
+
getSelectedRange(options?: ICellRange.GetRangeOptions): ICellRange;
|
|
132
|
+
/**
|
|
133
|
+
* Returns ranges of cells for the current selection.
|
|
134
|
+
*/
|
|
135
|
+
getSelectedRanges(options?: ICellRange.GetRangeOptions): ICellRanges;
|
|
136
|
+
/**
|
|
137
|
+
* Returns the selected cell.
|
|
138
|
+
*/
|
|
139
|
+
getSelectedCell(): ICell;
|
|
140
|
+
/**
|
|
141
|
+
* Search the entire Workbook.
|
|
142
|
+
*
|
|
143
|
+
* @param options The text to search for or {@link ICellRange.FindOptions}
|
|
144
|
+
*
|
|
145
|
+
* @remarks
|
|
146
|
+
* Searches all sheets.
|
|
147
|
+
*
|
|
148
|
+
* @see
|
|
149
|
+
* {@link ICellRange.find}
|
|
150
|
+
*/
|
|
151
|
+
find(options: string | ICellRange.FindOptions): Iterator<ICell>;
|
|
152
|
+
/**
|
|
153
|
+
* Replace all items in the iterator
|
|
154
|
+
*
|
|
155
|
+
* @param cells An iterator of cells to replace.
|
|
156
|
+
* @param replace The {@link ICell.Update} or a callback to replace with.
|
|
157
|
+
*/
|
|
158
|
+
replace(cells: Iterator<ICell>, replace: ICell.Update | ((original: ICell) => ICell.Update), options?: IWorkbook.ReplaceOptions): IWorkbook.ReplaceResults;
|
|
159
|
+
/**
|
|
160
|
+
* Returns the next sheet in the sheets collection. If the last one it will return the first.
|
|
161
|
+
*
|
|
162
|
+
* @remarks
|
|
163
|
+
* If there is only 1 sheet this will return the current sheet.
|
|
164
|
+
*/
|
|
165
|
+
getNextSheet(index: number): ISheet;
|
|
166
|
+
/**
|
|
167
|
+
* Returns the previous sheet in the sheets collection. If the first one it will return the last.
|
|
168
|
+
*
|
|
169
|
+
* @remarks
|
|
170
|
+
* If there is only 1 sheet this will return the current sheet.
|
|
171
|
+
*/
|
|
172
|
+
getPreviousSheet(index: number): ISheet;
|
|
173
|
+
/**
|
|
174
|
+
* Given the name return a valid name that closely matches.
|
|
175
|
+
*
|
|
176
|
+
* @param sheetName The string to validate.
|
|
177
|
+
*/
|
|
178
|
+
findValidSheetName(sheetName: string): string;
|
|
179
|
+
/**
|
|
180
|
+
* Indicate if the current character is a valid character for a sheetName.
|
|
181
|
+
*
|
|
182
|
+
* @param character The string to validate.
|
|
183
|
+
*/
|
|
184
|
+
isValidSheetNameCharacter(character: string): boolean;
|
|
185
|
+
/**
|
|
186
|
+
* Returns the current view settings.
|
|
187
|
+
*
|
|
188
|
+
* View settings determine how specific workbook level elements are displayed but does not affect the underlying data itself.
|
|
189
|
+
*/
|
|
190
|
+
getView(): IWorkbookView;
|
|
191
|
+
/**
|
|
192
|
+
* Views have their own lifecycle because in a collaborative environment each user can have their own view.
|
|
193
|
+
*/
|
|
194
|
+
setView(view: IWorkbookView): this;
|
|
195
|
+
/**
|
|
196
|
+
* Returns the current `IStyleCollection` associated with this Workbook.
|
|
197
|
+
*/
|
|
198
|
+
getStyles(): IStyleCollection;
|
|
199
|
+
/**
|
|
200
|
+
* Returns the current shared resources.
|
|
201
|
+
*/
|
|
202
|
+
getResources(): IResourceCollection;
|
|
203
|
+
/**
|
|
204
|
+
* Returns the current shared resources.
|
|
205
|
+
*/
|
|
206
|
+
getStrings(): IStringCollection;
|
|
207
|
+
/**
|
|
208
|
+
* Returns the current shared resources.
|
|
209
|
+
*/
|
|
210
|
+
getTransactions(): ITransaction.IStore;
|
|
211
|
+
/**
|
|
212
|
+
* Get the current theme.
|
|
213
|
+
*/
|
|
214
|
+
getTheme(): ITheme;
|
|
215
|
+
/**
|
|
216
|
+
* Set the current theme.
|
|
217
|
+
*
|
|
218
|
+
* @remarks
|
|
219
|
+
* * If `null` sets back to the default theme.
|
|
220
|
+
* * Does not fire a theme updated event.
|
|
221
|
+
*/
|
|
222
|
+
setTheme(theme: ITheme | null): ITheme;
|
|
223
|
+
/**
|
|
224
|
+
* A stable name for the workbook.
|
|
225
|
+
*/
|
|
226
|
+
getId(): string;
|
|
227
|
+
/**
|
|
228
|
+
* Returns the display name for the workbook — a pure, read-only derivation of its
|
|
229
|
+
* {@link getOrigin | origin}'s name — or `null` for an unbound, unnamed workbook.
|
|
230
|
+
*
|
|
231
|
+
* @remarks
|
|
232
|
+
* A workbook has no intrinsic name (like Excel: a workbook's name *is* its file name). Display
|
|
233
|
+
* fallbacks (a localized "Untitled") are a UI concern. Renaming is an origin/document-level
|
|
234
|
+
* operation (see `WorkbookDocument.setName`), never a model edit — it is not undoable.
|
|
235
|
+
*/
|
|
236
|
+
getName(): string | null;
|
|
237
|
+
/**
|
|
238
|
+
* Returns the workbook's {@link IWorkbookIO.Origin | origin} — the virtual file handle it maps to.
|
|
239
|
+
*
|
|
240
|
+
* @remarks
|
|
241
|
+
* Read-only and always present: the *reference* is stable for the workbook's lifetime (a new
|
|
242
|
+
* in-memory workbook holds an *unbound* origin — `getPath()` `null`). The origin **object** is
|
|
243
|
+
* updated in place by its IO/store owner (e.g. a first save resolving a destination), like the
|
|
244
|
+
* DOM's `document.URL` — the model itself never mutates it, and it is not part of the persisted
|
|
245
|
+
* document ({@link toJSON}); a copy mints a fresh unbound origin.
|
|
246
|
+
*/
|
|
247
|
+
getOrigin(): IWorkbookIO.Origin;
|
|
248
|
+
/**
|
|
249
|
+
* Returns the runtime used for this workbook.
|
|
250
|
+
*
|
|
251
|
+
* @see {@link @sheetxl/primitives!IRuntime}
|
|
252
|
+
*/
|
|
253
|
+
getRuntime(): IRuntime;
|
|
254
|
+
/**
|
|
255
|
+
* Determine if dates should be 1904 instead of 1900 based.
|
|
256
|
+
*
|
|
257
|
+
* @param date1940 - default value `false`
|
|
258
|
+
*
|
|
259
|
+
* @see
|
|
260
|
+
* {@link IWorkbook.isDate1904}
|
|
261
|
+
*/
|
|
262
|
+
setDate1904(date1940: boolean): this;
|
|
263
|
+
/**
|
|
264
|
+
* Returns the regional locale of the workbook as a BCP 47 tag, e.g. `de-DE`.
|
|
265
|
+
*
|
|
266
|
+
* @remarks
|
|
267
|
+
* Determines number/date formatting and parsing, separators, and collation.
|
|
268
|
+
* Falls back to the environment locale when the workbook does not pin one.
|
|
269
|
+
*
|
|
270
|
+
* @see
|
|
271
|
+
* {@link IWorkbook.setLocale}
|
|
272
|
+
*/
|
|
273
|
+
getLocale(): string;
|
|
274
|
+
/**
|
|
275
|
+
* Returns the locale explicitly pinned on the workbook, or `null` when it
|
|
276
|
+
* follows the environment locale.
|
|
277
|
+
*
|
|
278
|
+
* @remarks
|
|
279
|
+
* {@link IWorkbook.getLocale} always resolves to a concrete tag; this is the
|
|
280
|
+
* only way to tell a pinned locale from an environment fallback that happens
|
|
281
|
+
* to match it. Only a pinned locale is persisted.
|
|
282
|
+
*
|
|
283
|
+
* @see
|
|
284
|
+
* {@link IWorkbook.setLocale}
|
|
285
|
+
*/
|
|
286
|
+
getPinnedLocale(): string | null;
|
|
287
|
+
/**
|
|
288
|
+
* Set the regional locale of the workbook.
|
|
289
|
+
*
|
|
290
|
+
* @param locale - A BCP 47 tag, e.g. `de-DE`. Pass `null` to follow the
|
|
291
|
+
* environment locale.
|
|
292
|
+
*
|
|
293
|
+
* @remarks
|
|
294
|
+
* This is a display/input concern only. Stored formulas, error values, and
|
|
295
|
+
* number formats remain canonical, so the workbook still opens correctly
|
|
296
|
+
* under any other locale.
|
|
297
|
+
*
|
|
298
|
+
* @see
|
|
299
|
+
* {@link IWorkbook.getLocale}
|
|
300
|
+
*/
|
|
301
|
+
setLocale(locale: string | null): this;
|
|
302
|
+
/**
|
|
303
|
+
* Returns the workbook's locale-profile overrides (the regional-override patch), or
|
|
304
|
+
* `null` when the profile is entirely `Intl`-derived from {@link IWorkbook.getLocale}.
|
|
305
|
+
*
|
|
306
|
+
* @see
|
|
307
|
+
* {@link IWorkbook.setLocaleOverrides}
|
|
308
|
+
*/
|
|
309
|
+
getLocaleOverrides(): LocaleProfileOverrides | null;
|
|
310
|
+
/**
|
|
311
|
+
* Patch individual derived regional settings on top of the locale — the escape
|
|
312
|
+
* hatch for the OS-level customizations (a custom decimal symbol, a different
|
|
313
|
+
* currency) that browser `Intl` cannot see.
|
|
314
|
+
*
|
|
315
|
+
* @param overrides - A literal patch over the derived `LocaleProfile` (e.g.
|
|
316
|
+
* `{ decimal: '.', currencySymbol: 'CHF' }`), or `null` to clear. Applied
|
|
317
|
+
* literally — nothing is re-derived, so patch `listSeparator` too if you patch
|
|
318
|
+
* `decimal`. Persisted in `.sxl` alongside the locale tag (never in `.xlsx`).
|
|
319
|
+
*
|
|
320
|
+
* @see
|
|
321
|
+
* {@link IWorkbook.getLocaleOverrides}
|
|
322
|
+
*/
|
|
323
|
+
setLocaleOverrides(overrides: LocaleProfileOverrides | null): this;
|
|
324
|
+
/**
|
|
325
|
+
* Add Listeners.
|
|
326
|
+
*
|
|
327
|
+
* @see
|
|
328
|
+
* {@link IListener.ISource.addListeners}
|
|
329
|
+
*/
|
|
330
|
+
addListeners(listeners: IWorkbook.IListeners, options?: IListener.Options): IListener.Remove;
|
|
331
|
+
/**
|
|
332
|
+
* Returns the protection object for the workbook.
|
|
333
|
+
*/
|
|
334
|
+
getProtection(): IWorkbookProtection;
|
|
335
|
+
/**
|
|
336
|
+
* **Every** {@link INamed} in the workbook — global names, every sheet's scoped names, and every
|
|
337
|
+
* table — sorted by type then by name.
|
|
338
|
+
*
|
|
339
|
+
* @remarks
|
|
340
|
+
* The name-manager view: what EXISTS, not what any one sheet can see. A global name and a
|
|
341
|
+
* sheet-scoped name that share a name are two items here and both are returned; ask
|
|
342
|
+
* {@link ISheet.getNames} for the one a formula on that sheet would resolve to.
|
|
343
|
+
*/
|
|
344
|
+
getNames(): INamedCollection;
|
|
345
|
+
/**
|
|
346
|
+
* The workbook's external books — cached snapshots of other workbooks, addressed from a formula
|
|
347
|
+
* as `[n]Sheet1!$A$1`. In `[n]` order.
|
|
348
|
+
*
|
|
349
|
+
* @remarks
|
|
350
|
+
* Read-only for now: this phase reads and models the parts, nothing more. Formula text still
|
|
351
|
+
* carries `[n]` as opaque characters — this collection is not yet wired to it.
|
|
352
|
+
*/
|
|
353
|
+
getExternalBooks(): IExternalBookCollection;
|
|
354
|
+
/**
|
|
355
|
+
* Returns the {@link ICalculation} for the workbook.
|
|
356
|
+
*/
|
|
357
|
+
getCalculation(): ICalculation;
|
|
358
|
+
/**
|
|
359
|
+
* Parses a formula expression and returns a *transient* formula object.
|
|
360
|
+
*
|
|
361
|
+
* @param expression The formula expression to parse.
|
|
362
|
+
* @param coords Optional anchor coordinates.
|
|
363
|
+
*
|
|
364
|
+
* @remarks
|
|
365
|
+
* This is a convenience method for `getCalculation().createFormula(expression, coords)`.
|
|
366
|
+
* A bare reference (`A2`) resolves against the active cell's sheet; use
|
|
367
|
+
* {@link ISheet.createFormula} to anchor against a specific sheet.
|
|
368
|
+
*
|
|
369
|
+
* @see {@link ICalculation.createFormula}
|
|
370
|
+
*/
|
|
371
|
+
createFormula(expression: string, coords?: Partial<IRange.CellCoords>): ICalculation.IFormula;
|
|
372
|
+
/**
|
|
373
|
+
* Evaluates a formula in the context of the sheet and returns the resulting value.
|
|
374
|
+
*
|
|
375
|
+
* @param formula The formula to evaluate.
|
|
376
|
+
* @param options Optional evaluation options.
|
|
377
|
+
*
|
|
378
|
+
* @remarks
|
|
379
|
+
* This is similar convenience method for `getCalculation().createFormula(expression).evaluate(options)`.
|
|
380
|
+
*/
|
|
381
|
+
evaluate(formula: string, options?: number | ICalculation.EvaluateOptions & Partial<IRange.CellCoords>): Promise<Scalar | IRange>;
|
|
382
|
+
/**
|
|
383
|
+
* Returns when all calculations are complete and there are no pending calculations.
|
|
384
|
+
*
|
|
385
|
+
* @remarks
|
|
386
|
+
* * This is a convenience method `getCalculation().ready()`.
|
|
387
|
+
*/
|
|
388
|
+
whenCalculationReady(): Promise<ICalculation.Status>;
|
|
389
|
+
/**
|
|
390
|
+
* Returns any user defined functions stored with the workbook.
|
|
391
|
+
*/
|
|
392
|
+
getScripts(): IScript;
|
|
393
|
+
/**
|
|
394
|
+
* Serialize the workbook to a JSON.
|
|
395
|
+
*
|
|
396
|
+
* @param options Options to control the JSON output.
|
|
397
|
+
*/
|
|
398
|
+
toJSON(options?: ISheet.ToJSONOptions): Promise<IWorkbook.JSON>;
|
|
399
|
+
/**
|
|
400
|
+
* Returns any custom workbook options that are provided in constructor.
|
|
401
|
+
*/
|
|
402
|
+
readonly options: IWorkbook.ConstructorOptions;
|
|
403
|
+
/**
|
|
404
|
+
* Close the workbook and release any resources.
|
|
405
|
+
*
|
|
406
|
+
* @remarks
|
|
407
|
+
* No further operations are allowed after a close.
|
|
408
|
+
*/
|
|
409
|
+
close(): void;
|
|
410
|
+
/**
|
|
411
|
+
* Indicates if the model has been closed.
|
|
412
|
+
*/
|
|
413
|
+
isClosed(): boolean;
|
|
414
|
+
/**
|
|
415
|
+
* For runtime type checking.
|
|
416
|
+
*/
|
|
417
|
+
readonly isIWorkbook: true;
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* {@inheritDoc IWorkbook}
|
|
421
|
+
* @see
|
|
422
|
+
* ### **Interface**
|
|
423
|
+
*
|
|
424
|
+
* {@link IWorkbook}
|
|
425
|
+
*/
|
|
426
|
+
export declare namespace IWorkbook {
|
|
427
|
+
/**
|
|
428
|
+
* Represents the different ways to identify ranges within a workbook, including the sheet context.
|
|
429
|
+
*
|
|
430
|
+
* Accepts:
|
|
431
|
+
* - `ICellRange`
|
|
432
|
+
* - A parsable `string` representing a range address, optionally including the sheet name (e.g., "Sheet1!A1:B2").
|
|
433
|
+
* - A partial `IRange.FixableCoords` object (specifying at least some of the range boundaries),
|
|
434
|
+
* which may include the `sheetName` property to identify the sheet.
|
|
435
|
+
* - `IWorkbook.CellAddress` (representing a single cell within the workbook),
|
|
436
|
+
* which may includes the `sheetName` property to identify the sheet.
|
|
437
|
+
*
|
|
438
|
+
* @example
|
|
439
|
+
* ```typescript
|
|
440
|
+
* const address1: Address = "Sheet1!A1:B2"; // A1 notation with sheet name
|
|
441
|
+
* ```
|
|
442
|
+
*
|
|
443
|
+
* @remarks
|
|
444
|
+
* This leverages {@link ICellRange.Address} and adds the sheet name.
|
|
445
|
+
*/
|
|
446
|
+
type RangeAddress = ICellRange | string | Partial<IRange.FixableCoords> | IWorkbook.CellAddress;
|
|
447
|
+
/**
|
|
448
|
+
* Represents the different ways to identify multiple ranges within a workbook,
|
|
449
|
+
* including their sheet context.
|
|
450
|
+
*
|
|
451
|
+
* Accepts:
|
|
452
|
+
* - `ICellRanges`
|
|
453
|
+
* - A parsable `string` containing multiple range addresses, optionally including sheet names,
|
|
454
|
+
* separated by commas (e.g., "Sheet1!A1:B2,Sheet2!C3:D4").
|
|
455
|
+
* - An array of `IWorkbook.RangeAddress` objects, each representing a single range within a workbook.
|
|
456
|
+
*
|
|
457
|
+
* @example
|
|
458
|
+
* ```typescript
|
|
459
|
+
* const address1: IWorkbook.RangesAddress = "Sheet1!A1:B2,Sheet2!C3:D4"; // String with multiple ranges and sheet names
|
|
460
|
+
* ```
|
|
461
|
+
*
|
|
462
|
+
* @remarks
|
|
463
|
+
* This extends {@link ICellRanges.Address} to support multiple values.
|
|
464
|
+
*/
|
|
465
|
+
type RangesAddress = ICellRanges | string | IWorkbook.RangeAddress | readonly IWorkbook.RangeAddress[];
|
|
466
|
+
/**
|
|
467
|
+
* Represents a single cell a workbook.
|
|
468
|
+
*/
|
|
469
|
+
type CellAddress = IRange.FixableCellCoords | string;
|
|
470
|
+
/**
|
|
471
|
+
* IListener interface for {@link IWorkbook} events.
|
|
472
|
+
*/
|
|
473
|
+
interface Events {
|
|
474
|
+
/**
|
|
475
|
+
* Called when the sheet collections has changed have changed.
|
|
476
|
+
*/
|
|
477
|
+
onSheetsChange?(source: IWorkbook): void;
|
|
478
|
+
/**
|
|
479
|
+
* Called when the workbook theme has changed.
|
|
480
|
+
*/
|
|
481
|
+
onThemeChange?(source: IWorkbook): void;
|
|
482
|
+
/**
|
|
483
|
+
* Called when the workbook protection has changed.
|
|
484
|
+
*
|
|
485
|
+
* @remarks
|
|
486
|
+
* This is different from the sheet protection.
|
|
487
|
+
*/
|
|
488
|
+
onProtectionChange?(source: IWorkbook): void;
|
|
489
|
+
/**
|
|
490
|
+
* Called before load. If any exception is thrown this
|
|
491
|
+
* exception will be returned to the client and delete will fail.
|
|
492
|
+
*/
|
|
493
|
+
onBeforeLoad?(source: IWorkbook, json: IWorkbook.JSON): void;
|
|
494
|
+
/**
|
|
495
|
+
* Called after load.
|
|
496
|
+
*/
|
|
497
|
+
onLoad?(source: IWorkbook): void;
|
|
498
|
+
/**
|
|
499
|
+
* Called before load. If any exception is thrown this
|
|
500
|
+
* exception will be returned to the client and delete will be aborted.
|
|
501
|
+
*/
|
|
502
|
+
onBeforeSave?(source: IWorkbook): Promise<void> | void;
|
|
503
|
+
/**
|
|
504
|
+
* Called after save.
|
|
505
|
+
*/
|
|
506
|
+
onSave?(source: IWorkbook, json: IWorkbook.JSON): void;
|
|
507
|
+
/**
|
|
508
|
+
* Called when the workbookView changes.
|
|
509
|
+
*
|
|
510
|
+
* @param source {@link IWorkbook}
|
|
511
|
+
*/
|
|
512
|
+
onViewChange?(source: IWorkbook): void;
|
|
513
|
+
/**
|
|
514
|
+
* Called when the display name changes — a convenience proxy of the origin's `onChange`
|
|
515
|
+
* (non-transactional; renames are not model edits and never enter the undo stack).
|
|
516
|
+
*/
|
|
517
|
+
onNameChange?(source: IWorkbook): void;
|
|
518
|
+
/**
|
|
519
|
+
* Called when the scripts associated with the workbook have change.
|
|
520
|
+
*/
|
|
521
|
+
onScriptsChange?(source: IWorkbook): void;
|
|
522
|
+
/**
|
|
523
|
+
* Request that the sheet become brought to the front.
|
|
524
|
+
*
|
|
525
|
+
* @returns A promise indicating that the sheet has been rendered.
|
|
526
|
+
*
|
|
527
|
+
* @remarks
|
|
528
|
+
* This should only be handled by one consumer.
|
|
529
|
+
*/
|
|
530
|
+
onRequestSelect?(source: IWorkbook, sheet: ISheet): Promise<boolean>;
|
|
531
|
+
/**
|
|
532
|
+
* Called when the cell selection has changed.
|
|
533
|
+
*
|
|
534
|
+
* @param source The workbook instance.
|
|
535
|
+
*/
|
|
536
|
+
onSelectionChange?(source: IWorkbook): void;
|
|
537
|
+
/**
|
|
538
|
+
* Called when the selected sheet has changed.
|
|
539
|
+
*
|
|
540
|
+
* @param source The workbook instance.
|
|
541
|
+
*/
|
|
542
|
+
onSelectedSheetChange?(source: IWorkbook): void;
|
|
543
|
+
/**
|
|
544
|
+
* Called when the sheets have change.
|
|
545
|
+
*
|
|
546
|
+
* @param source The workbook instance.
|
|
547
|
+
*/
|
|
548
|
+
onSheetsChange?(source: IWorkbook): void;
|
|
549
|
+
/**
|
|
550
|
+
* Called when the workbook is closed.
|
|
551
|
+
*/
|
|
552
|
+
onClose?(source: IWorkbook): void;
|
|
553
|
+
/**
|
|
554
|
+
* Called when the state has been updated due to a undo/redo and a rerender is required.
|
|
555
|
+
*/
|
|
556
|
+
onInvalidated?(source: IWorkbook): void;
|
|
557
|
+
}
|
|
558
|
+
interface IListeners extends IListener.Callbacks<IWorkbook, IWorkbook.Events> {
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* Options for the replace operation.
|
|
562
|
+
*/
|
|
563
|
+
interface ReplaceOptions extends ITransaction.OperationOptions {
|
|
564
|
+
/**
|
|
565
|
+
* The maximum number of cells to replace.
|
|
566
|
+
* @defaultValue false
|
|
567
|
+
*/
|
|
568
|
+
maxCount?: number;
|
|
569
|
+
/**
|
|
570
|
+
* The axis to replace.
|
|
571
|
+
*/
|
|
572
|
+
axis?: IRange.Axis;
|
|
573
|
+
}
|
|
574
|
+
interface ReplaceResults {
|
|
575
|
+
/**
|
|
576
|
+
* The number of cell replaced.
|
|
577
|
+
*/
|
|
578
|
+
count: number;
|
|
579
|
+
/**
|
|
580
|
+
* The last cell replaced, or `null` when nothing was replaced.
|
|
581
|
+
*/
|
|
582
|
+
last: ICell | null;
|
|
583
|
+
}
|
|
584
|
+
/**
|
|
585
|
+
* Used for persisting metadata about a `ISheet`.
|
|
586
|
+
*/
|
|
587
|
+
interface SheetRefJSON {
|
|
588
|
+
/**
|
|
589
|
+
* A unique name for the sheet.
|
|
590
|
+
*/
|
|
591
|
+
name: string;
|
|
592
|
+
/**
|
|
593
|
+
* @defaultValue ISheet.Visibility.Visible
|
|
594
|
+
*/
|
|
595
|
+
visibility?: ISheet.Visibility;
|
|
596
|
+
/**
|
|
597
|
+
* The actual sheet.
|
|
598
|
+
*/
|
|
599
|
+
sheet?: ISheet.JSON;
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* JSON representation of an `IWorkbook` used for serialization and deserialization.
|
|
603
|
+
*/
|
|
604
|
+
interface JSON {
|
|
605
|
+
sheets: SheetRefJSON[];
|
|
606
|
+
styles?: IStyleCollection.JSON;
|
|
607
|
+
resources?: IResource.JSON[];
|
|
608
|
+
strings?: string[];
|
|
609
|
+
people?: IComment.PersonJSON[];
|
|
610
|
+
view?: IWorkbookView.JSON;
|
|
611
|
+
theme?: ITheme.JSON;
|
|
612
|
+
names?: INamedCollection.JSON;
|
|
613
|
+
/**
|
|
614
|
+
* In `[n]` order (1-based) — index 0 of this array is `[1]`. An entry is `null` where the
|
|
615
|
+
* source's external link is a DDE/OLE link, or anything else this phase does not model — the
|
|
616
|
+
* position still counts, only the content does not.
|
|
617
|
+
*/
|
|
618
|
+
externalBooks?: (IExternalBook.JSON | null)[];
|
|
619
|
+
scripts?: Record<string, IModule.JSON>;
|
|
620
|
+
calc?: ICalculation.JSON;
|
|
621
|
+
protection?: IWorkbookProtection.JSON;
|
|
622
|
+
date1904?: boolean;
|
|
623
|
+
/**
|
|
624
|
+
* The regional locale as a BCP 47 tag, e.g. `de-DE`.
|
|
625
|
+
*
|
|
626
|
+
* @remarks
|
|
627
|
+
* Omitted when the workbook uses the environment locale. Persisted so that
|
|
628
|
+
* a document renders and parses identically everywhere; there is no
|
|
629
|
+
* equivalent slot in `xlsx` so this is `sxl` only.
|
|
630
|
+
*/
|
|
631
|
+
locale?: string;
|
|
632
|
+
/**
|
|
633
|
+
* The regional-override patch over the derived locale profile. Omitted
|
|
634
|
+
* when there is no customization. Like {@link locale}, `sxl` only — `xlsx` has
|
|
635
|
+
* no slot for it.
|
|
636
|
+
*/
|
|
637
|
+
localeOverrides?: LocaleProfileOverrides;
|
|
638
|
+
}
|
|
639
|
+
/**
|
|
640
|
+
* Callback to allow for custom `ISheets`. The Workbook provides a default implementation.
|
|
641
|
+
*/
|
|
642
|
+
interface CreateSheetCallback {
|
|
643
|
+
(
|
|
644
|
+
/**
|
|
645
|
+
* Options used for creating the Sheet instance.
|
|
646
|
+
*/
|
|
647
|
+
options: ISheet.ConstructorOptions,
|
|
648
|
+
/**
|
|
649
|
+
* The name of the new sheet.
|
|
650
|
+
*/
|
|
651
|
+
name: string,
|
|
652
|
+
/**
|
|
653
|
+
* The location of the sheet.
|
|
654
|
+
*/
|
|
655
|
+
index: number,
|
|
656
|
+
/**
|
|
657
|
+
* @defaultValue ISheet.Visibility.Visible
|
|
658
|
+
*/
|
|
659
|
+
visibility: ISheet.Visibility): ISheet;
|
|
660
|
+
}
|
|
661
|
+
/**
|
|
662
|
+
* Options available when creating an IWorkbook.
|
|
663
|
+
*/
|
|
664
|
+
interface ConstructorOptions extends ICellContainerOptions {
|
|
665
|
+
/**
|
|
666
|
+
* Additional custom formula function providers, bound after the built-ins (so they override
|
|
667
|
+
* built-ins on name collision). Each provider is the `initialize` binder produced by the
|
|
668
|
+
* FormulaCompiler (`@sheetxl/scripting`) for a folder of formula sources.
|
|
669
|
+
*
|
|
670
|
+
* @see {@link FunctionProvider}
|
|
671
|
+
*/
|
|
672
|
+
functions?: readonly FunctionProvider[];
|
|
673
|
+
/**
|
|
674
|
+
* A structural transform applied once to each formula parsed from `json` — cell formulas
|
|
675
|
+
* AND defined names. This is the READ half of the format-dialect hook: a format reader
|
|
676
|
+
* (e.g. xlsx) supplies its legacy unwrap here; it is a LOAD-time pass only and is never
|
|
677
|
+
* applied to text typed or set after construction.
|
|
678
|
+
*
|
|
679
|
+
* @see {@link ICalculation.FormulaTransform}
|
|
680
|
+
*/
|
|
681
|
+
formulaTransform?: ICalculation.FormulaTransform;
|
|
682
|
+
/**
|
|
683
|
+
* Hook to allow for custom sheet creation.
|
|
684
|
+
*/
|
|
685
|
+
createSheetCallback?: CreateSheetCallback;
|
|
686
|
+
/**
|
|
687
|
+
* Returns a human readable sheet name given a 0-based index.
|
|
688
|
+
*
|
|
689
|
+
* @defaultValue `Sheet${index+1}`
|
|
690
|
+
*/
|
|
691
|
+
createSheetNameCallback?: (index: number) => string;
|
|
692
|
+
/**
|
|
693
|
+
* The {@link IWorkbookIO.Origin} the workbook maps to — threaded through by the IO layer at
|
|
694
|
+
* read time. Omit for an in-memory workbook (an unbound origin is minted). A string is
|
|
695
|
+
* shorthand for an unbound origin with that display name.
|
|
696
|
+
*
|
|
697
|
+
* @remarks
|
|
698
|
+
* The reference is stable for the workbook's lifetime; see {@link IWorkbook.getOrigin}.
|
|
699
|
+
*/
|
|
700
|
+
origin?: IWorkbookIO.Origin | string | null;
|
|
701
|
+
/**
|
|
702
|
+
* A theme for the workbook.
|
|
703
|
+
*/
|
|
704
|
+
theme?: ITheme;
|
|
705
|
+
/**
|
|
706
|
+
* Load from JSON.
|
|
707
|
+
*/
|
|
708
|
+
json?: IWorkbook.JSON;
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
//# sourceMappingURL=IWorkbook.d.ts.map
|