@odoo/o-spreadsheet 17.1.26 → 17.1.28
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.
- package/dist/o-spreadsheet.cjs.js +107 -61
- package/dist/o-spreadsheet.d.ts +16 -8
- package/dist/o-spreadsheet.esm.js +107 -61
- package/dist/o-spreadsheet.iife.js +107 -61
- package/dist/o-spreadsheet.iife.min.js +248 -248
- package/dist/o_spreadsheet.xml +3 -3
- package/package.json +2 -2
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* This file is generated by o-spreadsheet build tools. Do not edit it.
|
|
4
4
|
* @see https://github.com/odoo/o-spreadsheet
|
|
5
|
-
* @version 17.1.
|
|
6
|
-
* @date 2024-08-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 17.1.28
|
|
6
|
+
* @date 2024-08-19T08:08:59.669Z
|
|
7
|
+
* @hash 9674f1b
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
'use strict';
|
|
@@ -1895,6 +1895,7 @@ const coreTypes = new Set([
|
|
|
1895
1895
|
"UPDATE_CELL",
|
|
1896
1896
|
"UPDATE_CELL_POSITION",
|
|
1897
1897
|
"CLEAR_CELL",
|
|
1898
|
+
"CLEAR_CELLS",
|
|
1898
1899
|
"DELETE_CONTENT",
|
|
1899
1900
|
/** GRID SHAPE */
|
|
1900
1901
|
"ADD_COLUMNS_ROWS",
|
|
@@ -35672,7 +35673,7 @@ function parse(str) {
|
|
|
35672
35673
|
}
|
|
35673
35674
|
function parseTokens(tokens) {
|
|
35674
35675
|
tokens = tokens.filter((x) => x.type !== "SPACE");
|
|
35675
|
-
if (tokens[0]
|
|
35676
|
+
if (tokens[0]?.value === "=") {
|
|
35676
35677
|
tokens.splice(0, 1);
|
|
35677
35678
|
}
|
|
35678
35679
|
const result = parseExpression(tokens);
|
|
@@ -36239,6 +36240,9 @@ class CellPlugin extends CorePlugin {
|
|
|
36239
36240
|
format: "",
|
|
36240
36241
|
});
|
|
36241
36242
|
break;
|
|
36243
|
+
case "CLEAR_CELLS":
|
|
36244
|
+
this.clearCells(cmd.sheetId, cmd.target);
|
|
36245
|
+
break;
|
|
36242
36246
|
}
|
|
36243
36247
|
}
|
|
36244
36248
|
/**
|
|
@@ -36277,6 +36281,25 @@ class CellPlugin extends CorePlugin {
|
|
|
36277
36281
|
}
|
|
36278
36282
|
}
|
|
36279
36283
|
}
|
|
36284
|
+
/**
|
|
36285
|
+
* Clear the styles, the format and the content of zones
|
|
36286
|
+
*/
|
|
36287
|
+
clearCells(sheetId, zones) {
|
|
36288
|
+
for (const zone of zones) {
|
|
36289
|
+
for (let col = zone.left; col <= zone.right; col++) {
|
|
36290
|
+
for (let row = zone.top; row <= zone.bottom; row++) {
|
|
36291
|
+
this.dispatch("UPDATE_CELL", {
|
|
36292
|
+
sheetId: sheetId,
|
|
36293
|
+
col,
|
|
36294
|
+
row,
|
|
36295
|
+
content: "",
|
|
36296
|
+
style: null,
|
|
36297
|
+
format: "",
|
|
36298
|
+
});
|
|
36299
|
+
}
|
|
36300
|
+
}
|
|
36301
|
+
}
|
|
36302
|
+
}
|
|
36280
36303
|
/**
|
|
36281
36304
|
* Copy the style of the reference column/row to the new columns/rows.
|
|
36282
36305
|
*/
|
|
@@ -39126,7 +39149,7 @@ class RangeAdapter {
|
|
|
39126
39149
|
* @param sheetXC the string description of a range, in the form SheetName!XC:XC
|
|
39127
39150
|
*/
|
|
39128
39151
|
getRangeFromSheetXC(defaultSheetId, sheetXC) {
|
|
39129
|
-
if (!rangeReference.test(sheetXC)) {
|
|
39152
|
+
if (!rangeReference.test(sheetXC) || !this.getters.tryGetSheet(defaultSheetId)) {
|
|
39130
39153
|
return new RangeImpl({
|
|
39131
39154
|
sheetId: "",
|
|
39132
39155
|
zone: { left: -1, top: -1, right: -1, bottom: -1 },
|
|
@@ -40012,19 +40035,23 @@ class SheetPlugin extends CorePlugin {
|
|
|
40012
40035
|
}
|
|
40013
40036
|
}
|
|
40014
40037
|
moveCellOnColumnsDeletion(sheet, deletedColumn) {
|
|
40038
|
+
this.dispatch("CLEAR_CELLS", {
|
|
40039
|
+
sheetId: sheet.id,
|
|
40040
|
+
target: [
|
|
40041
|
+
{
|
|
40042
|
+
left: deletedColumn,
|
|
40043
|
+
top: 0,
|
|
40044
|
+
right: deletedColumn,
|
|
40045
|
+
bottom: sheet.rows.length - 1,
|
|
40046
|
+
},
|
|
40047
|
+
],
|
|
40048
|
+
});
|
|
40015
40049
|
for (let rowIndex = 0; rowIndex < sheet.rows.length; rowIndex++) {
|
|
40016
40050
|
const row = sheet.rows[rowIndex];
|
|
40017
40051
|
for (let i in row.cells) {
|
|
40018
40052
|
const colIndex = Number(i);
|
|
40019
40053
|
const cellId = row.cells[i];
|
|
40020
40054
|
if (cellId) {
|
|
40021
|
-
if (colIndex === deletedColumn) {
|
|
40022
|
-
this.dispatch("CLEAR_CELL", {
|
|
40023
|
-
sheetId: sheet.id,
|
|
40024
|
-
col: colIndex,
|
|
40025
|
-
row: rowIndex,
|
|
40026
|
-
});
|
|
40027
|
-
}
|
|
40028
40055
|
if (colIndex > deletedColumn) {
|
|
40029
40056
|
this.setNewPosition(cellId, sheet.id, colIndex - 1, rowIndex);
|
|
40030
40057
|
}
|
|
@@ -40070,22 +40097,20 @@ class SheetPlugin extends CorePlugin {
|
|
|
40070
40097
|
*
|
|
40071
40098
|
*/
|
|
40072
40099
|
moveCellOnRowsDeletion(sheet, deleteFromRow, deleteToRow) {
|
|
40100
|
+
this.dispatch("CLEAR_CELLS", {
|
|
40101
|
+
sheetId: sheet.id,
|
|
40102
|
+
target: [
|
|
40103
|
+
{
|
|
40104
|
+
left: 0,
|
|
40105
|
+
top: deleteFromRow,
|
|
40106
|
+
right: this.getters.getNumberCols(sheet.id),
|
|
40107
|
+
bottom: deleteToRow,
|
|
40108
|
+
},
|
|
40109
|
+
],
|
|
40110
|
+
});
|
|
40073
40111
|
const numberRows = deleteToRow - deleteFromRow + 1;
|
|
40074
40112
|
for (let rowIndex = 0; rowIndex < sheet.rows.length; rowIndex++) {
|
|
40075
40113
|
const row = sheet.rows[rowIndex];
|
|
40076
|
-
if (rowIndex >= deleteFromRow && rowIndex <= deleteToRow) {
|
|
40077
|
-
for (let i in row.cells) {
|
|
40078
|
-
const colIndex = Number(i);
|
|
40079
|
-
const cellId = row.cells[i];
|
|
40080
|
-
if (cellId) {
|
|
40081
|
-
this.dispatch("CLEAR_CELL", {
|
|
40082
|
-
sheetId: sheet.id,
|
|
40083
|
-
col: colIndex,
|
|
40084
|
-
row: rowIndex,
|
|
40085
|
-
});
|
|
40086
|
-
}
|
|
40087
|
-
}
|
|
40088
|
-
}
|
|
40089
40114
|
if (rowIndex > deleteToRow) {
|
|
40090
40115
|
for (let i in row.cells) {
|
|
40091
40116
|
const colIndex = Number(i);
|
|
@@ -42060,18 +42085,30 @@ class Evaluator {
|
|
|
42060
42085
|
this.evaluate(this.getAllCells());
|
|
42061
42086
|
}
|
|
42062
42087
|
evaluateFormula(sheetId, formulaString) {
|
|
42063
|
-
const
|
|
42064
|
-
const ranges = compiledFormula.dependencies.map((xc) => this.getters.getRangeFromSheetXC(sheetId, xc));
|
|
42065
|
-
this.updateCompilationParameters();
|
|
42066
|
-
const result = updateEvalContextAndExecute({ ...compiledFormula, dependencies: ranges }, this.compilationParams, sheetId);
|
|
42088
|
+
const result = this.evaluateFormulaResult(sheetId, formulaString);
|
|
42067
42089
|
if (isMatrix(result)) {
|
|
42068
42090
|
return matrixMap(result, (cell) => cell.value);
|
|
42069
42091
|
}
|
|
42070
|
-
if (result.value === null) {
|
|
42071
|
-
return 0;
|
|
42072
|
-
}
|
|
42073
42092
|
return result.value;
|
|
42074
42093
|
}
|
|
42094
|
+
evaluateFormulaResult(sheetId, formulaString) {
|
|
42095
|
+
try {
|
|
42096
|
+
const compiledFormula = compile(formulaString);
|
|
42097
|
+
const ranges = compiledFormula.dependencies.map((xc) => this.getters.getRangeFromSheetXC(sheetId, xc));
|
|
42098
|
+
this.updateCompilationParameters();
|
|
42099
|
+
const result = updateEvalContextAndExecute({ ...compiledFormula, dependencies: ranges }, this.compilationParams, sheetId);
|
|
42100
|
+
if (isMatrix(result)) {
|
|
42101
|
+
return result;
|
|
42102
|
+
}
|
|
42103
|
+
if (result.value === null) {
|
|
42104
|
+
return { value: 0, format: result.format };
|
|
42105
|
+
}
|
|
42106
|
+
return result;
|
|
42107
|
+
}
|
|
42108
|
+
catch (error) {
|
|
42109
|
+
return handleError(error, "");
|
|
42110
|
+
}
|
|
42111
|
+
}
|
|
42075
42112
|
getAllCells() {
|
|
42076
42113
|
const positionIds = new JetSet();
|
|
42077
42114
|
for (const sheetId of this.getters.getSheetIds()) {
|
|
@@ -42496,6 +42533,7 @@ function updateEvalContextAndExecute(compiledFormula, compilationParams, sheetId
|
|
|
42496
42533
|
class EvaluationPlugin extends UIPlugin {
|
|
42497
42534
|
static getters = [
|
|
42498
42535
|
"evaluateFormula",
|
|
42536
|
+
"evaluateFormulaResult",
|
|
42499
42537
|
"getCorrespondingFormulaCell",
|
|
42500
42538
|
"getRangeFormattedValues",
|
|
42501
42539
|
"getRangeValues",
|
|
@@ -42554,12 +42592,14 @@ class EvaluationPlugin extends UIPlugin {
|
|
|
42554
42592
|
// Getters
|
|
42555
42593
|
// ---------------------------------------------------------------------------
|
|
42556
42594
|
evaluateFormula(sheetId, formulaString) {
|
|
42557
|
-
|
|
42558
|
-
|
|
42559
|
-
|
|
42560
|
-
catch (error) {
|
|
42561
|
-
return error.value || CellErrorType.GenericError;
|
|
42595
|
+
const result = this.evaluateFormulaResult(sheetId, formulaString);
|
|
42596
|
+
if (isMatrix(result)) {
|
|
42597
|
+
return matrixMap(result, (cell) => cell.value);
|
|
42562
42598
|
}
|
|
42599
|
+
return result.value;
|
|
42600
|
+
}
|
|
42601
|
+
evaluateFormulaResult(sheetId, formulaString) {
|
|
42602
|
+
return this.evaluator.evaluateFormulaResult(sheetId, formulaString);
|
|
42563
42603
|
}
|
|
42564
42604
|
/**
|
|
42565
42605
|
* Return the value of each cell in the range as they are displayed in the grid.
|
|
@@ -44899,7 +44939,7 @@ class Session extends EventBus {
|
|
|
44899
44939
|
*/
|
|
44900
44940
|
leave(data) {
|
|
44901
44941
|
if (Object.keys(this.clients).length === 1 && this.processedRevisions.size) {
|
|
44902
|
-
this.snapshot(data);
|
|
44942
|
+
this.snapshot(data());
|
|
44903
44943
|
}
|
|
44904
44944
|
delete this.clients[this.clientId];
|
|
44905
44945
|
this.transportService.leave(this.clientId);
|
|
@@ -45572,13 +45612,10 @@ class ClipboardCellsState extends ClipboardCellsAbstractState {
|
|
|
45572
45612
|
* Clear the clipped zones: remove the cells and clear the formatting
|
|
45573
45613
|
*/
|
|
45574
45614
|
clearClippedZones() {
|
|
45575
|
-
|
|
45576
|
-
|
|
45577
|
-
|
|
45578
|
-
|
|
45579
|
-
}
|
|
45580
|
-
}
|
|
45581
|
-
}
|
|
45615
|
+
this.dispatch("CLEAR_CELLS", {
|
|
45616
|
+
sheetId: this.sheetId,
|
|
45617
|
+
target: this.zones,
|
|
45618
|
+
});
|
|
45582
45619
|
this.dispatch("CLEAR_FORMATTING", {
|
|
45583
45620
|
sheetId: this.sheetId,
|
|
45584
45621
|
target: this.zones,
|
|
@@ -45927,9 +45964,7 @@ class DataCleanupPlugin extends UIPlugin {
|
|
|
45927
45964
|
bottom: rowIndex,
|
|
45928
45965
|
}));
|
|
45929
45966
|
const state = new ClipboardCellsState(rowsToKeep, "COPY", this.getters, this.dispatch, this.selection);
|
|
45930
|
-
|
|
45931
|
-
this.dispatch("CLEAR_CELL", { col, row, sheetId });
|
|
45932
|
-
}
|
|
45967
|
+
this.dispatch("CLEAR_CELLS", { target: [zone], sheetId });
|
|
45933
45968
|
const zonePasted = {
|
|
45934
45969
|
left: zone.left,
|
|
45935
45970
|
top: zone.top,
|
|
@@ -46434,6 +46469,7 @@ class FormatPlugin extends UIPlugin {
|
|
|
46434
46469
|
* evaluated and updated with the number type.
|
|
46435
46470
|
*/
|
|
46436
46471
|
setDecimal(sheetId, zones, step) {
|
|
46472
|
+
const positionsByFormat = {};
|
|
46437
46473
|
// Find the each cell with a number value and get the format
|
|
46438
46474
|
for (const zone of zones) {
|
|
46439
46475
|
for (const position of positions(zone)) {
|
|
@@ -46443,15 +46479,20 @@ class FormatPlugin extends UIPlugin {
|
|
|
46443
46479
|
// of the format
|
|
46444
46480
|
this.getters.getLocale();
|
|
46445
46481
|
const newFormat = changeDecimalPlaces(numberFormat, step);
|
|
46446
|
-
|
|
46447
|
-
|
|
46448
|
-
sheetId,
|
|
46449
|
-
target: [positionToZone(position)],
|
|
46450
|
-
format: newFormat,
|
|
46451
|
-
});
|
|
46482
|
+
positionsByFormat[newFormat] = positionsByFormat[newFormat] || [];
|
|
46483
|
+
positionsByFormat[newFormat].push(position);
|
|
46452
46484
|
}
|
|
46453
46485
|
}
|
|
46454
46486
|
}
|
|
46487
|
+
// consolidate all positions with the same format in bigger zones
|
|
46488
|
+
for (const newFormat in positionsByFormat) {
|
|
46489
|
+
const zones = futureRecomputeZones(positionsByFormat[newFormat].map((position) => positionToZone(position)));
|
|
46490
|
+
this.dispatch("SET_FORMATTING", {
|
|
46491
|
+
sheetId,
|
|
46492
|
+
format: newFormat,
|
|
46493
|
+
target: zones,
|
|
46494
|
+
});
|
|
46495
|
+
}
|
|
46455
46496
|
}
|
|
46456
46497
|
/**
|
|
46457
46498
|
* Take a range of cells and return the format of the first cell containing a
|
|
@@ -47948,6 +47989,9 @@ class SheetUIPlugin extends UIPlugin {
|
|
|
47948
47989
|
if (showFormula && cell?.isFormula) {
|
|
47949
47990
|
return localizeFormula(cell.content, this.getters.getLocale());
|
|
47950
47991
|
}
|
|
47992
|
+
else if (showFormula && !cell?.content) {
|
|
47993
|
+
return "";
|
|
47994
|
+
}
|
|
47951
47995
|
else {
|
|
47952
47996
|
return this.getters.getEvaluatedCell(position).formattedValue;
|
|
47953
47997
|
}
|
|
@@ -48195,6 +48239,7 @@ function repeatGroupHeadersCommand(getters, cmd) {
|
|
|
48195
48239
|
const repeatCommandTransformRegistry = new Registry();
|
|
48196
48240
|
repeatCommandTransformRegistry.add("UPDATE_CELL", genericRepeat);
|
|
48197
48241
|
repeatCommandTransformRegistry.add("CLEAR_CELL", genericRepeat);
|
|
48242
|
+
repeatCommandTransformRegistry.add("CLEAR_CELLS", genericRepeat);
|
|
48198
48243
|
repeatCommandTransformRegistry.add("DELETE_CONTENT", genericRepeat);
|
|
48199
48244
|
repeatCommandTransformRegistry.add("ADD_MERGE", genericRepeat);
|
|
48200
48245
|
repeatCommandTransformRegistry.add("REMOVE_MERGE", genericRepeat);
|
|
@@ -48936,9 +48981,10 @@ class ClipboardPlugin extends UIPlugin {
|
|
|
48936
48981
|
case "DELETE_CELL": {
|
|
48937
48982
|
const { cut, paste } = this.getDeleteCellsTargets(cmd.zone, cmd.shiftDimension);
|
|
48938
48983
|
if (!isZoneValid(cut[0])) {
|
|
48939
|
-
|
|
48940
|
-
|
|
48941
|
-
|
|
48984
|
+
this.dispatch("CLEAR_CELLS", {
|
|
48985
|
+
target: [cmd.zone],
|
|
48986
|
+
sheetId: this.getters.getActiveSheetId(),
|
|
48987
|
+
});
|
|
48942
48988
|
break;
|
|
48943
48989
|
}
|
|
48944
48990
|
const state = this.getClipboardStateForCopyCells(cut, "CUT");
|
|
@@ -57370,7 +57416,7 @@ class Model extends EventBus {
|
|
|
57370
57416
|
this.session.join(this.config.client);
|
|
57371
57417
|
}
|
|
57372
57418
|
leaveSession() {
|
|
57373
|
-
this.session.leave(this.exportData());
|
|
57419
|
+
this.session.leave(lazy(() => this.exportData()));
|
|
57374
57420
|
}
|
|
57375
57421
|
setupUiPlugin(Plugin) {
|
|
57376
57422
|
const plugin = new Plugin(this.uiPluginConfig);
|
|
@@ -57882,6 +57928,6 @@ exports.setTranslationMethod = setTranslationMethod;
|
|
|
57882
57928
|
exports.tokenize = tokenize;
|
|
57883
57929
|
|
|
57884
57930
|
|
|
57885
|
-
__info__.version = "17.1.
|
|
57886
|
-
__info__.date = "2024-08-
|
|
57887
|
-
__info__.hash = "
|
|
57931
|
+
__info__.version = "17.1.28";
|
|
57932
|
+
__info__.date = "2024-08-19T08:08:59.669Z";
|
|
57933
|
+
__info__.hash = "9674f1b";
|
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -841,7 +841,7 @@ declare class Session extends EventBus<CollaborativeEvent> {
|
|
|
841
841
|
/**
|
|
842
842
|
* Notify the server that the user client left the collaborative session
|
|
843
843
|
*/
|
|
844
|
-
leave(data: WorkbookData): void;
|
|
844
|
+
leave(data: Lazy<WorkbookData>): void;
|
|
845
845
|
/**
|
|
846
846
|
* Send a snapshot of the spreadsheet to the collaboration server
|
|
847
847
|
*/
|
|
@@ -1694,11 +1694,11 @@ interface ZoneDependentCommand {
|
|
|
1694
1694
|
sheetId: UID;
|
|
1695
1695
|
zone: Zone;
|
|
1696
1696
|
}
|
|
1697
|
-
declare const invalidateEvaluationCommands: Set<"SORT_CELLS" | "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_FILTER_TABLE" | "REMOVE_FILTER_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" | "ENABLE_NEW_SELECTION_INPUT" | "DISABLE_SELECTION_INPUT" | "UNFOCUS_SELECTION_INPUT" | "FOCUS_RANGE" | "ADD_EMPTY_RANGE" | "ADD_RANGE" | "REMOVE_RANGE" | "CHANGE_RANGE" | "COPY" | "CUT" | "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" | "SET_HIGHLIGHT_COLOR" | "STOP_COMPOSER_RANGE_SELECTION" | "START_EDITION" | "STOP_EDITION" | "CANCEL_EDITION" | "SET_CURRENT_CONTENT" | "CHANGE_COMPOSER_CURSOR_SELECTION" | "REPLACE_COMPOSER_CURSOR_SELECTION" | "CYCLE_EDITION_REFERENCES" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "UPDATE_SEARCH" | "CLEAR_SEARCH" | "SELECT_SEARCH_PREVIOUS_MATCH" | "SELECT_SEARCH_NEXT_MATCH" | "REPLACE_SEARCH" | "REPLACE_ALL_SEARCH" | "SET_DECIMAL" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "OPEN_CELL_POPOVER" | "CLOSE_CELL_POPOVER" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE">;
|
|
1698
|
-
declare const invalidateDependenciesCommands: Set<"SORT_CELLS" | "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_FILTER_TABLE" | "REMOVE_FILTER_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" | "ENABLE_NEW_SELECTION_INPUT" | "DISABLE_SELECTION_INPUT" | "UNFOCUS_SELECTION_INPUT" | "FOCUS_RANGE" | "ADD_EMPTY_RANGE" | "ADD_RANGE" | "REMOVE_RANGE" | "CHANGE_RANGE" | "COPY" | "CUT" | "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" | "SET_HIGHLIGHT_COLOR" | "STOP_COMPOSER_RANGE_SELECTION" | "START_EDITION" | "STOP_EDITION" | "CANCEL_EDITION" | "SET_CURRENT_CONTENT" | "CHANGE_COMPOSER_CURSOR_SELECTION" | "REPLACE_COMPOSER_CURSOR_SELECTION" | "CYCLE_EDITION_REFERENCES" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "UPDATE_SEARCH" | "CLEAR_SEARCH" | "SELECT_SEARCH_PREVIOUS_MATCH" | "SELECT_SEARCH_NEXT_MATCH" | "REPLACE_SEARCH" | "REPLACE_ALL_SEARCH" | "SET_DECIMAL" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "OPEN_CELL_POPOVER" | "CLOSE_CELL_POPOVER" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE">;
|
|
1699
|
-
declare const invalidateCFEvaluationCommands: Set<"SORT_CELLS" | "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_FILTER_TABLE" | "REMOVE_FILTER_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" | "ENABLE_NEW_SELECTION_INPUT" | "DISABLE_SELECTION_INPUT" | "UNFOCUS_SELECTION_INPUT" | "FOCUS_RANGE" | "ADD_EMPTY_RANGE" | "ADD_RANGE" | "REMOVE_RANGE" | "CHANGE_RANGE" | "COPY" | "CUT" | "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" | "SET_HIGHLIGHT_COLOR" | "STOP_COMPOSER_RANGE_SELECTION" | "START_EDITION" | "STOP_EDITION" | "CANCEL_EDITION" | "SET_CURRENT_CONTENT" | "CHANGE_COMPOSER_CURSOR_SELECTION" | "REPLACE_COMPOSER_CURSOR_SELECTION" | "CYCLE_EDITION_REFERENCES" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "UPDATE_SEARCH" | "CLEAR_SEARCH" | "SELECT_SEARCH_PREVIOUS_MATCH" | "SELECT_SEARCH_NEXT_MATCH" | "REPLACE_SEARCH" | "REPLACE_ALL_SEARCH" | "SET_DECIMAL" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "OPEN_CELL_POPOVER" | "CLOSE_CELL_POPOVER" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE">;
|
|
1700
|
-
declare const readonlyAllowedCommands: Set<"SORT_CELLS" | "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_FILTER_TABLE" | "REMOVE_FILTER_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" | "ENABLE_NEW_SELECTION_INPUT" | "DISABLE_SELECTION_INPUT" | "UNFOCUS_SELECTION_INPUT" | "FOCUS_RANGE" | "ADD_EMPTY_RANGE" | "ADD_RANGE" | "REMOVE_RANGE" | "CHANGE_RANGE" | "COPY" | "CUT" | "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" | "SET_HIGHLIGHT_COLOR" | "STOP_COMPOSER_RANGE_SELECTION" | "START_EDITION" | "STOP_EDITION" | "CANCEL_EDITION" | "SET_CURRENT_CONTENT" | "CHANGE_COMPOSER_CURSOR_SELECTION" | "REPLACE_COMPOSER_CURSOR_SELECTION" | "CYCLE_EDITION_REFERENCES" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "UPDATE_SEARCH" | "CLEAR_SEARCH" | "SELECT_SEARCH_PREVIOUS_MATCH" | "SELECT_SEARCH_NEXT_MATCH" | "REPLACE_SEARCH" | "REPLACE_ALL_SEARCH" | "SET_DECIMAL" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "OPEN_CELL_POPOVER" | "CLOSE_CELL_POPOVER" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE">;
|
|
1701
|
-
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_FILTER_TABLE" | "REMOVE_FILTER_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">;
|
|
1697
|
+
declare const invalidateEvaluationCommands: Set<"SORT_CELLS" | "UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "CLEAR_CELLS" | "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_FILTER_TABLE" | "REMOVE_FILTER_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" | "ENABLE_NEW_SELECTION_INPUT" | "DISABLE_SELECTION_INPUT" | "UNFOCUS_SELECTION_INPUT" | "FOCUS_RANGE" | "ADD_EMPTY_RANGE" | "ADD_RANGE" | "REMOVE_RANGE" | "CHANGE_RANGE" | "COPY" | "CUT" | "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" | "SET_HIGHLIGHT_COLOR" | "STOP_COMPOSER_RANGE_SELECTION" | "START_EDITION" | "STOP_EDITION" | "CANCEL_EDITION" | "SET_CURRENT_CONTENT" | "CHANGE_COMPOSER_CURSOR_SELECTION" | "REPLACE_COMPOSER_CURSOR_SELECTION" | "CYCLE_EDITION_REFERENCES" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "UPDATE_SEARCH" | "CLEAR_SEARCH" | "SELECT_SEARCH_PREVIOUS_MATCH" | "SELECT_SEARCH_NEXT_MATCH" | "REPLACE_SEARCH" | "REPLACE_ALL_SEARCH" | "SET_DECIMAL" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "OPEN_CELL_POPOVER" | "CLOSE_CELL_POPOVER" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE">;
|
|
1698
|
+
declare const invalidateDependenciesCommands: Set<"SORT_CELLS" | "UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "CLEAR_CELLS" | "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_FILTER_TABLE" | "REMOVE_FILTER_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" | "ENABLE_NEW_SELECTION_INPUT" | "DISABLE_SELECTION_INPUT" | "UNFOCUS_SELECTION_INPUT" | "FOCUS_RANGE" | "ADD_EMPTY_RANGE" | "ADD_RANGE" | "REMOVE_RANGE" | "CHANGE_RANGE" | "COPY" | "CUT" | "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" | "SET_HIGHLIGHT_COLOR" | "STOP_COMPOSER_RANGE_SELECTION" | "START_EDITION" | "STOP_EDITION" | "CANCEL_EDITION" | "SET_CURRENT_CONTENT" | "CHANGE_COMPOSER_CURSOR_SELECTION" | "REPLACE_COMPOSER_CURSOR_SELECTION" | "CYCLE_EDITION_REFERENCES" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "UPDATE_SEARCH" | "CLEAR_SEARCH" | "SELECT_SEARCH_PREVIOUS_MATCH" | "SELECT_SEARCH_NEXT_MATCH" | "REPLACE_SEARCH" | "REPLACE_ALL_SEARCH" | "SET_DECIMAL" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "OPEN_CELL_POPOVER" | "CLOSE_CELL_POPOVER" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE">;
|
|
1699
|
+
declare const invalidateCFEvaluationCommands: Set<"SORT_CELLS" | "UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "CLEAR_CELLS" | "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_FILTER_TABLE" | "REMOVE_FILTER_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" | "ENABLE_NEW_SELECTION_INPUT" | "DISABLE_SELECTION_INPUT" | "UNFOCUS_SELECTION_INPUT" | "FOCUS_RANGE" | "ADD_EMPTY_RANGE" | "ADD_RANGE" | "REMOVE_RANGE" | "CHANGE_RANGE" | "COPY" | "CUT" | "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" | "SET_HIGHLIGHT_COLOR" | "STOP_COMPOSER_RANGE_SELECTION" | "START_EDITION" | "STOP_EDITION" | "CANCEL_EDITION" | "SET_CURRENT_CONTENT" | "CHANGE_COMPOSER_CURSOR_SELECTION" | "REPLACE_COMPOSER_CURSOR_SELECTION" | "CYCLE_EDITION_REFERENCES" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "UPDATE_SEARCH" | "CLEAR_SEARCH" | "SELECT_SEARCH_PREVIOUS_MATCH" | "SELECT_SEARCH_NEXT_MATCH" | "REPLACE_SEARCH" | "REPLACE_ALL_SEARCH" | "SET_DECIMAL" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "OPEN_CELL_POPOVER" | "CLOSE_CELL_POPOVER" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE">;
|
|
1700
|
+
declare const readonlyAllowedCommands: Set<"SORT_CELLS" | "UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "CLEAR_CELLS" | "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_FILTER_TABLE" | "REMOVE_FILTER_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" | "ENABLE_NEW_SELECTION_INPUT" | "DISABLE_SELECTION_INPUT" | "UNFOCUS_SELECTION_INPUT" | "FOCUS_RANGE" | "ADD_EMPTY_RANGE" | "ADD_RANGE" | "REMOVE_RANGE" | "CHANGE_RANGE" | "COPY" | "CUT" | "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" | "SET_HIGHLIGHT_COLOR" | "STOP_COMPOSER_RANGE_SELECTION" | "START_EDITION" | "STOP_EDITION" | "CANCEL_EDITION" | "SET_CURRENT_CONTENT" | "CHANGE_COMPOSER_CURSOR_SELECTION" | "REPLACE_COMPOSER_CURSOR_SELECTION" | "CYCLE_EDITION_REFERENCES" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "UPDATE_SEARCH" | "CLEAR_SEARCH" | "SELECT_SEARCH_PREVIOUS_MATCH" | "SELECT_SEARCH_NEXT_MATCH" | "REPLACE_SEARCH" | "REPLACE_ALL_SEARCH" | "SET_DECIMAL" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "OPEN_CELL_POPOVER" | "CLOSE_CELL_POPOVER" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE">;
|
|
1701
|
+
declare const coreTypes: Set<"UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "CLEAR_CELLS" | "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_FILTER_TABLE" | "REMOVE_FILTER_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">;
|
|
1702
1702
|
interface UpdateCellCommand extends PositionDependentCommand {
|
|
1703
1703
|
type: "UPDATE_CELL";
|
|
1704
1704
|
content?: string;
|
|
@@ -2078,6 +2078,9 @@ interface DeleteContentCommand {
|
|
|
2078
2078
|
interface ClearCellCommand extends PositionDependentCommand {
|
|
2079
2079
|
type: "CLEAR_CELL";
|
|
2080
2080
|
}
|
|
2081
|
+
interface ClearCellsCommand extends TargetDependentCommand {
|
|
2082
|
+
type: "CLEAR_CELLS";
|
|
2083
|
+
}
|
|
2081
2084
|
interface UndoCommand {
|
|
2082
2085
|
type: "UNDO";
|
|
2083
2086
|
commands: readonly CoreCommand[];
|
|
@@ -2293,7 +2296,7 @@ interface SplitTextIntoColumnsCommand {
|
|
|
2293
2296
|
}
|
|
2294
2297
|
type CoreCommand =
|
|
2295
2298
|
/** CELLS */
|
|
2296
|
-
UpdateCellCommand | UpdateCellPositionCommand | ClearCellCommand | DeleteContentCommand
|
|
2299
|
+
UpdateCellCommand | UpdateCellPositionCommand | ClearCellCommand | ClearCellsCommand | DeleteContentCommand
|
|
2297
2300
|
/** GRID SHAPE */
|
|
2298
2301
|
| AddColumnsRowsCommand | RemoveColumnsRowsCommand | ResizeColumnsRowsCommand | HideColumnsRowsCommand | UnhideColumnsRowsCommand | SetGridLinesVisibilityCommand | FreezeColumnsCommand | FreezeRowsCommand | UnfreezeColumnsRowsCommand | UnfreezeColumnsCommand | UnfreezeRowsCommand
|
|
2299
2302
|
/** MERGE */
|
|
@@ -3292,6 +3295,10 @@ declare class CellPlugin extends CorePlugin<CoreState> implements CoreState {
|
|
|
3292
3295
|
* Clear the styles and format of zones
|
|
3293
3296
|
*/
|
|
3294
3297
|
private clearFormatting;
|
|
3298
|
+
/**
|
|
3299
|
+
* Clear the styles, the format and the content of zones
|
|
3300
|
+
*/
|
|
3301
|
+
private clearCells;
|
|
3295
3302
|
/**
|
|
3296
3303
|
* Copy the style of the reference column/row to the new columns/rows.
|
|
3297
3304
|
*/
|
|
@@ -4006,7 +4013,7 @@ declare class SheetPlugin extends CorePlugin<SheetState> implements SheetState {
|
|
|
4006
4013
|
}
|
|
4007
4014
|
|
|
4008
4015
|
declare class EvaluationPlugin extends UIPlugin {
|
|
4009
|
-
static getters: readonly ["evaluateFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getSpreadPositionsOf", "getArrayFormulaSpreadingOn", "isEmpty"];
|
|
4016
|
+
static getters: readonly ["evaluateFormula", "evaluateFormulaResult", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getSpreadPositionsOf", "getArrayFormulaSpreadingOn", "isEmpty"];
|
|
4010
4017
|
private shouldRebuildDependenciesGraph;
|
|
4011
4018
|
private evaluator;
|
|
4012
4019
|
private positionsToUpdate;
|
|
@@ -4015,6 +4022,7 @@ declare class EvaluationPlugin extends UIPlugin {
|
|
|
4015
4022
|
handle(cmd: CoreViewCommand): void;
|
|
4016
4023
|
finalize(): void;
|
|
4017
4024
|
evaluateFormula(sheetId: UID, formulaString: string): CellValue | Matrix<CellValue>;
|
|
4025
|
+
evaluateFormulaResult(sheetId: UID, formulaString: string): Matrix<FPayload> | FPayload;
|
|
4018
4026
|
/**
|
|
4019
4027
|
* Return the value of each cell in the range as they are displayed in the grid.
|
|
4020
4028
|
*/
|