@odoo/o-spreadsheet 17.0.33 → 17.0.35
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 +99 -64
- package/dist/o-spreadsheet.d.ts +16 -8
- package/dist/o-spreadsheet.esm.js +99 -64
- package/dist/o-spreadsheet.iife.js +99 -64
- package/dist/o-spreadsheet.iife.min.js +168 -168
- package/dist/o_spreadsheet.xml +3 -3
- package/package.json +1 -1
|
@@ -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.0.
|
|
6
|
-
* @date 2024-08-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 17.0.35
|
|
6
|
+
* @date 2024-08-19T08:09:02.631Z
|
|
7
|
+
* @hash 5572654
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
'use strict';
|
|
@@ -1955,6 +1955,7 @@ const coreTypes = new Set([
|
|
|
1955
1955
|
"UPDATE_CELL",
|
|
1956
1956
|
"UPDATE_CELL_POSITION",
|
|
1957
1957
|
"CLEAR_CELL",
|
|
1958
|
+
"CLEAR_CELLS",
|
|
1958
1959
|
"DELETE_CONTENT",
|
|
1959
1960
|
/** GRID SHAPE */
|
|
1960
1961
|
"ADD_COLUMNS_ROWS",
|
|
@@ -35188,7 +35189,7 @@ function parse(str) {
|
|
|
35188
35189
|
}
|
|
35189
35190
|
function parseTokens(tokens) {
|
|
35190
35191
|
tokens = tokens.filter((x) => x.type !== "SPACE");
|
|
35191
|
-
if (tokens[0]
|
|
35192
|
+
if (tokens[0]?.value === "=") {
|
|
35192
35193
|
tokens.splice(0, 1);
|
|
35193
35194
|
}
|
|
35194
35195
|
const result = parseExpression(tokens);
|
|
@@ -35778,6 +35779,9 @@ class CellPlugin extends CorePlugin {
|
|
|
35778
35779
|
format: "",
|
|
35779
35780
|
});
|
|
35780
35781
|
break;
|
|
35782
|
+
case "CLEAR_CELLS":
|
|
35783
|
+
this.clearCells(cmd.sheetId, cmd.target);
|
|
35784
|
+
break;
|
|
35781
35785
|
}
|
|
35782
35786
|
}
|
|
35783
35787
|
/**
|
|
@@ -35816,6 +35820,25 @@ class CellPlugin extends CorePlugin {
|
|
|
35816
35820
|
}
|
|
35817
35821
|
}
|
|
35818
35822
|
}
|
|
35823
|
+
/**
|
|
35824
|
+
* Clear the styles, the format and the content of zones
|
|
35825
|
+
*/
|
|
35826
|
+
clearCells(sheetId, zones) {
|
|
35827
|
+
for (const zone of zones) {
|
|
35828
|
+
for (let col = zone.left; col <= zone.right; col++) {
|
|
35829
|
+
for (let row = zone.top; row <= zone.bottom; row++) {
|
|
35830
|
+
this.dispatch("UPDATE_CELL", {
|
|
35831
|
+
sheetId: sheetId,
|
|
35832
|
+
col,
|
|
35833
|
+
row,
|
|
35834
|
+
content: "",
|
|
35835
|
+
style: null,
|
|
35836
|
+
format: "",
|
|
35837
|
+
});
|
|
35838
|
+
}
|
|
35839
|
+
}
|
|
35840
|
+
}
|
|
35841
|
+
}
|
|
35819
35842
|
/**
|
|
35820
35843
|
* Copy the style of the reference column/row to the new columns/rows.
|
|
35821
35844
|
*/
|
|
@@ -38662,7 +38685,7 @@ class RangeAdapter {
|
|
|
38662
38685
|
* @param sheetXC the string description of a range, in the form SheetName!XC:XC
|
|
38663
38686
|
*/
|
|
38664
38687
|
getRangeFromSheetXC(defaultSheetId, sheetXC) {
|
|
38665
|
-
if (!rangeReference.test(sheetXC)) {
|
|
38688
|
+
if (!rangeReference.test(sheetXC) || !this.getters.tryGetSheet(defaultSheetId)) {
|
|
38666
38689
|
return new RangeImpl({
|
|
38667
38690
|
sheetId: "",
|
|
38668
38691
|
zone: { left: -1, top: -1, right: -1, bottom: -1 },
|
|
@@ -39548,19 +39571,23 @@ class SheetPlugin extends CorePlugin {
|
|
|
39548
39571
|
}
|
|
39549
39572
|
}
|
|
39550
39573
|
moveCellOnColumnsDeletion(sheet, deletedColumn) {
|
|
39574
|
+
this.dispatch("CLEAR_CELLS", {
|
|
39575
|
+
sheetId: sheet.id,
|
|
39576
|
+
target: [
|
|
39577
|
+
{
|
|
39578
|
+
left: deletedColumn,
|
|
39579
|
+
top: 0,
|
|
39580
|
+
right: deletedColumn,
|
|
39581
|
+
bottom: sheet.rows.length - 1,
|
|
39582
|
+
},
|
|
39583
|
+
],
|
|
39584
|
+
});
|
|
39551
39585
|
for (let rowIndex = 0; rowIndex < sheet.rows.length; rowIndex++) {
|
|
39552
39586
|
const row = sheet.rows[rowIndex];
|
|
39553
39587
|
for (let i in row.cells) {
|
|
39554
39588
|
const colIndex = Number(i);
|
|
39555
39589
|
const cellId = row.cells[i];
|
|
39556
39590
|
if (cellId) {
|
|
39557
|
-
if (colIndex === deletedColumn) {
|
|
39558
|
-
this.dispatch("CLEAR_CELL", {
|
|
39559
|
-
sheetId: sheet.id,
|
|
39560
|
-
col: colIndex,
|
|
39561
|
-
row: rowIndex,
|
|
39562
|
-
});
|
|
39563
|
-
}
|
|
39564
39591
|
if (colIndex > deletedColumn) {
|
|
39565
39592
|
this.setNewPosition(cellId, sheet.id, colIndex - 1, rowIndex);
|
|
39566
39593
|
}
|
|
@@ -39606,22 +39633,20 @@ class SheetPlugin extends CorePlugin {
|
|
|
39606
39633
|
*
|
|
39607
39634
|
*/
|
|
39608
39635
|
moveCellOnRowsDeletion(sheet, deleteFromRow, deleteToRow) {
|
|
39636
|
+
this.dispatch("CLEAR_CELLS", {
|
|
39637
|
+
sheetId: sheet.id,
|
|
39638
|
+
target: [
|
|
39639
|
+
{
|
|
39640
|
+
left: 0,
|
|
39641
|
+
top: deleteFromRow,
|
|
39642
|
+
right: this.getters.getNumberCols(sheet.id),
|
|
39643
|
+
bottom: deleteToRow,
|
|
39644
|
+
},
|
|
39645
|
+
],
|
|
39646
|
+
});
|
|
39609
39647
|
const numberRows = deleteToRow - deleteFromRow + 1;
|
|
39610
39648
|
for (let rowIndex = 0; rowIndex < sheet.rows.length; rowIndex++) {
|
|
39611
39649
|
const row = sheet.rows[rowIndex];
|
|
39612
|
-
if (rowIndex >= deleteFromRow && rowIndex <= deleteToRow) {
|
|
39613
|
-
for (let i in row.cells) {
|
|
39614
|
-
const colIndex = Number(i);
|
|
39615
|
-
const cellId = row.cells[i];
|
|
39616
|
-
if (cellId) {
|
|
39617
|
-
this.dispatch("CLEAR_CELL", {
|
|
39618
|
-
sheetId: sheet.id,
|
|
39619
|
-
col: colIndex,
|
|
39620
|
-
row: rowIndex,
|
|
39621
|
-
});
|
|
39622
|
-
}
|
|
39623
|
-
}
|
|
39624
|
-
}
|
|
39625
39650
|
if (rowIndex > deleteToRow) {
|
|
39626
39651
|
for (let i in row.cells) {
|
|
39627
39652
|
const colIndex = Number(i);
|
|
@@ -41604,15 +41629,16 @@ class Evaluator {
|
|
|
41604
41629
|
this.evaluatedCells = new Map();
|
|
41605
41630
|
this.evaluate(this.getAllCells());
|
|
41606
41631
|
}
|
|
41607
|
-
|
|
41608
|
-
|
|
41609
|
-
|
|
41610
|
-
|
|
41611
|
-
|
|
41612
|
-
|
|
41613
|
-
|
|
41632
|
+
evaluateFormulaResult(sheetId, formulaString) {
|
|
41633
|
+
try {
|
|
41634
|
+
const compiledFormula = compile(formulaString);
|
|
41635
|
+
const ranges = compiledFormula.dependencies.map((xc) => this.getters.getRangeFromSheetXC(sheetId, xc));
|
|
41636
|
+
this.updateCompilationParameters();
|
|
41637
|
+
return compiledFormula.execute(ranges, ...this.compilationParams);
|
|
41638
|
+
}
|
|
41639
|
+
catch (error) {
|
|
41640
|
+
return this.handleError(error);
|
|
41614
41641
|
}
|
|
41615
|
-
return array.value;
|
|
41616
41642
|
}
|
|
41617
41643
|
getAllCells() {
|
|
41618
41644
|
const positionIds = new JetSet();
|
|
@@ -41688,7 +41714,7 @@ class Evaluator {
|
|
|
41688
41714
|
: evaluateLiteral(cell.content, { format: cell.format, locale: this.getters.getLocale() });
|
|
41689
41715
|
}
|
|
41690
41716
|
catch (e) {
|
|
41691
|
-
return this.handleError(e
|
|
41717
|
+
return this.handleError(e);
|
|
41692
41718
|
}
|
|
41693
41719
|
finally {
|
|
41694
41720
|
this.cellsBeingComputed.delete(cellId);
|
|
@@ -41703,7 +41729,7 @@ class Evaluator {
|
|
|
41703
41729
|
}
|
|
41704
41730
|
return evaluatedCell;
|
|
41705
41731
|
}
|
|
41706
|
-
handleError(e
|
|
41732
|
+
handleError(e) {
|
|
41707
41733
|
if (!(e instanceof EvaluationError)) {
|
|
41708
41734
|
e = new EvaluationError(CellErrorType.GenericError, e.message);
|
|
41709
41735
|
}
|
|
@@ -42037,6 +42063,7 @@ class PositionBitsEncoder {
|
|
|
42037
42063
|
class EvaluationPlugin extends UIPlugin {
|
|
42038
42064
|
static getters = [
|
|
42039
42065
|
"evaluateFormula",
|
|
42066
|
+
"evaluateFormulaResult",
|
|
42040
42067
|
"getCorrespondingFormulaCell",
|
|
42041
42068
|
"getRangeFormattedValues",
|
|
42042
42069
|
"getRangeValues",
|
|
@@ -42094,12 +42121,14 @@ class EvaluationPlugin extends UIPlugin {
|
|
|
42094
42121
|
// Getters
|
|
42095
42122
|
// ---------------------------------------------------------------------------
|
|
42096
42123
|
evaluateFormula(sheetId, formulaString) {
|
|
42097
|
-
|
|
42098
|
-
|
|
42099
|
-
|
|
42100
|
-
catch (error) {
|
|
42101
|
-
return error instanceof EvaluationError ? error.errorType : CellErrorType.GenericError;
|
|
42124
|
+
const result = this.evaluateFormulaResult(sheetId, formulaString);
|
|
42125
|
+
if (isMatrix(result)) {
|
|
42126
|
+
return matrixMap(result, (cell) => cell.value);
|
|
42102
42127
|
}
|
|
42128
|
+
return result.value;
|
|
42129
|
+
}
|
|
42130
|
+
evaluateFormulaResult(sheetId, formulaString) {
|
|
42131
|
+
return this.evaluator.evaluateFormulaResult(sheetId, formulaString);
|
|
42103
42132
|
}
|
|
42104
42133
|
/**
|
|
42105
42134
|
* Return the value of each cell in the range as they are displayed in the grid.
|
|
@@ -44453,7 +44482,7 @@ class Session extends EventBus {
|
|
|
44453
44482
|
*/
|
|
44454
44483
|
leave(data) {
|
|
44455
44484
|
if (Object.keys(this.clients).length === 1 && this.processedRevisions.size) {
|
|
44456
|
-
this.snapshot(data);
|
|
44485
|
+
this.snapshot(data());
|
|
44457
44486
|
}
|
|
44458
44487
|
delete this.clients[this.clientId];
|
|
44459
44488
|
this.transportService.leave(this.clientId);
|
|
@@ -45124,13 +45153,10 @@ class ClipboardCellsState extends ClipboardCellsAbstractState {
|
|
|
45124
45153
|
* Clear the clipped zones: remove the cells and clear the formatting
|
|
45125
45154
|
*/
|
|
45126
45155
|
clearClippedZones() {
|
|
45127
|
-
|
|
45128
|
-
|
|
45129
|
-
|
|
45130
|
-
|
|
45131
|
-
}
|
|
45132
|
-
}
|
|
45133
|
-
}
|
|
45156
|
+
this.dispatch("CLEAR_CELLS", {
|
|
45157
|
+
sheetId: this.sheetId,
|
|
45158
|
+
target: this.zones,
|
|
45159
|
+
});
|
|
45134
45160
|
this.dispatch("CLEAR_FORMATTING", {
|
|
45135
45161
|
sheetId: this.sheetId,
|
|
45136
45162
|
target: this.zones,
|
|
@@ -45478,9 +45504,7 @@ class DataCleanupPlugin extends UIPlugin {
|
|
|
45478
45504
|
bottom: rowIndex,
|
|
45479
45505
|
}));
|
|
45480
45506
|
const state = new ClipboardCellsState(rowsToKeep, "COPY", this.getters, this.dispatch, this.selection);
|
|
45481
|
-
|
|
45482
|
-
this.dispatch("CLEAR_CELL", { col, row, sheetId });
|
|
45483
|
-
}
|
|
45507
|
+
this.dispatch("CLEAR_CELLS", { target: [zone], sheetId });
|
|
45484
45508
|
const zonePasted = {
|
|
45485
45509
|
left: zone.left,
|
|
45486
45510
|
top: zone.top,
|
|
@@ -45899,6 +45923,7 @@ class FormatPlugin extends UIPlugin {
|
|
|
45899
45923
|
* evaluated and updated with the number type.
|
|
45900
45924
|
*/
|
|
45901
45925
|
setDecimal(sheetId, zones, step) {
|
|
45926
|
+
const positionsByFormat = {};
|
|
45902
45927
|
// Find the each cell with a number value and get the format
|
|
45903
45928
|
for (const zone of zones) {
|
|
45904
45929
|
for (const position of positions(zone)) {
|
|
@@ -45908,15 +45933,20 @@ class FormatPlugin extends UIPlugin {
|
|
|
45908
45933
|
// of the format
|
|
45909
45934
|
this.getters.getLocale();
|
|
45910
45935
|
const newFormat = changeDecimalPlaces(numberFormat, step);
|
|
45911
|
-
|
|
45912
|
-
|
|
45913
|
-
sheetId,
|
|
45914
|
-
target: [positionToZone(position)],
|
|
45915
|
-
format: newFormat,
|
|
45916
|
-
});
|
|
45936
|
+
positionsByFormat[newFormat] = positionsByFormat[newFormat] || [];
|
|
45937
|
+
positionsByFormat[newFormat].push(position);
|
|
45917
45938
|
}
|
|
45918
45939
|
}
|
|
45919
45940
|
}
|
|
45941
|
+
// consolidate all positions with the same format in bigger zones
|
|
45942
|
+
for (const newFormat in positionsByFormat) {
|
|
45943
|
+
const zones = futureRecomputeZones(positionsByFormat[newFormat].map((position) => positionToZone(position)));
|
|
45944
|
+
this.dispatch("SET_FORMATTING", {
|
|
45945
|
+
sheetId,
|
|
45946
|
+
format: newFormat,
|
|
45947
|
+
target: zones,
|
|
45948
|
+
});
|
|
45949
|
+
}
|
|
45920
45950
|
}
|
|
45921
45951
|
/**
|
|
45922
45952
|
* Take a range of cells and return the format of the first cell containing a
|
|
@@ -47546,6 +47576,9 @@ class SheetUIPlugin extends UIPlugin {
|
|
|
47546
47576
|
if (showFormula && cell?.isFormula) {
|
|
47547
47577
|
return localizeFormula(cell.content, this.getters.getLocale());
|
|
47548
47578
|
}
|
|
47579
|
+
else if (showFormula && !cell?.content) {
|
|
47580
|
+
return "";
|
|
47581
|
+
}
|
|
47549
47582
|
else {
|
|
47550
47583
|
return this.getters.getEvaluatedCell(position).formattedValue;
|
|
47551
47584
|
}
|
|
@@ -47741,6 +47774,7 @@ function repeatGroupHeadersCommand(getters, cmd) {
|
|
|
47741
47774
|
const repeatCommandTransformRegistry = new Registry();
|
|
47742
47775
|
repeatCommandTransformRegistry.add("UPDATE_CELL", genericRepeat);
|
|
47743
47776
|
repeatCommandTransformRegistry.add("CLEAR_CELL", genericRepeat);
|
|
47777
|
+
repeatCommandTransformRegistry.add("CLEAR_CELLS", genericRepeat);
|
|
47744
47778
|
repeatCommandTransformRegistry.add("DELETE_CONTENT", genericRepeat);
|
|
47745
47779
|
repeatCommandTransformRegistry.add("ADD_MERGE", genericRepeat);
|
|
47746
47780
|
repeatCommandTransformRegistry.add("REMOVE_MERGE", genericRepeat);
|
|
@@ -48480,9 +48514,10 @@ class ClipboardPlugin extends UIPlugin {
|
|
|
48480
48514
|
case "DELETE_CELL": {
|
|
48481
48515
|
const { cut, paste } = this.getDeleteCellsTargets(cmd.zone, cmd.shiftDimension);
|
|
48482
48516
|
if (!isZoneValid(cut[0])) {
|
|
48483
|
-
|
|
48484
|
-
|
|
48485
|
-
|
|
48517
|
+
this.dispatch("CLEAR_CELLS", {
|
|
48518
|
+
target: [cmd.zone],
|
|
48519
|
+
sheetId: this.getters.getActiveSheetId(),
|
|
48520
|
+
});
|
|
48486
48521
|
break;
|
|
48487
48522
|
}
|
|
48488
48523
|
const state = this.getClipboardStateForCopyCells(cut, "CUT");
|
|
@@ -57083,7 +57118,7 @@ class Model extends EventBus {
|
|
|
57083
57118
|
this.session.join(this.config.client);
|
|
57084
57119
|
}
|
|
57085
57120
|
leaveSession() {
|
|
57086
|
-
this.session.leave(this.exportData());
|
|
57121
|
+
this.session.leave(lazy(() => this.exportData()));
|
|
57087
57122
|
}
|
|
57088
57123
|
setupUiPlugin(Plugin) {
|
|
57089
57124
|
const plugin = new Plugin(this.uiPluginConfig);
|
|
@@ -57586,6 +57621,6 @@ exports.setTranslationMethod = setTranslationMethod;
|
|
|
57586
57621
|
exports.tokenize = tokenize;
|
|
57587
57622
|
|
|
57588
57623
|
|
|
57589
|
-
__info__.version = "17.0.
|
|
57590
|
-
__info__.date = "2024-08-
|
|
57591
|
-
__info__.hash = "
|
|
57624
|
+
__info__.version = "17.0.35";
|
|
57625
|
+
__info__.date = "2024-08-19T08:09:02.631Z";
|
|
57626
|
+
__info__.hash = "5572654";
|
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -852,7 +852,7 @@ declare class Session extends EventBus<CollaborativeEvent> {
|
|
|
852
852
|
/**
|
|
853
853
|
* Notify the server that the user client left the collaborative session
|
|
854
854
|
*/
|
|
855
|
-
leave(data: WorkbookData): void;
|
|
855
|
+
leave(data: Lazy<WorkbookData>): void;
|
|
856
856
|
/**
|
|
857
857
|
* Send a snapshot of the spreadsheet to the collaboration server
|
|
858
858
|
*/
|
|
@@ -1771,11 +1771,11 @@ interface ZoneDependentCommand {
|
|
|
1771
1771
|
sheetId: UID;
|
|
1772
1772
|
zone: Zone;
|
|
1773
1773
|
}
|
|
1774
|
-
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">;
|
|
1775
|
-
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">;
|
|
1776
|
-
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">;
|
|
1777
|
-
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">;
|
|
1778
|
-
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">;
|
|
1774
|
+
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">;
|
|
1775
|
+
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">;
|
|
1776
|
+
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">;
|
|
1777
|
+
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">;
|
|
1778
|
+
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">;
|
|
1779
1779
|
interface UpdateCellCommand extends PositionDependentCommand {
|
|
1780
1780
|
type: "UPDATE_CELL";
|
|
1781
1781
|
content?: string;
|
|
@@ -2161,6 +2161,9 @@ interface DeleteContentCommand {
|
|
|
2161
2161
|
interface ClearCellCommand extends PositionDependentCommand {
|
|
2162
2162
|
type: "CLEAR_CELL";
|
|
2163
2163
|
}
|
|
2164
|
+
interface ClearCellsCommand extends TargetDependentCommand {
|
|
2165
|
+
type: "CLEAR_CELLS";
|
|
2166
|
+
}
|
|
2164
2167
|
interface UndoCommand {
|
|
2165
2168
|
type: "UNDO";
|
|
2166
2169
|
commands: readonly CoreCommand[];
|
|
@@ -2376,7 +2379,7 @@ interface SplitTextIntoColumnsCommand {
|
|
|
2376
2379
|
}
|
|
2377
2380
|
type CoreCommand =
|
|
2378
2381
|
/** CELLS */
|
|
2379
|
-
UpdateCellCommand | UpdateCellPositionCommand | ClearCellCommand | DeleteContentCommand
|
|
2382
|
+
UpdateCellCommand | UpdateCellPositionCommand | ClearCellCommand | ClearCellsCommand | DeleteContentCommand
|
|
2380
2383
|
/** GRID SHAPE */
|
|
2381
2384
|
| AddColumnsRowsCommand | RemoveColumnsRowsCommand | ResizeColumnsRowsCommand | HideColumnsRowsCommand | UnhideColumnsRowsCommand | SetGridLinesVisibilityCommand | FreezeColumnsCommand | FreezeRowsCommand | UnfreezeColumnsRowsCommand | UnfreezeColumnsCommand | UnfreezeRowsCommand
|
|
2382
2385
|
/** MERGE */
|
|
@@ -3420,6 +3423,10 @@ declare class CellPlugin extends CorePlugin<CoreState> implements CoreState {
|
|
|
3420
3423
|
* Clear the styles and format of zones
|
|
3421
3424
|
*/
|
|
3422
3425
|
private clearFormatting;
|
|
3426
|
+
/**
|
|
3427
|
+
* Clear the styles, the format and the content of zones
|
|
3428
|
+
*/
|
|
3429
|
+
private clearCells;
|
|
3423
3430
|
/**
|
|
3424
3431
|
* Copy the style of the reference column/row to the new columns/rows.
|
|
3425
3432
|
*/
|
|
@@ -4134,7 +4141,7 @@ declare class SheetPlugin extends CorePlugin<SheetState> implements SheetState {
|
|
|
4134
4141
|
}
|
|
4135
4142
|
|
|
4136
4143
|
declare class EvaluationPlugin extends UIPlugin {
|
|
4137
|
-
static getters: readonly ["evaluateFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getSpreadPositionsOf", "getArrayFormulaSpreadingOn", "isEmpty"];
|
|
4144
|
+
static getters: readonly ["evaluateFormula", "evaluateFormulaResult", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getSpreadPositionsOf", "getArrayFormulaSpreadingOn", "isEmpty"];
|
|
4138
4145
|
private shouldRebuildDependenciesGraph;
|
|
4139
4146
|
private evaluator;
|
|
4140
4147
|
private positionsToUpdate;
|
|
@@ -4143,6 +4150,7 @@ declare class EvaluationPlugin extends UIPlugin {
|
|
|
4143
4150
|
handle(cmd: CoreViewCommand): void;
|
|
4144
4151
|
finalize(): void;
|
|
4145
4152
|
evaluateFormula(sheetId: UID, formulaString: string): CellValue | Matrix<CellValue>;
|
|
4153
|
+
evaluateFormulaResult(sheetId: UID, formulaString: string): ValueAndFormat | Matrix<ValueAndFormat>;
|
|
4146
4154
|
/**
|
|
4147
4155
|
* Return the value of each cell in the range as they are displayed in the grid.
|
|
4148
4156
|
*/
|