@odoo/o-spreadsheet 19.1.0-alpha.13 → 19.1.0-alpha.14
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-engine.d.ts +18 -6
- package/dist/o-spreadsheet-engine.esm.js +342 -60
- package/dist/o-spreadsheet-engine.iife.js +342 -60
- package/dist/o-spreadsheet-engine.min.iife.js +313 -313
- package/dist/o-spreadsheet.d.ts +35 -21
- package/dist/o_spreadsheet.esm.js +518 -143
- package/dist/o_spreadsheet.iife.js +518 -143
- package/dist/o_spreadsheet.min.iife.js +320 -320
- package/dist/o_spreadsheet.xml +31 -16
- package/package.json +1 -1
|
@@ -120,7 +120,7 @@ declare enum CellValueType {
|
|
|
120
120
|
* formulas.
|
|
121
121
|
*/
|
|
122
122
|
declare const POSTFIX_UNARY_OPERATORS: string[];
|
|
123
|
-
type TokenType = "OPERATOR" | "NUMBER" | "STRING" | "SYMBOL" | "SPACE" | "DEBUGGER" | "ARG_SEPARATOR" | "LEFT_PAREN" | "RIGHT_PAREN" | "REFERENCE" | "INVALID_REFERENCE" | "UNKNOWN";
|
|
123
|
+
type TokenType = "OPERATOR" | "NUMBER" | "STRING" | "SYMBOL" | "SPACE" | "DEBUGGER" | "ARG_SEPARATOR" | "ARRAY_ROW_SEPARATOR" | "LEFT_PAREN" | "RIGHT_PAREN" | "LEFT_BRACE" | "RIGHT_BRACE" | "REFERENCE" | "INVALID_REFERENCE" | "UNKNOWN";
|
|
124
124
|
interface Token {
|
|
125
125
|
readonly type: TokenType;
|
|
126
126
|
readonly value: string;
|
|
@@ -3034,7 +3034,7 @@ type SelectionEventOptions = {
|
|
|
3034
3034
|
interface SelectionEvent {
|
|
3035
3035
|
anchor: AnchorZone;
|
|
3036
3036
|
previousAnchor: AnchorZone;
|
|
3037
|
-
mode: "newAnchor" | "overrideSelection" | "updateAnchor";
|
|
3037
|
+
mode: "newAnchor" | "overrideSelection" | "updateAnchor" | "commitSelection";
|
|
3038
3038
|
options: SelectionEventOptions;
|
|
3039
3039
|
}
|
|
3040
3040
|
|
|
@@ -3063,6 +3063,7 @@ interface SelectionProcessor {
|
|
|
3063
3063
|
selectAll(): DispatchResult;
|
|
3064
3064
|
loopSelection(): DispatchResult;
|
|
3065
3065
|
selectTableAroundSelection(): DispatchResult;
|
|
3066
|
+
commitSelection(): DispatchResult;
|
|
3066
3067
|
isListening(owner: unknown): boolean;
|
|
3067
3068
|
}
|
|
3068
3069
|
type SelectionStreamProcessor = SelectionProcessor & StatefulStream<SelectionEvent, AnchorZone>;
|
|
@@ -3539,6 +3540,7 @@ declare class CarouselUIPlugin extends UIPlugin {
|
|
|
3539
3540
|
private fixWrongCarouselState;
|
|
3540
3541
|
private addNewChartToCarousel;
|
|
3541
3542
|
private addFigureChartToCarousel;
|
|
3543
|
+
private duplicateCarouselChart;
|
|
3542
3544
|
private getCarouselItemId;
|
|
3543
3545
|
}
|
|
3544
3546
|
|
|
@@ -4756,10 +4758,10 @@ declare const CALENDAR_CHART_GRANULARITIES: Granularity[];
|
|
|
4756
4758
|
type CalendarChartGranularity = (typeof CALENDAR_CHART_GRANULARITIES)[number];
|
|
4757
4759
|
interface CalendarChartDefinition extends CommonChartDefinition {
|
|
4758
4760
|
readonly type: "calendar";
|
|
4761
|
+
readonly horizontalGroupBy: CalendarChartGranularity;
|
|
4762
|
+
readonly verticalGroupBy: CalendarChartGranularity;
|
|
4759
4763
|
readonly colorScale?: ChartColorScale;
|
|
4760
4764
|
readonly missingValueColor?: Color;
|
|
4761
|
-
readonly horizontalGroupBy?: CalendarChartGranularity;
|
|
4762
|
-
readonly verticalGroupBy?: CalendarChartGranularity;
|
|
4763
4765
|
}
|
|
4764
4766
|
|
|
4765
4767
|
interface ComboChartDefinition extends CommonChartDefinition {
|
|
@@ -5489,6 +5491,12 @@ interface AddFigureChartToCarouselCommand extends SheetDependentCommand {
|
|
|
5489
5491
|
carouselFigureId: UID;
|
|
5490
5492
|
chartFigureId: UID;
|
|
5491
5493
|
}
|
|
5494
|
+
interface DuplicateCarouselChartCommand extends SheetDependentCommand {
|
|
5495
|
+
type: "DUPLICATE_CAROUSEL_CHART";
|
|
5496
|
+
carouselId: UID;
|
|
5497
|
+
chartId: UID;
|
|
5498
|
+
duplicatedChartId: UID;
|
|
5499
|
+
}
|
|
5492
5500
|
interface UpdateCarouselActiveItemCommand extends SheetDependentCommand {
|
|
5493
5501
|
type: "UPDATE_CAROUSEL_ACTIVE_ITEM";
|
|
5494
5502
|
figureId: UID;
|
|
@@ -5932,7 +5940,7 @@ UpdateCellCommand | UpdateCellPositionCommand | ClearCellCommand | ClearCellsCom
|
|
|
5932
5940
|
| UpdateLocaleCommand
|
|
5933
5941
|
/** PIVOT */
|
|
5934
5942
|
| AddPivotCommand | UpdatePivotCommand | InsertPivotCommand | RenamePivotCommand | RemovePivotCommand | DuplicatePivotCommand;
|
|
5935
|
-
type LocalCommand = RequestUndoCommand | RequestRedoCommand | UndoCommand | RedoCommand | CopyCommand | CutCommand | PasteCommand | CopyPasteCellsAboveCommand | CopyPasteCellsOnLeftCommand | RepeatPasteCommand | CleanClipBoardHighlightCommand | AutoFillCellCommand | PasteFromOSClipboardCommand | AutoresizeColumnsCommand | AutoresizeRowsCommand | MoveColumnsRowsCommand | ActivateSheetCommand | EvaluateCellsCommand | EvaluateChartsCommand | StartChangeHighlightCommand | StartCommand | AutofillCommand | AutofillSelectCommand | AutofillTableCommand | ShowFormulaCommand | AutofillAutoCommand | SelectFigureCommand | ReplaceSearchCommand | SortCommand | SetDecimalCommand | SetContextualFormatCommand | ResizeViewportCommand | SetZoomCommand | SumSelectionCommand | DeleteCellCommand | InsertCellCommand | SetViewportOffsetCommand | MoveViewportDownCommand | MoveViewportUpCommand | MoveViewportToCellCommand | ActivateNextSheetCommand | ActivatePreviousSheetCommand | UpdateFilterCommand | SplitTextIntoColumnsCommand | RemoveDuplicatesCommand | TrimWhitespaceCommand | ResizeTableCommand | RefreshPivotCommand | InsertNewPivotCommand | DuplicatePivotInNewSheetCommand | InsertPivotWithTableCommand | SplitPivotFormulaCommand | PaintFormat | DeleteUnfilteredContentCommand | PivotStartPresenceTracking | PivotStopPresenceTracking | ToggleCheckboxCommand | AddNewChartToCarouselCommand | AddFigureChartToCarouselCommand | UpdateCarouselActiveItemCommand | PopOutChartFromCarouselCommand;
|
|
5943
|
+
type LocalCommand = RequestUndoCommand | RequestRedoCommand | UndoCommand | RedoCommand | CopyCommand | CutCommand | PasteCommand | CopyPasteCellsAboveCommand | CopyPasteCellsOnLeftCommand | RepeatPasteCommand | CleanClipBoardHighlightCommand | AutoFillCellCommand | PasteFromOSClipboardCommand | AutoresizeColumnsCommand | AutoresizeRowsCommand | MoveColumnsRowsCommand | ActivateSheetCommand | EvaluateCellsCommand | EvaluateChartsCommand | StartChangeHighlightCommand | StartCommand | AutofillCommand | AutofillSelectCommand | AutofillTableCommand | ShowFormulaCommand | AutofillAutoCommand | SelectFigureCommand | ReplaceSearchCommand | SortCommand | SetDecimalCommand | SetContextualFormatCommand | ResizeViewportCommand | SetZoomCommand | SumSelectionCommand | DeleteCellCommand | InsertCellCommand | SetViewportOffsetCommand | MoveViewportDownCommand | MoveViewportUpCommand | MoveViewportToCellCommand | ActivateNextSheetCommand | ActivatePreviousSheetCommand | UpdateFilterCommand | SplitTextIntoColumnsCommand | RemoveDuplicatesCommand | TrimWhitespaceCommand | ResizeTableCommand | RefreshPivotCommand | InsertNewPivotCommand | DuplicatePivotInNewSheetCommand | InsertPivotWithTableCommand | SplitPivotFormulaCommand | PaintFormat | DeleteUnfilteredContentCommand | PivotStartPresenceTracking | PivotStopPresenceTracking | ToggleCheckboxCommand | AddNewChartToCarouselCommand | AddFigureChartToCarouselCommand | DuplicateCarouselChartCommand | UpdateCarouselActiveItemCommand | PopOutChartFromCarouselCommand;
|
|
5936
5944
|
type Command = CoreCommand | LocalCommand;
|
|
5937
5945
|
/**
|
|
5938
5946
|
* Holds the result of a command dispatch.
|
|
@@ -6491,11 +6499,15 @@ interface ASTSymbol extends ASTBase {
|
|
|
6491
6499
|
type: "SYMBOL";
|
|
6492
6500
|
value: string;
|
|
6493
6501
|
}
|
|
6502
|
+
interface ASTArray extends ASTBase {
|
|
6503
|
+
type: "ARRAY";
|
|
6504
|
+
value: AST[][];
|
|
6505
|
+
}
|
|
6494
6506
|
interface ASTEmpty extends ASTBase {
|
|
6495
6507
|
type: "EMPTY";
|
|
6496
6508
|
value: "";
|
|
6497
6509
|
}
|
|
6498
|
-
type AST = ASTOperation | ASTUnaryOperation | ASTFuncall | ASTSymbol | ASTNumber | ASTBoolean | ASTString | ASTReference | ASTEmpty;
|
|
6510
|
+
type AST = ASTOperation | ASTUnaryOperation | ASTFuncall | ASTSymbol | ASTArray | ASTNumber | ASTBoolean | ASTString | ASTReference | ASTEmpty;
|
|
6499
6511
|
declare const OP_PRIORITY: {
|
|
6500
6512
|
"%": number;
|
|
6501
6513
|
"^": number;
|