@odoo/o-spreadsheet 17.3.0-alpha.4 → 17.3.0-alpha.6

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.
@@ -448,6 +448,79 @@ interface SearchOptions {
448
448
  specificRange?: Range;
449
449
  }
450
450
 
451
+ type Aggregator = "array_agg" | "count" | "count_distinct" | "bool_and" | "bool_or" | "max" | "min" | "avg" | "sum";
452
+ type Granularity = "day" | "week" | "month" | "quarter" | "year";
453
+ interface PivotCoreDimension {
454
+ name: string;
455
+ order?: "asc" | "desc";
456
+ granularity?: Granularity | string;
457
+ }
458
+ interface PivotCoreMeasure {
459
+ name: string;
460
+ aggregator?: Aggregator | string;
461
+ }
462
+ interface CommonPivotCoreDefinition {
463
+ columns: PivotCoreDimension[];
464
+ rows: PivotCoreDimension[];
465
+ measures: PivotCoreMeasure[];
466
+ name: string;
467
+ }
468
+ interface SpreadsheetPivotCoreDefinition extends CommonPivotCoreDefinition {
469
+ type: "SPREADSHEET";
470
+ }
471
+ type PivotCoreDefinition = SpreadsheetPivotCoreDefinition;
472
+ interface PivotField {
473
+ name: string;
474
+ type: string;
475
+ string: string;
476
+ relation?: string;
477
+ searchable?: boolean;
478
+ aggregator?: string;
479
+ store?: boolean;
480
+ groupable?: boolean;
481
+ help?: string;
482
+ }
483
+ type PivotFields = Record<string, PivotField | undefined>;
484
+ interface PivotMeasure extends PivotCoreMeasure {
485
+ nameWithAggregator: string;
486
+ displayName: string;
487
+ type: string;
488
+ }
489
+ interface PivotDimension$1 extends PivotCoreDimension {
490
+ nameWithGranularity: string;
491
+ displayName: string;
492
+ type: string;
493
+ }
494
+ interface SPTableColumn {
495
+ fields: string[];
496
+ values: string[];
497
+ width: number;
498
+ offset: number;
499
+ }
500
+ interface SPTableRow {
501
+ fields: string[];
502
+ values: string[];
503
+ indent: number;
504
+ }
505
+ interface SPTableData {
506
+ cols: SPTableColumn[][];
507
+ rows: SPTableRow[];
508
+ measures: string[];
509
+ rowTitle?: string;
510
+ }
511
+ interface SPTableCell {
512
+ isHeader: boolean;
513
+ domain?: string[];
514
+ content?: string;
515
+ measure?: string;
516
+ }
517
+ interface PivotTimeAdapter<T> {
518
+ normalizeFunctionValue: (value: string) => T;
519
+ formatValue: (normalizedValue: T, locale?: Locale) => string;
520
+ getFormat: (locale?: Locale) => Format | undefined;
521
+ toCellValue: (normalizedValue: T) => CellValue;
522
+ }
523
+
451
524
  interface Table {
452
525
  readonly id: TableId;
453
526
  readonly range: Range;
@@ -497,7 +570,9 @@ interface TableBorder extends Border$1 {
497
570
  }
498
571
  interface TableStyle {
499
572
  category: string;
500
- colorName: string;
573
+ displayName: string;
574
+ templateName: TableStyleTemplateName;
575
+ primaryColor: string;
501
576
  wholeTable?: TableElementStyle;
502
577
  firstColumnStripe?: TableElementStyle;
503
578
  secondColumnStripe?: TableElementStyle;
@@ -508,6 +583,7 @@ interface TableStyle {
508
583
  headerRow?: TableElementStyle;
509
584
  totalRow?: TableElementStyle;
510
585
  }
586
+ type TableStyleTemplateName = "none" | "lightColoredText" | "lightAllBorders" | "mediumAllBorders" | "lightWithHeader" | "mediumBandedBorders" | "mediumMinimalBorders" | "darkNoBorders" | "mediumWhiteBorders" | "dark";
511
587
 
512
588
  /**
513
589
  * There are two kinds of commands: CoreCommands and LocalCommands
@@ -560,12 +636,12 @@ interface ZoneDependentCommand {
560
636
  }
561
637
  declare function isZoneDependent(cmd: CoreCommand): boolean;
562
638
  declare function isPositionDependent(cmd: CoreCommand): boolean;
563
- 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" | "RESIZE_TABLE">;
564
- 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" | "RESIZE_TABLE">;
565
- 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" | "RESIZE_TABLE">;
566
- 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" | "RESIZE_TABLE">;
567
- 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" | "RESIZE_TABLE">;
568
- 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">;
639
+ 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" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "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" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "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" | "RESIZE_TABLE" | "REFRESH_PIVOT">;
640
+ 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" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "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" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "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" | "RESIZE_TABLE" | "REFRESH_PIVOT">;
641
+ 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" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "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" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "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" | "RESIZE_TABLE" | "REFRESH_PIVOT">;
642
+ 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" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "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" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "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" | "RESIZE_TABLE" | "REFRESH_PIVOT">;
643
+ 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" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "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" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "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" | "RESIZE_TABLE" | "REFRESH_PIVOT">;
644
+ 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" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "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" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT">;
569
645
  declare function isCoreCommand(cmd: Command): cmd is CoreCommand;
570
646
  declare function canExecuteInReadonly(cmd: Command): boolean;
571
647
  interface UpdateCellCommand extends PositionDependentCommand {
@@ -766,6 +842,17 @@ interface AutofillTableCommand extends PositionDependentCommand {
766
842
  /** The row to end the autofill in. If undefined, it will autofill to the bottom of the table column */
767
843
  autofillRowEnd?: number;
768
844
  }
845
+ interface CreateTableStyleCommand {
846
+ type: "CREATE_TABLE_STYLE";
847
+ tableStyleId: string;
848
+ tableStyleName: string;
849
+ templateName: TableStyleTemplateName;
850
+ primaryColor: Color;
851
+ }
852
+ interface RemoveTableStyleCommand {
853
+ type: "REMOVE_TABLE_STYLE";
854
+ tableStyleId: string;
855
+ }
769
856
  interface UpdateFilterCommand extends PositionDependentCommand {
770
857
  type: "UPDATE_FILTER";
771
858
  hiddenValues: string[];
@@ -794,6 +881,35 @@ interface UpdateLocaleCommand {
794
881
  type: "UPDATE_LOCALE";
795
882
  locale: Locale;
796
883
  }
884
+ interface AddPivotCommand {
885
+ type: "ADD_PIVOT";
886
+ pivotId: UID;
887
+ pivot: PivotCoreDefinition;
888
+ }
889
+ interface UpdatePivotCommand {
890
+ type: "UPDATE_PIVOT";
891
+ pivotId: UID;
892
+ pivot: PivotCoreDefinition;
893
+ }
894
+ interface InsertPivotCommand extends PositionDependentCommand {
895
+ type: "INSERT_PIVOT";
896
+ pivotId: UID;
897
+ table: SPTableData;
898
+ }
899
+ interface RenamePivotCommand {
900
+ type: "RENAME_PIVOT";
901
+ pivotId: UID;
902
+ name: string;
903
+ }
904
+ interface RemovePivotCommand {
905
+ type: "REMOVE_PIVOT";
906
+ pivotId: UID;
907
+ }
908
+ interface DuplicatePivotCommand {
909
+ type: "DUPLICATE_PIVOT";
910
+ pivotId: UID;
911
+ newPivotId: string;
912
+ }
797
913
  interface RemoveDuplicatesCommand {
798
914
  type: "REMOVE_DUPLICATES";
799
915
  columns: HeaderIndex[];
@@ -1043,6 +1159,10 @@ interface SplitTextIntoColumnsCommand {
1043
1159
  interface RenderCanvasCommand {
1044
1160
  type: "RENDER_CANVAS";
1045
1161
  }
1162
+ interface RefreshPivotCommand {
1163
+ type: "REFRESH_PIVOT";
1164
+ id: UID;
1165
+ }
1046
1166
  type CoreCommand =
1047
1167
  /** CELLS */
1048
1168
  UpdateCellCommand | UpdateCellPositionCommand | ClearCellCommand | DeleteContentCommand
@@ -1065,14 +1185,16 @@ UpdateCellCommand | UpdateCellPositionCommand | ClearCellCommand | DeleteContent
1065
1185
  /** IMAGE */
1066
1186
  | CreateImageOverCommand
1067
1187
  /** FILTERS */
1068
- | CreateTableCommand | RemoveTableCommand | UpdateTableCommand
1188
+ | CreateTableCommand | RemoveTableCommand | UpdateTableCommand | CreateTableStyleCommand | RemoveTableStyleCommand
1069
1189
  /** HEADER GROUP */
1070
1190
  | GroupHeadersCommand | UnGroupHeadersCommand | UnfoldHeaderGroupCommand | FoldHeaderGroupCommand | FoldAllHeaderGroupsCommand | UnfoldAllHeaderGroupsCommand | UnfoldHeaderGroupsInZoneCommand | FoldHeaderGroupsInZoneCommand
1071
1191
  /** DATA VALIDATION */
1072
1192
  | AddDataValidationCommand | RemoveDataValidationCommand
1073
1193
  /** MISC */
1074
- | UpdateLocaleCommand;
1075
- type LocalCommand = RequestUndoCommand | RequestRedoCommand | UndoCommand | RedoCommand | CopyCommand | CutCommand | PasteCommand | CopyPasteCellsAboveCommand | CopyPasteCellsOnLeftCommand | RepeatPasteCommand | CleanClipBoardHighlightCommand | AutoFillCellCommand | PasteFromOSClipboardCommand | ActivatePaintFormatCommand | CancelPaintFormatCommand | AutoresizeColumnsCommand | AutoresizeRowsCommand | MoveColumnsRowsCommand | ActivateSheetCommand | EvaluateCellsCommand | StartChangeHighlightCommand | StartCommand | AutofillCommand | AutofillSelectCommand | AutofillTableCommand | ShowFormulaCommand | AutofillAutoCommand | SelectFigureCommand | ReplaceSearchCommand | SortCommand | SetDecimalCommand | ResizeViewportCommand | SumSelectionCommand | DeleteCellCommand | InsertCellCommand | SetViewportOffsetCommand | MoveViewportDownCommand | MoveViewportUpCommand | MoveViewportToCellCommand | ActivateNextSheetCommand | ActivatePreviousSheetCommand | UpdateFilterCommand | SplitTextIntoColumnsCommand | RemoveDuplicatesCommand | TrimWhitespaceCommand | RenderCanvasCommand | ResizeTableCommand;
1194
+ | UpdateLocaleCommand
1195
+ /** PIVOT */
1196
+ | AddPivotCommand | UpdatePivotCommand | InsertPivotCommand | RenamePivotCommand | RemovePivotCommand | DuplicatePivotCommand;
1197
+ type LocalCommand = RequestUndoCommand | RequestRedoCommand | UndoCommand | RedoCommand | CopyCommand | CutCommand | PasteCommand | CopyPasteCellsAboveCommand | CopyPasteCellsOnLeftCommand | RepeatPasteCommand | CleanClipBoardHighlightCommand | AutoFillCellCommand | PasteFromOSClipboardCommand | ActivatePaintFormatCommand | CancelPaintFormatCommand | AutoresizeColumnsCommand | AutoresizeRowsCommand | MoveColumnsRowsCommand | ActivateSheetCommand | EvaluateCellsCommand | StartChangeHighlightCommand | StartCommand | AutofillCommand | AutofillSelectCommand | AutofillTableCommand | ShowFormulaCommand | AutofillAutoCommand | SelectFigureCommand | ReplaceSearchCommand | SortCommand | SetDecimalCommand | ResizeViewportCommand | SumSelectionCommand | DeleteCellCommand | InsertCellCommand | SetViewportOffsetCommand | MoveViewportDownCommand | MoveViewportUpCommand | MoveViewportToCellCommand | ActivateNextSheetCommand | ActivatePreviousSheetCommand | UpdateFilterCommand | SplitTextIntoColumnsCommand | RemoveDuplicatesCommand | TrimWhitespaceCommand | RenderCanvasCommand | ResizeTableCommand | RefreshPivotCommand;
1076
1198
  type Command = CoreCommand | LocalCommand;
1077
1199
  /**
1078
1200
  * Holds the result of a command dispatch.
@@ -1177,6 +1299,7 @@ declare const enum CommandResult {
1177
1299
  TableNotFound = "TableNotFound",
1178
1300
  TableOverlap = "TableOverlap",
1179
1301
  InvalidTableConfig = "InvalidTableConfig",
1302
+ InvalidTableStyle = "InvalidTableStyle",
1180
1303
  FilterNotFound = "FilterNotFound",
1181
1304
  MergeInTable = "MergeInTable",
1182
1305
  NonContinuousTargets = "NonContinuousTargets",
@@ -1208,7 +1331,9 @@ declare const enum CommandResult {
1208
1331
  NoChanges = "NoChanges",
1209
1332
  InvalidInputId = "InvalidInputId",
1210
1333
  SheetIsHidden = "SheetIsHidden",
1211
- InvalidTableResize = "InvalidTableResize"
1334
+ InvalidTableResize = "InvalidTableResize",
1335
+ PivotIdNotFound = "PivotIdNotFound",
1336
+ EmptyName = "EmptyName"
1212
1337
  }
1213
1338
  interface CommandHandler<T> {
1214
1339
  allowDispatch(command: T): CommandResult | CommandResult[];
@@ -1318,6 +1443,11 @@ declare function iterateAstNodes(ast: AST): AST[];
1318
1443
  */
1319
1444
  declare function astToFormula(ast: AST): string;
1320
1445
 
1446
+ declare function getFunctionsFromTokens(tokens: Token[], functionNames: string[]): {
1447
+ functionName: string;
1448
+ args: AST[];
1449
+ }[];
1450
+
1321
1451
  /**
1322
1452
  * The following type is meant to be used in union with other aliases to prevent
1323
1453
  * Intellisense from resolving it.
@@ -2197,7 +2327,7 @@ declare class RangeAdapter implements CommandHandler<CoreCommand> {
2197
2327
  private getters;
2198
2328
  private providers;
2199
2329
  constructor(getters: CoreGetters);
2200
- static getters: readonly ["extendRange", "getRangeString", "getRangeFromSheetXC", "createAdaptedRanges", "getRangeDataFromXc", "getRangeDataFromZone", "getRangeFromRangeData", "getRangeFromZone", "getRangesUnion", "isRangeValid"];
2330
+ static getters: readonly ["extendRange", "getRangeString", "getRangeFromSheetXC", "createAdaptedRanges", "getRangeDataFromXc", "getRangeDataFromZone", "getRangeFromRangeData", "getRangeFromZone", "getRangesUnion", "recomputeRanges", "isRangeValid"];
2201
2331
  allowDispatch(cmd: Command): CommandResult;
2202
2332
  beforeHandle(command: Command): void;
2203
2333
  handle(cmd: Command): void;
@@ -2244,6 +2374,10 @@ declare class RangeAdapter implements CommandHandler<CoreCommand> {
2244
2374
  getRangeDataFromXc(sheetId: UID, xc: string): RangeData;
2245
2375
  getRangeDataFromZone(sheetId: UID, zone: Zone | UnboundedZone): RangeData;
2246
2376
  getRangeFromZone(sheetId: UID, zone: Zone | UnboundedZone): Range;
2377
+ /**
2378
+ * Allows you to recompute ranges from the same sheet
2379
+ */
2380
+ recomputeRanges(ranges: Range[], rangesToRemove: Range[]): Range[];
2247
2381
  getRangeFromRangeData(data: RangeData): Range;
2248
2382
  isRangeValid(rangeStr: string): boolean;
2249
2383
  getRangesUnion(ranges: Range[]): Range;
@@ -2415,7 +2549,7 @@ declare class BordersPlugin extends CorePlugin<BordersPluginState> implements Bo
2415
2549
  exportForExcel(data: ExcelWorkbookData): void;
2416
2550
  }
2417
2551
 
2418
- interface CoreState {
2552
+ interface CoreState$1 {
2419
2553
  cells: Record<UID, Record<UID, Cell | undefined>>;
2420
2554
  nextId: number;
2421
2555
  }
@@ -2425,7 +2559,7 @@ interface CoreState {
2425
2559
  * This is the most fundamental of all plugins. It defines how to interact with
2426
2560
  * cell and sheet content.
2427
2561
  */
2428
- declare class CellPlugin extends CorePlugin<CoreState> implements CoreState {
2562
+ declare class CellPlugin extends CorePlugin<CoreState$1> implements CoreState$1 {
2429
2563
  static getters: readonly ["zoneToXC", "getCells", "getTranslatedCellFormula", "getCellStyle", "getCellById"];
2430
2564
  readonly nextId = 1;
2431
2565
  readonly cells: {
@@ -2631,7 +2765,7 @@ declare class ConditionalFormatPlugin extends CorePlugin<ConditionalFormatState>
2631
2765
  /**
2632
2766
  * Add or remove cells to a given conditional formatting rule and return the adapted CF's XCs.
2633
2767
  */
2634
- getAdaptedCfRanges(sheetId: UID, cf: ConditionalFormat, toAdd: string[], toRemove: string[]): string[] | undefined;
2768
+ getAdaptedCfRanges(sheetId: UID, cf: ConditionalFormat, toAdd: Zone[], toRemove: Zone[]): RangeData[] | undefined;
2635
2769
  private mapToConditionalFormat;
2636
2770
  private mapToConditionalFormatInternal;
2637
2771
  /**
@@ -2713,10 +2847,10 @@ declare class FigurePlugin extends CorePlugin<FigureState> implements FigureStat
2713
2847
  exportForExcel(data: ExcelWorkbookData): void;
2714
2848
  }
2715
2849
 
2716
- interface State$8 {
2850
+ interface State$9 {
2717
2851
  groups: Record<UID, Record<Dimension, HeaderGroup[]>>;
2718
2852
  }
2719
- declare class HeaderGroupingPlugin extends CorePlugin<State$8> {
2853
+ declare class HeaderGroupingPlugin extends CorePlugin<State$9> {
2720
2854
  static getters: readonly ["getHeaderGroups", "getGroupsLayers", "getVisibleGroupLayers", "getHeaderGroup", "getHeaderGroupsInZone", "isGroupFolded", "isRowFolded", "isColFolded"];
2721
2855
  private readonly groups;
2722
2856
  allowDispatch(cmd: CoreCommand): CommandResult;
@@ -2939,6 +3073,61 @@ declare class MergePlugin extends CorePlugin<MergeState> implements MergeState {
2939
3073
  exportForExcel(data: ExcelWorkbookData): void;
2940
3074
  }
2941
3075
 
3076
+ interface LocalPivot extends PivotCoreDefinition {
3077
+ /**
3078
+ * The formula id is the id that is used in the formula to identify the pivot.
3079
+ * It's different from the pivot id, which is the id of the pivot in the state.
3080
+ * The formula id is a readable id, auto-incremented. The pivotId is a UID.
3081
+ * We need this distinction to be assured that the pivotId is unique in a
3082
+ * context of collaboration.
3083
+ */
3084
+ formulaId: string;
3085
+ }
3086
+ interface CoreState {
3087
+ nextFormulaId: number;
3088
+ pivots: Record<UID, LocalPivot | undefined>;
3089
+ formulaIds: Record<UID, string | undefined>;
3090
+ }
3091
+ declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState {
3092
+ static getters: readonly ["getPivotCoreDefinition", "getPivotDisplayName", "getPivotId", "getPivotFormulaId", "getPivotIds", "getPivotName", "isExistingPivot"];
3093
+ readonly nextFormulaId: number;
3094
+ readonly pivots: {
3095
+ [key: UID]: LocalPivot;
3096
+ };
3097
+ readonly formulaIds: {
3098
+ [key: UID]: string;
3099
+ };
3100
+ allowDispatch(cmd: CoreCommand): CommandResult.Success | CommandResult.NoChanges | CommandResult.PivotIdNotFound | CommandResult.EmptyName;
3101
+ handle(cmd: CoreCommand): void;
3102
+ getPivotDisplayName(pivotId: UID): string;
3103
+ getPivotName(pivotId: UID): string;
3104
+ /**
3105
+ * Returns the pivot core definition of the pivot with the given id.
3106
+ * Be careful, this is the core definition, this should be used only in a
3107
+ * context where the pivot is not loaded yet.
3108
+ */
3109
+ getPivotCoreDefinition(pivotId: UID): PivotCoreDefinition;
3110
+ /**
3111
+ * Get the pivot ID (UID) from the formula ID (the one used in the formula)
3112
+ */
3113
+ getPivotId(formulaId: string): string;
3114
+ getPivotFormulaId(pivotId: UID): string;
3115
+ getPivotIds(): UID[];
3116
+ isExistingPivot(pivotId: UID): boolean;
3117
+ private addPivot;
3118
+ private insertPivot;
3119
+ private resizeSheet;
3120
+ private addPivotFormula;
3121
+ /**
3122
+ * Import the pivots
3123
+ */
3124
+ import(data: WorkbookData): void;
3125
+ /**
3126
+ * Export the pivots
3127
+ */
3128
+ export(data: WorkbookData): void;
3129
+ }
3130
+
2942
3131
  declare class SettingsPlugin extends CorePlugin {
2943
3132
  static getters: readonly ["getLocale"];
2944
3133
  private locale;
@@ -3096,6 +3285,26 @@ declare class SheetPlugin extends CorePlugin<SheetState> implements SheetState {
3096
3285
  private checkZonesAreInSheet;
3097
3286
  }
3098
3287
 
3288
+ interface TableStylesState {
3289
+ readonly styles: {
3290
+ [styleId: string]: TableStyle;
3291
+ };
3292
+ }
3293
+ declare class TableStylePlugin extends CorePlugin<TableStylesState> implements TableStylesState {
3294
+ static getters: readonly ["getNewCustomTableStyleName", "getTableStyle", "getTableStyles", "isTableStyleEditable"];
3295
+ readonly styles: {
3296
+ [styleId: string]: TableStyle;
3297
+ };
3298
+ allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
3299
+ handle(cmd: CoreCommand): void;
3300
+ getTableStyle(styleId: string): TableStyle;
3301
+ getTableStyles(): Record<string, TableStyle>;
3302
+ getNewCustomTableStyleName(): string;
3303
+ isTableStyleEditable(styleId: string): boolean;
3304
+ import(data: WorkbookData): void;
3305
+ export(data: WorkbookData): void;
3306
+ }
3307
+
3099
3308
  interface TableState {
3100
3309
  tables: Record<UID, Record<TableId, CoreTable | undefined>>;
3101
3310
  }
@@ -3279,6 +3488,9 @@ interface SheetData {
3279
3488
  interface WorkbookSettings {
3280
3489
  locale: Locale;
3281
3490
  }
3491
+ interface PivotData extends PivotCoreDefinition {
3492
+ formulaId: string;
3493
+ }
3282
3494
  interface WorkbookData {
3283
3495
  version: number;
3284
3496
  sheets: SheetData[];
@@ -3291,9 +3503,16 @@ interface WorkbookData {
3291
3503
  borders: {
3292
3504
  [key: number]: Border$1;
3293
3505
  };
3506
+ pivots: {
3507
+ [key: string]: PivotData;
3508
+ };
3509
+ pivotNextId: number;
3294
3510
  revisionId: UID;
3295
3511
  uniqueFigureIds: boolean;
3296
3512
  settings: WorkbookSettings;
3513
+ customTableStyles: {
3514
+ [key: string]: TableStyleData;
3515
+ };
3297
3516
  }
3298
3517
  interface ExcelWorkbookData extends WorkbookData {
3299
3518
  sheets: ExcelSheetData[];
@@ -3332,12 +3551,18 @@ interface DataValidationRuleData extends Omit<DataValidationRule, "ranges"> {
3332
3551
  interface ExcelTableData {
3333
3552
  range: string;
3334
3553
  filters: ExcelFilterData[];
3554
+ config: TableConfig;
3335
3555
  }
3336
3556
  interface ExcelFilterData {
3337
3557
  colId: number;
3338
3558
  displayedValues: string[];
3339
3559
  displayBlanks?: boolean;
3340
3560
  }
3561
+ interface TableStyleData {
3562
+ templateName: TableStyleTemplateName;
3563
+ primaryColor: string;
3564
+ displayName: string;
3565
+ }
3341
3566
 
3342
3567
  interface AbstractMessage {
3343
3568
  version: number;
@@ -3835,6 +4060,160 @@ declare class HeaderSizeUIPlugin extends UIPlugin<HeaderSizeState> implements He
3835
4060
  private getRowTallestCell;
3836
4061
  }
3837
4062
 
4063
+ /**
4064
+ * Represent a pivot runtime definition. A pivot runtime definition is a pivot
4065
+ * definition that has been enriched to include the display name of its attributes
4066
+ * (measures, columns, rows).
4067
+ */
4068
+ declare class PivotRuntimeDefinition {
4069
+ readonly measures: PivotMeasure[];
4070
+ readonly columns: PivotDimension$1[];
4071
+ readonly rows: PivotDimension$1[];
4072
+ constructor(definition: CommonPivotCoreDefinition, fields: PivotFields);
4073
+ }
4074
+
4075
+ /**
4076
+ * Class used to ease the construction of a pivot table.
4077
+ * Let's consider the following example, with:
4078
+ * - columns groupBy: [sales_team, create_date]
4079
+ * - rows groupBy: [continent, city]
4080
+ * - measures: [revenues]
4081
+ * _____________________________________________________________________________________| ----|
4082
+ * | | Sale Team 1 | Sale Team 2 | | |
4083
+ * | |___________________________|_________________________|_____________| |
4084
+ * | | May 2020 | June 2020 | May 2020 | June 2020 | Total | |<---- `cols`
4085
+ * | |______________|____________|____________|____________|_____________| | ----|
4086
+ * | | Revenues | Revenues | Revenues | Revenues | Revenues | | |<--- `measureRow`
4087
+ * |________________|______________|____________|____________|____________|_____________| ----| ----|
4088
+ * |Europe | 25 | 35 | 40 | 30 | 65 | ----|
4089
+ * | Brussels | 0 | 15 | 30 | 30 | 30 | |
4090
+ * | Paris | 25 | 20 | 10 | 0 | 35 | |
4091
+ * |North America | 60 | 75 | | | 60 | |<---- `body`
4092
+ * | Washington | 60 | 75 | | | 60 | |
4093
+ * |Total | 85 | 110 | 40 | 30 | 125 | |
4094
+ * |________________|______________|____________|____________|____________|_____________| ----|
4095
+ *
4096
+ * | |
4097
+ * |----------------|
4098
+ * |
4099
+ * |
4100
+ * `rows`
4101
+ *
4102
+ * `rows` is an array of cells, each cells contains the indent level, the fields used for the group by and the values for theses fields.
4103
+ * For example:
4104
+ * `Europe`: { indent: 1, fields: ["continent"], values: ["id_of_Europe"]}
4105
+ * `Brussels`: { indent: 2, fields: ["continent", "city"], values: ["id_of_Europe", "id_of_Brussels"]}
4106
+ * `Total`: { indent: 0, fields: [], values: []}
4107
+ *
4108
+ * `columns` is an double array, first by row and then by cell. So, in this example, it looks like:
4109
+ * [[row1], [row2], [measureRow]]
4110
+ * Each cell of a column's row contains the width (span) of the cells, the fields used for the group by and the values for theses fields.
4111
+ * For example:
4112
+ * `Sale Team 1`: { width: 2, fields: ["sales_team"], values: ["id_of_SaleTeam1"]}
4113
+ * `May 2020` (the one under Sale Team 2): { width: 1, fields: ["sales_team", "create_date"], values: ["id_of_SaleTeam2", "May 2020"]}
4114
+ * `Revenues` (the one under Total): { width: 1, fields: ["measure"], values: ["revenues"]}
4115
+ *
4116
+ */
4117
+ declare class SpreadsheetPivotTable {
4118
+ readonly columns: SPTableColumn[][];
4119
+ readonly rows: SPTableRow[];
4120
+ readonly measures: string[];
4121
+ readonly rowTitle?: string;
4122
+ readonly maxIndent: number;
4123
+ readonly pivotCells: {
4124
+ [key: string]: SPTableCell[][];
4125
+ };
4126
+ constructor(columns: SPTableColumn[][], rows: SPTableRow[], measures: string[], rowTitle?: string);
4127
+ /**
4128
+ * Get the number of columns leafs (i.e. the number of the last row of columns)
4129
+ */
4130
+ getNumberOfDataColumns(): number;
4131
+ getPivotCells(includeTotal?: boolean, includeColumnHeaders?: boolean): SPTableCell[][];
4132
+ private isTotalRow;
4133
+ private getPivotCell;
4134
+ private getColHeaderDomain;
4135
+ private getColDomain;
4136
+ private getColMeasure;
4137
+ private getRowDomain;
4138
+ export(): {
4139
+ cols: SPTableColumn[][];
4140
+ rows: SPTableRow[];
4141
+ measures: string[];
4142
+ rowTitle: string | undefined;
4143
+ };
4144
+ }
4145
+
4146
+ interface Pivot<T = PivotRuntimeDefinition> {
4147
+ definition: T;
4148
+ getMeasure: (name: string) => PivotMeasure;
4149
+ computePivotHeaderValue(domain: Array<string | number>): string | boolean | number;
4150
+ getLastPivotGroupValue(domain: Array<string | number>): string | boolean | number;
4151
+ getTableStructure(): SpreadsheetPivotTable;
4152
+ getPivotCellValue(measure: string, domain: Array<string | number>): string | boolean | number;
4153
+ getPivotFieldFormat(name: string): string;
4154
+ getPivotMeasureFormat(name: string): string | undefined;
4155
+ assertIsValid({ throwOnError }: {
4156
+ throwOnError: boolean;
4157
+ }): FPayload | undefined;
4158
+ load(params: unknown): Promise<void>;
4159
+ getFields(): PivotFields | undefined;
4160
+ isLoadedAndValid(): boolean;
4161
+ getPossibleFieldValues(groupBy: string): {
4162
+ value: string | boolean | number;
4163
+ label: string;
4164
+ }[];
4165
+ }
4166
+
4167
+ declare class PivotUIPlugin extends UIPlugin {
4168
+ static getters: readonly ["getPivot", "getFirstPivotFunction", "getPivotIdFromPosition", "getPivotDomainArgsFromPosition", "isPivotUnused", "areDomainArgsFieldsValid"];
4169
+ private pivots;
4170
+ private unusedPivots?;
4171
+ private custom;
4172
+ constructor(config: UIPluginConfig);
4173
+ beforeHandle(cmd: Command): void;
4174
+ handle(cmd: Command): void;
4175
+ /**
4176
+ * Get the id of the pivot at the given position. Returns undefined if there
4177
+ * is no pivot at this position
4178
+ */
4179
+ getPivotIdFromPosition(position: CellPosition): string | undefined;
4180
+ getFirstPivotFunction(tokens: Token[]): {
4181
+ functionName: string;
4182
+ args: (CellValue | Matrix<CellValue> | undefined)[];
4183
+ } | undefined;
4184
+ /**
4185
+ * Returns the domain args of a pivot formula from a position.
4186
+ * For all those formulas:
4187
+ *
4188
+ * =PIVOT.VALUE(1,"expected_revenue","stage_id",2,"city","Brussels")
4189
+ * =PIVOT.HEADER(1,"stage_id",2,"city","Brussels")
4190
+ * =PIVOT.HEADER(1,"stage_id",2,"city","Brussels","measure","expected_revenue")
4191
+ *
4192
+ * the result is the same: ["stage_id", 2, "city", "Brussels"]
4193
+ *
4194
+ * If the cell is the result of PIVOT, the result is the domain of the cell
4195
+ * as if it was the individual pivot formula
4196
+ */
4197
+ getPivotDomainArgsFromPosition(position: CellPosition): (CellValue | Matrix<CellValue> | undefined)[] | undefined;
4198
+ getPivot(pivotId: UID): Pivot<PivotRuntimeDefinition>;
4199
+ getPivotDataSourceId(pivotId: UID): string;
4200
+ isPivotUnused(pivotId: UID): boolean;
4201
+ /**
4202
+ * Check if the fields in the domain part of
4203
+ * a pivot function are valid according to the pivot definition.
4204
+ * e.g. =PIVOT.VALUE(1,"revenue","country_id",...,"create_date:month",...,"source_id",...)
4205
+ */
4206
+ areDomainArgsFieldsValid(pivotId: UID, domainArgs: string[]): boolean;
4207
+ /**
4208
+ * Refresh the cache of a pivot
4209
+ */
4210
+ private refreshPivot;
4211
+ setupPivot(pivotId: UID, { recreate }?: {
4212
+ recreate: boolean;
4213
+ }): void;
4214
+ _getUnusedPivots(): UID[];
4215
+ }
4216
+
3838
4217
  /**
3839
4218
  * Autofill Plugin
3840
4219
  *
@@ -4142,7 +4521,7 @@ declare class SplitToColumnsPlugin extends UIPlugin {
4142
4521
  private checkSeparatorInSelection;
4143
4522
  }
4144
4523
 
4145
- declare class TableStylePlugin extends UIPlugin {
4524
+ declare class TableComputedStylePlugin extends UIPlugin {
4146
4525
  static getters: readonly ["getCellTableStyle", "getCellTableBorder"];
4147
4526
  private tableStyles;
4148
4527
  handle(cmd: Command): void;
@@ -4259,7 +4638,7 @@ declare class ClipboardPlugin extends UIPlugin {
4259
4638
  declare class FilterEvaluationPlugin extends UIPlugin {
4260
4639
  static getters: readonly ["getFilterHiddenValues", "getFirstTableInSelection", "isRowFiltered", "isFilterActive"];
4261
4640
  private filterValues;
4262
- hiddenRows: Set<number>;
4641
+ hiddenRows: Record<UID, Set<number> | undefined>;
4263
4642
  isEvaluationDirty: boolean;
4264
4643
  allowDispatch(cmd: LocalCommand): CommandResult;
4265
4644
  handle(cmd: Command): void;
@@ -4310,7 +4689,7 @@ declare class HeaderPositionsUIPlugin extends UIPlugin {
4310
4689
  */
4311
4690
  declare class GridSelectionPlugin extends UIPlugin {
4312
4691
  static layers: readonly ["Selection"];
4313
- static getters: readonly ["getActiveSheet", "getActiveSheetId", "getActiveCell", "getActiveCols", "getActiveRows", "getCurrentStyle", "getSelectedZones", "getSelectedZone", "getSelectedCells", "getSelectedFigureId", "getSelection", "getActivePosition", "getSheetPosition", "isSelected", "isSingleColSelected", "getElementsFromSelection", "tryGetActiveSheetId", "isGridSelectionActive"];
4692
+ static getters: readonly ["getActiveSheet", "getActiveSheetId", "getActiveCell", "getActiveCols", "getActiveRows", "getCurrentStyle", "getSelectedZones", "getSelectedZone", "getSelectedCells", "getSelectedFigureId", "getSelection", "getActivePosition", "getSheetPosition", "isSingleColSelected", "getElementsFromSelection", "tryGetActiveSheetId", "isGridSelectionActive"];
4314
4693
  private gridSelection;
4315
4694
  private selectedFigureId;
4316
4695
  private sheetsData;
@@ -4335,7 +4714,6 @@ declare class GridSelectionPlugin extends UIPlugin {
4335
4714
  getSelectedFigureId(): UID | null;
4336
4715
  getActivePosition(): CellPosition;
4337
4716
  getSheetPosition(sheetId: UID): CellPosition;
4338
- isSelected(zone: Zone): boolean;
4339
4717
  isSingleColSelected(): boolean;
4340
4718
  /**
4341
4719
  * Returns a sorted array of indexes of all columns (respectively rows depending
@@ -4672,11 +5050,11 @@ type PluginGetters<Plugin extends {
4672
5050
  getters: readonly string[];
4673
5051
  }> = Pick<InstanceType<Plugin>, GetterNames<Plugin>>;
4674
5052
  type RangeAdapterGetters = Pick<RangeAdapter, GetterNames<typeof RangeAdapter>>;
4675
- type CoreGetters = PluginGetters<typeof SheetPlugin> & PluginGetters<typeof HeaderSizePlugin> & PluginGetters<typeof HeaderVisibilityPlugin> & PluginGetters<typeof CellPlugin> & PluginGetters<typeof MergePlugin> & PluginGetters<typeof BordersPlugin> & PluginGetters<typeof ChartPlugin> & PluginGetters<typeof ImagePlugin> & PluginGetters<typeof FigurePlugin> & RangeAdapterGetters & PluginGetters<typeof ConditionalFormatPlugin> & PluginGetters<typeof TablePlugin> & PluginGetters<typeof SettingsPlugin> & PluginGetters<typeof HeaderGroupingPlugin> & PluginGetters<typeof DataValidationPlugin>;
5053
+ type CoreGetters = PluginGetters<typeof SheetPlugin> & PluginGetters<typeof HeaderSizePlugin> & PluginGetters<typeof HeaderVisibilityPlugin> & PluginGetters<typeof CellPlugin> & PluginGetters<typeof MergePlugin> & PluginGetters<typeof BordersPlugin> & PluginGetters<typeof ChartPlugin> & PluginGetters<typeof ImagePlugin> & PluginGetters<typeof FigurePlugin> & RangeAdapterGetters & PluginGetters<typeof ConditionalFormatPlugin> & PluginGetters<typeof TablePlugin> & PluginGetters<typeof SettingsPlugin> & PluginGetters<typeof HeaderGroupingPlugin> & PluginGetters<typeof DataValidationPlugin> & PluginGetters<typeof PivotCorePlugin>;
4676
5054
  type Getters = {
4677
5055
  isReadonly: () => boolean;
4678
5056
  isDashboard: () => boolean;
4679
- } & CoreGetters & PluginGetters<typeof AutofillPlugin> & PluginGetters<typeof AutomaticSumPlugin> & PluginGetters<typeof HistoryPlugin> & PluginGetters<typeof ClipboardPlugin> & PluginGetters<typeof EvaluationPlugin> & PluginGetters<typeof EvaluationChartPlugin> & PluginGetters<typeof EvaluationConditionalFormatPlugin> & PluginGetters<typeof FindAndReplacePlugin> & PluginGetters<typeof HeaderVisibilityUIPlugin> & PluginGetters<typeof CustomColorsPlugin> & PluginGetters<typeof AutomaticSumPlugin> & PluginGetters<typeof GridSelectionPlugin> & PluginGetters<typeof CollaborativePlugin> & PluginGetters<typeof SortPlugin> & PluginGetters<typeof UIOptionsPlugin> & PluginGetters<typeof SheetUIPlugin> & PluginGetters<typeof SheetViewPlugin> & PluginGetters<typeof FilterEvaluationPlugin> & PluginGetters<typeof SplitToColumnsPlugin> & PluginGetters<typeof HeaderSizeUIPlugin> & PluginGetters<typeof EvaluationDataValidationPlugin> & PluginGetters<typeof HeaderPositionsUIPlugin> & PluginGetters<typeof TableStylePlugin> & PluginGetters<typeof CellComputedStylePlugin> & PluginGetters<typeof DynamicTablesPlugin>;
5057
+ } & CoreGetters & PluginGetters<typeof AutofillPlugin> & PluginGetters<typeof AutomaticSumPlugin> & PluginGetters<typeof HistoryPlugin> & PluginGetters<typeof ClipboardPlugin> & PluginGetters<typeof EvaluationPlugin> & PluginGetters<typeof EvaluationChartPlugin> & PluginGetters<typeof EvaluationConditionalFormatPlugin> & PluginGetters<typeof FindAndReplacePlugin> & PluginGetters<typeof HeaderVisibilityUIPlugin> & PluginGetters<typeof CustomColorsPlugin> & PluginGetters<typeof AutomaticSumPlugin> & PluginGetters<typeof GridSelectionPlugin> & PluginGetters<typeof CollaborativePlugin> & PluginGetters<typeof SortPlugin> & PluginGetters<typeof UIOptionsPlugin> & PluginGetters<typeof SheetUIPlugin> & PluginGetters<typeof SheetViewPlugin> & PluginGetters<typeof FilterEvaluationPlugin> & PluginGetters<typeof SplitToColumnsPlugin> & PluginGetters<typeof HeaderSizeUIPlugin> & PluginGetters<typeof EvaluationDataValidationPlugin> & PluginGetters<typeof HeaderPositionsUIPlugin> & PluginGetters<typeof TableStylePlugin> & PluginGetters<typeof CellComputedStylePlugin> & PluginGetters<typeof DynamicTablesPlugin> & PluginGetters<typeof PivotUIPlugin> & PluginGetters<typeof TableComputedStylePlugin>;
4680
5058
 
4681
5059
  type ArgType = "ANY" | "BOOLEAN" | "NUMBER" | "STRING" | "DATE" | "RANGE" | "RANGE<BOOLEAN>" | "RANGE<NUMBER>" | "RANGE<DATE>" | "RANGE<STRING>" | "RANGE<ANY>" | "META";
4682
5060
  interface ArgDefinition {
@@ -4994,6 +5372,7 @@ declare class DateTime {
4994
5372
  getTime(): number;
4995
5373
  getFullYear(): number;
4996
5374
  getMonth(): number;
5375
+ getQuarter(): number;
4997
5376
  getDate(): number;
4998
5377
  getDay(): number;
4999
5378
  getHours(): number;
@@ -5145,12 +5524,11 @@ declare function isInside(col: number, row: number, zone: Zone): boolean;
5145
5524
  * a cell that is part of the new zone and not the previous one.
5146
5525
  */
5147
5526
  declare function findCellInNewZone(oldZone: Zone, currentZone: Zone): Position$1;
5148
- declare function positionToZone(position: Position$1): {
5149
- left: HeaderIndex;
5150
- right: HeaderIndex;
5151
- top: HeaderIndex;
5152
- bottom: HeaderIndex;
5153
- };
5527
+ declare function positionToZone(position: Position$1): Zone;
5528
+ /**
5529
+ * Merge contiguous and overlapping zones that are in the array into bigger zones
5530
+ */
5531
+ declare function mergeContiguousZones(zones: Zone[]): Zone[];
5154
5532
 
5155
5533
  /**
5156
5534
  * Model
@@ -5338,74 +5716,6 @@ declare class Model extends EventBus<any> implements CommandDispatcher {
5338
5716
  garbageCollectExternalResources(): void;
5339
5717
  }
5340
5718
 
5341
- declare class ClipboardHandler<T> {
5342
- protected getters: Getters;
5343
- protected dispatch: CommandDispatcher["dispatch"];
5344
- constructor(getters: Getters, dispatch: CommandDispatcher["dispatch"]);
5345
- copy(data: ClipboardData): T | undefined;
5346
- paste(target: ClipboardPasteTarget, clippedContent: T, options: ClipboardOptions | undefined): void;
5347
- isPasteAllowed(sheetId: UID, target: Zone[], content: T, option: ClipboardOptions): CommandResult;
5348
- isCutAllowed(data: ClipboardData): CommandResult;
5349
- getPasteTarget(target: Zone[], content: T, options: ClipboardOptions): ClipboardPasteTarget;
5350
- convertOSClipboardData(data: any): T | undefined;
5351
- }
5352
-
5353
- declare class AbstractCellClipboardHandler<T, T1> extends ClipboardHandler<T> {
5354
- copy(data: ClipboardCellData): T | undefined;
5355
- pasteFromCopy(sheetId: UID, target: Zone[], content: T1[][], options?: ClipboardOptions): void;
5356
- protected pasteZone(sheetId: UID, col: HeaderIndex, row: HeaderIndex, data: T1[][], clipboardOptions?: ClipboardOptions): void;
5357
- }
5358
-
5359
- declare class AbstractFigureClipboardHandler<T> extends ClipboardHandler<T> {
5360
- copy(data: ClipboardFigureData): T | undefined;
5361
- }
5362
-
5363
- type CellPopoverType = "ErrorToolTip" | "LinkDisplay" | "FilterMenu" | "LinkEditor";
5364
- type PopoverPropsPosition = "TopRight" | "BottomLeft";
5365
- type MaxSizedComponentConstructor = ComponentConstructor & {
5366
- maxSize?: {
5367
- maxWidth?: number;
5368
- maxHeight?: number;
5369
- };
5370
- };
5371
- /**
5372
- * If the cell at the given position have an associated component (linkDisplay, errorTooltip, ...),
5373
- * returns the parameters to display the component
5374
- */
5375
- type CellPopoverBuilder = (position: CellPosition, getters: Getters) => CellPopoverComponent<MaxSizedComponentConstructor>;
5376
- interface PopoverBuilders {
5377
- onOpen?: CellPopoverBuilder;
5378
- onHover?: CellPopoverBuilder;
5379
- }
5380
- interface ClosedCellPopover {
5381
- isOpen: false;
5382
- }
5383
- interface OpenCellPopover {
5384
- isOpen: true;
5385
- type: CellPopoverType;
5386
- col: number;
5387
- row: number;
5388
- }
5389
- /**
5390
- * Description of a cell component.
5391
- * i.e. which component class, which props and where to
5392
- * display it relative to the cell
5393
- */
5394
- type OpenCellPopoverComponent<C extends ComponentConstructor> = {
5395
- isOpen: true;
5396
- Component: C;
5397
- props: PropsOf<C>;
5398
- cellCorner: PopoverPropsPosition;
5399
- };
5400
- type CellPopoverComponent<C extends MaxSizedComponentConstructor = MaxSizedComponentConstructor> = ClosedCellPopover | OpenCellPopoverComponent<C>;
5401
- type PositionedCellPopoverComponent<C extends MaxSizedComponentConstructor = MaxSizedComponentConstructor> = {
5402
- isOpen: true;
5403
- Component: C;
5404
- props: PropsOf<C>;
5405
- anchorRect: Rect;
5406
- cellCorner: PopoverPropsPosition;
5407
- };
5408
-
5409
5719
  /**
5410
5720
  * Registry
5411
5721
  *
@@ -5451,73 +5761,399 @@ declare class Registry<T> {
5451
5761
  remove(key: string): void;
5452
5762
  }
5453
5763
 
5454
- interface LinkSpec {
5455
- readonly match: (url: string) => boolean;
5456
- readonly createLink: (url: string, label: string) => Link;
5457
- /**
5458
- * String used to display the URL in components.
5459
- * Particularly useful for special links (sheet, etc.)
5460
- * - a simple web link displays the raw url
5461
- * - a link to a sheet displays the sheet name
5462
- */
5463
- readonly urlRepresentation: (url: string, getters: Getters) => string;
5464
- readonly open: (url: string, env: SpreadsheetChildEnv) => void;
5465
- readonly sequence: number;
5764
+ interface PivotParams {
5765
+ definition: PivotCoreDefinition;
5766
+ getters: Getters;
5767
+ }
5768
+ type PivotConstructor = new (custom: ModelConfig["custom"], params: PivotParams) => Pivot;
5769
+ type PivotDefinitionConstructor = new (definition: PivotCoreDefinition, fields: PivotFields) => PivotRuntimeDefinition;
5770
+ interface PivotRegistryItem {
5771
+ cls: PivotConstructor;
5772
+ definition: PivotDefinitionConstructor;
5466
5773
  }
5467
- declare function urlRepresentation(link: Link, getters: Getters): string;
5468
- declare function openLink(link: Link, env: SpreadsheetChildEnv): void;
5469
5774
 
5470
- type TransformationFunction<U extends CoreCommandTypes, V extends CoreCommandTypes> = (toTransform: Extract<CoreCommand, {
5471
- type: U;
5472
- }>, executed: Extract<CoreCommand, {
5473
- type: V;
5474
- }>) => CoreCommand | undefined;
5475
- declare class OTRegistry extends Registry<Map<CoreCommandTypes, TransformationFunction<CoreCommandTypes, CoreCommandTypes>>> {
5476
- /**
5477
- * Add a transformation function to the registry. When the executed command
5478
- * happened, all the commands in toTransforms should be transformed using the
5479
- * transformation function given
5480
- */
5481
- addTransformation<U extends CoreCommandTypes, V extends CoreCommandTypes>(executed: U, toTransforms: V[], fn: TransformationFunction<CoreCommandTypes, CoreCommandTypes>): this;
5482
- /**
5483
- * Get the transformation function to transform the command toTransform, after
5484
- * that the executed command happened.
5485
- */
5486
- getTransformation<U extends CoreCommandTypes, V extends CoreCommandTypes>(toTransform: U, executed: V): TransformationFunction<CoreCommandTypes, CoreCommandTypes> | undefined;
5775
+ declare class ClipboardHandler<T> {
5776
+ protected getters: Getters;
5777
+ protected dispatch: CommandDispatcher["dispatch"];
5778
+ constructor(getters: Getters, dispatch: CommandDispatcher["dispatch"]);
5779
+ copy(data: ClipboardData): T | undefined;
5780
+ paste(target: ClipboardPasteTarget, clippedContent: T, options: ClipboardOptions | undefined): void;
5781
+ isPasteAllowed(sheetId: UID, target: Zone[], content: T, option: ClipboardOptions): CommandResult;
5782
+ isCutAllowed(data: ClipboardData): CommandResult;
5783
+ getPasteTarget(target: Zone[], content: T, options: ClipboardOptions): ClipboardPasteTarget;
5784
+ convertOSClipboardData(data: any): T | undefined;
5487
5785
  }
5488
5786
 
5489
- interface CellClickableItem {
5490
- condition: (position: CellPosition, env: SpreadsheetChildEnv) => boolean;
5491
- execute: (position: CellPosition, env: SpreadsheetChildEnv) => void;
5492
- sequence: number;
5787
+ declare class AbstractCellClipboardHandler<T, T1> extends ClipboardHandler<T> {
5788
+ copy(data: ClipboardCellData): T | undefined;
5789
+ pasteFromCopy(sheetId: UID, target: Zone[], content: T1[][], options?: ClipboardOptions): void;
5790
+ protected pasteZone(sheetId: UID, col: HeaderIndex, row: HeaderIndex, data: T1[][], clipboardOptions?: ClipboardOptions): void;
5493
5791
  }
5494
5792
 
5495
- interface TopbarComponent {
5496
- id: UID;
5497
- component: any;
5498
- isVisible?: (env: SpreadsheetChildEnv) => boolean;
5793
+ declare class AbstractFigureClipboardHandler<T> extends ClipboardHandler<T> {
5794
+ copy(data: ClipboardFigureData): T | undefined;
5499
5795
  }
5500
5796
 
5501
- /**
5502
- * Instantiate a chart object based on a definition
5503
- */
5504
- interface ChartBuilder {
5797
+ interface ActionSpec {
5505
5798
  /**
5506
- * Check if this factory should be used
5799
+ * String or a function to compute the name
5507
5800
  */
5508
- match: (type: ChartType) => boolean;
5509
- createChart: (definition: ChartDefinition, sheetId: UID, getters: CoreGetters) => AbstractChart;
5510
- getChartRuntime: (chart: AbstractChart, getters: Getters) => ChartRuntime;
5511
- validateChartDefinition(validator: Validator, definition: ChartDefinition): CommandResult | CommandResult[];
5512
- transformDefinition(definition: ChartDefinition, executed: AddColumnsRowsCommand | RemoveColumnsRowsCommand): ChartDefinition;
5513
- getChartDefinitionFromContextCreation(context: ChartCreationContext): ChartDefinition;
5514
- name: string;
5515
- sequence: number;
5516
- }
5517
-
5518
- declare class SpreadsheetStore extends DisposableStore {
5519
- protected model: Model;
5520
- protected getters: Getters;
5801
+ name: string | ((env: SpreadsheetChildEnv) => string);
5802
+ description?: string | ((env: SpreadsheetChildEnv) => string);
5803
+ /**
5804
+ * which represents its position inside the
5805
+ * menus (the lower sequence it has, the upper it is in the menu)
5806
+ */
5807
+ sequence?: number;
5808
+ /**
5809
+ * used for example to add child
5810
+ */
5811
+ id?: string;
5812
+ /**
5813
+ * Can be defined to compute the visibility of the item
5814
+ */
5815
+ isVisible?: (env: SpreadsheetChildEnv) => boolean;
5816
+ /**
5817
+ * Can be defined to compute if the user can click on the action
5818
+ */
5819
+ isEnabled?: (env: SpreadsheetChildEnv) => boolean;
5820
+ /**
5821
+ * Can be defined to compute if the action is active
5822
+ */
5823
+ isActive?: (env: SpreadsheetChildEnv) => boolean;
5824
+ /**
5825
+ * Can be defined to display an icon
5826
+ */
5827
+ icon?: string | ((env: SpreadsheetChildEnv) => string);
5828
+ /**
5829
+ * Can be defined to display another icon on the right of the item.
5830
+ */
5831
+ secondaryIcon?: string | ((env: SpreadsheetChildEnv) => string);
5832
+ /**
5833
+ * is the action allowed when running spreadsheet in readonly mode
5834
+ */
5835
+ isReadonlyAllowed?: boolean;
5836
+ /**
5837
+ * Execute the action. The action can return a result.
5838
+ * The result will be carried by a `menu-clicked` event to the menu parent component.
5839
+ */
5840
+ execute?: (env: SpreadsheetChildEnv) => unknown;
5841
+ /**
5842
+ * subitems associated to this item
5843
+ * NB: an action without an execute function or children is not displayed !
5844
+ */
5845
+ children?: ActionChildren;
5846
+ /**
5847
+ * whether it should add a separator below the item in menus
5848
+ * NB: a separator defined on the last item is not displayed !
5849
+ */
5850
+ separator?: boolean;
5851
+ textColor?: Color;
5852
+ onStartHover?: (env: SpreadsheetChildEnv) => void;
5853
+ onStopHover?: (env: SpreadsheetChildEnv) => void;
5854
+ }
5855
+ interface Action {
5856
+ name: (env: SpreadsheetChildEnv) => string;
5857
+ description: (env: SpreadsheetChildEnv) => string;
5858
+ sequence: number;
5859
+ id: string;
5860
+ isVisible: (env: SpreadsheetChildEnv) => boolean;
5861
+ isEnabled: (env: SpreadsheetChildEnv) => boolean;
5862
+ isActive?: (env: SpreadsheetChildEnv) => boolean;
5863
+ icon: (env: SpreadsheetChildEnv) => string;
5864
+ secondaryIcon: (env: SpreadsheetChildEnv) => string;
5865
+ isReadonlyAllowed: boolean;
5866
+ execute?: (env: SpreadsheetChildEnv) => unknown;
5867
+ children: (env: SpreadsheetChildEnv) => Action[];
5868
+ separator: boolean;
5869
+ textColor?: Color;
5870
+ onStartHover?: (env: SpreadsheetChildEnv) => void;
5871
+ onStopHover?: (env: SpreadsheetChildEnv) => void;
5872
+ }
5873
+ type ActionBuilder = (env: SpreadsheetChildEnv) => ActionSpec[];
5874
+ type ActionChildren = (ActionSpec | ActionBuilder)[];
5875
+ declare function createActions(menuItems: ActionSpec[]): Action[];
5876
+ declare function createAction(item: ActionSpec): Action;
5877
+
5878
+ interface NumberFormatActionSpec extends ActionSpec {
5879
+ format?: Format | ((env: SpreadsheetChildEnv) => Format);
5880
+ }
5881
+ /**
5882
+ * Create a format action specification for a given format.
5883
+ * The format can be dynamically computed from the environment.
5884
+ */
5885
+ declare function createFormatActionSpec({ name, format, descriptionValue, }: {
5886
+ name: string;
5887
+ descriptionValue: CellValue;
5888
+ format: Format | ((env: SpreadsheetChildEnv) => Format);
5889
+ }): NumberFormatActionSpec;
5890
+ declare const formatNumberAutomatic: NumberFormatActionSpec;
5891
+ declare const formatNumberPlainText: NumberFormatActionSpec;
5892
+ declare const formatNumberNumber: NumberFormatActionSpec;
5893
+ declare const formatPercent: ActionSpec;
5894
+ declare const formatNumberPercent: NumberFormatActionSpec;
5895
+ declare const formatNumberCurrency: NumberFormatActionSpec;
5896
+ declare const formatNumberCurrencyRounded: NumberFormatActionSpec;
5897
+ declare const EXAMPLE_DATE: CellValue;
5898
+ declare const formatCustomCurrency: ActionSpec;
5899
+ declare const formatNumberDate: NumberFormatActionSpec;
5900
+ declare const formatNumberTime: NumberFormatActionSpec;
5901
+ declare const formatNumberDateTime: NumberFormatActionSpec;
5902
+ declare const formatNumberDuration: NumberFormatActionSpec;
5903
+ declare const formatNumberQuarter: NumberFormatActionSpec;
5904
+ declare const formatNumberFullQuarter: NumberFormatActionSpec;
5905
+ declare const moreFormats: ActionSpec;
5906
+ declare const formatNumberFullDateTime: NumberFormatActionSpec;
5907
+ declare const formatNumberFullWeekDayAndMonth: NumberFormatActionSpec;
5908
+ declare const formatNumberDayAndFullMonth: NumberFormatActionSpec;
5909
+ declare const formatNumberShortWeekDay: NumberFormatActionSpec;
5910
+ declare const formatNumberDayAndShortMonth: NumberFormatActionSpec;
5911
+ declare const formatNumberFullMonth: NumberFormatActionSpec;
5912
+ declare const formatNumberShortMonth: NumberFormatActionSpec;
5913
+ declare const incraseDecimalPlaces: ActionSpec;
5914
+ declare const decraseDecimalPlaces: ActionSpec;
5915
+ declare const formatBold: ActionSpec;
5916
+ declare const formatItalic: ActionSpec;
5917
+ declare const formatUnderline: ActionSpec;
5918
+ declare const formatStrikethrough: ActionSpec;
5919
+ declare const formatFontSize: ActionSpec;
5920
+ declare const formatAlignment: ActionSpec;
5921
+ declare const formatAlignmentHorizontal: ActionSpec;
5922
+ declare const formatAlignmentLeft: ActionSpec;
5923
+ declare const formatAlignmentCenter: ActionSpec;
5924
+ declare const formatAlignmentRight: ActionSpec;
5925
+ declare const formatAlignmentVertical: ActionSpec;
5926
+ declare const formatAlignmentTop: ActionSpec;
5927
+ declare const formatAlignmentMiddle: ActionSpec;
5928
+ declare const formatAlignmentBottom: ActionSpec;
5929
+ declare const formatWrappingIcon: ActionSpec;
5930
+ declare const formatWrapping: ActionSpec;
5931
+ declare const formatWrappingOverflow: ActionSpec;
5932
+ declare const formatWrappingWrap: ActionSpec;
5933
+ declare const formatWrappingClip: ActionSpec;
5934
+ declare const textColor: ActionSpec;
5935
+ declare const fillColor: ActionSpec;
5936
+ declare const formatCF: ActionSpec;
5937
+ declare const clearFormat: ActionSpec;
5938
+
5939
+ declare const ACTION_FORMAT_EXAMPLE_DATE: typeof EXAMPLE_DATE;
5940
+ type ACTION_FORMAT_NumberFormatActionSpec = NumberFormatActionSpec;
5941
+ declare const ACTION_FORMAT_clearFormat: typeof clearFormat;
5942
+ declare const ACTION_FORMAT_createFormatActionSpec: typeof createFormatActionSpec;
5943
+ declare const ACTION_FORMAT_decraseDecimalPlaces: typeof decraseDecimalPlaces;
5944
+ declare const ACTION_FORMAT_fillColor: typeof fillColor;
5945
+ declare const ACTION_FORMAT_formatAlignment: typeof formatAlignment;
5946
+ declare const ACTION_FORMAT_formatAlignmentBottom: typeof formatAlignmentBottom;
5947
+ declare const ACTION_FORMAT_formatAlignmentCenter: typeof formatAlignmentCenter;
5948
+ declare const ACTION_FORMAT_formatAlignmentHorizontal: typeof formatAlignmentHorizontal;
5949
+ declare const ACTION_FORMAT_formatAlignmentLeft: typeof formatAlignmentLeft;
5950
+ declare const ACTION_FORMAT_formatAlignmentMiddle: typeof formatAlignmentMiddle;
5951
+ declare const ACTION_FORMAT_formatAlignmentRight: typeof formatAlignmentRight;
5952
+ declare const ACTION_FORMAT_formatAlignmentTop: typeof formatAlignmentTop;
5953
+ declare const ACTION_FORMAT_formatAlignmentVertical: typeof formatAlignmentVertical;
5954
+ declare const ACTION_FORMAT_formatBold: typeof formatBold;
5955
+ declare const ACTION_FORMAT_formatCF: typeof formatCF;
5956
+ declare const ACTION_FORMAT_formatCustomCurrency: typeof formatCustomCurrency;
5957
+ declare const ACTION_FORMAT_formatFontSize: typeof formatFontSize;
5958
+ declare const ACTION_FORMAT_formatItalic: typeof formatItalic;
5959
+ declare const ACTION_FORMAT_formatNumberAutomatic: typeof formatNumberAutomatic;
5960
+ declare const ACTION_FORMAT_formatNumberCurrency: typeof formatNumberCurrency;
5961
+ declare const ACTION_FORMAT_formatNumberCurrencyRounded: typeof formatNumberCurrencyRounded;
5962
+ declare const ACTION_FORMAT_formatNumberDate: typeof formatNumberDate;
5963
+ declare const ACTION_FORMAT_formatNumberDateTime: typeof formatNumberDateTime;
5964
+ declare const ACTION_FORMAT_formatNumberDayAndFullMonth: typeof formatNumberDayAndFullMonth;
5965
+ declare const ACTION_FORMAT_formatNumberDayAndShortMonth: typeof formatNumberDayAndShortMonth;
5966
+ declare const ACTION_FORMAT_formatNumberDuration: typeof formatNumberDuration;
5967
+ declare const ACTION_FORMAT_formatNumberFullDateTime: typeof formatNumberFullDateTime;
5968
+ declare const ACTION_FORMAT_formatNumberFullMonth: typeof formatNumberFullMonth;
5969
+ declare const ACTION_FORMAT_formatNumberFullQuarter: typeof formatNumberFullQuarter;
5970
+ declare const ACTION_FORMAT_formatNumberFullWeekDayAndMonth: typeof formatNumberFullWeekDayAndMonth;
5971
+ declare const ACTION_FORMAT_formatNumberNumber: typeof formatNumberNumber;
5972
+ declare const ACTION_FORMAT_formatNumberPercent: typeof formatNumberPercent;
5973
+ declare const ACTION_FORMAT_formatNumberPlainText: typeof formatNumberPlainText;
5974
+ declare const ACTION_FORMAT_formatNumberQuarter: typeof formatNumberQuarter;
5975
+ declare const ACTION_FORMAT_formatNumberShortMonth: typeof formatNumberShortMonth;
5976
+ declare const ACTION_FORMAT_formatNumberShortWeekDay: typeof formatNumberShortWeekDay;
5977
+ declare const ACTION_FORMAT_formatNumberTime: typeof formatNumberTime;
5978
+ declare const ACTION_FORMAT_formatPercent: typeof formatPercent;
5979
+ declare const ACTION_FORMAT_formatStrikethrough: typeof formatStrikethrough;
5980
+ declare const ACTION_FORMAT_formatUnderline: typeof formatUnderline;
5981
+ declare const ACTION_FORMAT_formatWrapping: typeof formatWrapping;
5982
+ declare const ACTION_FORMAT_formatWrappingClip: typeof formatWrappingClip;
5983
+ declare const ACTION_FORMAT_formatWrappingIcon: typeof formatWrappingIcon;
5984
+ declare const ACTION_FORMAT_formatWrappingOverflow: typeof formatWrappingOverflow;
5985
+ declare const ACTION_FORMAT_formatWrappingWrap: typeof formatWrappingWrap;
5986
+ declare const ACTION_FORMAT_incraseDecimalPlaces: typeof incraseDecimalPlaces;
5987
+ declare const ACTION_FORMAT_moreFormats: typeof moreFormats;
5988
+ declare const ACTION_FORMAT_textColor: typeof textColor;
5989
+ declare namespace ACTION_FORMAT {
5990
+ export {
5991
+ ACTION_FORMAT_EXAMPLE_DATE as EXAMPLE_DATE,
5992
+ ACTION_FORMAT_NumberFormatActionSpec as NumberFormatActionSpec,
5993
+ ACTION_FORMAT_clearFormat as clearFormat,
5994
+ ACTION_FORMAT_createFormatActionSpec as createFormatActionSpec,
5995
+ ACTION_FORMAT_decraseDecimalPlaces as decraseDecimalPlaces,
5996
+ ACTION_FORMAT_fillColor as fillColor,
5997
+ ACTION_FORMAT_formatAlignment as formatAlignment,
5998
+ ACTION_FORMAT_formatAlignmentBottom as formatAlignmentBottom,
5999
+ ACTION_FORMAT_formatAlignmentCenter as formatAlignmentCenter,
6000
+ ACTION_FORMAT_formatAlignmentHorizontal as formatAlignmentHorizontal,
6001
+ ACTION_FORMAT_formatAlignmentLeft as formatAlignmentLeft,
6002
+ ACTION_FORMAT_formatAlignmentMiddle as formatAlignmentMiddle,
6003
+ ACTION_FORMAT_formatAlignmentRight as formatAlignmentRight,
6004
+ ACTION_FORMAT_formatAlignmentTop as formatAlignmentTop,
6005
+ ACTION_FORMAT_formatAlignmentVertical as formatAlignmentVertical,
6006
+ ACTION_FORMAT_formatBold as formatBold,
6007
+ ACTION_FORMAT_formatCF as formatCF,
6008
+ ACTION_FORMAT_formatCustomCurrency as formatCustomCurrency,
6009
+ ACTION_FORMAT_formatFontSize as formatFontSize,
6010
+ ACTION_FORMAT_formatItalic as formatItalic,
6011
+ ACTION_FORMAT_formatNumberAutomatic as formatNumberAutomatic,
6012
+ ACTION_FORMAT_formatNumberCurrency as formatNumberCurrency,
6013
+ ACTION_FORMAT_formatNumberCurrencyRounded as formatNumberCurrencyRounded,
6014
+ ACTION_FORMAT_formatNumberDate as formatNumberDate,
6015
+ ACTION_FORMAT_formatNumberDateTime as formatNumberDateTime,
6016
+ ACTION_FORMAT_formatNumberDayAndFullMonth as formatNumberDayAndFullMonth,
6017
+ ACTION_FORMAT_formatNumberDayAndShortMonth as formatNumberDayAndShortMonth,
6018
+ ACTION_FORMAT_formatNumberDuration as formatNumberDuration,
6019
+ ACTION_FORMAT_formatNumberFullDateTime as formatNumberFullDateTime,
6020
+ ACTION_FORMAT_formatNumberFullMonth as formatNumberFullMonth,
6021
+ ACTION_FORMAT_formatNumberFullQuarter as formatNumberFullQuarter,
6022
+ ACTION_FORMAT_formatNumberFullWeekDayAndMonth as formatNumberFullWeekDayAndMonth,
6023
+ ACTION_FORMAT_formatNumberNumber as formatNumberNumber,
6024
+ ACTION_FORMAT_formatNumberPercent as formatNumberPercent,
6025
+ ACTION_FORMAT_formatNumberPlainText as formatNumberPlainText,
6026
+ ACTION_FORMAT_formatNumberQuarter as formatNumberQuarter,
6027
+ ACTION_FORMAT_formatNumberShortMonth as formatNumberShortMonth,
6028
+ ACTION_FORMAT_formatNumberShortWeekDay as formatNumberShortWeekDay,
6029
+ ACTION_FORMAT_formatNumberTime as formatNumberTime,
6030
+ ACTION_FORMAT_formatPercent as formatPercent,
6031
+ ACTION_FORMAT_formatStrikethrough as formatStrikethrough,
6032
+ ACTION_FORMAT_formatUnderline as formatUnderline,
6033
+ ACTION_FORMAT_formatWrapping as formatWrapping,
6034
+ ACTION_FORMAT_formatWrappingClip as formatWrappingClip,
6035
+ ACTION_FORMAT_formatWrappingIcon as formatWrappingIcon,
6036
+ ACTION_FORMAT_formatWrappingOverflow as formatWrappingOverflow,
6037
+ ACTION_FORMAT_formatWrappingWrap as formatWrappingWrap,
6038
+ ACTION_FORMAT_incraseDecimalPlaces as incraseDecimalPlaces,
6039
+ ACTION_FORMAT_moreFormats as moreFormats,
6040
+ ACTION_FORMAT_textColor as textColor,
6041
+ };
6042
+ }
6043
+
6044
+ type CellPopoverType = "ErrorToolTip" | "LinkDisplay" | "FilterMenu" | "LinkEditor";
6045
+ type PopoverPropsPosition = "TopRight" | "BottomLeft";
6046
+ type MaxSizedComponentConstructor = ComponentConstructor & {
6047
+ maxSize?: {
6048
+ maxWidth?: number;
6049
+ maxHeight?: number;
6050
+ };
6051
+ };
6052
+ /**
6053
+ * If the cell at the given position have an associated component (linkDisplay, errorTooltip, ...),
6054
+ * returns the parameters to display the component
6055
+ */
6056
+ type CellPopoverBuilder = (position: CellPosition, getters: Getters) => CellPopoverComponent<MaxSizedComponentConstructor>;
6057
+ interface PopoverBuilders {
6058
+ onOpen?: CellPopoverBuilder;
6059
+ onHover?: CellPopoverBuilder;
6060
+ }
6061
+ interface ClosedCellPopover {
6062
+ isOpen: false;
6063
+ }
6064
+ interface OpenCellPopover {
6065
+ isOpen: true;
6066
+ type: CellPopoverType;
6067
+ col: number;
6068
+ row: number;
6069
+ }
6070
+ /**
6071
+ * Description of a cell component.
6072
+ * i.e. which component class, which props and where to
6073
+ * display it relative to the cell
6074
+ */
6075
+ type OpenCellPopoverComponent<C extends ComponentConstructor> = {
6076
+ isOpen: true;
6077
+ Component: C;
6078
+ props: PropsOf<C>;
6079
+ cellCorner: PopoverPropsPosition;
6080
+ };
6081
+ type CellPopoverComponent<C extends MaxSizedComponentConstructor = MaxSizedComponentConstructor> = ClosedCellPopover | OpenCellPopoverComponent<C>;
6082
+ type PositionedCellPopoverComponent<C extends MaxSizedComponentConstructor = MaxSizedComponentConstructor> = {
6083
+ isOpen: true;
6084
+ Component: C;
6085
+ props: PropsOf<C>;
6086
+ anchorRect: Rect;
6087
+ cellCorner: PopoverPropsPosition;
6088
+ };
6089
+
6090
+ interface LinkSpec {
6091
+ readonly match: (url: string) => boolean;
6092
+ readonly createLink: (url: string, label: string) => Link;
6093
+ /**
6094
+ * String used to display the URL in components.
6095
+ * Particularly useful for special links (sheet, etc.)
6096
+ * - a simple web link displays the raw url
6097
+ * - a link to a sheet displays the sheet name
6098
+ */
6099
+ readonly urlRepresentation: (url: string, getters: Getters) => string;
6100
+ readonly open: (url: string, env: SpreadsheetChildEnv) => void;
6101
+ readonly sequence: number;
6102
+ }
6103
+ declare function urlRepresentation(link: Link, getters: Getters): string;
6104
+ declare function openLink(link: Link, env: SpreadsheetChildEnv): void;
6105
+
6106
+ type TransformationFunction<U extends CoreCommandTypes, V extends CoreCommandTypes> = (toTransform: Extract<CoreCommand, {
6107
+ type: U;
6108
+ }>, executed: Extract<CoreCommand, {
6109
+ type: V;
6110
+ }>) => CoreCommand | undefined;
6111
+ declare class OTRegistry extends Registry<Map<CoreCommandTypes, TransformationFunction<CoreCommandTypes, CoreCommandTypes>>> {
6112
+ /**
6113
+ * Add a transformation function to the registry. When the executed command
6114
+ * happened, all the commands in toTransforms should be transformed using the
6115
+ * transformation function given
6116
+ */
6117
+ addTransformation<U extends CoreCommandTypes, V extends CoreCommandTypes>(executed: U, toTransforms: V[], fn: TransformationFunction<CoreCommandTypes, CoreCommandTypes>): this;
6118
+ /**
6119
+ * Get the transformation function to transform the command toTransform, after
6120
+ * that the executed command happened.
6121
+ */
6122
+ getTransformation<U extends CoreCommandTypes, V extends CoreCommandTypes>(toTransform: U, executed: V): TransformationFunction<CoreCommandTypes, CoreCommandTypes> | undefined;
6123
+ }
6124
+
6125
+ interface CellClickableItem {
6126
+ condition: (position: CellPosition, env: SpreadsheetChildEnv) => boolean;
6127
+ execute: (position: CellPosition, env: SpreadsheetChildEnv) => void;
6128
+ sequence: number;
6129
+ }
6130
+
6131
+ interface TopbarComponent {
6132
+ id: UID;
6133
+ component: any;
6134
+ isVisible?: (env: SpreadsheetChildEnv) => boolean;
6135
+ }
6136
+
6137
+ /**
6138
+ * Instantiate a chart object based on a definition
6139
+ */
6140
+ interface ChartBuilder {
6141
+ /**
6142
+ * Check if this factory should be used
6143
+ */
6144
+ match: (type: ChartType) => boolean;
6145
+ createChart: (definition: ChartDefinition, sheetId: UID, getters: CoreGetters) => AbstractChart;
6146
+ getChartRuntime: (chart: AbstractChart, getters: Getters) => ChartRuntime;
6147
+ validateChartDefinition(validator: Validator, definition: ChartDefinition): CommandResult | CommandResult[];
6148
+ transformDefinition(definition: ChartDefinition, executed: AddColumnsRowsCommand | RemoveColumnsRowsCommand): ChartDefinition;
6149
+ getChartDefinitionFromContextCreation(context: ChartCreationContext): ChartDefinition;
6150
+ name: string;
6151
+ sequence: number;
6152
+ }
6153
+
6154
+ declare class SpreadsheetStore extends DisposableStore {
6155
+ protected model: Model;
6156
+ protected getters: Getters;
5521
6157
  private renderer;
5522
6158
  constructor(get: Get);
5523
6159
  get renderingLayers(): Readonly<LayerName[]>;
@@ -5630,7 +6266,7 @@ declare class SelectionInputStore extends SpreadsheetStore {
5630
6266
  getIndex(rangeId: number | null): number | null;
5631
6267
  }
5632
6268
 
5633
- interface Props$R {
6269
+ interface Props$X {
5634
6270
  ranges: string[];
5635
6271
  hasSingleRange?: boolean;
5636
6272
  required?: boolean;
@@ -5652,7 +6288,7 @@ interface SelectionRange extends Omit<RangeInputValue, "color"> {
5652
6288
  * onSelectionChanged is called every time the input value
5653
6289
  * changes.
5654
6290
  */
5655
- declare class SelectionInput extends Component<Props$R, SpreadsheetChildEnv> {
6291
+ declare class SelectionInput extends Component<Props$X, SpreadsheetChildEnv> {
5656
6292
  static template: string;
5657
6293
  static props: {
5658
6294
  ranges: ArrayConstructor;
@@ -5702,11 +6338,11 @@ declare class SelectionInput extends Component<Props$R, SpreadsheetChildEnv> {
5702
6338
  confirm(): void;
5703
6339
  }
5704
6340
 
5705
- interface Props$Q {
6341
+ interface Props$W {
5706
6342
  messages: string[];
5707
6343
  msgType: "warning" | "error";
5708
6344
  }
5709
- declare class ValidationMessages extends Component<Props$Q, SpreadsheetChildEnv> {
6345
+ declare class ValidationMessages extends Component<Props$W, SpreadsheetChildEnv> {
5710
6346
  static template: string;
5711
6347
  static props: {
5712
6348
  messages: ArrayConstructor;
@@ -5715,7 +6351,7 @@ declare class ValidationMessages extends Component<Props$Q, SpreadsheetChildEnv>
5715
6351
  get divClasses(): "o-validation-warning text-warning" | "o-validation-error text-danger";
5716
6352
  }
5717
6353
 
5718
- interface Props$P {
6354
+ interface Props$V {
5719
6355
  label?: string;
5720
6356
  value: boolean;
5721
6357
  className?: string;
@@ -5724,7 +6360,7 @@ interface Props$P {
5724
6360
  disabled?: boolean;
5725
6361
  onChange: (value: boolean) => void;
5726
6362
  }
5727
- declare class Checkbox extends Component<Props$P, SpreadsheetChildEnv> {
6363
+ declare class Checkbox extends Component<Props$V, SpreadsheetChildEnv> {
5728
6364
  static template: string;
5729
6365
  static props: {
5730
6366
  label: {
@@ -5759,10 +6395,10 @@ declare class Checkbox extends Component<Props$P, SpreadsheetChildEnv> {
5759
6395
  onChange(ev: InputEvent): void;
5760
6396
  }
5761
6397
 
5762
- interface Props$O {
6398
+ interface Props$U {
5763
6399
  class?: string;
5764
6400
  }
5765
- declare class Section extends Component<Props$O, SpreadsheetChildEnv> {
6401
+ declare class Section extends Component<Props$U, SpreadsheetChildEnv> {
5766
6402
  static template: string;
5767
6403
  static props: {
5768
6404
  class: {
@@ -5773,13 +6409,13 @@ declare class Section extends Component<Props$O, SpreadsheetChildEnv> {
5773
6409
  };
5774
6410
  }
5775
6411
 
5776
- interface Props$N {
6412
+ interface Props$T {
5777
6413
  ranges: string[];
5778
6414
  hasSingleRange?: boolean;
5779
6415
  onSelectionChanged: (ranges: string[]) => void;
5780
6416
  onSelectionConfirmed: () => void;
5781
6417
  }
5782
- declare class ChartDataSeries extends Component<Props$N, SpreadsheetChildEnv> {
6418
+ declare class ChartDataSeries extends Component<Props$T, SpreadsheetChildEnv> {
5783
6419
  static template: string;
5784
6420
  static components: {
5785
6421
  SelectionInput: typeof SelectionInput;
@@ -5797,10 +6433,10 @@ declare class ChartDataSeries extends Component<Props$N, SpreadsheetChildEnv> {
5797
6433
  get title(): string;
5798
6434
  }
5799
6435
 
5800
- interface Props$M {
6436
+ interface Props$S {
5801
6437
  messages: string[];
5802
6438
  }
5803
- declare class ChartErrorSection extends Component<Props$M, SpreadsheetChildEnv> {
6439
+ declare class ChartErrorSection extends Component<Props$S, SpreadsheetChildEnv> {
5804
6440
  static template: string;
5805
6441
  static components: {
5806
6442
  Section: typeof Section;
@@ -5814,7 +6450,7 @@ declare class ChartErrorSection extends Component<Props$M, SpreadsheetChildEnv>
5814
6450
  };
5815
6451
  }
5816
6452
 
5817
- interface Props$L {
6453
+ interface Props$R {
5818
6454
  title?: string;
5819
6455
  range: string;
5820
6456
  isInvalid: boolean;
@@ -5828,7 +6464,7 @@ interface Props$L {
5828
6464
  onChange: (value: boolean) => void;
5829
6465
  }>;
5830
6466
  }
5831
- declare class ChartLabelRange extends Component<Props$L, SpreadsheetChildEnv> {
6467
+ declare class ChartLabelRange extends Component<Props$R, SpreadsheetChildEnv> {
5832
6468
  static template: string;
5833
6469
  static components: {
5834
6470
  SelectionInput: typeof SelectionInput;
@@ -5853,16 +6489,16 @@ declare class ChartLabelRange extends Component<Props$L, SpreadsheetChildEnv> {
5853
6489
  optional: boolean;
5854
6490
  };
5855
6491
  };
5856
- static defaultProps: Partial<Props$L>;
6492
+ static defaultProps: Partial<Props$R>;
5857
6493
  }
5858
6494
 
5859
- interface Props$K {
6495
+ interface Props$Q {
5860
6496
  figureId: UID;
5861
6497
  definition: ChartWithAxisDefinition;
5862
6498
  canUpdateChart: (figureId: UID, definition: Partial<ChartWithAxisDefinition>) => DispatchResult;
5863
6499
  updateChart: (figureId: UID, definition: Partial<ChartWithAxisDefinition>) => DispatchResult;
5864
6500
  }
5865
- declare class GenericChartConfigPanel extends Component<Props$K, SpreadsheetChildEnv> {
6501
+ declare class GenericChartConfigPanel extends Component<Props$Q, SpreadsheetChildEnv> {
5866
6502
  static template: string;
5867
6503
  static components: {
5868
6504
  SelectionInput: typeof SelectionInput;
@@ -6062,7 +6698,7 @@ declare class ColorPicker extends Component<ColorPickerProps, SpreadsheetChildEn
6062
6698
  isSameColor(color1: Color, color2: Color): boolean;
6063
6699
  }
6064
6700
 
6065
- interface Props$J {
6701
+ interface Props$P {
6066
6702
  currentColor: string | undefined;
6067
6703
  toggleColorPicker: () => void;
6068
6704
  showColorPicker: boolean;
@@ -6073,7 +6709,7 @@ interface Props$J {
6073
6709
  dropdownMaxHeight?: Pixel;
6074
6710
  class?: string;
6075
6711
  }
6076
- declare class ColorPickerWidget extends Component<Props$J, SpreadsheetChildEnv> {
6712
+ declare class ColorPickerWidget extends Component<Props$P, SpreadsheetChildEnv> {
6077
6713
  static template: string;
6078
6714
  static props: {
6079
6715
  currentColor: {
@@ -6111,12 +6747,12 @@ declare class ColorPickerWidget extends Component<Props$J, SpreadsheetChildEnv>
6111
6747
  get colorPickerAnchorRect(): Rect;
6112
6748
  }
6113
6749
 
6114
- interface Props$I {
6750
+ interface Props$O {
6115
6751
  currentColor?: string;
6116
6752
  onColorPicked: (color: string) => void;
6117
6753
  title?: string;
6118
6754
  }
6119
- declare class RoundColorPicker extends Component<Props$I, SpreadsheetChildEnv> {
6755
+ declare class RoundColorPicker extends Component<Props$O, SpreadsheetChildEnv> {
6120
6756
  static template: string;
6121
6757
  static components: {
6122
6758
  ColorPickerWidget: typeof ColorPickerWidget;
@@ -6146,11 +6782,11 @@ declare class RoundColorPicker extends Component<Props$I, SpreadsheetChildEnv> {
6146
6782
  get buttonStyle(): string;
6147
6783
  }
6148
6784
 
6149
- interface Props$H {
6785
+ interface Props$N {
6150
6786
  title: string;
6151
6787
  update: (title: string) => void;
6152
6788
  }
6153
- declare class ChartTitle extends Component<Props$H, SpreadsheetChildEnv> {
6789
+ declare class ChartTitle extends Component<Props$N, SpreadsheetChildEnv> {
6154
6790
  static template: string;
6155
6791
  static components: {
6156
6792
  Section: typeof Section;
@@ -6162,13 +6798,13 @@ declare class ChartTitle extends Component<Props$H, SpreadsheetChildEnv> {
6162
6798
  updateTitle(ev: InputEvent): void;
6163
6799
  }
6164
6800
 
6165
- interface Props$G {
6801
+ interface Props$M {
6166
6802
  figureId: UID;
6167
6803
  definition: ChartWithAxisDefinition;
6168
6804
  canUpdateChart: (definition: Partial<ChartWithAxisDefinition>) => DispatchResult;
6169
6805
  updateChart: (figureId: UID, definition: Partial<ChartWithAxisDefinition>) => DispatchResult;
6170
6806
  }
6171
- declare class GenericChartDesignPanel extends Component<Props$G, SpreadsheetChildEnv> {
6807
+ declare class GenericChartDesignPanel extends Component<Props$M, SpreadsheetChildEnv> {
6172
6808
  static template: string;
6173
6809
  static components: {
6174
6810
  RoundColorPicker: typeof RoundColorPicker;
@@ -6188,13 +6824,13 @@ declare class GenericChartDesignPanel extends Component<Props$G, SpreadsheetChil
6188
6824
  get backgroundColorTitle(): string;
6189
6825
  }
6190
6826
 
6191
- interface Props$F {
6827
+ interface Props$L {
6192
6828
  figureId: UID;
6193
6829
  definition: GaugeChartDefinition;
6194
6830
  canUpdateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
6195
6831
  updateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
6196
6832
  }
6197
- declare class GaugeChartConfigPanel extends Component<Props$F, SpreadsheetChildEnv> {
6833
+ declare class GaugeChartConfigPanel extends Component<Props$L, SpreadsheetChildEnv> {
6198
6834
  static template: string;
6199
6835
  static components: {
6200
6836
  ChartErrorSection: typeof ChartErrorSection;
@@ -6215,13 +6851,13 @@ declare class GaugeChartConfigPanel extends Component<Props$F, SpreadsheetChildE
6215
6851
  getDataRange(): string;
6216
6852
  }
6217
6853
 
6218
- interface Props$E {
6854
+ interface Props$K {
6219
6855
  figureId: UID;
6220
6856
  definition: GaugeChartDefinition;
6221
6857
  canUpdateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
6222
6858
  updateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
6223
6859
  }
6224
- declare class GaugeChartDesignPanel extends Component<Props$E, SpreadsheetChildEnv> {
6860
+ declare class GaugeChartDesignPanel extends Component<Props$K, SpreadsheetChildEnv> {
6225
6861
  static template: string;
6226
6862
  static components: {
6227
6863
  ChartErrorSection: typeof ChartErrorSection;
@@ -6267,13 +6903,13 @@ declare class LineConfigPanel extends GenericChartConfigPanel {
6267
6903
  onUpdateCumulative(cumulative: boolean): void;
6268
6904
  }
6269
6905
 
6270
- interface Props$D {
6906
+ interface Props$J {
6271
6907
  figureId: UID;
6272
6908
  definition: ScorecardChartDefinition;
6273
6909
  canUpdateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
6274
6910
  updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
6275
6911
  }
6276
- declare class ScorecardChartConfigPanel extends Component<Props$D, SpreadsheetChildEnv> {
6912
+ declare class ScorecardChartConfigPanel extends Component<Props$J, SpreadsheetChildEnv> {
6277
6913
  static template: string;
6278
6914
  static components: {
6279
6915
  SelectionInput: typeof SelectionInput;
@@ -6302,122 +6938,41 @@ declare class ScorecardChartConfigPanel extends Component<Props$D, SpreadsheetCh
6302
6938
  }
6303
6939
 
6304
6940
  type ColorPickerId = undefined | "backgroundColor" | "baselineColorUp" | "baselineColorDown";
6305
- interface Props$C {
6941
+ interface Props$I {
6306
6942
  figureId: UID;
6307
6943
  definition: ScorecardChartDefinition;
6308
6944
  canUpdateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
6309
6945
  updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
6310
6946
  }
6311
- declare class ScorecardChartDesignPanel extends Component<Props$C, SpreadsheetChildEnv> {
6947
+ declare class ScorecardChartDesignPanel extends Component<Props$I, SpreadsheetChildEnv> {
6312
6948
  static template: string;
6313
6949
  static components: {
6314
6950
  RoundColorPicker: typeof RoundColorPicker;
6315
- ChartTitle: typeof ChartTitle;
6316
- Section: typeof Section;
6317
- Checkbox: typeof Checkbox;
6318
- };
6319
- static props: {
6320
- figureId: StringConstructor;
6321
- definition: ObjectConstructor;
6322
- updateChart: FunctionConstructor;
6323
- canUpdateChart: FunctionConstructor;
6324
- };
6325
- get title(): string;
6326
- get colorsSectionTitle(): string;
6327
- get humanizeNumbersLabel(): string;
6328
- updateTitle(title: string): void;
6329
- updateHumanizeNumbers(humanize: boolean): void;
6330
- translate(term: any): string;
6331
- updateBaselineDescr(ev: any): void;
6332
- setColor(color: Color, colorPickerId: ColorPickerId): void;
6333
- get backgroundColorTitle(): string;
6334
- }
6335
-
6336
- interface ChartSidePanel {
6337
- configuration: new (...args: any) => Component;
6338
- design: new (...args: any) => Component;
6339
- }
6340
-
6341
- interface ActionSpec {
6342
- /**
6343
- * String or a function to compute the name
6344
- */
6345
- name: string | ((env: SpreadsheetChildEnv) => string);
6346
- description?: string | ((env: SpreadsheetChildEnv) => string);
6347
- /**
6348
- * which represents its position inside the
6349
- * menus (the lower sequence it has, the upper it is in the menu)
6350
- */
6351
- sequence?: number;
6352
- /**
6353
- * used for example to add child
6354
- */
6355
- id?: string;
6356
- /**
6357
- * Can be defined to compute the visibility of the item
6358
- */
6359
- isVisible?: (env: SpreadsheetChildEnv) => boolean;
6360
- /**
6361
- * Can be defined to compute if the user can click on the action
6362
- */
6363
- isEnabled?: (env: SpreadsheetChildEnv) => boolean;
6364
- /**
6365
- * Can be defined to compute if the action is active
6366
- */
6367
- isActive?: (env: SpreadsheetChildEnv) => boolean;
6368
- /**
6369
- * Can be defined to display an icon
6370
- */
6371
- icon?: string | ((env: SpreadsheetChildEnv) => string);
6372
- /**
6373
- * Can be defined to display another icon on the right of the item.
6374
- */
6375
- secondaryIcon?: string | ((env: SpreadsheetChildEnv) => string);
6376
- /**
6377
- * is the action allowed when running spreadsheet in readonly mode
6378
- */
6379
- isReadonlyAllowed?: boolean;
6380
- /**
6381
- * Execute the action. The action can return a result.
6382
- * The result will be carried by a `menu-clicked` event to the menu parent component.
6383
- */
6384
- execute?: (env: SpreadsheetChildEnv) => unknown;
6385
- /**
6386
- * subitems associated to this item
6387
- * NB: an action without an execute function or children is not displayed !
6388
- */
6389
- children?: ActionChildren;
6390
- /**
6391
- * whether it should add a separator below the item in menus
6392
- * NB: a separator defined on the last item is not displayed !
6393
- */
6394
- separator?: boolean;
6395
- textColor?: Color;
6396
- onStartHover?: (env: SpreadsheetChildEnv) => void;
6397
- onStopHover?: (env: SpreadsheetChildEnv) => void;
6951
+ ChartTitle: typeof ChartTitle;
6952
+ Section: typeof Section;
6953
+ Checkbox: typeof Checkbox;
6954
+ };
6955
+ static props: {
6956
+ figureId: StringConstructor;
6957
+ definition: ObjectConstructor;
6958
+ updateChart: FunctionConstructor;
6959
+ canUpdateChart: FunctionConstructor;
6960
+ };
6961
+ get title(): string;
6962
+ get colorsSectionTitle(): string;
6963
+ get humanizeNumbersLabel(): string;
6964
+ updateTitle(title: string): void;
6965
+ updateHumanizeNumbers(humanize: boolean): void;
6966
+ translate(term: any): string;
6967
+ updateBaselineDescr(ev: any): void;
6968
+ setColor(color: Color, colorPickerId: ColorPickerId): void;
6969
+ get backgroundColorTitle(): string;
6398
6970
  }
6399
- interface Action {
6400
- name: (env: SpreadsheetChildEnv) => string;
6401
- description: (env: SpreadsheetChildEnv) => string;
6402
- sequence: number;
6403
- id: string;
6404
- isVisible: (env: SpreadsheetChildEnv) => boolean;
6405
- isEnabled: (env: SpreadsheetChildEnv) => boolean;
6406
- isActive?: (env: SpreadsheetChildEnv) => boolean;
6407
- icon: (env: SpreadsheetChildEnv) => string;
6408
- secondaryIcon: (env: SpreadsheetChildEnv) => string;
6409
- isReadonlyAllowed: boolean;
6410
- execute?: (env: SpreadsheetChildEnv) => unknown;
6411
- children: (env: SpreadsheetChildEnv) => Action[];
6412
- separator: boolean;
6413
- textColor?: Color;
6414
- onStartHover?: (env: SpreadsheetChildEnv) => void;
6415
- onStopHover?: (env: SpreadsheetChildEnv) => void;
6971
+
6972
+ interface ChartSidePanel {
6973
+ configuration: new (...args: any) => Component;
6974
+ design: new (...args: any) => Component;
6416
6975
  }
6417
- type ActionBuilder = (env: SpreadsheetChildEnv) => ActionSpec[];
6418
- type ActionChildren = (ActionSpec | ActionBuilder)[];
6419
- declare function createActions(menuItems: ActionSpec[]): Action[];
6420
- declare function createAction(item: ActionSpec): Action;
6421
6976
 
6422
6977
  /**
6423
6978
  * This registry is intended to map a type of figure (tag) to a class of
@@ -6540,13 +7095,13 @@ interface EnrichedToken extends Token {
6540
7095
  functionContext?: FunctionContext;
6541
7096
  }
6542
7097
 
6543
- interface Props$B {
7098
+ interface Props$H {
6544
7099
  proposals: AutoCompleteProposal[];
6545
7100
  selectedIndex: number | undefined;
6546
7101
  onValueSelected: (value: string) => void;
6547
7102
  onValueHovered: (index: string) => void;
6548
7103
  }
6549
- declare class TextValueProvider extends Component<Props$B> {
7104
+ declare class TextValueProvider extends Component<Props$H> {
6550
7105
  static template: string;
6551
7106
  static props: {
6552
7107
  proposals: ArrayConstructor;
@@ -6747,7 +7302,7 @@ declare class ContentEditableHelper {
6747
7302
  getText(): string;
6748
7303
  }
6749
7304
 
6750
- interface Props$A {
7305
+ interface Props$G {
6751
7306
  functionName: string;
6752
7307
  functionDescription: FunctionDescription;
6753
7308
  argToFocus: number;
@@ -6755,7 +7310,7 @@ interface Props$A {
6755
7310
  interface AssistantState {
6756
7311
  allowCellSelectionBehind: boolean;
6757
7312
  }
6758
- declare class FunctionDescriptionProvider extends Component<Props$A, SpreadsheetChildEnv> {
7313
+ declare class FunctionDescriptionProvider extends Component<Props$G, SpreadsheetChildEnv> {
6759
7314
  static template: string;
6760
7315
  static props: {
6761
7316
  functionName: StringConstructor;
@@ -6765,7 +7320,7 @@ declare class FunctionDescriptionProvider extends Component<Props$A, Spreadsheet
6765
7320
  assistantState: AssistantState;
6766
7321
  private timeOutId;
6767
7322
  setup(): void;
6768
- getContext(): Props$A;
7323
+ getContext(): Props$G;
6769
7324
  onMouseMove(): void;
6770
7325
  get formulaArgSeparator(): string;
6771
7326
  }
@@ -6961,10 +7516,10 @@ interface AutoCompleteProviderDefinition {
6961
7516
 
6962
7517
  declare function transformRangeData(range: RangeData, executed: CoreCommand): RangeData | undefined;
6963
7518
 
6964
- interface Props$z {
7519
+ interface Props$F {
6965
7520
  figure: Figure;
6966
7521
  }
6967
- declare class ChartJsComponent extends Component<Props$z, SpreadsheetChildEnv> {
7522
+ declare class ChartJsComponent extends Component<Props$F, SpreadsheetChildEnv> {
6968
7523
  static template: string;
6969
7524
  static props: {
6970
7525
  figure: ObjectConstructor;
@@ -6979,10 +7534,10 @@ declare class ChartJsComponent extends Component<Props$z, SpreadsheetChildEnv> {
6979
7534
  private updateChartJs;
6980
7535
  }
6981
7536
 
6982
- interface Props$y {
7537
+ interface Props$E {
6983
7538
  figure: Figure;
6984
7539
  }
6985
- declare class ScorecardChart extends Component<Props$y, SpreadsheetChildEnv> {
7540
+ declare class ScorecardChart extends Component<Props$E, SpreadsheetChildEnv> {
6986
7541
  static template: string;
6987
7542
  static props: {
6988
7543
  figure: ObjectConstructor;
@@ -6994,7 +7549,7 @@ declare class ScorecardChart extends Component<Props$y, SpreadsheetChildEnv> {
6994
7549
  }
6995
7550
 
6996
7551
  type MenuItemOrSeparator = Action | "separator";
6997
- interface Props$x {
7552
+ interface Props$D {
6998
7553
  position: DOMCoordinates;
6999
7554
  menuItems: Action[];
7000
7555
  depth: number;
@@ -7012,7 +7567,7 @@ interface MenuState {
7012
7567
  menuItems: Action[];
7013
7568
  isHoveringChild?: boolean;
7014
7569
  }
7015
- declare class Menu extends Component<Props$x, SpreadsheetChildEnv> {
7570
+ declare class Menu extends Component<Props$D, SpreadsheetChildEnv> {
7016
7571
  static template: string;
7017
7572
  static props: {
7018
7573
  position: ObjectConstructor;
@@ -7082,14 +7637,14 @@ declare class Menu extends Component<Props$x, SpreadsheetChildEnv> {
7082
7637
  }
7083
7638
 
7084
7639
  type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right" | "bottom" | "bottom left" | "left";
7085
- interface Props$w {
7640
+ interface Props$C {
7086
7641
  figure: Figure;
7087
7642
  style: string;
7088
7643
  onFigureDeleted: () => void;
7089
7644
  onMouseDown: (ev: MouseEvent) => void;
7090
7645
  onClickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
7091
7646
  }
7092
- declare class FigureComponent extends Component<Props$w, SpreadsheetChildEnv> {
7647
+ declare class FigureComponent extends Component<Props$C, SpreadsheetChildEnv> {
7093
7648
  static template: string;
7094
7649
  static props: {
7095
7650
  figure: ObjectConstructor;
@@ -7138,11 +7693,11 @@ declare class FigureComponent extends Component<Props$w, SpreadsheetChildEnv> {
7138
7693
  private openContextMenu;
7139
7694
  }
7140
7695
 
7141
- interface Props$v {
7696
+ interface Props$B {
7142
7697
  figure: Figure;
7143
7698
  onFigureDeleted: () => void;
7144
7699
  }
7145
- declare class ChartFigure extends Component<Props$v, SpreadsheetChildEnv> {
7700
+ declare class ChartFigure extends Component<Props$B, SpreadsheetChildEnv> {
7146
7701
  static template: string;
7147
7702
  static props: {
7148
7703
  figure: ObjectConstructor;
@@ -7154,7 +7709,7 @@ declare class ChartFigure extends Component<Props$v, SpreadsheetChildEnv> {
7154
7709
  get chartComponent(): new (...args: any) => Component;
7155
7710
  }
7156
7711
 
7157
- interface Props$u {
7712
+ interface Props$A {
7158
7713
  isVisible: boolean;
7159
7714
  position: Position;
7160
7715
  }
@@ -7162,17 +7717,17 @@ interface Position {
7162
7717
  top: HeaderIndex;
7163
7718
  left: HeaderIndex;
7164
7719
  }
7165
- interface State$7 {
7720
+ interface State$8 {
7166
7721
  position: Position;
7167
7722
  handler: boolean;
7168
7723
  }
7169
- declare class Autofill extends Component<Props$u, SpreadsheetChildEnv> {
7724
+ declare class Autofill extends Component<Props$A, SpreadsheetChildEnv> {
7170
7725
  static template: string;
7171
7726
  static props: {
7172
7727
  position: ObjectConstructor;
7173
7728
  isVisible: BooleanConstructor;
7174
7729
  };
7175
- state: State$7;
7730
+ state: State$8;
7176
7731
  get style(): string;
7177
7732
  get handlerStyle(): string;
7178
7733
  get styleNextValue(): string;
@@ -7200,7 +7755,7 @@ declare class ClientTag extends Component<ClientTagProps, SpreadsheetChildEnv> {
7200
7755
  get tagStyle(): string;
7201
7756
  }
7202
7757
 
7203
- interface Props$t {
7758
+ interface Props$z {
7204
7759
  gridDims: DOMDimension;
7205
7760
  onInputContextMenu: (event: MouseEvent) => void;
7206
7761
  }
@@ -7208,7 +7763,7 @@ interface Props$t {
7208
7763
  * This component is a composer which positions itself on the grid at the anchor cell.
7209
7764
  * It also applies the style of the cell to the composer input.
7210
7765
  */
7211
- declare class GridComposer extends Component<Props$t, SpreadsheetChildEnv> {
7766
+ declare class GridComposer extends Component<Props$z, SpreadsheetChildEnv> {
7212
7767
  static template: string;
7213
7768
  static props: {
7214
7769
  gridDims: ObjectConstructor;
@@ -7265,10 +7820,10 @@ declare class GridCellIcon extends Component<GridCellIconProps, SpreadsheetChild
7265
7820
  isPositionVisible(position: CellPosition): boolean;
7266
7821
  }
7267
7822
 
7268
- interface Props$s {
7823
+ interface Props$y {
7269
7824
  cellPosition: CellPosition;
7270
7825
  }
7271
- declare class DataValidationCheckbox extends Component<Props$s, SpreadsheetChildEnv> {
7826
+ declare class DataValidationCheckbox extends Component<Props$y, SpreadsheetChildEnv> {
7272
7827
  static template: string;
7273
7828
  static props: {
7274
7829
  cellPosition: ObjectConstructor;
@@ -7278,10 +7833,10 @@ declare class DataValidationCheckbox extends Component<Props$s, SpreadsheetChild
7278
7833
  get isDisabled(): boolean;
7279
7834
  }
7280
7835
 
7281
- interface Props$r {
7836
+ interface Props$x {
7282
7837
  cellPosition: CellPosition;
7283
7838
  }
7284
- declare class DataValidationListIcon extends Component<Props$r, SpreadsheetChildEnv> {
7839
+ declare class DataValidationListIcon extends Component<Props$x, SpreadsheetChildEnv> {
7285
7840
  static template: string;
7286
7841
  static props: {
7287
7842
  cellPosition: ObjectConstructor;
@@ -7311,7 +7866,7 @@ interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
7311
7866
  }
7312
7867
 
7313
7868
  type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
7314
- interface Props$q {
7869
+ interface Props$w {
7315
7870
  onFigureDeleted: () => void;
7316
7871
  }
7317
7872
  interface Container {
@@ -7390,7 +7945,7 @@ interface DndState {
7390
7945
  * that occurred during the drag & drop, and to position the figure on the correct pane.
7391
7946
  *
7392
7947
  */
7393
- declare class FiguresContainer extends Component<Props$q, SpreadsheetChildEnv> {
7948
+ declare class FiguresContainer extends Component<Props$w, SpreadsheetChildEnv> {
7394
7949
  static template: string;
7395
7950
  static props: {
7396
7951
  onFigureDeleted: FunctionConstructor;
@@ -7446,10 +8001,10 @@ declare class CellPopoverStore extends SpreadsheetStore {
7446
8001
  private computePopoverAnchorRect;
7447
8002
  }
7448
8003
 
7449
- interface Props$p {
8004
+ interface Props$v {
7450
8005
  cellPosition: CellPosition;
7451
8006
  }
7452
- declare class FilterIcon extends Component<Props$p, SpreadsheetChildEnv> {
8007
+ declare class FilterIcon extends Component<Props$v, SpreadsheetChildEnv> {
7453
8008
  static template: string;
7454
8009
  static props: {
7455
8010
  cellPosition: ObjectConstructor;
@@ -7461,10 +8016,10 @@ declare class FilterIcon extends Component<Props$p, SpreadsheetChildEnv> {
7461
8016
  get iconClass(): string;
7462
8017
  }
7463
8018
 
7464
- interface Props$o {
8019
+ interface Props$u {
7465
8020
  onMouseDown: (ev: MouseEvent) => void;
7466
8021
  }
7467
- declare class FilterIconsOverlay extends Component<Props$o, SpreadsheetChildEnv> {
8022
+ declare class FilterIconsOverlay extends Component<Props$u, SpreadsheetChildEnv> {
7468
8023
  static template: string;
7469
8024
  static props: {
7470
8025
  onMouseDown: FunctionConstructor;
@@ -7476,10 +8031,10 @@ declare class FilterIconsOverlay extends Component<Props$o, SpreadsheetChildEnv>
7476
8031
  getFilterHeadersPositions(): CellPosition[];
7477
8032
  }
7478
8033
 
7479
- interface Props$n {
8034
+ interface Props$t {
7480
8035
  focusGrid: () => void;
7481
8036
  }
7482
- declare class GridAddRowsFooter extends Component<Props$n, SpreadsheetChildEnv> {
8037
+ declare class GridAddRowsFooter extends Component<Props$t, SpreadsheetChildEnv> {
7483
8038
  static template: string;
7484
8039
  static props: {
7485
8040
  focusGrid: FunctionConstructor;
@@ -7503,7 +8058,7 @@ declare class GridAddRowsFooter extends Component<Props$n, SpreadsheetChildEnv>
7503
8058
  private onExternalClick;
7504
8059
  }
7505
8060
 
7506
- interface Props$m {
8061
+ interface Props$s {
7507
8062
  onCellHovered: (position: Partial<Position$1>) => void;
7508
8063
  onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
7509
8064
  onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers) => void;
@@ -7513,7 +8068,7 @@ interface Props$m {
7513
8068
  gridOverlayDimensions: string;
7514
8069
  onFigureDeleted: () => void;
7515
8070
  }
7516
- declare class GridOverlay extends Component<Props$m, SpreadsheetChildEnv> {
8071
+ declare class GridOverlay extends Component<Props$s, SpreadsheetChildEnv> {
7517
8072
  static template: string;
7518
8073
  static props: {
7519
8074
  onCellHovered: {
@@ -7571,12 +8126,12 @@ declare class GridOverlay extends Component<Props$m, SpreadsheetChildEnv> {
7571
8126
  private getCartesianCoordinates;
7572
8127
  }
7573
8128
 
7574
- interface Props$l {
8129
+ interface Props$r {
7575
8130
  gridRect: Rect;
7576
8131
  onClosePopover: () => void;
7577
8132
  onMouseWheel: (ev: WheelEvent) => void;
7578
8133
  }
7579
- declare class GridPopover extends Component<Props$l, SpreadsheetChildEnv> {
8134
+ declare class GridPopover extends Component<Props$r, SpreadsheetChildEnv> {
7580
8135
  static template: string;
7581
8136
  static props: {
7582
8137
  onClosePopover: FunctionConstructor;
@@ -7719,13 +8274,13 @@ declare class HeadersOverlay extends Component<any, SpreadsheetChildEnv> {
7719
8274
  }
7720
8275
 
7721
8276
  type Orientation$1 = "n" | "s" | "w" | "e";
7722
- interface Props$k {
8277
+ interface Props$q {
7723
8278
  zone: Zone;
7724
8279
  orientation: Orientation$1;
7725
8280
  isMoving: boolean;
7726
8281
  onMoveHighlight: (x: Pixel, y: Pixel) => void;
7727
8282
  }
7728
- declare class Border extends Component<Props$k, SpreadsheetChildEnv> {
8283
+ declare class Border extends Component<Props$q, SpreadsheetChildEnv> {
7729
8284
  static template: string;
7730
8285
  static props: {
7731
8286
  zone: ObjectConstructor;
@@ -7738,14 +8293,14 @@ declare class Border extends Component<Props$k, SpreadsheetChildEnv> {
7738
8293
  }
7739
8294
 
7740
8295
  type Orientation = "nw" | "ne" | "sw" | "se";
7741
- interface Props$j {
8296
+ interface Props$p {
7742
8297
  zone: Zone;
7743
8298
  color: Color;
7744
8299
  orientation: Orientation;
7745
8300
  isResizing: boolean;
7746
8301
  onResizeHighlight: (isLeft: boolean, isRight: boolean) => void;
7747
8302
  }
7748
- declare class Corner extends Component<Props$j, SpreadsheetChildEnv> {
8303
+ declare class Corner extends Component<Props$p, SpreadsheetChildEnv> {
7749
8304
  static template: string;
7750
8305
  static props: {
7751
8306
  zone: ObjectConstructor;
@@ -7760,14 +8315,14 @@ declare class Corner extends Component<Props$j, SpreadsheetChildEnv> {
7760
8315
  onMouseDown(ev: MouseEvent): void;
7761
8316
  }
7762
8317
 
7763
- interface Props$i {
8318
+ interface Props$o {
7764
8319
  zone: Zone;
7765
8320
  color: Color;
7766
8321
  }
7767
8322
  interface HighlightState {
7768
8323
  shiftingMode: "isMoving" | "isResizing" | "none";
7769
8324
  }
7770
- declare class Highlight extends Component<Props$i, SpreadsheetChildEnv> {
8325
+ declare class Highlight extends Component<Props$o, SpreadsheetChildEnv> {
7771
8326
  static template: string;
7772
8327
  static props: {
7773
8328
  zone: ObjectConstructor;
@@ -7784,7 +8339,7 @@ declare class Highlight extends Component<Props$i, SpreadsheetChildEnv> {
7784
8339
 
7785
8340
  type ScrollDirection = "horizontal" | "vertical";
7786
8341
 
7787
- interface Props$h {
8342
+ interface Props$n {
7788
8343
  width: Pixel;
7789
8344
  height: Pixel;
7790
8345
  direction: ScrollDirection;
@@ -7792,7 +8347,7 @@ interface Props$h {
7792
8347
  offset: Pixel;
7793
8348
  onScroll: (offset: Pixel) => void;
7794
8349
  }
7795
- declare class ScrollBar extends Component<Props$h> {
8350
+ declare class ScrollBar extends Component<Props$n> {
7796
8351
  static props: {
7797
8352
  width: {
7798
8353
  type: NumberConstructor;
@@ -7820,10 +8375,10 @@ declare class ScrollBar extends Component<Props$h> {
7820
8375
  onScroll(ev: any): void;
7821
8376
  }
7822
8377
 
7823
- interface Props$g {
8378
+ interface Props$m {
7824
8379
  leftOffset: number;
7825
8380
  }
7826
- declare class HorizontalScrollBar extends Component<Props$g, SpreadsheetChildEnv> {
8381
+ declare class HorizontalScrollBar extends Component<Props$m, SpreadsheetChildEnv> {
7827
8382
  static props: {
7828
8383
  leftOffset: {
7829
8384
  type: NumberConstructor;
@@ -7849,10 +8404,10 @@ declare class HorizontalScrollBar extends Component<Props$g, SpreadsheetChildEnv
7849
8404
  onScroll(offset: any): void;
7850
8405
  }
7851
8406
 
7852
- interface Props$f {
8407
+ interface Props$l {
7853
8408
  topOffset: number;
7854
8409
  }
7855
- declare class VerticalScrollBar extends Component<Props$f, SpreadsheetChildEnv> {
8410
+ declare class VerticalScrollBar extends Component<Props$l, SpreadsheetChildEnv> {
7856
8411
  static props: {
7857
8412
  topOffset: {
7858
8413
  type: NumberConstructor;
@@ -7878,18 +8433,18 @@ declare class VerticalScrollBar extends Component<Props$f, SpreadsheetChildEnv>
7878
8433
  onScroll(offset: any): void;
7879
8434
  }
7880
8435
 
7881
- interface Props$e {
8436
+ interface Props$k {
7882
8437
  table: Table;
7883
8438
  }
7884
- interface State$6 {
8439
+ interface State$7 {
7885
8440
  highlightZone: Zone | undefined;
7886
8441
  }
7887
- declare class TableResizer extends Component<Props$e, SpreadsheetChildEnv> {
8442
+ declare class TableResizer extends Component<Props$k, SpreadsheetChildEnv> {
7888
8443
  static template: string;
7889
8444
  static props: {
7890
8445
  table: ObjectConstructor;
7891
8446
  };
7892
- state: State$6;
8447
+ state: State$7;
7893
8448
  setup(): void;
7894
8449
  get containerStyle(): string;
7895
8450
  onMouseDown(ev: MouseEvent): void;
@@ -7915,10 +8470,10 @@ declare class HoveredCellStore extends SpreadsheetStore {
7915
8470
  * - a vertical resizer (same, for rows)
7916
8471
  */
7917
8472
  type ContextMenuType = "ROW" | "COL" | "CELL" | "FILTER" | "GROUP_HEADERS" | "UNGROUP_HEADERS";
7918
- interface Props$d {
8473
+ interface Props$j {
7919
8474
  exposeFocus: (focus: () => void) => void;
7920
8475
  }
7921
- declare class Grid extends Component<Props$d, SpreadsheetChildEnv> {
8476
+ declare class Grid extends Component<Props$j, SpreadsheetChildEnv> {
7922
8477
  static template: string;
7923
8478
  static props: {
7924
8479
  exposeFocus: FunctionConstructor;
@@ -8008,13 +8563,13 @@ interface DndPartialArgs {
8008
8563
  onCancel?: () => void;
8009
8564
  onDragEnd?: (itemId: UID, indexAtEnd: Pixel) => void;
8010
8565
  }
8011
- interface State$5 {
8566
+ interface State$6 {
8012
8567
  itemsStyle: Record<UID, string>;
8013
8568
  draggedItemId: UID | undefined;
8014
8569
  start: (direction: Direction, args: DndPartialArgs) => void;
8015
8570
  cancel: () => void;
8016
8571
  }
8017
- declare function useDragAndDropListItems(): State$5;
8572
+ declare function useDragAndDropListItems(): State$6;
8018
8573
 
8019
8574
  declare function useHighlightsOnHover(ref: Ref<HTMLElement>, highlightProvider: HighlightProvider): void;
8020
8575
  declare function useHighlights(highlightProvider: HighlightProvider): void;
@@ -8024,11 +8579,11 @@ declare class MainChartPanelStore extends SpreadsheetStore {
8024
8579
  activatePanel(panel: "configuration" | "design"): void;
8025
8580
  }
8026
8581
 
8027
- interface Props$c {
8582
+ interface Props$i {
8028
8583
  onCloseSidePanel: () => void;
8029
8584
  figureId: UID;
8030
8585
  }
8031
- declare class ChartPanel extends Component<Props$c, SpreadsheetChildEnv> {
8586
+ declare class ChartPanel extends Component<Props$i, SpreadsheetChildEnv> {
8032
8587
  static template: string;
8033
8588
  static components: {
8034
8589
  Section: typeof Section;
@@ -8048,65 +8603,289 @@ declare class ChartPanel extends Component<Props$c, SpreadsheetChildEnv> {
8048
8603
  get chartTypes(): Record<string, string>;
8049
8604
  }
8050
8605
 
8051
- declare class FindAndReplaceStore extends SpreadsheetStore implements HighlightProvider {
8052
- private allSheetsMatches;
8053
- private activeSheetMatches;
8054
- private specificRangeMatches;
8055
- private currentSearchRegex;
8056
- private isSearchDirty;
8057
- private initialShowFormulaState;
8058
- selectedMatchIndex: number | null;
8059
- toSearch: string;
8060
- toReplace: string;
8061
- searchOptions: SearchOptions;
8062
- updateSearchContent: DebouncedFunction<(toSearch: string) => void>;
8063
- constructor(get: Get);
8064
- get searchMatches(): CellPosition[];
8065
- private _updateSearchContent;
8066
- updateSearchOptions(searchOptions: Partial<SearchOptions>): void;
8067
- searchFormulas(showFormula: boolean): void;
8068
- selectPreviousMatch(): void;
8069
- selectNextMatch(): void;
8070
- get pendingSearch(): boolean;
8071
- handle(cmd: Command): void;
8072
- finalize(): void;
8073
- get allSheetMatchesCount(): number;
8074
- get activeSheetMatchesCount(): number;
8075
- get specificRangeMatchesCount(): number;
8076
- /**
8077
- * Will update the current searchOptions and accordingly update the regex.
8078
- * It will then search for matches using the regex and store them.
8079
- */
8080
- private _updateSearch;
8081
- /**
8082
- * refresh the matches according to the current search options
8083
- */
8084
- private refreshSearch;
8085
- private getSheetsInSearchOrder;
8086
- /**
8087
- * Find matches using the current regex
8088
- */
8089
- private findMatches;
8090
- private findMatchesInSheet;
8091
- /**
8092
- * Changes the selected search cell. Given a direction it will
8093
- * Change the selection to the previous, current or nextCell,
8094
- * if it exists otherwise it will set the selectedMatchIndex to null.
8095
- * It will also reset the index to 0 if the search has changed.
8096
- * It is also used to keep coherence between the selected searchMatch
8097
- * and selectedMatchIndex.
8098
- */
8099
- private selectNextCell;
8100
- /**
8101
- * Replace the value of the currently selected match
8102
- */
8103
- replace(): void;
8104
- /**
8105
- * Apply the replace function to all the matches one time.
8106
- */
8107
- replaceAll(): void;
8108
- private getSearchableString;
8109
- get highlights(): Highlight$1[];
8606
+ declare class FindAndReplaceStore extends SpreadsheetStore implements HighlightProvider {
8607
+ private allSheetsMatches;
8608
+ private activeSheetMatches;
8609
+ private specificRangeMatches;
8610
+ private currentSearchRegex;
8611
+ private isSearchDirty;
8612
+ private initialShowFormulaState;
8613
+ selectedMatchIndex: number | null;
8614
+ toSearch: string;
8615
+ toReplace: string;
8616
+ searchOptions: SearchOptions;
8617
+ updateSearchContent: DebouncedFunction<(toSearch: string) => void>;
8618
+ constructor(get: Get);
8619
+ get searchMatches(): CellPosition[];
8620
+ private _updateSearchContent;
8621
+ updateSearchOptions(searchOptions: Partial<SearchOptions>): void;
8622
+ searchFormulas(showFormula: boolean): void;
8623
+ selectPreviousMatch(): void;
8624
+ selectNextMatch(): void;
8625
+ get pendingSearch(): boolean;
8626
+ handle(cmd: Command): void;
8627
+ finalize(): void;
8628
+ get allSheetMatchesCount(): number;
8629
+ get activeSheetMatchesCount(): number;
8630
+ get specificRangeMatchesCount(): number;
8631
+ /**
8632
+ * Will update the current searchOptions and accordingly update the regex.
8633
+ * It will then search for matches using the regex and store them.
8634
+ */
8635
+ private _updateSearch;
8636
+ /**
8637
+ * refresh the matches according to the current search options
8638
+ */
8639
+ private refreshSearch;
8640
+ private getSheetsInSearchOrder;
8641
+ /**
8642
+ * Find matches using the current regex
8643
+ */
8644
+ private findMatches;
8645
+ private findMatchesInSheet;
8646
+ /**
8647
+ * Changes the selected search cell. Given a direction it will
8648
+ * Change the selection to the previous, current or nextCell,
8649
+ * if it exists otherwise it will set the selectedMatchIndex to null.
8650
+ * It will also reset the index to 0 if the search has changed.
8651
+ * It is also used to keep coherence between the selected searchMatch
8652
+ * and selectedMatchIndex.
8653
+ */
8654
+ private selectNextCell;
8655
+ /**
8656
+ * Replace the value of the currently selected match
8657
+ */
8658
+ replace(): void;
8659
+ /**
8660
+ * Apply the replace function to all the matches one time.
8661
+ */
8662
+ replaceAll(): void;
8663
+ private getSearchableString;
8664
+ get highlights(): Highlight$1[];
8665
+ }
8666
+
8667
+ declare class PivotPreview extends Component {
8668
+ static template: string;
8669
+ static props: {
8670
+ pivotId: StringConstructor;
8671
+ };
8672
+ setup(): void;
8673
+ selectPivot(): void;
8674
+ get highlights(): Highlight$1[];
8675
+ }
8676
+ declare class AllPivotsSidePanel extends Component {
8677
+ static template: string;
8678
+ static components: {
8679
+ PivotPreview: typeof PivotPreview;
8680
+ };
8681
+ static props: {
8682
+ onCloseSidePanel: FunctionConstructor;
8683
+ };
8684
+ }
8685
+
8686
+ /** @odoo-module */
8687
+
8688
+ interface Props$h {
8689
+ name: string;
8690
+ displayName: string;
8691
+ onChanged: (name: string) => void;
8692
+ }
8693
+ declare class EditableName extends Component<Props$h, SpreadsheetChildEnv> {
8694
+ static template: string;
8695
+ static props: {
8696
+ name: StringConstructor;
8697
+ displayName: StringConstructor;
8698
+ onChanged: FunctionConstructor;
8699
+ };
8700
+ private state;
8701
+ setup(): void;
8702
+ rename(): void;
8703
+ save(): void;
8704
+ }
8705
+
8706
+ interface Props$g {
8707
+ onFieldPicked: (field: string) => void;
8708
+ fields: PivotField[];
8709
+ }
8710
+ declare class AddDimensionButton extends Component<Props$g, SpreadsheetChildEnv> {
8711
+ static template: string;
8712
+ static components: {
8713
+ Popover: typeof Popover;
8714
+ };
8715
+ static props: {
8716
+ onFieldPicked: FunctionConstructor;
8717
+ fields: ArrayConstructor;
8718
+ };
8719
+ private buttonRef;
8720
+ private popover;
8721
+ private search;
8722
+ setup(): void;
8723
+ get filteredFields(): PivotField[];
8724
+ get popoverProps(): {
8725
+ anchorRect: DOMRect;
8726
+ positioning: string;
8727
+ };
8728
+ pickField(field: PivotField): void;
8729
+ togglePopover(): void;
8730
+ onKeyDown(ev: KeyboardEvent): void;
8731
+ }
8732
+
8733
+ interface Props$f {
8734
+ dimension: PivotDimension;
8735
+ onRemoved: (dimension: PivotDimension) => void;
8736
+ }
8737
+ declare class PivotDimension extends Component<Props$f, SpreadsheetChildEnv> {
8738
+ static template: string;
8739
+ static props: {
8740
+ dimension: ObjectConstructor;
8741
+ onRemoved: {
8742
+ type: FunctionConstructor;
8743
+ optional: boolean;
8744
+ };
8745
+ slots: {
8746
+ type: ObjectConstructor;
8747
+ optional: boolean;
8748
+ };
8749
+ };
8750
+ }
8751
+
8752
+ interface Props$e {
8753
+ dimension: PivotDimension$1;
8754
+ onUpdated: (dimension: PivotDimension$1, ev: InputEvent) => void;
8755
+ availableGranularities: Set<string>;
8756
+ }
8757
+ declare class PivotDimensionGranularity extends Component<Props$e, SpreadsheetChildEnv> {
8758
+ static template: string;
8759
+ static props: {
8760
+ dimension: ObjectConstructor;
8761
+ onUpdated: FunctionConstructor;
8762
+ availableGranularities: SetConstructor;
8763
+ };
8764
+ periods: {
8765
+ year: string;
8766
+ quarter: string;
8767
+ month: string;
8768
+ week: string;
8769
+ day: string;
8770
+ };
8771
+ allGranularities: string[];
8772
+ }
8773
+
8774
+ interface Props$d {
8775
+ dimension: PivotDimension$1;
8776
+ onUpdated: (dimension: PivotDimension$1, ev: InputEvent) => void;
8777
+ }
8778
+ declare class PivotDimensionOrder extends Component<Props$d, SpreadsheetChildEnv> {
8779
+ static template: string;
8780
+ static props: {
8781
+ dimension: ObjectConstructor;
8782
+ onUpdated: FunctionConstructor;
8783
+ };
8784
+ }
8785
+
8786
+ /**
8787
+ * Build a pivot formula expression
8788
+ */
8789
+ declare function makePivotFormula(formula: "PIVOT.VALUE" | "PIVOT.HEADER", args: (string | boolean | number)[]): string;
8790
+ /**
8791
+ * Given an object of form {"1": {...}, "2": {...}, ...} get the maximum ID used
8792
+ * in this object
8793
+ * If the object has no keys, return 0
8794
+ *
8795
+ */
8796
+ declare function getMaxObjectId(o: object): number;
8797
+ /**
8798
+ * Get the first Pivot function description of the given formula.
8799
+ */
8800
+ declare function getFirstPivotFunction(tokens: Token[]): {
8801
+ functionName: string;
8802
+ args: AST[];
8803
+ };
8804
+ /**
8805
+ * Parse a spreadsheet formula and detect the number of PIVOT functions that are
8806
+ * present in the given formula.
8807
+ */
8808
+ declare function getNumberOfPivotFunctions(tokens: Token[]): number;
8809
+ /**
8810
+ * Parse a dimension string into a pivot dimension definition.
8811
+ * e.g "create_date:month" => { name: "create_date", granularity: "month" }
8812
+ */
8813
+ declare function parseDimension(dimension: string): PivotCoreDimension;
8814
+ declare function isDateField(field: PivotField): boolean;
8815
+ /**
8816
+ * Create a proposal entry for the compose autocomplete
8817
+ * to insert a field name string in a formula.
8818
+ */
8819
+ declare function makeFieldProposal(field: PivotField): {
8820
+ text: string;
8821
+ description: string;
8822
+ htmlContent: {
8823
+ value: string;
8824
+ color: "#00a82d";
8825
+ }[];
8826
+ fuzzySearchKey: string;
8827
+ };
8828
+ /**
8829
+ * Perform the autocomplete of the composer by inserting the value
8830
+ * at the cursor position, replacing the current token if necessary.
8831
+ * Must be bound to the autocomplete provider.
8832
+ */
8833
+ declare function insertTokenAfterArgSeparator(this: {
8834
+ composer: ComposerStore;
8835
+ }, tokenAtCursor: EnrichedToken, value: string): void;
8836
+ /**
8837
+ * Perform the autocomplete of the composer by inserting the value
8838
+ * at the cursor position, replacing the current token if necessary.
8839
+ * Must be bound to the autocomplete provider.
8840
+ * @param {EnrichedToken} tokenAtCursor
8841
+ * @param {string} value
8842
+ */
8843
+ declare function insertTokenAfterLeftParenthesis(this: {
8844
+ composer: ComposerStore;
8845
+ }, tokenAtCursor: EnrichedToken, value: string): void;
8846
+
8847
+ interface Props$c {
8848
+ definition: PivotRuntimeDefinition;
8849
+ onDimensionsUpdated: (definition: Partial<PivotCoreDefinition>) => void;
8850
+ unusedGroupableFields: PivotField[];
8851
+ unusedMeasureFields: PivotField[];
8852
+ unusedDateTimeGranularities: Record<string, Set<string>>;
8853
+ }
8854
+ declare class PivotDimensions extends Component<Props$c, SpreadsheetChildEnv> {
8855
+ static template: string;
8856
+ static components: {
8857
+ AddDimensionButton: typeof AddDimensionButton;
8858
+ PivotDimension: typeof PivotDimension;
8859
+ PivotDimensionOrder: typeof PivotDimensionOrder;
8860
+ PivotDimensionGranularity: typeof PivotDimensionGranularity;
8861
+ };
8862
+ static props: {
8863
+ definition: ObjectConstructor;
8864
+ onDimensionsUpdated: FunctionConstructor;
8865
+ unusedGroupableFields: ArrayConstructor;
8866
+ unusedMeasureFields: ArrayConstructor;
8867
+ unusedDateTimeGranularities: ObjectConstructor;
8868
+ };
8869
+ private dimensionsRef;
8870
+ private dragAndDrop;
8871
+ AGGREGATORS: {};
8872
+ isDateField: typeof isDateField;
8873
+ startDragAndDrop(dimension: PivotDimension$1, event: MouseEvent): void;
8874
+ startDragAndDropMeasures(measure: PivotMeasure, event: MouseEvent): void;
8875
+ getDimensionElementsRects(): {
8876
+ x: number;
8877
+ y: number;
8878
+ width: number;
8879
+ height: number;
8880
+ }[];
8881
+ removeDimension(dimension: PivotDimension$1): void;
8882
+ removeMeasureDimension(measure: PivotMeasure): void;
8883
+ addColumnDimension(fieldName: string): void;
8884
+ addRowDimension(fieldName: string): void;
8885
+ addMeasureDimension(fieldName: string): void;
8886
+ updateAggregator(updatedMeasure: PivotMeasure, aggregator: string): void;
8887
+ updateOrder(updateDimension: PivotDimension$1, order?: "asc" | "desc"): void;
8888
+ updateGranularity(dimension: PivotDimension$1, granularity: Granularity): void;
8110
8889
  }
8111
8890
 
8112
8891
  declare function isEvaluationError(error: Maybe<CellValue>): error is string;
@@ -8147,6 +8926,10 @@ declare function getDefaultChartJsRuntime(chart: AbstractChart, labels: string[]
8147
8926
  /** See https://www.chartjs.org/docs/latest/charts/area.html#filling-modes */
8148
8927
  declare function getFillingMode(index: number): "origin" | number;
8149
8928
 
8929
+ declare function getPivotHighlights(getters: Getters, pivotId: UID): Highlight$1[];
8930
+
8931
+ declare function pivotTimeAdapter(granularity: Granularity): PivotTimeAdapter<string | number | false>;
8932
+
8150
8933
  /**
8151
8934
  * This function tries to load anything that could look like a valid
8152
8935
  * workbookData object. It applies any migrations, if needed, and return a
@@ -8168,6 +8951,27 @@ interface NotificationStore {
8168
8951
  }
8169
8952
  declare const NotificationStore: StoreConstructor<NotificationStore, any[]>;
8170
8953
 
8954
+ declare class PivotSidePanelStore extends SpreadsheetStore {
8955
+ private pivotId;
8956
+ private updatesAreDeferred;
8957
+ private draft;
8958
+ constructor(get: Get, pivotId: UID);
8959
+ get fields(): PivotFields;
8960
+ get pivot(): Pivot<PivotRuntimeDefinition>;
8961
+ get definition(): PivotRuntimeDefinition;
8962
+ get isDirty(): boolean;
8963
+ get unusedMeasureFields(): PivotField[];
8964
+ get unusedGroupableFields(): PivotField[];
8965
+ get unusedDateTimeGranularities(): {};
8966
+ reset(pivotId: UID): void;
8967
+ deferUpdates(shouldDefer: boolean): void;
8968
+ applyUpdate(): void;
8969
+ discardPendingUpdate(): void;
8970
+ update(definitionUpdate: Partial<PivotCoreDefinition>): void;
8971
+ private addDefaultDateTimeGranularity;
8972
+ private getUnusedDateTimeGranularities;
8973
+ }
8974
+
8171
8975
  interface Renderer {
8172
8976
  drawLayer(ctx: GridRenderingContext, layer: LayerName): void;
8173
8977
  renderingLayers: Readonly<LayerName[]>;
@@ -8426,7 +9230,6 @@ interface ClickableCell {
8426
9230
  coordinates: Rect;
8427
9231
  position: Position$1;
8428
9232
  action: (position: CellPosition, env: SpreadsheetChildEnv) => void;
8429
- tKey: string;
8430
9233
  }
8431
9234
  declare class SpreadsheetDashboard extends Component<Props$8, SpreadsheetChildEnv> {
8432
9235
  static template: string;
@@ -8649,147 +9452,6 @@ declare namespace ACTION_EDIT {
8649
9452
  };
8650
9453
  }
8651
9454
 
8652
- declare const formatNumberAutomatic: ActionSpec;
8653
- declare const formatNumberPlainText: ActionSpec;
8654
- declare const formatNumberNumber: ActionSpec;
8655
- declare const formatPercent: ActionSpec;
8656
- declare const formatNumberPercent: ActionSpec;
8657
- declare const formatNumberCurrency: ActionSpec;
8658
- declare const formatNumberCurrencyRounded: ActionSpec;
8659
- declare const formatCustomCurrency: ActionSpec;
8660
- declare const formatNumberDate: ActionSpec;
8661
- declare const formatNumberTime: ActionSpec;
8662
- declare const formatNumberDateTime: ActionSpec;
8663
- declare const formatNumberDuration: ActionSpec;
8664
- declare const moreFormats: ActionSpec;
8665
- declare const formatNumberFullDateTime: ActionSpec;
8666
- declare const formatNumberFullWeekDayAndMonth: ActionSpec;
8667
- declare const formatNumberDayAndFullMonth: ActionSpec;
8668
- declare const formatNumberShortWeekDay: ActionSpec;
8669
- declare const formatNumberDayAndShortMonth: ActionSpec;
8670
- declare const formatNumberFullMonth: ActionSpec;
8671
- declare const formatNumberShortMonth: ActionSpec;
8672
- declare const incraseDecimalPlaces: ActionSpec;
8673
- declare const decraseDecimalPlaces: ActionSpec;
8674
- declare const formatBold: ActionSpec;
8675
- declare const formatItalic: ActionSpec;
8676
- declare const formatUnderline: ActionSpec;
8677
- declare const formatStrikethrough: ActionSpec;
8678
- declare const formatFontSize: ActionSpec;
8679
- declare const formatAlignment: ActionSpec;
8680
- declare const formatAlignmentHorizontal: ActionSpec;
8681
- declare const formatAlignmentLeft: ActionSpec;
8682
- declare const formatAlignmentCenter: ActionSpec;
8683
- declare const formatAlignmentRight: ActionSpec;
8684
- declare const formatAlignmentVertical: ActionSpec;
8685
- declare const formatAlignmentTop: ActionSpec;
8686
- declare const formatAlignmentMiddle: ActionSpec;
8687
- declare const formatAlignmentBottom: ActionSpec;
8688
- declare const formatWrappingIcon: ActionSpec;
8689
- declare const formatWrapping: ActionSpec;
8690
- declare const formatWrappingOverflow: ActionSpec;
8691
- declare const formatWrappingWrap: ActionSpec;
8692
- declare const formatWrappingClip: ActionSpec;
8693
- declare const textColor: ActionSpec;
8694
- declare const fillColor: ActionSpec;
8695
- declare const formatCF: ActionSpec;
8696
- declare const clearFormat: ActionSpec;
8697
-
8698
- declare const ACTION_FORMAT_clearFormat: typeof clearFormat;
8699
- declare const ACTION_FORMAT_decraseDecimalPlaces: typeof decraseDecimalPlaces;
8700
- declare const ACTION_FORMAT_fillColor: typeof fillColor;
8701
- declare const ACTION_FORMAT_formatAlignment: typeof formatAlignment;
8702
- declare const ACTION_FORMAT_formatAlignmentBottom: typeof formatAlignmentBottom;
8703
- declare const ACTION_FORMAT_formatAlignmentCenter: typeof formatAlignmentCenter;
8704
- declare const ACTION_FORMAT_formatAlignmentHorizontal: typeof formatAlignmentHorizontal;
8705
- declare const ACTION_FORMAT_formatAlignmentLeft: typeof formatAlignmentLeft;
8706
- declare const ACTION_FORMAT_formatAlignmentMiddle: typeof formatAlignmentMiddle;
8707
- declare const ACTION_FORMAT_formatAlignmentRight: typeof formatAlignmentRight;
8708
- declare const ACTION_FORMAT_formatAlignmentTop: typeof formatAlignmentTop;
8709
- declare const ACTION_FORMAT_formatAlignmentVertical: typeof formatAlignmentVertical;
8710
- declare const ACTION_FORMAT_formatBold: typeof formatBold;
8711
- declare const ACTION_FORMAT_formatCF: typeof formatCF;
8712
- declare const ACTION_FORMAT_formatCustomCurrency: typeof formatCustomCurrency;
8713
- declare const ACTION_FORMAT_formatFontSize: typeof formatFontSize;
8714
- declare const ACTION_FORMAT_formatItalic: typeof formatItalic;
8715
- declare const ACTION_FORMAT_formatNumberAutomatic: typeof formatNumberAutomatic;
8716
- declare const ACTION_FORMAT_formatNumberCurrency: typeof formatNumberCurrency;
8717
- declare const ACTION_FORMAT_formatNumberCurrencyRounded: typeof formatNumberCurrencyRounded;
8718
- declare const ACTION_FORMAT_formatNumberDate: typeof formatNumberDate;
8719
- declare const ACTION_FORMAT_formatNumberDateTime: typeof formatNumberDateTime;
8720
- declare const ACTION_FORMAT_formatNumberDayAndFullMonth: typeof formatNumberDayAndFullMonth;
8721
- declare const ACTION_FORMAT_formatNumberDayAndShortMonth: typeof formatNumberDayAndShortMonth;
8722
- declare const ACTION_FORMAT_formatNumberDuration: typeof formatNumberDuration;
8723
- declare const ACTION_FORMAT_formatNumberFullDateTime: typeof formatNumberFullDateTime;
8724
- declare const ACTION_FORMAT_formatNumberFullMonth: typeof formatNumberFullMonth;
8725
- declare const ACTION_FORMAT_formatNumberFullWeekDayAndMonth: typeof formatNumberFullWeekDayAndMonth;
8726
- declare const ACTION_FORMAT_formatNumberNumber: typeof formatNumberNumber;
8727
- declare const ACTION_FORMAT_formatNumberPercent: typeof formatNumberPercent;
8728
- declare const ACTION_FORMAT_formatNumberPlainText: typeof formatNumberPlainText;
8729
- declare const ACTION_FORMAT_formatNumberShortMonth: typeof formatNumberShortMonth;
8730
- declare const ACTION_FORMAT_formatNumberShortWeekDay: typeof formatNumberShortWeekDay;
8731
- declare const ACTION_FORMAT_formatNumberTime: typeof formatNumberTime;
8732
- declare const ACTION_FORMAT_formatPercent: typeof formatPercent;
8733
- declare const ACTION_FORMAT_formatStrikethrough: typeof formatStrikethrough;
8734
- declare const ACTION_FORMAT_formatUnderline: typeof formatUnderline;
8735
- declare const ACTION_FORMAT_formatWrapping: typeof formatWrapping;
8736
- declare const ACTION_FORMAT_formatWrappingClip: typeof formatWrappingClip;
8737
- declare const ACTION_FORMAT_formatWrappingIcon: typeof formatWrappingIcon;
8738
- declare const ACTION_FORMAT_formatWrappingOverflow: typeof formatWrappingOverflow;
8739
- declare const ACTION_FORMAT_formatWrappingWrap: typeof formatWrappingWrap;
8740
- declare const ACTION_FORMAT_incraseDecimalPlaces: typeof incraseDecimalPlaces;
8741
- declare const ACTION_FORMAT_moreFormats: typeof moreFormats;
8742
- declare const ACTION_FORMAT_textColor: typeof textColor;
8743
- declare namespace ACTION_FORMAT {
8744
- export {
8745
- ACTION_FORMAT_clearFormat as clearFormat,
8746
- ACTION_FORMAT_decraseDecimalPlaces as decraseDecimalPlaces,
8747
- ACTION_FORMAT_fillColor as fillColor,
8748
- ACTION_FORMAT_formatAlignment as formatAlignment,
8749
- ACTION_FORMAT_formatAlignmentBottom as formatAlignmentBottom,
8750
- ACTION_FORMAT_formatAlignmentCenter as formatAlignmentCenter,
8751
- ACTION_FORMAT_formatAlignmentHorizontal as formatAlignmentHorizontal,
8752
- ACTION_FORMAT_formatAlignmentLeft as formatAlignmentLeft,
8753
- ACTION_FORMAT_formatAlignmentMiddle as formatAlignmentMiddle,
8754
- ACTION_FORMAT_formatAlignmentRight as formatAlignmentRight,
8755
- ACTION_FORMAT_formatAlignmentTop as formatAlignmentTop,
8756
- ACTION_FORMAT_formatAlignmentVertical as formatAlignmentVertical,
8757
- ACTION_FORMAT_formatBold as formatBold,
8758
- ACTION_FORMAT_formatCF as formatCF,
8759
- ACTION_FORMAT_formatCustomCurrency as formatCustomCurrency,
8760
- ACTION_FORMAT_formatFontSize as formatFontSize,
8761
- ACTION_FORMAT_formatItalic as formatItalic,
8762
- ACTION_FORMAT_formatNumberAutomatic as formatNumberAutomatic,
8763
- ACTION_FORMAT_formatNumberCurrency as formatNumberCurrency,
8764
- ACTION_FORMAT_formatNumberCurrencyRounded as formatNumberCurrencyRounded,
8765
- ACTION_FORMAT_formatNumberDate as formatNumberDate,
8766
- ACTION_FORMAT_formatNumberDateTime as formatNumberDateTime,
8767
- ACTION_FORMAT_formatNumberDayAndFullMonth as formatNumberDayAndFullMonth,
8768
- ACTION_FORMAT_formatNumberDayAndShortMonth as formatNumberDayAndShortMonth,
8769
- ACTION_FORMAT_formatNumberDuration as formatNumberDuration,
8770
- ACTION_FORMAT_formatNumberFullDateTime as formatNumberFullDateTime,
8771
- ACTION_FORMAT_formatNumberFullMonth as formatNumberFullMonth,
8772
- ACTION_FORMAT_formatNumberFullWeekDayAndMonth as formatNumberFullWeekDayAndMonth,
8773
- ACTION_FORMAT_formatNumberNumber as formatNumberNumber,
8774
- ACTION_FORMAT_formatNumberPercent as formatNumberPercent,
8775
- ACTION_FORMAT_formatNumberPlainText as formatNumberPlainText,
8776
- ACTION_FORMAT_formatNumberShortMonth as formatNumberShortMonth,
8777
- ACTION_FORMAT_formatNumberShortWeekDay as formatNumberShortWeekDay,
8778
- ACTION_FORMAT_formatNumberTime as formatNumberTime,
8779
- ACTION_FORMAT_formatPercent as formatPercent,
8780
- ACTION_FORMAT_formatStrikethrough as formatStrikethrough,
8781
- ACTION_FORMAT_formatUnderline as formatUnderline,
8782
- ACTION_FORMAT_formatWrapping as formatWrapping,
8783
- ACTION_FORMAT_formatWrappingClip as formatWrappingClip,
8784
- ACTION_FORMAT_formatWrappingIcon as formatWrappingIcon,
8785
- ACTION_FORMAT_formatWrappingOverflow as formatWrappingOverflow,
8786
- ACTION_FORMAT_formatWrappingWrap as formatWrappingWrap,
8787
- ACTION_FORMAT_incraseDecimalPlaces as incraseDecimalPlaces,
8788
- ACTION_FORMAT_moreFormats as moreFormats,
8789
- ACTION_FORMAT_textColor as textColor,
8790
- };
8791
- }
8792
-
8793
9455
  interface Props$5 {
8794
9456
  action: ActionSpec;
8795
9457
  hasTriangleDownIcon?: boolean;
@@ -8830,7 +9492,7 @@ declare class ActionButton extends Component<Props$5, SpreadsheetChildEnv> {
8830
9492
  }
8831
9493
 
8832
9494
  type Tool = "borderColorTool" | "borderTypeTool";
8833
- interface State$4 {
9495
+ interface State$5 {
8834
9496
  activeTool: Tool | undefined;
8835
9497
  }
8836
9498
  interface BorderEditorProps {
@@ -8881,7 +9543,7 @@ declare class BorderEditor extends Component<BorderEditorProps, SpreadsheetChild
8881
9543
  el: HTMLElement | null;
8882
9544
  };
8883
9545
  borderStyles: readonly ["thin", "medium", "thick", "dashed", "dotted"];
8884
- state: State$4;
9546
+ state: State$5;
8885
9547
  toggleDropdownTool(tool: Tool): void;
8886
9548
  closeDropdown(): void;
8887
9549
  setBorderPosition(position: BorderPosition): void;
@@ -8899,7 +9561,7 @@ interface Props$4 {
8899
9561
  dropdownMaxHeight?: Pixel;
8900
9562
  class?: string;
8901
9563
  }
8902
- interface State$3 {
9564
+ interface State$4 {
8903
9565
  currentColor: Color;
8904
9566
  currentStyle: BorderStyle;
8905
9567
  currentPosition: BorderPosition | undefined;
@@ -8928,7 +9590,7 @@ declare class BorderEditorWidget extends Component<Props$4, SpreadsheetChildEnv>
8928
9590
  borderEditorButtonRef: {
8929
9591
  el: HTMLElement | null;
8930
9592
  };
8931
- state: State$3;
9593
+ state: State$4;
8932
9594
  get borderEditorAnchorRect(): Rect;
8933
9595
  onBorderPositionPicked(position: BorderPosition): void;
8934
9596
  onBorderColorPicked(color: Color): void;
@@ -8951,7 +9613,7 @@ declare class TopBarComposer extends Component<any, SpreadsheetChildEnv> {
8951
9613
  onFocus(selection: ComposerSelection): void;
8952
9614
  }
8953
9615
 
8954
- interface State$2 {
9616
+ interface State$3 {
8955
9617
  isOpen: boolean;
8956
9618
  }
8957
9619
  interface Props$3 {
@@ -8968,7 +9630,7 @@ declare class FontSizeEditor extends Component<Props$3, SpreadsheetChildEnv> {
8968
9630
  };
8969
9631
  static components: {};
8970
9632
  fontSizes: number[];
8971
- dropdown: State$2;
9633
+ dropdown: State$3;
8972
9634
  private inputRef;
8973
9635
  private rootEditorRef;
8974
9636
  setup(): void;
@@ -8985,11 +9647,16 @@ declare class FontSizeEditor extends Component<Props$3, SpreadsheetChildEnv> {
8985
9647
 
8986
9648
  interface Props$2 {
8987
9649
  tableConfig: TableConfig;
9650
+ tableStyle: TableStyle;
8988
9651
  }
8989
9652
  declare class TableStylePreview extends Component<Props$2, SpreadsheetChildEnv> {
8990
9653
  static template: string;
8991
9654
  static props: {
8992
9655
  tableConfig: ObjectConstructor;
9656
+ tableStyle: {
9657
+ type: ObjectConstructor;
9658
+ optional: boolean;
9659
+ };
8993
9660
  };
8994
9661
  private canvasRef;
8995
9662
  setup(): void;
@@ -9006,11 +9673,15 @@ interface TableStylesPopoverProps {
9006
9673
  type CustomTablePopoverMouseEvent = MouseEvent & {
9007
9674
  hasClosedTableStylesPopover?: boolean;
9008
9675
  };
9676
+ interface State$2 {
9677
+ selectedCategory: string;
9678
+ }
9009
9679
  declare class TableStylesPopover extends Component<TableStylesPopoverProps, SpreadsheetChildEnv> {
9010
9680
  static template: string;
9011
9681
  static components: {
9012
9682
  Popover: typeof Popover;
9013
9683
  TableStylePreview: typeof TableStylePreview;
9684
+ Menu: typeof Menu;
9014
9685
  };
9015
9686
  static props: {
9016
9687
  tableConfig: ObjectConstructor;
@@ -9025,19 +9696,23 @@ declare class TableStylesPopover extends Component<TableStylesPopoverProps, Spre
9025
9696
  optional: boolean;
9026
9697
  };
9027
9698
  };
9028
- stylePresets: Record<string, TableStyle>;
9029
9699
  categories: {
9030
- none: string;
9031
9700
  light: string;
9032
9701
  medium: string;
9033
9702
  dark: string;
9703
+ custom: string;
9034
9704
  };
9035
9705
  private tableStyleListRef;
9706
+ state: State$2;
9707
+ menu: MenuState;
9036
9708
  setup(): void;
9037
9709
  onExternalClick(ev: CustomTablePopoverMouseEvent): void;
9038
- getPresetsByCategory(category: string): string[];
9039
- getTableConfig(styleId: string): TableConfig;
9710
+ get displayedStyles(): string[];
9711
+ get initialSelectedCategory(): string;
9040
9712
  getStyleName(styleId: string): string;
9713
+ newTableStyle(): void;
9714
+ onContextMenu(event: MouseEvent, styleId: string): void;
9715
+ closeMenu(): void;
9041
9716
  }
9042
9717
 
9043
9718
  interface State$1 {
@@ -9250,13 +9925,13 @@ declare const registries: {
9250
9925
  inverseCommandRegistry: Registry<(cmd: CoreCommand) => CoreCommand[]>;
9251
9926
  urlRegistry: Registry<LinkSpec>;
9252
9927
  cellPopoverRegistry: Registry<PopoverBuilders>;
9253
- numberFormatMenuRegistry: MenuItemRegistry;
9928
+ numberFormatMenuRegistry: Registry<NumberFormatActionSpec>;
9254
9929
  repeatLocalCommandTransformRegistry: Registry<(getters: Getters, cmd: LocalCommand, childCommands: readonly CoreCommand[]) => LocalCommand | CoreCommand[] | undefined>;
9255
9930
  repeatCommandTransformRegistry: Registry<(getters: Getters, cmd: CoreCommand) => CoreCommand | undefined>;
9256
9931
  clipboardHandlersRegistries: {
9257
9932
  figureHandlers: Registry<{
9258
9933
  new (getters: Getters, dispatch: {
9259
- <T extends "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" | "RESIZE_TABLE", C extends Extract<UpdateCellCommand, {
9934
+ <T extends "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" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "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" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "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" | "RESIZE_TABLE" | "REFRESH_PIVOT", C extends Extract<UpdateCellCommand, {
9260
9935
  type: T;
9261
9936
  }> | Extract<UpdateCellPositionCommand, {
9262
9937
  type: T;
@@ -9338,6 +10013,10 @@ declare const registries: {
9338
10013
  type: T;
9339
10014
  }> | Extract<UpdateTableCommand, {
9340
10015
  type: T;
10016
+ }> | Extract<CreateTableStyleCommand, {
10017
+ type: T;
10018
+ }> | Extract<RemoveTableStyleCommand, {
10019
+ type: T;
9341
10020
  }> | Extract<GroupHeadersCommand, {
9342
10021
  type: T;
9343
10022
  }> | Extract<UnGroupHeadersCommand, {
@@ -9360,6 +10039,18 @@ declare const registries: {
9360
10039
  type: T;
9361
10040
  }> | Extract<UpdateLocaleCommand, {
9362
10041
  type: T;
10042
+ }> | Extract<AddPivotCommand, {
10043
+ type: T;
10044
+ }> | Extract<UpdatePivotCommand, {
10045
+ type: T;
10046
+ }> | Extract<InsertPivotCommand, {
10047
+ type: T;
10048
+ }> | Extract<RenamePivotCommand, {
10049
+ type: T;
10050
+ }> | Extract<RemovePivotCommand, {
10051
+ type: T;
10052
+ }> | Extract<DuplicatePivotCommand, {
10053
+ type: T;
9363
10054
  }> | Extract<RequestUndoCommand, {
9364
10055
  type: T;
9365
10056
  }> | Extract<RequestRedoCommand, {
@@ -9454,8 +10145,10 @@ declare const registries: {
9454
10145
  type: T;
9455
10146
  }> | Extract<ResizeTableCommand, {
9456
10147
  type: T;
10148
+ }> | Extract<RefreshPivotCommand, {
10149
+ type: T;
9457
10150
  }>>(type: {} extends Omit<C, "type"> ? T : never): DispatchResult;
9458
- <T_1 extends "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" | "RESIZE_TABLE", C_1 extends Extract<UpdateCellCommand, {
10151
+ <T_1 extends "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" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "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" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "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" | "RESIZE_TABLE" | "REFRESH_PIVOT", C_1 extends Extract<UpdateCellCommand, {
9459
10152
  type: T_1;
9460
10153
  }> | Extract<UpdateCellPositionCommand, {
9461
10154
  type: T_1;
@@ -9537,6 +10230,10 @@ declare const registries: {
9537
10230
  type: T_1;
9538
10231
  }> | Extract<UpdateTableCommand, {
9539
10232
  type: T_1;
10233
+ }> | Extract<CreateTableStyleCommand, {
10234
+ type: T_1;
10235
+ }> | Extract<RemoveTableStyleCommand, {
10236
+ type: T_1;
9540
10237
  }> | Extract<GroupHeadersCommand, {
9541
10238
  type: T_1;
9542
10239
  }> | Extract<UnGroupHeadersCommand, {
@@ -9559,6 +10256,18 @@ declare const registries: {
9559
10256
  type: T_1;
9560
10257
  }> | Extract<UpdateLocaleCommand, {
9561
10258
  type: T_1;
10259
+ }> | Extract<AddPivotCommand, {
10260
+ type: T_1;
10261
+ }> | Extract<UpdatePivotCommand, {
10262
+ type: T_1;
10263
+ }> | Extract<InsertPivotCommand, {
10264
+ type: T_1;
10265
+ }> | Extract<RenamePivotCommand, {
10266
+ type: T_1;
10267
+ }> | Extract<RemovePivotCommand, {
10268
+ type: T_1;
10269
+ }> | Extract<DuplicatePivotCommand, {
10270
+ type: T_1;
9562
10271
  }> | Extract<RequestUndoCommand, {
9563
10272
  type: T_1;
9564
10273
  }> | Extract<RequestRedoCommand, {
@@ -9653,12 +10362,14 @@ declare const registries: {
9653
10362
  type: T_1;
9654
10363
  }> | Extract<ResizeTableCommand, {
9655
10364
  type: T_1;
10365
+ }> | Extract<RefreshPivotCommand, {
10366
+ type: T_1;
9656
10367
  }>>(type: T_1, r: Omit<C_1, "type">): DispatchResult;
9657
10368
  }): AbstractFigureClipboardHandler<any>;
9658
10369
  }>;
9659
10370
  cellHandlers: Registry<{
9660
10371
  new (getters: Getters, dispatch: {
9661
- <T extends "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" | "RESIZE_TABLE", C extends Extract<UpdateCellCommand, {
10372
+ <T extends "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" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "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" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "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" | "RESIZE_TABLE" | "REFRESH_PIVOT", C extends Extract<UpdateCellCommand, {
9662
10373
  type: T;
9663
10374
  }> | Extract<UpdateCellPositionCommand, {
9664
10375
  type: T;
@@ -9740,6 +10451,10 @@ declare const registries: {
9740
10451
  type: T;
9741
10452
  }> | Extract<UpdateTableCommand, {
9742
10453
  type: T;
10454
+ }> | Extract<CreateTableStyleCommand, {
10455
+ type: T;
10456
+ }> | Extract<RemoveTableStyleCommand, {
10457
+ type: T;
9743
10458
  }> | Extract<GroupHeadersCommand, {
9744
10459
  type: T;
9745
10460
  }> | Extract<UnGroupHeadersCommand, {
@@ -9762,6 +10477,18 @@ declare const registries: {
9762
10477
  type: T;
9763
10478
  }> | Extract<UpdateLocaleCommand, {
9764
10479
  type: T;
10480
+ }> | Extract<AddPivotCommand, {
10481
+ type: T;
10482
+ }> | Extract<UpdatePivotCommand, {
10483
+ type: T;
10484
+ }> | Extract<InsertPivotCommand, {
10485
+ type: T;
10486
+ }> | Extract<RenamePivotCommand, {
10487
+ type: T;
10488
+ }> | Extract<RemovePivotCommand, {
10489
+ type: T;
10490
+ }> | Extract<DuplicatePivotCommand, {
10491
+ type: T;
9765
10492
  }> | Extract<RequestUndoCommand, {
9766
10493
  type: T;
9767
10494
  }> | Extract<RequestRedoCommand, {
@@ -9856,8 +10583,10 @@ declare const registries: {
9856
10583
  type: T;
9857
10584
  }> | Extract<ResizeTableCommand, {
9858
10585
  type: T;
10586
+ }> | Extract<RefreshPivotCommand, {
10587
+ type: T;
9859
10588
  }>>(type: {} extends Omit<C, "type"> ? T : never): DispatchResult;
9860
- <T_1 extends "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" | "RESIZE_TABLE", C_1 extends Extract<UpdateCellCommand, {
10589
+ <T_1 extends "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" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "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" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "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" | "RESIZE_TABLE" | "REFRESH_PIVOT", C_1 extends Extract<UpdateCellCommand, {
9861
10590
  type: T_1;
9862
10591
  }> | Extract<UpdateCellPositionCommand, {
9863
10592
  type: T_1;
@@ -9939,6 +10668,10 @@ declare const registries: {
9939
10668
  type: T_1;
9940
10669
  }> | Extract<UpdateTableCommand, {
9941
10670
  type: T_1;
10671
+ }> | Extract<CreateTableStyleCommand, {
10672
+ type: T_1;
10673
+ }> | Extract<RemoveTableStyleCommand, {
10674
+ type: T_1;
9942
10675
  }> | Extract<GroupHeadersCommand, {
9943
10676
  type: T_1;
9944
10677
  }> | Extract<UnGroupHeadersCommand, {
@@ -9961,6 +10694,18 @@ declare const registries: {
9961
10694
  type: T_1;
9962
10695
  }> | Extract<UpdateLocaleCommand, {
9963
10696
  type: T_1;
10697
+ }> | Extract<AddPivotCommand, {
10698
+ type: T_1;
10699
+ }> | Extract<UpdatePivotCommand, {
10700
+ type: T_1;
10701
+ }> | Extract<InsertPivotCommand, {
10702
+ type: T_1;
10703
+ }> | Extract<RenamePivotCommand, {
10704
+ type: T_1;
10705
+ }> | Extract<RemovePivotCommand, {
10706
+ type: T_1;
10707
+ }> | Extract<DuplicatePivotCommand, {
10708
+ type: T_1;
9964
10709
  }> | Extract<RequestUndoCommand, {
9965
10710
  type: T_1;
9966
10711
  }> | Extract<RequestRedoCommand, {
@@ -10055,10 +10800,14 @@ declare const registries: {
10055
10800
  type: T_1;
10056
10801
  }> | Extract<ResizeTableCommand, {
10057
10802
  type: T_1;
10803
+ }> | Extract<RefreshPivotCommand, {
10804
+ type: T_1;
10058
10805
  }>>(type: T_1, r: Omit<C_1, "type">): DispatchResult;
10059
10806
  }): AbstractCellClipboardHandler<any, any>;
10060
10807
  }>;
10061
10808
  };
10809
+ pivotRegistry: Registry<PivotRegistryItem>;
10810
+ pivotTimeAdapterRegistry: Registry<PivotTimeAdapter<string | number | false>>;
10062
10811
  };
10063
10812
  declare const helpers: {
10064
10813
  arg: typeof arg;
@@ -10102,6 +10851,20 @@ declare const helpers: {
10102
10851
  expandZoneOnInsertion: typeof expandZoneOnInsertion;
10103
10852
  reduceZoneOnDeletion: typeof reduceZoneOnDeletion;
10104
10853
  unquote: typeof unquote;
10854
+ makePivotFormula: typeof makePivotFormula;
10855
+ getMaxObjectId: typeof getMaxObjectId;
10856
+ getFunctionsFromTokens: typeof getFunctionsFromTokens;
10857
+ getFirstPivotFunction: typeof getFirstPivotFunction;
10858
+ getNumberOfPivotFunctions: typeof getNumberOfPivotFunctions;
10859
+ parseDimension: typeof parseDimension;
10860
+ isDateField: typeof isDateField;
10861
+ makeFieldProposal: typeof makeFieldProposal;
10862
+ insertTokenAfterArgSeparator: typeof insertTokenAfterArgSeparator;
10863
+ insertTokenAfterLeftParenthesis: typeof insertTokenAfterLeftParenthesis;
10864
+ mergeContiguousZones: typeof mergeContiguousZones;
10865
+ getPivotHighlights: typeof getPivotHighlights;
10866
+ pivotTimeAdapter: typeof pivotTimeAdapter;
10867
+ UNDO_REDO_PIVOT_COMMANDS: string[];
10105
10868
  };
10106
10869
  declare const links: {
10107
10870
  isMarkdownLink: typeof isMarkdownLink;
@@ -10137,6 +10900,13 @@ declare const components: {
10137
10900
  Popover: typeof Popover;
10138
10901
  SelectionInput: typeof SelectionInput;
10139
10902
  ValidationMessages: typeof ValidationMessages;
10903
+ AddDimensionButton: typeof AddDimensionButton;
10904
+ PivotDimensionGranularity: typeof PivotDimensionGranularity;
10905
+ PivotDimensionOrder: typeof PivotDimensionOrder;
10906
+ PivotDimension: typeof PivotDimension;
10907
+ PivotDimensions: typeof PivotDimensions;
10908
+ EditableName: typeof EditableName;
10909
+ AllPivotsSidePanel: typeof AllPivotsSidePanel;
10140
10910
  };
10141
10911
  declare const hooks: {
10142
10912
  useDragAndDropListItems: typeof useDragAndDropListItems;
@@ -10160,6 +10930,7 @@ declare const stores: {
10160
10930
  useStore: typeof useStore;
10161
10931
  useLocalStore: typeof useLocalStore;
10162
10932
  SidePanelStore: typeof SidePanelStore;
10933
+ PivotSidePanelStore: typeof PivotSidePanelStore;
10163
10934
  };
10164
10935
 
10165
10936
  declare function addFunction(functionName: string, functionDescription: AddFunctionDescription): {
@@ -10168,6 +10939,16 @@ declare function addFunction(functionName: string, functionDescription: AddFunct
10168
10939
  declare const constants: {
10169
10940
  DEFAULT_LOCALE: Locale;
10170
10941
  HIGHLIGHT_COLOR: string;
10942
+ PIVOT_TABLE_CONFIG: {
10943
+ hasFilters: boolean;
10944
+ totalRow: boolean;
10945
+ firstColumn: boolean;
10946
+ lastColumn: boolean;
10947
+ numberOfHeaders: number;
10948
+ bandedRows: boolean;
10949
+ bandedColumns: boolean;
10950
+ styleId: string;
10951
+ };
10171
10952
  };
10172
10953
 
10173
- 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, ChartWithAxisDefinition, 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, ResizeTableCommand, 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 };
10954
+ export { AST, ASTFuncall, AboveAverageRule, AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, ActivateNextSheetCommand, ActivatePaintFormatCommand, ActivatePreviousSheetCommand, ActivateSheetCommand, AddColumnsRowsCommand, AddConditionalFormatCommand, AddDataValidationCommand, AddFunctionDescription, AddMergeCommand, AddPivotCommand, 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, ChartWithAxisDefinition, 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, CreateTableStyleCommand, 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, DuplicatePivotCommand, 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, InsertPivotCommand, 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, PivotRuntimeDefinition, Pixel, PixelPosition, Position$1 as Position, PositionDependentCommand, PropsOf, RGBA, Range, RangeCompiledFormula, RangeData, RangePart, RangeProvider, RangesDependentCommand, Rect, RedoCommand, Ref, ReferenceDenormalizer, RefreshPivotCommand, Registry, RemoteRevisionMessage, RemoteRevisionReceivedEvent, RemoveColumnsRowsCommand, RemoveConditionalFormatCommand, RemoveDataValidationCommand, RemoveDuplicatesCommand, RemoveMergeCommand, RemovePivotCommand, RemoveTableCommand, RemoveTableStyleCommand, RenamePivotCommand, RenameSheetCommand, RenderCanvasCommand, RepeatPasteCommand, ReplaceSearchCommand, RequestRedoCommand, RequestUndoCommand, ResizeColumnsRowsCommand, ResizeDirection, ResizeTableCommand, 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, SpreadsheetPivotTable, StartChangeHighlightCommand, StartCommand, StaticTable, StoreConstructor, StoreParams, Style, SumSelectionCommand, Table, TableConfig, TableData, TableElementStyle, TableId, TableStyle, TableStyleData, TableStyleTemplateName, 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, UpdatePivotCommand, 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 };