@odoo/o-spreadsheet 17.3.0-alpha.2 → 17.3.0-alpha.3

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.
@@ -297,9 +297,14 @@ interface ScorecardChartDefinition {
297
297
  readonly background?: Color;
298
298
  readonly baselineColorUp: Color;
299
299
  readonly baselineColorDown: Color;
300
+ readonly humanize?: boolean;
300
301
  }
301
- type BaselineMode = "text" | "difference" | "percentage";
302
+ type BaselineMode = "text" | "difference" | "percentage" | "progress";
302
303
  type BaselineArrowDirection = "neutral" | "up" | "down";
304
+ interface ProgressBar {
305
+ readonly value: number;
306
+ readonly color: Color;
307
+ }
303
308
  interface ScorecardChartRuntime {
304
309
  readonly title: string;
305
310
  readonly keyValue: string;
@@ -311,6 +316,7 @@ interface ScorecardChartRuntime {
311
316
  readonly fontColor: Color;
312
317
  readonly keyValueStyle?: Style;
313
318
  readonly baselineStyle?: Style;
319
+ readonly progressBar?: ProgressBar;
314
320
  }
315
321
 
316
322
  declare const CHART_TYPES: readonly ["line", "bar", "pie", "scorecard", "gauge", "scatter", "combo"];
@@ -336,7 +342,7 @@ interface ExcelChartDataset {
336
342
  readonly label?: string;
337
343
  readonly range: string;
338
344
  }
339
- type ExcelChartType = "line" | "bar" | "pie" | "combo";
345
+ type ExcelChartType = "line" | "bar" | "pie" | "combo" | "scatter";
340
346
  interface ExcelChartDefinition {
341
347
  readonly title?: string;
342
348
  readonly type: ExcelChartType;
@@ -531,6 +537,7 @@ declare function isPositionDependent(cmd: CoreCommand): boolean;
531
537
  declare const invalidateEvaluationCommands: Set<"CUT" | "COPY" | "UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "ACTIVATE_PAINT_FORMAT" | "CANCEL_PAINT_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SORT_CELLS" | "SET_DECIMAL" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RENDER_CANVAS">;
532
538
  declare const invalidateDependenciesCommands: Set<"CUT" | "COPY" | "UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "ACTIVATE_PAINT_FORMAT" | "CANCEL_PAINT_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SORT_CELLS" | "SET_DECIMAL" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RENDER_CANVAS">;
533
539
  declare const invalidateCFEvaluationCommands: Set<"CUT" | "COPY" | "UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "ACTIVATE_PAINT_FORMAT" | "CANCEL_PAINT_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SORT_CELLS" | "SET_DECIMAL" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RENDER_CANVAS">;
540
+ declare const invalidateBordersCommands: Set<"CUT" | "COPY" | "UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "ACTIVATE_PAINT_FORMAT" | "CANCEL_PAINT_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SORT_CELLS" | "SET_DECIMAL" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RENDER_CANVAS">;
534
541
  declare const readonlyAllowedCommands: Set<"CUT" | "COPY" | "UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "ACTIVATE_PAINT_FORMAT" | "CANCEL_PAINT_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SORT_CELLS" | "SET_DECIMAL" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RENDER_CANVAS">;
535
542
  declare const coreTypes: Set<"UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE">;
536
543
  declare function isCoreCommand(cmd: Command): cmd is CoreCommand;
@@ -1178,9 +1185,6 @@ interface CommandDispatcher {
1178
1185
  dispatch<T extends CommandTypes, C extends Extract<Command, {
1179
1186
  type: T;
1180
1187
  }>>(type: T, r: Omit<C, "type">): DispatchResult;
1181
- canDispatch<T extends CommandTypes, C extends Extract<Command, {
1182
- type: T;
1183
- }>>(type: T, r: Omit<C, "type">): DispatchResult;
1184
1188
  }
1185
1189
  interface CoreCommandDispatcher {
1186
1190
  dispatch<T extends CoreCommandTypes, C extends Extract<CoreCommand, {
@@ -1189,9 +1193,6 @@ interface CoreCommandDispatcher {
1189
1193
  dispatch<T extends CoreCommandTypes, C extends Extract<CoreCommand, {
1190
1194
  type: T;
1191
1195
  }>>(type: T, r: Omit<C, "type">): DispatchResult;
1192
- canDispatch<T extends CoreCommandTypes, C extends Extract<CoreCommand, {
1193
- type: T;
1194
- }>>(type: T, r: Omit<C, "type">): DispatchResult;
1195
1196
  }
1196
1197
  type CommandTypes = Command["type"];
1197
1198
  type CoreCommandTypes = CoreCommand["type"];
@@ -1563,6 +1564,11 @@ type DebouncedFunction<T> = T & {
1563
1564
  stopDebounce: () => void;
1564
1565
  isDebouncePending: () => boolean;
1565
1566
  };
1567
+ interface GridClickModifiers {
1568
+ addZone: boolean;
1569
+ expandZone: boolean;
1570
+ closePopover: boolean;
1571
+ }
1566
1572
 
1567
1573
  type LocaleCode = string & Alias;
1568
1574
  interface Locale {
@@ -2102,7 +2108,8 @@ declare class BasePlugin<State = any, C = any> implements CommandHandler<C>, Val
2102
2108
  static getters: readonly string[];
2103
2109
  protected history: WorkbookHistory<State>;
2104
2110
  protected dispatch: CommandDispatcher["dispatch"];
2105
- constructor(stateObserver: StateObserver, dispatch: CommandDispatcher["dispatch"]);
2111
+ protected canDispatch: CommandDispatcher["dispatch"];
2112
+ constructor(stateObserver: StateObserver, dispatch: CommandDispatcher["dispatch"], canDispatch: CommandDispatcher["dispatch"]);
2106
2113
  /**
2107
2114
  * Export for excel should be available for all plugins, even for the UI.
2108
2115
  * In some case, we need to export evaluated value, which is available from
@@ -2214,6 +2221,7 @@ interface CorePluginConfig {
2214
2221
  readonly stateObserver: StateObserver;
2215
2222
  readonly range: RangeAdapter;
2216
2223
  readonly dispatch: CoreCommandDispatcher["dispatch"];
2224
+ readonly canDispatch: CoreCommandDispatcher["dispatch"];
2217
2225
  readonly uuidGenerator: UuidGenerator;
2218
2226
  readonly custom: ModelConfig["custom"];
2219
2227
  readonly external: ModelConfig["external"];
@@ -2231,7 +2239,7 @@ interface CorePluginConstructor {
2231
2239
  declare class CorePlugin<State = any> extends BasePlugin<State, CoreCommand> implements RangeProvider {
2232
2240
  protected getters: CoreGetters;
2233
2241
  protected uuidGenerator: UuidGenerator;
2234
- constructor({ getters, stateObserver, range, dispatch, uuidGenerator }: CorePluginConfig);
2242
+ constructor({ getters, stateObserver, range, dispatch, canDispatch, uuidGenerator, }: CorePluginConfig);
2235
2243
  import(data: WorkbookData): void;
2236
2244
  export(data: WorkbookData): void;
2237
2245
  /**
@@ -3545,6 +3553,7 @@ interface UIPluginConfig {
3545
3553
  readonly getters: Getters;
3546
3554
  readonly stateObserver: StateObserver;
3547
3555
  readonly dispatch: CommandDispatcher["dispatch"];
3556
+ readonly canDispatch: CommandDispatcher["dispatch"];
3548
3557
  readonly selection: SelectionStreamProcessor;
3549
3558
  readonly moveClient: (position: ClientPosition) => void;
3550
3559
  readonly uiActions: UIActions;
@@ -3567,7 +3576,7 @@ declare class UIPlugin<State = any> extends BasePlugin<State, Command> {
3567
3576
  protected getters: Getters;
3568
3577
  protected ui: UIActions;
3569
3578
  protected selection: SelectionStreamProcessor;
3570
- constructor({ getters, stateObserver, dispatch, uiActions, selection }: UIPluginConfig);
3579
+ constructor({ getters, stateObserver, dispatch, canDispatch, uiActions, selection, }: UIPluginConfig);
3571
3580
  drawLayer(ctx: GridRenderingContext, layer: LayerName): void;
3572
3581
  }
3573
3582
 
@@ -5240,7 +5249,7 @@ declare class Model extends EventBus<any> implements CommandDispatcher {
5240
5249
  * Check if a command can be dispatched, and returns a DispatchResult object with the possible
5241
5250
  * reasons the dispatch failed.
5242
5251
  */
5243
- canDispatch: CommandDispatcher["canDispatch"];
5252
+ canDispatch: CommandDispatcher["dispatch"];
5244
5253
  /**
5245
5254
  * The dispatch method is the only entry point to manipulate data in the model.
5246
5255
  * This is through this method that commands are dispatched most of the time
@@ -6072,24 +6081,36 @@ declare class ColorPickerWidget extends Component<Props$I, SpreadsheetChildEnv>
6072
6081
  interface Props$H {
6073
6082
  currentColor?: string;
6074
6083
  onColorPicked: (color: string) => void;
6084
+ title?: string;
6075
6085
  }
6076
- declare class ChartColor extends Component<Props$H, SpreadsheetChildEnv> {
6086
+ declare class RoundColorPicker extends Component<Props$H, SpreadsheetChildEnv> {
6077
6087
  static template: string;
6078
6088
  static components: {
6079
6089
  ColorPickerWidget: typeof ColorPickerWidget;
6080
6090
  Section: typeof Section;
6091
+ ColorPicker: typeof ColorPicker;
6081
6092
  };
6082
6093
  static props: {
6083
6094
  currentColor: {
6084
6095
  type: StringConstructor;
6085
6096
  optional: boolean;
6086
6097
  };
6098
+ title: {
6099
+ type: StringConstructor;
6100
+ optional: boolean;
6101
+ };
6087
6102
  onColorPicked: FunctionConstructor;
6088
6103
  };
6104
+ colorPickerButtonRef: {
6105
+ el: HTMLElement | null;
6106
+ };
6089
6107
  private state;
6090
6108
  setup(): void;
6091
6109
  closePicker(): void;
6092
6110
  togglePicker(): void;
6111
+ onColorPicked(color: string): void;
6112
+ get colorPickerAnchorRect(): Rect;
6113
+ get buttonStyle(): string;
6093
6114
  }
6094
6115
 
6095
6116
  interface Props$G {
@@ -6117,7 +6138,7 @@ interface Props$F {
6117
6138
  declare class LineBarPieDesignPanel extends Component<Props$F, SpreadsheetChildEnv> {
6118
6139
  static template: string;
6119
6140
  static components: {
6120
- ChartColor: typeof ChartColor;
6141
+ RoundColorPicker: typeof RoundColorPicker;
6121
6142
  ChartTitle: typeof ChartTitle;
6122
6143
  Section: typeof Section;
6123
6144
  };
@@ -6131,6 +6152,7 @@ declare class LineBarPieDesignPanel extends Component<Props$F, SpreadsheetChildE
6131
6152
  updateBackgroundColor(color: Color): void;
6132
6153
  updateTitle(title: string): void;
6133
6154
  updateSelect(attr: string, ev: any): void;
6155
+ get backgroundColorTitle(): string;
6134
6156
  }
6135
6157
 
6136
6158
  interface Props$E {
@@ -6160,7 +6182,6 @@ declare class GaugeChartConfigPanel extends Component<Props$E, SpreadsheetChildE
6160
6182
  getDataRange(): string;
6161
6183
  }
6162
6184
 
6163
- type GaugeMenu = "sectionColor-lowerColor" | "sectionColor-middleColor" | "sectionColor-upperColor";
6164
6185
  interface Props$D {
6165
6186
  figureId: UID;
6166
6187
  definition: GaugeChartDefinition;
@@ -6170,9 +6191,8 @@ interface Props$D {
6170
6191
  declare class GaugeChartDesignPanel extends Component<Props$D, SpreadsheetChildEnv> {
6171
6192
  static template: string;
6172
6193
  static components: {
6173
- ColorPickerWidget: typeof ColorPickerWidget;
6174
6194
  ChartErrorSection: typeof ChartErrorSection;
6175
- ChartColor: typeof ChartColor;
6195
+ RoundColorPicker: typeof RoundColorPicker;
6176
6196
  ChartTitle: typeof ChartTitle;
6177
6197
  Section: typeof Section;
6178
6198
  };
@@ -6183,7 +6203,6 @@ declare class GaugeChartDesignPanel extends Component<Props$D, SpreadsheetChildE
6183
6203
  canUpdateChart: FunctionConstructor;
6184
6204
  };
6185
6205
  private state;
6186
- setup(): void;
6187
6206
  get title(): string;
6188
6207
  get designErrorMessages(): string[];
6189
6208
  updateBackgroundColor(color: Color): void;
@@ -6193,10 +6212,9 @@ declare class GaugeChartDesignPanel extends Component<Props$D, SpreadsheetChildE
6193
6212
  get isLowerInflectionPointInvalid(): boolean;
6194
6213
  get isUpperInflectionPointInvalid(): boolean;
6195
6214
  updateSectionColor(target: string, color: Color): void;
6196
- toggleMenu(menu: GaugeMenu): void;
6197
6215
  updateSectionRule(sectionRule: SectionRule): void;
6198
6216
  canUpdateSectionRule(sectionRule: SectionRule): void;
6199
- private closeMenus;
6217
+ get backgroundColorTitle(): string;
6200
6218
  }
6201
6219
 
6202
6220
  declare class LineConfigPanel extends LineBarPieConfigPanel {
@@ -6260,10 +6278,10 @@ interface Props$B {
6260
6278
  declare class ScorecardChartDesignPanel extends Component<Props$B, SpreadsheetChildEnv> {
6261
6279
  static template: string;
6262
6280
  static components: {
6263
- ColorPickerWidget: typeof ColorPickerWidget;
6264
- ChartColor: typeof ChartColor;
6281
+ RoundColorPicker: typeof RoundColorPicker;
6265
6282
  ChartTitle: typeof ChartTitle;
6266
6283
  Section: typeof Section;
6284
+ Checkbox: typeof Checkbox;
6267
6285
  };
6268
6286
  static props: {
6269
6287
  figureId: StringConstructor;
@@ -6271,15 +6289,15 @@ declare class ScorecardChartDesignPanel extends Component<Props$B, SpreadsheetCh
6271
6289
  updateChart: FunctionConstructor;
6272
6290
  canUpdateChart: FunctionConstructor;
6273
6291
  };
6274
- private state;
6275
- setup(): void;
6276
6292
  get title(): string;
6293
+ get colorsSectionTitle(): string;
6294
+ get humanizeNumbersLabel(): string;
6277
6295
  updateTitle(title: string): void;
6296
+ updateHumanizeNumbers(humanize: boolean): void;
6278
6297
  translate(term: any): string;
6279
6298
  updateBaselineDescr(ev: any): void;
6280
- toggleColorPicker(colorPickerId: ColorPickerId): void;
6281
6299
  setColor(color: Color, colorPickerId: ColorPickerId): void;
6282
- private closeMenus;
6300
+ get backgroundColorTitle(): string;
6283
6301
  }
6284
6302
 
6285
6303
  interface ChartSidePanel {
@@ -6742,6 +6760,7 @@ interface ComposerProps {
6742
6760
  delimitation?: DOMDimension;
6743
6761
  onComposerContentFocused: () => void;
6744
6762
  onComposerCellFocused?: (content: String) => void;
6763
+ onInputContextMenu?: (event: MouseEvent) => void;
6745
6764
  isDefaultFocus?: boolean;
6746
6765
  }
6747
6766
  interface ComposerState {
@@ -6785,6 +6804,10 @@ declare class Composer extends Component<ComposerProps, SpreadsheetChildEnv> {
6785
6804
  type: BooleanConstructor;
6786
6805
  optional: boolean;
6787
6806
  };
6807
+ onInputContextMenu: {
6808
+ type: FunctionConstructor;
6809
+ optional: boolean;
6810
+ };
6788
6811
  };
6789
6812
  static components: {
6790
6813
  TextValueProvider: typeof TextValueProvider;
@@ -6841,6 +6864,7 @@ declare class Composer extends Component<ComposerProps, SpreadsheetChildEnv> {
6841
6864
  onMousedown(ev: MouseEvent): void;
6842
6865
  onClick(): void;
6843
6866
  onDblClick(): void;
6867
+ onContextMenu(ev: MouseEvent): void;
6844
6868
  private processContent;
6845
6869
  /**
6846
6870
  * Get the HTML content corresponding to the current composer token, divided by lines.
@@ -7145,6 +7169,7 @@ declare class ClientTag extends Component<ClientTagProps, SpreadsheetChildEnv> {
7145
7169
 
7146
7170
  interface Props$s {
7147
7171
  gridDims: DOMDimension;
7172
+ onInputContextMenu: (event: MouseEvent) => void;
7148
7173
  }
7149
7174
  /**
7150
7175
  * This component is a composer which positions itself on the grid at the anchor cell.
@@ -7154,6 +7179,7 @@ declare class GridComposer extends Component<Props$s, SpreadsheetChildEnv> {
7154
7179
  static template: string;
7155
7180
  static props: {
7156
7181
  gridDims: ObjectConstructor;
7182
+ onInputContextMenu: FunctionConstructor;
7157
7183
  };
7158
7184
  static components: {
7159
7185
  Composer: typeof Composer;
@@ -7185,7 +7211,6 @@ interface GridCellIconProps {
7185
7211
  cellPosition: CellPosition;
7186
7212
  horizontalAlign?: Align;
7187
7213
  verticalAlign?: VerticalAlign;
7188
- offset?: DOMCoordinates;
7189
7214
  }
7190
7215
  declare class GridCellIcon extends Component<GridCellIconProps, SpreadsheetChildEnv> {
7191
7216
  static template: string;
@@ -7199,10 +7224,6 @@ declare class GridCellIcon extends Component<GridCellIconProps, SpreadsheetChild
7199
7224
  type: StringConstructor;
7200
7225
  optional: boolean;
7201
7226
  };
7202
- offset: {
7203
- type: ObjectConstructor;
7204
- optional: boolean;
7205
- };
7206
7227
  slots: ObjectConstructor;
7207
7228
  };
7208
7229
  get iconStyle(): string;
@@ -7211,70 +7232,10 @@ declare class GridCellIcon extends Component<GridCellIconProps, SpreadsheetChild
7211
7232
  isPositionVisible(position: CellPosition): boolean;
7212
7233
  }
7213
7234
 
7214
- declare class CellPopoverStore extends SpreadsheetStore {
7215
- private persistentPopover?;
7216
- protected hoveredCell: {
7217
- readonly col: number | undefined;
7218
- readonly row: number | undefined;
7219
- readonly handle: (cmd: Command) => void;
7220
- readonly hover: (position: Position$1) => void;
7221
- readonly clear: () => void;
7222
- readonly renderingLayers: readonly ("Chart" | "Background" | "Highlights" | "Clipboard" | "Autofill" | "Selection" | "Headers")[];
7223
- readonly drawLayer: (ctx: GridRenderingContext, layer: "Chart" | "Background" | "Highlights" | "Clipboard" | "Autofill" | "Selection" | "Headers") => void;
7224
- readonly dispose: () => void;
7225
- };
7226
- handle(cmd: Command): void;
7227
- open({ col, row }: Position$1, type: CellPopoverType): void;
7228
- close(): void;
7229
- get persistentCellPopover(): OpenCellPopover | ClosedCellPopover;
7230
- get isOpen(): boolean;
7231
- get cellPopover(): ClosedCellPopover | PositionedCellPopoverComponent;
7232
- private computePopoverAnchorRect;
7233
- }
7234
-
7235
7235
  interface Props$r {
7236
7236
  cellPosition: CellPosition;
7237
7237
  }
7238
- declare class FilterIcon extends Component<Props$r, SpreadsheetChildEnv> {
7239
- static template: string;
7240
- static props: {
7241
- cellPosition: ObjectConstructor;
7242
- };
7243
- protected cellPopovers: Store<CellPopoverStore>;
7244
- setup(): void;
7245
- onClick(): void;
7246
- get isFilterActive(): boolean;
7247
- get iconClass(): string;
7248
- }
7249
-
7250
- interface Props$q {
7251
- gridPosition: DOMCoordinates;
7252
- }
7253
- declare class FilterIconsOverlay extends Component<Props$q, SpreadsheetChildEnv> {
7254
- static template: string;
7255
- static props: {
7256
- gridPosition: {
7257
- type: ObjectConstructor;
7258
- optional: boolean;
7259
- };
7260
- };
7261
- static components: {
7262
- GridCellIcon: typeof GridCellIcon;
7263
- FilterIcon: typeof FilterIcon;
7264
- };
7265
- static defaultProps: {
7266
- gridPosition: {
7267
- x: number;
7268
- y: number;
7269
- };
7270
- };
7271
- getFilterHeadersPositions(): CellPosition[];
7272
- }
7273
-
7274
- interface Props$p {
7275
- cellPosition: CellPosition;
7276
- }
7277
- declare class DataValidationCheckbox extends Component<Props$p, SpreadsheetChildEnv> {
7238
+ declare class DataValidationCheckbox extends Component<Props$r, SpreadsheetChildEnv> {
7278
7239
  static template: string;
7279
7240
  static props: {
7280
7241
  cellPosition: ObjectConstructor;
@@ -7284,10 +7245,10 @@ declare class DataValidationCheckbox extends Component<Props$p, SpreadsheetChild
7284
7245
  get isDisabled(): boolean;
7285
7246
  }
7286
7247
 
7287
- interface Props$o {
7248
+ interface Props$q {
7288
7249
  cellPosition: CellPosition;
7289
7250
  }
7290
- declare class DataValidationListIcon extends Component<Props$o, SpreadsheetChildEnv> {
7251
+ declare class DataValidationListIcon extends Component<Props$q, SpreadsheetChildEnv> {
7291
7252
  static template: string;
7292
7253
  static props: {
7293
7254
  cellPosition: ObjectConstructor;
@@ -7317,7 +7278,7 @@ interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
7317
7278
  }
7318
7279
 
7319
7280
  type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
7320
- interface Props$n {
7281
+ interface Props$p {
7321
7282
  onFigureDeleted: () => void;
7322
7283
  }
7323
7284
  interface Container {
@@ -7396,7 +7357,7 @@ interface DndState {
7396
7357
  * that occurred during the drag & drop, and to position the figure on the correct pane.
7397
7358
  *
7398
7359
  */
7399
- declare class FiguresContainer extends Component<Props$n, SpreadsheetChildEnv> {
7360
+ declare class FiguresContainer extends Component<Props$p, SpreadsheetChildEnv> {
7400
7361
  static template: string;
7401
7362
  static props: {
7402
7363
  onFigureDeleted: FunctionConstructor;
@@ -7431,6 +7392,57 @@ declare class FiguresContainer extends Component<Props$n, SpreadsheetChildEnv> {
7431
7392
  private getSnapLineStyle;
7432
7393
  }
7433
7394
 
7395
+ declare class CellPopoverStore extends SpreadsheetStore {
7396
+ private persistentPopover?;
7397
+ protected hoveredCell: {
7398
+ readonly col: number | undefined;
7399
+ readonly row: number | undefined;
7400
+ readonly handle: (cmd: Command) => void;
7401
+ readonly hover: (position: Position$1) => void;
7402
+ readonly clear: () => void;
7403
+ readonly renderingLayers: readonly ("Chart" | "Background" | "Highlights" | "Clipboard" | "Autofill" | "Selection" | "Headers")[];
7404
+ readonly drawLayer: (ctx: GridRenderingContext, layer: "Chart" | "Background" | "Highlights" | "Clipboard" | "Autofill" | "Selection" | "Headers") => void;
7405
+ readonly dispose: () => void;
7406
+ };
7407
+ handle(cmd: Command): void;
7408
+ open({ col, row }: Position$1, type: CellPopoverType): void;
7409
+ close(): void;
7410
+ get persistentCellPopover(): OpenCellPopover | ClosedCellPopover;
7411
+ get isOpen(): boolean;
7412
+ get cellPopover(): ClosedCellPopover | PositionedCellPopoverComponent;
7413
+ private computePopoverAnchorRect;
7414
+ }
7415
+
7416
+ interface Props$o {
7417
+ cellPosition: CellPosition;
7418
+ }
7419
+ declare class FilterIcon extends Component<Props$o, SpreadsheetChildEnv> {
7420
+ static template: string;
7421
+ static props: {
7422
+ cellPosition: ObjectConstructor;
7423
+ };
7424
+ protected cellPopovers: Store<CellPopoverStore>;
7425
+ setup(): void;
7426
+ onClick(): void;
7427
+ get isFilterActive(): boolean;
7428
+ get iconClass(): string;
7429
+ }
7430
+
7431
+ interface Props$n {
7432
+ onMouseDown: (ev: MouseEvent) => void;
7433
+ }
7434
+ declare class FilterIconsOverlay extends Component<Props$n, SpreadsheetChildEnv> {
7435
+ static template: string;
7436
+ static props: {
7437
+ onMouseDown: FunctionConstructor;
7438
+ };
7439
+ static components: {
7440
+ GridCellIcon: typeof GridCellIcon;
7441
+ FilterIcon: typeof FilterIcon;
7442
+ };
7443
+ getFilterHeadersPositions(): CellPosition[];
7444
+ }
7445
+
7434
7446
  interface Props$m {
7435
7447
  focusGrid: () => void;
7436
7448
  }
@@ -7461,10 +7473,7 @@ declare class GridAddRowsFooter extends Component<Props$m, SpreadsheetChildEnv>
7461
7473
  interface Props$l {
7462
7474
  onCellHovered: (position: Partial<Position$1>) => void;
7463
7475
  onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
7464
- onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: {
7465
- addZone: boolean;
7466
- expandZone: boolean;
7467
- }) => void;
7476
+ onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers) => void;
7468
7477
  onCellRightClicked: (col: HeaderIndex, row: HeaderIndex, coordinates: DOMCoordinates) => void;
7469
7478
  onGridResized: (dimension: Rect) => void;
7470
7479
  onGridMoved: (deltaX: Pixel, deltaY: Pixel) => void;
@@ -7505,6 +7514,7 @@ declare class GridOverlay extends Component<Props$l, SpreadsheetChildEnv> {
7505
7514
  FiguresContainer: typeof FiguresContainer;
7506
7515
  DataValidationOverlay: typeof DataValidationOverlay;
7507
7516
  GridAddRowsFooter: typeof GridAddRowsFooter;
7517
+ FilterIconsOverlay: typeof FilterIconsOverlay;
7508
7518
  };
7509
7519
  static defaultProps: {
7510
7520
  onCellHovered: () => void;
@@ -7520,7 +7530,9 @@ declare class GridOverlay extends Component<Props$l, SpreadsheetChildEnv> {
7520
7530
  get gridOverlayEl(): HTMLElement;
7521
7531
  get style(): string;
7522
7532
  get isPaintingFormat(): boolean;
7523
- onMouseDown(ev: MouseEvent): void;
7533
+ onMouseDown(ev: MouseEvent, modifiers?: {
7534
+ closePopover: boolean;
7535
+ }): void;
7524
7536
  onDoubleClick(ev: MouseEvent): void;
7525
7537
  onContextMenu(ev: MouseEvent): void;
7526
7538
  private getCartesianCoordinates;
@@ -7872,7 +7884,6 @@ declare class Grid extends Component<Props$d, SpreadsheetChildEnv> {
7872
7884
  Popover: typeof Popover;
7873
7885
  VerticalScrollBar: typeof VerticalScrollBar;
7874
7886
  HorizontalScrollBar: typeof HorizontalScrollBar;
7875
- FilterIconsOverlay: typeof FilterIconsOverlay;
7876
7887
  };
7877
7888
  readonly HEADER_HEIGHT = 26;
7878
7889
  readonly HEADER_WIDTH = 48;
@@ -7908,10 +7919,7 @@ declare class Grid extends Component<Props$d, SpreadsheetChildEnv> {
7908
7919
  getClientPositionKey(client: Client): string;
7909
7920
  isCellHovered(col: HeaderIndex, row: HeaderIndex): boolean;
7910
7921
  private getGridRect;
7911
- onCellClicked(col: HeaderIndex, row: HeaderIndex, { addZone, expandZone }: {
7912
- addZone: boolean;
7913
- expandZone: boolean;
7914
- }): void;
7922
+ onCellClicked(col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers): void;
7915
7923
  onCellDoubleClicked(col: HeaderIndex, row: HeaderIndex): void;
7916
7924
  processArrows(ev: KeyboardEvent): void;
7917
7925
  onKeydown(ev: KeyboardEvent): void;
@@ -8376,7 +8384,6 @@ declare class SpreadsheetDashboard extends Component<Props$8, SpreadsheetChildEn
8376
8384
  Popover: typeof Popover;
8377
8385
  VerticalScrollBar: typeof VerticalScrollBar;
8378
8386
  HorizontalScrollBar: typeof HorizontalScrollBar;
8379
- FilterIconsOverlay: typeof FilterIconsOverlay;
8380
8387
  };
8381
8388
  protected cellPopovers: Store<CellPopoverStore>;
8382
8389
  onMouseWheel: (ev: WheelEvent) => void;
@@ -8887,6 +8894,7 @@ declare class TopBarComposer extends Component<any, SpreadsheetChildEnv> {
8887
8894
  get focus(): Omit<ComposerFocusType, "cellFocus">;
8888
8895
  get composerStyle(): string;
8889
8896
  get containerStyle(): string;
8897
+ get delimitation(): DOMDimension;
8890
8898
  onFocus(selection: ComposerSelection): void;
8891
8899
  }
8892
8900
 
@@ -9122,6 +9130,7 @@ declare const CellErrorType: {
9122
9130
  readonly BadExpression: "#BAD_EXPR";
9123
9131
  readonly CircularDependency: "#CYCLE";
9124
9132
  readonly UnknownFunction: "#NAME?";
9133
+ readonly DivisionByZero: "#DIV/0!";
9125
9134
  readonly GenericError: "#ERROR";
9126
9135
  };
9127
9136
  declare class EvaluationError extends Error {
@@ -10043,7 +10052,7 @@ declare const links: {
10043
10052
  declare const components: {
10044
10053
  Checkbox: typeof Checkbox;
10045
10054
  Section: typeof Section;
10046
- ChartColor: typeof ChartColor;
10055
+ RoundColorPicker: typeof RoundColorPicker;
10047
10056
  ChartDataSeries: typeof ChartDataSeries;
10048
10057
  ChartErrorSection: typeof ChartErrorSection;
10049
10058
  ChartLabelRange: typeof ChartLabelRange;
@@ -10100,4 +10109,4 @@ declare const constants: {
10100
10109
  HIGHLIGHT_COLOR: string;
10101
10110
  };
10102
10111
 
10103
- export { AST, ASTFuncall, AboveAverageRule, AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, ActivateNextSheetCommand, ActivatePaintFormatCommand, ActivatePreviousSheetCommand, ActivateSheetCommand, AddColumnsRowsCommand, AddConditionalFormatCommand, AddDataValidationCommand, AddFunctionDescription, AddMergeCommand, Alias, Align, AlphanumericIncrementModifier, AnchorZone, ApplyRangeChange, ApplyRangeChangeResult, Arg, ArgDefinition, ArgType, AutoFillCellCommand, AutofillAutoCommand, AutofillCellData, AutofillCommand, AutofillData, AutofillModifier, AutofillModifierImplementation, AutofillResult, AutofillSelectCommand, AutofillTableCommand, AutoresizeColumnsCommand, AutoresizeRowsCommand, AxisType, BeginsWithRule, BooleanCell, Border$1 as Border, BorderData, BorderDescr, BorderDescription, BorderPosition, BorderStyle, Box, BoxTextContent, CHART_TYPES, CSSProperties, CancelPaintFormatCommand, CancelledReason, Cell, CellData, CellErrorType, CellIsRule, CellPosition, CellValue, CellValueType, ChangeType, ChartCreationContext, ChartDefinition, ChartJSRuntime, ChartRuntime, ChartType, CleanClipBoardHighlightCommand, ClearCellCommand, ClearFormattingCommand, Client, ClientId, ClientJoinedMessage, ClientLeftMessage, ClientMovedMessage, ClientPosition, ClipboardCell, ClipboardCellData, ClipboardContent, ClipboardData, ClipboardFigureData, ClipboardMIMEType, ClipboardOperation, ClipboardOptions, ClipboardPasteOptions, ClipboardPasteTarget, Cloneable, CollaborationMessage, CollaborativeEvent, CollaborativeEventReceived, CollaborativeEventTypes, Color, ColorScaleMidPointThreshold, ColorScaleRule, ColorScaleThreshold, Command, CommandDispatcher, CommandHandler, CommandResult, CommandTypes, CompiledFormula, ComputeFunction, ComputedTableStyle, ConditionalFormat, ConditionalFormatInternal, ConditionalFormatRule, ConditionalFormattingOperatorValues, ConsecutiveIndexes, ContainsTextRule, CopyCommand, CopyModifier, CopyPasteCellsAboveCommand, CopyPasteCellsOnLeftCommand, CoreCommand, CoreCommandDispatcher, CoreCommandTypes, CoreGetters, CorePlugin, CoreTable, CoreTableType, CoreViewCommand, CoreViewCommandTypes, CreateChartCommand, CreateFigureCommand, CreateImageOverCommand, CreateRevisionOptions, CreateSheetCommand, CreateTableCommand, Currency, CustomFormulaCriterion, CutCommand, DEFAULT_LOCALE, DEFAULT_LOCALES, DIRECTION, DOMCoordinates, DOMDimension, DataSet, DataValidationCriterion, DataValidationCriterionType, DataValidationDateCriterion, DataValidationRule, DataValidationRuleData, DatasetValues, DateCriterionValue, DateIsAfterCriterion, DateIsBeforeCriterion, DateIsBetweenCriterion, DateIsCriterion, DateIsNotBetweenCriterion, DateIsOnOrAfterCriterion, DateIsOnOrBeforeCriterion, DateIsValidCriterion, DebouncedFunction, DeleteCellCommand, DeleteContentCommand, DeleteFigureCommand, DeleteSheetCommand, Dependencies, Dimension, Direction$1 as Direction, DispatchResult, DuplicateSheetCommand, DynamicTable, EdgeScrollInfo, EditTextOptions, EmptyCell, EndsWithRule, EnrichedToken, EnsureRange, ErrorCell, EvalContext, EvaluateCellsCommand, EvaluatedCell, EvaluationError, ExcelCellData, ExcelChartDataset, ExcelChartDefinition, ExcelChartType, ExcelFigureSize, ExcelFilterData, ExcelHeaderData, ExcelSheetData, ExcelTableData, ExcelWorkbookData, ExpressionRule, FPayload, FPayloadNumber, Figure, FigureData, FigureSize, Filter, FilterId, FoldAllHeaderGroupsCommand, FoldHeaderGroupCommand, FoldHeaderGroupsInZoneCommand, Format, FormattedValue, FormulaCell, FormulaModifier, FormulaToExecute, FreezeColumnsCommand, FreezeRowsCommand, FunctionDescription, FunctionRegistry, GeneratorCell, Getters, GridRenderingContext, GroupHeadersCommand, HSLA, HeaderData, HeaderDimensions, HeaderGroup, HeaderIndex, HeadersDependentCommand, HideColumnsRowsCommand, HideSheetCommand, Highlight$1 as Highlight, HistoryChange, IconSet, IconSetRule, IconThreshold, Image, Immutable, Increment, IncrementModifier, InformationNotification, InsertCellCommand, IsBetweenCriterion, IsCheckboxCriterion, IsEqualCriterion, IsGreaterOrEqualToCriterion, IsGreaterThanCriterion, IsLessOrEqualToCriterion, IsLessThanCriterion, IsNotBetweenCriterion, IsNotEqualCriterion, IsValueInListCriterion, IsValueInRangeCriterion, LabelValues, LayerName, Lazy, Link, LiteralCell, LocalCommand, Locale, LocaleCode, LocaleFormat, Matrix, Maybe, MenuMouseEvent, Merge, Model, MoveColumnsRowsCommand, MoveConditionalFormatCommand, MoveRangeCommand, MoveSheetCommand, MoveViewportDownCommand, MoveViewportToCellCommand, MoveViewportUpCommand, NewLocalStateUpdateEvent, NotContainsTextRule, NotificationType, NumberCell, Offset, OperationSequenceNode, OrderedLayers, PLAIN_TEXT_FORMAT, PaneDivision, PasteCommand, PasteFromOSClipboardCommand, Pixel, PixelPosition, Position$1 as Position, PositionDependentCommand, PropsOf, RGBA, Range, RangeCompiledFormula, RangeData, RangePart, RangeProvider, RangesDependentCommand, Rect, RedoCommand, Ref, ReferenceDenormalizer, Registry, RemoteRevisionMessage, RemoteRevisionReceivedEvent, RemoveColumnsRowsCommand, RemoveConditionalFormatCommand, RemoveDataValidationCommand, RemoveDuplicatesCommand, RemoveMergeCommand, RemoveTableCommand, RenameSheetCommand, RenderCanvasCommand, RepeatPasteCommand, ReplaceSearchCommand, RequestRedoCommand, RequestUndoCommand, ResizeColumnsRowsCommand, ResizeDirection, ResizeViewportCommand, Revision, RevisionAcknowledgedEvent, RevisionData, RevisionRedone, RevisionRedoneMessage, RevisionUndone, RevisionUndoneMessage, RevisionsDroppedEvent, Row, SPREADSHEET_DIMENSIONS, ScrollDirection$1 as ScrollDirection, SelectFigureCommand, Selection, SelectionStep, SetBorderCommand, SetDecimalCommand, SetDecimalStep, SetFormattingCommand, SetGridLinesVisibilityCommand, SetViewportOffsetCommand, SetZoneBordersCommand, Sheet, SheetDOMScrollInfo, SheetData, SheetDependentCommand, SheetScrollInfo, ShowFormulaCommand, ShowSheetCommand, SingleColorRule, SingleColorRules, SnapshotEvent, SortCommand, SortDirection, SortOptions, SplitTextIntoColumnsCommand, Spreadsheet, SpreadsheetChildEnv, SpreadsheetEnv, StartChangeHighlightCommand, StartCommand, StaticTable, StoreConstructor, StoreParams, Style, SumSelectionCommand, Table, TableConfig, TableData, TableElementStyle, TableId, TableStyle, TargetDependentCommand, TextCell, TextContainsCriterion, TextIsCriterion, TextIsEmailCriterion, TextIsLinkCriterion, TextNotContainsCriterion, TextRule, ThresholdType, TimePeriodRule, Token, Tooltip, Top10Rule, Transformation, TransformationFactory, TransportService, TrimWhitespaceCommand, UID, UIPlugin, UnGroupHeadersCommand, UnboundedZone, UndoCommand, UnexpectedRevisionIdEvent, UnfoldAllHeaderGroupsCommand, UnfoldHeaderGroupCommand, UnfoldHeaderGroupsInZoneCommand, UnfreezeColumnsCommand, UnfreezeColumnsRowsCommand, UnfreezeRowsCommand, UnhideColumnsRowsCommand, UpdateCellCommand, UpdateCellData, UpdateCellPositionCommand, UpdateChartCommand, UpdateFigureCommand, UpdateFilterCommand, UpdateLocaleCommand, UpdateTableCommand, Validation, VerticalAlign, Viewport, WorkbookData, WorkbookHistory, Wrapping, Zone, ZoneDependentCommand, ZoneDimension, __info__, addFunction, addRenderingLayer, astToFormula, borderStyles, canExecuteInReadonly, compile, compileTokens, components, constants, containsBlanksRule, containsErrorsRule, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, hooks, invalidateCFEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, isCoreCommand, isHeadersDependant, isMatrix, isPositionDependent, isRangeDependant, isSheetDependent, isTargetDependent, isZoneDependent, iterateAstNodes, links, load, notContainsBlanksRule, notContainsErrorsRule, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };
10112
+ export { AST, ASTFuncall, AboveAverageRule, AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, ActivateNextSheetCommand, ActivatePaintFormatCommand, ActivatePreviousSheetCommand, ActivateSheetCommand, AddColumnsRowsCommand, AddConditionalFormatCommand, AddDataValidationCommand, AddFunctionDescription, AddMergeCommand, Alias, Align, AlphanumericIncrementModifier, AnchorZone, ApplyRangeChange, ApplyRangeChangeResult, Arg, ArgDefinition, ArgType, AutoFillCellCommand, AutofillAutoCommand, AutofillCellData, AutofillCommand, AutofillData, AutofillModifier, AutofillModifierImplementation, AutofillResult, AutofillSelectCommand, AutofillTableCommand, AutoresizeColumnsCommand, AutoresizeRowsCommand, AxisType, BeginsWithRule, BooleanCell, Border$1 as Border, BorderData, BorderDescr, BorderDescription, BorderPosition, BorderStyle, Box, BoxTextContent, CHART_TYPES, CSSProperties, CancelPaintFormatCommand, CancelledReason, Cell, CellData, CellErrorType, CellIsRule, CellPosition, CellValue, CellValueType, ChangeType, ChartCreationContext, ChartDefinition, ChartJSRuntime, ChartRuntime, ChartType, CleanClipBoardHighlightCommand, ClearCellCommand, ClearFormattingCommand, Client, ClientId, ClientJoinedMessage, ClientLeftMessage, ClientMovedMessage, ClientPosition, ClipboardCell, ClipboardCellData, ClipboardContent, ClipboardData, ClipboardFigureData, ClipboardMIMEType, ClipboardOperation, ClipboardOptions, ClipboardPasteOptions, ClipboardPasteTarget, Cloneable, CollaborationMessage, CollaborativeEvent, CollaborativeEventReceived, CollaborativeEventTypes, Color, ColorScaleMidPointThreshold, ColorScaleRule, ColorScaleThreshold, Command, CommandDispatcher, CommandHandler, CommandResult, CommandTypes, CompiledFormula, ComputeFunction, ComputedTableStyle, ConditionalFormat, ConditionalFormatInternal, ConditionalFormatRule, ConditionalFormattingOperatorValues, ConsecutiveIndexes, ContainsTextRule, CopyCommand, CopyModifier, CopyPasteCellsAboveCommand, CopyPasteCellsOnLeftCommand, CoreCommand, CoreCommandDispatcher, CoreCommandTypes, CoreGetters, CorePlugin, CoreTable, CoreTableType, CoreViewCommand, CoreViewCommandTypes, CreateChartCommand, CreateFigureCommand, CreateImageOverCommand, CreateRevisionOptions, CreateSheetCommand, CreateTableCommand, Currency, CustomFormulaCriterion, CutCommand, DEFAULT_LOCALE, DEFAULT_LOCALES, DIRECTION, DOMCoordinates, DOMDimension, DataSet, DataValidationCriterion, DataValidationCriterionType, DataValidationDateCriterion, DataValidationRule, DataValidationRuleData, DatasetValues, DateCriterionValue, DateIsAfterCriterion, DateIsBeforeCriterion, DateIsBetweenCriterion, DateIsCriterion, DateIsNotBetweenCriterion, DateIsOnOrAfterCriterion, DateIsOnOrBeforeCriterion, DateIsValidCriterion, DebouncedFunction, DeleteCellCommand, DeleteContentCommand, DeleteFigureCommand, DeleteSheetCommand, Dependencies, Dimension, Direction$1 as Direction, DispatchResult, DuplicateSheetCommand, DynamicTable, EdgeScrollInfo, EditTextOptions, EmptyCell, EndsWithRule, EnrichedToken, EnsureRange, ErrorCell, EvalContext, EvaluateCellsCommand, EvaluatedCell, EvaluationError, ExcelCellData, ExcelChartDataset, ExcelChartDefinition, ExcelChartType, ExcelFigureSize, ExcelFilterData, ExcelHeaderData, ExcelSheetData, ExcelTableData, ExcelWorkbookData, ExpressionRule, FPayload, FPayloadNumber, Figure, FigureData, FigureSize, Filter, FilterId, FoldAllHeaderGroupsCommand, FoldHeaderGroupCommand, FoldHeaderGroupsInZoneCommand, Format, FormattedValue, FormulaCell, FormulaModifier, FormulaToExecute, FreezeColumnsCommand, FreezeRowsCommand, FunctionDescription, FunctionRegistry, GeneratorCell, Getters, GridClickModifiers, GridRenderingContext, GroupHeadersCommand, HSLA, HeaderData, HeaderDimensions, HeaderGroup, HeaderIndex, HeadersDependentCommand, HideColumnsRowsCommand, HideSheetCommand, Highlight$1 as Highlight, HistoryChange, IconSet, IconSetRule, IconThreshold, Image, Immutable, Increment, IncrementModifier, InformationNotification, InsertCellCommand, IsBetweenCriterion, IsCheckboxCriterion, IsEqualCriterion, IsGreaterOrEqualToCriterion, IsGreaterThanCriterion, IsLessOrEqualToCriterion, IsLessThanCriterion, IsNotBetweenCriterion, IsNotEqualCriterion, IsValueInListCriterion, IsValueInRangeCriterion, LabelValues, LayerName, Lazy, Link, LiteralCell, LocalCommand, Locale, LocaleCode, LocaleFormat, Matrix, Maybe, MenuMouseEvent, Merge, Model, MoveColumnsRowsCommand, MoveConditionalFormatCommand, MoveRangeCommand, MoveSheetCommand, MoveViewportDownCommand, MoveViewportToCellCommand, MoveViewportUpCommand, NewLocalStateUpdateEvent, NotContainsTextRule, NotificationType, NumberCell, Offset, OperationSequenceNode, OrderedLayers, PLAIN_TEXT_FORMAT, PaneDivision, PasteCommand, PasteFromOSClipboardCommand, Pixel, PixelPosition, Position$1 as Position, PositionDependentCommand, PropsOf, RGBA, Range, RangeCompiledFormula, RangeData, RangePart, RangeProvider, RangesDependentCommand, Rect, RedoCommand, Ref, ReferenceDenormalizer, Registry, RemoteRevisionMessage, RemoteRevisionReceivedEvent, RemoveColumnsRowsCommand, RemoveConditionalFormatCommand, RemoveDataValidationCommand, RemoveDuplicatesCommand, RemoveMergeCommand, RemoveTableCommand, RenameSheetCommand, RenderCanvasCommand, RepeatPasteCommand, ReplaceSearchCommand, RequestRedoCommand, RequestUndoCommand, ResizeColumnsRowsCommand, ResizeDirection, ResizeViewportCommand, Revision, RevisionAcknowledgedEvent, RevisionData, RevisionRedone, RevisionRedoneMessage, RevisionUndone, RevisionUndoneMessage, RevisionsDroppedEvent, Row, SPREADSHEET_DIMENSIONS, ScrollDirection$1 as ScrollDirection, SelectFigureCommand, Selection, SelectionStep, SetBorderCommand, SetDecimalCommand, SetDecimalStep, SetFormattingCommand, SetGridLinesVisibilityCommand, SetViewportOffsetCommand, SetZoneBordersCommand, Sheet, SheetDOMScrollInfo, SheetData, SheetDependentCommand, SheetScrollInfo, ShowFormulaCommand, ShowSheetCommand, SingleColorRule, SingleColorRules, SnapshotEvent, SortCommand, SortDirection, SortOptions, SplitTextIntoColumnsCommand, Spreadsheet, SpreadsheetChildEnv, SpreadsheetEnv, StartChangeHighlightCommand, StartCommand, StaticTable, StoreConstructor, StoreParams, Style, SumSelectionCommand, Table, TableConfig, TableData, TableElementStyle, TableId, TableStyle, TargetDependentCommand, TextCell, TextContainsCriterion, TextIsCriterion, TextIsEmailCriterion, TextIsLinkCriterion, TextNotContainsCriterion, TextRule, ThresholdType, TimePeriodRule, Token, Tooltip, Top10Rule, Transformation, TransformationFactory, TransportService, TrimWhitespaceCommand, UID, UIPlugin, UnGroupHeadersCommand, UnboundedZone, UndoCommand, UnexpectedRevisionIdEvent, UnfoldAllHeaderGroupsCommand, UnfoldHeaderGroupCommand, UnfoldHeaderGroupsInZoneCommand, UnfreezeColumnsCommand, UnfreezeColumnsRowsCommand, UnfreezeRowsCommand, UnhideColumnsRowsCommand, UpdateCellCommand, UpdateCellData, UpdateCellPositionCommand, UpdateChartCommand, UpdateFigureCommand, UpdateFilterCommand, UpdateLocaleCommand, UpdateTableCommand, Validation, VerticalAlign, Viewport, WorkbookData, WorkbookHistory, Wrapping, Zone, ZoneDependentCommand, ZoneDimension, __info__, addFunction, addRenderingLayer, astToFormula, borderStyles, canExecuteInReadonly, compile, compileTokens, components, constants, containsBlanksRule, containsErrorsRule, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, hooks, invalidateBordersCommands, invalidateCFEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, isCoreCommand, isHeadersDependant, isMatrix, isPositionDependent, isRangeDependant, isSheetDependent, isTargetDependent, isZoneDependent, iterateAstNodes, links, load, notContainsBlanksRule, notContainsErrorsRule, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };