@sheetxl/sdk 0.7.27 → 0.7.28-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/THIRD-PARTY-NOTICES.md +34 -0
- package/browser/cjs/B7_pDFYCVzt-3hUs.cjs +1 -0
- package/browser/cjs/BG7YDVxiC4ErxvF1.cjs +1 -0
- package/browser/cjs/BREMLtxkQhtNSVra.cjs +1 -0
- package/browser/cjs/CQf4zxkBmheTVbjX.cjs +57 -0
- package/browser/cjs/DoemwsUQoGCk0vBK.cjs +33 -0
- package/browser/cjs/Dv3x6zut1ZRUt3IF.cjs +10 -0
- package/browser/cjs/_c2uwwpr03Y7lzIj.cjs +1 -0
- package/browser/cjs/index.cjs +3 -6
- package/browser/esm/BxIOX1TojvA-1ZZP.mjs +14 -0
- package/browser/esm/CB_4gdPPPruwremH.mjs +49989 -0
- package/browser/esm/CZO1RubmqnJV96rq.mjs +503 -0
- package/browser/esm/DN4d5bDBkti28wuc.mjs +818 -0
- package/browser/esm/DPOelA1J3WHbMXyh.mjs +109 -0
- package/browser/esm/DRWu3TmcE9JFf78V.mjs +4436 -0
- package/browser/esm/index.mjs +3225 -62
- package/browser/esm/vHWuKF-ftK7LM1uw.mjs +24 -0
- package/licenses/dependencies.txt +74 -193
- package/node/esm/B-tgcZihStNV9CbZ.mjs +22 -0
- package/node/esm/C8tfYGL3wHy9IDDc.mjs +114 -0
- package/node/esm/XQhP3dYwF_tEuswB.mjs +837 -0
- package/node/esm/index.mjs +53604 -23262
- 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,47 @@
|
|
|
1
|
+
import { IRange } from '@sheetxl/primitives';
|
|
2
|
+
import { IProperties } from '../../type';
|
|
3
|
+
import { IStyle, IStyleCollection } from '../../style';
|
|
4
|
+
import { ISpatialMap } from '../../collections/ISpatialMap';
|
|
5
|
+
import { SheetDirectStyle } from './SheetDirectStyle';
|
|
6
|
+
export declare class NamedRangedStyle extends SheetDirectStyle {
|
|
7
|
+
constructor(styles: IStyleCollection, properties?: IStyle.Properties);
|
|
8
|
+
isEmpty(): boolean;
|
|
9
|
+
/** {@inheritDoc IProperties.ICellRanged.getCoords} */
|
|
10
|
+
getCoords(): Readonly<IRange.Coords>;
|
|
11
|
+
/** {@inheritDoc IProperties.ICellRanged.cloneWithUpdate} */
|
|
12
|
+
cloneWithUpdate(updates: IStyle.Properties): this;
|
|
13
|
+
protected _createShifted(coords: IRange.Coords): this;
|
|
14
|
+
/** {@inheritDoc ISpatialMap.IUpdatableValue.getShifted} */
|
|
15
|
+
getShifted(options: ISpatialMap.ShiftDetails<this>): ISpatialMap.Entry<this> | null;
|
|
16
|
+
/** {@inheritDoc ISpatialMap.IUpdatableValue.getSplit} */
|
|
17
|
+
getSplit(coords: [IRange.Coords, IRange.Coords], _axis: IRange.Axis): [this, this];
|
|
18
|
+
/** {@inheritDoc ISpatialMap.IUpdatableValue.getMerged} */
|
|
19
|
+
getMerged(other: this, coords: IRange.Coords, _axis: IRange.Axis): this | undefined;
|
|
20
|
+
getPropertiesAt(_rowIndex: number, _colIndex: number): Readonly<IStyle.Properties>;
|
|
21
|
+
toJSON(): IStyle.JSON;
|
|
22
|
+
}
|
|
23
|
+
export declare class SheetNamedStyle implements IStyle.INamed {
|
|
24
|
+
private _name;
|
|
25
|
+
private _properties;
|
|
26
|
+
private _rangeStyle;
|
|
27
|
+
private _builtInID;
|
|
28
|
+
private _doDelete;
|
|
29
|
+
constructor(style: IStyleCollection, properties: Readonly<IStyle.NamedProperties>, doDelete: (style: IStyle.INamed | string) => void, builtInID?: number | null);
|
|
30
|
+
/** {@inheritDoc IStyle.INamed.getRanged} */
|
|
31
|
+
getRanged(): IProperties.ICellRanged<IStyle.Properties>;
|
|
32
|
+
/** {@inheritDoc IStyle.INamed.getName} */
|
|
33
|
+
getName(): string;
|
|
34
|
+
/** {@inheritDoc IStyle.INamed.isHidden} */
|
|
35
|
+
isHidden(): boolean;
|
|
36
|
+
/** {@inheritDoc IStyle.INamed.getILevel} */
|
|
37
|
+
getILevel(): number | null;
|
|
38
|
+
/** {@inheritDoc IStyle.INamed.getBuiltInID} */
|
|
39
|
+
getBuiltInID(): number | null;
|
|
40
|
+
/** {@inheritDoc IStyle.INamed.delete} */
|
|
41
|
+
delete(): void;
|
|
42
|
+
/** {@inheritDoc IStyle.INamed.toJSON} */
|
|
43
|
+
toJSON(): IStyle.NamedJSON;
|
|
44
|
+
/** {@inheritDoc IStyle.INamed.isINamed} */
|
|
45
|
+
get isINamed(): true;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=SheetNamedStyle.d.ts.map
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { IRange } from '@sheetxl/primitives';
|
|
2
|
+
import { IProperties } from '../../type';
|
|
3
|
+
import { IStyle, IStyleCollection } from '../../style';
|
|
4
|
+
import { ITableStyle, ITable } from '../../table';
|
|
5
|
+
export declare class TableRangedStyle implements IProperties.ICellRanged<IStyle.Properties> {
|
|
6
|
+
protected _styles: IStyleCollection;
|
|
7
|
+
protected _properties: ITableStyle.Properties;
|
|
8
|
+
protected _table: ITable;
|
|
9
|
+
/**
|
|
10
|
+
* Memoized merged styles keyed by cell 'permutation'. A table style resolves to a small
|
|
11
|
+
* bounded set of distinct cell styles (header/total membership, edge flags, stripe phase, ...)
|
|
12
|
+
* rather than one per cell. Every live table-state value that feeds the merge folds into the
|
|
13
|
+
* key, so entries never go stale; the instance itself is dropped with the table's
|
|
14
|
+
* `_stylePropsCache` on any table or table-styles change (see `ITable.getRangedStyle`).
|
|
15
|
+
*/
|
|
16
|
+
protected _permCache: Map<string, Readonly<IStyle.Properties>> | null;
|
|
17
|
+
constructor(table: ITable, styles: IStyleCollection, properties: ITableStyle.Properties);
|
|
18
|
+
protected _resolveProperties(properties: ITableStyle.Properties): ITableStyle.Properties;
|
|
19
|
+
getCoords(): IRange.Coords;
|
|
20
|
+
getPropertiesAt(rowIndex: number, colIndex: number): Readonly<IStyle.Properties>;
|
|
21
|
+
}
|
|
22
|
+
export declare class SheetTableStyle implements ITableStyle {
|
|
23
|
+
protected _styles: IStyleCollection;
|
|
24
|
+
protected _properties: Readonly<ITableStyle.Properties>;
|
|
25
|
+
protected _isBuiltIn: boolean;
|
|
26
|
+
protected _doDelete: ((styleName: string) => void) | undefined;
|
|
27
|
+
constructor(styles: IStyleCollection, properties: ITableStyle.Properties, isBuiltIn: boolean, _doDelete?: (styleName: string) => void);
|
|
28
|
+
protected _resolveProperties(properties: ITableStyle.Properties): ITableStyle.Properties;
|
|
29
|
+
/** {@inheritDoc ITableStyle.delete} */
|
|
30
|
+
delete(): void;
|
|
31
|
+
/** {@inheritDoc ITableStyle.getRanged} */
|
|
32
|
+
getRanged(table: ITable): IProperties.ICellRanged<IStyle.Properties>;
|
|
33
|
+
/** {@inheritDoc ITableStyle.getProperties} */
|
|
34
|
+
getProperties(): Readonly<ITableStyle.Properties>;
|
|
35
|
+
/** {@inheritDoc ITableStyle.getName} */
|
|
36
|
+
getName(): string;
|
|
37
|
+
/** {@inheritDoc ITableStyle.isShownInTableStyles} */
|
|
38
|
+
isShownInTableStyles(): boolean;
|
|
39
|
+
/** {@inheritDoc ITableStyle.isShownInPivotStyles} */
|
|
40
|
+
isShownInPivotStyles(): boolean;
|
|
41
|
+
/** {@inheritDoc ITableStyle.isBuiltIn} */
|
|
42
|
+
isBuiltIn(): boolean;
|
|
43
|
+
/** {@inheritDoc ITableStyle.toJSON} */
|
|
44
|
+
toJSON(): ITableStyle.JSON;
|
|
45
|
+
get isITableStyle(): true;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=SheetTableStyle.d.ts.map
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { RangeCoords } from '@sheetxl/utils';
|
|
2
|
+
import { SpatialMap, ISpatialMap } from '../../collections';
|
|
3
|
+
/**
|
|
4
|
+
* Spatial map with logical boundary awareness that distinguishes between virtual extent and actual content.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
*
|
|
8
|
+
* **Purpose**: Tracks ranges within a logical boundary (`entireCoords`) while treating ranges adjacent
|
|
9
|
+
* to trailing edges as "header-like" - they contribute content only in the opposite dimension.
|
|
10
|
+
*
|
|
11
|
+
* **Use Case**: Excel-style row/column headers where trailing styles (e.g., column header spanning
|
|
12
|
+
* to max column, or row header spanning to max row) shouldn't expand the contentful bounds in that dimension.
|
|
13
|
+
*
|
|
14
|
+
* **Behavior**:
|
|
15
|
+
* - Ranges with `colEnd >= entireCoords.colEnd` are collapsed to their leftmost column for content calculation
|
|
16
|
+
* - Ranges with `rowEnd >= entireCoords.rowEnd` are collapsed to their topmost row for content calculation
|
|
17
|
+
* - This prevents trailing headers from artificially expanding the "used range" in their spanning dimension
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```typescript
|
|
21
|
+
* const map = new UsedRangeSpatialMap({ entireCoords: { colStart: 0, rowStart: 0, colEnd: 100, rowEnd: 100 } });
|
|
22
|
+
* map.add({ colStart: 0, rowStart: 0, colEnd: 100, rowEnd: 0 }); // Column header (full width)
|
|
23
|
+
* map.add({ colStart: 0, rowStart: 5, colEnd: 10, rowEnd: 10 }); // Actual content
|
|
24
|
+
*
|
|
25
|
+
* // Contentful coords excludes the full-width header's horizontal span
|
|
26
|
+
* const content = map.getContentfulCoords(); // { colStart: 0, rowStart: 0, colEnd: 10, rowEnd: 10 }
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export interface IUsedRangeSpatialMap<T = any> extends ISpatialMap<T> {
|
|
30
|
+
/**
|
|
31
|
+
* Returns the smallest range containing all "contentful" ranges, treating trailing-edge ranges specially.
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* Ranges extending to `entireCoords` boundaries are collapsed in that dimension:
|
|
35
|
+
* - Column-spanning ranges (colEnd >= entireCoords.colEnd) contribute only their top-left column
|
|
36
|
+
* - Row-spanning ranges (rowEnd >= entireCoords.rowEnd) contribute only their top-left row
|
|
37
|
+
*
|
|
38
|
+
* @returns The bounding rectangle of actual content, or `null` if empty or only trailing-edge ranges exist
|
|
39
|
+
*/
|
|
40
|
+
getContentfulCoords(): RangeCoords | null;
|
|
41
|
+
/**
|
|
42
|
+
* Sets the logical boundary for the map, defining what constitutes a "trailing edge".
|
|
43
|
+
*
|
|
44
|
+
* @param coords - The maximum logical extent; ranges reaching these boundaries are treated as headers
|
|
45
|
+
*/
|
|
46
|
+
setEntireCoords(coords: RangeCoords): void;
|
|
47
|
+
/**
|
|
48
|
+
* Returns the logical boundary coordinates.
|
|
49
|
+
*
|
|
50
|
+
* @returns The entire coords, or `null` if not set
|
|
51
|
+
*/
|
|
52
|
+
getEntireCoords(): RangeCoords | null;
|
|
53
|
+
}
|
|
54
|
+
export declare namespace IUsedRangeSpatialMap {
|
|
55
|
+
interface ConstructorOptions<T = any> extends ISpatialMap.ConstructorOptions<T> {
|
|
56
|
+
/**
|
|
57
|
+
* Specifies the logical maximum range that the map covers.
|
|
58
|
+
*/
|
|
59
|
+
entireCoords: RangeCoords;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Implementation of `IUsedRangeSpatialMap`.
|
|
64
|
+
*/
|
|
65
|
+
export declare class UsedRangeSpatialMap<T = any> extends SpatialMap<T> implements IUsedRangeSpatialMap<T> {
|
|
66
|
+
protected _entireCoords: RangeCoords | undefined;
|
|
67
|
+
protected _contentfulCoords: RangeCoords | null | undefined;
|
|
68
|
+
constructor(options?: IUsedRangeSpatialMap.ConstructorOptions<T>);
|
|
69
|
+
/** {@inheritDoc IUsedRangeSpatialMap.getContentfulCoords} */
|
|
70
|
+
getContentfulCoords(): RangeCoords | null;
|
|
71
|
+
/** {@inheritDoc IUsedRangeSpatialMap.setEntireCoords} */
|
|
72
|
+
setEntireCoords(coords: RangeCoords): void;
|
|
73
|
+
/** {@inheritDoc IUsedRangeSpatialMap.getEntireCoords} */
|
|
74
|
+
getEntireCoords(): RangeCoords | null;
|
|
75
|
+
/** {@inheritDoc ISpatialMap.clone} */
|
|
76
|
+
clone(cloneKey?: any): this;
|
|
77
|
+
protected _onModified(): void;
|
|
78
|
+
protected _createClone(options: IUsedRangeSpatialMap.ConstructorOptions<T>): this;
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=UsedRangeSpatialMap.d.ts.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { TypedObject } from '@sheetxl/utils';
|
|
2
|
+
import { IColor } from '../../color';
|
|
3
|
+
import { IFill } from '../../fill';
|
|
4
|
+
import { ITextFrame, IStyledFont } from '../../text';
|
|
5
|
+
import { IBorder } from '../../border';
|
|
6
|
+
import { NumberFormat } from '../../numFmt';
|
|
7
|
+
import { IStyle, IStyleCollection } from '../../style';
|
|
8
|
+
export declare const COLOR: TypedObject<IColor.Serializable, IColor, IStyleCollection>;
|
|
9
|
+
export declare const BORDER_STROKE: TypedObject<IBorder.StrokeProperties<IColor.Serializable>, IBorder.IStroke, IStyleCollection>;
|
|
10
|
+
export declare const CELL_BORDER: TypedObject<IBorder.Properties, IBorder, IStyleCollection>;
|
|
11
|
+
export declare const CELL_NUM_FMT: TypedObject<string | NumberFormat.Type | number, any, IStyleCollection>;
|
|
12
|
+
export declare const CELL_FONT: TypedObject<IStyledFont.Properties, IStyledFont, IStyleCollection>;
|
|
13
|
+
export declare const CELL_ALIGNMENT: TypedObject<ITextFrame.IAlignment.Properties, ITextFrame.IAlignment, IStyleCollection>;
|
|
14
|
+
export declare const FILL_NONE: TypedObject<IFill.NoneProperties, IFill.INone, IStyleCollection>;
|
|
15
|
+
export declare const FILL_SOLID: TypedObject<IFill.SolidProperties, IFill.ISolid, IStyleCollection>;
|
|
16
|
+
export declare const GRADIENT_STOP: TypedObject<IFill.GradientStopProperties, IFill.IGradientStop, IStyleCollection>;
|
|
17
|
+
export declare const GRADIENT_STOPS: TypedObject<(IFill.GradientStopProperties | IColor.Serializable)[], (IFill.IGradientStop | IColor.Serializable)[], IStyleCollection>;
|
|
18
|
+
export declare const FILL_GRADIENT: TypedObject<IFill.GradientProperties, IFill.IGradient, IStyleCollection>;
|
|
19
|
+
export declare const FILL_PATTERN: TypedObject<IFill.PatternProperties, IFill.IPattern, IStyleCollection>;
|
|
20
|
+
export declare const FILL: TypedObject<IFill.Properties | IFill.SolidProperties | IFill.GradientProperties | IFill.PatternProperties | IFill.NoneProperties, IFill.ISolid | IFill.IGradient | IFill.IPattern | IFill.INone, IStyleCollection>;
|
|
21
|
+
export declare const CELL_STYLE: TypedObject<IStyle.Properties, IStyle, IStyleCollection>;
|
|
22
|
+
/**
|
|
23
|
+
* The APPLY-direction cell style. Shares {@link CELL_STYLE}'s property tree but adds a `shorthand`
|
|
24
|
+
* that expands a `named` update: applying a named style covers the categories its definition
|
|
25
|
+
* declares (the definition's keys are the implicit 'style includes' mask - Excel's Style dialog
|
|
26
|
+
* checkboxes / OOXML apply flags), so the update gains explicit `null` clears (clear-and-inherit)
|
|
27
|
+
* for each covered category it doesn't itself set. The generic machinery does the rest (tombstone
|
|
28
|
+
* templates, splits, intersect merges); direct formatting the style does NOT cover cascades through.
|
|
29
|
+
*
|
|
30
|
+
* Deliberately a SEPARATE type from {@link CELL_STYLE}: the same property tree also powers the
|
|
31
|
+
* read-direction cascade (see SheetCell.getPropertiesAt), where the direct layer - which carries
|
|
32
|
+
* the `named` reference - merges OVER the named style's resolved base; expanding there would clear
|
|
33
|
+
* the very values being inherited.
|
|
34
|
+
*
|
|
35
|
+
* * `named: null` clears only the reference.
|
|
36
|
+
* * `Normal` covers every category (the reset style).
|
|
37
|
+
* * An {@link IStyle.INamed} value is normalized to its name (resolver-level `INamed` support).
|
|
38
|
+
*/
|
|
39
|
+
export declare const CELL_STYLE_APPLY: TypedObject<IStyle.Properties, IStyle, IStyleCollection>;
|
|
40
|
+
export declare const NAMED_CELL_STYLE: TypedObject<IStyle.NamedProperties, IStyle.INamed, IStyleCollection>;
|
|
41
|
+
//# sourceMappingURL=_Resolvers.d.ts.map
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { IRange } from '@sheetxl/primitives';
|
|
2
|
+
import { ITypes } from '../../type';
|
|
3
|
+
import { ICellHeader } from '../../cell';
|
|
4
|
+
import { IStyle } from '../../style';
|
|
5
|
+
import { IBorder } from '../../border';
|
|
6
|
+
import { ISpatialMap } from '../../collections';
|
|
7
|
+
/**
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export declare function isEqualStrokeProperties(a: IBorder.StrokeProperties | undefined, b: IBorder.StrokeProperties | undefined): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Splits a border range into a new range with adjusted border properties.
|
|
13
|
+
*
|
|
14
|
+
* @param border The original border properties.
|
|
15
|
+
* @param rangeFrom The original range coordinates.
|
|
16
|
+
* @param rangeTo The new range coordinates.
|
|
17
|
+
* @param isColumn Whether the split is for a column (true) or a row (false).
|
|
18
|
+
* @returns The adjusted border properties for the new range, or null if no borders remain.
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
* Edges are tested with `!== undefined` (not truthiness) on purpose: an update template's border may
|
|
22
|
+
* carry explicit `null` clears (see SheetDirectStyle update form), and those must localize to the
|
|
23
|
+
* same pieces a real stroke would.
|
|
24
|
+
*/
|
|
25
|
+
export declare function splitBorderRange(border: IBorder.Properties, rangeFrom: IRange.Coords, rangeTo: IRange.Coords, isColumn: boolean): Partial<IBorder.Properties> | null | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Takes a range with a border and breaks it into range parts that can be used without
|
|
28
|
+
* any coordinates.
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* * This allows for each cell style to know how to render it's borders without dereferencing from a range.
|
|
32
|
+
* * This was designed for Excel export compatibility.
|
|
33
|
+
* * We don't use in internally as we want the original 'border' intent to be maintained for
|
|
34
|
+
* easy .toJSON and AI inference.
|
|
35
|
+
* * A range that reaches the grid's terminal row/column (Excel's `<col style>` reads back as a
|
|
36
|
+
* full-height range) has no closing border at the boundary, so no end sliver is split off
|
|
37
|
+
* there — a style-only piece at the last row/column materializes real `<c>` records and
|
|
38
|
+
* Excel treats the whole grid as the used range.
|
|
39
|
+
*/
|
|
40
|
+
export declare function splitStyleBordersIntoSame(coords: IRange.Coords, json: IStyle.JSON, entireCoords?: IRange.Coords): IRange.JSONReferenceTuple<IStyle.JSON>[];
|
|
41
|
+
export interface StyleRangesJSON {
|
|
42
|
+
cols: ITypes.RunCoordValue<ICellHeader.JSON>[];
|
|
43
|
+
rows: ITypes.RunCoordValue<ICellHeader.JSON>[];
|
|
44
|
+
cells: [coords: IRange.Coords, styleId: number][];
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Creates style header from ranges styles.
|
|
48
|
+
*
|
|
49
|
+
* @remarks
|
|
50
|
+
* This is used to create an Excel compatible style header from ranged styles.
|
|
51
|
+
*
|
|
52
|
+
* This algo works by.
|
|
53
|
+
*
|
|
54
|
+
* 1. Identifying the total style count for rows and columns if > than 50% then it converts
|
|
55
|
+
* the styles into a style header.
|
|
56
|
+
* 2. If then uses overlap CellRangeIterator to find any intersections.
|
|
57
|
+
*/
|
|
58
|
+
export declare function promoteStylesToHeaders(styles: StyleRangesJSON, entireCoords: IRange.Coords): StyleRangesJSON;
|
|
59
|
+
/**
|
|
60
|
+
* Performs a shift but uses the entire range to ensure edge styles.
|
|
61
|
+
*
|
|
62
|
+
* @param options
|
|
63
|
+
* @param entireRange
|
|
64
|
+
*
|
|
65
|
+
* @remarks
|
|
66
|
+
* Returns an entry but requires the value be set/cloned.
|
|
67
|
+
*/
|
|
68
|
+
export declare function getEdgeAwareShifted<T = any>(options: ISpatialMap.ShiftDetails<T>, entireRange?: IRange.Coords): ISpatialMap.Entry<T> | null;
|
|
69
|
+
//# sourceMappingURL=_StyleUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { IRange } from '@sheetxl/primitives';
|
|
2
|
+
import { RunCoords } from '@sheetxl/utils';
|
|
3
|
+
import { ITypes } from '../type';
|
|
4
|
+
import { ITransaction } from '../transaction';
|
|
5
|
+
import { IListener } from '../listener';
|
|
6
|
+
import { ICellHeader } from '../cell';
|
|
7
|
+
import { ICellHeaderRange, ICellHeaderRanges } from '../cellRange';
|
|
8
|
+
import { ISheet } from '../sheet';
|
|
9
|
+
/**
|
|
10
|
+
* Provides a programmatic interface for interacting with and modifying entire rows or columns in a spreadsheet,
|
|
11
|
+
* allowing for actions such as inserting, deleting, resizing, and applying formatting changes.
|
|
12
|
+
*/
|
|
13
|
+
export interface ISheetHeader extends ITransaction.ITransactional, IListener.ISource<ISheetHeader> {
|
|
14
|
+
/**
|
|
15
|
+
* Returns the header at a given offset. Will only return null for invalid header offset. To get a list of headers use {@link getRange}.
|
|
16
|
+
*
|
|
17
|
+
* @param index 0-based absolute index.
|
|
18
|
+
*/
|
|
19
|
+
at(index: number): ICellHeader;
|
|
20
|
+
/**
|
|
21
|
+
* Returns a displayable title for the given index.
|
|
22
|
+
*
|
|
23
|
+
* @param index 0-based absolute index.
|
|
24
|
+
*/
|
|
25
|
+
getTextAt(index: number): string;
|
|
26
|
+
/**
|
|
27
|
+
* Returns a range of cells for the specified range.
|
|
28
|
+
*
|
|
29
|
+
* @param address The address or addresses of the header range to retrieve.
|
|
30
|
+
* @param options Options for retrieving the header ranges.
|
|
31
|
+
* @see
|
|
32
|
+
* {@link ICellHeaderRange}
|
|
33
|
+
*/
|
|
34
|
+
getRange(address: ICellHeaderRange.Address, options?: ICellHeaderRange.GetRangeOptions): ICellHeaderRange;
|
|
35
|
+
/**
|
|
36
|
+
* Returns a collection of header ranges for the specified ranges.
|
|
37
|
+
*
|
|
38
|
+
* @param address The address or addresses of the header ranges to retrieve.
|
|
39
|
+
* @param options Options for retrieving the header ranges.
|
|
40
|
+
*/
|
|
41
|
+
getRanges(address: ICellHeaderRanges.Address, options?: ICellHeaderRange.GetRangeOptions): ICellHeaderRanges;
|
|
42
|
+
/**
|
|
43
|
+
* Returns the active header range that is used in the selection.
|
|
44
|
+
*/
|
|
45
|
+
getSelectedRange(options?: ICellHeaderRange.GetRangeOptions): ICellHeaderRange;
|
|
46
|
+
/**
|
|
47
|
+
* Returns the active header ranges that are used in the selection.
|
|
48
|
+
*/
|
|
49
|
+
getSelectedRanges(options?: ICellHeaderRange.GetRangeOptions): ICellHeaderRanges;
|
|
50
|
+
/**
|
|
51
|
+
* Returns the data ranges for headers that contain information.
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* * This is NOT the last cell that may have data or has been resized.
|
|
55
|
+
* * This also has nothing to do with the selection bounds.
|
|
56
|
+
* @see
|
|
57
|
+
* {@link ICellRange.getUsedRange}
|
|
58
|
+
*/
|
|
59
|
+
getUsedRange(options?: ICellHeaderRange.GetRangeOptions): ICellHeaderRange;
|
|
60
|
+
/**
|
|
61
|
+
* The entire range for the header.
|
|
62
|
+
*/
|
|
63
|
+
getEntireRange(options?: ICellHeaderRange.GetRangeOptions): ICellHeaderRange;
|
|
64
|
+
/**
|
|
65
|
+
* The axis the headers manage.
|
|
66
|
+
*/
|
|
67
|
+
getAxis(): IRange.Axis;
|
|
68
|
+
/**
|
|
69
|
+
* Returns a flag indicating if the headers are protected by the sheet.
|
|
70
|
+
*/
|
|
71
|
+
isProtected(): boolean;
|
|
72
|
+
/**
|
|
73
|
+
* All header sizes are returned in pixels. This is done
|
|
74
|
+
* by multiplying the scaleFactor by the size on the cellHeader.
|
|
75
|
+
*/
|
|
76
|
+
getScaleFactor(): number;
|
|
77
|
+
/**
|
|
78
|
+
* Returns the offset in pixels for the given header index.
|
|
79
|
+
* @param index 0-based absolute index.
|
|
80
|
+
*/
|
|
81
|
+
getOffset(index: number): number;
|
|
82
|
+
/**
|
|
83
|
+
* Returns the index for the given header offset in pixels.
|
|
84
|
+
* @param offset 0-based pixels.
|
|
85
|
+
*/
|
|
86
|
+
getIndex(offset: number): number;
|
|
87
|
+
/**
|
|
88
|
+
* Returns the visibleIndex for a given absolute index.
|
|
89
|
+
* * If it's hidden it will return a range of 1 with a value before the offset and after.
|
|
90
|
+
* * If it's visible then it will return a range of 0 with the min and max that exactly match the offset.
|
|
91
|
+
*
|
|
92
|
+
* @param index 0-based absolute index.
|
|
93
|
+
* @returns A {@link RunCoords} that can be used to determine if an index is hidden.
|
|
94
|
+
|
|
95
|
+
* @remarks
|
|
96
|
+
* If this is on the edge of the bounds this will return a +/- 1 the max bounds.
|
|
97
|
+
*/
|
|
98
|
+
getVisibleIndex(index: number): Readonly<RunCoords>;
|
|
99
|
+
/**
|
|
100
|
+
* Returns the number of indices visible. Between to indices.
|
|
101
|
+
* @param indexFrom
|
|
102
|
+
* @param indexTo
|
|
103
|
+
*/
|
|
104
|
+
getVisibleCount(indexFrom: number, indexTo: number): number;
|
|
105
|
+
/**
|
|
106
|
+
* Returns the size of the header in pixels. If a second argument is passed it
|
|
107
|
+
* will be the size of all the headers within the range.
|
|
108
|
+
* Note - It is expected that indexFrom will always be less than or equal to indexTo
|
|
109
|
+
*/
|
|
110
|
+
getSpanSize(indexFrom: number, indexTo?: number): number;
|
|
111
|
+
/**
|
|
112
|
+
* The default header size if not adjusted.
|
|
113
|
+
*/
|
|
114
|
+
getDefaultSize(): number;
|
|
115
|
+
/**
|
|
116
|
+
* The default header size in native units.
|
|
117
|
+
*/
|
|
118
|
+
getDefaultSizeNative(): number;
|
|
119
|
+
/**
|
|
120
|
+
* The maximum size of the header in native units.
|
|
121
|
+
*/
|
|
122
|
+
getMaxSize(): number;
|
|
123
|
+
/**
|
|
124
|
+
* The minimum size of the header in native units.
|
|
125
|
+
*/
|
|
126
|
+
getMinSize(): number;
|
|
127
|
+
/**
|
|
128
|
+
* This is a very specific optimization function. When
|
|
129
|
+
* hiding many headers instead of scanning we can just skip.
|
|
130
|
+
* If `0` is returned then there are no hidden headers immediately
|
|
131
|
+
* following this one. If `1` is returned then only this header is hidden.
|
|
132
|
+
*
|
|
133
|
+
* @param index The location to start the search.
|
|
134
|
+
* @param reverse Indicates if search should scan in reverse. defaults to `false`.
|
|
135
|
+
* @returns The number of headers following the index.
|
|
136
|
+
*/
|
|
137
|
+
hiddenHeadersAt(index: number, reverse?: boolean): number;
|
|
138
|
+
/**
|
|
139
|
+
* Returns true if any of the headers have the isHidden flag set to true or if any sizes are 0.
|
|
140
|
+
*/
|
|
141
|
+
hasHidden(): boolean;
|
|
142
|
+
/**
|
|
143
|
+
* Returns true if header has a max selection at the given index.
|
|
144
|
+
*/
|
|
145
|
+
isSelectedAll(index: number): boolean;
|
|
146
|
+
/**
|
|
147
|
+
* Returns true if header has a selection at the given index.
|
|
148
|
+
*/
|
|
149
|
+
isSelected(index: number): boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Returns the selected headers as contiguous runs; each run's `value` is `isSelectedAll` (whether
|
|
152
|
+
* that span is an entire-row/column selection).
|
|
153
|
+
*
|
|
154
|
+
* @see {@link IRangeSelection.getSelectedRuns} — the projection this reflects for the primary selection.
|
|
155
|
+
*/
|
|
156
|
+
getSelectedRuns(): readonly ITypes.RunCoordValue<boolean>[];
|
|
157
|
+
/**
|
|
158
|
+
* Sets the headers. This supports setting values as a batch.
|
|
159
|
+
*
|
|
160
|
+
* @remarks
|
|
161
|
+
* When setting headers the cells references by this sheet will not update.
|
|
162
|
+
* To ensure they are updated on the sheet call updateHeaderPairs with the range from the header.
|
|
163
|
+
*/
|
|
164
|
+
updateHeaderPairs(pairs: ICellHeaderRange.AddressUpdatePair[], options?: ICellHeaderRange.UpdateHeadersOptions): RunCoords[] | null;
|
|
165
|
+
/**
|
|
166
|
+
* Returns the sheet model used for the header.
|
|
167
|
+
*/
|
|
168
|
+
getSheet(): ISheet;
|
|
169
|
+
/**
|
|
170
|
+
* Save the header state to a JSON object.
|
|
171
|
+
*
|
|
172
|
+
* @remarks
|
|
173
|
+
* Returns `null` if there is nothing to persist.
|
|
174
|
+
*/
|
|
175
|
+
toJSON(): ISheetHeader.JSON | null;
|
|
176
|
+
/**
|
|
177
|
+
* Add Listeners.
|
|
178
|
+
*
|
|
179
|
+
* @see
|
|
180
|
+
* {@link IListener.ISource.addListeners}
|
|
181
|
+
*/
|
|
182
|
+
addListeners(listeners: ISheetHeader.IListeners, options?: IListener.Options): IListener.Remove;
|
|
183
|
+
close(): void;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* {@inheritDoc ISheetHeader}
|
|
187
|
+
* @see
|
|
188
|
+
* ### **Interface**
|
|
189
|
+
*
|
|
190
|
+
* {@link ISheetHeader}
|
|
191
|
+
*/
|
|
192
|
+
export declare namespace ISheetHeader {
|
|
193
|
+
/**
|
|
194
|
+
* Headers as runs, each addressed as an entire column or row (`'E:H'`, `'5:12'`).
|
|
195
|
+
*
|
|
196
|
+
* @remarks
|
|
197
|
+
* The address carries the orientation, so a row address is read by a column header collection
|
|
198
|
+
* and the reverse.
|
|
199
|
+
*/
|
|
200
|
+
interface JSON {
|
|
201
|
+
headers: IRange.JSONReference<ICellHeader.JSON>[];
|
|
202
|
+
defaultSize?: number;
|
|
203
|
+
}
|
|
204
|
+
interface Events {
|
|
205
|
+
/**
|
|
206
|
+
* Called when headers sizes have changed.
|
|
207
|
+
*/
|
|
208
|
+
onSizesChange?(source: ISheetHeader): void;
|
|
209
|
+
/**
|
|
210
|
+
* Called when headers visibility (hidden) has changed.
|
|
211
|
+
*/
|
|
212
|
+
onHiddenChange?(source: ISheetHeader): void;
|
|
213
|
+
}
|
|
214
|
+
interface IListeners extends IListener.Callbacks<ISheetHeader, ISheetHeader.Events> {
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
//# sourceMappingURL=ISheetHeader.d.ts.map
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { IRange } from '@sheetxl/primitives';
|
|
2
|
+
import { IStyleCollection } from '../style';
|
|
3
|
+
import { ITable } from '../table';
|
|
4
|
+
import { ICell, ICellHeader } from '../cell';
|
|
5
|
+
import { ISheetHeader } from './ISheetHeader';
|
|
6
|
+
import type * as _Utils from './_HeaderUtils';
|
|
7
|
+
export declare class SheetCellHeader implements ICellHeader {
|
|
8
|
+
protected _sheetHeader: ISheetHeader;
|
|
9
|
+
protected _index: number;
|
|
10
|
+
protected _headerState: _Utils.CellHeaderState | null | undefined;
|
|
11
|
+
protected _template: ICell.Modifiers | null | undefined;
|
|
12
|
+
private _cellTemplate;
|
|
13
|
+
private _getColumnAt;
|
|
14
|
+
constructor(index: number, sheetHeader: ISheetHeader, headerState: _Utils.CellHeaderState | null | undefined, template: ICell.Modifiers | null | undefined, getColumnAt: ((index: number) => ITable.IColumn | null) | undefined);
|
|
15
|
+
/** {@inheritDoc ICellHeader.getSize} */
|
|
16
|
+
getSize(): number;
|
|
17
|
+
/** {@inheritDoc ICellHeader.getText} */
|
|
18
|
+
getText(): string;
|
|
19
|
+
/** {@inheritDoc ICellHeader.getAxis} */
|
|
20
|
+
getAxis(): IRange.Axis;
|
|
21
|
+
/** {@inheritDoc ICellHeader.isHidden} */
|
|
22
|
+
isHidden(): boolean;
|
|
23
|
+
/** {@inheritDoc ICellHeader.isCustomSize} */
|
|
24
|
+
isCustomSize(): boolean;
|
|
25
|
+
/** {@inheritDoc ICellHeader.getSheetHeader} */
|
|
26
|
+
getSheetHeader(): ISheetHeader;
|
|
27
|
+
/** {@inheritDoc ICell.getColumn} */
|
|
28
|
+
getColumn(): ITable.IColumn | null;
|
|
29
|
+
/** {@inheritDoc ICellHeader.asCell} */
|
|
30
|
+
asCell(): ICell;
|
|
31
|
+
/** {@inheritDoc ICellHeader.getSizeRelative} */
|
|
32
|
+
getSizeRelative(): number;
|
|
33
|
+
/** {@inheritDoc ICellHeader.createCellHeader} */
|
|
34
|
+
createCellHeader(update: ICellHeader.Modifiers): ICellHeader;
|
|
35
|
+
/** {@inheritDoc ICellHeader.isEqual} */
|
|
36
|
+
isEqual(other: ICellHeader): boolean;
|
|
37
|
+
/** {@inheritDoc ICellHeader.isEmpty} */
|
|
38
|
+
isEmpty(): boolean;
|
|
39
|
+
get [Symbol.toStringTag](): string;
|
|
40
|
+
toString(): string;
|
|
41
|
+
/** {@inheritDoc ICellHeader.isICellHeader} */
|
|
42
|
+
get isICellHeader(): true;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Callback for creating custom headers.
|
|
46
|
+
* Note - Not currently used. Formalize and make public or remove.
|
|
47
|
+
* @internal
|
|
48
|
+
*/
|
|
49
|
+
export interface CreateCellHeaderCallback {
|
|
50
|
+
(index: number, headers: ISheetHeader, hs: _Utils.CellHeaderState | null | undefined, template?: ICell.Modifiers | null): ICellHeader;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Note - Unlike SheetCell.resolveCellModifiers this does not return a ICellHeader.Modifiers.
|
|
54
|
+
*
|
|
55
|
+
* It returns a partial State with only the changed values (or null for clear).
|
|
56
|
+
* This is due to refactoring. Rationalize later.
|
|
57
|
+
*
|
|
58
|
+
* @internal
|
|
59
|
+
*/
|
|
60
|
+
export declare function resolveCellHeaderModifiers(sheetHeader: ISheetHeader, styles: IStyleCollection, prevHs: _Utils.CellHeaderState | null | undefined, update: ICellHeader.Update | undefined): _Utils.CellHeaderState | null | undefined;
|
|
61
|
+
//# sourceMappingURL=SheetCellHeader.d.ts.map
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { IRange } from '@sheetxl/primitives';
|
|
2
|
+
import { RunCoords } from '@sheetxl/utils';
|
|
3
|
+
import { ITransaction } from '../transaction';
|
|
4
|
+
import { ICellHeader } from '../cell';
|
|
5
|
+
import { ICellHeaderRange } from '../cellRange';
|
|
6
|
+
import { CreateCellHeaderCallback } from './SheetCellHeader';
|
|
7
|
+
import { SheetHeader } from './SheetHeader';
|
|
8
|
+
export declare class SheetCellHeaderRange implements ICellHeaderRange {
|
|
9
|
+
protected _header: any;
|
|
10
|
+
protected _coords: RunCoords;
|
|
11
|
+
constructor(header: SheetHeader, coords: RunCoords);
|
|
12
|
+
protected _forEachSpan<T = any>(callback: ICellHeaderRange.ForEachSpanCallback<T>, optionsVisitor?: ICellHeaderRange.IteratorOptions, createCellHeader?: CreateCellHeaderCallback): T | void;
|
|
13
|
+
/** {@inheritDoc ICellHeaderRange.forEachSpan} */
|
|
14
|
+
forEachSpan<T = any>(callback: ICellHeaderRange.ForEachSpanCallback<T>, options?: ICellHeaderRange.IteratorOptions): T | void;
|
|
15
|
+
/** {@inheritDoc ICellHeaderRange.forEach} */
|
|
16
|
+
forEach<T>(callback: ICellHeaderRange.ForEachCallback<T>, options?: ICellHeaderRange.IteratorOptions): T | void;
|
|
17
|
+
/** {@inheritDoc ICellHeaderRange.updateHeaders} */
|
|
18
|
+
updateHeaders(update: ICellHeader.Update, options?: ICellHeaderRange.UpdateHeadersOptions): this;
|
|
19
|
+
/** {@inheritDoc ICellHeaderRange.getCoords} */
|
|
20
|
+
getCoords(): RunCoords;
|
|
21
|
+
/** {@inheritDoc ICellHeaderRange.getUsedRange} */
|
|
22
|
+
getUsedRange(options?: ICellHeaderRange.GetRangeOptions): this;
|
|
23
|
+
/** {@inheritDoc ICellHeaderRange.getCount} */
|
|
24
|
+
getCount(): number;
|
|
25
|
+
/** {@inheritDoc ICellHeaderRange.getHeaderCount} */
|
|
26
|
+
getHeaderCount(): number;
|
|
27
|
+
/** {@inheritDoc ICellHeaderRange.getVisibleCount} */
|
|
28
|
+
getVisibleCount(): number;
|
|
29
|
+
/** {@inheritDoc ICellHeaderRange.isEntireHeaders} */
|
|
30
|
+
isEntireHeaders(): boolean;
|
|
31
|
+
/** {@inheritDoc ICellHeaderRange.getSnapshot} */
|
|
32
|
+
getSnapshot(options?: ICellHeaderRange.CopyOptions): ICellHeaderRange.ISnapshot;
|
|
33
|
+
/** {@inheritDoc ICellHeaderRange.setSize} */
|
|
34
|
+
setSize(size?: number | string, options?: ICellHeaderRange.SetSizeOptions): this;
|
|
35
|
+
/** {@inheritDoc ICellHeaderRange.setHidden} */
|
|
36
|
+
setHidden(hidden?: boolean, options?: ICellHeaderRange.UpdateHeadersOptions): this;
|
|
37
|
+
/** {@inheritDoc ICellHeaderRange.clear} */
|
|
38
|
+
clear(): this;
|
|
39
|
+
/** {@inheritDoc ICellHeaderRange.at} */
|
|
40
|
+
at(index: number): ICellHeader;
|
|
41
|
+
/** {@inheritDoc ICellHeaderRange.getAxis} */
|
|
42
|
+
getAxis(): IRange.Axis;
|
|
43
|
+
/** {@inheritDoc ICellHeaderRange.doBatch} */
|
|
44
|
+
doBatch<R>(callback: (commit: ITransaction.ICommit) => R | Promise<R>, options?: string | ICellHeaderRange.UpdateHeadersOptions): R | Promise<R>;
|
|
45
|
+
/** {@inheritDoc ICellHeaderRange.getSheetHeader} */
|
|
46
|
+
getSheetHeader<S>(): S;
|
|
47
|
+
/** {@inheritDoc ICellHeaderRange.getAddress} */
|
|
48
|
+
getAddress(r1c1?: boolean): string;
|
|
49
|
+
get [Symbol.toStringTag](): string;
|
|
50
|
+
toString(): string;
|
|
51
|
+
/** {@inheritDoc ICellHeaderRange.isICellHeaderRange} */
|
|
52
|
+
get isICellHeaderRange(): true;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=SheetCellHeaderRange.d.ts.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { IRange } from '@sheetxl/primitives';
|
|
2
|
+
import { RunCoords } from '@sheetxl/utils';
|
|
3
|
+
import { ITransaction } from '../transaction';
|
|
4
|
+
import { ICellHeader } from '../cell';
|
|
5
|
+
import { ICellHeaderRange, ICellHeaderRanges } from '../cellRange';
|
|
6
|
+
import { SheetHeader } from './SheetHeader';
|
|
7
|
+
export declare class SheetCellHeaderRanges implements ICellHeaderRanges {
|
|
8
|
+
protected _header: any;
|
|
9
|
+
protected _coords: RunCoords[];
|
|
10
|
+
constructor(header: SheetHeader, coords: RunCoords[]);
|
|
11
|
+
/** {@inheritDoc ICellHeaderRanges.updateHeaders} */
|
|
12
|
+
updateHeaders(update: ICellHeader.Update, options?: ICellHeaderRange.UpdateHeadersOptions): this;
|
|
13
|
+
/** {@inheritDoc ICellHeaderRanges.getCoords} */
|
|
14
|
+
getCoords(): RunCoords[];
|
|
15
|
+
/** {@inheritDoc ICellHeaderRanges.setHidden} */
|
|
16
|
+
setHidden(hidden: boolean, options?: ICellHeaderRange.UpdateHeadersOptions): this;
|
|
17
|
+
/** {@inheritDoc ICellHeaderRanges.setSize} */
|
|
18
|
+
setSize(size: number | string, options?: ICellHeaderRange.SetSizeOptions): this;
|
|
19
|
+
/** {@inheritDoc ICellHeaderRanges.getCount} */
|
|
20
|
+
getCount(): number;
|
|
21
|
+
/** {@inheritDoc ICellHeaderRanges.getHeaderCount} */
|
|
22
|
+
getHeaderCount(): number;
|
|
23
|
+
/** {@inheritDoc ICellHeaderRanges.getVisibleCount} */
|
|
24
|
+
getVisibleCount(): number;
|
|
25
|
+
/** {@inheritDoc ICellHeaderRanges.isEntireHeaders} */
|
|
26
|
+
isEntireHeaders(): boolean;
|
|
27
|
+
/** {@inheritDoc ICellHeaderRanges.isEntireHeaders} */
|
|
28
|
+
isEntireHeadersAny(): boolean;
|
|
29
|
+
/** {@inheritDoc ICellHeaderRanges.clear} */
|
|
30
|
+
clear(): this;
|
|
31
|
+
/** {@inheritDoc ICellHeaderRanges.at} */
|
|
32
|
+
at(index: number): ICellHeaderRange;
|
|
33
|
+
/** {@inheritDoc ICellHeaderRanges.getAxis} */
|
|
34
|
+
getAxis(): IRange.Axis;
|
|
35
|
+
/** {@inheritDoc ICellHeaderRanges.doBatch} */
|
|
36
|
+
doBatch<R>(callback: (commit: ITransaction.ICommit) => R | Promise<R>, options?: string | ICellHeaderRange.UpdateHeadersOptions): R | Promise<R>;
|
|
37
|
+
/** {@inheritDoc ICellHeaderRanges.getSheetHeader} */
|
|
38
|
+
getSheetHeader<S>(): S;
|
|
39
|
+
/** {@inheritDoc ICellHeaderRanges.getAddress} */
|
|
40
|
+
getAddress(r1c1?: boolean): string;
|
|
41
|
+
get [Symbol.toStringTag](): string;
|
|
42
|
+
toString(): string;
|
|
43
|
+
/** {@inheritDoc ICellHeaderRanges.isICellHeaderRanges} */
|
|
44
|
+
get isICellHeaderRanges(): true;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=SheetCellHeaderRanges.d.ts.map
|