@odoo/o-spreadsheet 16.1.14 → 16.1.15

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.
@@ -40,7 +40,7 @@ interface EnrichedToken extends Token {
40
40
  functionContext?: FunctionContext;
41
41
  }
42
42
 
43
- declare type TokenType = "OPERATOR" | "NUMBER" | "STRING" | "BOOLEAN" | "FUNCTION" | "SYMBOL" | "SPACE" | "DEBUGGER" | "COMMA" | "LEFT_PAREN" | "RIGHT_PAREN" | "REFERENCE" | "INVALID_REFERENCE" | "UNKNOWN";
43
+ type TokenType = "OPERATOR" | "NUMBER" | "STRING" | "BOOLEAN" | "FUNCTION" | "SYMBOL" | "SPACE" | "DEBUGGER" | "COMMA" | "LEFT_PAREN" | "RIGHT_PAREN" | "REFERENCE" | "INVALID_REFERENCE" | "UNKNOWN";
44
44
  interface Token {
45
45
  type: TokenType;
46
46
  value: string;
@@ -87,7 +87,7 @@ interface ASTUnknown extends ASTBase {
87
87
  type: "UNKNOWN";
88
88
  value: string;
89
89
  }
90
- declare type AST = ASTOperation | ASTUnaryOperation | ASTFuncall | ASTNumber | ASTBoolean | ASTString | ASTReference | ASTUnknown;
90
+ type AST = ASTOperation | ASTUnaryOperation | ASTFuncall | ASTNumber | ASTBoolean | ASTString | ASTReference | ASTUnknown;
91
91
  /**
92
92
  * Parse an expression (as a string) into an AST.
93
93
  */
@@ -154,7 +154,7 @@ declare class EventBus<Event extends {
154
154
  */
155
155
  clear(): void;
156
156
  }
157
- declare type Callback = (...args: any[]) => void;
157
+ type Callback = (...args: any[]) => void;
158
158
  interface Subscription {
159
159
  owner: any;
160
160
  callback: Callback;
@@ -310,14 +310,14 @@ interface HeadersSelected extends SelectionEventPayload {
310
310
  interface AlterZoneCorner extends SelectionEventPayload {
311
311
  type: "AlterZoneCorner";
312
312
  }
313
- declare type SelectionEvent = Readonly<ZonesSelected | HeadersSelected | AlterZoneCorner>;
313
+ type SelectionEvent = Readonly<ZonesSelected | HeadersSelected | AlterZoneCorner>;
314
314
 
315
315
  interface StreamCallbacks<Event> {
316
316
  handleEvent: (event: Event) => void;
317
317
  release?: () => void;
318
318
  }
319
319
 
320
- declare type StatefulStream<Event, State> = {
320
+ type StatefulStream<Event, State> = {
321
321
  capture(owner: unknown, state: State, callbacks: StreamCallbacks<Event>): void;
322
322
  registerAsDefault: (owner: unknown, state: State, callbacks: StreamCallbacks<Event>) => void;
323
323
  resetDefaultAnchor: (owner: unknown, state: State) => void;
@@ -484,10 +484,10 @@ interface XLSXExport {
484
484
  * Note that the alpha channel goes first! AARRGGBB
485
485
  * e.g. "1E5010" or "331E5010"
486
486
  */
487
- declare type XlsxHexColor = string & Alias;
487
+ type XlsxHexColor = string & Alias;
488
488
 
489
- declare type VerticalAxisPosition = "left" | "right";
490
- declare type LegendPosition = "top" | "bottom" | "left" | "right" | "none";
489
+ type VerticalAxisPosition = "left" | "right";
490
+ type LegendPosition = "top" | "bottom" | "left" | "right" | "none";
491
491
 
492
492
  interface BarChartDefinition {
493
493
  readonly type: "bar";
@@ -501,7 +501,7 @@ interface BarChartDefinition {
501
501
  readonly stacked: boolean;
502
502
  readonly aggregated?: boolean;
503
503
  }
504
- declare type BarChartRuntime = {
504
+ type BarChartRuntime = {
505
505
  chartJsConfig: ChartConfiguration;
506
506
  background: Color;
507
507
  };
@@ -582,7 +582,7 @@ interface LineChartDefinition {
582
582
  readonly stacked: boolean;
583
583
  readonly aggregated?: boolean;
584
584
  }
585
- declare type LineChartRuntime = {
585
+ type LineChartRuntime = {
586
586
  chartJsConfig: ChartConfiguration;
587
587
  background: Color;
588
588
  };
@@ -597,7 +597,7 @@ interface PieChartDefinition {
597
597
  readonly legendPosition: LegendPosition;
598
598
  readonly aggregated?: boolean;
599
599
  }
600
- declare type PieChartRuntime = {
600
+ type PieChartRuntime = {
601
601
  chartJsConfig: ChartConfiguration;
602
602
  background: Color;
603
603
  };
@@ -613,8 +613,8 @@ interface ScorecardChartDefinition {
613
613
  readonly baselineColorUp: Color;
614
614
  readonly baselineColorDown: Color;
615
615
  }
616
- declare type BaselineMode = "text" | "difference" | "percentage";
617
- declare type BaselineArrowDirection = "neutral" | "up" | "down";
616
+ type BaselineMode = "text" | "difference" | "percentage";
617
+ type BaselineArrowDirection = "neutral" | "up" | "down";
618
618
  interface ScorecardChartRuntime {
619
619
  readonly title: string;
620
620
  readonly keyValue: string;
@@ -628,15 +628,15 @@ interface ScorecardChartRuntime {
628
628
  readonly baselineStyle?: Style;
629
629
  }
630
630
 
631
- declare type ChartType = "line" | "bar" | "pie" | "scorecard" | "gauge";
632
- declare type ChartDefinition = LineChartDefinition | PieChartDefinition | BarChartDefinition | ScorecardChartDefinition | GaugeChartDefinition;
633
- declare type ChartJSRuntime = LineChartRuntime | PieChartRuntime | BarChartRuntime | GaugeChartRuntime;
634
- declare type ChartRuntime = ChartJSRuntime | ScorecardChartRuntime;
631
+ type ChartType = "line" | "bar" | "pie" | "scorecard" | "gauge";
632
+ type ChartDefinition = LineChartDefinition | PieChartDefinition | BarChartDefinition | ScorecardChartDefinition | GaugeChartDefinition;
633
+ type ChartJSRuntime = LineChartRuntime | PieChartRuntime | BarChartRuntime | GaugeChartRuntime;
634
+ type ChartRuntime = ChartJSRuntime | ScorecardChartRuntime;
635
635
  interface ExcelChartDataset {
636
636
  readonly label?: string;
637
637
  readonly range: string;
638
638
  }
639
- declare type ExcelChartType = "line" | "bar" | "pie";
639
+ type ExcelChartType = "line" | "bar" | "pie";
640
640
  interface ExcelChartDefinition {
641
641
  readonly title?: string;
642
642
  readonly type: ExcelChartType;
@@ -687,8 +687,8 @@ interface ConditionalFormat {
687
687
  interface ConditionalFormatInternal extends Omit<ConditionalFormat, "ranges"> {
688
688
  ranges: Range[];
689
689
  }
690
- declare type ConditionalFormatRule = SingleColorRules | ColorScaleRule | IconSetRule;
691
- declare type SingleColorRules = CellIsRule;
690
+ type ConditionalFormatRule = SingleColorRules | ColorScaleRule | IconSetRule;
691
+ type SingleColorRules = CellIsRule;
692
692
  interface SingleColorRule {
693
693
  style: Style;
694
694
  }
@@ -697,18 +697,18 @@ interface CellIsRule extends SingleColorRule {
697
697
  operator: ConditionalFormattingOperatorValues;
698
698
  values: string[];
699
699
  }
700
- declare type ThresholdType = "value" | "number" | "percentage" | "percentile" | "formula";
701
- declare type ColorScaleThreshold = {
700
+ type ThresholdType = "value" | "number" | "percentage" | "percentile" | "formula";
701
+ type ColorScaleThreshold = {
702
702
  color: number;
703
703
  type: ThresholdType;
704
704
  value?: string;
705
705
  };
706
- declare type ColorScaleMidPointThreshold = {
706
+ type ColorScaleMidPointThreshold = {
707
707
  color: number;
708
708
  type: Exclude<ThresholdType, "value">;
709
709
  value: string;
710
710
  };
711
- declare type IconThreshold = {
711
+ type IconThreshold = {
712
712
  type: Exclude<ThresholdType, "value">;
713
713
  operator: "gt" | "ge";
714
714
  value: string;
@@ -730,8 +730,8 @@ interface IconSetRule {
730
730
  upperInflectionPoint: IconThreshold;
731
731
  lowerInflectionPoint: IconThreshold;
732
732
  }
733
- declare type ConditionalFormattingOperatorValues = "BeginsWith" | "Between" | "ContainsText" | "IsEmpty" | "IsNotEmpty" | "EndsWith" | "Equal" | "GreaterThan" | "GreaterThanOrEqual" | "LessThan" | "LessThanOrEqual" | "NotBetween" | "NotContains" | "NotEqual";
734
- declare type UpDown = "up" | "down";
733
+ type ConditionalFormattingOperatorValues = "BeginsWith" | "Between" | "ContainsText" | "IsEmpty" | "IsNotEmpty" | "EndsWith" | "Equal" | "GreaterThan" | "GreaterThanOrEqual" | "LessThan" | "LessThanOrEqual" | "NotBetween" | "NotContains" | "NotEqual";
734
+ type UpDown = "up" | "down";
735
735
 
736
736
  interface CellData {
737
737
  content?: string;
@@ -818,10 +818,11 @@ interface ExcelFilterTableData {
818
818
  }
819
819
  interface ExcelFilterData {
820
820
  colId: number;
821
- filteredValues: string[];
821
+ displayedValues: string[];
822
+ displayBlanks?: boolean;
822
823
  }
823
824
 
824
- declare type ClientId = string;
825
+ type ClientId = string;
825
826
  interface Client {
826
827
  id: ClientId;
827
828
  name: string;
@@ -867,7 +868,7 @@ interface RevisionsDroppedEvent {
867
868
  interface SnapshotEvent {
868
869
  type: "snapshot";
869
870
  }
870
- declare type CollaborativeEvent = NewLocalStateUpdateEvent | UnexpectedRevisionIdEvent | RemoteRevisionReceivedEvent | RevisionAcknowledgedEvent | RevisionUndone | RevisionRedone | RevisionsDroppedEvent | SnapshotEvent | CollaborativeEventReceived;
871
+ type CollaborativeEvent = NewLocalStateUpdateEvent | UnexpectedRevisionIdEvent | RemoteRevisionReceivedEvent | RevisionAcknowledgedEvent | RevisionUndone | RevisionRedone | RevisionsDroppedEvent | SnapshotEvent | CollaborativeEventReceived;
871
872
 
872
873
  interface AbstractMessage {
873
874
  version: number;
@@ -921,11 +922,11 @@ interface SnapshotCreatedMessage extends AbstractMessage {
921
922
  serverRevisionId: UID;
922
923
  nextRevisionId: UID;
923
924
  }
924
- declare type CollaborationMessage = RevisionUndoneMessage | RevisionRedoneMessage | RemoteRevisionMessage | SnapshotMessage | SnapshotCreatedMessage | ClientMovedMessage | ClientJoinedMessage | ClientLeftMessage;
925
- declare type StateUpdateMessage = Extract<CollaborationMessage, {
925
+ type CollaborationMessage = RevisionUndoneMessage | RevisionRedoneMessage | RemoteRevisionMessage | SnapshotMessage | SnapshotCreatedMessage | ClientMovedMessage | ClientJoinedMessage | ClientLeftMessage;
926
+ type StateUpdateMessage = Extract<CollaborationMessage, {
926
927
  nextRevisionId: UID;
927
928
  }>;
928
- declare type NewMessageCallback<T = any> = (message: T) => void;
929
+ type NewMessageCallback<T = any> = (message: T) => void;
929
930
  /**
930
931
  * The transport service allows to communicate between multiple clients.
931
932
  * A client can send any message to others.
@@ -967,14 +968,14 @@ interface FigureSize {
967
968
  width: Pixel;
968
969
  height: Pixel;
969
970
  }
970
- declare type ResizeDirection = -1 | 0 | 1;
971
+ type ResizeDirection = -1 | 0 | 1;
971
972
 
972
973
  interface Image {
973
974
  path: string;
974
975
  size: FigureSize;
975
976
  }
976
977
 
977
- declare type FilePath = string;
978
+ type FilePath = string;
978
979
  /**
979
980
  * FileStore manage the transfer of file with the server.
980
981
  */
@@ -1027,7 +1028,7 @@ interface NotifyUIEvent {
1027
1028
  * Note that the Model can be used in a standalone way to manipulate
1028
1029
  * programmatically a spreadsheet.
1029
1030
  */
1030
- declare type Mode = "normal" | "readonly" | "dashboard";
1031
+ type Mode = "normal" | "readonly" | "dashboard";
1031
1032
  interface ModelConfig {
1032
1033
  readonly mode: Mode;
1033
1034
  /**
@@ -1268,7 +1269,7 @@ declare class BasePlugin<State = any, C = any> implements CommandHandler<C>, Val
1268
1269
  checkValidations<T>(command: T, ...validations: Validation<T>[]): CommandResult | CommandResult[];
1269
1270
  }
1270
1271
 
1271
- declare type UIActions = Pick<ModelConfig, "notifyUI">;
1272
+ type UIActions = Pick<ModelConfig, "notifyUI">;
1272
1273
  interface UIPluginConfig {
1273
1274
  readonly getters: Getters;
1274
1275
  readonly stateObserver: StateObserver;
@@ -1368,7 +1369,7 @@ declare class FindAndReplacePlugin extends UIPlugin {
1368
1369
  drawGrid(renderingContext: GridRenderingContext): void;
1369
1370
  }
1370
1371
 
1371
- declare type EditionMode = "editing" | "selecting" | "inactive";
1372
+ type EditionMode = "editing" | "selecting" | "inactive";
1372
1373
  interface ComposerSelection {
1373
1374
  start: number;
1374
1375
  end: number;
@@ -1471,7 +1472,7 @@ declare class EditionPlugin extends UIPlugin {
1471
1472
  private getTokensInSelection;
1472
1473
  }
1473
1474
 
1474
- declare type Rect = {
1475
+ type Rect = {
1475
1476
  x: Pixel;
1476
1477
  y: Pixel;
1477
1478
  width: Pixel;
@@ -1492,7 +1493,7 @@ interface DOMDimension {
1492
1493
  * The viewport is the visible area of a sheet.
1493
1494
  * Column and row headers are not included in the viewport.
1494
1495
  */
1495
- declare type Viewport = Zone & Alias;
1496
+ type Viewport = Zone & Alias;
1496
1497
  interface SheetScrollInfo {
1497
1498
  /**
1498
1499
  * The offset in the X coordinate between the viewport left side and
@@ -1537,16 +1538,16 @@ interface EdgeScrollInfo {
1537
1538
  direction: ScrollDirection$1;
1538
1539
  delay: number;
1539
1540
  }
1540
- declare type ScrollDirection$1 = 1 | 0 | -1 | "reset";
1541
+ type ScrollDirection$1 = 1 | 0 | -1 | "reset";
1541
1542
 
1542
1543
  declare enum ClipboardMIMEType {
1543
1544
  PlainText = "text/plain",
1544
1545
  Html = "text/html"
1545
1546
  }
1546
- declare type ClipboardContent = {
1547
+ type ClipboardContent = {
1547
1548
  [type in ClipboardMIMEType]?: string;
1548
1549
  };
1549
- declare type ClipboardPasteOptions = "onlyFormat" | "onlyValue";
1550
+ type ClipboardPasteOptions = "onlyFormat" | "onlyValue";
1550
1551
 
1551
1552
  /**
1552
1553
  * There are two kinds of commands: CoreCommands and LocalCommands
@@ -2060,7 +2061,7 @@ interface SortCommand {
2060
2061
  sortDirection: SortDirection;
2061
2062
  sortOptions?: SortOptions;
2062
2063
  }
2063
- declare type SortDirection = "ascending" | "descending";
2064
+ type SortDirection = "ascending" | "descending";
2064
2065
  interface ResizeViewportCommand {
2065
2066
  type: "RESIZE_SHEETVIEW";
2066
2067
  width: Pixel;
@@ -2123,7 +2124,7 @@ interface OpenCellPopoverCommand {
2123
2124
  interface CloseCellPopoverCommand {
2124
2125
  type: "CLOSE_CELL_POPOVER";
2125
2126
  }
2126
- declare type CoreCommand =
2127
+ type CoreCommand =
2127
2128
  /** CELLS */
2128
2129
  UpdateCellCommand | UpdateCellPositionCommand | ClearCellCommand | DeleteContentCommand
2129
2130
  /** GRID SHAPE */
@@ -2146,8 +2147,8 @@ UpdateCellCommand | UpdateCellPositionCommand | ClearCellCommand | DeleteContent
2146
2147
  | CreateImageOverCommand
2147
2148
  /** FILTERS */
2148
2149
  | CreateFilterTableCommand | RemoveFilterTableCommand;
2149
- declare type LocalCommand = RequestUndoCommand | RequestRedoCommand | UndoCommand | RedoCommand | NewInputCommand | RemoveInputCommand | UnfocusInputCommand | FocusInputCommand | AddEmptyRangeCommand | RemoveRangeCommand | ChangeRangeCommand | CopyCommand | CutCommand | PasteCommand | CleanClipBoardHighlightCommand | 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;
2150
- declare type Command = CoreCommand | LocalCommand;
2150
+ type LocalCommand = RequestUndoCommand | RequestRedoCommand | UndoCommand | RedoCommand | NewInputCommand | RemoveInputCommand | UnfocusInputCommand | FocusInputCommand | AddEmptyRangeCommand | RemoveRangeCommand | ChangeRangeCommand | CopyCommand | CutCommand | PasteCommand | CleanClipBoardHighlightCommand | 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;
2151
+ type Command = CoreCommand | LocalCommand;
2151
2152
  /**
2152
2153
  * Holds the result of a command dispatch.
2153
2154
  * The command may have been successfully dispatched or cancelled
@@ -2167,7 +2168,7 @@ declare class DispatchResult {
2167
2168
  */
2168
2169
  isCancelledBecause(reason: CancelledReason): boolean;
2169
2170
  }
2170
- declare type CancelledReason = Exclude<CommandResult, CommandResult.Success>;
2171
+ type CancelledReason = Exclude<CommandResult, CommandResult.Success>;
2171
2172
  declare const enum CommandResult {
2172
2173
  Success = 0,
2173
2174
  CancelledForUnknownReason = 1,
@@ -2280,26 +2281,26 @@ interface CoreCommandDispatcher {
2280
2281
  type: T;
2281
2282
  }>>(type: T, r: Omit<C, "type">): DispatchResult;
2282
2283
  }
2283
- declare type CommandTypes = Command["type"];
2284
- declare type CoreCommandTypes = CoreCommand["type"];
2284
+ type CommandTypes = Command["type"];
2285
+ type CoreCommandTypes = CoreCommand["type"];
2285
2286
 
2286
2287
  /**
2287
2288
  * The following type is meant to be used in union with other aliases to prevent
2288
2289
  * Intellisense from resolving it.
2289
2290
  * See https://github.com/microsoft/TypeScript/issues/31940#issuecomment-841712377
2290
2291
  */
2291
- declare type Alias = {} & {};
2292
- declare type HeaderIndex = number & Alias;
2293
- declare type Pixel = number & Alias;
2294
- declare type UID = string & Alias;
2295
- declare type SetDecimalStep = 1 | -1;
2296
- declare type FilterId = UID & Alias;
2297
- declare type FilterTableId = UID & Alias;
2292
+ type Alias = {} & {};
2293
+ type HeaderIndex = number & Alias;
2294
+ type Pixel = number & Alias;
2295
+ type UID = string & Alias;
2296
+ type SetDecimalStep = 1 | -1;
2297
+ type FilterId = UID & Alias;
2298
+ type FilterTableId = UID & Alias;
2298
2299
  /**
2299
2300
  * CSS style color string
2300
2301
  * e.g. "#ABC", "#AAAFFF", "rgb(30, 80, 16)"
2301
2302
  */
2302
- declare type Color = string & Alias;
2303
+ type Color = string & Alias;
2303
2304
  interface RGBA {
2304
2305
  a: number;
2305
2306
  r: number;
@@ -2341,9 +2342,9 @@ interface ZoneDimension {
2341
2342
  height: HeaderIndex;
2342
2343
  width: HeaderIndex;
2343
2344
  }
2344
- declare type Align = "left" | "right" | "center" | undefined;
2345
- declare type VerticalAlign = "top" | "middle" | "bottom" | undefined;
2346
- declare type Wrapping = "overflow" | "wrap" | "clip" | undefined;
2345
+ type Align = "left" | "right" | "center" | undefined;
2346
+ type VerticalAlign = "top" | "middle" | "bottom" | undefined;
2347
+ type Wrapping = "overflow" | "wrap" | "clip" | undefined;
2347
2348
  interface Style {
2348
2349
  bold?: boolean;
2349
2350
  italic?: boolean;
@@ -2376,35 +2377,35 @@ interface CellPosition {
2376
2377
  row: HeaderIndex;
2377
2378
  sheetId: UID;
2378
2379
  }
2379
- declare type BorderStyle = "thin" | "medium" | "thick" | "dashed" | "dotted" | "double";
2380
- declare type BorderDescr = [BorderStyle, Color];
2380
+ type BorderStyle = "thin" | "medium" | "thick" | "dashed" | "dotted" | "double";
2381
+ type BorderDescr = [BorderStyle, Color];
2381
2382
  interface Border$1 {
2382
2383
  top?: BorderDescr;
2383
2384
  left?: BorderDescr;
2384
2385
  bottom?: BorderDescr;
2385
2386
  right?: BorderDescr;
2386
2387
  }
2387
- declare type ReferenceDenormalizer = (range: Range, isMeta: boolean, functionName: string, paramNumber: number) => any | any[][];
2388
- declare type EnsureRange = (range: Range) => any[][];
2389
- declare type _CompiledFormula = (deps: Range[], refFn: ReferenceDenormalizer, range: EnsureRange, ctx: {}) => FormulaReturn;
2388
+ type ReferenceDenormalizer = (range: Range, isMeta: boolean, functionName: string, paramNumber: number) => any | any[][];
2389
+ type EnsureRange = (range: Range) => any[][];
2390
+ type _CompiledFormula = (deps: Range[], refFn: ReferenceDenormalizer, range: EnsureRange, ctx: {}) => FormulaReturn;
2390
2391
  interface CompiledFormula {
2391
2392
  execute: _CompiledFormula;
2392
2393
  tokens: Token[];
2393
2394
  dependencies: string[];
2394
2395
  }
2395
- declare type Arg = MatrixArg | PrimitiveArg;
2396
- declare type MatrixArg = ({
2396
+ type Arg = MatrixArg | PrimitiveArg;
2397
+ type MatrixArg = ({
2397
2398
  value: CellValue;
2398
2399
  format?: Format;
2399
2400
  } | undefined)[][];
2400
- declare type PrimitiveArg = {
2401
+ type PrimitiveArg = {
2401
2402
  value: PrimitiveArgValue;
2402
2403
  format?: Format;
2403
2404
  };
2404
- declare type ArgValue = PrimitiveArgValue | MatrixArgValue;
2405
- declare type MatrixArgValue = (CellValue | undefined)[][];
2406
- declare type PrimitiveArgValue = string | number | boolean | null;
2407
- declare type FunctionReturn = {
2405
+ type ArgValue = PrimitiveArgValue | MatrixArgValue;
2406
+ type MatrixArgValue = (CellValue | undefined)[][];
2407
+ type PrimitiveArgValue = string | number | boolean | null;
2408
+ type FunctionReturn = {
2408
2409
  value: FunctionReturnValue;
2409
2410
  format?: Format;
2410
2411
  };
@@ -2412,7 +2413,7 @@ interface FormulaReturn extends Omit<FunctionReturn, "value"> {
2412
2413
  value: FunctionReturnValue | null;
2413
2414
  format?: Format;
2414
2415
  }
2415
- declare type FunctionReturnValue = string | number | boolean;
2416
+ type FunctionReturnValue = string | number | boolean;
2416
2417
  interface HeaderDimensions {
2417
2418
  start: Pixel;
2418
2419
  size: Pixel;
@@ -2440,8 +2441,8 @@ interface PaneDivision {
2440
2441
  /** Represents the number of frozen rows */
2441
2442
  ySplit: number;
2442
2443
  }
2443
- declare type BorderCommand = "all" | "hv" | "h" | "v" | "external" | "left" | "top" | "right" | "bottom" | "clear";
2444
- declare type BorderDescription = {
2444
+ type BorderCommand = "all" | "hv" | "h" | "v" | "external" | "left" | "top" | "right" | "bottom" | "clear";
2445
+ type BorderDescription = {
2445
2446
  vertical?: BorderDescr;
2446
2447
  horizontal?: BorderDescr;
2447
2448
  } | undefined;
@@ -2451,24 +2452,24 @@ declare const enum DIRECTION {
2451
2452
  LEFT = "left",
2452
2453
  RIGHT = "right"
2453
2454
  }
2454
- declare type ChangeType = "REMOVE" | "RESIZE" | "MOVE" | "CHANGE" | "NONE";
2455
- declare type ApplyRangeChangeResult = {
2455
+ type ChangeType = "REMOVE" | "RESIZE" | "MOVE" | "CHANGE" | "NONE";
2456
+ type ApplyRangeChangeResult = {
2456
2457
  changeType: Exclude<ChangeType, "NONE">;
2457
2458
  range: Range;
2458
2459
  } | {
2459
2460
  changeType: "NONE";
2460
2461
  };
2461
- declare type ApplyRangeChange = (range: Range) => ApplyRangeChangeResult;
2462
- declare type Dimension = "COL" | "ROW";
2463
- declare type ConsecutiveIndexes = HeaderIndex[];
2462
+ type ApplyRangeChange = (range: Range) => ApplyRangeChangeResult;
2463
+ type Dimension = "COL" | "ROW";
2464
+ type ConsecutiveIndexes = HeaderIndex[];
2464
2465
  interface RangeProvider {
2465
2466
  adaptRanges: (applyChange: ApplyRangeChange, sheetId?: UID) => void;
2466
2467
  }
2467
- declare type Validation<T> = (toValidate: T) => CommandResult | CommandResult[];
2468
+ type Validation<T> = (toValidate: T) => CommandResult | CommandResult[];
2468
2469
  /**
2469
2470
  * Return the prop's type of a component
2470
2471
  */
2471
- declare type PropsOf<C> = C extends ComponentConstructor<infer Props> ? Props : never;
2472
+ type PropsOf<C> = C extends ComponentConstructor<infer Props> ? Props : never;
2472
2473
  /**
2473
2474
  * Container for a lazy computed value
2474
2475
  */
@@ -2494,7 +2495,7 @@ interface Lazy<T> {
2494
2495
  interface Cloneable<T> {
2495
2496
  clone: (args?: Partial<T>) => T;
2496
2497
  }
2497
- declare type CSSProperties<P extends string = string> = Record<P, string>;
2498
+ type CSSProperties<P extends string = string> = Record<P, string>;
2498
2499
  interface SortOptions {
2499
2500
  /** If true sort the headers of the range along with the rest */
2500
2501
  sortHeaders?: boolean;
@@ -2505,8 +2506,8 @@ interface MenuMouseEvent extends MouseEvent {
2505
2506
  closedMenuId?: UID;
2506
2507
  }
2507
2508
 
2508
- declare type Format = string & Alias;
2509
- declare type FormattedValue = string & Alias;
2509
+ type Format = string & Alias;
2510
+ type FormattedValue = string & Alias;
2510
2511
 
2511
2512
  interface CellAttributes {
2512
2513
  readonly id: UID;
@@ -2525,7 +2526,7 @@ interface FormulaCell extends CellAttributes {
2525
2526
  readonly compiledFormula: CompiledFormula;
2526
2527
  readonly dependencies: Range[];
2527
2528
  }
2528
- declare type Cell = LiteralCell | FormulaCell;
2529
+ type Cell = LiteralCell | FormulaCell;
2529
2530
  interface EvaluatedCellProperties {
2530
2531
  readonly format?: Format;
2531
2532
  /**
@@ -2539,8 +2540,8 @@ interface EvaluatedCellProperties {
2539
2540
  readonly isAutoSummable: boolean;
2540
2541
  readonly link?: Link;
2541
2542
  }
2542
- declare type CellValue = string | number | boolean;
2543
- declare type EvaluatedCell = NumberCell | TextCell | BooleanCell | EmptyCell | ErrorCell;
2543
+ type CellValue = string | number | boolean;
2544
+ type EvaluatedCell = NumberCell | TextCell | BooleanCell | EmptyCell | ErrorCell;
2544
2545
  interface NumberCell extends EvaluatedCellProperties {
2545
2546
  readonly type: CellValueType.number;
2546
2547
  readonly value: number;
@@ -2593,7 +2594,7 @@ interface FormulaModifier {
2593
2594
  increment: number;
2594
2595
  current: number;
2595
2596
  }
2596
- declare type AutofillModifier = IncrementModifier | CopyModifier | FormulaModifier;
2597
+ type AutofillModifier = IncrementModifier | CopyModifier | FormulaModifier;
2597
2598
  interface Tooltip {
2598
2599
  props: any;
2599
2600
  component?: any;
@@ -2634,7 +2635,7 @@ interface Currency {
2634
2635
  position: "before" | "after";
2635
2636
  }
2636
2637
 
2637
- declare type ClipboardReadResult = {
2638
+ type ClipboardReadResult = {
2638
2639
  status: "ok";
2639
2640
  content: string;
2640
2641
  } | {
@@ -2646,7 +2647,7 @@ interface ClipboardInterface {
2646
2647
  readText(): Promise<ClipboardReadResult>;
2647
2648
  }
2648
2649
 
2649
- declare type TranslationFunction = (string: string, ...values: string[] | [{
2650
+ type TranslationFunction = (string: string, ...values: string[] | [{
2650
2651
  [key: string]: string;
2651
2652
  }]) => string;
2652
2653
  /***
@@ -2680,7 +2681,7 @@ interface SpreadsheetChildEnv extends SpreadsheetEnv {
2680
2681
  loadCurrencies?: () => Promise<Currency[]>;
2681
2682
  }
2682
2683
 
2683
- declare type ArgType = "ANY" | "BOOLEAN" | "NUMBER" | "STRING" | "DATE" | "RANGE" | "RANGE<BOOLEAN>" | "RANGE<NUMBER>" | "RANGE<DATE>" | "RANGE<STRING>" | "META";
2684
+ type ArgType = "ANY" | "BOOLEAN" | "NUMBER" | "STRING" | "DATE" | "RANGE" | "RANGE<BOOLEAN>" | "RANGE<NUMBER>" | "RANGE<DATE>" | "RANGE<STRING>" | "META";
2684
2685
  interface ArgDefinition {
2685
2686
  repeating?: boolean;
2686
2687
  optional?: boolean;
@@ -2691,8 +2692,8 @@ interface ArgDefinition {
2691
2692
  default?: boolean;
2692
2693
  defaultValue?: any;
2693
2694
  }
2694
- declare type ComputeFunctionArg<T> = T | (() => T) | undefined;
2695
- declare type ComputeFunction<T, R> = (this: EvalContext, ...args: ComputeFunctionArg<T>[]) => R;
2695
+ type ComputeFunctionArg<T> = T | (() => T) | undefined;
2696
+ type ComputeFunction<T, R> = (this: EvalContext, ...args: ComputeFunctionArg<T>[]) => R;
2696
2697
  interface AddFunctionDescription {
2697
2698
  description: string;
2698
2699
  compute: ComputeFunction<ArgValue, FunctionReturnValue>;
@@ -2708,7 +2709,7 @@ interface FunctionDescription extends AddFunctionDescription {
2708
2709
  nbrArgRepeating: number;
2709
2710
  getArgToFocus: (argPosition: number) => number;
2710
2711
  }
2711
- declare type EvalContext = {
2712
+ type EvalContext = {
2712
2713
  __lastFnCalled?: string;
2713
2714
  __originCellXC?: () => string;
2714
2715
  [key: string]: any;
@@ -3540,7 +3541,7 @@ declare class ImagePlugin extends CorePlugin<ImageState> implements ImageState {
3540
3541
  private getAllImages;
3541
3542
  }
3542
3543
 
3543
- declare type SheetMergeCellMap = Record<number, Record<number, number | undefined> | undefined>;
3544
+ type SheetMergeCellMap = Record<number, Record<number, number | undefined> | undefined>;
3544
3545
  interface MergeState {
3545
3546
  readonly merges: Record<UID, Record<number, Range | undefined> | undefined>;
3546
3547
  readonly mergeCellMap: Record<UID, SheetMergeCellMap | undefined>;
@@ -3989,7 +3990,7 @@ declare class InternalViewport {
3989
3990
  private adjustViewportZoneY;
3990
3991
  }
3991
3992
 
3992
- declare type SheetViewports = {
3993
+ type SheetViewports = {
3993
3994
  topLeft: InternalViewport | undefined;
3994
3995
  bottomLeft: InternalViewport | undefined;
3995
3996
  topRight: InternalViewport | undefined;
@@ -4745,53 +4746,53 @@ declare class GridSelectionPlugin extends UIPlugin {
4745
4746
  * This can be generalized because the union of all indices `0 | 1 | 2 | 3 | ...`
4746
4747
  * is actually the type `number`.
4747
4748
  */
4748
- declare type GetterNames<Plugin extends {
4749
+ type GetterNames<Plugin extends {
4749
4750
  getters: readonly string[];
4750
4751
  }> = Plugin["getters"][number];
4751
- declare type SheetGetters = Pick<SheetPlugin, GetterNames<typeof SheetPlugin>>;
4752
- declare type HeaderSizeGetters = Pick<HeaderSizePlugin, GetterNames<typeof HeaderSizePlugin>>;
4753
- declare type HeaderVisibilityGetters = Pick<HeaderVisibilityPlugin, GetterNames<typeof HeaderVisibilityPlugin>>;
4754
- declare type CellGetters = Pick<CellPlugin, GetterNames<typeof CellPlugin>>;
4755
- declare type MergeGetters = Pick<MergePlugin, GetterNames<typeof MergePlugin>>;
4756
- declare type BordersGetters = Pick<BordersPlugin, GetterNames<typeof BordersPlugin>>;
4757
- declare type ChartGetters = Pick<ChartPlugin, GetterNames<typeof ChartPlugin>>;
4758
- declare type ImageGetters = Pick<ImagePlugin, GetterNames<typeof ImagePlugin>>;
4759
- declare type FigureGetters = Pick<FigurePlugin, GetterNames<typeof FigurePlugin>>;
4760
- declare type RangeAdapterGetters = Pick<RangeAdapter, GetterNames<typeof RangeAdapter>>;
4761
- declare type ConditionalFormatGetters = Pick<ConditionalFormatPlugin, GetterNames<typeof ConditionalFormatPlugin>>;
4762
- declare type LocalHistoryGetters = {
4752
+ type SheetGetters = Pick<SheetPlugin, GetterNames<typeof SheetPlugin>>;
4753
+ type HeaderSizeGetters = Pick<HeaderSizePlugin, GetterNames<typeof HeaderSizePlugin>>;
4754
+ type HeaderVisibilityGetters = Pick<HeaderVisibilityPlugin, GetterNames<typeof HeaderVisibilityPlugin>>;
4755
+ type CellGetters = Pick<CellPlugin, GetterNames<typeof CellPlugin>>;
4756
+ type MergeGetters = Pick<MergePlugin, GetterNames<typeof MergePlugin>>;
4757
+ type BordersGetters = Pick<BordersPlugin, GetterNames<typeof BordersPlugin>>;
4758
+ type ChartGetters = Pick<ChartPlugin, GetterNames<typeof ChartPlugin>>;
4759
+ type ImageGetters = Pick<ImagePlugin, GetterNames<typeof ImagePlugin>>;
4760
+ type FigureGetters = Pick<FigurePlugin, GetterNames<typeof FigurePlugin>>;
4761
+ type RangeAdapterGetters = Pick<RangeAdapter, GetterNames<typeof RangeAdapter>>;
4762
+ type ConditionalFormatGetters = Pick<ConditionalFormatPlugin, GetterNames<typeof ConditionalFormatPlugin>>;
4763
+ type LocalHistoryGetters = {
4763
4764
  canUndo: LocalHistory["canUndo"];
4764
4765
  canRedo: LocalHistory["canRedo"];
4765
4766
  };
4766
- declare type FiltersGetters = Pick<FiltersPlugin, GetterNames<typeof FiltersPlugin>>;
4767
- declare type CoreGetters = SheetGetters & HeaderSizeGetters & HeaderVisibilityGetters & CellGetters & MergeGetters & BordersGetters & ChartGetters & ImageGetters & ConditionalFormatGetters & FigureGetters & RangeAdapterGetters & FiltersGetters;
4768
- declare type AutofillGetters = Pick<AutofillPlugin, GetterNames<typeof AutofillPlugin>>;
4769
- declare type AutomaticSumGetters = Pick<AutomaticSumPlugin, GetterNames<typeof AutomaticSumPlugin>>;
4770
- declare type ClipboardGetters = Pick<ClipboardPlugin, GetterNames<typeof ClipboardPlugin>>;
4771
- declare type EditionGetters = Pick<EditionPlugin, GetterNames<typeof EditionPlugin>>;
4772
- declare type EvaluationGetters = Pick<EvaluationPlugin, GetterNames<typeof EvaluationPlugin>>;
4773
- declare type EvaluationChartGetters = Pick<EvaluationChartPlugin, GetterNames<typeof EvaluationChartPlugin>>;
4774
- declare type EvaluationConditionalFormatGetters = Pick<EvaluationConditionalFormatPlugin, GetterNames<typeof EvaluationConditionalFormatPlugin>>;
4775
- declare type FindAndReplaceGetters = Pick<FindAndReplacePlugin, GetterNames<typeof FindAndReplacePlugin>>;
4776
- declare type HeaderVisibilityIUIGetters = Pick<HeaderVisibilityUIPlugin, GetterNames<typeof HeaderVisibilityUIPlugin>>;
4777
- declare type HighlightGetters = Pick<HighlightPlugin, GetterNames<typeof HighlightPlugin>>;
4778
- declare type CustomColorsGetters = Pick<CustomColorsPlugin, GetterNames<typeof CustomColorsPlugin>>;
4779
- declare type RendererGetters = Pick<RendererPlugin, GetterNames<typeof RendererPlugin>>;
4780
- declare type SelectionGetters = Pick<GridSelectionPlugin, GetterNames<typeof GridSelectionPlugin>>;
4781
- declare type SelectionInputGetters = Pick<SelectionInputsManagerPlugin, GetterNames<typeof SelectionInputsManagerPlugin>>;
4782
- declare type SelectionMultiUserGetters = Pick<SelectionMultiUserPlugin, GetterNames<typeof SelectionMultiUserPlugin>>;
4783
- declare type SortGetters = Pick<SortPlugin, GetterNames<typeof SortPlugin>>;
4784
- declare type UIOptionsGetters = Pick<UIOptionsPlugin, GetterNames<typeof UIOptionsPlugin>>;
4785
- declare type SheetUIGetters = Pick<SheetUIPlugin, GetterNames<typeof SheetUIPlugin>>;
4786
- declare type ViewportGetters = Pick<SheetViewPlugin, GetterNames<typeof SheetViewPlugin>>;
4787
- declare type SessionGetters = {
4767
+ type FiltersGetters = Pick<FiltersPlugin, GetterNames<typeof FiltersPlugin>>;
4768
+ type CoreGetters = SheetGetters & HeaderSizeGetters & HeaderVisibilityGetters & CellGetters & MergeGetters & BordersGetters & ChartGetters & ImageGetters & ConditionalFormatGetters & FigureGetters & RangeAdapterGetters & FiltersGetters;
4769
+ type AutofillGetters = Pick<AutofillPlugin, GetterNames<typeof AutofillPlugin>>;
4770
+ type AutomaticSumGetters = Pick<AutomaticSumPlugin, GetterNames<typeof AutomaticSumPlugin>>;
4771
+ type ClipboardGetters = Pick<ClipboardPlugin, GetterNames<typeof ClipboardPlugin>>;
4772
+ type EditionGetters = Pick<EditionPlugin, GetterNames<typeof EditionPlugin>>;
4773
+ type EvaluationGetters = Pick<EvaluationPlugin, GetterNames<typeof EvaluationPlugin>>;
4774
+ type EvaluationChartGetters = Pick<EvaluationChartPlugin, GetterNames<typeof EvaluationChartPlugin>>;
4775
+ type EvaluationConditionalFormatGetters = Pick<EvaluationConditionalFormatPlugin, GetterNames<typeof EvaluationConditionalFormatPlugin>>;
4776
+ type FindAndReplaceGetters = Pick<FindAndReplacePlugin, GetterNames<typeof FindAndReplacePlugin>>;
4777
+ type HeaderVisibilityIUIGetters = Pick<HeaderVisibilityUIPlugin, GetterNames<typeof HeaderVisibilityUIPlugin>>;
4778
+ type HighlightGetters = Pick<HighlightPlugin, GetterNames<typeof HighlightPlugin>>;
4779
+ type CustomColorsGetters = Pick<CustomColorsPlugin, GetterNames<typeof CustomColorsPlugin>>;
4780
+ type RendererGetters = Pick<RendererPlugin, GetterNames<typeof RendererPlugin>>;
4781
+ type SelectionGetters = Pick<GridSelectionPlugin, GetterNames<typeof GridSelectionPlugin>>;
4782
+ type SelectionInputGetters = Pick<SelectionInputsManagerPlugin, GetterNames<typeof SelectionInputsManagerPlugin>>;
4783
+ type SelectionMultiUserGetters = Pick<SelectionMultiUserPlugin, GetterNames<typeof SelectionMultiUserPlugin>>;
4784
+ type SortGetters = Pick<SortPlugin, GetterNames<typeof SortPlugin>>;
4785
+ type UIOptionsGetters = Pick<UIOptionsPlugin, GetterNames<typeof UIOptionsPlugin>>;
4786
+ type SheetUIGetters = Pick<SheetUIPlugin, GetterNames<typeof SheetUIPlugin>>;
4787
+ type ViewportGetters = Pick<SheetViewPlugin, GetterNames<typeof SheetViewPlugin>>;
4788
+ type SessionGetters = {
4788
4789
  getClient: Session["getClient"];
4789
4790
  getConnectedClients: Session["getConnectedClients"];
4790
4791
  isFullySynchronized: Session["isFullySynchronized"];
4791
4792
  };
4792
- declare type CellPopoverPluginGetters = Pick<CellPopoverPlugin, GetterNames<typeof CellPopoverPlugin>>;
4793
- declare type FilterEvaluationGetters = Pick<FilterEvaluationPlugin, GetterNames<typeof FilterEvaluationPlugin>>;
4794
- declare type Getters = {
4793
+ type CellPopoverPluginGetters = Pick<CellPopoverPlugin, GetterNames<typeof CellPopoverPlugin>>;
4794
+ type FilterEvaluationGetters = Pick<FilterEvaluationPlugin, GetterNames<typeof FilterEvaluationPlugin>>;
4795
+ type Getters = {
4795
4796
  isReadonly: () => boolean;
4796
4797
  isDashboard: () => boolean;
4797
4798
  } & LocalHistoryGetters & CoreGetters & SessionGetters & AutofillGetters & AutomaticSumGetters & ClipboardGetters & EditionGetters & EvaluationGetters & EvaluationChartGetters & EvaluationConditionalFormatGetters & FindAndReplaceGetters & HighlightGetters & CustomColorsGetters & RendererGetters & SelectionGetters & SelectionInputGetters & SelectionMultiUserGetters & SortGetters & UIOptionsGetters & SheetUIGetters & ViewportGetters & CellPopoverPluginGetters & FilterEvaluationGetters & HeaderVisibilityIUIGetters;
@@ -4810,7 +4811,7 @@ interface WorkbookHistory<Plugin> {
4810
4811
  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;
4811
4812
  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;
4812
4813
  }
4813
- declare type Transformation<T = unknown> = (dataToTransform: T) => T;
4814
+ type Transformation<T = unknown> = (dataToTransform: T) => T;
4814
4815
  interface TransformationFactory<T = unknown> {
4815
4816
  /**
4816
4817
  * Build a transformation function to transform any operation as if the execution of
@@ -4824,12 +4825,12 @@ interface TransformationFactory<T = unknown> {
4824
4825
  with: (operation: T) => Transformation<T>;
4825
4826
  }
4826
4827
 
4827
- declare type SelectionDirection = "up" | "down" | "left" | "right";
4828
- declare type SelectionStep = number | "end";
4828
+ type SelectionDirection = "up" | "down" | "left" | "right";
4829
+ type SelectionStep = number | "end";
4829
4830
 
4830
- declare type CellPopoverType = "ErrorToolTip" | "LinkDisplay" | "FilterMenu" | "LinkEditor";
4831
- declare type PopoverPropsPosition = "TopRight" | "BottomLeft";
4832
- declare type MaxSizedComponentConstructor = ComponentConstructor & {
4831
+ type CellPopoverType = "ErrorToolTip" | "LinkDisplay" | "FilterMenu" | "LinkEditor";
4832
+ type PopoverPropsPosition = "TopRight" | "BottomLeft";
4833
+ type MaxSizedComponentConstructor = ComponentConstructor & {
4833
4834
  maxSize?: {
4834
4835
  maxWidth?: number;
4835
4836
  maxHeight?: number;
@@ -4839,7 +4840,7 @@ declare type MaxSizedComponentConstructor = ComponentConstructor & {
4839
4840
  * If the cell at the given position have an associated component (linkDisplay, errorTooltip, ...),
4840
4841
  * returns the parameters to display the component
4841
4842
  */
4842
- declare type CellPopoverBuilder = (position: CellPosition, getters: Getters) => CellPopoverComponent<MaxSizedComponentConstructor>;
4843
+ type CellPopoverBuilder = (position: CellPosition, getters: Getters) => CellPopoverComponent<MaxSizedComponentConstructor>;
4843
4844
  interface PopoverBuilders {
4844
4845
  onOpen?: CellPopoverBuilder;
4845
4846
  onHover?: CellPopoverBuilder;
@@ -4852,14 +4853,14 @@ interface ClosedCellPopover {
4852
4853
  * i.e. which component class, which props and where to
4853
4854
  * display it relative to the cell
4854
4855
  */
4855
- declare type OpenCellPopover<C extends ComponentConstructor> = {
4856
+ type OpenCellPopover<C extends ComponentConstructor> = {
4856
4857
  isOpen: true;
4857
4858
  Component: C;
4858
4859
  props: PropsOf<C>;
4859
4860
  cellCorner: PopoverPropsPosition;
4860
4861
  };
4861
- declare type CellPopoverComponent<C extends MaxSizedComponentConstructor = MaxSizedComponentConstructor> = ClosedCellPopover | OpenCellPopover<C>;
4862
- declare type PositionedCellPopover<C extends MaxSizedComponentConstructor = MaxSizedComponentConstructor> = {
4862
+ type CellPopoverComponent<C extends MaxSizedComponentConstructor = MaxSizedComponentConstructor> = ClosedCellPopover | OpenCellPopover<C>;
4863
+ type PositionedCellPopover<C extends MaxSizedComponentConstructor = MaxSizedComponentConstructor> = {
4863
4864
  isOpen: true;
4864
4865
  Component: C;
4865
4866
  props: PropsOf<C>;
@@ -4928,7 +4929,7 @@ interface LinkSpec {
4928
4929
  declare function urlRepresentation(link: Link, getters: Getters): string;
4929
4930
  declare function openLink(link: Link, env: SpreadsheetChildEnv): void;
4930
4931
 
4931
- declare type TransformationFunction<U extends CoreCommandTypes, V extends CoreCommandTypes> = (toTransform: Extract<CoreCommand, {
4932
+ type TransformationFunction<U extends CoreCommandTypes, V extends CoreCommandTypes> = (toTransform: Extract<CoreCommand, {
4932
4933
  type: U;
4933
4934
  }>, executed: Extract<CoreCommand, {
4934
4935
  type: V;
@@ -5125,7 +5126,7 @@ declare class GaugeChartConfigPanel extends Component<Props$u, SpreadsheetChildE
5125
5126
  updateDataRange(): void;
5126
5127
  }
5127
5128
 
5128
- declare type GaugeMenu = "backgroundColor" | "sectionColor-lowerColor" | "sectionColor-middleColor" | "sectionColor-upperColor";
5129
+ type GaugeMenu = "backgroundColor" | "sectionColor-lowerColor" | "sectionColor-middleColor" | "sectionColor-upperColor";
5129
5130
  interface Props$t {
5130
5131
  figureId: UID;
5131
5132
  definition: GaugeChartDefinition;
@@ -5187,7 +5188,7 @@ declare class ScorecardChartConfigPanel extends Component<Props$s, SpreadsheetCh
5187
5188
  updateBaselineMode(ev: any): void;
5188
5189
  }
5189
5190
 
5190
- declare type ColorPickerId = undefined | "backgroundColor" | "baselineColorUp" | "baselineColorDown";
5191
+ type ColorPickerId = undefined | "backgroundColor" | "baselineColorUp" | "baselineColorDown";
5191
5192
  interface Props$r {
5192
5193
  figureId: UID;
5193
5194
  definition: ScorecardChartDefinition;
@@ -5265,9 +5266,9 @@ interface MenuItem {
5265
5266
  icon?: string;
5266
5267
  textColor?: Color;
5267
5268
  }
5268
- declare type FullMenuItem = Required<MenuItem>;
5269
- declare type MenuItemsBuilder = (env: SpreadsheetChildEnv) => FullMenuItem[];
5270
- declare type menuChildren = (FullMenuItem | MenuItemsBuilder)[];
5269
+ type FullMenuItem = Required<MenuItem>;
5270
+ type MenuItemsBuilder = (env: SpreadsheetChildEnv) => FullMenuItem[];
5271
+ type menuChildren = (FullMenuItem | MenuItemsBuilder)[];
5271
5272
  declare function createFullMenuItem(key: string, value: MenuItem): FullMenuItem;
5272
5273
  /**
5273
5274
  * The class Registry is extended in order to add the function addChild
@@ -5602,7 +5603,7 @@ declare class FunctionDescriptionProvider extends Component<Props$k> {
5602
5603
  onMouseMove(): void;
5603
5604
  }
5604
5605
 
5605
- declare type HtmlContent = {
5606
+ type HtmlContent = {
5606
5607
  value: string;
5607
5608
  color?: Color;
5608
5609
  class?: string;
@@ -5744,7 +5745,7 @@ declare class FilterIconsOverlay extends Component<Props$g, SpreadsheetChildEnv>
5744
5745
  private isPositionVisible;
5745
5746
  }
5746
5747
 
5747
- declare type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right" | "bottom" | "bottom left" | "left";
5748
+ type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right" | "bottom" | "bottom left" | "left";
5748
5749
  interface Props$f {
5749
5750
  figure: Figure;
5750
5751
  style: string;
@@ -5774,7 +5775,7 @@ declare class FigureComponent extends Component<Props$f, SpreadsheetChildEnv> {
5774
5775
  onKeyDown(ev: KeyboardEvent): void;
5775
5776
  }
5776
5777
 
5777
- declare type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
5778
+ type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
5778
5779
  interface DndState {
5779
5780
  figId: string | undefined;
5780
5781
  x: Pixel;
@@ -6032,7 +6033,7 @@ declare class HeadersOverlay extends Component<any, SpreadsheetChildEnv> {
6032
6033
  selectAll(): void;
6033
6034
  }
6034
6035
 
6035
- declare type Orientation$1 = "n" | "s" | "w" | "e";
6036
+ type Orientation$1 = "n" | "s" | "w" | "e";
6036
6037
  interface Props$b {
6037
6038
  zone: Zone;
6038
6039
  orientation: Orientation$1;
@@ -6045,7 +6046,7 @@ declare class Border extends Component<Props$b, SpreadsheetChildEnv> {
6045
6046
  onMouseDown(ev: MouseEvent): void;
6046
6047
  }
6047
6048
 
6048
- declare type Orientation = "nw" | "ne" | "sw" | "se";
6049
+ type Orientation = "nw" | "ne" | "sw" | "se";
6049
6050
  interface Props$a {
6050
6051
  zone: Zone;
6051
6052
  color: Color;
@@ -6079,7 +6080,7 @@ declare class Highlight extends Component<Props$9, SpreadsheetChildEnv> {
6079
6080
  onMoveHighlight(clientX: Pixel, clientY: Pixel): void;
6080
6081
  }
6081
6082
 
6082
- declare type ScrollDirection = "horizontal" | "vertical";
6083
+ type ScrollDirection = "horizontal" | "vertical";
6083
6084
 
6084
6085
  interface Props$8 {
6085
6086
  width: Pixel;
@@ -6242,7 +6243,7 @@ interface FontSize {
6242
6243
  px: number;
6243
6244
  }
6244
6245
 
6245
- declare type Tool = "" | "formatTool" | "alignTool" | "textColorTool" | "fillColorTool" | "borderTool" | "fontSizeTool";
6246
+ type Tool = "" | "formatTool" | "alignTool" | "textColorTool" | "fillColorTool" | "borderTool" | "fontSizeTool";
6246
6247
  interface State {
6247
6248
  menuState: MenuState;
6248
6249
  activeTool: Tool;
@@ -6325,7 +6326,7 @@ declare class TopBar extends Component<Props$2, SpreadsheetChildEnv> {
6325
6326
  removeFilter(): void;
6326
6327
  }
6327
6328
 
6328
- declare type ComposerFocusType = "inactive" | "cellFocus" | "contentFocus";
6329
+ type ComposerFocusType = "inactive" | "cellFocus" | "contentFocus";
6329
6330
  interface SpreadsheetProps {
6330
6331
  model: Model;
6331
6332
  }
@@ -6387,7 +6388,7 @@ declare class Spreadsheet extends Component<SpreadsheetProps, SpreadsheetChildEn
6387
6388
  * - a horizontal resizer (to resize columns)
6388
6389
  * - a vertical resizer (same, for rows)
6389
6390
  */
6390
- declare type ContextMenuType = "ROW" | "COL" | "CELL" | "FILTER";
6391
+ type ContextMenuType = "ROW" | "COL" | "CELL" | "FILTER";
6391
6392
  interface Props$1 {
6392
6393
  sidePanelIsOpen: boolean;
6393
6394
  exposeFocus: (focus: () => void) => void;