@odoo/o-spreadsheet 16.5.0-alpha.1 → 16.5.0-alpha.2
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 +265 -193
- package/dist/o-spreadsheet.d.ts +33 -43
- package/dist/o-spreadsheet.esm.js +265 -193
- package/dist/o-spreadsheet.iife.js +265 -193
- package/dist/o-spreadsheet.iife.min.js +32 -32
- package/package.json +1 -1
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -1383,7 +1383,7 @@ interface UIPluginConstructor {
|
|
|
1383
1383
|
* UI plugins handle any transient data required to display a spreadsheet.
|
|
1384
1384
|
* They can draw on the grid canvas.
|
|
1385
1385
|
*/
|
|
1386
|
-
declare class UIPlugin<State = any
|
|
1386
|
+
declare class UIPlugin<State = any> extends BasePlugin<State, Command> {
|
|
1387
1387
|
static layers: LAYERS[];
|
|
1388
1388
|
protected getters: Getters;
|
|
1389
1389
|
protected ui: UIActions;
|
|
@@ -1453,6 +1453,7 @@ declare class FindAndReplacePlugin extends UIPlugin {
|
|
|
1453
1453
|
*/
|
|
1454
1454
|
private selectNextCell;
|
|
1455
1455
|
private clearSearch;
|
|
1456
|
+
private replaceMatch;
|
|
1456
1457
|
/**
|
|
1457
1458
|
* Replace the value of the currently selected match
|
|
1458
1459
|
*/
|
|
@@ -1471,7 +1472,7 @@ interface ComposerSelection {
|
|
|
1471
1472
|
end: number;
|
|
1472
1473
|
}
|
|
1473
1474
|
declare class EditionPlugin extends UIPlugin {
|
|
1474
|
-
static getters: readonly ["getEditionMode", "isSelectingForComposer", "showSelectionIndicator", "getCurrentContent", "getComposerSelection", "getCurrentTokens", "getTokenAtCursor", "getComposerHighlights", "getCurrentEditedCell"];
|
|
1475
|
+
static getters: readonly ["getEditionMode", "isSelectingForComposer", "showSelectionIndicator", "getCurrentContent", "getComposerSelection", "getCurrentTokens", "getTokenAtCursor", "getComposerHighlights", "getCurrentEditedCell", "getCycledReference"];
|
|
1475
1476
|
private col;
|
|
1476
1477
|
private row;
|
|
1477
1478
|
private mode;
|
|
@@ -1480,10 +1481,7 @@ declare class EditionPlugin extends UIPlugin {
|
|
|
1480
1481
|
private currentTokens;
|
|
1481
1482
|
private selectionStart;
|
|
1482
1483
|
private selectionEnd;
|
|
1483
|
-
private selectionInitialStart;
|
|
1484
1484
|
private initialContent;
|
|
1485
|
-
private previousRef;
|
|
1486
|
-
private previousRange;
|
|
1487
1485
|
private colorIndexByRange;
|
|
1488
1486
|
allowDispatch(cmd: LocalCommand): CommandResult;
|
|
1489
1487
|
private handleEvent;
|
|
@@ -1499,6 +1497,19 @@ declare class EditionPlugin extends UIPlugin {
|
|
|
1499
1497
|
* Return the (enriched) token just before the cursor.
|
|
1500
1498
|
*/
|
|
1501
1499
|
getTokenAtCursor(): EnrichedToken | undefined;
|
|
1500
|
+
/**
|
|
1501
|
+
* Return the cycled reference if any (A1 -> $A$1 -> A$1 -> $A1 -> A1)
|
|
1502
|
+
*/
|
|
1503
|
+
getCycledReference(selection: {
|
|
1504
|
+
start: number;
|
|
1505
|
+
end: number;
|
|
1506
|
+
}, content: string): {
|
|
1507
|
+
content: string;
|
|
1508
|
+
selection: {
|
|
1509
|
+
start: number;
|
|
1510
|
+
end: number;
|
|
1511
|
+
};
|
|
1512
|
+
} | undefined;
|
|
1502
1513
|
private cycleReferences;
|
|
1503
1514
|
private validateSelection;
|
|
1504
1515
|
private onColumnsRemoved;
|
|
@@ -1529,7 +1540,11 @@ declare class EditionPlugin extends UIPlugin {
|
|
|
1529
1540
|
/**
|
|
1530
1541
|
* Replace the current reference selected by the new one.
|
|
1531
1542
|
* */
|
|
1532
|
-
private
|
|
1543
|
+
private replaceSelectedRange;
|
|
1544
|
+
/**
|
|
1545
|
+
* Replace the reference of the old zone by the new one.
|
|
1546
|
+
*/
|
|
1547
|
+
private updateComposerRange;
|
|
1533
1548
|
private getZoneReference;
|
|
1534
1549
|
private getRangeReference;
|
|
1535
1550
|
/**
|
|
@@ -1560,11 +1575,6 @@ declare class EditionPlugin extends UIPlugin {
|
|
|
1560
1575
|
* - Previous and next tokens can be separated by spaces
|
|
1561
1576
|
*/
|
|
1562
1577
|
private canStartComposerRangeSelection;
|
|
1563
|
-
/**
|
|
1564
|
-
* Return all the tokens between selectionStart and selectionEnd.
|
|
1565
|
-
* Includes token that begin right on selectionStart or end right on selectionEnd.
|
|
1566
|
-
*/
|
|
1567
|
-
private getTokensInSelection;
|
|
1568
1578
|
}
|
|
1569
1579
|
|
|
1570
1580
|
/**
|
|
@@ -1680,9 +1690,9 @@ interface PositionDependentCommand {
|
|
|
1680
1690
|
row: number;
|
|
1681
1691
|
}
|
|
1682
1692
|
declare const invalidateEvaluationCommands: 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" | "MOVE_CONDITIONAL_FORMAT" | "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" | "UPDATE_LOCALE" | "UNDO" | "REDO" | "EVALUATE_CELLS">;
|
|
1683
|
-
declare const invalidateDependenciesCommands: 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" | "MOVE_CONDITIONAL_FORMAT" | "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" | "UPDATE_LOCALE" | "SORT_CELLS" | "SET_DECIMAL" | "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" | "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" | "
|
|
1693
|
+
declare const invalidateDependenciesCommands: 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" | "MOVE_CONDITIONAL_FORMAT" | "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" | "UPDATE_LOCALE" | "SORT_CELLS" | "SET_DECIMAL" | "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" | "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" | "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" | "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">;
|
|
1684
1694
|
declare const invalidateCFEvaluationCommands: 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" | "MOVE_CONDITIONAL_FORMAT" | "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" | "UPDATE_LOCALE" | "UNDO" | "REDO" | "EVALUATE_CELLS">;
|
|
1685
|
-
declare const readonlyAllowedCommands: 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" | "MOVE_CONDITIONAL_FORMAT" | "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" | "UPDATE_LOCALE" | "SORT_CELLS" | "SET_DECIMAL" | "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" | "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" | "
|
|
1695
|
+
declare const readonlyAllowedCommands: 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" | "MOVE_CONDITIONAL_FORMAT" | "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" | "UPDATE_LOCALE" | "SORT_CELLS" | "SET_DECIMAL" | "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" | "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" | "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" | "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">;
|
|
1686
1696
|
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" | "MOVE_CONDITIONAL_FORMAT" | "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" | "UPDATE_LOCALE">;
|
|
1687
1697
|
interface UpdateCellCommand extends PositionDependentCommand {
|
|
1688
1698
|
type: "UPDATE_CELL";
|
|
@@ -1949,22 +1959,6 @@ interface ActivateSheetCommand {
|
|
|
1949
1959
|
sheetIdFrom: UID;
|
|
1950
1960
|
sheetIdTo: UID;
|
|
1951
1961
|
}
|
|
1952
|
-
/**
|
|
1953
|
-
* Set the selection mode to `readyToExpand`.
|
|
1954
|
-
* The user is ready to expand the selected zones with a new
|
|
1955
|
-
* selection (i.e. add an other zone the to currently selected zones).
|
|
1956
|
-
* In other words, the next selection will be added to the
|
|
1957
|
-
* current selection if this mode is active.
|
|
1958
|
-
*/
|
|
1959
|
-
interface PrepareExpansionCommand {
|
|
1960
|
-
type: "PREPARE_SELECTION_INPUT_EXPANSION";
|
|
1961
|
-
}
|
|
1962
|
-
/**
|
|
1963
|
-
* Set the selection mode to `idle`.
|
|
1964
|
-
*/
|
|
1965
|
-
interface StopSelectionCommand {
|
|
1966
|
-
type: "STOP_SELECTION_INPUT";
|
|
1967
|
-
}
|
|
1968
1962
|
/**
|
|
1969
1963
|
* Set a color to be used for the next selection to highlight.
|
|
1970
1964
|
* The color is only used when selection highlight is enabled.
|
|
@@ -1978,11 +1972,7 @@ interface EvaluateCellsCommand {
|
|
|
1978
1972
|
}
|
|
1979
1973
|
interface StartChangeHighlightCommand {
|
|
1980
1974
|
type: "START_CHANGE_HIGHLIGHT";
|
|
1981
|
-
|
|
1982
|
-
}
|
|
1983
|
-
interface ChangeHighlightCommand {
|
|
1984
|
-
type: "CHANGE_HIGHLIGHT";
|
|
1985
|
-
range: RangeData;
|
|
1975
|
+
zone: Zone;
|
|
1986
1976
|
}
|
|
1987
1977
|
interface StopComposerSelectionCommand {
|
|
1988
1978
|
type: "STOP_COMPOSER_RANGE_SELECTION";
|
|
@@ -2261,7 +2251,7 @@ UpdateCellCommand | UpdateCellPositionCommand | ClearCellCommand | DeleteContent
|
|
|
2261
2251
|
| CreateImageOverCommand
|
|
2262
2252
|
/** FILTERS */
|
|
2263
2253
|
| CreateFilterTableCommand | RemoveFilterTableCommand | UpdateLocaleCommand;
|
|
2264
|
-
type LocalCommand = RequestUndoCommand | RequestRedoCommand | UndoCommand | RedoCommand | NewInputCommand | RemoveInputCommand | UnfocusInputCommand | FocusInputCommand | AddEmptyRangeCommand | AddRangeCommand | RemoveRangeCommand | ChangeRangeCommand | CopyCommand | CutCommand | PasteCommand | RepeatPasteCommand | CleanClipBoardHighlightCommand | AutoFillCellCommand | PasteFromOSClipboardCommand | ActivatePaintFormatCommand | CancelPaintFormatCommand | AutoresizeColumnsCommand | AutoresizeRowsCommand | MoveColumnsRowsCommand | ActivateSheetCommand |
|
|
2254
|
+
type LocalCommand = RequestUndoCommand | RequestRedoCommand | UndoCommand | RedoCommand | NewInputCommand | RemoveInputCommand | UnfocusInputCommand | FocusInputCommand | AddEmptyRangeCommand | AddRangeCommand | RemoveRangeCommand | ChangeRangeCommand | CopyCommand | CutCommand | PasteCommand | RepeatPasteCommand | CleanClipBoardHighlightCommand | AutoFillCellCommand | PasteFromOSClipboardCommand | ActivatePaintFormatCommand | CancelPaintFormatCommand | AutoresizeColumnsCommand | AutoresizeRowsCommand | MoveColumnsRowsCommand | ActivateSheetCommand | EvaluateCellsCommand | StartChangeHighlightCommand | SetColorCommand | StopComposerSelectionCommand | StartEditionCommand | StopEditionCommand | SetCurrentContentCommand | ChangeComposerSelectionCommand | ReplaceComposerSelectionCommand | CycleEditionReferencesCommand | StartCommand | AutofillCommand | AutofillSelectCommand | ShowFormulaCommand | AutofillAutoCommand | SelectFigureCommand | UpdateSearchCommand | ClearSearchCommand | SelectSearchPreviousCommand | SelectSearchNextCommand | ReplaceSearchCommand | ReplaceAllSearchCommand | SortCommand | SetDecimalCommand | ResizeViewportCommand | SumSelectionCommand | DeleteCellCommand | InsertCellCommand | SetViewportOffsetCommand | MoveViewportDownCommand | MoveViewportUpCommand | OpenCellPopoverCommand | CloseCellPopoverCommand | ActivateNextSheetCommand | ActivatePreviousSheetCommand | UpdateFilterCommand | SplitTextIntoColumnsCommand;
|
|
2265
2255
|
type Command = CoreCommand | LocalCommand;
|
|
2266
2256
|
/**
|
|
2267
2257
|
* Holds the result of a command dispatch.
|
|
@@ -2977,7 +2967,7 @@ interface CorePluginConstructor {
|
|
|
2977
2967
|
* persisted state.
|
|
2978
2968
|
* They should not be concerned about UI parts or transient state.
|
|
2979
2969
|
*/
|
|
2980
|
-
declare class CorePlugin<State = any
|
|
2970
|
+
declare class CorePlugin<State = any> extends BasePlugin<State, CoreCommand> implements RangeProvider {
|
|
2981
2971
|
protected getters: CoreGetters;
|
|
2982
2972
|
protected uuidGenerator: UuidGenerator;
|
|
2983
2973
|
constructor({ getters, stateObserver, range, dispatch, uuidGenerator }: CorePluginConfig);
|
|
@@ -3127,7 +3117,7 @@ interface CoreState {
|
|
|
3127
3117
|
* cell and sheet content.
|
|
3128
3118
|
*/
|
|
3129
3119
|
declare class CellPlugin extends CorePlugin<CoreState> implements CoreState {
|
|
3130
|
-
static getters: readonly ["zoneToXC", "getCells", "getFormulaCellContent", "
|
|
3120
|
+
static getters: readonly ["zoneToXC", "getCells", "getFormulaCellContent", "getTranslatedCellFormula", "getCellStyle", "getCellById"];
|
|
3131
3121
|
readonly nextId = 1;
|
|
3132
3122
|
readonly cells: {
|
|
3133
3123
|
[sheetId: string]: {
|
|
@@ -3163,8 +3153,8 @@ declare class CellPlugin extends CorePlugin<CoreState> implements CoreState {
|
|
|
3163
3153
|
* starting an async evaluation even if it has been moved or re-allocated
|
|
3164
3154
|
*/
|
|
3165
3155
|
getCellById(cellId: UID): Cell | undefined;
|
|
3166
|
-
|
|
3167
|
-
|
|
3156
|
+
getFormulaCellContent(sheetId: UID, cell: Pick<FormulaCell, "dependencies" | "compiledFormula">, dependencies?: Range[]): string;
|
|
3157
|
+
getTranslatedCellFormula(sheetId: UID, offsetX: number, offsetY: number, compiledFormula: CompiledFormula, dependencies: Range[]): string;
|
|
3168
3158
|
getCellStyle(position: CellPosition): Style;
|
|
3169
3159
|
/**
|
|
3170
3160
|
* Converts a zone to a XC coordinate system
|
|
@@ -4209,8 +4199,7 @@ declare class SelectionInputPlugin extends UIPlugin implements StreamCallbacks<S
|
|
|
4209
4199
|
static getters: never[];
|
|
4210
4200
|
ranges: RangeInputValue[];
|
|
4211
4201
|
focusedRangeIndex: number | null;
|
|
4212
|
-
private
|
|
4213
|
-
private willAddNewRange;
|
|
4202
|
+
private inputSheetId;
|
|
4214
4203
|
constructor(config: UIPluginConfig, initialRanges: string[], inputHasSingleRange: boolean);
|
|
4215
4204
|
allowDispatch(cmd: LocalCommand): CommandResult;
|
|
4216
4205
|
handleEvent(event: SelectionEvent): void;
|
|
@@ -4223,7 +4212,6 @@ declare class SelectionInputPlugin extends UIPlugin implements StreamCallbacks<S
|
|
|
4223
4212
|
private focus;
|
|
4224
4213
|
private focusLast;
|
|
4225
4214
|
private unfocus;
|
|
4226
|
-
private add;
|
|
4227
4215
|
private setContent;
|
|
4228
4216
|
/**
|
|
4229
4217
|
* Insert new inputs after the given index.
|
|
@@ -7342,7 +7330,9 @@ declare const components: {
|
|
|
7342
7330
|
ScorecardChartDesignPanel: typeof ScorecardChartDesignPanel;
|
|
7343
7331
|
FigureComponent: typeof FigureComponent;
|
|
7344
7332
|
};
|
|
7345
|
-
declare function addFunction(functionName: string, functionDescription:
|
|
7333
|
+
declare function addFunction(functionName: string, functionDescription: AddFunctionDescription): {
|
|
7334
|
+
addFunction: (fName: string, fDescription: AddFunctionDescription) => any;
|
|
7335
|
+
};
|
|
7346
7336
|
declare const constants: {
|
|
7347
7337
|
DEFAULT_LOCALE: Locale;
|
|
7348
7338
|
};
|