@sheetxl/sdk 0.8.0-beta.1 → 0.8.0-beta.10
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 +1 -1
- package/browser/esm/{B0HS42a7lga1k1U_.mjs → BEAY9XgKNx-bakXW.mjs} +2 -2
- package/browser/esm/BbSmt62FpFIpoVzu.mjs +392 -0
- package/browser/esm/BcHmrKHwMMOlzc9_.mjs +357 -0
- package/browser/esm/BgcZ-CoTbMfmyDJL.mjs +412 -0
- package/browser/esm/Bk7xxbdDpa7-sIwd.mjs +7 -0
- package/browser/esm/BqskM7wA8oPfFQue.mjs +20 -0
- package/browser/esm/Btg43M1Bf-ENDreu.mjs +540 -0
- package/browser/esm/BzLfNyc6OOShIErH.mjs +598 -0
- package/browser/esm/C9B0djuUarfNdoj0.mjs +466 -0
- package/browser/esm/{uyWBMSIxMlt8n5Z3.mjs → CSx9ed1JOs7K5BXO.mjs} +2 -2
- package/browser/esm/CYyv6uGjo10ig5FP.mjs +142 -0
- package/browser/esm/CZ5oa92wZEAXebgk.mjs +622 -0
- package/browser/esm/CdLZWVcH8cncBUPJ.mjs +849 -0
- package/browser/esm/Cgd5BnM3hg9RyUel.mjs +171 -0
- package/browser/esm/CjsUGJEQSbGjnH6R.mjs +1001 -0
- package/browser/esm/ClB5ix51roQOpZEr.mjs +7402 -0
- package/browser/esm/{DlPMeIyxT9tG_WDk.mjs → Cqr3knDsBvoVZ6MN.mjs} +179 -202
- package/browser/esm/D4uVlrG0xEFctsSM.mjs +905 -0
- package/browser/esm/DOMHmhYzPcLVcpAW.mjs +7 -0
- package/browser/esm/DUvUK61b2_4pf4tG.mjs +484 -0
- package/browser/esm/De175LygU7ot4nQm.mjs +441 -0
- package/browser/esm/DhKkrCVASZ6Isvz6.mjs +527 -0
- package/browser/esm/Di58Ji1n--3Mgc_2.mjs +607 -0
- package/browser/esm/Dtoyt8q5RyGAlxCp.mjs +1141 -0
- package/browser/esm/Y79I7Sm8kjaYexhf.mjs +167 -0
- package/browser/esm/index.mjs +1472 -1023
- package/browser/esm/o8MFgcVXns987D6_.mjs +400 -0
- package/browser/esm/zqJOaweiXE9D8RY1.mjs +66681 -0
- package/licenses/dependencies.txt +209 -209
- package/node/esm/B6D7sSetrcOWLsKj.mjs +1135 -0
- package/node/esm/B9ljpEIZg6wOTzRE.mjs +142 -0
- package/node/esm/BH1v-E4Ro3bR7Znw.mjs +962 -0
- package/node/esm/BN9j8V9gCExMjVtJ.mjs +540 -0
- package/node/esm/{Cku7XiUvw1xrRasi.mjs → Bh4dv6tMjXX3X4nI.mjs} +1 -1
- package/node/esm/Bqd62L8KFgdS0Vou.mjs +7 -0
- package/node/esm/Bsx9uijd4X_SKV3L.mjs +360 -0
- package/node/esm/BtuY37FumvLE7EBo.mjs +629 -0
- package/node/esm/C6ZXsNyLXI6zA63X.mjs +402 -0
- package/node/esm/CCouEwT37f08qO3V.mjs +7 -0
- package/node/esm/CD9wbvufChVYYkrI.mjs +451 -0
- package/node/esm/CImNvdz1iP-lUlro.mjs +610 -0
- package/node/esm/CT0CN82y0_Qgoryk.mjs +7568 -0
- package/node/esm/CUQi5ZtMO02nhG0W.mjs +596 -0
- package/node/esm/CUUoseJmFsCf82bb.mjs +28 -0
- package/node/esm/CnSQ7MTXAUAyBOoS.mjs +911 -0
- package/node/esm/D7MfcID2Wf6l6VpC.mjs +171 -0
- package/node/esm/DCplLG93GfTs1vNw.mjs +1860 -0
- package/node/esm/DHUADiCmxNQS1ARz.mjs +417 -0
- package/node/esm/DMD12JUh7HJw2-jl.mjs +638 -0
- package/node/esm/DdFgXl-Ux2cMBTs_.mjs +15 -0
- package/node/esm/DefYISWfdZJFx57m.mjs +255 -0
- package/node/esm/Ds0d8zXzmgOu3MGx.mjs +403 -0
- package/node/esm/MiU4rDOiocmJ-9Ry.mjs +1783 -0
- package/node/esm/index.mjs +51616 -39665
- package/package.json +15 -16
- package/resources/contents.json +64 -0
- package/resources/fonts/arial-bold-italic.metrics.json +139 -0
- package/resources/fonts/arial-bold.metrics.json +139 -0
- package/resources/fonts/arial-italic.metrics.json +139 -0
- package/resources/fonts/arial-regular.metrics.json +139 -0
- package/resources/fonts/calibri-bold-italic.metrics.json +137 -0
- package/resources/fonts/calibri-bold.metrics.json +137 -0
- package/resources/fonts/calibri-italic.metrics.json +137 -0
- package/resources/fonts/calibri-regular.metrics.json +137 -0
- package/resources/fonts/cambria-bold-italic.metrics.json +66 -0
- package/resources/fonts/cambria-bold.metrics.json +66 -0
- package/resources/fonts/cambria-italic.metrics.json +66 -0
- package/resources/fonts/cambria-regular.metrics.json +66 -0
- package/resources/fonts/contents.json +126 -0
- package/resources/fonts/courier-new-bold-italic.metrics.json +143 -0
- package/resources/fonts/courier-new-bold.metrics.json +143 -0
- package/resources/fonts/courier-new-italic.metrics.json +143 -0
- package/resources/fonts/courier-new-regular.metrics.json +143 -0
- package/resources/fonts/times-new-roman-bold-italic.metrics.json +141 -0
- package/resources/fonts/times-new-roman-bold.metrics.json +141 -0
- package/resources/fonts/times-new-roman-italic.metrics.json +143 -0
- package/resources/fonts/times-new-roman-regular.metrics.json +141 -0
- package/resources/locales/de/model.msg.json +112 -12
- package/resources/locales/en/model.msg.json +119 -13
- package/types/scripting-api.json +8048 -0
- package/types/scripting-enums.json +277 -110
- package/types/scripting.d.ts +13077 -3224
- package/types/src/anchored/AbstractAnchored.d.ts +18 -8
- package/types/src/anchored/AnchoredMap.d.ts +2 -0
- package/types/src/anchored/IAnchoredMap.d.ts +52 -4
- package/types/src/autoFill/AutoFill.d.ts +316 -32
- package/types/src/autoFill/IAutoFill.d.ts +232 -15
- package/types/src/border/{IBorder.d.ts → IBorders.d.ts} +42 -41
- package/types/src/border/index.d.ts +1 -1
- package/types/src/calculation/Calculation.d.ts +754 -49
- package/types/src/calculation/ExternalBookBindings.d.ts +118 -0
- package/types/src/calculation/FormulaText.d.ts +82 -0
- package/types/src/calculation/ICalculation.d.ts +318 -81
- package/types/src/calculation/INamedFormulasCollection.d.ts +5 -8
- package/types/src/calculation/NamedFormulaCollection.d.ts +139 -107
- package/types/src/calculation/NamedLambdaFunction.d.ts +28 -0
- package/types/src/calculation/TokenType.d.ts +9 -0
- package/types/src/calculation/Types.d.ts +83 -2
- package/types/src/calculation/_CloneBoundary.d.ts +80 -0
- package/types/src/calculation/_TableRename.d.ts +13 -0
- package/types/src/calculation/compiler/ASTTypes.d.ts +71 -0
- package/types/src/calculation/compiler/CompilerUtils.d.ts +135 -44
- package/types/src/calculation/compiler/FormulaCompiler.d.ts +29 -4
- package/types/src/calculation/compiler/FormulaParser.d.ts +1 -2
- package/types/src/calculation/compiler/LiteTransform.d.ts +17 -0
- package/types/src/calculation/compiler/ParserUtils.d.ts +26 -1
- package/types/src/calculation/compiler/SRParser.d.ts +2 -1
- package/types/src/calculation/compiler/Types.d.ts +79 -9
- package/types/src/calculation/executor/CalcExecutor.d.ts +312 -33
- package/types/src/calculation/executor/CalcExecutorUtils.d.ts +43 -2
- package/types/src/calculation/executor/CircularReference.d.ts +2 -0
- package/types/src/calculation/formula/Formula.d.ts +58 -21
- package/types/src/calculation/formula/FormulaBlock.d.ts +125 -23
- package/types/src/calculation/formula/FormulaRecordView.d.ts +79 -0
- package/types/src/calculation/formula/FunctionValues.d.ts +10 -0
- package/types/src/calculation/formula/IFormulaBlock.d.ts +261 -67
- package/types/src/calculation/formula/LambdaValue.d.ts +46 -23
- package/types/src/calculation/formula/LazyValue.d.ts +96 -0
- package/types/src/calculation/formula/TokenUtils.d.ts +25 -1
- package/types/src/calculation/formula/index.d.ts +1 -0
- package/types/src/calculation/functions/FunctionDeclarations.d.ts +31 -0
- package/types/src/calculation/functions/Operators.d.ts +8 -0
- package/types/src/calculation/functions/initializeFunctions.d.ts +15 -2
- package/types/src/calculation/grid/CalcGrid.d.ts +407 -158
- package/types/src/calculation/grid/CalcGridBackend.d.ts +493 -0
- package/types/src/calculation/grid/CalcGridProxy.d.ts +133 -0
- package/types/src/calculation/grid/CalcGridUtils.d.ts +62 -12
- package/types/src/calculation/grid/FormulaEntry.d.ts +129 -0
- package/types/src/calculation/grid/FormulaHost.d.ts +239 -0
- package/types/src/calculation/grid/ICalcGrid.d.ts +499 -141
- package/types/src/calculation/grid/_CalcRequest.d.ts +289 -0
- package/types/src/calculation/grid/index.d.ts +4 -0
- package/types/src/calculation/index.d.ts +2 -0
- package/types/src/calculation/spatial/ContentfulSpatialValue.d.ts +6 -2
- package/types/src/calculation/spatial/FormulaSpatialValue.d.ts +339 -11
- package/types/src/calculation/spatial/SpillEntry.d.ts +20 -5
- package/types/src/calculation/spatial/TouchedWindows.d.ts +86 -0
- package/types/src/calculation/spatial/index.d.ts +1 -0
- package/types/src/calculation/state/CalcInputs.d.ts +41 -0
- package/types/src/calculation/state/CalcNode.d.ts +141 -30
- package/types/src/calculation/state/CalcScope.d.ts +37 -0
- package/types/src/calculation/state/CalcState.d.ts +22 -1
- package/types/src/calculation/state/CalculationContext.d.ts +50 -3
- package/types/src/calculation/state/IContextContainer.d.ts +129 -27
- package/types/src/calculation/state/_PendingOverlayGrid.d.ts +163 -0
- package/types/src/calculation/state/_ReadObservedGrid.d.ts +74 -8
- package/types/src/calculation/state/index.d.ts +1 -0
- package/types/src/calculation/symbol/ExternalSheetSymbols.d.ts +80 -0
- package/types/src/calculation/symbol/ISymbolRegistry.d.ts +23 -0
- package/types/src/calculation/symbol/IndirectSymbolProvider.d.ts +16 -2
- package/types/src/calculation/symbol/SheetSymbolProvider.d.ts +63 -3
- package/types/src/calculation/symbol/SymbolRegistry.d.ts +20 -0
- package/types/src/calculation/symbol/index.d.ts +3 -2
- package/types/src/cell/ICell.d.ts +104 -29
- package/types/src/cell/ICellHeader.d.ts +24 -2
- package/types/src/cell/ICellProtection.d.ts +50 -10
- package/types/src/cellRange/ICellRange.d.ts +419 -79
- package/types/src/cellRange/ICellRanges.d.ts +23 -21
- package/types/src/chart/Chart.d.ts +41 -13
- package/types/src/chart/ChartCollection.d.ts +26 -0
- package/types/src/chart/IChart.d.ts +166 -12
- package/types/src/chart/IChartCollection.d.ts +25 -0
- package/types/src/chart/_ChartXml.d.ts +70 -0
- package/types/src/chart/index.d.ts +1 -3
- package/types/src/collections/ArraysGrid.d.ts +1 -1
- package/types/src/collections/IGrid.d.ts +1 -1
- package/types/src/collections/ISparseGrid.d.ts +9 -0
- package/types/src/collections/ISpatialMap.d.ts +59 -21
- package/types/src/collections/ImmutableList.d.ts +28 -0
- package/types/src/collections/MixedTypedArrayList.d.ts +168 -108
- package/types/src/collections/OverlappingRangeIterator.d.ts +13 -17
- package/types/src/collections/RepeatingList.d.ts +7 -0
- package/types/src/collections/ScalarGrid.d.ts +50 -0
- package/types/src/collections/SparseGrid.d.ts +1 -1
- package/types/src/collections/SpatialMap.d.ts +13 -21
- package/types/src/collections/Tuple.d.ts +128 -16
- package/types/src/collections/_GridUtils.d.ts +19 -6
- package/types/src/collections/_RangeSweep.d.ts +97 -0
- package/types/src/collections/_SpatialUtils.d.ts +20 -2
- package/types/src/collections/index.d.ts +1 -0
- package/types/src/color/_BuiltInIndexDefs.d.ts +6 -0
- package/types/src/comment/Comment.d.ts +223 -0
- package/types/src/comment/CommentCollection.d.ts +40 -0
- package/types/src/comment/IComment.d.ts +340 -50
- package/types/src/comment/ICommentCollection.d.ts +90 -0
- package/types/src/comment/NoteMovable.d.ts +26 -0
- package/types/src/comment/_CommentUtils.d.ts +50 -0
- package/types/src/comment/_NoteBox.d.ts +50 -0
- package/types/src/comment/index.d.ts +1 -0
- package/types/src/condition/AnchoredConditional.d.ts +82 -17
- package/types/src/condition/BuiltInOperators/AbstractOperator.d.ts +42 -12
- package/types/src/condition/BuiltInOperators/AfterEqualToOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/AfterOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/AndOperator.d.ts +3 -1
- package/types/src/condition/BuiltInOperators/AverageOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/BeforeEqualToOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/BeforeOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/BetweenOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/ColorOperator.d.ts +4 -0
- package/types/src/condition/BuiltInOperators/ContainsOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/EndsWithOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/EqualToOperator.d.ts +4 -1
- package/types/src/condition/BuiltInOperators/ExpressionOperator.d.ts +5 -6
- package/types/src/condition/BuiltInOperators/GreaterThanEqualToOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/GreaterThanOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/IconOperator.d.ts +4 -0
- package/types/src/condition/BuiltInOperators/InSetOperator.d.ts +22 -5
- package/types/src/condition/BuiltInOperators/LessThanEqualToOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/LessThanOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/NotOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/OrOperator.d.ts +3 -1
- package/types/src/condition/BuiltInOperators/StartsWithOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/TimePeriodOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/TopNOperator.d.ts +6 -0
- package/types/src/condition/BuiltinSelectors/BaseSelector.d.ts +21 -6
- package/types/src/condition/BuiltinSelectors/DateSelector.d.ts +4 -5
- package/types/src/condition/BuiltinSelectors/DisplaySelector.d.ts +20 -0
- package/types/src/condition/BuiltinSelectors/TextLengthSelector.d.ts +7 -5
- package/types/src/condition/BuiltinSelectors/TimeSelector.d.ts +3 -5
- package/types/src/condition/BuiltinSelectors/WholeSelector.d.ts +3 -5
- package/types/src/condition/BuiltinSelectors/index.d.ts +12 -6
- package/types/src/condition/Condition.d.ts +19 -1
- package/types/src/condition/ICondition.d.ts +293 -73
- package/types/src/condition/_ConditionFormula.d.ts +152 -0
- package/types/src/condition/_ConditionUtils.d.ts +167 -13
- package/types/src/conditionalFormat/ConditionalEntry.d.ts +3 -3
- package/types/src/conditionalFormat/ConditionalFormat.d.ts +25 -14
- package/types/src/conditionalFormat/ConditionalFormatCollection.d.ts +19 -8
- package/types/src/conditionalFormat/IConditionalFormat.d.ts +12 -10
- package/types/src/conditionalFormat/IConditionalFormatCollection.d.ts +2 -0
- package/types/src/dataValidation/DataValidation.d.ts +69 -3
- package/types/src/dataValidation/DataValidationCollection.d.ts +20 -9
- package/types/src/dataValidation/IDataValidation.d.ts +149 -30
- package/types/src/dataValidation/IDataValidationCollection.d.ts +10 -2
- package/types/src/date/DateUtils.d.ts +20 -0
- package/types/src/date/_DateUtils.d.ts +91 -7
- package/types/src/externalBook/ExternalBookCollection.d.ts +145 -12
- package/types/src/externalBook/ExternalBookName.d.ts +96 -0
- package/types/src/externalBook/IExternalBook.d.ts +170 -18
- package/types/src/externalBook/IExternalBookCollection.d.ts +79 -7
- package/types/src/externalBook/index.d.ts +1 -0
- package/types/src/{lib/file → file}/file.browser.d.ts +22 -8
- package/types/src/{lib/file → file}/file.node.d.ts +7 -2
- package/types/src/fill/IEffect.d.ts +5 -5
- package/types/src/fill/IFill.d.ts +123 -78
- package/types/src/fill/IStroke.d.ts +190 -64
- package/types/src/fill/RectAlignment.d.ts +20 -0
- package/types/src/fill/_Fills.d.ts +187 -0
- package/types/src/fill/_Stroke.d.ts +89 -0
- package/types/src/fill/index.d.ts +1 -0
- package/types/src/filter/IFilter.d.ts +188 -5
- package/types/src/font/AdvanceBuilder.d.ts +25 -0
- package/types/src/font/AdvanceTable.d.ts +114 -0
- package/types/src/font/FontCollection.d.ts +57 -0
- package/types/src/font/IFont.d.ts +17 -0
- package/types/src/font/IFontCollection.d.ts +120 -22
- package/types/src/font/TableFileAdvanceBuilder.d.ts +27 -0
- package/types/src/font/_BuiltinFontTables.d.ts +10 -0
- package/types/src/font/index.d.ts +4 -1
- package/types/src/group/Group.d.ts +136 -0
- package/types/src/group/GroupMovableCollection.d.ts +37 -0
- package/types/src/group/IGroup.d.ts +129 -0
- package/types/src/group/index.d.ts +2 -0
- package/types/src/history/IHistory.d.ts +3 -2
- package/types/src/hyperlink/IHyperlink.d.ts +13 -0
- package/types/src/hyperlink/_Hyperlink.d.ts +5 -1
- package/types/src/i18n/LanguagePack.d.ts +12 -4
- package/types/src/index.d.ts +5 -0
- package/types/src/io/AbstractBackingStore.d.ts +24 -1
- package/types/src/io/ArrayBackingStore.d.ts +1 -1
- package/types/src/io/EmbeddedPart.d.ts +20 -0
- package/types/src/io/IEmbeddedPart.d.ts +63 -0
- package/types/src/io/IWorkbookIO.d.ts +185 -18
- package/types/src/io/WorkbookIO.d.ts +9 -0
- package/types/src/io/WorkbookOrigin.d.ts +20 -11
- package/types/src/io/WorkbookOriginProvider.d.ts +46 -0
- package/types/src/io/_XmlFragment.d.ts +49 -0
- package/types/src/io/index.d.ts +1 -0
- package/types/src/license/LicenseDetails.d.ts +1 -0
- package/types/src/license/LicenseManager.d.ts +4 -1
- package/types/src/license/Types.d.ts +38 -0
- package/types/src/license/_Utils.d.ts +22 -0
- package/types/src/license/details.d.ts +24 -0
- package/types/src/license/license-key.d.ts +49 -2
- package/types/src/license/runtime.browser.d.ts +41 -0
- package/types/src/{lib/utils/utils.node.d.ts → license/runtime.node.d.ts} +9 -12
- package/types/src/listener/IListener.d.ts +12 -7
- package/types/src/listener/ListenerEmitter.d.ts +46 -5
- package/types/src/model/AbstractModel.d.ts +14 -5
- package/types/src/movable/AbstractMovableContent.d.ts +182 -0
- package/types/src/movable/CustomElement.d.ts +4 -5
- package/types/src/movable/ErrorContent.d.ts +49 -0
- package/types/src/movable/FormControl.d.ts +285 -0
- package/types/src/movable/GroupMember.d.ts +87 -0
- package/types/src/movable/ICustomElement.d.ts +7 -2
- package/types/src/movable/IErrorContent.d.ts +23 -0
- package/types/src/movable/IFormControl.d.ts +455 -0
- package/types/src/movable/IMovable.d.ts +378 -46
- package/types/src/movable/IMovableCollection.d.ts +63 -3
- package/types/src/movable/Movable.d.ts +149 -49
- package/types/src/movable/MovableCollection.d.ts +15 -8
- package/types/src/movable/MovableContentRegistry.d.ts +113 -0
- package/types/src/movable/_BuiltInContents.d.ts +14 -0
- package/types/src/movable/_ContentFactory.d.ts +35 -0
- package/types/src/movable/_DrawnBounds.d.ts +37 -0
- package/types/src/movable/_InsertableCollection.d.ts +28 -0
- package/types/src/movable/_MovableUtils.d.ts +5 -0
- package/types/src/movable/_PendingContent.d.ts +25 -0
- package/types/src/movable/_PlacementUtils.d.ts +55 -0
- package/types/src/movable/_RotatedFrame.d.ts +20 -0
- package/types/src/movable/index.d.ts +7 -1
- package/types/src/named/AbstractNamed.d.ts +1 -1
- package/types/src/named/INamed.d.ts +4 -1
- package/types/src/named/INamedCollection.d.ts +26 -0
- package/types/src/named/NamedCollection.d.ts +16 -15
- package/types/src/numFmt/BuiltInFormats.d.ts +20 -7
- package/types/src/numFmt/IFormatEngine.d.ts +2 -0
- package/types/src/numFmt/NumfmtFormatEngine.d.ts +2 -0
- package/types/src/numFmt/_FormatCell.d.ts +11 -2
- package/types/src/numFmt/_NumFmtUtils.d.ts +0 -1
- package/types/src/numFmt/vendor/numfmt/_sheetxl.d.ts +6 -0
- package/types/src/outline/IOutline.d.ts +186 -0
- package/types/src/outline/Outline.d.ts +157 -0
- package/types/src/outline/index.d.ts +2 -0
- package/types/src/person/IPerson.d.ts +99 -0
- package/types/src/person/IPersonCollection.d.ts +51 -0
- package/types/src/person/Person.d.ts +32 -0
- package/types/src/person/PersonCollection.d.ts +49 -0
- package/types/src/person/index.d.ts +4 -0
- package/types/src/picture/IPicture.d.ts +33 -3
- package/types/src/picture/Picture.d.ts +33 -13
- package/types/src/pivot/IPivotTable.d.ts +72 -0
- package/types/src/pivot/IPivotTableCollection.d.ts +25 -0
- package/types/src/pivot/PivotCache.d.ts +34 -0
- package/types/src/pivot/PivotTable.d.ts +61 -0
- package/types/src/pivot/PivotTableCollection.d.ts +25 -0
- package/types/src/pivot/_PivotXml.d.ts +24 -0
- package/types/src/pivot/index.d.ts +6 -0
- package/types/src/primitives/CompositeRangeStats.d.ts +2 -0
- package/types/src/primitives/Criteria.d.ts +1 -1
- package/types/src/primitives/Grouping.d.ts +65 -0
- package/types/src/primitives/LambdaBrand.d.ts +26 -0
- package/types/src/primitives/PrimitiveUtils.d.ts +56 -19
- package/types/src/primitives/Range.d.ts +133 -25
- package/types/src/primitives/RangeStats.d.ts +30 -2
- package/types/src/primitives/ReferenceRange.d.ts +44 -0
- package/types/src/primitives/Runtime.d.ts +15 -2
- package/types/src/primitives/environment.browser.d.ts +9 -0
- package/types/src/primitives/environment.node.d.ts +10 -0
- package/types/src/primitives/stats/AggregateStats.d.ts +49 -15
- package/types/src/primitives/stats/Cancellation.d.ts +13 -0
- package/types/src/primitives/stats/FrequencyStats.d.ts +10 -1
- package/types/src/primitives/stats/LookupIndex.d.ts +46 -0
- package/types/src/primitives/stats/Ranked.d.ts +1 -1
- package/types/src/primitives/stats/SortedNumbers.d.ts +4 -2
- package/types/src/primitives/stats/index.d.ts +1 -0
- package/types/src/print/IPrint.d.ts +0 -22
- package/types/src/protectedRange/IProtectedRange.d.ts +4 -0
- package/types/src/protectedRange/IProtectedRangeCollection.d.ts +2 -0
- package/types/src/protectedRange/ProtectedRange.d.ts +1 -4
- package/types/src/protectedRange/ProtectedRangeCollection.d.ts +19 -8
- package/types/src/protection/DefaultProtection.d.ts +12 -1
- package/types/src/protection/IProtection.d.ts +36 -2
- package/types/src/reference/ReferenceUtils.d.ts +80 -0
- package/types/src/reference/index.d.ts +2 -0
- package/types/src/resource/IResource.d.ts +21 -1
- package/types/src/resource/IResourceCollection.d.ts +9 -1
- package/types/src/resource/ResourceCollection.d.ts +6 -6
- package/types/src/scripting/FunctionCollection.d.ts +49 -15
- package/types/src/scripting/IFunctionCollection.d.ts +62 -32
- package/types/src/scripting/IModule.d.ts +25 -0
- package/types/src/scripting/IModuleCollection.d.ts +17 -0
- package/types/src/scripting/IScript.d.ts +28 -26
- package/types/src/scripting/Module.d.ts +34 -6
- package/types/src/scripting/ModuleCollection.d.ts +17 -12
- package/types/src/scripting/Runtime.d.ts +15 -0
- package/types/src/scripting/Scripts.d.ts +3 -7
- package/types/src/scripting/TypedFunction.d.ts +154 -18
- package/types/src/scripting/_FunctionIndex.d.ts +8 -3
- package/types/src/scripting/_ModuleUtils.d.ts +11 -1
- package/types/src/scripting/_ScriptUtils.d.ts +3 -0
- package/types/src/scripting/declarations.browser.d.ts +10 -0
- package/types/src/scripting/declarations.d.ts +49 -0
- package/types/src/scripting/declarations.node.d.ts +9 -0
- package/types/src/scripting/index.d.ts +3 -0
- package/types/src/selection/IMovableSelection.d.ts +148 -0
- package/types/src/selection/IRangeSelection.d.ts +9 -4
- package/types/src/selection/MovableSelection.d.ts +48 -0
- package/types/src/selection/RangeSelection.d.ts +15 -0
- package/types/src/selection/index.d.ts +1 -0
- package/types/src/shape/GeometryPreset.d.ts +197 -0
- package/types/src/shape/IGeometry.d.ts +380 -0
- package/types/src/shape/IShape.d.ts +341 -194
- package/types/src/shape/IShapeStyle.d.ts +135 -0
- package/types/src/shape/Shape.d.ts +107 -21
- package/types/src/shape/ShapeStyleUtils.d.ts +54 -0
- package/types/src/shape/_ConnectorFrame.d.ts +32 -0
- package/types/src/shape/_ConnectorRoute.d.ts +33 -0
- package/types/src/shape/_Connectors.d.ts +108 -0
- package/types/src/shape/_Geometry.d.ts +14 -0
- package/types/src/shape/_GeometryLoader.d.ts +21 -0
- package/types/src/shape/_ShapeStyle.d.ts +70 -0
- package/types/src/shape/_builtIn/_BuiltInChunks.d.ts +10 -0
- package/types/src/shape/_builtIn/_BuiltInDef.d.ts +9 -0
- package/types/src/shape/_builtIn/arrows.d.ts +6 -0
- package/types/src/shape/_builtIn/basic.d.ts +6 -0
- package/types/src/shape/_builtIn/callouts.d.ts +6 -0
- package/types/src/shape/_builtIn/flowchart.d.ts +6 -0
- package/types/src/shape/_builtIn/lines.d.ts +6 -0
- package/types/src/shape/_builtIn/math.d.ts +6 -0
- package/types/src/shape/_builtIn/other.d.ts +6 -0
- package/types/src/shape/_builtIn/rectangles.d.ts +6 -0
- package/types/src/shape/_builtIn/starsBanners.d.ts +6 -0
- package/types/src/shape/geometry/_strokeEnds.d.ts +7 -0
- package/types/src/shape/geometry/format.d.ts +3 -0
- package/types/src/shape/geometry/geometry.d.ts +85 -0
- package/types/src/shape/geometry/guides.d.ts +54 -0
- package/types/src/shape/geometry/handles.d.ts +14 -0
- package/types/src/shape/geometry/index.d.ts +7 -0
- package/types/src/shape/geometry/lineEnds.d.ts +54 -0
- package/types/src/shape/geometry/paths.d.ts +35 -0
- package/types/src/shape/geometry/segments.d.ts +114 -0
- package/types/src/shape/index.d.ts +3 -0
- package/types/src/sheet/CellRegion.d.ts +6 -0
- package/types/src/sheet/ICellContainerOptions.d.ts +50 -0
- package/types/src/sheet/ISheet.d.ts +197 -50
- package/types/src/sheet/ISheetCollection.d.ts +2 -5
- package/types/src/sheet/NamedCellRange.d.ts +16 -7
- package/types/src/sheet/NamedRange.d.ts +8 -0
- package/types/src/sheet/Sheet.d.ts +915 -138
- package/types/src/sheet/SheetCell.d.ts +92 -32
- package/types/src/sheet/SheetCollection.d.ts +19 -8
- package/types/src/sheet/SheetRange.d.ts +90 -18
- package/types/src/sheet/SheetRanges.d.ts +22 -9
- package/types/src/sheet/_CellBuffer.d.ts +214 -0
- package/types/src/sheet/_HeldFormula.d.ts +69 -0
- package/types/src/sheet/_InvalidSheetRange.d.ts +7 -7
- package/types/src/sheet/_ListenerAnchor.d.ts +104 -0
- package/types/src/sheet/_RangeStateSweep.d.ts +16 -0
- package/types/src/sheet/_ScalarListFactory.d.ts +61 -0
- package/types/src/sheet/_SheetAutoFillUtils.d.ts +74 -0
- package/types/src/sheet/_SheetAutoFitUtils.d.ts +2 -2
- package/types/src/sheet/_SheetEvents.d.ts +43 -0
- package/types/src/sheet/_SheetFilterUtils.d.ts +49 -1
- package/types/src/sheet/_SheetIntents.d.ts +296 -0
- package/types/src/sheet/_SheetMutations.d.ts +182 -62
- package/types/src/sheet/_SheetStateReader.d.ts +19 -13
- package/types/src/sheet/_SheetStateTypes.d.ts +83 -78
- package/types/src/sheet/_SheetUtils.d.ts +39 -22
- package/types/src/sheet/_WatchAnchor.d.ts +93 -0
- package/types/src/sheet/spatial/HeldFormulaEntry.d.ts +36 -0
- package/types/src/sheet/spatial/index.d.ts +1 -0
- package/types/src/sheet/style/SheetCellStyle.d.ts +209 -304
- package/types/src/sheet/style/SheetDirectStyle.d.ts +30 -19
- package/types/src/sheet/style/SheetNamedStyle.d.ts +17 -17
- package/types/src/sheet/style/SheetTableStyle.d.ts +5 -5
- package/types/src/sheet/style/_Resolvers.d.ts +14 -8
- package/types/src/sheet/style/_StyleUtils.d.ts +38 -8
- package/types/src/sheetHeader/ISheetHeader.d.ts +94 -53
- package/types/src/sheetHeader/SheetCellHeader.d.ts +4 -0
- package/types/src/sheetHeader/SheetHeader.d.ts +42 -22
- package/types/src/sheetHeader/_HeaderMetrics.d.ts +37 -0
- package/types/src/sheetHeader/_HeaderUtils.d.ts +5 -3
- package/types/src/sheetProtection/ISheetProtection.d.ts +41 -7
- package/types/src/sheetProtection/SheetProtection.d.ts +12 -0
- package/types/src/sheetView/ISheetView.d.ts +69 -15
- package/types/src/sheetView/SheetView.d.ts +20 -11
- package/types/src/slicer/ISlicer.d.ts +304 -17
- package/types/src/slicer/ISlicerStyle.d.ts +109 -0
- package/types/src/slicer/Slicer.d.ts +128 -13
- package/types/src/slicer/SlicerStyle.d.ts +25 -0
- package/types/src/slicer/_BuiltInSlicerStyles.d.ts +13 -0
- package/types/src/slicer/_SlicerUtils.d.ts +30 -0
- package/types/src/slicer/index.d.ts +1 -0
- package/types/src/sort/ISort.d.ts +4 -2
- package/types/src/string/IStringCollection.d.ts +5 -0
- package/types/src/string/StringCollection.d.ts +6 -6
- package/types/src/style/{IStyle.d.ts → ICellStyle.d.ts} +72 -52
- package/types/src/style/INamedStyleCollection.d.ts +72 -0
- package/types/src/style/ISlicerStyleCollection.d.ts +77 -0
- package/types/src/style/IStyleCollection.d.ts +91 -60
- package/types/src/style/ITableStyleCollection.d.ts +89 -0
- package/types/src/style/NamedStyleCollection.d.ts +39 -0
- package/types/src/style/SlicerStyleCollection.d.ts +46 -0
- package/types/src/style/StyleCollection.d.ts +81 -26
- package/types/src/style/TableStyleCollection.d.ts +49 -0
- package/types/src/style/_BuiltInStyleDefs.d.ts +6 -6
- package/types/src/style/_BuiltInStyleNames.d.ts +2 -2
- package/types/src/style/index.d.ts +7 -1
- package/types/src/table/AnchoredTable.d.ts +701 -72
- package/types/src/table/AutoTable.d.ts +7 -5
- package/types/src/table/ITable.d.ts +261 -34
- package/types/src/table/ITableCollection.d.ts +12 -0
- package/types/src/table/ITableStyle.d.ts +37 -37
- package/types/src/table/TableCollection.d.ts +19 -8
- package/types/src/table/_FilterField.d.ts +19 -6
- package/types/src/table/_NamedTable.d.ts +17 -1
- package/types/src/table/_NamedTableSource.d.ts +1 -0
- package/types/src/table/_SortField.d.ts +2 -0
- package/types/src/table/_TableColumn.d.ts +13 -2
- package/types/src/table/_TableMessages.d.ts +1 -0
- package/types/src/table/_TableUtils.d.ts +40 -0
- package/types/src/text/Bullet.d.ts +4 -0
- package/types/src/text/IText.d.ts +182 -0
- package/types/src/text/ITextFrame.d.ts +110 -1
- package/types/src/text/TextBoxAlignment.d.ts +25 -16
- package/types/src/text/TextFrame.d.ts +4 -0
- package/types/src/text/TextLine.d.ts +4 -0
- package/types/src/text/TextParagraph.d.ts +4 -0
- package/types/src/text/TextRotation.d.ts +3 -3
- package/types/src/text/TextRun.d.ts +9 -0
- package/types/src/text/TextStacked.d.ts +83 -0
- package/types/src/text/index.d.ts +1 -0
- package/types/src/text/richtext/IRichText.d.ts +36 -0
- package/types/src/text/richtext/IStyledFont.d.ts +18 -18
- package/types/src/text/richtext/index.d.ts +1 -0
- package/types/src/theme/ITheme.d.ts +45 -4
- package/types/src/theme/IThemeCollection.d.ts +2 -0
- package/types/src/theme/ThemeCollection.d.ts +11 -7
- package/types/src/theme/_OfficeFormatScheme.d.ts +3 -0
- package/types/src/transaction/ITransaction.d.ts +258 -45
- package/types/src/transaction/Transaction.d.ts +101 -11
- package/types/src/transaction/TransactionUndoManager.d.ts +4 -1
- package/types/src/type/AbstractCollection.d.ts +101 -0
- package/types/src/type/ICollection.d.ts +117 -0
- package/types/src/type/ITypes.d.ts +9 -7
- package/types/src/type/index.d.ts +1 -0
- package/types/src/utils/_CSSUtils.d.ts +3 -3
- package/types/src/wasm/_sdkWasm.d.ts +7 -0
- package/types/src/wasm/index.d.ts +2 -0
- package/types/src/wasm/sdkWasm.d.ts +29 -0
- package/types/src/workbook/IWorkbook.d.ts +180 -40
- package/types/src/workbook/Workbook.d.ts +123 -10
- package/types/src/workbook/_WorkbookIntents.d.ts +36 -0
- package/types/src/workbookProtection/IWorkbookProtection.d.ts +7 -0
- package/types/src/workbookProtection/WorkbookProtection.d.ts +3 -0
- package/types/src/workbookView/IWorkbookView.d.ts +12 -0
- package/types/src/workbookView/WorkbookView.d.ts +5 -0
- package/browser/cjs/B7_pDFYCVzt-3hUs.cjs +0 -1
- package/browser/cjs/BatsV2UUraVDCRXm.cjs +0 -57
- package/browser/cjs/CUz53T65cRGQRgvv.cjs +0 -33
- package/browser/cjs/DU0kYUtdFa3jK-im.cjs +0 -1
- package/browser/cjs/Dv3x6zut1ZRUt3IF.cjs +0 -10
- package/browser/cjs/Dv4yIPLV98M5zLHa.cjs +0 -1
- package/browser/cjs/a0Z-SXs_N71CtqYb.cjs +0 -1
- package/browser/cjs/index.cjs +0 -3
- package/browser/esm/6JKSOvc5czaQB2Bj.mjs +0 -109
- package/browser/esm/BtuJ9AGzeURtAsGo.mjs +0 -51241
- package/browser/esm/DGU6sM25u0EWCKl1.mjs +0 -824
- package/browser/esm/f2G3QRgEbvFJcoa2.mjs +0 -4436
- package/node/esm/-pxdn3M3tc6PLHs7.mjs +0 -114
- package/node/esm/0n5bslM9jhO1JnI2.mjs +0 -843
- package/types/src/cellRange/_GraphNode.d.ts +0 -38
- package/types/src/condition/BuiltinSelectors/ListSelector.d.ts +0 -12
- package/types/src/dataValidation/_Utils.d.ts +0 -10
- package/types/src/lib/utils/_Utils.d.ts +0 -27
- package/types/src/lib/utils/utils.browser.d.ts +0 -33
- package/types/src/movable/IGroup.d.ts +0 -30
- package/types/src/movable/IMovableSelection.d.ts +0 -49
- package/types/src/sheet/listener/RangesListener.d.ts +0 -32
- package/types/src/sheet/listener/RangesListenerEntry.d.ts +0 -19
- package/types/src/sheet/listener/index.d.ts +0 -3
- /package/types/src/{lib/utils → license}/banner.d.ts +0 -0
|
@@ -1,25 +1,46 @@
|
|
|
1
1
|
import { LicenseDetails } from './LicenseDetails';
|
|
2
|
+
/**
|
|
3
|
+
* Where a license runs. `browser` is any page (checked against its origin); `server` is any
|
|
4
|
+
* JavaScript runtime outside a browser - Node, Bun, Deno, the CLI, a CI runner (checked against the
|
|
5
|
+
* machine).
|
|
6
|
+
*/
|
|
7
|
+
export type LicenseRuntime = 'browser' | 'server';
|
|
8
|
+
export declare const LICENSE_RUNTIMES: readonly LicenseRuntime[];
|
|
2
9
|
export interface Decoded {
|
|
3
10
|
licensee?: string | null;
|
|
4
11
|
type?: string;
|
|
5
12
|
expiry?: number;
|
|
6
13
|
developerCount?: number;
|
|
14
|
+
/** The runtimes the key covers; `undefined` for a key issued before runtimes were explicit. */
|
|
15
|
+
runtimes?: LicenseRuntime[];
|
|
7
16
|
domains?: string[];
|
|
8
17
|
fingerprint?: string | null;
|
|
9
18
|
cpuCount?: number;
|
|
10
19
|
memory?: number | null;
|
|
11
20
|
features?: Record<string, any>[];
|
|
12
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* The runtimes a decoded key covers. A key issued before runtimes were explicit covers `browser`
|
|
24
|
+
* when it has origins, and `server` unless its cpu and memory are both 0 (the old browser-only
|
|
25
|
+
* marker).
|
|
26
|
+
*/
|
|
27
|
+
export declare function getRuntimes(decoded: Decoded): LicenseRuntime[];
|
|
13
28
|
export interface LicenseAndKey {
|
|
14
29
|
details: LicenseDetails;
|
|
15
30
|
key: string;
|
|
16
31
|
}
|
|
17
32
|
export interface LicenseKeyDetails {
|
|
18
33
|
licensee: string;
|
|
19
|
-
type?: string;
|
|
34
|
+
type?: string | null;
|
|
20
35
|
expiration?: string | null;
|
|
21
36
|
developerCount?: number;
|
|
22
|
-
|
|
37
|
+
/**
|
|
38
|
+
* The runtimes the key covers. Defaults to what the other terms imply: `browser` when there are
|
|
39
|
+
* origins, `server` when there is a fingerprint, cpu count or memory.
|
|
40
|
+
*/
|
|
41
|
+
runtimes?: LicenseRuntime[] | null;
|
|
42
|
+
/** Licensed origins, `<protocol>://<host>` each (see `Origin`); a string is comma-separated. */
|
|
43
|
+
domains?: string | string[] | null;
|
|
23
44
|
fingerprint?: string | null;
|
|
24
45
|
cpuCount?: number | null;
|
|
25
46
|
memory?: number | null;
|
|
@@ -29,5 +50,31 @@ export declare function rot(text: string, key: number, n?: number): string;
|
|
|
29
50
|
export declare function deobs(str: string): Decoded;
|
|
30
51
|
export declare function encodeLicenseKey(keyDetails: LicenseKeyDetails): LicenseAndKey;
|
|
31
52
|
export declare function validateDomain(domain: string, allowDomain?: boolean): boolean;
|
|
53
|
+
/**
|
|
54
|
+
* A licensed origin, `<protocol>://<host>`.
|
|
55
|
+
*
|
|
56
|
+
* The protocol is the scheme the page is served over — `https` on the web, `vscode-webview` in VS Code
|
|
57
|
+
* desktop, an app's own registered scheme in Electron — and is mandatory: a browser license names
|
|
58
|
+
* the runtime it was sold for, not just a hostname. The host is a domain (matched exactly or as a
|
|
59
|
+
* suffix — `acme.com` covers `app.acme.com`), `*` for any host (runtimes whose host is random, like
|
|
60
|
+
* VS Code's `v--<hash>`), or empty for schemes that carry no host (`file://`).
|
|
61
|
+
*/
|
|
62
|
+
export interface Origin {
|
|
63
|
+
protocol: string;
|
|
64
|
+
host: string;
|
|
65
|
+
}
|
|
66
|
+
/** Splits `<protocol>://<host>`; `null` when the entry has no protocol or a malformed one. */
|
|
67
|
+
export declare function parseOrigin(entry: string): Origin | null;
|
|
68
|
+
/**
|
|
69
|
+
* `true` when `entry` is a well-formed origin. Web hosts (`http`/`https`) must be a subdomain, or an
|
|
70
|
+
* apex when the license carries the `domain` feature (`allowDomain`) — the same rule `validateDomain`
|
|
71
|
+
* applies; any other scheme accepts a DNS-shaped host, `*`, or none.
|
|
72
|
+
*/
|
|
73
|
+
export declare function validateOrigin(entry: string, allowDomain?: boolean): boolean;
|
|
74
|
+
/**
|
|
75
|
+
* `true` when the running page — `protocol` without its colon and `hostname`, as `location` reports
|
|
76
|
+
* them — is covered by `entry`. An entry with no protocol covers nothing.
|
|
77
|
+
*/
|
|
78
|
+
export declare function originMatches(entry: string, protocol: string, hostname: string): boolean;
|
|
32
79
|
export declare function validateFingerprint(fingerprint: string | null): boolean;
|
|
33
80
|
//# sourceMappingURL=license-key.d.ts.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { HostDetails, LicenseKeySource } from './Types';
|
|
2
|
+
import { LicenseDetails } from './LicenseDetails';
|
|
3
|
+
/**
|
|
4
|
+
* What the license check sees of the page: the scheme it is served over (no colon) and its hostname.
|
|
5
|
+
* `domain` is `null` for the one dev case — loopback over http(s). The scheme is part of that test on
|
|
6
|
+
* purpose: `tauri://localhost` / `capacitor://localhost` are shipped apps that happen to use a loopback
|
|
7
|
+
* host, and are checked like production. Outside a window (a worker, node under test) both are `null`.
|
|
8
|
+
*/
|
|
9
|
+
export declare function getHostDetails(): Promise<HostDetails>;
|
|
10
|
+
/**
|
|
11
|
+
* Only the loopback host over http(s) is a dev environment. A dev *build* served on any other host
|
|
12
|
+
* (a LAN IP, a tunnel) — or under any other scheme — is checked exactly like production: license
|
|
13
|
+
* origins apply and an evaluation shows the watermark.
|
|
14
|
+
*/
|
|
15
|
+
export declare function isDevEnv(): Promise<boolean>;
|
|
16
|
+
/**
|
|
17
|
+
* The key in the nearest `sheetxl.lic` served at or above the page. When the server cannot be
|
|
18
|
+
* reached, the key last read from any of those locations; with none cached, `unreachable`.
|
|
19
|
+
*/
|
|
20
|
+
export declare function readLicenseKey(): Promise<LicenseKeySource>;
|
|
21
|
+
/**
|
|
22
|
+
* An evaluation: unrestricted on localhost, and with the evaluation watermark anywhere else.
|
|
23
|
+
*/
|
|
24
|
+
export declare function getEvalLicense(keyFrom: string): Promise<LicenseDetails>;
|
|
25
|
+
/**
|
|
26
|
+
* The license for this page when the host set no key: the key file's, an evaluation when there is
|
|
27
|
+
* none, or `unavailable` when it could not be loaded.
|
|
28
|
+
*/
|
|
29
|
+
export declare function getLicense(): Promise<LicenseDetails>;
|
|
30
|
+
export declare function setKey(key: string, force?: boolean): Promise<void>;
|
|
31
|
+
export declare function getKey(): Promise<string>;
|
|
32
|
+
export declare function printBanner(isUser: boolean): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* The browser always gets the full banner — there is no piped output to protect, and
|
|
35
|
+
* the console collapses repeats. (See the node variant for the throttled CLI behavior.)
|
|
36
|
+
*/
|
|
37
|
+
export declare function claimFullLicensePrint(): Promise<boolean>;
|
|
38
|
+
/** The one-line form of the unlicensed notice; in the browser only the activation pointer. */
|
|
39
|
+
export declare function printLicenseNotice(): Promise<void>;
|
|
40
|
+
export declare function printDetails(details: LicenseDetails, isUser?: boolean, expanded?: boolean, ignoreExceptions?: boolean): Promise<void>;
|
|
41
|
+
//# sourceMappingURL=runtime.browser.d.ts.map
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
import { HostDetails } from './
|
|
2
|
-
import { LicenseDetails } from '
|
|
1
|
+
import { HostDetails, LicenseKeySource } from './Types';
|
|
2
|
+
import { LicenseDetails } from './LicenseDetails';
|
|
3
3
|
export declare function getHostDetails(): Promise<HostDetails>;
|
|
4
4
|
export declare function isDevEnv(): Promise<boolean>;
|
|
5
|
+
export declare function readLicenseKey(): Promise<LicenseKeySource>;
|
|
5
6
|
/**
|
|
6
|
-
*
|
|
7
|
+
* An evaluation: runs with the unlicensed notice.
|
|
7
8
|
*/
|
|
8
|
-
export declare function
|
|
9
|
+
export declare function getEvalLicense(keyFrom: string): Promise<LicenseDetails>;
|
|
9
10
|
/**
|
|
10
|
-
* The
|
|
11
|
-
*
|
|
11
|
+
* The license for this process when the host set no key: the environment's or the stored key's,
|
|
12
|
+
* or an evaluation.
|
|
12
13
|
*/
|
|
13
|
-
export declare function
|
|
14
|
-
export declare function findLicenseKey(): Promise<{
|
|
15
|
-
key: string;
|
|
16
|
-
from: string;
|
|
17
|
-
} | null>;
|
|
14
|
+
export declare function getLicense(): Promise<LicenseDetails>;
|
|
18
15
|
export declare function setKey(key: string, force?: boolean): Promise<void>;
|
|
19
16
|
export declare function getKey(): Promise<string | undefined>;
|
|
20
17
|
export declare function printBanner(isUser: boolean): Promise<void>;
|
|
@@ -39,4 +36,4 @@ export declare function claimFullLicensePrint(): Promise<boolean>;
|
|
|
39
36
|
*/
|
|
40
37
|
export declare function printLicenseNotice(): Promise<void>;
|
|
41
38
|
export declare function printDetails(details: LicenseDetails, isUser?: boolean, expanded?: boolean, ignoreExceptions?: boolean): Promise<void>;
|
|
42
|
-
//# sourceMappingURL=
|
|
39
|
+
//# sourceMappingURL=runtime.node.d.ts.map
|
|
@@ -25,19 +25,24 @@ export declare namespace IListener {
|
|
|
25
25
|
*/
|
|
26
26
|
once?: boolean;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Whether the listener takes part in the operation that notifies it.
|
|
29
29
|
*
|
|
30
|
-
* @defaultValue
|
|
30
|
+
* @defaultValue `true` when the listener is added during an operation - a listener added as a
|
|
31
|
+
* consequence of one is part of it - and `false` otherwise.
|
|
31
32
|
*
|
|
32
33
|
* @remarks
|
|
33
|
-
* There are subtle differences between a transactional listener and a non-transactional listener.
|
|
34
|
-
*
|
|
35
34
|
* A transactional listener:
|
|
36
|
-
* *
|
|
37
|
-
*
|
|
35
|
+
* * is told inline, inside the operation, so anything it writes joins that same commit, and
|
|
36
|
+
* is told during an undo or a redo for the same reason;
|
|
37
|
+
* * hears nothing announced outside an operation;
|
|
38
|
+
* * is part of the document: the operation that added it removes it on undo and puts it back
|
|
39
|
+
* on redo.
|
|
38
40
|
*
|
|
39
41
|
* A non-transactional listener:
|
|
40
|
-
|
|
42
|
+
* * is told once per operation, after it has landed, however many times the operation
|
|
43
|
+
* notified, and not at all if the operation is rolled back;
|
|
44
|
+
* * is told at once when there is no operation, and at once during an undo or a redo;
|
|
45
|
+
* * survives an undo, since it is not part of the document.
|
|
41
46
|
*/
|
|
42
47
|
transactional?: boolean;
|
|
43
48
|
}
|
|
@@ -3,16 +3,34 @@ import { IListener } from './IListener';
|
|
|
3
3
|
export interface NotifyOptions<T = any> {
|
|
4
4
|
params?: T | null;
|
|
5
5
|
source?: any;
|
|
6
|
+
/**
|
|
7
|
+
* Collect what the listeners return. A notify that collects is a request, not an
|
|
8
|
+
* announcement, and is delivered at once wherever it is made.
|
|
9
|
+
*/
|
|
6
10
|
async?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Deliver as if made inside (`true`) or outside (`false`) an operation, whatever the store
|
|
13
|
+
* says. `false` is for a signal that is not a change to the document (a dirty flag).
|
|
14
|
+
*/
|
|
7
15
|
transactional?: boolean;
|
|
8
16
|
}
|
|
9
17
|
/**
|
|
10
|
-
* Manages
|
|
18
|
+
* Manages listeners.
|
|
11
19
|
*
|
|
12
20
|
* @remarks
|
|
13
|
-
*
|
|
21
|
+
* `transactional` ({@link IListener.Options}) says whether a listener takes part in the operation
|
|
22
|
+
* that notifies it. Unless the caller says, it is inferred from where the listener was added: one
|
|
23
|
+
* added as a consequence of an operation is part of it.
|
|
14
24
|
*
|
|
15
|
-
* *
|
|
25
|
+
* * A transactional listener is told inline, inside the operation, so what it writes joins that
|
|
26
|
+
* commit; it is told during a restore's dispatch for the same reason. It is versioned with the
|
|
27
|
+
* document - an undo removes the subscription, a redo restores it - and, being part of an
|
|
28
|
+
* operation, it hears nothing announced outside one.
|
|
29
|
+
* * A non-transactional listener is told ONCE, after the operation has landed, with everything
|
|
30
|
+
* the operation announced conflated by callback; a rollback drops it. Outside an operation, and
|
|
31
|
+
* during a restore, it is told at once - a restore has no commit to wait for.
|
|
32
|
+
* * A request (`async`) is delivered at once wherever it is made and returns what the listeners
|
|
33
|
+
* answered. A question is not an announcement, and deferring one would break every `await`.
|
|
16
34
|
*/
|
|
17
35
|
export declare class ListenerEmitter<SOURCE, EVENTS> {
|
|
18
36
|
protected _transactions: ITransaction.IStore;
|
|
@@ -22,10 +40,32 @@ export declare class ListenerEmitter<SOURCE, EVENTS> {
|
|
|
22
40
|
protected _src: SOURCE;
|
|
23
41
|
protected _listeners: EntrySet<SOURCE, EVENTS>;
|
|
24
42
|
protected _pending: Pending<any, SOURCE>[] | null;
|
|
43
|
+
protected _landing: Pending<any, SOURCE>[] | null;
|
|
25
44
|
constructor(src: SOURCE, transactions?: ITransaction.IStore);
|
|
45
|
+
/** DEBUG (temporary): names this emitter in the `__SXL_LOG_EVENTS` trace. Remove with it. */
|
|
46
|
+
protected _label(): string;
|
|
47
|
+
/**
|
|
48
|
+
* `true` while the store is mid-operation: a transaction is open, or a restore is being
|
|
49
|
+
* dispatched. What a listener added now is a consequence of, and what a notify made now belongs
|
|
50
|
+
* to.
|
|
51
|
+
*/
|
|
52
|
+
protected _inOperation(): boolean;
|
|
26
53
|
/** {@inheritDoc IListener.ISource.addListeners} */
|
|
27
54
|
addListeners(listeners: IListener.Callbacks<SOURCE, EVENTS>, options?: IListener.Options): IListener.Remove;
|
|
55
|
+
/**
|
|
56
|
+
* Write the transactional listener set, copy-on-write, as a fold rather than a step.
|
|
57
|
+
*
|
|
58
|
+
* @remarks
|
|
59
|
+
* The set is document state, so a subscription made by an operation is removed by undoing it
|
|
60
|
+
* and put back by redoing it. A fold rather than a commit because a registration is not a step
|
|
61
|
+
* in the history: it adds no undo entry and announces nothing. Inside an open operation the
|
|
62
|
+
* flag is a no-op on the nested commit and the write simply joins that operation, which is
|
|
63
|
+
* where a listener added as a consequence of it belongs.
|
|
64
|
+
*/
|
|
65
|
+
protected _updateEntries(mutate: (entries: EntrySet<SOURCE, EVENTS>) => void): void;
|
|
28
66
|
protected _doNotify<T = unknown>(listeners: IListener.Callback<SOURCE>[], removes?: IListener.Remove[] | null, options?: NotifyOptions<T>, fired?: Set<IListener.Callback<SOURCE>>): Promise<any>;
|
|
67
|
+
/** The callbacks for `key` in a bucket, gathered first so a removal during delivery is safe. */
|
|
68
|
+
protected _collect(entries: EntrySet<SOURCE, EVENTS> | undefined, key: keyof EVENTS): Collected<SOURCE> | null;
|
|
29
69
|
/**
|
|
30
70
|
* Notify listeners.
|
|
31
71
|
*/
|
|
@@ -37,10 +77,11 @@ interface Entry<SOURCE, EVENTS> {
|
|
|
37
77
|
listeners: IListener.Callbacks<SOURCE, EVENTS>;
|
|
38
78
|
}
|
|
39
79
|
type EntrySet<SOURCE = any, EVENTS = any> = Set<Entry<SOURCE, EVENTS>>;
|
|
40
|
-
interface
|
|
41
|
-
commitId: string;
|
|
80
|
+
interface Collected<SOURCE> {
|
|
42
81
|
listeners: IListener.Callback<SOURCE>[];
|
|
43
82
|
removes: IListener.Remove[] | null;
|
|
83
|
+
}
|
|
84
|
+
interface Pending<T, SOURCE> extends Collected<SOURCE> {
|
|
44
85
|
options?: NotifyOptions<T>;
|
|
45
86
|
}
|
|
46
87
|
export {};
|
|
@@ -5,7 +5,7 @@ import { ListenerEmitter } from '../listener/ListenerEmitter';
|
|
|
5
5
|
/**
|
|
6
6
|
* Abstract implement of `IModel`.
|
|
7
7
|
*/
|
|
8
|
-
export declare abstract class AbstractModel<STATE extends AbstractModel.State = AbstractModel.State, JSON extends any = any,
|
|
8
|
+
export declare abstract class AbstractModel<STATE extends AbstractModel.State = AbstractModel.State, JSON extends any = any, EVENTS extends IModel.Events = IModel.Events> implements IModel {
|
|
9
9
|
protected _emitter: ListenerEmitter<AbstractModel, EVENTS>;
|
|
10
10
|
protected _options: IModel.ConstructorOptions<JSON>;
|
|
11
11
|
protected _transactions: ITransaction.IStore;
|
|
@@ -38,16 +38,27 @@ export declare abstract class AbstractModel<STATE extends AbstractModel.State =
|
|
|
38
38
|
/** @internal */
|
|
39
39
|
protected _getTransactions(): ITransaction.IStore;
|
|
40
40
|
/** @internal */
|
|
41
|
+
/** Write the state as a step in the history. */
|
|
41
42
|
protected _updateState(updateState?: Partial<STATE>, //(prevState: STATE) => STATE,
|
|
42
43
|
options?: ITransaction.StoreOperationOptions, events?: (keyof EVENTS)[]): this;
|
|
44
|
+
/**
|
|
45
|
+
* Write the state as a fold into the commit it starts from, rather than as a step.
|
|
46
|
+
*
|
|
47
|
+
* @remarks
|
|
48
|
+
* For a write that is not an edit - this model's own initialization, or bookkeeping derived
|
|
49
|
+
* from a change that already has a commit. It adds no undo entry and is undone with the commit
|
|
50
|
+
* it lands in. See {@link ITransaction.amend}.
|
|
51
|
+
*/
|
|
52
|
+
protected _amendState(updateState?: Partial<STATE>, options?: ITransaction.StoreOperationOptions, events?: (keyof EVENTS)[]): this;
|
|
53
|
+
private _writeState;
|
|
43
54
|
/** @internal */
|
|
44
55
|
protected _getEmitter<SOURCE, E extends EVENTS>(): ListenerEmitter<SOURCE, E>;
|
|
45
56
|
/** @internal */
|
|
46
57
|
protected _processInit(): void;
|
|
47
58
|
/** @internal */
|
|
48
|
-
protected _processAfterStateChange(_state: STATE,
|
|
59
|
+
protected _processAfterStateChange(_state: STATE, _commit: ITransaction.ICommit): void;
|
|
49
60
|
/** @internal */
|
|
50
|
-
protected _processRestoreOrRevert(_state: STATE,
|
|
61
|
+
protected _processRestoreOrRevert(_state: STATE, _commit: ITransaction.ICommit): void;
|
|
51
62
|
delete(options?: ITransaction.OperationOptions): void;
|
|
52
63
|
/** @internal */
|
|
53
64
|
protected _delete(options?: ITransaction.OperationOptions): void;
|
|
@@ -84,7 +95,5 @@ export declare namespace AbstractModel {
|
|
|
84
95
|
interface State extends ITransaction.StateRecord {
|
|
85
96
|
isDeleted: boolean;
|
|
86
97
|
}
|
|
87
|
-
interface CommitView {
|
|
88
|
-
}
|
|
89
98
|
}
|
|
90
99
|
//# sourceMappingURL=AbstractModel.d.ts.map
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { IRange } from '@sheetxl/primitives';
|
|
2
|
+
import { AbstractModel, IModel } from '../model';
|
|
3
|
+
import { ITransaction } from '../transaction';
|
|
4
|
+
import { IListener } from '../listener';
|
|
5
|
+
import { ICellRange, ICellRanges } from '../cellRange';
|
|
6
|
+
import { ICalculation } from '../calculation/ICalculation';
|
|
7
|
+
import { IStyleCollection } from '../style';
|
|
8
|
+
import { IMovable } from './IMovable';
|
|
9
|
+
/**
|
|
10
|
+
* What every content shares: its name, its description, the movable that places it, and the
|
|
11
|
+
* cells it names.
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
* A kind that names cells - a chart's series, a control's linked cell - hands each formula to
|
|
15
|
+
* {@link _addWatch} and keeps the handle. The base does the rest: {@link getReferences} is the
|
|
16
|
+
* union of what the engine holds for every watch, {@link IMovable.ContentEvents.onReferencesChange}
|
|
17
|
+
* is announced each time the engine rewrites one, a delete releases every watch inside its own
|
|
18
|
+
* commit, and an undone delete holds them again. A kind with nothing to name calls nothing.
|
|
19
|
+
*/
|
|
20
|
+
export declare abstract class AbstractMovableContent<STATE extends AbstractMovableContent.State = AbstractMovableContent.State, JSON extends any = any, EVENTS extends IMovable.ContentEvents = IMovable.ContentEvents> extends AbstractModel<STATE, JSON, EVENTS> implements IMovable.IContent {
|
|
21
|
+
/** Numbers the default names: `Chart 3`. */
|
|
22
|
+
static instanceCounter: number;
|
|
23
|
+
private _getMovable;
|
|
24
|
+
private _addWatchOption;
|
|
25
|
+
private _getRangeOption;
|
|
26
|
+
private _watches;
|
|
27
|
+
/** The watches are out of the engine because the content is deleted; a restore holds them again. */
|
|
28
|
+
private _watchesReleased;
|
|
29
|
+
constructor(options: AbstractMovableContent.ConstructorOptions<JSON>);
|
|
30
|
+
/** {@inheritDoc IMovable.IContent.getTypeDescription} */
|
|
31
|
+
abstract getTypeDescription(): string;
|
|
32
|
+
/** {@inheritDoc IMovable.IContent.getName} */
|
|
33
|
+
getName(): string | null;
|
|
34
|
+
/** {@inheritDoc IMovable.IContent.setName} */
|
|
35
|
+
setName(name: string): this;
|
|
36
|
+
/** {@inheritDoc IMovable.IContent.getDescription} */
|
|
37
|
+
getDescription(): string | null;
|
|
38
|
+
/** {@inheritDoc IMovable.IContent.setDescription} */
|
|
39
|
+
setDescription(description: string | null): this;
|
|
40
|
+
/** {@inheritDoc IMovable.IContent.getMovable} */
|
|
41
|
+
getMovable(): IMovable | null;
|
|
42
|
+
/** {@inheritDoc IMovable.IContent.getReferences} */
|
|
43
|
+
getReferences(): ICellRanges | null;
|
|
44
|
+
/**
|
|
45
|
+
* Hands a formula the content names to the calculation engine, which keeps its references on
|
|
46
|
+
* the cells they name through inserts, deletes, cuts, sheet renames and undo.
|
|
47
|
+
*
|
|
48
|
+
* @param formula The expression, or a formula - the one a watch delivered before, when the
|
|
49
|
+
* content holds again what it had.
|
|
50
|
+
* @param callback Receives the engine's formula once it holds the body, and again after every
|
|
51
|
+
* change to its text; `event.formula.getExpression()` is the text as it reads now.
|
|
52
|
+
* @param options Where a relative endpoint is authored, and whether the body is evaluated.
|
|
53
|
+
*
|
|
54
|
+
* @returns Removes the watch. The handle is the watch's identity: a kind that maps a watch to a
|
|
55
|
+
* field of its JSON keeps its own handle-to-field map.
|
|
56
|
+
*
|
|
57
|
+
* @remarks
|
|
58
|
+
* Without the seam (content outside a workbook) nothing is held: the callback is never called,
|
|
59
|
+
* and {@link getReferences} resolves the expression as given.
|
|
60
|
+
* @internal
|
|
61
|
+
*/
|
|
62
|
+
protected _addWatch(formula: ICalculation.IFormula | string, callback?: (event: AbstractMovableContent.WatchEvent) => void, options?: AbstractMovableContent.WatchOptions): IListener.Remove;
|
|
63
|
+
/** The range `address` names in the content's workbook, or `null` when it names none or there is no workbook. @internal */
|
|
64
|
+
protected _resolveRange(address: string): ICellRange | null;
|
|
65
|
+
private _hold;
|
|
66
|
+
/**
|
|
67
|
+
* `expression` as one plain reference, for a content the engine holds nothing for. A bare
|
|
68
|
+
* address is on the content's own sheet.
|
|
69
|
+
*/
|
|
70
|
+
private _parseReference;
|
|
71
|
+
private _notifyReferencesChange;
|
|
72
|
+
/** Inside the delete's own commit, so an undo brings the references back with the content. */
|
|
73
|
+
private _releaseWatches;
|
|
74
|
+
/** From what each watch last read: the formula the engine delivered, else the text as given. */
|
|
75
|
+
private _holdWatches;
|
|
76
|
+
/** @internal */
|
|
77
|
+
protected _processDelete(): void;
|
|
78
|
+
/** @internal */
|
|
79
|
+
protected _processRestoreOrRevert(state: STATE, commit: ITransaction.ICommit): void;
|
|
80
|
+
/**
|
|
81
|
+
* The id the file gave this content (`cNvPr/@id`), which a connector's glued ends name it by;
|
|
82
|
+
* `undefined` for content that has none yet. Kept on the content's `data`; a kind that keeps it
|
|
83
|
+
* elsewhere overrides this and {@link _ensureSourceId} together.
|
|
84
|
+
* @internal
|
|
85
|
+
*/
|
|
86
|
+
_getSourceId(): number | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* The id the file writes this content with, taking one from `next` when it has none yet: what a
|
|
89
|
+
* connector's end names it by, written as part of the open operation.
|
|
90
|
+
* @internal
|
|
91
|
+
*/
|
|
92
|
+
_ensureSourceId(next: () => number): number;
|
|
93
|
+
/** @internal */
|
|
94
|
+
protected _protectionCheck(description: string): void;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Interfaces for creating movable content.
|
|
98
|
+
*
|
|
99
|
+
* @see
|
|
100
|
+
* ### **Interface**
|
|
101
|
+
*
|
|
102
|
+
* {@link AbstractMovableContent}
|
|
103
|
+
*/
|
|
104
|
+
export declare namespace AbstractMovableContent {
|
|
105
|
+
interface State extends AbstractModel.State {
|
|
106
|
+
name?: string | null;
|
|
107
|
+
description?: string | null;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* What a watch delivers: see {@link ConstructorOptions.addWatch}.
|
|
111
|
+
*/
|
|
112
|
+
interface WatchEvent {
|
|
113
|
+
/**
|
|
114
|
+
* The formula as the engine holds it. Its expression is the text as it reads now; its
|
|
115
|
+
* references are the cells it names now.
|
|
116
|
+
*/
|
|
117
|
+
formula: ICalculation.IFormula;
|
|
118
|
+
/**
|
|
119
|
+
* The body's values, for a watch that evaluates ({@link WatchOptions.evaluate}).
|
|
120
|
+
*/
|
|
121
|
+
values?: IRange;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Options for {@link ConstructorOptions.addWatch}.
|
|
125
|
+
*/
|
|
126
|
+
interface WatchOptions {
|
|
127
|
+
/**
|
|
128
|
+
* Evaluate the body and deliver its values after every pass that changed them. Off, the
|
|
129
|
+
* watch is a hold: the body demands its first cell only, so holding a reference to a column
|
|
130
|
+
* costs one read a pass, not the column.
|
|
131
|
+
*
|
|
132
|
+
* @defaultValue `false`
|
|
133
|
+
*/
|
|
134
|
+
evaluate?: boolean;
|
|
135
|
+
/**
|
|
136
|
+
* Where a relative endpoint of the formula is authored.
|
|
137
|
+
*
|
|
138
|
+
* @defaultValue The content's anchor top-left when the watch registers.
|
|
139
|
+
*/
|
|
140
|
+
origin?: IRange.CellCoords;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Hands a formula the content names to the calculation engine; see
|
|
144
|
+
* {@link ConstructorOptions.addWatch}.
|
|
145
|
+
*/
|
|
146
|
+
type AddWatch = (formula: ICalculation.IFormula | string, callback: (event: WatchEvent) => void, options?: WatchOptions) => IListener.Remove;
|
|
147
|
+
interface ConstructorOptions<J> extends IModel.ConstructorOptions<J> {
|
|
148
|
+
/**
|
|
149
|
+
* The name. Content that a movable places is given one when this is empty.
|
|
150
|
+
*/
|
|
151
|
+
name?: string | null;
|
|
152
|
+
/**
|
|
153
|
+
* The alternative text.
|
|
154
|
+
*/
|
|
155
|
+
description?: string | null;
|
|
156
|
+
/**
|
|
157
|
+
* Returns the movable that places the content. Not provided for content that has none.
|
|
158
|
+
*/
|
|
159
|
+
getMovable?: () => IMovable | null;
|
|
160
|
+
/**
|
|
161
|
+
* Returns the styles the content's theme references resolve against. Not provided for
|
|
162
|
+
* content outside a workbook.
|
|
163
|
+
*/
|
|
164
|
+
getStyles?: () => IStyleCollection | null;
|
|
165
|
+
/**
|
|
166
|
+
* Hands a formula the content names to the calculation engine, which keeps its references
|
|
167
|
+
* on the cells they name through inserts, deletes, cuts, sheet renames and undo, and calls
|
|
168
|
+
* back with the formula each time its text changes. The same contract as
|
|
169
|
+
* {@link ICellRanges.addWatch} without the range: a content has no location its formulas are
|
|
170
|
+
* evaluated over, only its anchor.
|
|
171
|
+
*
|
|
172
|
+
* Not provided for content outside a workbook; its references then read as set.
|
|
173
|
+
*/
|
|
174
|
+
addWatch?: AddWatch;
|
|
175
|
+
/**
|
|
176
|
+
* Resolves an address against the workbook the content lives in. Not provided for content
|
|
177
|
+
* outside a workbook.
|
|
178
|
+
*/
|
|
179
|
+
getRange?: (address: string) => ICellRange | null;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
//# sourceMappingURL=AbstractMovableContent.d.ts.map
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { IResource, IResourceCollection } from '../resource';
|
|
2
|
-
import { IModel, AbstractModel } from '../model';
|
|
3
2
|
import { ICustomElement } from './ICustomElement';
|
|
4
|
-
|
|
3
|
+
import { AbstractMovableContent } from './AbstractMovableContent';
|
|
4
|
+
interface State extends AbstractMovableContent.State {
|
|
5
5
|
data?: any;
|
|
6
6
|
type: string;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* Implementation for {@link ICustomElement}.
|
|
10
10
|
*/
|
|
11
|
-
export declare class CustomElement extends
|
|
11
|
+
export declare class CustomElement extends AbstractMovableContent<State, ICustomElement.JSON> implements ICustomElement {
|
|
12
12
|
constructor(options: CustomElement.ConstructorOptions);
|
|
13
13
|
getType(): string;
|
|
14
|
-
getDescription(): string;
|
|
15
14
|
toJSON(_toResourceId?: (resource: IResource) => number | null): ICustomElement.JSON | null;
|
|
16
15
|
getTypeDescription(): string;
|
|
17
16
|
}
|
|
@@ -27,7 +26,7 @@ export declare namespace CustomElement {
|
|
|
27
26
|
/**
|
|
28
27
|
* Options for creating a Custom Element.
|
|
29
28
|
*/
|
|
30
|
-
interface ConstructorOptions extends
|
|
29
|
+
interface ConstructorOptions extends AbstractMovableContent.ConstructorOptions<ICustomElement.JSON> {
|
|
31
30
|
/**
|
|
32
31
|
* Returns an IResource from the resourceId or null if not found.
|
|
33
32
|
*/
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { IErrorContent } from './IErrorContent';
|
|
2
|
+
import { CustomElement } from './CustomElement';
|
|
3
|
+
/**
|
|
4
|
+
* Implementation for {@link IErrorContent}: the content's JSON as it was read, kept for the save,
|
|
5
|
+
* and the reason the content could not be made.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ErrorContent extends CustomElement implements IErrorContent {
|
|
8
|
+
private readonly _error;
|
|
9
|
+
private readonly _originalType;
|
|
10
|
+
constructor(options: ErrorContent.ConstructorOptions);
|
|
11
|
+
/** {@inheritDoc IModel.getType} */
|
|
12
|
+
getType(): string;
|
|
13
|
+
/** {@inheritDoc IErrorContent.getError} */
|
|
14
|
+
getError(): unknown;
|
|
15
|
+
/** {@inheritDoc IErrorContent.getOriginalType} */
|
|
16
|
+
getOriginalType(): string;
|
|
17
|
+
/**
|
|
18
|
+
* The type the movable saves this content under: the original, so a save writes back what was
|
|
19
|
+
* read.
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
_getSavedType(): string;
|
|
23
|
+
/** {@inheritDoc IModel.isReadOnly} */
|
|
24
|
+
isReadOnly(): boolean;
|
|
25
|
+
/** {@inheritDoc IMovable.IContent.getTypeDescription} */
|
|
26
|
+
getTypeDescription(): string;
|
|
27
|
+
/** {@inheritDoc IErrorContent.isIErrorContent} */
|
|
28
|
+
get isIErrorContent(): true;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Interfaces for creating `ErrorContent`.
|
|
32
|
+
*
|
|
33
|
+
* @see
|
|
34
|
+
* ### **Interface**
|
|
35
|
+
*
|
|
36
|
+
* {@link ErrorContent}
|
|
37
|
+
*/
|
|
38
|
+
export declare namespace ErrorContent {
|
|
39
|
+
/**
|
|
40
|
+
* Options for creating an error content.
|
|
41
|
+
*/
|
|
42
|
+
interface ConstructorOptions extends CustomElement.ConstructorOptions {
|
|
43
|
+
/** The type of the content that could not be made. */
|
|
44
|
+
type: string;
|
|
45
|
+
/** Why it could not be made. */
|
|
46
|
+
error: unknown;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=ErrorContent.d.ts.map
|