@odoo/o-spreadsheet 16.0.13 → 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;
@@ -840,7 +840,7 @@ interface ExcelFilterData {
840
840
  displayBlanks?: boolean;
841
841
  }
842
842
 
843
- declare type ClientId = string;
843
+ type ClientId = string;
844
844
  interface Client {
845
845
  id: ClientId;
846
846
  name: string;
@@ -886,7 +886,7 @@ interface RevisionsDroppedEvent {
886
886
  interface SnapshotEvent {
887
887
  type: "snapshot";
888
888
  }
889
- declare type CollaborativeEvent = NewLocalStateUpdateEvent | UnexpectedRevisionIdEvent | RemoteRevisionReceivedEvent | RevisionAcknowledgedEvent | RevisionUndone | RevisionRedone | RevisionsDroppedEvent | SnapshotEvent | CollaborativeEventReceived;
889
+ type CollaborativeEvent = NewLocalStateUpdateEvent | UnexpectedRevisionIdEvent | RemoteRevisionReceivedEvent | RevisionAcknowledgedEvent | RevisionUndone | RevisionRedone | RevisionsDroppedEvent | SnapshotEvent | CollaborativeEventReceived;
890
890
 
891
891
  interface AbstractMessage {
892
892
  version: number;
@@ -940,11 +940,11 @@ interface SnapshotCreatedMessage extends AbstractMessage {
940
940
  serverRevisionId: UID;
941
941
  nextRevisionId: UID;
942
942
  }
943
- declare type CollaborationMessage = RevisionUndoneMessage | RevisionRedoneMessage | RemoteRevisionMessage | SnapshotMessage | SnapshotCreatedMessage | ClientMovedMessage | ClientJoinedMessage | ClientLeftMessage;
944
- declare type StateUpdateMessage = Extract<CollaborationMessage, {
943
+ type CollaborationMessage = RevisionUndoneMessage | RevisionRedoneMessage | RemoteRevisionMessage | SnapshotMessage | SnapshotCreatedMessage | ClientMovedMessage | ClientJoinedMessage | ClientLeftMessage;
944
+ type StateUpdateMessage = Extract<CollaborationMessage, {
945
945
  nextRevisionId: UID;
946
946
  }>;
947
- declare type NewMessageCallback<T = any> = (message: T) => void;
947
+ type NewMessageCallback<T = any> = (message: T) => void;
948
948
  /**
949
949
  * The transport service allows to communicate between multiple clients.
950
950
  * A client can send any message to others.
@@ -1003,7 +1003,7 @@ interface NotifyUIEvent {
1003
1003
  * Note that the Model can be used in a standalone way to manipulate
1004
1004
  * programmatically a spreadsheet.
1005
1005
  */
1006
- declare type Mode = "normal" | "readonly" | "dashboard";
1006
+ type Mode = "normal" | "readonly" | "dashboard";
1007
1007
  interface ModelConfig {
1008
1008
  mode: Mode;
1009
1009
  evalContext: EvalContext;
@@ -1221,7 +1221,7 @@ declare class BasePlugin<State = any, C = any> implements CommandHandler<C>, Val
1221
1221
  checkValidations<T>(command: T, ...validations: Validation<T>[]): CommandResult | CommandResult[];
1222
1222
  }
1223
1223
 
1224
- declare type UIActions = Pick<ModelConfig, "notifyUI">;
1224
+ type UIActions = Pick<ModelConfig, "notifyUI">;
1225
1225
  interface UIPluginConstructor {
1226
1226
  new (getters: Getters, state: StateObserver, dispatch: CommandDispatcher["dispatch"], config: ModelConfig, selection: SelectionStreamProcessor): UIPlugin;
1227
1227
  layers: LAYERS[];
@@ -1240,7 +1240,7 @@ declare class UIPlugin<State = any, C = Command> extends BasePlugin<State, C> {
1240
1240
  drawGrid(ctx: GridRenderingContext, layer: LAYERS): void;
1241
1241
  }
1242
1242
 
1243
- declare type EditionMode = "editing" | "selecting" | "inactive";
1243
+ type EditionMode = "editing" | "selecting" | "inactive";
1244
1244
  interface ComposerSelection {
1245
1245
  start: number;
1246
1246
  end: number;
@@ -1416,7 +1416,7 @@ declare class FindAndReplacePlugin extends UIPlugin {
1416
1416
  drawGrid(renderingContext: GridRenderingContext): void;
1417
1417
  }
1418
1418
 
1419
- declare type Rect = {
1419
+ type Rect = {
1420
1420
  x: Pixel;
1421
1421
  y: Pixel;
1422
1422
  width: Pixel;
@@ -1437,7 +1437,7 @@ interface DOMDimension {
1437
1437
  * The viewport is the visible area of a sheet.
1438
1438
  * Column and row headers are not included in the viewport.
1439
1439
  */
1440
- declare type Viewport = Zone & Alias;
1440
+ type Viewport = Zone & Alias;
1441
1441
  interface SheetScrollInfo {
1442
1442
  /**
1443
1443
  * The offset in the X coordinate between the viewport left side and
@@ -1482,9 +1482,9 @@ interface EdgeScrollInfo {
1482
1482
  direction: ScrollDirection$1;
1483
1483
  delay: number;
1484
1484
  }
1485
- declare type ScrollDirection$1 = 1 | 0 | -1 | "reset";
1485
+ type ScrollDirection$1 = 1 | 0 | -1 | "reset";
1486
1486
 
1487
- declare type ClipboardPasteOptions = "onlyFormat" | "onlyValue";
1487
+ type ClipboardPasteOptions = "onlyFormat" | "onlyValue";
1488
1488
 
1489
1489
  /**
1490
1490
  * There are two kinds of commands: CoreCommands and LocalCommands
@@ -1988,7 +1988,7 @@ interface SortCommand {
1988
1988
  sortDirection: SortDirection;
1989
1989
  sortOptions?: SortOptions;
1990
1990
  }
1991
- declare type SortDirection = "ascending" | "descending";
1991
+ type SortDirection = "ascending" | "descending";
1992
1992
  interface ResizeViewportCommand {
1993
1993
  type: "RESIZE_SHEETVIEW";
1994
1994
  width: Pixel;
@@ -2051,7 +2051,7 @@ interface OpenCellPopoverCommand {
2051
2051
  interface CloseCellPopoverCommand {
2052
2052
  type: "CLOSE_CELL_POPOVER";
2053
2053
  }
2054
- declare type CoreCommand =
2054
+ type CoreCommand =
2055
2055
  /** CELLS */
2056
2056
  UpdateCellCommand | UpdateCellPositionCommand | ClearCellCommand | DeleteContentCommand
2057
2057
  /** GRID SHAPE */
@@ -2072,8 +2072,8 @@ UpdateCellCommand | UpdateCellPositionCommand | ClearCellCommand | DeleteContent
2072
2072
  | CreateChartCommand | UpdateChartCommand
2073
2073
  /** FILTERS */
2074
2074
  | CreateFilterTableCommand | RemoveFilterTableCommand;
2075
- 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;
2076
- 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;
2077
2077
  /**
2078
2078
  * Holds the result of a command dispatch.
2079
2079
  * The command may have been successfully dispatched or cancelled
@@ -2093,7 +2093,7 @@ declare class DispatchResult {
2093
2093
  */
2094
2094
  isCancelledBecause(reason: CancelledReason): boolean;
2095
2095
  }
2096
- declare type CancelledReason = Exclude<CommandResult, CommandResult.Success>;
2096
+ type CancelledReason = Exclude<CommandResult, CommandResult.Success>;
2097
2097
  declare const enum CommandResult {
2098
2098
  Success = 0,
2099
2099
  CancelledForUnknownReason = 1,
@@ -2205,26 +2205,26 @@ interface CoreCommandDispatcher {
2205
2205
  type: T;
2206
2206
  }>>(type: T, r: Omit<C, "type">): DispatchResult;
2207
2207
  }
2208
- declare type CommandTypes = Command["type"];
2209
- declare type CoreCommandTypes = CoreCommand["type"];
2208
+ type CommandTypes = Command["type"];
2209
+ type CoreCommandTypes = CoreCommand["type"];
2210
2210
 
2211
2211
  /**
2212
2212
  * The following type is meant to be used in union with other aliases to prevent
2213
2213
  * Intellisense from resolving it.
2214
2214
  * See https://github.com/microsoft/TypeScript/issues/31940#issuecomment-841712377
2215
2215
  */
2216
- declare type Alias = {} & {};
2217
- declare type HeaderIndex = number & Alias;
2218
- declare type Pixel = number & Alias;
2219
- declare type UID = string & Alias;
2220
- declare type SetDecimalStep = 1 | -1;
2221
- declare type FilterId = UID & Alias;
2222
- 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;
2223
2223
  /**
2224
2224
  * CSS style color string
2225
2225
  * e.g. "#ABC", "#AAAFFF", "rgb(30, 80, 16)"
2226
2226
  */
2227
- declare type Color = string & Alias;
2227
+ type Color = string & Alias;
2228
2228
  interface RGBA {
2229
2229
  a: number;
2230
2230
  r: number;
@@ -2265,8 +2265,8 @@ interface ZoneDimension {
2265
2265
  height: HeaderIndex;
2266
2266
  width: HeaderIndex;
2267
2267
  }
2268
- declare type Align = "left" | "right" | "center" | undefined;
2269
- declare type Wrapping = "overflow" | "wrap" | "clip" | undefined;
2268
+ type Align = "left" | "right" | "center" | undefined;
2269
+ type Wrapping = "overflow" | "wrap" | "clip" | undefined;
2270
2270
  interface Style {
2271
2271
  bold?: boolean;
2272
2272
  italic?: boolean;
@@ -2298,35 +2298,35 @@ interface CellPosition {
2298
2298
  row: HeaderIndex;
2299
2299
  sheetId: UID;
2300
2300
  }
2301
- declare type BorderStyle = "thin" | "medium" | "thick" | "dashed" | "dotted" | "double";
2302
- declare type BorderDescr = [BorderStyle, Color];
2301
+ type BorderStyle = "thin" | "medium" | "thick" | "dashed" | "dotted" | "double";
2302
+ type BorderDescr = [BorderStyle, Color];
2303
2303
  interface Border$1 {
2304
2304
  top?: BorderDescr;
2305
2305
  left?: BorderDescr;
2306
2306
  bottom?: BorderDescr;
2307
2307
  right?: BorderDescr;
2308
2308
  }
2309
- declare type ReferenceDenormalizer = (range: Range, isMeta: boolean, functionName: string, paramNumber: number) => any | any[][];
2310
- declare type EnsureRange = (range: Range) => any[][];
2311
- 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;
2312
2312
  interface CompiledFormula {
2313
2313
  execute: _CompiledFormula;
2314
2314
  tokens: Token[];
2315
2315
  dependencies: string[];
2316
2316
  }
2317
- declare type Arg = MatrixArg | PrimitiveArg;
2318
- declare type MatrixArg = ({
2317
+ type Arg = MatrixArg | PrimitiveArg;
2318
+ type MatrixArg = ({
2319
2319
  value: CellValue;
2320
2320
  format?: Format;
2321
2321
  } | undefined)[][];
2322
- declare type PrimitiveArg = {
2322
+ type PrimitiveArg = {
2323
2323
  value: PrimitiveArgValue;
2324
2324
  format?: Format;
2325
2325
  };
2326
- declare type ArgValue = PrimitiveArgValue | MatrixArgValue;
2327
- declare type MatrixArgValue = (CellValue | undefined)[][];
2328
- declare type PrimitiveArgValue = string | number | boolean | null;
2329
- declare type FunctionReturn = {
2326
+ type ArgValue = PrimitiveArgValue | MatrixArgValue;
2327
+ type MatrixArgValue = (CellValue | undefined)[][];
2328
+ type PrimitiveArgValue = string | number | boolean | null;
2329
+ type FunctionReturn = {
2330
2330
  value: FunctionReturnValue;
2331
2331
  format?: Format;
2332
2332
  };
@@ -2334,7 +2334,7 @@ interface FormulaReturn extends Omit<FunctionReturn, "value"> {
2334
2334
  value: FunctionReturnValue | null;
2335
2335
  format?: Format;
2336
2336
  }
2337
- declare type FunctionReturnValue = string | number | boolean;
2337
+ type FunctionReturnValue = string | number | boolean;
2338
2338
  interface HeaderDimensions {
2339
2339
  start: Pixel;
2340
2340
  size: Pixel;
@@ -2362,8 +2362,8 @@ interface PaneDivision {
2362
2362
  /** Represents the number of frozen rows */
2363
2363
  ySplit: number;
2364
2364
  }
2365
- declare type BorderCommand = "all" | "hv" | "h" | "v" | "external" | "left" | "top" | "right" | "bottom" | "clear";
2366
- declare type BorderDescription = {
2365
+ type BorderCommand = "all" | "hv" | "h" | "v" | "external" | "left" | "top" | "right" | "bottom" | "clear";
2366
+ type BorderDescription = {
2367
2367
  vertical?: BorderDescr;
2368
2368
  horizontal?: BorderDescr;
2369
2369
  } | undefined;
@@ -2373,24 +2373,24 @@ declare const enum DIRECTION {
2373
2373
  LEFT = "left",
2374
2374
  RIGHT = "right"
2375
2375
  }
2376
- declare type ChangeType = "REMOVE" | "RESIZE" | "MOVE" | "CHANGE" | "NONE";
2377
- declare type ApplyRangeChangeResult = {
2376
+ type ChangeType = "REMOVE" | "RESIZE" | "MOVE" | "CHANGE" | "NONE";
2377
+ type ApplyRangeChangeResult = {
2378
2378
  changeType: Exclude<ChangeType, "NONE">;
2379
2379
  range: Range;
2380
2380
  } | {
2381
2381
  changeType: "NONE";
2382
2382
  };
2383
- declare type ApplyRangeChange = (range: Range) => ApplyRangeChangeResult;
2384
- declare type Dimension = "COL" | "ROW";
2385
- declare type ConsecutiveIndexes = HeaderIndex[];
2383
+ type ApplyRangeChange = (range: Range) => ApplyRangeChangeResult;
2384
+ type Dimension = "COL" | "ROW";
2385
+ type ConsecutiveIndexes = HeaderIndex[];
2386
2386
  interface RangeProvider {
2387
2387
  adaptRanges: (applyChange: ApplyRangeChange, sheetId?: UID) => void;
2388
2388
  }
2389
- declare type Validation<T> = (toValidate: T) => CommandResult | CommandResult[];
2389
+ type Validation<T> = (toValidate: T) => CommandResult | CommandResult[];
2390
2390
  /**
2391
2391
  * Return the prop's type of a component
2392
2392
  */
2393
- declare type PropsOf<C> = C extends ComponentConstructor<infer Props> ? Props : never;
2393
+ type PropsOf<C> = C extends ComponentConstructor<infer Props> ? Props : never;
2394
2394
  /**
2395
2395
  * Container for a lazy computed value
2396
2396
  */
@@ -2416,7 +2416,7 @@ interface Lazy<T> {
2416
2416
  interface Cloneable<T> {
2417
2417
  clone: (args?: Partial<T>) => T;
2418
2418
  }
2419
- declare type CSSProperties<P extends string = string> = Record<P, string>;
2419
+ type CSSProperties<P extends string = string> = Record<P, string>;
2420
2420
  interface SortOptions {
2421
2421
  /** If true sort the headers of the range along with the rest */
2422
2422
  sortHeaders?: boolean;
@@ -2427,10 +2427,10 @@ interface MenuMouseEvent extends MouseEvent {
2427
2427
  closedMenuId?: UID;
2428
2428
  }
2429
2429
 
2430
- declare type Format = string & Alias;
2431
- declare type FormattedValue = string & Alias;
2430
+ type Format = string & Alias;
2431
+ type FormattedValue = string & Alias;
2432
2432
 
2433
- declare type Cell = ICell | FormulaCell;
2433
+ type Cell = ICell | FormulaCell;
2434
2434
  interface ICell {
2435
2435
  readonly id: UID;
2436
2436
  /**
@@ -2492,33 +2492,33 @@ interface LinkCell$1 extends ICell {
2492
2492
  */
2493
2493
  readonly isUrlEditable: boolean;
2494
2494
  }
2495
- declare type CellValue = string | number | boolean;
2495
+ type CellValue = string | number | boolean;
2496
2496
  interface CellDisplayProperties {
2497
2497
  style?: Style;
2498
2498
  format?: Format;
2499
2499
  }
2500
- declare type CellEvaluation = NumberEvaluation | TextEvaluation | BooleanEvaluation | EmptyEvaluation | InvalidEvaluation;
2501
- declare type NumberEvaluation = {
2500
+ type CellEvaluation = NumberEvaluation | TextEvaluation | BooleanEvaluation | EmptyEvaluation | InvalidEvaluation;
2501
+ type NumberEvaluation = {
2502
2502
  readonly type: CellValueType.number;
2503
2503
  readonly value: number;
2504
2504
  readonly format?: Format;
2505
2505
  };
2506
- declare type TextEvaluation = {
2506
+ type TextEvaluation = {
2507
2507
  readonly type: CellValueType.text;
2508
2508
  readonly value: string;
2509
2509
  readonly format?: Format;
2510
2510
  };
2511
- declare type BooleanEvaluation = {
2511
+ type BooleanEvaluation = {
2512
2512
  readonly type: CellValueType.boolean;
2513
2513
  readonly value: boolean;
2514
2514
  readonly format?: Format;
2515
2515
  };
2516
- declare type EmptyEvaluation = {
2516
+ type EmptyEvaluation = {
2517
2517
  readonly type: CellValueType.empty;
2518
2518
  readonly value: "";
2519
2519
  readonly format?: Format;
2520
2520
  };
2521
- declare type InvalidEvaluation = {
2521
+ type InvalidEvaluation = {
2522
2522
  readonly type: CellValueType.error;
2523
2523
  readonly value: string;
2524
2524
  readonly error: EvaluationError;
@@ -2555,7 +2555,7 @@ interface FormulaModifier {
2555
2555
  increment: number;
2556
2556
  current: number;
2557
2557
  }
2558
- declare type AutofillModifier = IncrementModifier | CopyModifier | FormulaModifier;
2558
+ type AutofillModifier = IncrementModifier | CopyModifier | FormulaModifier;
2559
2559
  interface Tooltip {
2560
2560
  props: any;
2561
2561
  component?: any;
@@ -2596,9 +2596,9 @@ interface Figure {
2596
2596
  height: Pixel;
2597
2597
  tag: string;
2598
2598
  }
2599
- declare type ResizeDirection = -1 | 0 | 1;
2599
+ type ResizeDirection = -1 | 0 | 1;
2600
2600
 
2601
- 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";
2602
2602
  interface ArgDefinition {
2603
2603
  repeating?: boolean;
2604
2604
  optional?: boolean;
@@ -2609,8 +2609,8 @@ interface ArgDefinition {
2609
2609
  default?: boolean;
2610
2610
  defaultValue?: any;
2611
2611
  }
2612
- declare type ComputeFunctionArg<T> = T | (() => T) | undefined;
2613
- 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;
2614
2614
  interface AddFunctionDescription {
2615
2615
  description: string;
2616
2616
  compute: ComputeFunction<ArgValue, FunctionReturnValue>;
@@ -2626,7 +2626,7 @@ interface FunctionDescription extends AddFunctionDescription {
2626
2626
  nbrArgRepeating: number;
2627
2627
  getArgToFocus: (argPosition: number) => number;
2628
2628
  }
2629
- declare type EvalContext = {
2629
+ type EvalContext = {
2630
2630
  __lastFnCalled?: string;
2631
2631
  __originCellXC?: () => string;
2632
2632
  [key: string]: any;
@@ -3407,7 +3407,7 @@ declare class HeaderVisibilityPlugin extends CorePlugin {
3407
3407
  exportData(data: WorkbookData, exportDefaults?: boolean): void;
3408
3408
  }
3409
3409
 
3410
- declare type SheetMergeCellMap = Record<number, Record<number, number | undefined> | undefined>;
3410
+ type SheetMergeCellMap = Record<number, Record<number, number | undefined> | undefined>;
3411
3411
  interface MergeState {
3412
3412
  readonly merges: Record<UID, Record<number, Range | undefined> | undefined>;
3413
3413
  readonly mergeCellMap: Record<UID, SheetMergeCellMap | undefined>;
@@ -4310,7 +4310,7 @@ declare class InternalViewport {
4310
4310
  private adjustViewportZoneY;
4311
4311
  }
4312
4312
 
4313
- declare type SheetViewports = {
4313
+ type SheetViewports = {
4314
4314
  topLeft: InternalViewport | undefined;
4315
4315
  bottomLeft: InternalViewport | undefined;
4316
4316
  topRight: InternalViewport | undefined;
@@ -4601,52 +4601,52 @@ declare class SheetUIPlugin extends UIPlugin {
4601
4601
  * This can be generalized because the union of all indices `0 | 1 | 2 | 3 | ...`
4602
4602
  * is actually the type `number`.
4603
4603
  */
4604
- declare type GetterNames<Plugin extends {
4604
+ type GetterNames<Plugin extends {
4605
4605
  getters: readonly string[];
4606
4606
  }> = Plugin["getters"][number];
4607
- declare type SheetGetters = Pick<SheetPlugin, GetterNames<typeof SheetPlugin>>;
4608
- declare type HeaderSizeGetters = Pick<HeaderSizePlugin, GetterNames<typeof HeaderSizePlugin>>;
4609
- declare type HeaderVisibilityGetters = Pick<HeaderVisibilityPlugin, GetterNames<typeof HeaderVisibilityPlugin>>;
4610
- declare type CellGetters = Pick<CellPlugin, GetterNames<typeof CellPlugin>>;
4611
- declare type MergeGetters = Pick<MergePlugin, GetterNames<typeof MergePlugin>>;
4612
- declare type BordersGetters = Pick<BordersPlugin, GetterNames<typeof BordersPlugin>>;
4613
- declare type ChartGetters = Pick<ChartPlugin, GetterNames<typeof ChartPlugin>>;
4614
- declare type FigureGetters = Pick<FigurePlugin, GetterNames<typeof FigurePlugin>>;
4615
- declare type RangeAdapterGetters = Pick<RangeAdapter, GetterNames<typeof RangeAdapter>>;
4616
- declare type ConditionalFormatGetters = Pick<ConditionalFormatPlugin, GetterNames<typeof ConditionalFormatPlugin>>;
4617
- 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 = {
4618
4618
  canUndo: LocalHistory["canUndo"];
4619
4619
  canRedo: LocalHistory["canRedo"];
4620
4620
  };
4621
- declare type FiltersGetters = Pick<FiltersPlugin, GetterNames<typeof FiltersPlugin>>;
4622
- declare type CoreGetters = SheetGetters & HeaderSizeGetters & HeaderVisibilityGetters & CellGetters & MergeGetters & BordersGetters & ChartGetters & ConditionalFormatGetters & FigureGetters & RangeAdapterGetters & FiltersGetters;
4623
- declare type AutofillGetters = Pick<AutofillPlugin, GetterNames<typeof AutofillPlugin>>;
4624
- declare type AutomaticSumGetters = Pick<AutomaticSumPlugin, GetterNames<typeof AutomaticSumPlugin>>;
4625
- declare type ClipboardGetters = Pick<ClipboardPlugin, GetterNames<typeof ClipboardPlugin>>;
4626
- declare type EditionGetters = Pick<EditionPlugin, GetterNames<typeof EditionPlugin>>;
4627
- declare type EvaluationGetters = Pick<EvaluationPlugin, GetterNames<typeof EvaluationPlugin>>;
4628
- declare type EvaluationChartGetters = Pick<EvaluationChartPlugin, GetterNames<typeof EvaluationChartPlugin>>;
4629
- declare type EvaluationConditionalFormatGetters = Pick<EvaluationConditionalFormatPlugin, GetterNames<typeof EvaluationConditionalFormatPlugin>>;
4630
- declare type FindAndReplaceGetters = Pick<FindAndReplacePlugin, GetterNames<typeof FindAndReplacePlugin>>;
4631
- declare type HeaderVisibilityIUIGetters = Pick<HeaderVisibilityUIPlugin, GetterNames<typeof HeaderVisibilityUIPlugin>>;
4632
- declare type HighlightGetters = Pick<HighlightPlugin, GetterNames<typeof HighlightPlugin>>;
4633
- declare type CustomColorsGetters = Pick<CustomColorsPlugin, GetterNames<typeof CustomColorsPlugin>>;
4634
- declare type RendererGetters = Pick<RendererPlugin, GetterNames<typeof RendererPlugin>>;
4635
- declare type SelectionGetters = Pick<GridSelectionPlugin, GetterNames<typeof GridSelectionPlugin>>;
4636
- declare type SelectionInputGetters = Pick<SelectionInputsManagerPlugin, GetterNames<typeof SelectionInputsManagerPlugin>>;
4637
- declare type SelectionMultiUserGetters = Pick<SelectionMultiUserPlugin, GetterNames<typeof SelectionMultiUserPlugin>>;
4638
- declare type SortGetters = Pick<SortPlugin, GetterNames<typeof SortPlugin>>;
4639
- declare type UIOptionsGetters = Pick<UIOptionsPlugin, GetterNames<typeof UIOptionsPlugin>>;
4640
- declare type SheetUIGetters = Pick<SheetUIPlugin, GetterNames<typeof SheetUIPlugin>>;
4641
- declare type ViewportGetters = Pick<SheetViewPlugin, GetterNames<typeof SheetViewPlugin>>;
4642
- 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 = {
4643
4643
  getClient: Session["getClient"];
4644
4644
  getConnectedClients: Session["getConnectedClients"];
4645
4645
  isFullySynchronized: Session["isFullySynchronized"];
4646
4646
  };
4647
- declare type CellPopoverPluginGetters = Pick<CellPopoverPlugin, GetterNames<typeof CellPopoverPlugin>>;
4648
- declare type FilterEvaluationGetters = Pick<FilterEvaluationPlugin, GetterNames<typeof FilterEvaluationPlugin>>;
4649
- declare type Getters = {
4647
+ type CellPopoverPluginGetters = Pick<CellPopoverPlugin, GetterNames<typeof CellPopoverPlugin>>;
4648
+ type FilterEvaluationGetters = Pick<FilterEvaluationPlugin, GetterNames<typeof FilterEvaluationPlugin>>;
4649
+ type Getters = {
4650
4650
  isReadonly: () => boolean;
4651
4651
  isDashboard: () => boolean;
4652
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;
@@ -4665,7 +4665,7 @@ interface WorkbookHistory<Plugin> {
4665
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;
4666
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;
4667
4667
  }
4668
- declare type Transformation<T = unknown> = (dataToTransform: T) => T;
4668
+ type Transformation<T = unknown> = (dataToTransform: T) => T;
4669
4669
  interface TransformationFactory<T = unknown> {
4670
4670
  /**
4671
4671
  * Build a transformation function to transform any operation as if the execution of
@@ -4679,11 +4679,11 @@ interface TransformationFactory<T = unknown> {
4679
4679
  with: (operation: T) => Transformation<T>;
4680
4680
  }
4681
4681
 
4682
- declare type SelectionDirection = "up" | "down" | "left" | "right";
4683
- declare type SelectionStep = number | "end";
4682
+ type SelectionDirection = "up" | "down" | "left" | "right";
4683
+ type SelectionStep = number | "end";
4684
4684
 
4685
- declare type CellPopoverType = "ErrorToolTip" | "LinkDisplay" | "FilterMenu" | "LinkEditor";
4686
- declare type SizedComponentConstructor = ComponentConstructor & {
4685
+ type CellPopoverType = "ErrorToolTip" | "LinkDisplay" | "FilterMenu" | "LinkEditor";
4686
+ type SizedComponentConstructor = ComponentConstructor & {
4687
4687
  size: {
4688
4688
  width: number;
4689
4689
  height: number;
@@ -4693,7 +4693,7 @@ declare type SizedComponentConstructor = ComponentConstructor & {
4693
4693
  * If the cell at the given position have an associated component (linkDisplay, errorTooltip, ...),
4694
4694
  * returns the parameters to display the component
4695
4695
  */
4696
- declare type CellPopoverBuilder = (position: Position$1, getters: Getters) => CellPopoverComponent<SizedComponentConstructor>;
4696
+ type CellPopoverBuilder = (position: Position$1, getters: Getters) => CellPopoverComponent<SizedComponentConstructor>;
4697
4697
  interface PopoverBuilders {
4698
4698
  onOpen?: CellPopoverBuilder;
4699
4699
  onHover?: CellPopoverBuilder;
@@ -4706,14 +4706,14 @@ interface ClosedCellPopover {
4706
4706
  * i.e. which component class, which props and where to
4707
4707
  * display it relative to the cell
4708
4708
  */
4709
- declare type OpenCellPopover<C extends ComponentConstructor> = {
4709
+ type OpenCellPopover<C extends ComponentConstructor> = {
4710
4710
  isOpen: true;
4711
4711
  Component: C;
4712
4712
  props: PropsOf<C>;
4713
4713
  cellCorner: "TopRight" | "BottomLeft";
4714
4714
  };
4715
- declare type CellPopoverComponent<C extends SizedComponentConstructor = SizedComponentConstructor> = ClosedCellPopover | OpenCellPopover<C>;
4716
- declare type PositionedCellPopover<C extends SizedComponentConstructor = SizedComponentConstructor> = {
4715
+ type CellPopoverComponent<C extends SizedComponentConstructor = SizedComponentConstructor> = ClosedCellPopover | OpenCellPopover<C>;
4716
+ type PositionedCellPopover<C extends SizedComponentConstructor = SizedComponentConstructor> = {
4717
4717
  isOpen: true;
4718
4718
  Component: C;
4719
4719
  props: PropsOf<C>;
@@ -4779,7 +4779,7 @@ interface CellBuilder {
4779
4779
  createCell: (id: UID, content: string, properties: CellDisplayProperties, sheetId: UID, getters: CoreGetters) => Cell;
4780
4780
  }
4781
4781
 
4782
- declare type TransformationFunction<U extends CoreCommandTypes, V extends CoreCommandTypes> = (toTransform: Extract<CoreCommand, {
4782
+ type TransformationFunction<U extends CoreCommandTypes, V extends CoreCommandTypes> = (toTransform: Extract<CoreCommand, {
4783
4783
  type: U;
4784
4784
  }>, executed: Extract<CoreCommand, {
4785
4785
  type: V;
@@ -4969,7 +4969,7 @@ declare class GaugeChartConfigPanel extends Component<Props$v, SpreadsheetChildE
4969
4969
  updateDataRange(): void;
4970
4970
  }
4971
4971
 
4972
- declare type GaugeMenu = "backgroundColor" | "sectionColor-lowerColor" | "sectionColor-middleColor" | "sectionColor-upperColor";
4972
+ type GaugeMenu = "backgroundColor" | "sectionColor-lowerColor" | "sectionColor-middleColor" | "sectionColor-upperColor";
4973
4973
  interface Props$u {
4974
4974
  figureId: UID;
4975
4975
  definition: GaugeChartDefinition;
@@ -5030,7 +5030,7 @@ declare class ScorecardChartConfigPanel extends Component<Props$t, SpreadsheetCh
5030
5030
  updateBaselineMode(ev: any): void;
5031
5031
  }
5032
5032
 
5033
- declare type ColorPickerId = undefined | "backgroundColor" | "baselineColorUp" | "baselineColorDown";
5033
+ type ColorPickerId = undefined | "backgroundColor" | "baselineColorUp" | "baselineColorDown";
5034
5034
  interface Props$s {
5035
5035
  figureId: UID;
5036
5036
  definition: ScorecardChartDefinition;
@@ -5105,9 +5105,9 @@ interface MenuItem {
5105
5105
  icon?: string;
5106
5106
  textColor?: Color;
5107
5107
  }
5108
- declare type FullMenuItem = Required<MenuItem>;
5109
- declare type MenuItemsBuilder = (env: SpreadsheetChildEnv) => FullMenuItem[];
5110
- declare type menuChildren = (FullMenuItem | MenuItemsBuilder)[];
5108
+ type FullMenuItem = Required<MenuItem>;
5109
+ type MenuItemsBuilder = (env: SpreadsheetChildEnv) => FullMenuItem[];
5110
+ type menuChildren = (FullMenuItem | MenuItemsBuilder)[];
5111
5111
  declare function createFullMenuItem(key: string, value: MenuItem): FullMenuItem;
5112
5112
  /**
5113
5113
  * The class Registry is extended in order to add the function addChild
@@ -5481,7 +5481,7 @@ declare class FunctionDescriptionProvider extends Component<Props$k> {
5481
5481
  onMouseMove(): void;
5482
5482
  }
5483
5483
 
5484
- declare type HtmlContent = {
5484
+ type HtmlContent = {
5485
5485
  value: string;
5486
5486
  color?: Color;
5487
5487
  class?: string;
@@ -5621,7 +5621,7 @@ declare class FilterIconsOverlay extends Component<Props$g, SpreadsheetChildEnv>
5621
5621
  private isPositionVisible;
5622
5622
  }
5623
5623
 
5624
- 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";
5625
5625
  interface Props$f {
5626
5626
  figure: Figure;
5627
5627
  style: string;
@@ -5650,7 +5650,7 @@ declare class FigureComponent extends Component<Props$f, SpreadsheetChildEnv> {
5650
5650
  onKeyDown(ev: KeyboardEvent): void;
5651
5651
  }
5652
5652
 
5653
- declare type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
5653
+ type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
5654
5654
  interface DndState {
5655
5655
  figId: string | undefined;
5656
5656
  x: Pixel;
@@ -5911,7 +5911,7 @@ declare class HeadersOverlay extends Component<any, SpreadsheetChildEnv> {
5911
5911
  selectAll(): void;
5912
5912
  }
5913
5913
 
5914
- declare type Orientation$1 = "n" | "s" | "w" | "e";
5914
+ type Orientation$1 = "n" | "s" | "w" | "e";
5915
5915
  interface Props$b {
5916
5916
  zone: Zone;
5917
5917
  orientation: Orientation$1;
@@ -5924,7 +5924,7 @@ declare class Border extends Component<Props$b, SpreadsheetChildEnv> {
5924
5924
  onMouseDown(ev: MouseEvent): void;
5925
5925
  }
5926
5926
 
5927
- declare type Orientation = "nw" | "ne" | "sw" | "se";
5927
+ type Orientation = "nw" | "ne" | "sw" | "se";
5928
5928
  interface Props$a {
5929
5929
  zone: Zone;
5930
5930
  color: Color;
@@ -5958,7 +5958,7 @@ declare class Highlight extends Component<Props$9, SpreadsheetChildEnv> {
5958
5958
  onMoveHighlight(clientX: Pixel, clientY: Pixel): void;
5959
5959
  }
5960
5960
 
5961
- declare type ScrollDirection = "horizontal" | "vertical";
5961
+ type ScrollDirection = "horizontal" | "vertical";
5962
5962
 
5963
5963
  interface Props$8 {
5964
5964
  width: Pixel;
@@ -6046,7 +6046,7 @@ declare class VerticalScrollBar extends Component<Props$6, SpreadsheetChildEnv>
6046
6046
  * - a horizontal resizer (to resize columns)
6047
6047
  * - a vertical resizer (same, for rows)
6048
6048
  */
6049
- declare type ContextMenuType = "ROW" | "COL" | "CELL" | "FILTER";
6049
+ type ContextMenuType = "ROW" | "COL" | "CELL" | "FILTER";
6050
6050
  interface Props$5 {
6051
6051
  sidePanelIsOpen: boolean;
6052
6052
  exposeFocus: (focus: () => void) => void;
@@ -6300,7 +6300,7 @@ interface FontSize {
6300
6300
  px: number;
6301
6301
  }
6302
6302
 
6303
- declare type Tool = "" | "formatTool" | "alignTool" | "textColorTool" | "fillColorTool" | "borderTool" | "fontSizeTool";
6303
+ type Tool = "" | "formatTool" | "alignTool" | "textColorTool" | "fillColorTool" | "borderTool" | "fontSizeTool";
6304
6304
  interface State {
6305
6305
  menuState: MenuState;
6306
6306
  activeTool: Tool;
@@ -6381,7 +6381,7 @@ declare class TopBar extends Component<Props, SpreadsheetChildEnv> {
6381
6381
  removeFilter(): void;
6382
6382
  }
6383
6383
 
6384
- declare type ComposerFocusType = "inactive" | "cellFocus" | "contentFocus";
6384
+ type ComposerFocusType = "inactive" | "cellFocus" | "contentFocus";
6385
6385
  interface SpreadsheetProps {
6386
6386
  model: Model;
6387
6387
  exposeSpreadsheet?: (spreadsheet: Spreadsheet) => void;