@odoo/o-spreadsheet 18.2.0-alpha.3 → 18.2.0-alpha.5
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/dist/o-spreadsheet.cjs.js +340 -266
- package/dist/o-spreadsheet.d.ts +15 -32
- package/dist/o-spreadsheet.esm.js +340 -266
- package/dist/o-spreadsheet.iife.js +340 -266
- package/dist/o-spreadsheet.iife.min.js +212 -216
- package/dist/o_spreadsheet.xml +5553 -5540
- package/package.json +8 -5
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -1186,6 +1186,7 @@ declare class Session extends EventBus<CollaborativeEvent> {
|
|
|
1186
1186
|
private waitingUndoRedoAck;
|
|
1187
1187
|
private isReplayingInitialRevisions;
|
|
1188
1188
|
private processedRevisions;
|
|
1189
|
+
private lastRevisionMessage;
|
|
1189
1190
|
private uuidGenerator;
|
|
1190
1191
|
private lastLocalOperation;
|
|
1191
1192
|
/**
|
|
@@ -1536,6 +1537,7 @@ type StatefulStream<Event, State> = {
|
|
|
1536
1537
|
resetDefaultAnchor: (owner: unknown, state: State) => void;
|
|
1537
1538
|
resetAnchor: (owner: unknown, state: State) => void;
|
|
1538
1539
|
observe: (owner: unknown, callbacks: StreamCallbacks<Event>) => void;
|
|
1540
|
+
detachObserver: (owner: unknown) => void;
|
|
1539
1541
|
release: (owner: unknown) => void;
|
|
1540
1542
|
getBackToDefault(): void;
|
|
1541
1543
|
};
|
|
@@ -2189,7 +2191,7 @@ type SheetViewports = {
|
|
|
2189
2191
|
*
|
|
2190
2192
|
*/
|
|
2191
2193
|
declare class SheetViewPlugin extends UIPlugin {
|
|
2192
|
-
static getters: readonly ["getColIndex", "getRowIndex", "getActiveMainViewport", "getSheetViewDimension", "getSheetViewDimensionWithHeaders", "getMainViewportRect", "isVisibleInViewport", "getEdgeScrollCol", "getEdgeScrollRow", "getVisibleFigures", "getVisibleRect", "getVisibleRectWithoutHeaders", "getVisibleCellPositions", "getColRowOffsetInViewport", "getMainViewportCoordinates", "getActiveSheetScrollInfo", "getActiveSheetDOMScrollInfo", "getSheetViewVisibleCols", "getSheetViewVisibleRows", "getFrozenSheetViewRatio", "
|
|
2194
|
+
static getters: readonly ["getColIndex", "getRowIndex", "getActiveMainViewport", "getSheetViewDimension", "getSheetViewDimensionWithHeaders", "getMainViewportRect", "isVisibleInViewport", "getEdgeScrollCol", "getEdgeScrollRow", "getVisibleFigures", "getVisibleRect", "getVisibleRectWithoutHeaders", "getVisibleCellPositions", "getColRowOffsetInViewport", "getMainViewportCoordinates", "getActiveSheetScrollInfo", "getActiveSheetDOMScrollInfo", "getSheetViewVisibleCols", "getSheetViewVisibleRows", "getFrozenSheetViewRatio", "isPixelPositionVisible", "getColDimensionsInViewport", "getRowDimensionsInViewport", "getAllActiveViewportsZones", "getRect"];
|
|
2193
2195
|
readonly viewports: Record<UID, SheetViewports | undefined>;
|
|
2194
2196
|
/**
|
|
2195
2197
|
* The viewport dimensions are usually set by one of the components
|
|
@@ -2308,7 +2310,7 @@ declare class SheetViewPlugin extends UIPlugin {
|
|
|
2308
2310
|
*/
|
|
2309
2311
|
private shiftVertically;
|
|
2310
2312
|
getVisibleFigures(): Figure[];
|
|
2311
|
-
|
|
2313
|
+
isPixelPositionVisible(position: PixelPosition): boolean;
|
|
2312
2314
|
getFrozenSheetViewRatio(sheetId: UID): {
|
|
2313
2315
|
xRatio: number;
|
|
2314
2316
|
yRatio: number;
|
|
@@ -3403,6 +3405,7 @@ type Matrix<T = unknown> = T[][];
|
|
|
3403
3405
|
type FunctionResultObject = {
|
|
3404
3406
|
value: CellValue;
|
|
3405
3407
|
format?: Format;
|
|
3408
|
+
errorOriginPosition?: CellPosition;
|
|
3406
3409
|
message?: string;
|
|
3407
3410
|
};
|
|
3408
3411
|
type FunctionResultNumber = {
|
|
@@ -3458,10 +3461,6 @@ interface PaneDivision {
|
|
|
3458
3461
|
ySplit: number;
|
|
3459
3462
|
}
|
|
3460
3463
|
type BorderPosition = "all" | "hv" | "h" | "v" | "external" | "left" | "top" | "right" | "bottom" | "clear";
|
|
3461
|
-
type BorderDescription = {
|
|
3462
|
-
vertical?: BorderDescr;
|
|
3463
|
-
horizontal?: BorderDescr;
|
|
3464
|
-
} | undefined;
|
|
3465
3464
|
declare const enum DIRECTION {
|
|
3466
3465
|
UP = "up",
|
|
3467
3466
|
DOWN = "down",
|
|
@@ -3985,6 +3984,10 @@ interface SpreadsheetChildEnv extends NotificationStoreMethods {
|
|
|
3985
3984
|
getStore: Get;
|
|
3986
3985
|
}
|
|
3987
3986
|
|
|
3987
|
+
interface RangeStringOptions {
|
|
3988
|
+
useBoundedReference?: boolean;
|
|
3989
|
+
useFixedReference?: boolean;
|
|
3990
|
+
}
|
|
3988
3991
|
declare class RangeAdapter implements CommandHandler<CoreCommand> {
|
|
3989
3992
|
private getters;
|
|
3990
3993
|
private providers;
|
|
@@ -4032,11 +4035,10 @@ declare class RangeAdapter implements CommandHandler<CoreCommand> {
|
|
|
4032
4035
|
* @param range the range (received from getRangeFromXC or getRangeFromZone)
|
|
4033
4036
|
* @param forSheetId the id of the sheet where the range string is supposed to be used.
|
|
4034
4037
|
* @param options
|
|
4035
|
-
* @param options.useBoundedReference if true, the range will be returned with
|
|
4038
|
+
* @param options.useBoundedReference if true, the range will be returned with bounded row and column
|
|
4039
|
+
* @param options.useFixedReference if true, the range will be returned with fixed row and column
|
|
4036
4040
|
*/
|
|
4037
|
-
getRangeString(range: Range, forSheetId: UID, options?:
|
|
4038
|
-
useBoundedReference: boolean;
|
|
4039
|
-
}): string;
|
|
4041
|
+
getRangeString(range: Range, forSheetId: UID, options?: RangeStringOptions): string;
|
|
4040
4042
|
getRangeDataFromXc(sheetId: UID, xc: string): RangeData;
|
|
4041
4043
|
getRangeDataFromZone(sheetId: UID, zone: Zone | UnboundedZone): RangeData;
|
|
4042
4044
|
getRangeFromZone(sheetId: UID, zone: Zone | UnboundedZone): Range;
|
|
@@ -4099,7 +4101,7 @@ declare class CorePlugin<State = any> extends BasePlugin<State, CoreCommand> imp
|
|
|
4099
4101
|
}
|
|
4100
4102
|
|
|
4101
4103
|
interface BordersPluginState {
|
|
4102
|
-
readonly borders: Record<UID, (
|
|
4104
|
+
readonly borders: Record<UID, ((Border$1 | undefined)[] | undefined)[] | undefined>;
|
|
4103
4105
|
}
|
|
4104
4106
|
/**
|
|
4105
4107
|
* Formatting plugin.
|
|
@@ -8173,25 +8175,6 @@ declare class ContentEditableHelper {
|
|
|
8173
8175
|
start: number;
|
|
8174
8176
|
end: number;
|
|
8175
8177
|
};
|
|
8176
|
-
/**
|
|
8177
|
-
* Computes the text 'index' inside this.el based on the currently selected node and its offset.
|
|
8178
|
-
* The selected node is either a Text node or an Element node.
|
|
8179
|
-
*
|
|
8180
|
-
* case 1 -Text node:
|
|
8181
|
-
* the offset is the number of characters from the start of the node. We have to add this offset to the
|
|
8182
|
-
* content length of all previous nodes.
|
|
8183
|
-
*
|
|
8184
|
-
* case 2 - Element node:
|
|
8185
|
-
* the offset is the number of child nodes before the selected node. We have to add the content length of
|
|
8186
|
-
* all the bnodes prior to the selected node as well as the content of the child node before the offset.
|
|
8187
|
-
*
|
|
8188
|
-
* See the MDN documentation for more details.
|
|
8189
|
-
* https://developer.mozilla.org/en-US/docs/Web/API/Range/startOffset
|
|
8190
|
-
* https://developer.mozilla.org/en-US/docs/Web/API/Range/endOffset
|
|
8191
|
-
*
|
|
8192
|
-
*/
|
|
8193
|
-
private findSelectionIndex;
|
|
8194
|
-
private getStartAndEndSelection;
|
|
8195
8178
|
getText(): string;
|
|
8196
8179
|
}
|
|
8197
8180
|
|
|
@@ -9635,7 +9618,7 @@ declare function useHighlights(highlightProvider: HighlightProvider): void;
|
|
|
9635
9618
|
declare class MainChartPanelStore extends SpreadsheetStore {
|
|
9636
9619
|
mutators: readonly ["activatePanel", "changeChartType"];
|
|
9637
9620
|
panel: "configuration" | "design";
|
|
9638
|
-
private
|
|
9621
|
+
private creationContexts;
|
|
9639
9622
|
activatePanel(panel: "configuration" | "design"): void;
|
|
9640
9623
|
changeChartType(figureId: UID, newDisplayType: string): void;
|
|
9641
9624
|
private getChartDefinitionFromContextCreation;
|
|
@@ -13228,4 +13211,4 @@ declare const chartHelpers: {
|
|
|
13228
13211
|
WaterfallChart: typeof WaterfallChart;
|
|
13229
13212
|
};
|
|
13230
13213
|
|
|
13231
|
-
export { AST, ASTFuncall, AboveAverageRule, AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, ActivateNextSheetCommand, ActivatePreviousSheetCommand, ActivateSheetCommand, AddColumnsRowsCommand, AddConditionalFormatCommand, AddDataValidationCommand, AddFunctionDescription, AddMergeCommand, AddPivotCommand, Aggregator, Alias, Align, AlphanumericIncrementModifier, AnchorZone, ApplyRangeChange, ApplyRangeChangeResult, Arg, ArgDefinition, ArgType, AutoFillCellCommand, AutofillAutoCommand, AutofillCellData, AutofillCommand, AutofillData, AutofillModifier, AutofillModifierImplementation, AutofillResult, AutofillSelectCommand, AutofillTableCommand, AutoresizeColumnsCommand, AutoresizeRowsCommand, AxesDesign, AxisDesign, AxisType, BeginsWithRule, BooleanCell, Border$1 as Border, BorderData, BorderDescr,
|
|
13214
|
+
export { AST, ASTFuncall, AboveAverageRule, AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, ActivateNextSheetCommand, ActivatePreviousSheetCommand, ActivateSheetCommand, AddColumnsRowsCommand, AddConditionalFormatCommand, AddDataValidationCommand, AddFunctionDescription, AddMergeCommand, AddPivotCommand, Aggregator, Alias, Align, AlphanumericIncrementModifier, AnchorZone, ApplyRangeChange, ApplyRangeChangeResult, Arg, ArgDefinition, ArgType, AutoFillCellCommand, AutofillAutoCommand, AutofillCellData, AutofillCommand, AutofillData, AutofillModifier, AutofillModifierImplementation, AutofillResult, AutofillSelectCommand, AutofillTableCommand, AutoresizeColumnsCommand, AutoresizeRowsCommand, AxesDesign, AxisDesign, AxisType, BeginsWithRule, BooleanCell, Border$1 as Border, BorderData, BorderDescr, BorderPosition, BorderStyle, Box, BoxTextContent, CHART_TYPES, CSSProperties, CancelledReason, Cell, CellErrorType, CellIsRule, CellPosition, CellValue, CellValueType, ChangeType, ChartAxisFormats, ChartCreationContext, ChartDefinition, ChartJSRuntime, ChartRuntime, ChartRuntimeGenerationArgs, ChartType, ChartWithDataSetDefinition, CleanClipBoardHighlightCommand, ClearCellCommand, ClearCellsCommand, ClearFormattingCommand, Client, ClientId, ClientJoinedMessage, ClientLeftMessage, ClientMovedMessage, ClientPosition, ClipboardCell, ClipboardCellData, ClipboardData, ClipboardFigureData, ClipboardMIMEType, ClipboardOperation, ClipboardOptions, ClipboardPasteOptions, ClipboardPasteTarget, Cloneable, CollaborationMessage, CollaborativeEvent, CollaborativeEventReceived, CollaborativeEventTypes, Color, ColorScaleMidPointThreshold, ColorScaleRule, ColorScaleThreshold, ColorSheetCommand, Command, CommandDispatcher, CommandHandler, CommandResult, CommandTypes, CommonPivotCoreDefinition, CompiledFormula, ComposerFocusType, ComputeFunction, ComputedTableStyle, ConditionalFormat, ConditionalFormatInternal, ConditionalFormatRule, ConditionalFormatRuleInternal, ConditionalFormattingOperatorValues, ConsecutiveIndexes, ContainsTextRule, CopyCommand, CopyModifier, CopyPasteCellsAboveCommand, CopyPasteCellsOnLeftCommand, CoreCommand, CoreCommandDispatcher, CoreCommandTypes, CoreGetters, CorePlugin, CoreTable, CoreTableType, CoreViewCommand, CoreViewCommandTypes, CoreViewPlugin, CreateChartCommand, CreateFigureCommand, CreateImageOverCommand, CreateRevisionOptions, CreateSheetCommand, CreateTableCommand, CreateTableStyleCommand, Currency, CustomFormulaCriterion, CustomizedDataSet, CutCommand, DEFAULT_LOCALE, DEFAULT_LOCALES, DIRECTION, DOMCoordinates, DOMDimension, DataBarFill, DataBarRule, DataBarRuleInternal, DataSet, DataValidationCriterion, DataValidationCriterionType, DataValidationDateCriterion, DataValidationRule, DataValidationRuleData, DatasetDesign, DatasetValues, DateCriterionValue, DateIncrementModifier, DateIsAfterCriterion, DateIsBeforeCriterion, DateIsBetweenCriterion, DateIsCriterion, DateIsNotBetweenCriterion, DateIsOnOrAfterCriterion, DateIsOnOrBeforeCriterion, DateIsValidCriterion, DebouncedFunction, DeleteCellCommand, DeleteContentCommand, DeleteFigureCommand, DeleteSheetCommand, Dependencies, Dimension, DimensionTree, DimensionTreeNode, Direction$1 as Direction, DispatchResult, DuplicatePivotCommand, DuplicatePivotInNewSheetCommand, DuplicateSheetCommand, DynamicTable, EdgeScrollInfo, EditTextOptions, EditionMode, EmptyCell, EndsWithRule, EnrichedToken, EnsureRange, ErrorCell, EvalContext, EvaluateCellsCommand, EvaluateChartsCommand, EvaluatedCell, EvaluationError, ExcelChartDataset, ExcelChartDefinition, ExcelChartType, ExcelFigureSize, ExcelFilterData, ExcelHeaderData, ExcelSheetData, ExcelTableData, ExcelWorkbookData, ExpressionRule, Figure, FigureData, FigureSize, Filter, FilterId, FoldAllHeaderGroupsCommand, FoldHeaderGroupCommand, FoldHeaderGroupsInZoneCommand, Format, FormattedValue, FormulaCell, FormulaModifier, FormulaToExecute, FreezeColumnsCommand, FreezeRowsCommand, FunctionDescription, FunctionRegistry, FunctionResultNumber, FunctionResultObject, GeneratorCell, GenericDefinition, GetSymbolValue, Getters, Granularity, GridClickModifiers, GridRenderingContext, GroupHeadersCommand, HSLA, HeaderData, HeaderDimensions, HeaderGroup, HeaderIndex, HeadersDependentCommand, HideColumnsRowsCommand, HideSheetCommand, Highlight$1 as Highlight, HistoryChange, IconSet, IconSetRule, IconThreshold, Image, Immutable, Increment, IncrementModifier, InformationNotification, InitPivotParams, InsertCellCommand, InsertNewPivotCommand, InsertPivotCommand, InsertPivotWithTableCommand, IsBetweenCriterion, IsCheckboxCriterion, IsEqualCriterion, IsGreaterOrEqualToCriterion, IsGreaterThanCriterion, IsLessOrEqualToCriterion, IsLessThanCriterion, IsNotBetweenCriterion, IsNotEqualCriterion, IsValueInListCriterion, IsValueInRangeCriterion, LabelValues, LayerName, Lazy, Link, LiteralCell, LocalCommand, Locale, LocaleCode, LocaleFormat, Matrix, Maybe, MenuMouseEvent, Merge, Model, MoveColumnsRowsCommand, MoveConditionalFormatCommand, MoveRangeCommand, MoveSheetCommand, MoveViewportDownCommand, MoveViewportToCellCommand, MoveViewportUpCommand, NewLocalStateUpdateEvent, NotContainsTextRule, NotificationType, NumberCell, OSClipboardContent, Offset, OperationSequenceNode, OrderedLayers, PaintFormat, PaneDivision, ParsedOSClipboardContent, PasteCommand, PasteFromOSClipboardCommand, Pivot, PivotColRowDomain, PivotCoreDefinition, PivotCoreDimension, PivotCoreMeasure, PivotDimension$1 as PivotDimension, PivotDomain, PivotEmptyCell, PivotField, PivotFields, PivotHeaderCell, PivotMeasure, PivotMeasureDisplay, PivotMeasureDisplayType, PivotMeasureHeaderCell, PivotNode, PivotRuntimeDefinition, PivotSortedColumn, PivotTableCell, PivotTableColumn, PivotTableData, PivotTableRow, PivotTimeAdapter, PivotTimeAdapterNotNull, PivotValueCell, Pixel, PixelPosition, Position$1 as Position, PositionDependentCommand, PropsOf, RGBA, Range, RangeCompiledFormula, RangeData, RangePart, RangeProvider, RangesDependentCommand, Rect, RedoCommand, Ref, ReferenceDenormalizer, RefreshPivotCommand, Registry, RemoteRevisionMessage, RemoteRevisionReceivedEvent, RemoveColumnsRowsCommand, RemoveConditionalFormatCommand, RemoveDataValidationCommand, RemoveDuplicatesCommand, RemoveMergeCommand, RemovePivotCommand, RemoveTableCommand, RemoveTableStyleCommand, RenamePivotCommand, RenameSheetCommand, RepeatPasteCommand, ReplaceSearchCommand, RequestRedoCommand, RequestUndoCommand, ResizeColumnsRowsCommand, ResizeDirection, ResizeTableCommand, ResizeViewportCommand, Revision, RevisionAcknowledgedEvent, RevisionData, RevisionRedone, RevisionRedoneMessage, RevisionUndone, RevisionUndoneMessage, RevisionsDroppedEvent, Row, SPREADSHEET_DIMENSIONS, ScrollDirection$1 as ScrollDirection, SelectFigureCommand, Selection, SelectionStep, SetBorderCommand, SetContextualFormatCommand, SetDecimalCommand, SetDecimalStep, SetFormattingCommand, SetGridLinesVisibilityCommand, SetViewportOffsetCommand, SetZoneBordersCommand, Sheet, SheetDOMScrollInfo, SheetData, SheetDependentCommand, SheetScrollInfo, ShowFormulaCommand, ShowSheetCommand, SingleColorRule, SingleColorRules, SnapshotEvent, SortCommand, SortDirection, SortOptions, SplitPivotFormulaCommand, SplitTextIntoColumnsCommand, Spreadsheet, SpreadsheetChildEnv, SpreadsheetPivotCoreDefinition, SpreadsheetPivotTable, StartChangeHighlightCommand, StartCommand, StaticTable, StoreConstructor, StoreParams, Style, SumSelectionCommand, Table, TableBorder, TableConfig, TableData, TableElementStyle, TableId, TableStyle, TableStyleData, TableStyleTemplateName, TargetDependentCommand, TechnicalName, TextCell, TextContainsCriterion, TextIsCriterion, TextIsEmailCriterion, TextIsLinkCriterion, TextNotContainsCriterion, TextRule, ThresholdType, TimePeriodRule, TitleDesign, Token, Tooltip, Top10Rule, Transformation, TransformationFactory, TransportService, TrendConfiguration, TrendType, TrimWhitespaceCommand, UID, UIPlugin, UnGroupHeadersCommand, UnboundedZone, UndoCommand, UnexpectedRevisionIdEvent, UnfoldAllHeaderGroupsCommand, UnfoldHeaderGroupCommand, UnfoldHeaderGroupsInZoneCommand, UnfreezeColumnsCommand, UnfreezeColumnsRowsCommand, UnfreezeRowsCommand, UnhideColumnsRowsCommand, UpdateCellCommand, UpdateCellData, UpdateCellPositionCommand, UpdateChartCommand, UpdateFigureCommand, UpdateFilterCommand, UpdateLocaleCommand, UpdatePivotCommand, UpdateTableCommand, Validation, VerticalAlign, Viewport, WorkbookData, WorkbookHistory, Wrapping, Zone, ZoneDependentCommand, ZoneDimension, __info__, addFunction, addRenderingLayer, astToFormula, borderStyles, canExecuteInReadonly, chartHelpers, compile, compileTokens, components, constants, containsBlanksRule, containsErrorsRule, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, hooks, invalidateBordersCommands, invalidateCFEvaluationCommands, invalidateChartEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, isCoreCommand, isHeadersDependant, isMatrix, isPositionDependent, isRangeDependant, isSheetDependent, isTargetDependent, isZoneDependent, iterateAstNodes, links, load, notContainsBlanksRule, notContainsErrorsRule, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };
|