@sheetxl/sdk 0.7.27 → 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 +53620 -23262
- 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/-P9BHlnCf8OF6D_m.cjs +0 -6
- package/browser/cjs/4kU87sIrnTEoJHwl.cjs +0 -6
- package/browser/cjs/B8mBx-uU2X9Qvdnr.cjs +0 -6
- package/browser/cjs/BD9lJn7w8OVsIwgC.cjs +0 -6
- package/browser/cjs/BI57E6P5MbZI3G2Z.cjs +0 -6
- package/browser/cjs/BRgYzaAY9tLpJe7C.cjs +0 -6
- package/browser/cjs/BdoGTvcTjso5IcRq.cjs +0 -15
- package/browser/cjs/C3ScwpfBnQ8JeHF-.cjs +0 -6
- package/browser/cjs/CI8H5FLYtzy-Y2TO.cjs +0 -55
- package/browser/cjs/ClUc2Qdf-BFmgsJR.cjs +0 -6
- package/browser/cjs/CsEmF6ZwF-2A9AvC.cjs +0 -6
- package/browser/cjs/D6eH4loatnriRosn.cjs +0 -124
- package/browser/cjs/DJTioC8laMAxiW-z.cjs +0 -6
- package/browser/cjs/DN6U4mb4Jt2b37q-.cjs +0 -7
- package/browser/cjs/DfNwTsshId9JPwTK.cjs +0 -6
- package/browser/cjs/DnQwOaG_1n5GvCnM.cjs +0 -6
- package/browser/cjs/DtOYNHcDq5p3S21C.cjs +0 -6
- package/browser/cjs/Dy2xo5nrA4OFe7w4.cjs +0 -6
- package/browser/cjs/EzhtX7d4GOngN0Se.cjs +0 -6
- package/browser/cjs/FBky5iT5me5H1I0-.cjs +0 -6
- package/browser/cjs/JcziJrpVHeAEo8Iv.cjs +0 -6
- package/browser/cjs/LABm2VcP5Duieabc.cjs +0 -6
- package/browser/cjs/OZxxkm3CI5jiE3O-.cjs +0 -6
- package/browser/cjs/W8_0e_fQB-spiB55.cjs +0 -6
- package/browser/cjs/nS_oDgpzBeOV487v.cjs +0 -6
- package/browser/cjs/srhqHYaGNtcM9evy.cjs +0 -6
- package/browser/cjs/v2J4J4s0rRAvsx4v.cjs +0 -6
- package/browser/esm/8Cdp6eg5fQM4U0CD.mjs +0 -10
- package/browser/esm/BvtSjnucMGltTjeM.mjs +0 -426
- package/browser/esm/Bzw2Xms8ZtifZcAF.mjs +0 -10
- package/browser/esm/C9ojFSLlGrdG3EDE.mjs +0 -10
- package/browser/esm/CPxdCZqGhuQENst8.mjs +0 -10
- package/browser/esm/CQXqHgLFDd57bQSy.mjs +0 -10
- package/browser/esm/CRlsrdZLcL-QKyo2.mjs +0 -12
- package/browser/esm/CUqge0vhYI_M8Hpg.mjs +0 -10
- package/browser/esm/C__wCYJcwKkBqp8t.mjs +0 -10
- package/browser/esm/Cou0jxSdkKrqQBPA.mjs +0 -10
- package/browser/esm/CtGy0C3HHvNhQ3j5.mjs +0 -10
- package/browser/esm/Ctol2MswJyCxIJcQ.mjs +0 -10
- package/browser/esm/D7tUJDQqPM4e3FEC.mjs +0 -10
- package/browser/esm/DB5Wpq1m-bJ7gpBF.mjs +0 -10
- package/browser/esm/DLXAhFMo3NyECo8b.mjs +0 -23842
- package/browser/esm/DTlPJulnTLqG3WSw.mjs +0 -10
- package/browser/esm/DwfM2tfEPAzMl86c.mjs +0 -10
- package/browser/esm/Dx0TIy0V5EVTNOEZ.mjs +0 -10
- package/browser/esm/Dxfd2MfY8kHHUtnu.mjs +0 -4022
- package/browser/esm/E0SwR3N6qggAhdBh.mjs +0 -10
- package/browser/esm/JGdZf2WBzvkRao7-.mjs +0 -10
- package/browser/esm/NAcqiYlYK4mm9q_F.mjs +0 -10
- package/browser/esm/NGg21AIVBhRCHoOh.mjs +0 -10
- package/browser/esm/PjtmxdNFMVskYmPB.mjs +0 -10
- package/browser/esm/a_LQ18tLbXq3N9hu.mjs +0 -10
- package/browser/esm/hXx5ZKLpc4RvmCjH.mjs +0 -10
- package/browser/esm/zoqPtKWJmGQs1ZUb.mjs +0 -5653
- package/node/esm/7QlvuodPxz-B25P9.mjs +0 -10
- package/node/esm/8Cdp6eg5fQM4U0CD.mjs +0 -10
- package/node/esm/B94PecmbGgqY0k9O.mjs +0 -13
- package/node/esm/BpvIVwL4NNRKuaD7.mjs +0 -10
- package/node/esm/Bzw2Xms8ZtifZcAF.mjs +0 -10
- package/node/esm/C9ojFSLlGrdG3EDE.mjs +0 -10
- package/node/esm/CQXqHgLFDd57bQSy.mjs +0 -10
- package/node/esm/CSg2ysafDv5h1zz2.mjs +0 -2458
- package/node/esm/CUqge0vhYI_M8Hpg.mjs +0 -10
- package/node/esm/C__wCYJcwKkBqp8t.mjs +0 -10
- package/node/esm/Cou0jxSdkKrqQBPA.mjs +0 -10
- package/node/esm/CtlHMovXY4x1NgI6.mjs +0 -10
- package/node/esm/Ctol2MswJyCxIJcQ.mjs +0 -10
- package/node/esm/Cv3hTIkdeILrJGYc.mjs +0 -10
- package/node/esm/D7tUJDQqPM4e3FEC.mjs +0 -10
- package/node/esm/DTlPJulnTLqG3WSw.mjs +0 -10
- package/node/esm/Dvg1Ay14DLNhMgmD.mjs +0 -10
- package/node/esm/DwfM2tfEPAzMl86c.mjs +0 -10
- package/node/esm/Dx0TIy0V5EVTNOEZ.mjs +0 -10
- package/node/esm/F5A4vdvxqRt8hFAs.mjs +0 -10
- package/node/esm/NGg21AIVBhRCHoOh.mjs +0 -10
- package/node/esm/PjtmxdNFMVskYmPB.mjs +0 -10
- package/node/esm/a_LQ18tLbXq3N9hu.mjs +0 -10
- package/node/esm/hXx5ZKLpc4RvmCjH.mjs +0 -10
- package/node/esm/lUsLEOryW9viP9g7.mjs +0 -1072
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
import { IRange, Scalar } from '@sheetxl/primitives';
|
|
2
|
+
import { ReferenceableClipboard } from '@sheetxl/utils';
|
|
3
|
+
import { IProperties } from '../type';
|
|
4
|
+
import { IListener } from '../listener';
|
|
5
|
+
import { ITransaction } from '../transaction';
|
|
6
|
+
import { ICellRange } from '../cellRange';
|
|
7
|
+
import { IStyle, IStyleCollection } from '../style';
|
|
8
|
+
import { IAnchored } from '../anchored';
|
|
9
|
+
import { INamedCollection, INamed } from '../named';
|
|
10
|
+
import { ISheet } from '../sheet';
|
|
11
|
+
import { ISort } from '../sort';
|
|
12
|
+
import { ICondition } from '../condition';
|
|
13
|
+
import { IFilter } from '../filter';
|
|
14
|
+
import { AbstractAnchored } from '../anchored/AbstractAnchored';
|
|
15
|
+
import { Anchored } from '../anchored/Anchored';
|
|
16
|
+
import { ColumnPropertiesState, SortPropertiesState, FilterPropertiesState } from './_TableUtils';
|
|
17
|
+
import { ITableStyle } from './ITableStyle';
|
|
18
|
+
import { ITable } from './ITable';
|
|
19
|
+
/**
|
|
20
|
+
* Implementation of {@link ITable}.
|
|
21
|
+
*/
|
|
22
|
+
export declare class AnchoredTable extends AbstractAnchored<State, CommitView, ITable.Events> implements ITable {
|
|
23
|
+
protected _sheet: ISheet | undefined;
|
|
24
|
+
private _styles;
|
|
25
|
+
private _stylesRemoveListener;
|
|
26
|
+
private _columnListener;
|
|
27
|
+
private _lastTransactionId;
|
|
28
|
+
private _emptyColumnName;
|
|
29
|
+
private _emptyColumnNamer;
|
|
30
|
+
private _autoExpandRemoveListener;
|
|
31
|
+
private _styleCache;
|
|
32
|
+
private _stylePropsCache;
|
|
33
|
+
private _processTableUpdate;
|
|
34
|
+
private _setContainerName;
|
|
35
|
+
private _names;
|
|
36
|
+
private _namedItem;
|
|
37
|
+
private _colHeadersSizeUnlistener;
|
|
38
|
+
private _rowHeadersSizeUnlistener;
|
|
39
|
+
private _visibleRange;
|
|
40
|
+
private _isHeaderVisible;
|
|
41
|
+
private _isTotalVisible;
|
|
42
|
+
private _isFirstColumnVisible;
|
|
43
|
+
private _isLastColumnVisible;
|
|
44
|
+
private _createColumn;
|
|
45
|
+
private _createSort;
|
|
46
|
+
private _createFilter;
|
|
47
|
+
constructor(options: AnchoredTable.ConstructorOptions);
|
|
48
|
+
protected _initializeOptions(options: AnchoredTable.ConstructorOptions): AnchoredTable.ConstructorOptions;
|
|
49
|
+
protected initializeColumnCreator(table: ITable, getProps: (id: number | string) => ColumnPropertiesState, updateProps: (id: number | string, update: Partial<ITable.ColumnProperties> | null, options?: string | ITransaction.OperationOptions) => void, deleteColumn: (id: number | string, options?: ITransaction.OperationOptions) => void): (id: number | string) => ITable.IColumn;
|
|
50
|
+
protected initializeSortCreator(table: ITable, getProps: (id: number | string) => SortPropertiesState, getColumnProps: (id: number | string) => ColumnPropertiesState): (id: number | string) => ISort;
|
|
51
|
+
protected initializeFilterCreator(table: ITable, getProps: (id: number | string) => FilterPropertiesState, getColumnProps: (id: number | string) => ColumnPropertiesState): (id: number | string) => IFilter;
|
|
52
|
+
protected _initialize(options: AnchoredTable.ConstructorOptions): void;
|
|
53
|
+
/** {@inheritDoc ITable.getNamed} */
|
|
54
|
+
getNamed(): INamed | null;
|
|
55
|
+
/**
|
|
56
|
+
* Recompute the derived visible state (`_visibleRange` and the visible flags), which depend on
|
|
57
|
+
* the sheet's hidden rows/columns.
|
|
58
|
+
*
|
|
59
|
+
* @remarks
|
|
60
|
+
* Callers of the visible getters recompute on read via this method rather than relying on the
|
|
61
|
+
* header `onSizesChange` listener alone. That listener fires order-dependently relative to the
|
|
62
|
+
* render: the sheet's transactional layout listener runs (and can drive a cell read) before this
|
|
63
|
+
* table's non-transactional listener updates the value, so a purely event-driven value can be
|
|
64
|
+
* read stale mid-transaction. The underlying header lookups are already current at read time, so
|
|
65
|
+
* recomputing here is always correct. It is cheap - a couple of trivial lookups when nothing is
|
|
66
|
+
* hidden.
|
|
67
|
+
*/
|
|
68
|
+
protected _ensureVisible(): void;
|
|
69
|
+
/**
|
|
70
|
+
* Used the hidden headers to determine if various style parts are hidden.
|
|
71
|
+
*
|
|
72
|
+
* 1. Uses hidden columns/rows
|
|
73
|
+
* 2. Uses hidden flags or header/footer
|
|
74
|
+
* 3. DOES not use viewport
|
|
75
|
+
*/
|
|
76
|
+
protected _calcVisible(): void;
|
|
77
|
+
/** {@inheritDoc ITable.getSnapshot} */
|
|
78
|
+
getSnapshot(options?: ReferenceableClipboard.CopyOptions): ITable.ISnapshot;
|
|
79
|
+
/** {@inheritDoc ITable.getAnchorType} */
|
|
80
|
+
getAnchorType(): IAnchored.Type;
|
|
81
|
+
/** {@inheritDoc ITable.getStyle} */
|
|
82
|
+
getStyle(): ITableStyle;
|
|
83
|
+
/** {@inheritDoc ITable.addRow} */
|
|
84
|
+
addRow(index?: number, options?: ITransaction.OperationOptions): this;
|
|
85
|
+
protected _ensureHeightForHeaderTotals(originalAnchorCoords: IRange.Coords, originalHeaderRowCount: number, originalTotalsRowCount: number, headerRowCount?: number, totalsRowCount?: number): boolean;
|
|
86
|
+
/** {@inheritDoc ITable.addRows} */
|
|
87
|
+
addRows(index: number, count?: number, options?: ITransaction.OperationOptions): this;
|
|
88
|
+
/** {@inheritDoc ITable.deleteRowsAt} */
|
|
89
|
+
deleteRowsAt(index: number, count?: number, options?: ITransaction.OperationOptions): this;
|
|
90
|
+
protected _deleteColumn(id: number | string, options?: ITransaction.OperationOptions): void;
|
|
91
|
+
/** {@inheritDoc ITable.addColumn} */
|
|
92
|
+
addColumn(index?: number, values?: Scalar[], name?: string, options?: ITransaction.OperationOptions): ITable.IColumn;
|
|
93
|
+
/** {@inheritDoc ITable.getColumns} */
|
|
94
|
+
getColumns(): readonly ITable.IColumn[];
|
|
95
|
+
/** {@inheritDoc ITable.getColumns} */
|
|
96
|
+
getColumn(key: string): ITable.IColumn | null;
|
|
97
|
+
/** {@inheritDoc ITable.getColumns} */
|
|
98
|
+
getColumnById(id: string): ITable.IColumn | null;
|
|
99
|
+
/** {@inheritDoc ITable.getColumns} */
|
|
100
|
+
getColumnByName(name: string): ITable.IColumn | null;
|
|
101
|
+
/** {@inheritDoc ITable.convertToRange} */
|
|
102
|
+
convertToRange(maxCells?: number, options?: ITransaction.OperationOptions): ICellRange;
|
|
103
|
+
/** {@inheritDoc ITable.resizeTo} */
|
|
104
|
+
resizeTo(rowCount: number, colCount: number, options?: ITransaction.OperationOptions): ICellRange;
|
|
105
|
+
/** {@inheritDoc ITable.resize} */
|
|
106
|
+
resize(address: ICellRange.Address, options?: ITransaction.OperationOptions): ICellRange;
|
|
107
|
+
protected _resize(address: ICellRange.Address, options?: ITransaction.OperationOptions, description?: string): ICellRange;
|
|
108
|
+
/** {@inheritDoc ITable.getName} */
|
|
109
|
+
getName(): string;
|
|
110
|
+
/** {@inheritDoc ITable.setName} */
|
|
111
|
+
setName(name: string, options?: ITransaction.OperationOptions): this;
|
|
112
|
+
/** {@inheritDoc ITable.getDescription} */
|
|
113
|
+
getDescription(): string;
|
|
114
|
+
/** {@inheritDoc ITable.setDescription} */
|
|
115
|
+
setDescription(description: string, options?: ITransaction.OperationOptions): this;
|
|
116
|
+
/** {@inheritDoc ITable.select} */
|
|
117
|
+
select(options?: ICellRange.SelectOptions): Promise<ICellRange>;
|
|
118
|
+
/** @internal */
|
|
119
|
+
protected _processRestoreOrRevert(state: State, view: CommitView, commit: ITransaction.ICommit): void;
|
|
120
|
+
/** @internal */
|
|
121
|
+
protected _processAnchorCoords(): void;
|
|
122
|
+
/** @internal */
|
|
123
|
+
protected _processAfterContainerShift(before: IRange.Coords[], after: IRange.Coords[]): void;
|
|
124
|
+
/** {@inheritDoc ITable.getDataRange} */
|
|
125
|
+
getDataRange(): ICellRange;
|
|
126
|
+
private _getUsedCoords;
|
|
127
|
+
/** {@inheritDoc ITable.getHeaderRowRange} */
|
|
128
|
+
getHeaderRowRange(): ICellRange;
|
|
129
|
+
private _getHeaderCoords;
|
|
130
|
+
/** {@inheritDoc ITable.getTotalRowRange} */
|
|
131
|
+
getTotalRowRange(): ICellRange;
|
|
132
|
+
private _getTotalCoords;
|
|
133
|
+
/** {@inheritDoc ITable.getStyleOptions} */
|
|
134
|
+
getStyleOptions(): ITableStyle.StyleOptions;
|
|
135
|
+
/** {@inheritDoc ITable.updateStyleOptions} */
|
|
136
|
+
updateStyleOptions(options: ITableStyle.StyleOptions, description?: string): this;
|
|
137
|
+
/** {@inheritDoc ITable.getRangedStyle} */
|
|
138
|
+
getRangedStyle(): IProperties.ICellRanged<IStyle.Properties>;
|
|
139
|
+
/** {@inheritDoc ITable.getStyleAt} */
|
|
140
|
+
getStyleAt(coords: IRange.CellCoords): IStyle;
|
|
141
|
+
/** {@inheritDoc ITable.isShowTotals} */
|
|
142
|
+
isShowTotals(): boolean;
|
|
143
|
+
/** {@inheritDoc ITable.setShowTotals} */
|
|
144
|
+
setShowTotals(showTotals: boolean, options?: ITransaction.OperationOptions): this;
|
|
145
|
+
/** {@inheritDoc ITable.isShowHeaders} */
|
|
146
|
+
isShowHeaders(): boolean;
|
|
147
|
+
/** {@inheritDoc ITable.setShowHeaders} */
|
|
148
|
+
setShowHeaders(showHeaders: boolean, options?: ITransaction.OperationOptions): this;
|
|
149
|
+
/** {@inheritDoc ITable.isShowHighlightFirstColumn} */
|
|
150
|
+
isShowHighlightFirstColumn(): boolean;
|
|
151
|
+
/** {@inheritDoc ITable.setShowHighlightFirstColumn} */
|
|
152
|
+
setShowHighlightFirstColumn(showHighlightFirstColumn: boolean, options?: ITransaction.OperationOptions): this;
|
|
153
|
+
/** {@inheritDoc ITable.isShowHighlightLastColumn} */
|
|
154
|
+
isShowHighlightLastColumn(): boolean;
|
|
155
|
+
/** {@inheritDoc ITable.setShowHighlightLastColumn} */
|
|
156
|
+
setShowHighlightLastColumn(showHighlightLastColumn: boolean, options?: ITransaction.OperationOptions): this;
|
|
157
|
+
/** {@inheritDoc ITable.isShowBandedColumns} */
|
|
158
|
+
isShowBandedColumns(): boolean;
|
|
159
|
+
/** {@inheritDoc ITable.setShowBandedColumns} */
|
|
160
|
+
setShowBandedColumns(showBandedColumns: boolean, options?: ITransaction.OperationOptions): this;
|
|
161
|
+
/** {@inheritDoc ITable.isShowBandedRows} */
|
|
162
|
+
isShowBandedRows(): boolean;
|
|
163
|
+
/** {@inheritDoc ITable.setShowBandedRows} */
|
|
164
|
+
setShowBandedRows(showBandedRows: boolean, options?: ITransaction.OperationOptions): this;
|
|
165
|
+
protected _setupAutoExpand(): void;
|
|
166
|
+
/** {@inheritDoc ITable.setDisabledAutoExpand} */
|
|
167
|
+
setDisabledAutoExpand(disabledAutoSize: boolean, options?: ITransaction.OperationOptions): this;
|
|
168
|
+
/** {@inheritDoc ITable.isDisabledAutoExpand} */
|
|
169
|
+
isDisabledAutoExpand(): boolean;
|
|
170
|
+
/** {@inheritDoc ITable.applyFilters} */
|
|
171
|
+
applyFilters(options?: ITransaction.OperationOptions): this;
|
|
172
|
+
/** {@inheritDoc ITable.deleteFilters} */
|
|
173
|
+
deleteFilters(options?: ITransaction.OperationOptions): this;
|
|
174
|
+
/** {@inheritDoc ITable.getActiveFilters} */
|
|
175
|
+
getActiveFilters(): readonly IFilter[];
|
|
176
|
+
/** {@inheritDoc ITable.getFilterAt} */
|
|
177
|
+
getFilterAt(index: number): IFilter | null;
|
|
178
|
+
protected _updateSorts(sorts: ISort.Options[] | undefined, originalSorts: readonly ISort[], orderedColumnsProps: ColumnPropertiesState[], mapColumnPropsById: Map<string | number, ColumnPropertiesState>): readonly ISort[];
|
|
179
|
+
protected _updateFilters(conditions: ICondition.Input[] | undefined, originalFilters: readonly IFilter[], orderedColumnsProps: ColumnPropertiesState[], mapColumnPropsById: Map<string | number, ColumnPropertiesState>): readonly IFilter[];
|
|
180
|
+
/** {@inheritDoc ITable.filter} */
|
|
181
|
+
/**
|
|
182
|
+
* Perform filtering on the table.
|
|
183
|
+
*/
|
|
184
|
+
filter(conditions?: ICondition.Input | ICondition.RangeOptions, options?: ITransaction.OperationOptions): this;
|
|
185
|
+
/** {@inheritDoc ITable.sort} */
|
|
186
|
+
sort(options?: ISort.RangeOptions & ITransaction.OperationOptions): this;
|
|
187
|
+
/** {@inheritDoc ITable.applySorts} */
|
|
188
|
+
applySorts(options?: ITransaction.OperationOptions): this;
|
|
189
|
+
/** {@inheritDoc ITable.deleteSorts} */
|
|
190
|
+
deleteSorts(options?: ITransaction.OperationOptions): this;
|
|
191
|
+
/** {@inheritDoc ITable.applySortsAndFilters} */
|
|
192
|
+
applySortsAndFilters(options?: ITransaction.OperationOptions): this;
|
|
193
|
+
/** {@inheritDoc ITable.deleteSortsAndFilters} */
|
|
194
|
+
deleteSortsAndFilters(options?: ITransaction.OperationOptions): this;
|
|
195
|
+
/** {@inheritDoc ITable.getActiveSorts} */
|
|
196
|
+
getActiveSorts(): readonly ISort[];
|
|
197
|
+
/** {@inheritDoc ITable.getSortAt} */
|
|
198
|
+
getSortAt(index: number): ISort | null;
|
|
199
|
+
/** {@inheritDoc ITable.setHiddenButtonAt} */
|
|
200
|
+
setHiddenButtonAt(index: number, hidden: boolean): this;
|
|
201
|
+
/** {@inheritDoc ITable.isHiddenButtonAt} */
|
|
202
|
+
isHiddenButtonAt(index: number): boolean;
|
|
203
|
+
/** {@inheritDoc ITable.setHiddenButtons} */
|
|
204
|
+
setHiddenButtons(hidden: boolean): this;
|
|
205
|
+
/** {@inheritDoc ITable.isHiddenButtons} */
|
|
206
|
+
isHiddenButtons(): boolean;
|
|
207
|
+
/** @internal */
|
|
208
|
+
private _applyFilters;
|
|
209
|
+
/** @internal */
|
|
210
|
+
private _applySorts;
|
|
211
|
+
/** {@inheritDoc ITable.getColumnAt} */
|
|
212
|
+
getColumnAt(index: number): ITable.IColumn | null;
|
|
213
|
+
/**
|
|
214
|
+
* Updates internal column state.
|
|
215
|
+
* - Note validating of unique names
|
|
216
|
+
* 1. index ordering
|
|
217
|
+
* 2. create or reused new Ids
|
|
218
|
+
*
|
|
219
|
+
* @remarks
|
|
220
|
+
* Mutates columnPropsNews to ensure index is correct.
|
|
221
|
+
*
|
|
222
|
+
* @internal
|
|
223
|
+
*/
|
|
224
|
+
protected _updateColumnsState(columnPropsNews: Partial<ColumnPropertiesState>[], options?: string | ITransaction.OperationOptions): ITable.IColumn[];
|
|
225
|
+
/** {@inheritDoc ITable.getVisibleRefRangeCoords} */
|
|
226
|
+
getVisibleRefRangeCoords(): IRange.Coords;
|
|
227
|
+
/** {@inheritDoc ITable.getVisibleCellCoords} */
|
|
228
|
+
getVisibleCellCoords(coords: IRange.CellCoords): IRange.CellCoords;
|
|
229
|
+
/** {@inheritDoc ITable.isHeaderVisible} */
|
|
230
|
+
isHeaderVisible(): boolean;
|
|
231
|
+
/** {@inheritDoc ITable.isTotalVisible} */
|
|
232
|
+
isTotalVisible(): boolean;
|
|
233
|
+
/** {@inheritDoc ITable.isFirstColumnVisible} */
|
|
234
|
+
isFirstColumnVisible(): boolean;
|
|
235
|
+
/** {@inheritDoc ITable.isLastColumnVisible} */
|
|
236
|
+
isLastColumnVisible(): boolean;
|
|
237
|
+
/**
|
|
238
|
+
* Builds columns from state and sheet (if available).
|
|
239
|
+
*
|
|
240
|
+
* @remarks
|
|
241
|
+
* The `converted` is true if the sheet is out of sync from the state.columns.
|
|
242
|
+
*
|
|
243
|
+
* @internal
|
|
244
|
+
*/
|
|
245
|
+
protected _readSyncSheet(ignoreBlanks?: boolean, ignoreTotal?: boolean): {
|
|
246
|
+
columns: ITable.ColumnProperties[];
|
|
247
|
+
converted: boolean;
|
|
248
|
+
} | null;
|
|
249
|
+
/**
|
|
250
|
+
* This takes a list of columns headers and then validates them
|
|
251
|
+
* and if there is a sheet it will set the values back into the sheet.
|
|
252
|
+
*
|
|
253
|
+
* 1. They must be unique. (case insensitive)
|
|
254
|
+
* 2. They can't be blank.
|
|
255
|
+
* 3. They must be text
|
|
256
|
+
*
|
|
257
|
+
* @param isRemove If true we are removing so we don't update the sheet.
|
|
258
|
+
* @internal
|
|
259
|
+
*/
|
|
260
|
+
protected _writeSyncSheet(isRemove?: boolean): void;
|
|
261
|
+
/** @internal */
|
|
262
|
+
protected _processDelete(): void;
|
|
263
|
+
/** @internal */
|
|
264
|
+
protected _processFilterUpdate(): void;
|
|
265
|
+
/** @internal */
|
|
266
|
+
protected _processContainerShift(options: Anchored.ShiftOptions): IRange.Coords | null | void;
|
|
267
|
+
protected _beginCommit(options?: string | ITransaction.OperationOptions): ITransaction;
|
|
268
|
+
private _modifyTable;
|
|
269
|
+
/** {@inheritDoc IListener.ISource.addListeners} */
|
|
270
|
+
addListeners(listeners: ITable.IListeners, options?: IListener.Options): IListener.Remove;
|
|
271
|
+
/** @internal */
|
|
272
|
+
protected _processAfterStateChange(state: State, view: CommitView, commit: ITransaction.ICommit): void;
|
|
273
|
+
/** @internal */
|
|
274
|
+
protected _processHeaderListener(): void;
|
|
275
|
+
/** @internal */
|
|
276
|
+
protected _processTotalsListener(): void;
|
|
277
|
+
get [Symbol.toStringTag](): string;
|
|
278
|
+
/** {@inheritDoc ICellRanges.toString} */
|
|
279
|
+
toString(): string;
|
|
280
|
+
/** {@inheritDoc ITable.toJSON} */
|
|
281
|
+
toJSON(): ITable.JSON | null;
|
|
282
|
+
/** {@inheritDoc ITable.getSheet} */
|
|
283
|
+
getSheet(): ISheet | null;
|
|
284
|
+
/** @internal */
|
|
285
|
+
private _createNamed;
|
|
286
|
+
private _fromJSON;
|
|
287
|
+
/** {@inheritDoc ITable.close} */
|
|
288
|
+
close(): void;
|
|
289
|
+
/** {@inheritDoc ITable.isITable} */
|
|
290
|
+
get isITable(): true;
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Tables are designed to be instantiated as both standalone and anchored items that represent a table of data on a sheet.
|
|
294
|
+
*/
|
|
295
|
+
export declare namespace AnchoredTable {
|
|
296
|
+
interface ConstructorOptions extends Anchored.ConstructorOptions {
|
|
297
|
+
/**
|
|
298
|
+
* The sheet the table is anchored to.
|
|
299
|
+
*/
|
|
300
|
+
sheet?: ISheet;
|
|
301
|
+
/**
|
|
302
|
+
* Required if there is no sheet. For example when showing table Preview.
|
|
303
|
+
*/
|
|
304
|
+
styles?: IStyleCollection;
|
|
305
|
+
/**
|
|
306
|
+
* If provided then the table will add/remove itself to/from the collection.
|
|
307
|
+
*/
|
|
308
|
+
names?: INamedCollection | null;
|
|
309
|
+
/**
|
|
310
|
+
* JSON state to load.
|
|
311
|
+
*/
|
|
312
|
+
json?: ITable.JSON;
|
|
313
|
+
/**
|
|
314
|
+
* If this is true then this will sync header and footers if they are visible on load.
|
|
315
|
+
*/
|
|
316
|
+
syncSheet?: boolean;
|
|
317
|
+
processTableUpdate?: () => void;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
/** @internal */
|
|
321
|
+
interface State extends AbstractAnchored.State {
|
|
322
|
+
/** Single rectangle — this type is never anchored to more than one range. */
|
|
323
|
+
anchorCoords: IRange.Coords;
|
|
324
|
+
name: string;
|
|
325
|
+
description: string;
|
|
326
|
+
headerRowCount: number;
|
|
327
|
+
totalsRowCount: number;
|
|
328
|
+
style: ITableStyle.StyleOptions;
|
|
329
|
+
disabledAutoExpand: boolean;
|
|
330
|
+
mapColumnById: Map<string | number, ITable.IColumn>;
|
|
331
|
+
mapColumnByIndex: Map<number, ITable.IColumn>;
|
|
332
|
+
mapColumnByName: Map<string, ITable.IColumn>;
|
|
333
|
+
orderedColumns: readonly ITable.IColumn[];
|
|
334
|
+
mapColumnPropsById: Map<string | number, ColumnPropertiesState>;
|
|
335
|
+
orderedColumnsProps: readonly ColumnPropertiesState[];
|
|
336
|
+
sortsActive: readonly ISort[];
|
|
337
|
+
filtersActive: readonly IFilter[];
|
|
338
|
+
hiddenButtons: boolean;
|
|
339
|
+
mapHiddenButtons: Map<number, boolean>;
|
|
340
|
+
headerRemoveListener: IListener.Remove | null;
|
|
341
|
+
totalsRemoveListener: IListener.Remove | null;
|
|
342
|
+
lastColId: number;
|
|
343
|
+
shownTotalsRow: boolean;
|
|
344
|
+
}
|
|
345
|
+
/** @internal */
|
|
346
|
+
interface CommitView extends AbstractAnchored.CommitView {
|
|
347
|
+
}
|
|
348
|
+
export {};
|
|
349
|
+
//# sourceMappingURL=AnchoredTable.d.ts.map
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Scalar } from '@sheetxl/primitives';
|
|
2
|
+
import { ICellRange } from '../cellRange';
|
|
3
|
+
import { ITransaction } from '../transaction';
|
|
4
|
+
import { Anchored } from '../anchored/Anchored';
|
|
5
|
+
import { ColumnPropertiesState } from './_TableUtils';
|
|
6
|
+
import { ITableStyle } from './ITableStyle';
|
|
7
|
+
import { ITable } from './ITable';
|
|
8
|
+
import { AnchoredTable } from './AnchoredTable';
|
|
9
|
+
/**
|
|
10
|
+
* A special ITable that is created just for filter and sorting.
|
|
11
|
+
*
|
|
12
|
+
* It is used by:
|
|
13
|
+
* - `ISheet.addAutoTable()` "AutoTable" (Excel AutoFilter region).
|
|
14
|
+
* - ITable (named tables with column metadata, styles, etc).
|
|
15
|
+
*
|
|
16
|
+
* A sheet-level AutoTable is similar to ITable but does not have:
|
|
17
|
+
* - Column Names
|
|
18
|
+
* - Table Name (Structured References)
|
|
19
|
+
* - Table Styles
|
|
20
|
+
* - Table Headers / Footers
|
|
21
|
+
* and is limited to:
|
|
22
|
+
* - Only 1 AutoTable per sheet.
|
|
23
|
+
*
|
|
24
|
+
* It does have:
|
|
25
|
+
* - Filter State
|
|
26
|
+
* - Sort State
|
|
27
|
+
*/
|
|
28
|
+
export declare class AutoTable extends AnchoredTable {
|
|
29
|
+
protected _initialize(options: AnchoredTable.ConstructorOptions): void;
|
|
30
|
+
protected initializeColumnCreator(table: ITable, getProps: (id: number | string) => ColumnPropertiesState, updateProps: (id: number | string, update: Partial<ITable.ColumnProperties> | null, options?: string | ITransaction.OperationOptions) => void, deleteColumn: (id: number | string, options?: ITransaction.OperationOptions) => void): (id: number | string) => ITable.IColumn;
|
|
31
|
+
protected _processHeaderListener(): void;
|
|
32
|
+
protected _readSyncSheet(ignoreBlanks?: boolean): {
|
|
33
|
+
columns: ITable.ColumnProperties[];
|
|
34
|
+
converted: boolean;
|
|
35
|
+
} | null;
|
|
36
|
+
protected _writeSyncSheet(isRemove?: boolean): void;
|
|
37
|
+
protected _calcVisible(): void;
|
|
38
|
+
isShowHeaders(): boolean;
|
|
39
|
+
addRows(index: number, count?: number, options?: ITransaction.OperationOptions): this;
|
|
40
|
+
addColumn(index?: number, values?: Scalar[], name?: string, options?: ITransaction.OperationOptions): ITable.IColumn;
|
|
41
|
+
deleteRowsAt(index: number, count?: number, options?: ITransaction.OperationOptions): this;
|
|
42
|
+
getColumnByName(name: string): ITable.IColumn | null;
|
|
43
|
+
convertToRange(maxCells?: number, options?: ITransaction.OperationOptions): ICellRange;
|
|
44
|
+
setName(name: string, options?: ITransaction.OperationOptions): this;
|
|
45
|
+
setDescription(description: string, options?: ITransaction.OperationOptions): this;
|
|
46
|
+
updateStyleOptions(options: ITableStyle.StyleOptions, description?: string): this;
|
|
47
|
+
setShowTotals(showTotals: boolean, options?: ITransaction.OperationOptions): this;
|
|
48
|
+
setShowHeaders(showHeaders: boolean, options?: ITransaction.OperationOptions): this;
|
|
49
|
+
setShowHighlightFirstColumn(showHighlightFirstColumn: boolean, options?: ITransaction.OperationOptions): this;
|
|
50
|
+
setShowHighlightLastColumn(showHighlightLastColumn: boolean, options?: ITransaction.OperationOptions): this;
|
|
51
|
+
setShowBandedColumns(showBandedColumns: boolean, options?: ITransaction.OperationOptions): this;
|
|
52
|
+
setShowBandedRows(showBandedRows: boolean, options?: ITransaction.OperationOptions): this;
|
|
53
|
+
protected _resize(address: ICellRange.Address, options?: ITransaction.OperationOptions, description?: string): ICellRange;
|
|
54
|
+
get [Symbol.toStringTag](): string;
|
|
55
|
+
/** {@inheritDoc ICellRanges.toString} */
|
|
56
|
+
toString(): string;
|
|
57
|
+
/** {@inheritDoc ITable.toJSON} */
|
|
58
|
+
toJSON(): ITable.JSON | null;
|
|
59
|
+
}
|
|
60
|
+
export declare namespace AutoTable {
|
|
61
|
+
interface ConstructorOptions extends Anchored.ConstructorOptions {
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=AutoTable.d.ts.map
|