@odoo/o-spreadsheet 16.0.12 → 16.0.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.
@@ -2,7 +2,7 @@ import * as _odoo_owl from '@odoo/owl';
2
2
  import { ComponentConstructor, EventBus as EventBus$1, Component } from '@odoo/owl';
3
3
  import { ChartConfiguration, ChartData, ChartDataSets, ChartOptions } from 'chart.js';
4
4
 
5
- declare type TranslationFunction = (string: string, ...values: string[] | [{
5
+ type TranslationFunction = (string: string, ...values: string[] | [{
6
6
  [key: string]: string;
7
7
  }]) => string;
8
8
  /***
@@ -81,7 +81,7 @@ interface EnrichedToken extends Token {
81
81
  functionContext?: FunctionContext;
82
82
  }
83
83
 
84
- declare type TokenType = "OPERATOR" | "NUMBER" | "STRING" | "BOOLEAN" | "FUNCTION" | "SYMBOL" | "SPACE" | "DEBUGGER" | "COMMA" | "LEFT_PAREN" | "RIGHT_PAREN" | "REFERENCE" | "INVALID_REFERENCE" | "UNKNOWN";
84
+ type TokenType = "OPERATOR" | "NUMBER" | "STRING" | "BOOLEAN" | "FUNCTION" | "SYMBOL" | "SPACE" | "DEBUGGER" | "COMMA" | "LEFT_PAREN" | "RIGHT_PAREN" | "REFERENCE" | "INVALID_REFERENCE" | "UNKNOWN";
85
85
  interface Token {
86
86
  type: TokenType;
87
87
  value: string;
@@ -128,7 +128,7 @@ interface ASTUnknown extends ASTBase {
128
128
  type: "UNKNOWN";
129
129
  value: string;
130
130
  }
131
- declare type AST = ASTOperation | ASTUnaryOperation | ASTFuncall | ASTNumber | ASTBoolean | ASTString | ASTReference | ASTUnknown;
131
+ type AST = ASTOperation | ASTUnaryOperation | ASTFuncall | ASTNumber | ASTBoolean | ASTString | ASTReference | ASTUnknown;
132
132
  /**
133
133
  * Parse an expression (as a string) into an AST.
134
134
  */
@@ -195,7 +195,7 @@ declare class EventBus<Event extends {
195
195
  */
196
196
  clear(): void;
197
197
  }
198
- declare type Callback = (...args: any[]) => void;
198
+ type Callback = (...args: any[]) => void;
199
199
  interface Subscription {
200
200
  owner: any;
201
201
  callback: Callback;
@@ -344,14 +344,14 @@ interface HeadersSelected extends SelectionEventPayload {
344
344
  interface AlterZoneCorner extends SelectionEventPayload {
345
345
  type: "AlterZoneCorner";
346
346
  }
347
- declare type SelectionEvent = Readonly<ZonesSelected | HeadersSelected | AlterZoneCorner>;
347
+ type SelectionEvent = Readonly<ZonesSelected | HeadersSelected | AlterZoneCorner>;
348
348
 
349
349
  interface StreamCallbacks<Event> {
350
350
  handleEvent: (event: Event) => void;
351
351
  release?: () => void;
352
352
  }
353
353
 
354
- declare type StatefulStream<Event, State> = {
354
+ type StatefulStream<Event, State> = {
355
355
  capture(owner: unknown, state: State, callbacks: StreamCallbacks<Event>): void;
356
356
  registerAsDefault: (owner: unknown, state: State, callbacks: StreamCallbacks<Event>) => void;
357
357
  resetDefaultAnchor: (owner: unknown, state: State) => void;
@@ -505,10 +505,10 @@ interface XLSXExport {
505
505
  * Note that the alpha channel goes first! AARRGGBB
506
506
  * e.g. "1E5010" or "331E5010"
507
507
  */
508
- declare type XlsxHexColor = string & Alias;
508
+ type XlsxHexColor = string & Alias;
509
509
 
510
- declare type VerticalAxisPosition = "left" | "right";
511
- declare type LegendPosition = "top" | "bottom" | "left" | "right" | "none";
510
+ type VerticalAxisPosition = "left" | "right";
511
+ type LegendPosition = "top" | "bottom" | "left" | "right" | "none";
512
512
 
513
513
  interface BarChartDefinition {
514
514
  readonly type: "bar";
@@ -521,7 +521,7 @@ interface BarChartDefinition {
521
521
  readonly legendPosition: LegendPosition;
522
522
  readonly stacked: boolean;
523
523
  }
524
- declare type BarChartRuntime = {
524
+ type BarChartRuntime = {
525
525
  chartJsConfig: ChartConfiguration;
526
526
  background: Color;
527
527
  };
@@ -601,7 +601,7 @@ interface LineChartDefinition {
601
601
  readonly labelsAsText: boolean;
602
602
  readonly stacked: boolean;
603
603
  }
604
- declare type LineChartRuntime = {
604
+ type LineChartRuntime = {
605
605
  chartJsConfig: ChartConfiguration;
606
606
  background: Color;
607
607
  };
@@ -615,7 +615,7 @@ interface PieChartDefinition {
615
615
  readonly background?: Color;
616
616
  readonly legendPosition: LegendPosition;
617
617
  }
618
- declare type PieChartRuntime = {
618
+ type PieChartRuntime = {
619
619
  chartJsConfig: ChartConfiguration;
620
620
  background: Color;
621
621
  };
@@ -631,8 +631,8 @@ interface ScorecardChartDefinition {
631
631
  readonly baselineColorUp: Color;
632
632
  readonly baselineColorDown: Color;
633
633
  }
634
- declare type BaselineMode = "text" | "difference" | "percentage";
635
- declare type BaselineArrowDirection = "neutral" | "up" | "down";
634
+ type BaselineMode = "text" | "difference" | "percentage";
635
+ type BaselineArrowDirection = "neutral" | "up" | "down";
636
636
  interface ScorecardChartRuntime {
637
637
  readonly title: string;
638
638
  readonly keyValue: string;
@@ -646,15 +646,15 @@ interface ScorecardChartRuntime {
646
646
  readonly baselineStyle?: Style;
647
647
  }
648
648
 
649
- declare type ChartType = "line" | "bar" | "pie" | "scorecard" | "gauge";
650
- declare type ChartDefinition = LineChartDefinition | PieChartDefinition | BarChartDefinition | ScorecardChartDefinition | GaugeChartDefinition;
651
- declare type ChartJSRuntime = LineChartRuntime | PieChartRuntime | BarChartRuntime | GaugeChartRuntime;
652
- declare type ChartRuntime = ChartJSRuntime | ScorecardChartRuntime;
649
+ type ChartType = "line" | "bar" | "pie" | "scorecard" | "gauge";
650
+ type ChartDefinition = LineChartDefinition | PieChartDefinition | BarChartDefinition | ScorecardChartDefinition | GaugeChartDefinition;
651
+ type ChartJSRuntime = LineChartRuntime | PieChartRuntime | BarChartRuntime | GaugeChartRuntime;
652
+ type ChartRuntime = ChartJSRuntime | ScorecardChartRuntime;
653
653
  interface ExcelChartDataset {
654
654
  readonly label?: string;
655
655
  readonly range: string;
656
656
  }
657
- declare type ExcelChartType = "line" | "bar" | "pie";
657
+ type ExcelChartType = "line" | "bar" | "pie";
658
658
  interface ExcelChartDefinition {
659
659
  readonly title?: string;
660
660
  readonly type: ExcelChartType;
@@ -705,8 +705,8 @@ interface ConditionalFormat {
705
705
  interface ConditionalFormatInternal extends Omit<ConditionalFormat, "ranges"> {
706
706
  ranges: Range[];
707
707
  }
708
- declare type ConditionalFormatRule = SingleColorRules | ColorScaleRule | IconSetRule;
709
- declare type SingleColorRules = CellIsRule;
708
+ type ConditionalFormatRule = SingleColorRules | ColorScaleRule | IconSetRule;
709
+ type SingleColorRules = CellIsRule;
710
710
  interface SingleColorRule {
711
711
  style: Style;
712
712
  }
@@ -715,18 +715,18 @@ interface CellIsRule extends SingleColorRule {
715
715
  operator: ConditionalFormattingOperatorValues;
716
716
  values: string[];
717
717
  }
718
- declare type ThresholdType = "value" | "number" | "percentage" | "percentile" | "formula";
719
- declare type ColorScaleThreshold = {
718
+ type ThresholdType = "value" | "number" | "percentage" | "percentile" | "formula";
719
+ type ColorScaleThreshold = {
720
720
  color: number;
721
721
  type: ThresholdType;
722
722
  value?: string;
723
723
  };
724
- declare type ColorScaleMidPointThreshold = {
724
+ type ColorScaleMidPointThreshold = {
725
725
  color: number;
726
726
  type: Exclude<ThresholdType, "value">;
727
727
  value: string;
728
728
  };
729
- declare type IconThreshold = {
729
+ type IconThreshold = {
730
730
  type: Exclude<ThresholdType, "value">;
731
731
  operator: "gt" | "ge";
732
732
  value: string;
@@ -748,8 +748,8 @@ interface IconSetRule {
748
748
  upperInflectionPoint: IconThreshold;
749
749
  lowerInflectionPoint: IconThreshold;
750
750
  }
751
- declare type ConditionalFormattingOperatorValues = "BeginsWith" | "Between" | "ContainsText" | "IsEmpty" | "IsNotEmpty" | "EndsWith" | "Equal" | "GreaterThan" | "GreaterThanOrEqual" | "LessThan" | "LessThanOrEqual" | "NotBetween" | "NotContains" | "NotEqual";
752
- declare type UpDown = "up" | "down";
751
+ type ConditionalFormattingOperatorValues = "BeginsWith" | "Between" | "ContainsText" | "IsEmpty" | "IsNotEmpty" | "EndsWith" | "Equal" | "GreaterThan" | "GreaterThanOrEqual" | "LessThan" | "LessThanOrEqual" | "NotBetween" | "NotContains" | "NotEqual";
752
+ type UpDown = "up" | "down";
753
753
 
754
754
  interface CellData {
755
755
  content?: string;
@@ -836,10 +836,11 @@ interface ExcelFilterTableData {
836
836
  }
837
837
  interface ExcelFilterData {
838
838
  colId: number;
839
- filteredValues: string[];
839
+ displayedValues: string[];
840
+ displayBlanks?: boolean;
840
841
  }
841
842
 
842
- declare type ClientId = string;
843
+ type ClientId = string;
843
844
  interface Client {
844
845
  id: ClientId;
845
846
  name: string;
@@ -885,7 +886,7 @@ interface RevisionsDroppedEvent {
885
886
  interface SnapshotEvent {
886
887
  type: "snapshot";
887
888
  }
888
- declare type CollaborativeEvent = NewLocalStateUpdateEvent | UnexpectedRevisionIdEvent | RemoteRevisionReceivedEvent | RevisionAcknowledgedEvent | RevisionUndone | RevisionRedone | RevisionsDroppedEvent | SnapshotEvent | CollaborativeEventReceived;
889
+ type CollaborativeEvent = NewLocalStateUpdateEvent | UnexpectedRevisionIdEvent | RemoteRevisionReceivedEvent | RevisionAcknowledgedEvent | RevisionUndone | RevisionRedone | RevisionsDroppedEvent | SnapshotEvent | CollaborativeEventReceived;
889
890
 
890
891
  interface AbstractMessage {
891
892
  version: number;
@@ -939,11 +940,11 @@ interface SnapshotCreatedMessage extends AbstractMessage {
939
940
  serverRevisionId: UID;
940
941
  nextRevisionId: UID;
941
942
  }
942
- declare type CollaborationMessage = RevisionUndoneMessage | RevisionRedoneMessage | RemoteRevisionMessage | SnapshotMessage | SnapshotCreatedMessage | ClientMovedMessage | ClientJoinedMessage | ClientLeftMessage;
943
- declare type StateUpdateMessage = Extract<CollaborationMessage, {
943
+ type CollaborationMessage = RevisionUndoneMessage | RevisionRedoneMessage | RemoteRevisionMessage | SnapshotMessage | SnapshotCreatedMessage | ClientMovedMessage | ClientJoinedMessage | ClientLeftMessage;
944
+ type StateUpdateMessage = Extract<CollaborationMessage, {
944
945
  nextRevisionId: UID;
945
946
  }>;
946
- declare type NewMessageCallback<T = any> = (message: T) => void;
947
+ type NewMessageCallback<T = any> = (message: T) => void;
947
948
  /**
948
949
  * The transport service allows to communicate between multiple clients.
949
950
  * A client can send any message to others.
@@ -1002,7 +1003,7 @@ interface NotifyUIEvent {
1002
1003
  * Note that the Model can be used in a standalone way to manipulate
1003
1004
  * programmatically a spreadsheet.
1004
1005
  */
1005
- declare type Mode = "normal" | "readonly" | "dashboard";
1006
+ type Mode = "normal" | "readonly" | "dashboard";
1006
1007
  interface ModelConfig {
1007
1008
  mode: Mode;
1008
1009
  evalContext: EvalContext;
@@ -1220,7 +1221,7 @@ declare class BasePlugin<State = any, C = any> implements CommandHandler<C>, Val
1220
1221
  checkValidations<T>(command: T, ...validations: Validation<T>[]): CommandResult | CommandResult[];
1221
1222
  }
1222
1223
 
1223
- declare type UIActions = Pick<ModelConfig, "notifyUI">;
1224
+ type UIActions = Pick<ModelConfig, "notifyUI">;
1224
1225
  interface UIPluginConstructor {
1225
1226
  new (getters: Getters, state: StateObserver, dispatch: CommandDispatcher["dispatch"], config: ModelConfig, selection: SelectionStreamProcessor): UIPlugin;
1226
1227
  layers: LAYERS[];
@@ -1239,7 +1240,7 @@ declare class UIPlugin<State = any, C = Command> extends BasePlugin<State, C> {
1239
1240
  drawGrid(ctx: GridRenderingContext, layer: LAYERS): void;
1240
1241
  }
1241
1242
 
1242
- declare type EditionMode = "editing" | "selecting" | "inactive";
1243
+ type EditionMode = "editing" | "selecting" | "inactive";
1243
1244
  interface ComposerSelection {
1244
1245
  start: number;
1245
1246
  end: number;
@@ -1415,7 +1416,7 @@ declare class FindAndReplacePlugin extends UIPlugin {
1415
1416
  drawGrid(renderingContext: GridRenderingContext): void;
1416
1417
  }
1417
1418
 
1418
- declare type Rect = {
1419
+ type Rect = {
1419
1420
  x: Pixel;
1420
1421
  y: Pixel;
1421
1422
  width: Pixel;
@@ -1436,7 +1437,7 @@ interface DOMDimension {
1436
1437
  * The viewport is the visible area of a sheet.
1437
1438
  * Column and row headers are not included in the viewport.
1438
1439
  */
1439
- declare type Viewport = Zone & Alias;
1440
+ type Viewport = Zone & Alias;
1440
1441
  interface SheetScrollInfo {
1441
1442
  /**
1442
1443
  * The offset in the X coordinate between the viewport left side and
@@ -1481,9 +1482,9 @@ interface EdgeScrollInfo {
1481
1482
  direction: ScrollDirection$1;
1482
1483
  delay: number;
1483
1484
  }
1484
- declare type ScrollDirection$1 = 1 | 0 | -1 | "reset";
1485
+ type ScrollDirection$1 = 1 | 0 | -1 | "reset";
1485
1486
 
1486
- declare type ClipboardPasteOptions = "onlyFormat" | "onlyValue";
1487
+ type ClipboardPasteOptions = "onlyFormat" | "onlyValue";
1487
1488
 
1488
1489
  /**
1489
1490
  * There are two kinds of commands: CoreCommands and LocalCommands
@@ -1987,7 +1988,7 @@ interface SortCommand {
1987
1988
  sortDirection: SortDirection;
1988
1989
  sortOptions?: SortOptions;
1989
1990
  }
1990
- declare type SortDirection = "ascending" | "descending";
1991
+ type SortDirection = "ascending" | "descending";
1991
1992
  interface ResizeViewportCommand {
1992
1993
  type: "RESIZE_SHEETVIEW";
1993
1994
  width: Pixel;
@@ -2050,7 +2051,7 @@ interface OpenCellPopoverCommand {
2050
2051
  interface CloseCellPopoverCommand {
2051
2052
  type: "CLOSE_CELL_POPOVER";
2052
2053
  }
2053
- declare type CoreCommand =
2054
+ type CoreCommand =
2054
2055
  /** CELLS */
2055
2056
  UpdateCellCommand | UpdateCellPositionCommand | ClearCellCommand | DeleteContentCommand
2056
2057
  /** GRID SHAPE */
@@ -2071,8 +2072,8 @@ UpdateCellCommand | UpdateCellPositionCommand | ClearCellCommand | DeleteContent
2071
2072
  | CreateChartCommand | UpdateChartCommand
2072
2073
  /** FILTERS */
2073
2074
  | CreateFilterTableCommand | RemoveFilterTableCommand;
2074
- declare type LocalCommand = RequestUndoCommand | RequestRedoCommand | UndoCommand | RedoCommand | NewInputCommand | RemoveInputCommand | UnfocusInputCommand | FocusInputCommand | AddEmptyRangeCommand | RemoveRangeCommand | ChangeRangeCommand | CopyCommand | CutCommand | PasteCommand | AutoFillCellCommand | PasteFromOSClipboardCommand | ActivatePaintFormatCommand | PasteCFCommand | AutoresizeColumnsCommand | AutoresizeRowsCommand | MoveColumnsRowsCommand | ActivateSheetCommand | PrepareExpansionCommand | StopSelectionCommand | EvaluateCellsCommand | ChangeHighlightCommand | StartChangeHighlightCommand | SetColorCommand | StopComposerSelectionCommand | StartEditionCommand | StopEditionCommand | SetCurrentContentCommand | ChangeComposerSelectionCommand | ReplaceComposerSelectionCommand | CycleEditionReferencesCommand | StartCommand | AutofillCommand | AutofillSelectCommand | ShowFormulaCommand | AutofillAutoCommand | SelectFigureCommand | UpdateSearchCommand | RefreshSearchCommand | ClearSearchCommand | SelectSearchPreviousCommand | SelectSearchNextCommand | ReplaceSearchCommand | ReplaceAllSearchCommand | SortCommand | SetDecimalCommand | ResizeViewportCommand | SumSelectionCommand | DeleteCellCommand | InsertCellCommand | SetViewportOffsetCommand | MoveViewportDownCommand | MoveViewportUpCommand | OpenCellPopoverCommand | CloseCellPopoverCommand | ActivateNextSheetCommand | ActivatePreviousSheetCommand | UpdateFilterCommand;
2075
- declare type Command = CoreCommand | LocalCommand;
2075
+ type LocalCommand = RequestUndoCommand | RequestRedoCommand | UndoCommand | RedoCommand | NewInputCommand | RemoveInputCommand | UnfocusInputCommand | FocusInputCommand | AddEmptyRangeCommand | RemoveRangeCommand | ChangeRangeCommand | CopyCommand | CutCommand | PasteCommand | AutoFillCellCommand | PasteFromOSClipboardCommand | ActivatePaintFormatCommand | PasteCFCommand | AutoresizeColumnsCommand | AutoresizeRowsCommand | MoveColumnsRowsCommand | ActivateSheetCommand | PrepareExpansionCommand | StopSelectionCommand | EvaluateCellsCommand | ChangeHighlightCommand | StartChangeHighlightCommand | SetColorCommand | StopComposerSelectionCommand | StartEditionCommand | StopEditionCommand | SetCurrentContentCommand | ChangeComposerSelectionCommand | ReplaceComposerSelectionCommand | CycleEditionReferencesCommand | StartCommand | AutofillCommand | AutofillSelectCommand | ShowFormulaCommand | AutofillAutoCommand | SelectFigureCommand | UpdateSearchCommand | RefreshSearchCommand | ClearSearchCommand | SelectSearchPreviousCommand | SelectSearchNextCommand | ReplaceSearchCommand | ReplaceAllSearchCommand | SortCommand | SetDecimalCommand | ResizeViewportCommand | SumSelectionCommand | DeleteCellCommand | InsertCellCommand | SetViewportOffsetCommand | MoveViewportDownCommand | MoveViewportUpCommand | OpenCellPopoverCommand | CloseCellPopoverCommand | ActivateNextSheetCommand | ActivatePreviousSheetCommand | UpdateFilterCommand;
2076
+ type Command = CoreCommand | LocalCommand;
2076
2077
  /**
2077
2078
  * Holds the result of a command dispatch.
2078
2079
  * The command may have been successfully dispatched or cancelled
@@ -2092,7 +2093,7 @@ declare class DispatchResult {
2092
2093
  */
2093
2094
  isCancelledBecause(reason: CancelledReason): boolean;
2094
2095
  }
2095
- declare type CancelledReason = Exclude<CommandResult, CommandResult.Success>;
2096
+ type CancelledReason = Exclude<CommandResult, CommandResult.Success>;
2096
2097
  declare const enum CommandResult {
2097
2098
  Success = 0,
2098
2099
  CancelledForUnknownReason = 1,
@@ -2204,26 +2205,26 @@ interface CoreCommandDispatcher {
2204
2205
  type: T;
2205
2206
  }>>(type: T, r: Omit<C, "type">): DispatchResult;
2206
2207
  }
2207
- declare type CommandTypes = Command["type"];
2208
- declare type CoreCommandTypes = CoreCommand["type"];
2208
+ type CommandTypes = Command["type"];
2209
+ type CoreCommandTypes = CoreCommand["type"];
2209
2210
 
2210
2211
  /**
2211
2212
  * The following type is meant to be used in union with other aliases to prevent
2212
2213
  * Intellisense from resolving it.
2213
2214
  * See https://github.com/microsoft/TypeScript/issues/31940#issuecomment-841712377
2214
2215
  */
2215
- declare type Alias = {} & {};
2216
- declare type HeaderIndex = number & Alias;
2217
- declare type Pixel = number & Alias;
2218
- declare type UID = string & Alias;
2219
- declare type SetDecimalStep = 1 | -1;
2220
- declare type FilterId = UID & Alias;
2221
- declare type FilterTableId = UID & Alias;
2216
+ type Alias = {} & {};
2217
+ type HeaderIndex = number & Alias;
2218
+ type Pixel = number & Alias;
2219
+ type UID = string & Alias;
2220
+ type SetDecimalStep = 1 | -1;
2221
+ type FilterId = UID & Alias;
2222
+ type FilterTableId = UID & Alias;
2222
2223
  /**
2223
2224
  * CSS style color string
2224
2225
  * e.g. "#ABC", "#AAAFFF", "rgb(30, 80, 16)"
2225
2226
  */
2226
- declare type Color = string & Alias;
2227
+ type Color = string & Alias;
2227
2228
  interface RGBA {
2228
2229
  a: number;
2229
2230
  r: number;
@@ -2264,8 +2265,8 @@ interface ZoneDimension {
2264
2265
  height: HeaderIndex;
2265
2266
  width: HeaderIndex;
2266
2267
  }
2267
- declare type Align = "left" | "right" | "center" | undefined;
2268
- declare type Wrapping = "overflow" | "wrap" | "clip" | undefined;
2268
+ type Align = "left" | "right" | "center" | undefined;
2269
+ type Wrapping = "overflow" | "wrap" | "clip" | undefined;
2269
2270
  interface Style {
2270
2271
  bold?: boolean;
2271
2272
  italic?: boolean;
@@ -2297,35 +2298,35 @@ interface CellPosition {
2297
2298
  row: HeaderIndex;
2298
2299
  sheetId: UID;
2299
2300
  }
2300
- declare type BorderStyle = "thin" | "medium" | "thick" | "dashed" | "dotted" | "double";
2301
- declare type BorderDescr = [BorderStyle, Color];
2301
+ type BorderStyle = "thin" | "medium" | "thick" | "dashed" | "dotted" | "double";
2302
+ type BorderDescr = [BorderStyle, Color];
2302
2303
  interface Border$1 {
2303
2304
  top?: BorderDescr;
2304
2305
  left?: BorderDescr;
2305
2306
  bottom?: BorderDescr;
2306
2307
  right?: BorderDescr;
2307
2308
  }
2308
- declare type ReferenceDenormalizer = (range: Range, isMeta: boolean, functionName: string, paramNumber: number) => any | any[][];
2309
- declare type EnsureRange = (range: Range) => any[][];
2310
- declare type _CompiledFormula = (deps: Range[], refFn: ReferenceDenormalizer, range: EnsureRange, ctx: {}) => FormulaReturn;
2309
+ type ReferenceDenormalizer = (range: Range, isMeta: boolean, functionName: string, paramNumber: number) => any | any[][];
2310
+ type EnsureRange = (range: Range) => any[][];
2311
+ type _CompiledFormula = (deps: Range[], refFn: ReferenceDenormalizer, range: EnsureRange, ctx: {}) => FormulaReturn;
2311
2312
  interface CompiledFormula {
2312
2313
  execute: _CompiledFormula;
2313
2314
  tokens: Token[];
2314
2315
  dependencies: string[];
2315
2316
  }
2316
- declare type Arg = MatrixArg | PrimitiveArg;
2317
- declare type MatrixArg = ({
2317
+ type Arg = MatrixArg | PrimitiveArg;
2318
+ type MatrixArg = ({
2318
2319
  value: CellValue;
2319
2320
  format?: Format;
2320
2321
  } | undefined)[][];
2321
- declare type PrimitiveArg = {
2322
+ type PrimitiveArg = {
2322
2323
  value: PrimitiveArgValue;
2323
2324
  format?: Format;
2324
2325
  };
2325
- declare type ArgValue = PrimitiveArgValue | MatrixArgValue;
2326
- declare type MatrixArgValue = (CellValue | undefined)[][];
2327
- declare type PrimitiveArgValue = string | number | boolean | null;
2328
- declare type FunctionReturn = {
2326
+ type ArgValue = PrimitiveArgValue | MatrixArgValue;
2327
+ type MatrixArgValue = (CellValue | undefined)[][];
2328
+ type PrimitiveArgValue = string | number | boolean | null;
2329
+ type FunctionReturn = {
2329
2330
  value: FunctionReturnValue;
2330
2331
  format?: Format;
2331
2332
  };
@@ -2333,7 +2334,7 @@ interface FormulaReturn extends Omit<FunctionReturn, "value"> {
2333
2334
  value: FunctionReturnValue | null;
2334
2335
  format?: Format;
2335
2336
  }
2336
- declare type FunctionReturnValue = string | number | boolean;
2337
+ type FunctionReturnValue = string | number | boolean;
2337
2338
  interface HeaderDimensions {
2338
2339
  start: Pixel;
2339
2340
  size: Pixel;
@@ -2361,8 +2362,8 @@ interface PaneDivision {
2361
2362
  /** Represents the number of frozen rows */
2362
2363
  ySplit: number;
2363
2364
  }
2364
- declare type BorderCommand = "all" | "hv" | "h" | "v" | "external" | "left" | "top" | "right" | "bottom" | "clear";
2365
- declare type BorderDescription = {
2365
+ type BorderCommand = "all" | "hv" | "h" | "v" | "external" | "left" | "top" | "right" | "bottom" | "clear";
2366
+ type BorderDescription = {
2366
2367
  vertical?: BorderDescr;
2367
2368
  horizontal?: BorderDescr;
2368
2369
  } | undefined;
@@ -2372,24 +2373,24 @@ declare const enum DIRECTION {
2372
2373
  LEFT = "left",
2373
2374
  RIGHT = "right"
2374
2375
  }
2375
- declare type ChangeType = "REMOVE" | "RESIZE" | "MOVE" | "CHANGE" | "NONE";
2376
- declare type ApplyRangeChangeResult = {
2376
+ type ChangeType = "REMOVE" | "RESIZE" | "MOVE" | "CHANGE" | "NONE";
2377
+ type ApplyRangeChangeResult = {
2377
2378
  changeType: Exclude<ChangeType, "NONE">;
2378
2379
  range: Range;
2379
2380
  } | {
2380
2381
  changeType: "NONE";
2381
2382
  };
2382
- declare type ApplyRangeChange = (range: Range) => ApplyRangeChangeResult;
2383
- declare type Dimension = "COL" | "ROW";
2384
- declare type ConsecutiveIndexes = HeaderIndex[];
2383
+ type ApplyRangeChange = (range: Range) => ApplyRangeChangeResult;
2384
+ type Dimension = "COL" | "ROW";
2385
+ type ConsecutiveIndexes = HeaderIndex[];
2385
2386
  interface RangeProvider {
2386
2387
  adaptRanges: (applyChange: ApplyRangeChange, sheetId?: UID) => void;
2387
2388
  }
2388
- declare type Validation<T> = (toValidate: T) => CommandResult | CommandResult[];
2389
+ type Validation<T> = (toValidate: T) => CommandResult | CommandResult[];
2389
2390
  /**
2390
2391
  * Return the prop's type of a component
2391
2392
  */
2392
- declare type PropsOf<C> = C extends ComponentConstructor<infer Props> ? Props : never;
2393
+ type PropsOf<C> = C extends ComponentConstructor<infer Props> ? Props : never;
2393
2394
  /**
2394
2395
  * Container for a lazy computed value
2395
2396
  */
@@ -2415,7 +2416,7 @@ interface Lazy<T> {
2415
2416
  interface Cloneable<T> {
2416
2417
  clone: (args?: Partial<T>) => T;
2417
2418
  }
2418
- declare type CSSProperties<P extends string = string> = Record<P, string>;
2419
+ type CSSProperties<P extends string = string> = Record<P, string>;
2419
2420
  interface SortOptions {
2420
2421
  /** If true sort the headers of the range along with the rest */
2421
2422
  sortHeaders?: boolean;
@@ -2426,10 +2427,10 @@ interface MenuMouseEvent extends MouseEvent {
2426
2427
  closedMenuId?: UID;
2427
2428
  }
2428
2429
 
2429
- declare type Format = string & Alias;
2430
- declare type FormattedValue = string & Alias;
2430
+ type Format = string & Alias;
2431
+ type FormattedValue = string & Alias;
2431
2432
 
2432
- declare type Cell = ICell | FormulaCell;
2433
+ type Cell = ICell | FormulaCell;
2433
2434
  interface ICell {
2434
2435
  readonly id: UID;
2435
2436
  /**
@@ -2491,33 +2492,33 @@ interface LinkCell$1 extends ICell {
2491
2492
  */
2492
2493
  readonly isUrlEditable: boolean;
2493
2494
  }
2494
- declare type CellValue = string | number | boolean;
2495
+ type CellValue = string | number | boolean;
2495
2496
  interface CellDisplayProperties {
2496
2497
  style?: Style;
2497
2498
  format?: Format;
2498
2499
  }
2499
- declare type CellEvaluation = NumberEvaluation | TextEvaluation | BooleanEvaluation | EmptyEvaluation | InvalidEvaluation;
2500
- declare type NumberEvaluation = {
2500
+ type CellEvaluation = NumberEvaluation | TextEvaluation | BooleanEvaluation | EmptyEvaluation | InvalidEvaluation;
2501
+ type NumberEvaluation = {
2501
2502
  readonly type: CellValueType.number;
2502
2503
  readonly value: number;
2503
2504
  readonly format?: Format;
2504
2505
  };
2505
- declare type TextEvaluation = {
2506
+ type TextEvaluation = {
2506
2507
  readonly type: CellValueType.text;
2507
2508
  readonly value: string;
2508
2509
  readonly format?: Format;
2509
2510
  };
2510
- declare type BooleanEvaluation = {
2511
+ type BooleanEvaluation = {
2511
2512
  readonly type: CellValueType.boolean;
2512
2513
  readonly value: boolean;
2513
2514
  readonly format?: Format;
2514
2515
  };
2515
- declare type EmptyEvaluation = {
2516
+ type EmptyEvaluation = {
2516
2517
  readonly type: CellValueType.empty;
2517
2518
  readonly value: "";
2518
2519
  readonly format?: Format;
2519
2520
  };
2520
- declare type InvalidEvaluation = {
2521
+ type InvalidEvaluation = {
2521
2522
  readonly type: CellValueType.error;
2522
2523
  readonly value: string;
2523
2524
  readonly error: EvaluationError;
@@ -2554,7 +2555,7 @@ interface FormulaModifier {
2554
2555
  increment: number;
2555
2556
  current: number;
2556
2557
  }
2557
- declare type AutofillModifier = IncrementModifier | CopyModifier | FormulaModifier;
2558
+ type AutofillModifier = IncrementModifier | CopyModifier | FormulaModifier;
2558
2559
  interface Tooltip {
2559
2560
  props: any;
2560
2561
  component?: any;
@@ -2595,9 +2596,9 @@ interface Figure {
2595
2596
  height: Pixel;
2596
2597
  tag: string;
2597
2598
  }
2598
- declare type ResizeDirection = -1 | 0 | 1;
2599
+ type ResizeDirection = -1 | 0 | 1;
2599
2600
 
2600
- declare type ArgType = "ANY" | "BOOLEAN" | "NUMBER" | "STRING" | "DATE" | "RANGE" | "RANGE<BOOLEAN>" | "RANGE<NUMBER>" | "RANGE<DATE>" | "RANGE<STRING>" | "META";
2601
+ type ArgType = "ANY" | "BOOLEAN" | "NUMBER" | "STRING" | "DATE" | "RANGE" | "RANGE<BOOLEAN>" | "RANGE<NUMBER>" | "RANGE<DATE>" | "RANGE<STRING>" | "META";
2601
2602
  interface ArgDefinition {
2602
2603
  repeating?: boolean;
2603
2604
  optional?: boolean;
@@ -2608,8 +2609,8 @@ interface ArgDefinition {
2608
2609
  default?: boolean;
2609
2610
  defaultValue?: any;
2610
2611
  }
2611
- declare type ComputeFunctionArg<T> = T | (() => T) | undefined;
2612
- declare type ComputeFunction<T, R> = (this: EvalContext, ...args: ComputeFunctionArg<T>[]) => R;
2612
+ type ComputeFunctionArg<T> = T | (() => T) | undefined;
2613
+ type ComputeFunction<T, R> = (this: EvalContext, ...args: ComputeFunctionArg<T>[]) => R;
2613
2614
  interface AddFunctionDescription {
2614
2615
  description: string;
2615
2616
  compute: ComputeFunction<ArgValue, FunctionReturnValue>;
@@ -2625,7 +2626,7 @@ interface FunctionDescription extends AddFunctionDescription {
2625
2626
  nbrArgRepeating: number;
2626
2627
  getArgToFocus: (argPosition: number) => number;
2627
2628
  }
2628
- declare type EvalContext = {
2629
+ type EvalContext = {
2629
2630
  __lastFnCalled?: string;
2630
2631
  __originCellXC?: () => string;
2631
2632
  [key: string]: any;
@@ -3406,7 +3407,7 @@ declare class HeaderVisibilityPlugin extends CorePlugin {
3406
3407
  exportData(data: WorkbookData, exportDefaults?: boolean): void;
3407
3408
  }
3408
3409
 
3409
- declare type SheetMergeCellMap = Record<number, Record<number, number | undefined> | undefined>;
3410
+ type SheetMergeCellMap = Record<number, Record<number, number | undefined> | undefined>;
3410
3411
  interface MergeState {
3411
3412
  readonly merges: Record<UID, Record<number, Range | undefined> | undefined>;
3412
3413
  readonly mergeCellMap: Record<UID, SheetMergeCellMap | undefined>;
@@ -4309,7 +4310,7 @@ declare class InternalViewport {
4309
4310
  private adjustViewportZoneY;
4310
4311
  }
4311
4312
 
4312
- declare type SheetViewports = {
4313
+ type SheetViewports = {
4313
4314
  topLeft: InternalViewport | undefined;
4314
4315
  bottomLeft: InternalViewport | undefined;
4315
4316
  topRight: InternalViewport | undefined;
@@ -4600,52 +4601,52 @@ declare class SheetUIPlugin extends UIPlugin {
4600
4601
  * This can be generalized because the union of all indices `0 | 1 | 2 | 3 | ...`
4601
4602
  * is actually the type `number`.
4602
4603
  */
4603
- declare type GetterNames<Plugin extends {
4604
+ type GetterNames<Plugin extends {
4604
4605
  getters: readonly string[];
4605
4606
  }> = Plugin["getters"][number];
4606
- declare type SheetGetters = Pick<SheetPlugin, GetterNames<typeof SheetPlugin>>;
4607
- declare type HeaderSizeGetters = Pick<HeaderSizePlugin, GetterNames<typeof HeaderSizePlugin>>;
4608
- declare type HeaderVisibilityGetters = Pick<HeaderVisibilityPlugin, GetterNames<typeof HeaderVisibilityPlugin>>;
4609
- declare type CellGetters = Pick<CellPlugin, GetterNames<typeof CellPlugin>>;
4610
- declare type MergeGetters = Pick<MergePlugin, GetterNames<typeof MergePlugin>>;
4611
- declare type BordersGetters = Pick<BordersPlugin, GetterNames<typeof BordersPlugin>>;
4612
- declare type ChartGetters = Pick<ChartPlugin, GetterNames<typeof ChartPlugin>>;
4613
- declare type FigureGetters = Pick<FigurePlugin, GetterNames<typeof FigurePlugin>>;
4614
- declare type RangeAdapterGetters = Pick<RangeAdapter, GetterNames<typeof RangeAdapter>>;
4615
- declare type ConditionalFormatGetters = Pick<ConditionalFormatPlugin, GetterNames<typeof ConditionalFormatPlugin>>;
4616
- declare type LocalHistoryGetters = {
4607
+ type SheetGetters = Pick<SheetPlugin, GetterNames<typeof SheetPlugin>>;
4608
+ type HeaderSizeGetters = Pick<HeaderSizePlugin, GetterNames<typeof HeaderSizePlugin>>;
4609
+ type HeaderVisibilityGetters = Pick<HeaderVisibilityPlugin, GetterNames<typeof HeaderVisibilityPlugin>>;
4610
+ type CellGetters = Pick<CellPlugin, GetterNames<typeof CellPlugin>>;
4611
+ type MergeGetters = Pick<MergePlugin, GetterNames<typeof MergePlugin>>;
4612
+ type BordersGetters = Pick<BordersPlugin, GetterNames<typeof BordersPlugin>>;
4613
+ type ChartGetters = Pick<ChartPlugin, GetterNames<typeof ChartPlugin>>;
4614
+ type FigureGetters = Pick<FigurePlugin, GetterNames<typeof FigurePlugin>>;
4615
+ type RangeAdapterGetters = Pick<RangeAdapter, GetterNames<typeof RangeAdapter>>;
4616
+ type ConditionalFormatGetters = Pick<ConditionalFormatPlugin, GetterNames<typeof ConditionalFormatPlugin>>;
4617
+ type LocalHistoryGetters = {
4617
4618
  canUndo: LocalHistory["canUndo"];
4618
4619
  canRedo: LocalHistory["canRedo"];
4619
4620
  };
4620
- declare type FiltersGetters = Pick<FiltersPlugin, GetterNames<typeof FiltersPlugin>>;
4621
- declare type CoreGetters = SheetGetters & HeaderSizeGetters & HeaderVisibilityGetters & CellGetters & MergeGetters & BordersGetters & ChartGetters & ConditionalFormatGetters & FigureGetters & RangeAdapterGetters & FiltersGetters;
4622
- declare type AutofillGetters = Pick<AutofillPlugin, GetterNames<typeof AutofillPlugin>>;
4623
- declare type AutomaticSumGetters = Pick<AutomaticSumPlugin, GetterNames<typeof AutomaticSumPlugin>>;
4624
- declare type ClipboardGetters = Pick<ClipboardPlugin, GetterNames<typeof ClipboardPlugin>>;
4625
- declare type EditionGetters = Pick<EditionPlugin, GetterNames<typeof EditionPlugin>>;
4626
- declare type EvaluationGetters = Pick<EvaluationPlugin, GetterNames<typeof EvaluationPlugin>>;
4627
- declare type EvaluationChartGetters = Pick<EvaluationChartPlugin, GetterNames<typeof EvaluationChartPlugin>>;
4628
- declare type EvaluationConditionalFormatGetters = Pick<EvaluationConditionalFormatPlugin, GetterNames<typeof EvaluationConditionalFormatPlugin>>;
4629
- declare type FindAndReplaceGetters = Pick<FindAndReplacePlugin, GetterNames<typeof FindAndReplacePlugin>>;
4630
- declare type HeaderVisibilityIUIGetters = Pick<HeaderVisibilityUIPlugin, GetterNames<typeof HeaderVisibilityUIPlugin>>;
4631
- declare type HighlightGetters = Pick<HighlightPlugin, GetterNames<typeof HighlightPlugin>>;
4632
- declare type CustomColorsGetters = Pick<CustomColorsPlugin, GetterNames<typeof CustomColorsPlugin>>;
4633
- declare type RendererGetters = Pick<RendererPlugin, GetterNames<typeof RendererPlugin>>;
4634
- declare type SelectionGetters = Pick<GridSelectionPlugin, GetterNames<typeof GridSelectionPlugin>>;
4635
- declare type SelectionInputGetters = Pick<SelectionInputsManagerPlugin, GetterNames<typeof SelectionInputsManagerPlugin>>;
4636
- declare type SelectionMultiUserGetters = Pick<SelectionMultiUserPlugin, GetterNames<typeof SelectionMultiUserPlugin>>;
4637
- declare type SortGetters = Pick<SortPlugin, GetterNames<typeof SortPlugin>>;
4638
- declare type UIOptionsGetters = Pick<UIOptionsPlugin, GetterNames<typeof UIOptionsPlugin>>;
4639
- declare type SheetUIGetters = Pick<SheetUIPlugin, GetterNames<typeof SheetUIPlugin>>;
4640
- declare type ViewportGetters = Pick<SheetViewPlugin, GetterNames<typeof SheetViewPlugin>>;
4641
- declare type SessionGetters = {
4621
+ type FiltersGetters = Pick<FiltersPlugin, GetterNames<typeof FiltersPlugin>>;
4622
+ type CoreGetters = SheetGetters & HeaderSizeGetters & HeaderVisibilityGetters & CellGetters & MergeGetters & BordersGetters & ChartGetters & ConditionalFormatGetters & FigureGetters & RangeAdapterGetters & FiltersGetters;
4623
+ type AutofillGetters = Pick<AutofillPlugin, GetterNames<typeof AutofillPlugin>>;
4624
+ type AutomaticSumGetters = Pick<AutomaticSumPlugin, GetterNames<typeof AutomaticSumPlugin>>;
4625
+ type ClipboardGetters = Pick<ClipboardPlugin, GetterNames<typeof ClipboardPlugin>>;
4626
+ type EditionGetters = Pick<EditionPlugin, GetterNames<typeof EditionPlugin>>;
4627
+ type EvaluationGetters = Pick<EvaluationPlugin, GetterNames<typeof EvaluationPlugin>>;
4628
+ type EvaluationChartGetters = Pick<EvaluationChartPlugin, GetterNames<typeof EvaluationChartPlugin>>;
4629
+ type EvaluationConditionalFormatGetters = Pick<EvaluationConditionalFormatPlugin, GetterNames<typeof EvaluationConditionalFormatPlugin>>;
4630
+ type FindAndReplaceGetters = Pick<FindAndReplacePlugin, GetterNames<typeof FindAndReplacePlugin>>;
4631
+ type HeaderVisibilityIUIGetters = Pick<HeaderVisibilityUIPlugin, GetterNames<typeof HeaderVisibilityUIPlugin>>;
4632
+ type HighlightGetters = Pick<HighlightPlugin, GetterNames<typeof HighlightPlugin>>;
4633
+ type CustomColorsGetters = Pick<CustomColorsPlugin, GetterNames<typeof CustomColorsPlugin>>;
4634
+ type RendererGetters = Pick<RendererPlugin, GetterNames<typeof RendererPlugin>>;
4635
+ type SelectionGetters = Pick<GridSelectionPlugin, GetterNames<typeof GridSelectionPlugin>>;
4636
+ type SelectionInputGetters = Pick<SelectionInputsManagerPlugin, GetterNames<typeof SelectionInputsManagerPlugin>>;
4637
+ type SelectionMultiUserGetters = Pick<SelectionMultiUserPlugin, GetterNames<typeof SelectionMultiUserPlugin>>;
4638
+ type SortGetters = Pick<SortPlugin, GetterNames<typeof SortPlugin>>;
4639
+ type UIOptionsGetters = Pick<UIOptionsPlugin, GetterNames<typeof UIOptionsPlugin>>;
4640
+ type SheetUIGetters = Pick<SheetUIPlugin, GetterNames<typeof SheetUIPlugin>>;
4641
+ type ViewportGetters = Pick<SheetViewPlugin, GetterNames<typeof SheetViewPlugin>>;
4642
+ type SessionGetters = {
4642
4643
  getClient: Session["getClient"];
4643
4644
  getConnectedClients: Session["getConnectedClients"];
4644
4645
  isFullySynchronized: Session["isFullySynchronized"];
4645
4646
  };
4646
- declare type CellPopoverPluginGetters = Pick<CellPopoverPlugin, GetterNames<typeof CellPopoverPlugin>>;
4647
- declare type FilterEvaluationGetters = Pick<FilterEvaluationPlugin, GetterNames<typeof FilterEvaluationPlugin>>;
4648
- declare type Getters = {
4647
+ type CellPopoverPluginGetters = Pick<CellPopoverPlugin, GetterNames<typeof CellPopoverPlugin>>;
4648
+ type FilterEvaluationGetters = Pick<FilterEvaluationPlugin, GetterNames<typeof FilterEvaluationPlugin>>;
4649
+ type Getters = {
4649
4650
  isReadonly: () => boolean;
4650
4651
  isDashboard: () => boolean;
4651
4652
  } & LocalHistoryGetters & CoreGetters & SessionGetters & AutofillGetters & AutomaticSumGetters & ClipboardGetters & EditionGetters & EvaluationGetters & EvaluationChartGetters & EvaluationConditionalFormatGetters & FindAndReplaceGetters & HighlightGetters & CustomColorsGetters & RendererGetters & SelectionGetters & SelectionInputGetters & SelectionMultiUserGetters & SortGetters & UIOptionsGetters & SheetUIGetters & ViewportGetters & CellPopoverPluginGetters & FilterEvaluationGetters & HeaderVisibilityIUIGetters;
@@ -4664,7 +4665,7 @@ interface WorkbookHistory<Plugin> {
4664
4665
  update<T extends keyof Plugin, U extends keyof NonNullable<Plugin[T]>, K extends keyof NonNullable<NonNullable<Plugin[T]>[U]>, V extends keyof NonNullable<NonNullable<NonNullable<Plugin[T]>[U]>[K]>, W extends keyof NonNullable<NonNullable<NonNullable<NonNullable<Plugin[T]>[U]>[K]>[V]>>(key1: T, key2: U, key3: K, key4: V, key5: W, val: NonNullable<NonNullable<NonNullable<NonNullable<Plugin[T]>[U]>[K]>[V]>[W]): void;
4665
4666
  update<T extends keyof Plugin, U extends keyof NonNullable<Plugin[T]>, K extends keyof NonNullable<NonNullable<Plugin[T]>[U]>, V extends keyof NonNullable<NonNullable<NonNullable<Plugin[T]>[U]>[K]>, W extends keyof NonNullable<NonNullable<NonNullable<NonNullable<Plugin[T]>[U]>[K]>[V]>, Y extends keyof NonNullable<NonNullable<NonNullable<NonNullable<NonNullable<Plugin[T]>[U]>[K]>[V]>[W]>>(key1: T, key2: U, key3: K, key4: V, key5: W, key6: Y, val: NonNullable<NonNullable<NonNullable<NonNullable<NonNullable<Plugin[T]>[U]>[K]>[V]>[W]>[Y]): void;
4666
4667
  }
4667
- declare type Transformation<T = unknown> = (dataToTransform: T) => T;
4668
+ type Transformation<T = unknown> = (dataToTransform: T) => T;
4668
4669
  interface TransformationFactory<T = unknown> {
4669
4670
  /**
4670
4671
  * Build a transformation function to transform any operation as if the execution of
@@ -4678,11 +4679,11 @@ interface TransformationFactory<T = unknown> {
4678
4679
  with: (operation: T) => Transformation<T>;
4679
4680
  }
4680
4681
 
4681
- declare type SelectionDirection = "up" | "down" | "left" | "right";
4682
- declare type SelectionStep = number | "end";
4682
+ type SelectionDirection = "up" | "down" | "left" | "right";
4683
+ type SelectionStep = number | "end";
4683
4684
 
4684
- declare type CellPopoverType = "ErrorToolTip" | "LinkDisplay" | "FilterMenu" | "LinkEditor";
4685
- declare type SizedComponentConstructor = ComponentConstructor & {
4685
+ type CellPopoverType = "ErrorToolTip" | "LinkDisplay" | "FilterMenu" | "LinkEditor";
4686
+ type SizedComponentConstructor = ComponentConstructor & {
4686
4687
  size: {
4687
4688
  width: number;
4688
4689
  height: number;
@@ -4692,7 +4693,7 @@ declare type SizedComponentConstructor = ComponentConstructor & {
4692
4693
  * If the cell at the given position have an associated component (linkDisplay, errorTooltip, ...),
4693
4694
  * returns the parameters to display the component
4694
4695
  */
4695
- declare type CellPopoverBuilder = (position: Position$1, getters: Getters) => CellPopoverComponent<SizedComponentConstructor>;
4696
+ type CellPopoverBuilder = (position: Position$1, getters: Getters) => CellPopoverComponent<SizedComponentConstructor>;
4696
4697
  interface PopoverBuilders {
4697
4698
  onOpen?: CellPopoverBuilder;
4698
4699
  onHover?: CellPopoverBuilder;
@@ -4705,14 +4706,14 @@ interface ClosedCellPopover {
4705
4706
  * i.e. which component class, which props and where to
4706
4707
  * display it relative to the cell
4707
4708
  */
4708
- declare type OpenCellPopover<C extends ComponentConstructor> = {
4709
+ type OpenCellPopover<C extends ComponentConstructor> = {
4709
4710
  isOpen: true;
4710
4711
  Component: C;
4711
4712
  props: PropsOf<C>;
4712
4713
  cellCorner: "TopRight" | "BottomLeft";
4713
4714
  };
4714
- declare type CellPopoverComponent<C extends SizedComponentConstructor = SizedComponentConstructor> = ClosedCellPopover | OpenCellPopover<C>;
4715
- declare type PositionedCellPopover<C extends SizedComponentConstructor = SizedComponentConstructor> = {
4715
+ type CellPopoverComponent<C extends SizedComponentConstructor = SizedComponentConstructor> = ClosedCellPopover | OpenCellPopover<C>;
4716
+ type PositionedCellPopover<C extends SizedComponentConstructor = SizedComponentConstructor> = {
4716
4717
  isOpen: true;
4717
4718
  Component: C;
4718
4719
  props: PropsOf<C>;
@@ -4778,7 +4779,7 @@ interface CellBuilder {
4778
4779
  createCell: (id: UID, content: string, properties: CellDisplayProperties, sheetId: UID, getters: CoreGetters) => Cell;
4779
4780
  }
4780
4781
 
4781
- declare type TransformationFunction<U extends CoreCommandTypes, V extends CoreCommandTypes> = (toTransform: Extract<CoreCommand, {
4782
+ type TransformationFunction<U extends CoreCommandTypes, V extends CoreCommandTypes> = (toTransform: Extract<CoreCommand, {
4782
4783
  type: U;
4783
4784
  }>, executed: Extract<CoreCommand, {
4784
4785
  type: V;
@@ -4968,7 +4969,7 @@ declare class GaugeChartConfigPanel extends Component<Props$v, SpreadsheetChildE
4968
4969
  updateDataRange(): void;
4969
4970
  }
4970
4971
 
4971
- declare type GaugeMenu = "backgroundColor" | "sectionColor-lowerColor" | "sectionColor-middleColor" | "sectionColor-upperColor";
4972
+ type GaugeMenu = "backgroundColor" | "sectionColor-lowerColor" | "sectionColor-middleColor" | "sectionColor-upperColor";
4972
4973
  interface Props$u {
4973
4974
  figureId: UID;
4974
4975
  definition: GaugeChartDefinition;
@@ -5029,7 +5030,7 @@ declare class ScorecardChartConfigPanel extends Component<Props$t, SpreadsheetCh
5029
5030
  updateBaselineMode(ev: any): void;
5030
5031
  }
5031
5032
 
5032
- declare type ColorPickerId = undefined | "backgroundColor" | "baselineColorUp" | "baselineColorDown";
5033
+ type ColorPickerId = undefined | "backgroundColor" | "baselineColorUp" | "baselineColorDown";
5033
5034
  interface Props$s {
5034
5035
  figureId: UID;
5035
5036
  definition: ScorecardChartDefinition;
@@ -5104,9 +5105,9 @@ interface MenuItem {
5104
5105
  icon?: string;
5105
5106
  textColor?: Color;
5106
5107
  }
5107
- declare type FullMenuItem = Required<MenuItem>;
5108
- declare type MenuItemsBuilder = (env: SpreadsheetChildEnv) => FullMenuItem[];
5109
- declare type menuChildren = (FullMenuItem | MenuItemsBuilder)[];
5108
+ type FullMenuItem = Required<MenuItem>;
5109
+ type MenuItemsBuilder = (env: SpreadsheetChildEnv) => FullMenuItem[];
5110
+ type menuChildren = (FullMenuItem | MenuItemsBuilder)[];
5110
5111
  declare function createFullMenuItem(key: string, value: MenuItem): FullMenuItem;
5111
5112
  /**
5112
5113
  * The class Registry is extended in order to add the function addChild
@@ -5480,7 +5481,7 @@ declare class FunctionDescriptionProvider extends Component<Props$k> {
5480
5481
  onMouseMove(): void;
5481
5482
  }
5482
5483
 
5483
- declare type HtmlContent = {
5484
+ type HtmlContent = {
5484
5485
  value: string;
5485
5486
  color?: Color;
5486
5487
  class?: string;
@@ -5544,6 +5545,7 @@ declare class Composer extends Component<Props$j, SpreadsheetChildEnv> {
5544
5545
  onCompositionStart(): void;
5545
5546
  onCompositionEnd(): void;
5546
5547
  onKeydown(ev: KeyboardEvent): void;
5548
+ private updateCursorIfNeeded;
5547
5549
  onInput(): void;
5548
5550
  onKeyup(ev: KeyboardEvent): void;
5549
5551
  onMousedown(ev: MouseEvent): void;
@@ -5619,7 +5621,7 @@ declare class FilterIconsOverlay extends Component<Props$g, SpreadsheetChildEnv>
5619
5621
  private isPositionVisible;
5620
5622
  }
5621
5623
 
5622
- declare type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right" | "bottom" | "bottom left" | "left";
5624
+ type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right" | "bottom" | "bottom left" | "left";
5623
5625
  interface Props$f {
5624
5626
  figure: Figure;
5625
5627
  style: string;
@@ -5648,7 +5650,7 @@ declare class FigureComponent extends Component<Props$f, SpreadsheetChildEnv> {
5648
5650
  onKeyDown(ev: KeyboardEvent): void;
5649
5651
  }
5650
5652
 
5651
- declare type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
5653
+ type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
5652
5654
  interface DndState {
5653
5655
  figId: string | undefined;
5654
5656
  x: Pixel;
@@ -5909,7 +5911,7 @@ declare class HeadersOverlay extends Component<any, SpreadsheetChildEnv> {
5909
5911
  selectAll(): void;
5910
5912
  }
5911
5913
 
5912
- declare type Orientation$1 = "n" | "s" | "w" | "e";
5914
+ type Orientation$1 = "n" | "s" | "w" | "e";
5913
5915
  interface Props$b {
5914
5916
  zone: Zone;
5915
5917
  orientation: Orientation$1;
@@ -5922,7 +5924,7 @@ declare class Border extends Component<Props$b, SpreadsheetChildEnv> {
5922
5924
  onMouseDown(ev: MouseEvent): void;
5923
5925
  }
5924
5926
 
5925
- declare type Orientation = "nw" | "ne" | "sw" | "se";
5927
+ type Orientation = "nw" | "ne" | "sw" | "se";
5926
5928
  interface Props$a {
5927
5929
  zone: Zone;
5928
5930
  color: Color;
@@ -5956,7 +5958,7 @@ declare class Highlight extends Component<Props$9, SpreadsheetChildEnv> {
5956
5958
  onMoveHighlight(clientX: Pixel, clientY: Pixel): void;
5957
5959
  }
5958
5960
 
5959
- declare type ScrollDirection = "horizontal" | "vertical";
5961
+ type ScrollDirection = "horizontal" | "vertical";
5960
5962
 
5961
5963
  interface Props$8 {
5962
5964
  width: Pixel;
@@ -6044,7 +6046,7 @@ declare class VerticalScrollBar extends Component<Props$6, SpreadsheetChildEnv>
6044
6046
  * - a horizontal resizer (to resize columns)
6045
6047
  * - a vertical resizer (same, for rows)
6046
6048
  */
6047
- declare type ContextMenuType = "ROW" | "COL" | "CELL" | "FILTER";
6049
+ type ContextMenuType = "ROW" | "COL" | "CELL" | "FILTER";
6048
6050
  interface Props$5 {
6049
6051
  sidePanelIsOpen: boolean;
6050
6052
  exposeFocus: (focus: () => void) => void;
@@ -6298,7 +6300,7 @@ interface FontSize {
6298
6300
  px: number;
6299
6301
  }
6300
6302
 
6301
- declare type Tool = "" | "formatTool" | "alignTool" | "textColorTool" | "fillColorTool" | "borderTool" | "fontSizeTool";
6303
+ type Tool = "" | "formatTool" | "alignTool" | "textColorTool" | "fillColorTool" | "borderTool" | "fontSizeTool";
6302
6304
  interface State {
6303
6305
  menuState: MenuState;
6304
6306
  activeTool: Tool;
@@ -6379,7 +6381,7 @@ declare class TopBar extends Component<Props, SpreadsheetChildEnv> {
6379
6381
  removeFilter(): void;
6380
6382
  }
6381
6383
 
6382
- declare type ComposerFocusType = "inactive" | "cellFocus" | "contentFocus";
6384
+ type ComposerFocusType = "inactive" | "cellFocus" | "contentFocus";
6383
6385
  interface SpreadsheetProps {
6384
6386
  model: Model;
6385
6387
  exposeSpreadsheet?: (spreadsheet: Spreadsheet) => void;