@odoo/o-spreadsheet 17.2.0-alpha.6 → 17.2.0-alpha.8
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 +478 -218
- package/dist/o-spreadsheet.d.ts +156 -119
- package/dist/o-spreadsheet.esm.js +478 -218
- package/dist/o-spreadsheet.iife.js +478 -218
- package/dist/o-spreadsheet.iife.min.js +280 -278
- package/dist/o_spreadsheet.xml +22 -13
- package/package.json +1 -1
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ChartConfiguration } from 'chart.js';
|
|
1
2
|
import * as _odoo_owl from '@odoo/owl';
|
|
2
3
|
import { ComponentConstructor, Component } from '@odoo/owl';
|
|
3
|
-
import { ChartConfiguration } from 'chart.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* An injectable store constructor
|
|
@@ -133,87 +133,6 @@ interface Subscription {
|
|
|
133
133
|
callback: Callback;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
declare const functionCache: {
|
|
137
|
-
[key: string]: Omit<CompiledFormula, "dependencies" | "tokens">;
|
|
138
|
-
};
|
|
139
|
-
declare function compile(formula: string): CompiledFormula;
|
|
140
|
-
declare function compileTokens(tokens: Token[]): CompiledFormula;
|
|
141
|
-
|
|
142
|
-
type TokenType = "OPERATOR" | "NUMBER" | "STRING" | "SYMBOL" | "SPACE" | "DEBUGGER" | "ARG_SEPARATOR" | "LEFT_PAREN" | "RIGHT_PAREN" | "REFERENCE" | "INVALID_REFERENCE" | "UNKNOWN";
|
|
143
|
-
interface Token {
|
|
144
|
-
readonly type: TokenType;
|
|
145
|
-
readonly value: string;
|
|
146
|
-
}
|
|
147
|
-
declare function tokenize(str: string, locale?: Locale): Token[];
|
|
148
|
-
|
|
149
|
-
interface ASTBase {
|
|
150
|
-
debug?: boolean;
|
|
151
|
-
}
|
|
152
|
-
interface ASTNumber extends ASTBase {
|
|
153
|
-
type: "NUMBER";
|
|
154
|
-
value: number;
|
|
155
|
-
}
|
|
156
|
-
interface ASTReference extends ASTBase {
|
|
157
|
-
type: "REFERENCE";
|
|
158
|
-
value: string;
|
|
159
|
-
}
|
|
160
|
-
interface ASTString extends ASTBase {
|
|
161
|
-
type: "STRING";
|
|
162
|
-
value: string;
|
|
163
|
-
}
|
|
164
|
-
interface ASTBoolean extends ASTBase {
|
|
165
|
-
type: "BOOLEAN";
|
|
166
|
-
value: boolean;
|
|
167
|
-
}
|
|
168
|
-
interface ASTUnaryOperation extends ASTBase {
|
|
169
|
-
type: "UNARY_OPERATION";
|
|
170
|
-
value: any;
|
|
171
|
-
operand: AST;
|
|
172
|
-
postfix?: boolean;
|
|
173
|
-
}
|
|
174
|
-
interface ASTOperation extends ASTBase {
|
|
175
|
-
type: "BIN_OPERATION";
|
|
176
|
-
value: any;
|
|
177
|
-
left: AST;
|
|
178
|
-
right: AST;
|
|
179
|
-
}
|
|
180
|
-
interface ASTFuncall extends ASTBase {
|
|
181
|
-
type: "FUNCALL";
|
|
182
|
-
value: string;
|
|
183
|
-
args: AST[];
|
|
184
|
-
}
|
|
185
|
-
interface ASTEmpty extends ASTBase {
|
|
186
|
-
type: "EMPTY";
|
|
187
|
-
value: "";
|
|
188
|
-
}
|
|
189
|
-
type AST = ASTOperation | ASTUnaryOperation | ASTFuncall | ASTNumber | ASTBoolean | ASTString | ASTReference | ASTEmpty;
|
|
190
|
-
/**
|
|
191
|
-
* Parse an expression (as a string) into an AST.
|
|
192
|
-
*/
|
|
193
|
-
declare function parse(str: string): AST;
|
|
194
|
-
declare function parseTokens(tokens: Token[]): AST;
|
|
195
|
-
/**
|
|
196
|
-
* Allows to visit all nodes of an AST and apply a mapping function
|
|
197
|
-
* to nodes of a specific type.
|
|
198
|
-
* Useful if you want to convert some part of a formula.
|
|
199
|
-
*
|
|
200
|
-
* @example
|
|
201
|
-
* convertAstNodes(ast, "FUNCALL", convertFormulaToExcel)
|
|
202
|
-
*
|
|
203
|
-
* function convertFormulaToExcel(ast: ASTFuncall) {
|
|
204
|
-
* // ...
|
|
205
|
-
* return modifiedAst
|
|
206
|
-
* }
|
|
207
|
-
*/
|
|
208
|
-
declare function convertAstNodes<T extends AST["type"]>(ast: AST, type: T, fn: (ast: Extract<AST, {
|
|
209
|
-
type: T;
|
|
210
|
-
}>) => AST): AST;
|
|
211
|
-
declare function iterateAstNodes(ast: AST): AST[];
|
|
212
|
-
/**
|
|
213
|
-
* Converts an ast formula to the corresponding string
|
|
214
|
-
*/
|
|
215
|
-
declare function astToFormula(ast: AST): string;
|
|
216
|
-
|
|
217
136
|
interface Figure {
|
|
218
137
|
id: UID;
|
|
219
138
|
x: Pixel;
|
|
@@ -421,6 +340,7 @@ interface ChartCreationContext {
|
|
|
421
340
|
readonly title?: string;
|
|
422
341
|
readonly background?: string;
|
|
423
342
|
readonly auxiliaryRange?: string;
|
|
343
|
+
readonly aggregated?: boolean;
|
|
424
344
|
}
|
|
425
345
|
|
|
426
346
|
declare enum ClipboardMIMEType {
|
|
@@ -502,6 +422,7 @@ interface TableConfig {
|
|
|
502
422
|
numberOfHeaders: number;
|
|
503
423
|
bandedRows: boolean;
|
|
504
424
|
bandedColumns: boolean;
|
|
425
|
+
automaticAutofill?: boolean;
|
|
505
426
|
styleId: string;
|
|
506
427
|
}
|
|
507
428
|
interface ComputedTableStyle {
|
|
@@ -582,10 +503,10 @@ interface ZoneDependentCommand {
|
|
|
582
503
|
}
|
|
583
504
|
declare function isZoneDependent(cmd: CoreCommand): boolean;
|
|
584
505
|
declare function isPositionDependent(cmd: CoreCommand): boolean;
|
|
585
|
-
declare const invalidateEvaluationCommands: Set<"
|
|
586
|
-
declare const invalidateDependenciesCommands: Set<"
|
|
587
|
-
declare const invalidateCFEvaluationCommands: Set<"
|
|
588
|
-
declare const readonlyAllowedCommands: Set<"
|
|
506
|
+
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" | "SET_HIGHLIGHT_COLOR" | "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">;
|
|
507
|
+
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" | "SET_HIGHLIGHT_COLOR" | "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">;
|
|
508
|
+
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" | "SET_HIGHLIGHT_COLOR" | "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">;
|
|
509
|
+
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" | "SET_HIGHLIGHT_COLOR" | "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">;
|
|
589
510
|
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">;
|
|
590
511
|
declare function isCoreCommand(cmd: Command): cmd is CoreCommand;
|
|
591
512
|
declare function canExecuteInReadonly(cmd: Command): boolean;
|
|
@@ -771,6 +692,9 @@ interface UpdateTableCommand {
|
|
|
771
692
|
newTableRange?: RangeData;
|
|
772
693
|
config?: Partial<TableConfig>;
|
|
773
694
|
}
|
|
695
|
+
interface AutofillTableCommand extends PositionDependentCommand {
|
|
696
|
+
type: "AUTOFILL_TABLE_COLUMN";
|
|
697
|
+
}
|
|
774
698
|
interface UpdateFilterCommand extends PositionDependentCommand {
|
|
775
699
|
type: "UPDATE_FILTER";
|
|
776
700
|
hiddenValues: string[];
|
|
@@ -1085,7 +1009,7 @@ UpdateCellCommand | UpdateCellPositionCommand | ClearCellCommand | DeleteContent
|
|
|
1085
1009
|
| AddDataValidationCommand | RemoveDataValidationCommand
|
|
1086
1010
|
/** MISC */
|
|
1087
1011
|
| UpdateLocaleCommand;
|
|
1088
|
-
type LocalCommand = RequestUndoCommand | RequestRedoCommand | UndoCommand | RedoCommand | CopyCommand | CutCommand | PasteCommand | CopyPasteCellsAboveCommand | CopyPasteCellsOnLeftCommand | RepeatPasteCommand | CleanClipBoardHighlightCommand | AutoFillCellCommand | PasteFromOSClipboardCommand | ActivatePaintFormatCommand | CancelPaintFormatCommand | AutoresizeColumnsCommand | AutoresizeRowsCommand | MoveColumnsRowsCommand | ActivateSheetCommand | EvaluateCellsCommand | StartChangeHighlightCommand | SetColorCommand | StartCommand | AutofillCommand | AutofillSelectCommand | ShowFormulaCommand | AutofillAutoCommand | SelectFigureCommand | ReplaceSearchCommand | SortCommand | SetDecimalCommand | ResizeViewportCommand | SumSelectionCommand | DeleteCellCommand | InsertCellCommand | SetViewportOffsetCommand | MoveViewportDownCommand | MoveViewportUpCommand | MoveViewportToCellCommand | ActivateNextSheetCommand | ActivatePreviousSheetCommand | UpdateFilterCommand | SplitTextIntoColumnsCommand | RemoveDuplicatesCommand | TrimWhitespaceCommand | RenderCanvasCommand;
|
|
1012
|
+
type LocalCommand = RequestUndoCommand | RequestRedoCommand | UndoCommand | RedoCommand | CopyCommand | CutCommand | PasteCommand | CopyPasteCellsAboveCommand | CopyPasteCellsOnLeftCommand | RepeatPasteCommand | CleanClipBoardHighlightCommand | AutoFillCellCommand | PasteFromOSClipboardCommand | ActivatePaintFormatCommand | CancelPaintFormatCommand | AutoresizeColumnsCommand | AutoresizeRowsCommand | MoveColumnsRowsCommand | ActivateSheetCommand | EvaluateCellsCommand | StartChangeHighlightCommand | SetColorCommand | 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;
|
|
1089
1013
|
type Command = CoreCommand | LocalCommand;
|
|
1090
1014
|
/**
|
|
1091
1015
|
* Holds the result of a command dispatch.
|
|
@@ -1254,6 +1178,87 @@ type CoreCommandTypes = CoreCommand["type"];
|
|
|
1254
1178
|
type CoreViewCommand = CoreCommand | EvaluateCellsCommand | UndoCommand | RedoCommand;
|
|
1255
1179
|
type CoreViewCommandTypes = CoreViewCommand["type"];
|
|
1256
1180
|
|
|
1181
|
+
declare const functionCache: {
|
|
1182
|
+
[key: string]: FormulaToExecute;
|
|
1183
|
+
};
|
|
1184
|
+
declare function compile(formula: string): CompiledFormula;
|
|
1185
|
+
declare function compileTokens(tokens: Token[]): CompiledFormula;
|
|
1186
|
+
|
|
1187
|
+
type TokenType = "OPERATOR" | "NUMBER" | "STRING" | "SYMBOL" | "SPACE" | "DEBUGGER" | "ARG_SEPARATOR" | "LEFT_PAREN" | "RIGHT_PAREN" | "REFERENCE" | "INVALID_REFERENCE" | "UNKNOWN";
|
|
1188
|
+
interface Token {
|
|
1189
|
+
readonly type: TokenType;
|
|
1190
|
+
readonly value: string;
|
|
1191
|
+
}
|
|
1192
|
+
declare function tokenize(str: string, locale?: Locale): Token[];
|
|
1193
|
+
|
|
1194
|
+
interface ASTBase {
|
|
1195
|
+
debug?: boolean;
|
|
1196
|
+
}
|
|
1197
|
+
interface ASTNumber extends ASTBase {
|
|
1198
|
+
type: "NUMBER";
|
|
1199
|
+
value: number;
|
|
1200
|
+
}
|
|
1201
|
+
interface ASTReference extends ASTBase {
|
|
1202
|
+
type: "REFERENCE";
|
|
1203
|
+
value: string;
|
|
1204
|
+
}
|
|
1205
|
+
interface ASTString extends ASTBase {
|
|
1206
|
+
type: "STRING";
|
|
1207
|
+
value: string;
|
|
1208
|
+
}
|
|
1209
|
+
interface ASTBoolean extends ASTBase {
|
|
1210
|
+
type: "BOOLEAN";
|
|
1211
|
+
value: boolean;
|
|
1212
|
+
}
|
|
1213
|
+
interface ASTUnaryOperation extends ASTBase {
|
|
1214
|
+
type: "UNARY_OPERATION";
|
|
1215
|
+
value: any;
|
|
1216
|
+
operand: AST;
|
|
1217
|
+
postfix?: boolean;
|
|
1218
|
+
}
|
|
1219
|
+
interface ASTOperation extends ASTBase {
|
|
1220
|
+
type: "BIN_OPERATION";
|
|
1221
|
+
value: any;
|
|
1222
|
+
left: AST;
|
|
1223
|
+
right: AST;
|
|
1224
|
+
}
|
|
1225
|
+
interface ASTFuncall extends ASTBase {
|
|
1226
|
+
type: "FUNCALL";
|
|
1227
|
+
value: string;
|
|
1228
|
+
args: AST[];
|
|
1229
|
+
}
|
|
1230
|
+
interface ASTEmpty extends ASTBase {
|
|
1231
|
+
type: "EMPTY";
|
|
1232
|
+
value: "";
|
|
1233
|
+
}
|
|
1234
|
+
type AST = ASTOperation | ASTUnaryOperation | ASTFuncall | ASTNumber | ASTBoolean | ASTString | ASTReference | ASTEmpty;
|
|
1235
|
+
/**
|
|
1236
|
+
* Parse an expression (as a string) into an AST.
|
|
1237
|
+
*/
|
|
1238
|
+
declare function parse(str: string): AST;
|
|
1239
|
+
declare function parseTokens(tokens: Token[]): AST;
|
|
1240
|
+
/**
|
|
1241
|
+
* Allows to visit all nodes of an AST and apply a mapping function
|
|
1242
|
+
* to nodes of a specific type.
|
|
1243
|
+
* Useful if you want to convert some part of a formula.
|
|
1244
|
+
*
|
|
1245
|
+
* @example
|
|
1246
|
+
* convertAstNodes(ast, "FUNCALL", convertFormulaToExcel)
|
|
1247
|
+
*
|
|
1248
|
+
* function convertFormulaToExcel(ast: ASTFuncall) {
|
|
1249
|
+
* // ...
|
|
1250
|
+
* return modifiedAst
|
|
1251
|
+
* }
|
|
1252
|
+
*/
|
|
1253
|
+
declare function convertAstNodes<T extends AST["type"]>(ast: AST, type: T, fn: (ast: Extract<AST, {
|
|
1254
|
+
type: T;
|
|
1255
|
+
}>) => AST): AST;
|
|
1256
|
+
declare function iterateAstNodes(ast: AST): AST[];
|
|
1257
|
+
/**
|
|
1258
|
+
* Converts an ast formula to the corresponding string
|
|
1259
|
+
*/
|
|
1260
|
+
declare function astToFormula(ast: AST): string;
|
|
1261
|
+
|
|
1257
1262
|
/**
|
|
1258
1263
|
* The following type is meant to be used in union with other aliases to prevent
|
|
1259
1264
|
* Intellisense from resolving it.
|
|
@@ -1375,9 +1380,9 @@ interface Border$1 {
|
|
|
1375
1380
|
}
|
|
1376
1381
|
type ReferenceDenormalizer = (range: Range, isMeta: boolean, functionName: string, paramNumber: number) => FPayload;
|
|
1377
1382
|
type EnsureRange = (range: Range) => Matrix<FPayload>;
|
|
1378
|
-
type
|
|
1383
|
+
type FormulaToExecute = (deps: Range[], refFn: ReferenceDenormalizer, range: EnsureRange, ctx: {}) => Matrix<FPayload> | FPayload;
|
|
1379
1384
|
interface CompiledFormula {
|
|
1380
|
-
execute:
|
|
1385
|
+
execute: FormulaToExecute;
|
|
1381
1386
|
tokens: Token[];
|
|
1382
1387
|
dependencies: string[];
|
|
1383
1388
|
}
|
|
@@ -1427,9 +1432,11 @@ interface Highlight$1 {
|
|
|
1427
1432
|
sheetId: UID;
|
|
1428
1433
|
color: Color;
|
|
1429
1434
|
interactive?: boolean;
|
|
1435
|
+
thinLine?: boolean;
|
|
1430
1436
|
noFill?: boolean;
|
|
1431
1437
|
/** transparency of the fill color (0-1) */
|
|
1432
1438
|
fillAlpha?: number;
|
|
1439
|
+
noBorder?: boolean;
|
|
1433
1440
|
}
|
|
1434
1441
|
interface PaneDivision {
|
|
1435
1442
|
/** Represents the number of frozen columns */
|
|
@@ -2614,6 +2621,7 @@ declare class FigurePlugin extends CorePlugin<FigureState> implements FigureStat
|
|
|
2614
2621
|
[sheet: string]: Record<UID, Figure | undefined> | undefined;
|
|
2615
2622
|
};
|
|
2616
2623
|
allowDispatch(cmd: CoreCommand): CommandResult;
|
|
2624
|
+
beforeHandle(cmd: CoreCommand): void;
|
|
2617
2625
|
handle(cmd: CoreCommand): void;
|
|
2618
2626
|
private onRowColDelete;
|
|
2619
2627
|
private onRowDeletion;
|
|
@@ -2877,7 +2885,7 @@ interface SheetState {
|
|
|
2877
2885
|
readonly cellPosition: Record<UID, CellPosition | undefined>;
|
|
2878
2886
|
}
|
|
2879
2887
|
declare class SheetPlugin extends CorePlugin<SheetState> implements SheetState {
|
|
2880
|
-
static getters: readonly ["getSheetName", "tryGetSheetName", "getSheet", "tryGetSheet", "getSheetIdByName", "getSheetIds", "getVisibleSheetIds", "isSheetVisible", "getEvaluationSheets", "doesHeaderExist", "doesHeadersExist", "getCell", "getCellPosition", "getColsZone", "getRowCells", "getRowsZone", "getNumberCols", "getNumberRows", "getNumberHeaders", "getGridLinesVisibility", "getNextSheetName", "
|
|
2888
|
+
static getters: readonly ["getSheetName", "tryGetSheetName", "getSheet", "tryGetSheet", "getSheetIdByName", "getSheetIds", "getVisibleSheetIds", "isSheetVisible", "getEvaluationSheets", "doesHeaderExist", "doesHeadersExist", "getCell", "getCellPosition", "getColsZone", "getRowCells", "getRowsZone", "getNumberCols", "getNumberRows", "getNumberHeaders", "getGridLinesVisibility", "getNextSheetName", "getSheetSize", "getSheetZone", "getPaneDivisions", "checkZonesExistInSheet", "getCommandZones", "getUnboundedZone", "checkElementsIncludeAllNonFrozenHeaders"];
|
|
2881
2889
|
readonly sheetIdsMapName: Record<string, UID | undefined>;
|
|
2882
2890
|
readonly orderedSheetIds: UID[];
|
|
2883
2891
|
readonly sheets: Record<UID, Sheet | undefined>;
|
|
@@ -2926,10 +2934,6 @@ declare class SheetPlugin extends CorePlugin<SheetState> implements SheetState {
|
|
|
2926
2934
|
* This validation ensures that all rows or columns cannot be deleted when frozen panes exist.
|
|
2927
2935
|
*/
|
|
2928
2936
|
checkElementsIncludeAllNonFrozenHeaders(sheetId: UID, dimension: Dimension, elements: HeaderIndex[]): boolean;
|
|
2929
|
-
/**
|
|
2930
|
-
* Check if a zone only contains empty cells
|
|
2931
|
-
*/
|
|
2932
|
-
isEmpty(sheetId: UID, zone: Zone): boolean;
|
|
2933
2937
|
getCommandZones(cmd: Command): Zone[];
|
|
2934
2938
|
/**
|
|
2935
2939
|
* Check if zones in the command are well formed and
|
|
@@ -3548,7 +3552,7 @@ declare class UIPlugin<State = any> extends BasePlugin<State, Command> {
|
|
|
3548
3552
|
}
|
|
3549
3553
|
|
|
3550
3554
|
declare class EvaluationPlugin extends UIPlugin {
|
|
3551
|
-
static getters: readonly ["evaluateFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getSpreadPositionsOf", "getArrayFormulaSpreadingOn"];
|
|
3555
|
+
static getters: readonly ["evaluateFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getSpreadPositionsOf", "getArrayFormulaSpreadingOn", "isEmpty"];
|
|
3552
3556
|
private shouldRebuildDependenciesGraph;
|
|
3553
3557
|
private evaluator;
|
|
3554
3558
|
private positionsToUpdate;
|
|
@@ -3574,6 +3578,10 @@ declare class EvaluationPlugin extends UIPlugin {
|
|
|
3574
3578
|
getEvaluatedCellsInZone(sheetId: UID, zone: Zone): EvaluatedCell[];
|
|
3575
3579
|
getSpreadPositionsOf(position: CellPosition): CellPosition[];
|
|
3576
3580
|
getArrayFormulaSpreadingOn(position: CellPosition): CellPosition | undefined;
|
|
3581
|
+
/**
|
|
3582
|
+
* Check if a zone only contains empty cells
|
|
3583
|
+
*/
|
|
3584
|
+
isEmpty(sheetId: UID, zone: Zone): boolean;
|
|
3577
3585
|
exportForExcel(data: ExcelWorkbookData): void;
|
|
3578
3586
|
/**
|
|
3579
3587
|
* Returns the corresponding formula cell of a given cell
|
|
@@ -3594,16 +3602,18 @@ interface CustomColorState {
|
|
|
3594
3602
|
*/
|
|
3595
3603
|
declare class CustomColorsPlugin extends UIPlugin<CustomColorState> {
|
|
3596
3604
|
private readonly customColors;
|
|
3597
|
-
private readonly configCustomColors;
|
|
3598
3605
|
private readonly shouldUpdateColors;
|
|
3599
3606
|
static getters: readonly ["getCustomColors"];
|
|
3600
3607
|
constructor(config: UIPluginConfig);
|
|
3601
3608
|
handle(cmd: CoreViewCommand): void;
|
|
3602
3609
|
finalize(): void;
|
|
3603
3610
|
getCustomColors(): Color[];
|
|
3611
|
+
private computeCustomColors;
|
|
3604
3612
|
private getColorsFromCells;
|
|
3605
3613
|
private getFormattingColors;
|
|
3606
3614
|
private getChartColors;
|
|
3615
|
+
private getTableColors;
|
|
3616
|
+
private getTableStyleElementColors;
|
|
3607
3617
|
private tryToAddColor;
|
|
3608
3618
|
}
|
|
3609
3619
|
|
|
@@ -3675,7 +3685,7 @@ type SheetValidationResult = {
|
|
|
3675
3685
|
[col: HeaderIndex]: Array<Lazy<ValidationResult>>;
|
|
3676
3686
|
};
|
|
3677
3687
|
declare class EvaluationDataValidationPlugin extends UIPlugin {
|
|
3678
|
-
static getters: readonly ["getDataValidationInvalidCriterionValueMessage", "
|
|
3688
|
+
static getters: readonly ["getDataValidationInvalidCriterionValueMessage", "getInvalidDataValidationMessage", "getValidationResultForCellValue", "isCellValidCheckbox", "isDataValidationInvalid"];
|
|
3679
3689
|
validationResults: Record<UID, SheetValidationResult>;
|
|
3680
3690
|
handle(cmd: CoreViewCommand): void;
|
|
3681
3691
|
private setContentToBooleanCells;
|
|
@@ -3690,8 +3700,6 @@ declare class EvaluationDataValidationPlugin extends UIPlugin {
|
|
|
3690
3700
|
isCellValidCheckbox(cellPosition: CellPosition): boolean;
|
|
3691
3701
|
/** Get the validation result if the cell on the given position had the given value */
|
|
3692
3702
|
getValidationResultForCellValue(cellValue: CellValue, cellPosition: CellPosition): ValidationResult;
|
|
3693
|
-
getDataValidationCheckBoxCellPositions(): CellPosition[];
|
|
3694
|
-
getDataValidationListCellsPositions(): CellPosition[];
|
|
3695
3703
|
private getValidationResultForCell;
|
|
3696
3704
|
private computeSheetValidationResults;
|
|
3697
3705
|
private getRuleErrorForCellValue;
|
|
@@ -3758,6 +3766,7 @@ declare class AutofillPlugin extends UIPlugin {
|
|
|
3758
3766
|
* autofiller
|
|
3759
3767
|
*/
|
|
3760
3768
|
private autofillAuto;
|
|
3769
|
+
private getAutofillAutoLastRow;
|
|
3761
3770
|
/**
|
|
3762
3771
|
* Generate the next cell
|
|
3763
3772
|
*/
|
|
@@ -3914,7 +3923,6 @@ declare class CollaborativePlugin extends UIPlugin {
|
|
|
3914
3923
|
* the search with a new value.
|
|
3915
3924
|
*/
|
|
3916
3925
|
declare class FindAndReplacePlugin extends UIPlugin {
|
|
3917
|
-
static layers: readonly ["Search"];
|
|
3918
3926
|
static getters: readonly [];
|
|
3919
3927
|
handle(cmd: Command): void;
|
|
3920
3928
|
private replaceMatch;
|
|
@@ -4387,7 +4395,7 @@ type SheetViewports = {
|
|
|
4387
4395
|
*
|
|
4388
4396
|
*/
|
|
4389
4397
|
declare class SheetViewPlugin extends UIPlugin {
|
|
4390
|
-
static getters: readonly ["getColIndex", "getRowIndex", "getActiveMainViewport", "getSheetViewDimension", "getSheetViewDimensionWithHeaders", "getMainViewportRect", "isVisibleInViewport", "getEdgeScrollCol", "getEdgeScrollRow", "getVisibleFigures", "getVisibleRect", "getColRowOffsetInViewport", "getMainViewportCoordinates", "getActiveSheetScrollInfo", "getActiveSheetDOMScrollInfo", "getSheetViewVisibleCols", "getSheetViewVisibleRows", "getFrozenSheetViewRatio", "isPositionVisible", "getColDimensionsInViewport", "getRowDimensionsInViewport"];
|
|
4398
|
+
static getters: readonly ["getColIndex", "getRowIndex", "getActiveMainViewport", "getSheetViewDimension", "getSheetViewDimensionWithHeaders", "getMainViewportRect", "isVisibleInViewport", "getEdgeScrollCol", "getEdgeScrollRow", "getVisibleFigures", "getVisibleRect", "getVisibleRectWithoutHeaders", "getVisibleCellPositions", "getColRowOffsetInViewport", "getMainViewportCoordinates", "getActiveSheetScrollInfo", "getActiveSheetDOMScrollInfo", "getSheetViewVisibleCols", "getSheetViewVisibleRows", "getFrozenSheetViewRatio", "isPositionVisible", "getColDimensionsInViewport", "getRowDimensionsInViewport"];
|
|
4391
4399
|
readonly viewports: Record<UID, SheetViewports | undefined>;
|
|
4392
4400
|
/**
|
|
4393
4401
|
* The viewport dimensions are usually set by one of the components
|
|
@@ -4434,6 +4442,10 @@ declare class SheetViewPlugin extends UIPlugin {
|
|
|
4434
4442
|
getActiveSheetDOMScrollInfo(): SheetDOMScrollInfo;
|
|
4435
4443
|
getSheetViewVisibleCols(): HeaderIndex[];
|
|
4436
4444
|
getSheetViewVisibleRows(): HeaderIndex[];
|
|
4445
|
+
/**
|
|
4446
|
+
* Get the positions of all the cells that are visible in the viewport, taking merges into account.
|
|
4447
|
+
*/
|
|
4448
|
+
getVisibleCellPositions(): CellPosition[];
|
|
4437
4449
|
/**
|
|
4438
4450
|
* Return the main viewport maximum size relative to the client size.
|
|
4439
4451
|
*/
|
|
@@ -4450,6 +4462,10 @@ declare class SheetViewPlugin extends UIPlugin {
|
|
|
4450
4462
|
* Computes the coordinates and size to draw the zone on the canvas
|
|
4451
4463
|
*/
|
|
4452
4464
|
getVisibleRect(zone: Zone): Rect;
|
|
4465
|
+
/**
|
|
4466
|
+
* Computes the coordinates and size to draw the zone without taking the grid offset into account
|
|
4467
|
+
*/
|
|
4468
|
+
getVisibleRectWithoutHeaders(zone: Zone): Rect;
|
|
4453
4469
|
/**
|
|
4454
4470
|
* Returns the position of the MainViewport relatively to the start of the grid (without headers)
|
|
4455
4471
|
* It corresponds to the summed dimensions of the visible cols/rows (in x/y respectively)
|
|
@@ -4791,14 +4807,13 @@ declare const LAYERS: {
|
|
|
4791
4807
|
readonly Background: 0;
|
|
4792
4808
|
readonly Highlights: 1;
|
|
4793
4809
|
readonly Clipboard: 2;
|
|
4794
|
-
readonly Search: 3;
|
|
4795
4810
|
readonly Chart: 4;
|
|
4796
4811
|
readonly Autofill: 5;
|
|
4797
4812
|
readonly Selection: 6;
|
|
4798
4813
|
readonly Headers: 100;
|
|
4799
4814
|
};
|
|
4800
4815
|
type LayerName = keyof typeof LAYERS;
|
|
4801
|
-
declare const OrderedLayers: () => ("Chart" | "Background" | "Highlights" | "Clipboard" | "
|
|
4816
|
+
declare const OrderedLayers: () => ("Chart" | "Background" | "Highlights" | "Clipboard" | "Autofill" | "Selection" | "Headers")[];
|
|
4802
4817
|
/**
|
|
4803
4818
|
*
|
|
4804
4819
|
* @param layer New layer name
|
|
@@ -5448,7 +5463,7 @@ declare class SelectionInputStore extends SpreadsheetStore {
|
|
|
5448
5463
|
readonly highlights: Highlight$1[];
|
|
5449
5464
|
readonly register: (highlightProvider: HighlightProvider) => void;
|
|
5450
5465
|
readonly unRegister: (highlightProvider: HighlightProvider) => void;
|
|
5451
|
-
readonly drawLayer: (ctx: GridRenderingContext, layer: "Chart" | "Background" | "Highlights" | "Clipboard" | "
|
|
5466
|
+
readonly drawLayer: (ctx: GridRenderingContext, layer: "Chart" | "Background" | "Highlights" | "Clipboard" | "Autofill" | "Selection" | "Headers") => void;
|
|
5452
5467
|
readonly dispose: () => void;
|
|
5453
5468
|
};
|
|
5454
5469
|
constructor(get: Get, initialRanges?: string[], inputHasSingleRange?: boolean);
|
|
@@ -5775,7 +5790,7 @@ declare class LineBarPieConfigPanel extends Component<Props$J, SpreadsheetChildE
|
|
|
5775
5790
|
getLabelRangeOptions(): {
|
|
5776
5791
|
name: string;
|
|
5777
5792
|
label: string;
|
|
5778
|
-
value: boolean
|
|
5793
|
+
value: boolean;
|
|
5779
5794
|
onChange: (aggregated: boolean) => void;
|
|
5780
5795
|
}[];
|
|
5781
5796
|
onUpdateDataSetsHaveTitle(dataSetsHaveTitle: boolean): void;
|
|
@@ -6134,7 +6149,7 @@ declare class LineConfigPanel extends LineBarPieConfigPanel {
|
|
|
6134
6149
|
getLabelRangeOptions(): {
|
|
6135
6150
|
name: string;
|
|
6136
6151
|
label: string;
|
|
6137
|
-
value: boolean
|
|
6152
|
+
value: boolean;
|
|
6138
6153
|
onChange: (aggregated: boolean) => void;
|
|
6139
6154
|
}[];
|
|
6140
6155
|
onUpdateLabelsAsText(labelsAsText: boolean): void;
|
|
@@ -6316,7 +6331,8 @@ interface SidePanelProps {
|
|
|
6316
6331
|
}
|
|
6317
6332
|
interface OpenSidePanel {
|
|
6318
6333
|
isOpen: true;
|
|
6319
|
-
props
|
|
6334
|
+
props?: SidePanelProps;
|
|
6335
|
+
key?: string;
|
|
6320
6336
|
}
|
|
6321
6337
|
interface ClosedSidePanel {
|
|
6322
6338
|
isOpen: false;
|
|
@@ -6327,6 +6343,7 @@ declare class SidePanelStore extends SpreadsheetStore {
|
|
|
6327
6343
|
componentTag: string;
|
|
6328
6344
|
get isOpen(): boolean;
|
|
6329
6345
|
get panelProps(): SidePanelProps;
|
|
6346
|
+
get panelKey(): string | undefined;
|
|
6330
6347
|
open(componentTag: string, panelProps?: SidePanelProps): void;
|
|
6331
6348
|
toggle(componentTag: string, panelProps: SidePanelProps): void;
|
|
6332
6349
|
close(): void;
|
|
@@ -6523,6 +6540,8 @@ declare class ComposerStore extends SpreadsheetStore {
|
|
|
6523
6540
|
*/
|
|
6524
6541
|
private insertText;
|
|
6525
6542
|
private updateRangeColor;
|
|
6543
|
+
/** Add headers at the end of the sheet so the formula in the composer has enough space to spread */
|
|
6544
|
+
private addHeadersForSpreadingFormula;
|
|
6526
6545
|
/**
|
|
6527
6546
|
* Highlight all ranges that can be found in the composer content.
|
|
6528
6547
|
*/
|
|
@@ -6867,6 +6886,7 @@ interface Props$w {
|
|
|
6867
6886
|
onClose: () => void;
|
|
6868
6887
|
onMenuClicked?: (ev: CustomEvent) => void;
|
|
6869
6888
|
menuId?: UID;
|
|
6889
|
+
onMouseOver?: () => void;
|
|
6870
6890
|
}
|
|
6871
6891
|
interface MenuState {
|
|
6872
6892
|
isOpen: boolean;
|
|
@@ -6874,6 +6894,7 @@ interface MenuState {
|
|
|
6874
6894
|
position: null | DOMCoordinates;
|
|
6875
6895
|
scrollOffset?: Pixel;
|
|
6876
6896
|
menuItems: Action[];
|
|
6897
|
+
isHoveringChild?: boolean;
|
|
6877
6898
|
}
|
|
6878
6899
|
declare class Menu extends Component<Props$w, SpreadsheetChildEnv> {
|
|
6879
6900
|
static template: string;
|
|
@@ -6897,6 +6918,10 @@ declare class Menu extends Component<Props$w, SpreadsheetChildEnv> {
|
|
|
6897
6918
|
type: StringConstructor;
|
|
6898
6919
|
optional: boolean;
|
|
6899
6920
|
};
|
|
6921
|
+
onMouseOver: {
|
|
6922
|
+
type: FunctionConstructor;
|
|
6923
|
+
optional: boolean;
|
|
6924
|
+
};
|
|
6900
6925
|
};
|
|
6901
6926
|
static components: {
|
|
6902
6927
|
Menu: typeof Menu;
|
|
@@ -6909,6 +6934,7 @@ declare class Menu extends Component<Props$w, SpreadsheetChildEnv> {
|
|
|
6909
6934
|
private menuRef;
|
|
6910
6935
|
private hoveredMenu;
|
|
6911
6936
|
private position;
|
|
6937
|
+
private openingTimeOut;
|
|
6912
6938
|
setup(): void;
|
|
6913
6939
|
get menuItemsAndSeparators(): MenuItemOrSeparator[];
|
|
6914
6940
|
get subMenuPosition(): DOMCoordinates;
|
|
@@ -6922,15 +6948,19 @@ declare class Menu extends Component<Props$w, SpreadsheetChildEnv> {
|
|
|
6922
6948
|
getName(menu: Action): string;
|
|
6923
6949
|
isRoot(menu: Action): boolean;
|
|
6924
6950
|
isEnabled(menu: Action): boolean;
|
|
6951
|
+
isActive(menuItem: Action): boolean;
|
|
6925
6952
|
onScroll(ev: any): void;
|
|
6926
6953
|
/**
|
|
6927
6954
|
* If the given menu is not disabled, open it's submenu at the
|
|
6928
6955
|
* correct position according to available surrounding space.
|
|
6929
6956
|
*/
|
|
6930
|
-
openSubMenu
|
|
6957
|
+
private openSubMenu;
|
|
6931
6958
|
isParentMenu(subMenu: MenuState, menuItem: Action): boolean;
|
|
6932
|
-
closeSubMenu
|
|
6959
|
+
private closeSubMenu;
|
|
6933
6960
|
onClickMenu(menu: Action, ev: MouseEvent): void;
|
|
6961
|
+
onMouseOver(menu: Action, ev: MouseEvent): void;
|
|
6962
|
+
onMouseOverMainMenu(): void;
|
|
6963
|
+
onMouseOverChildMenu(): void;
|
|
6934
6964
|
onMouseEnter(menu: Action, ev: MouseEvent): void;
|
|
6935
6965
|
onMouseLeave(menu: Action): void;
|
|
6936
6966
|
}
|
|
@@ -7130,8 +7160,8 @@ declare class CellPopoverStore extends SpreadsheetStore {
|
|
|
7130
7160
|
readonly handle: (cmd: Command) => void;
|
|
7131
7161
|
readonly hover: (position: Position$1) => void;
|
|
7132
7162
|
readonly clear: () => void;
|
|
7133
|
-
readonly renderingLayers: readonly ("Chart" | "Background" | "Highlights" | "Clipboard" | "
|
|
7134
|
-
readonly drawLayer: (ctx: GridRenderingContext, layer: "Chart" | "Background" | "Highlights" | "Clipboard" | "
|
|
7163
|
+
readonly renderingLayers: readonly ("Chart" | "Background" | "Highlights" | "Clipboard" | "Autofill" | "Selection" | "Headers")[];
|
|
7164
|
+
readonly drawLayer: (ctx: GridRenderingContext, layer: "Chart" | "Background" | "Highlights" | "Clipboard" | "Autofill" | "Selection" | "Headers") => void;
|
|
7135
7165
|
readonly dispose: () => void;
|
|
7136
7166
|
};
|
|
7137
7167
|
handle(cmd: Command): void;
|
|
@@ -7898,7 +7928,7 @@ declare class ChartPanel extends Component<Props$c, SpreadsheetChildEnv> {
|
|
|
7898
7928
|
get chartTypes(): Record<string, string>;
|
|
7899
7929
|
}
|
|
7900
7930
|
|
|
7901
|
-
declare class FindAndReplaceStore extends SpreadsheetStore {
|
|
7931
|
+
declare class FindAndReplaceStore extends SpreadsheetStore implements HighlightProvider {
|
|
7902
7932
|
private allSheetsMatches;
|
|
7903
7933
|
private activeSheetMatches;
|
|
7904
7934
|
private specificRangeMatches;
|
|
@@ -7911,7 +7941,6 @@ declare class FindAndReplaceStore extends SpreadsheetStore {
|
|
|
7911
7941
|
searchOptions: SearchOptions;
|
|
7912
7942
|
updateSearchContent: DebouncedFunction<(toSearch: string) => void>;
|
|
7913
7943
|
constructor(get: Get);
|
|
7914
|
-
get renderingLayers(): readonly ["Search"];
|
|
7915
7944
|
get searchMatches(): CellPosition[];
|
|
7916
7945
|
private _updateSearchContent;
|
|
7917
7946
|
updateSearchOptions(searchOptions: Partial<SearchOptions>): void;
|
|
@@ -7957,7 +7986,7 @@ declare class FindAndReplaceStore extends SpreadsheetStore {
|
|
|
7957
7986
|
*/
|
|
7958
7987
|
replaceAll(): void;
|
|
7959
7988
|
private getSearchableString;
|
|
7960
|
-
|
|
7989
|
+
get highlights(): Highlight$1[];
|
|
7961
7990
|
}
|
|
7962
7991
|
|
|
7963
7992
|
declare function isEvaluationError(error: Maybe<CellValue>): error is string;
|
|
@@ -9106,7 +9135,7 @@ declare const registries: {
|
|
|
9106
9135
|
clipboardHandlersRegistries: {
|
|
9107
9136
|
figureHandlers: Registry<{
|
|
9108
9137
|
new (getters: Getters, dispatch: {
|
|
9109
|
-
<T extends "
|
|
9138
|
+
<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" | "SET_HIGHLIGHT_COLOR" | "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", C extends Extract<UpdateCellCommand, {
|
|
9110
9139
|
type: T;
|
|
9111
9140
|
}> | Extract<UpdateCellPositionCommand, {
|
|
9112
9141
|
type: T;
|
|
@@ -9260,6 +9289,8 @@ declare const registries: {
|
|
|
9260
9289
|
type: T;
|
|
9261
9290
|
}> | Extract<AutofillSelectCommand, {
|
|
9262
9291
|
type: T;
|
|
9292
|
+
}> | Extract<AutofillTableCommand, {
|
|
9293
|
+
type: T;
|
|
9263
9294
|
}> | Extract<ShowFormulaCommand, {
|
|
9264
9295
|
type: T;
|
|
9265
9296
|
}> | Extract<AutofillAutoCommand, {
|
|
@@ -9303,7 +9334,7 @@ declare const registries: {
|
|
|
9303
9334
|
}> | Extract<RenderCanvasCommand, {
|
|
9304
9335
|
type: T;
|
|
9305
9336
|
}>>(type: {} extends Omit<C, "type"> ? T : never): DispatchResult;
|
|
9306
|
-
<T_1 extends "
|
|
9337
|
+
<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" | "SET_HIGHLIGHT_COLOR" | "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", C_1 extends Extract<UpdateCellCommand, {
|
|
9307
9338
|
type: T_1;
|
|
9308
9339
|
}> | Extract<UpdateCellPositionCommand, {
|
|
9309
9340
|
type: T_1;
|
|
@@ -9457,6 +9488,8 @@ declare const registries: {
|
|
|
9457
9488
|
type: T_1;
|
|
9458
9489
|
}> | Extract<AutofillSelectCommand, {
|
|
9459
9490
|
type: T_1;
|
|
9491
|
+
}> | Extract<AutofillTableCommand, {
|
|
9492
|
+
type: T_1;
|
|
9460
9493
|
}> | Extract<ShowFormulaCommand, {
|
|
9461
9494
|
type: T_1;
|
|
9462
9495
|
}> | Extract<AutofillAutoCommand, {
|
|
@@ -9504,7 +9537,7 @@ declare const registries: {
|
|
|
9504
9537
|
}>;
|
|
9505
9538
|
cellHandlers: Registry<{
|
|
9506
9539
|
new (getters: Getters, dispatch: {
|
|
9507
|
-
<T extends "
|
|
9540
|
+
<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" | "SET_HIGHLIGHT_COLOR" | "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", C extends Extract<UpdateCellCommand, {
|
|
9508
9541
|
type: T;
|
|
9509
9542
|
}> | Extract<UpdateCellPositionCommand, {
|
|
9510
9543
|
type: T;
|
|
@@ -9658,6 +9691,8 @@ declare const registries: {
|
|
|
9658
9691
|
type: T;
|
|
9659
9692
|
}> | Extract<AutofillSelectCommand, {
|
|
9660
9693
|
type: T;
|
|
9694
|
+
}> | Extract<AutofillTableCommand, {
|
|
9695
|
+
type: T;
|
|
9661
9696
|
}> | Extract<ShowFormulaCommand, {
|
|
9662
9697
|
type: T;
|
|
9663
9698
|
}> | Extract<AutofillAutoCommand, {
|
|
@@ -9701,7 +9736,7 @@ declare const registries: {
|
|
|
9701
9736
|
}> | Extract<RenderCanvasCommand, {
|
|
9702
9737
|
type: T;
|
|
9703
9738
|
}>>(type: {} extends Omit<C, "type"> ? T : never): DispatchResult;
|
|
9704
|
-
<T_1 extends "
|
|
9739
|
+
<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" | "SET_HIGHLIGHT_COLOR" | "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", C_1 extends Extract<UpdateCellCommand, {
|
|
9705
9740
|
type: T_1;
|
|
9706
9741
|
}> | Extract<UpdateCellPositionCommand, {
|
|
9707
9742
|
type: T_1;
|
|
@@ -9855,6 +9890,8 @@ declare const registries: {
|
|
|
9855
9890
|
type: T_1;
|
|
9856
9891
|
}> | Extract<AutofillSelectCommand, {
|
|
9857
9892
|
type: T_1;
|
|
9893
|
+
}> | Extract<AutofillTableCommand, {
|
|
9894
|
+
type: T_1;
|
|
9858
9895
|
}> | Extract<ShowFormulaCommand, {
|
|
9859
9896
|
type: T_1;
|
|
9860
9897
|
}> | Extract<AutofillAutoCommand, {
|
|
@@ -10012,4 +10049,4 @@ declare const constants: {
|
|
|
10012
10049
|
HIGHLIGHT_COLOR: string;
|
|
10013
10050
|
};
|
|
10014
10051
|
|
|
10015
|
-
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, AutoresizeColumnsCommand, AutoresizeRowsCommand, AxisType, BeginsWithRule, BooleanCell, Border$1 as Border, BorderData, BorderDescr, BorderDescription, BorderPosition, BorderStyle, Box, BoxTextContent, CHART_TYPES, CSSProperties, CancelPaintFormatCommand, CancelledReason, Cell, CellData, CellErrorType, CellIsRule, CellPosition, CellValue, CellValueType, ChangeType, ChartCreationContext, ChartDefinition, ChartJSRuntime, ChartRuntime, ChartType, CleanClipBoardHighlightCommand, ClearCellCommand, ClearFormattingCommand, Client, ClientId, ClientJoinedMessage, ClientLeftMessage, ClientMovedMessage, ClientPosition, ClipboardCell, ClipboardCellData, ClipboardContent, ClipboardData, ClipboardFigureData, ClipboardMIMEType, ClipboardOperation, ClipboardOptions, ClipboardPasteOptions, ClipboardPasteTarget, Cloneable, CollaborationMessage, CollaborativeEvent, CollaborativeEventReceived, CollaborativeEventTypes, Color, ColorScaleMidPointThreshold, ColorScaleRule, ColorScaleThreshold, Command, CommandDispatcher, CommandHandler, CommandResult, CommandTypes, CompiledFormula, ComputeFunction, ComputedTableStyle, ConditionalFormat, ConditionalFormatInternal, ConditionalFormatRule, ConditionalFormattingOperatorValues, ConsecutiveIndexes, ContainsTextRule, CopyCommand, CopyModifier, CopyPasteCellsAboveCommand, CopyPasteCellsOnLeftCommand, CoreCommand, CoreCommandDispatcher, CoreCommandTypes, CoreGetters, CorePlugin, 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, 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, FreezeColumnsCommand, FreezeRowsCommand, FunctionDescription, FunctionRegistry, GeneratorCell, Getters, GridRenderingContext, GroupHeadersCommand, HSLA, HeaderData, HeaderDimensions, HeaderGroup, HeaderIndex, HeadersDependentCommand, HideColumnsRowsCommand, HideSheetCommand, Highlight$1 as Highlight, HistoryChange, IconSet, IconSetRule, IconThreshold, Image, Immutable, Increment, IncrementModifier, InformationNotification, InsertCellCommand, IsBetweenCriterion, IsCheckboxCriterion, IsEqualCriterion, IsGreaterOrEqualToCriterion, IsGreaterThanCriterion, IsLessOrEqualToCriterion, IsLessThanCriterion, IsNotBetweenCriterion, IsNotEqualCriterion, IsValueInListCriterion, IsValueInRangeCriterion, LabelValues, LayerName, Lazy, Link, LiteralCell, LocalCommand, Locale, LocaleCode, LocaleFormat, Matrix, Maybe, MenuMouseEvent, Merge, Model, MoveColumnsRowsCommand, MoveConditionalFormatCommand, MoveRangeCommand, MoveSheetCommand, MoveViewportDownCommand, MoveViewportToCellCommand, MoveViewportUpCommand, NewLocalStateUpdateEvent, NotContainsTextRule, NotificationType, NumberCell, Offset, OperationSequenceNode, OrderedLayers, PLAIN_TEXT_FORMAT, PaneDivision, PasteCommand, PasteFromOSClipboardCommand, Pixel, PixelPosition, Position$1 as Position, PositionDependentCommand, PropsOf, RGBA, Range, RangeCompiledFormula, RangeData, RangePart, RangeProvider, RangesDependentCommand, Rect, RedoCommand, Ref, ReferenceDenormalizer, Registry, RemoteRevisionMessage, RemoteRevisionReceivedEvent, RemoveColumnsRowsCommand, RemoveConditionalFormatCommand, RemoveDataValidationCommand, RemoveDuplicatesCommand, RemoveMergeCommand, RemoveTableCommand, RenameSheetCommand, RenderCanvasCommand, RepeatPasteCommand, ReplaceSearchCommand, RequestRedoCommand, RequestUndoCommand, ResizeColumnsRowsCommand, ResizeDirection, ResizeViewportCommand, Revision, RevisionAcknowledgedEvent, RevisionData, RevisionRedone, RevisionRedoneMessage, RevisionUndone, RevisionUndoneMessage, RevisionsDroppedEvent, Row, SPREADSHEET_DIMENSIONS, ScrollDirection$1 as ScrollDirection, SelectFigureCommand, Selection, SelectionStep, SetBorderCommand, SetColorCommand, 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, StoreConstructor, StoreParams, Style, SumSelectionCommand, Table, TableConfig, TableData, 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,
|
|
10052
|
+
export { AST, ASTFuncall, AboveAverageRule, AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, ActivateNextSheetCommand, ActivatePaintFormatCommand, ActivatePreviousSheetCommand, ActivateSheetCommand, AddColumnsRowsCommand, AddConditionalFormatCommand, AddDataValidationCommand, AddFunctionDescription, AddMergeCommand, Alias, Align, AlphanumericIncrementModifier, AnchorZone, ApplyRangeChange, ApplyRangeChangeResult, Arg, ArgDefinition, ArgType, AutoFillCellCommand, AutofillAutoCommand, AutofillCellData, AutofillCommand, AutofillData, AutofillModifier, AutofillModifierImplementation, AutofillResult, AutofillSelectCommand, AutofillTableCommand, AutoresizeColumnsCommand, AutoresizeRowsCommand, AxisType, BeginsWithRule, BooleanCell, Border$1 as Border, BorderData, BorderDescr, BorderDescription, BorderPosition, BorderStyle, Box, BoxTextContent, CHART_TYPES, CSSProperties, CancelPaintFormatCommand, CancelledReason, Cell, CellData, CellErrorType, CellIsRule, CellPosition, CellValue, CellValueType, ChangeType, ChartCreationContext, ChartDefinition, ChartJSRuntime, ChartRuntime, ChartType, CleanClipBoardHighlightCommand, ClearCellCommand, ClearFormattingCommand, Client, ClientId, ClientJoinedMessage, ClientLeftMessage, ClientMovedMessage, ClientPosition, ClipboardCell, ClipboardCellData, ClipboardContent, ClipboardData, ClipboardFigureData, ClipboardMIMEType, ClipboardOperation, ClipboardOptions, ClipboardPasteOptions, ClipboardPasteTarget, Cloneable, CollaborationMessage, CollaborativeEvent, CollaborativeEventReceived, CollaborativeEventTypes, Color, ColorScaleMidPointThreshold, ColorScaleRule, ColorScaleThreshold, Command, CommandDispatcher, CommandHandler, CommandResult, CommandTypes, CompiledFormula, ComputeFunction, ComputedTableStyle, ConditionalFormat, ConditionalFormatInternal, ConditionalFormatRule, ConditionalFormattingOperatorValues, ConsecutiveIndexes, ContainsTextRule, CopyCommand, CopyModifier, CopyPasteCellsAboveCommand, CopyPasteCellsOnLeftCommand, CoreCommand, CoreCommandDispatcher, CoreCommandTypes, CoreGetters, CorePlugin, 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, EdgeScrollInfo, EditTextOptions, EmptyCell, EndsWithRule, EnrichedToken, EnsureRange, ErrorCell, EvalContext, EvaluateCellsCommand, EvaluatedCell, EvaluationError, ExcelCellData, ExcelChartDataset, ExcelChartDefinition, ExcelChartType, ExcelFigureSize, ExcelFilterData, ExcelHeaderData, ExcelSheetData, ExcelTableData, ExcelWorkbookData, ExpressionRule, FPayload, FPayloadNumber, Figure, FigureData, FigureSize, Filter, FilterId, FoldAllHeaderGroupsCommand, FoldHeaderGroupCommand, FoldHeaderGroupsInZoneCommand, Format, FormattedValue, FormulaCell, FormulaModifier, FormulaToExecute, FreezeColumnsCommand, FreezeRowsCommand, FunctionDescription, FunctionRegistry, GeneratorCell, Getters, GridRenderingContext, GroupHeadersCommand, HSLA, HeaderData, HeaderDimensions, HeaderGroup, HeaderIndex, HeadersDependentCommand, HideColumnsRowsCommand, HideSheetCommand, Highlight$1 as Highlight, HistoryChange, IconSet, IconSetRule, IconThreshold, Image, Immutable, Increment, IncrementModifier, InformationNotification, InsertCellCommand, IsBetweenCriterion, IsCheckboxCriterion, IsEqualCriterion, IsGreaterOrEqualToCriterion, IsGreaterThanCriterion, IsLessOrEqualToCriterion, IsLessThanCriterion, IsNotBetweenCriterion, IsNotEqualCriterion, IsValueInListCriterion, IsValueInRangeCriterion, LabelValues, LayerName, Lazy, Link, LiteralCell, LocalCommand, Locale, LocaleCode, LocaleFormat, Matrix, Maybe, MenuMouseEvent, Merge, Model, MoveColumnsRowsCommand, MoveConditionalFormatCommand, MoveRangeCommand, MoveSheetCommand, MoveViewportDownCommand, MoveViewportToCellCommand, MoveViewportUpCommand, NewLocalStateUpdateEvent, NotContainsTextRule, NotificationType, NumberCell, Offset, OperationSequenceNode, OrderedLayers, PLAIN_TEXT_FORMAT, PaneDivision, PasteCommand, PasteFromOSClipboardCommand, Pixel, PixelPosition, Position$1 as Position, PositionDependentCommand, PropsOf, RGBA, Range, RangeCompiledFormula, RangeData, RangePart, RangeProvider, RangesDependentCommand, Rect, RedoCommand, Ref, ReferenceDenormalizer, Registry, RemoteRevisionMessage, RemoteRevisionReceivedEvent, RemoveColumnsRowsCommand, RemoveConditionalFormatCommand, RemoveDataValidationCommand, RemoveDuplicatesCommand, RemoveMergeCommand, RemoveTableCommand, RenameSheetCommand, RenderCanvasCommand, RepeatPasteCommand, ReplaceSearchCommand, RequestRedoCommand, RequestUndoCommand, ResizeColumnsRowsCommand, ResizeDirection, ResizeViewportCommand, Revision, RevisionAcknowledgedEvent, RevisionData, RevisionRedone, RevisionRedoneMessage, RevisionUndone, RevisionUndoneMessage, RevisionsDroppedEvent, Row, SPREADSHEET_DIMENSIONS, ScrollDirection$1 as ScrollDirection, SelectFigureCommand, Selection, SelectionStep, SetBorderCommand, SetColorCommand, 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, StoreConstructor, StoreParams, Style, SumSelectionCommand, Table, TableConfig, TableData, TableElementStyle, TableId, TableStyle, TargetDependentCommand, TextCell, TextContainsCriterion, TextIsCriterion, TextIsEmailCriterion, TextIsLinkCriterion, TextNotContainsCriterion, TextRule, ThresholdType, TimePeriodRule, Token, Tooltip, Top10Rule, Transformation, TransformationFactory, TransportService, TrimWhitespaceCommand, UID, UIPlugin, UnGroupHeadersCommand, UnboundedZone, UndoCommand, UnexpectedRevisionIdEvent, UnfoldAllHeaderGroupsCommand, UnfoldHeaderGroupCommand, UnfoldHeaderGroupsInZoneCommand, UnfreezeColumnsCommand, UnfreezeColumnsRowsCommand, UnfreezeRowsCommand, UnhideColumnsRowsCommand, UpdateCellCommand, UpdateCellData, UpdateCellPositionCommand, UpdateChartCommand, UpdateFigureCommand, UpdateFilterCommand, UpdateLocaleCommand, UpdateTableCommand, Validation, VerticalAlign, Viewport, WorkbookData, WorkbookHistory, Wrapping, Zone, ZoneDependentCommand, ZoneDimension, __info__, addFunction, addRenderingLayer, astToFormula, borderStyles, canExecuteInReadonly, compile, compileTokens, components, constants, containsBlanksRule, containsErrorsRule, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, hooks, invalidateCFEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, isCoreCommand, isHeadersDependant, isMatrix, isPositionDependent, isRangeDependant, isSheetDependent, isTargetDependent, isZoneDependent, iterateAstNodes, links, load, notContainsBlanksRule, notContainsErrorsRule, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };
|