@odoo/o-spreadsheet 16.4.0-alpha.0 → 16.4.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 +1507 -761
- package/dist/o-spreadsheet.d.ts +83 -63
- package/dist/o-spreadsheet.esm.js +1506 -762
- package/dist/o-spreadsheet.iife.js +1507 -761
- package/dist/o-spreadsheet.iife.min.js +283 -270
- package/package.json +1 -1
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -1132,7 +1132,6 @@ interface ModelConfig {
|
|
|
1132
1132
|
readonly client: Client;
|
|
1133
1133
|
readonly snapshotRequested: boolean;
|
|
1134
1134
|
readonly notifyUI: (payload: NotifyUIEvent) => void;
|
|
1135
|
-
readonly lazyEvaluation: boolean;
|
|
1136
1135
|
}
|
|
1137
1136
|
declare class Model extends EventBus<any> implements CommandDispatcher {
|
|
1138
1137
|
private corePlugins;
|
|
@@ -1365,7 +1364,6 @@ interface UIPluginConfig {
|
|
|
1365
1364
|
readonly moveClient: (position: ClientPosition) => void;
|
|
1366
1365
|
readonly uiActions: UIActions;
|
|
1367
1366
|
readonly custom: ModelConfig["custom"];
|
|
1368
|
-
readonly lazyEvaluation: boolean;
|
|
1369
1367
|
readonly session: Session;
|
|
1370
1368
|
}
|
|
1371
1369
|
interface UIPluginConstructor {
|
|
@@ -1671,8 +1669,10 @@ interface PositionDependentCommand {
|
|
|
1671
1669
|
col: number;
|
|
1672
1670
|
row: number;
|
|
1673
1671
|
}
|
|
1674
|
-
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" | "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" | "REMOVE_RANGE" | "CHANGE_RANGE" | "COPY" | "CUT" | "PASTE" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "ACTIVATE_PAINT_FORMAT" | "PASTE_CONDITIONAL_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "PREPARE_SELECTION_INPUT_EXPANSION" | "STOP_SELECTION_INPUT" | "EVALUATE_CELLS" | "CHANGE_HIGHLIGHT" | "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" | "REFRESH_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">;
|
|
1675
|
-
declare const
|
|
1672
|
+
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" | "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" | "PASTE_CONDITIONAL_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "PREPARE_SELECTION_INPUT_EXPANSION" | "STOP_SELECTION_INPUT" | "EVALUATE_CELLS" | "CHANGE_HIGHLIGHT" | "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" | "REFRESH_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">;
|
|
1673
|
+
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" | "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" | "PASTE_CONDITIONAL_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "PREPARE_SELECTION_INPUT_EXPANSION" | "STOP_SELECTION_INPUT" | "EVALUATE_CELLS" | "CHANGE_HIGHLIGHT" | "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" | "REFRESH_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">;
|
|
1674
|
+
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" | "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" | "PASTE_CONDITIONAL_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "PREPARE_SELECTION_INPUT_EXPANSION" | "STOP_SELECTION_INPUT" | "EVALUATE_CELLS" | "CHANGE_HIGHLIGHT" | "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" | "REFRESH_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">;
|
|
1675
|
+
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" | "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" | "PASTE_CONDITIONAL_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "PREPARE_SELECTION_INPUT_EXPANSION" | "STOP_SELECTION_INPUT" | "EVALUATE_CELLS" | "CHANGE_HIGHLIGHT" | "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" | "REFRESH_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">;
|
|
1676
1676
|
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">;
|
|
1677
1677
|
interface UpdateCellCommand extends PositionDependentCommand {
|
|
1678
1678
|
type: "UPDATE_CELL";
|
|
@@ -2085,6 +2085,17 @@ interface AddEmptyRangeCommand {
|
|
|
2085
2085
|
/** SelectionComponent id */
|
|
2086
2086
|
id: string;
|
|
2087
2087
|
}
|
|
2088
|
+
/**
|
|
2089
|
+
* Add an range at the end of a SelectionComponent state
|
|
2090
|
+
* and focus it.
|
|
2091
|
+
*/
|
|
2092
|
+
interface AddRangeCommand {
|
|
2093
|
+
type: "ADD_RANGE";
|
|
2094
|
+
/** SelectionComponent id */
|
|
2095
|
+
id: string;
|
|
2096
|
+
/** The range to be added */
|
|
2097
|
+
value: string;
|
|
2098
|
+
}
|
|
2088
2099
|
/**
|
|
2089
2100
|
* Remove a given range in a SelectionComponent state
|
|
2090
2101
|
*/
|
|
@@ -2240,7 +2251,7 @@ UpdateCellCommand | UpdateCellPositionCommand | ClearCellCommand | DeleteContent
|
|
|
2240
2251
|
| CreateImageOverCommand
|
|
2241
2252
|
/** FILTERS */
|
|
2242
2253
|
| CreateFilterTableCommand | RemoveFilterTableCommand;
|
|
2243
|
-
declare type LocalCommand = RequestUndoCommand | RequestRedoCommand | UndoCommand | RedoCommand | NewInputCommand | RemoveInputCommand | UnfocusInputCommand | FocusInputCommand | AddEmptyRangeCommand | RemoveRangeCommand | ChangeRangeCommand | CopyCommand | CutCommand | PasteCommand | RepeatPasteCommand | CleanClipBoardHighlightCommand | AutoFillCellCommand | PasteFromOSClipboardCommand | ActivatePaintFormatCommand | PasteCFCommand | AutoresizeColumnsCommand | AutoresizeRowsCommand | MoveColumnsRowsCommand | ActivateSheetCommand | PrepareExpansionCommand | StopSelectionCommand | EvaluateCellsCommand | ChangeHighlightCommand | StartChangeHighlightCommand | SetColorCommand | StopComposerSelectionCommand | StartEditionCommand | StopEditionCommand | SetCurrentContentCommand | ChangeComposerSelectionCommand | ReplaceComposerSelectionCommand | CycleEditionReferencesCommand | StartCommand | AutofillCommand | AutofillSelectCommand | ShowFormulaCommand | AutofillAutoCommand | SelectFigureCommand | UpdateSearchCommand | RefreshSearchCommand | ClearSearchCommand | SelectSearchPreviousCommand | SelectSearchNextCommand | ReplaceSearchCommand | ReplaceAllSearchCommand | SortCommand | SetDecimalCommand | ResizeViewportCommand | SumSelectionCommand | DeleteCellCommand | InsertCellCommand | SetViewportOffsetCommand | MoveViewportDownCommand | MoveViewportUpCommand | OpenCellPopoverCommand | CloseCellPopoverCommand | ActivateNextSheetCommand | ActivatePreviousSheetCommand | UpdateFilterCommand | SplitTextIntoColumnsCommand;
|
|
2254
|
+
declare type LocalCommand = RequestUndoCommand | RequestRedoCommand | UndoCommand | RedoCommand | NewInputCommand | RemoveInputCommand | UnfocusInputCommand | FocusInputCommand | AddEmptyRangeCommand | AddRangeCommand | RemoveRangeCommand | ChangeRangeCommand | CopyCommand | CutCommand | PasteCommand | RepeatPasteCommand | CleanClipBoardHighlightCommand | AutoFillCellCommand | PasteFromOSClipboardCommand | ActivatePaintFormatCommand | PasteCFCommand | AutoresizeColumnsCommand | AutoresizeRowsCommand | MoveColumnsRowsCommand | ActivateSheetCommand | PrepareExpansionCommand | StopSelectionCommand | EvaluateCellsCommand | ChangeHighlightCommand | StartChangeHighlightCommand | SetColorCommand | StopComposerSelectionCommand | StartEditionCommand | StopEditionCommand | SetCurrentContentCommand | ChangeComposerSelectionCommand | ReplaceComposerSelectionCommand | CycleEditionReferencesCommand | StartCommand | AutofillCommand | AutofillSelectCommand | ShowFormulaCommand | AutofillAutoCommand | SelectFigureCommand | UpdateSearchCommand | RefreshSearchCommand | ClearSearchCommand | SelectSearchPreviousCommand | SelectSearchNextCommand | ReplaceSearchCommand | ReplaceAllSearchCommand | SortCommand | SetDecimalCommand | ResizeViewportCommand | SumSelectionCommand | DeleteCellCommand | InsertCellCommand | SetViewportOffsetCommand | MoveViewportDownCommand | MoveViewportUpCommand | OpenCellPopoverCommand | CloseCellPopoverCommand | ActivateNextSheetCommand | ActivatePreviousSheetCommand | UpdateFilterCommand | SplitTextIntoColumnsCommand;
|
|
2244
2255
|
declare type Command = CoreCommand | LocalCommand;
|
|
2245
2256
|
/**
|
|
2246
2257
|
* Holds the result of a command dispatch.
|
|
@@ -2502,34 +2513,44 @@ interface Border$1 {
|
|
|
2502
2513
|
right?: BorderDescr;
|
|
2503
2514
|
}
|
|
2504
2515
|
declare type ReferenceDenormalizer = (range: Range, isMeta: boolean, functionName: string, paramNumber: number) => any | any[][];
|
|
2505
|
-
declare type EnsureRange = (range: Range) =>
|
|
2516
|
+
declare type EnsureRange = (range: Range) => MatrixArg;
|
|
2506
2517
|
declare type _CompiledFormula = (deps: Range[], refFn: ReferenceDenormalizer, range: EnsureRange, ctx: {}) => FormulaReturn;
|
|
2507
2518
|
interface CompiledFormula {
|
|
2508
2519
|
execute: _CompiledFormula;
|
|
2509
2520
|
tokens: Token[];
|
|
2510
2521
|
dependencies: string[];
|
|
2511
2522
|
}
|
|
2523
|
+
declare type Matrix<T = unknown> = T[][];
|
|
2512
2524
|
declare type Arg = MatrixArg | PrimitiveArg;
|
|
2513
|
-
declare type MatrixArg =
|
|
2514
|
-
value:
|
|
2515
|
-
format?:
|
|
2516
|
-
}
|
|
2525
|
+
declare type MatrixArg = {
|
|
2526
|
+
value: MatrixArgValue;
|
|
2527
|
+
format?: MatrixArgFormat;
|
|
2528
|
+
};
|
|
2517
2529
|
declare type PrimitiveArg = {
|
|
2518
2530
|
value: PrimitiveArgValue;
|
|
2519
|
-
format?:
|
|
2531
|
+
format?: PrimitiveFormat;
|
|
2520
2532
|
};
|
|
2521
2533
|
declare type ArgValue = PrimitiveArgValue | MatrixArgValue;
|
|
2522
|
-
declare type MatrixArgValue =
|
|
2523
|
-
declare type PrimitiveArgValue =
|
|
2524
|
-
declare type
|
|
2525
|
-
|
|
2526
|
-
|
|
2534
|
+
declare type MatrixArgValue = Matrix<CellValue | undefined>;
|
|
2535
|
+
declare type PrimitiveArgValue = CellValue | null;
|
|
2536
|
+
declare type MatrixArgFormat = Matrix<PrimitiveFormat>;
|
|
2537
|
+
declare type PrimitiveFormat = Format | undefined;
|
|
2538
|
+
declare type FunctionReturn = MatrixFunctionReturn | PrimitiveFunctionReturn;
|
|
2539
|
+
declare type FunctionReturnValue = CellValue | Matrix<CellValue>;
|
|
2540
|
+
declare type FunctionReturnFormat = PrimitiveFormat | MatrixArgFormat;
|
|
2541
|
+
declare type MatrixFunctionReturn = {
|
|
2542
|
+
value: Matrix<CellValue>;
|
|
2543
|
+
format?: FunctionReturnFormat;
|
|
2544
|
+
};
|
|
2545
|
+
declare type PrimitiveFunctionReturn = {
|
|
2546
|
+
value: CellValue;
|
|
2547
|
+
format?: PrimitiveFormat;
|
|
2548
|
+
};
|
|
2549
|
+
declare type FormulaReturn = MatrixFunctionReturn | PrimitiveFormulaReturn;
|
|
2550
|
+
declare type PrimitiveFormulaReturn = {
|
|
2551
|
+
value: CellValue | null;
|
|
2552
|
+
format?: PrimitiveFormat;
|
|
2527
2553
|
};
|
|
2528
|
-
interface FormulaReturn extends Omit<FunctionReturn, "value"> {
|
|
2529
|
-
value: FunctionReturnValue | null;
|
|
2530
|
-
format?: Format;
|
|
2531
|
-
}
|
|
2532
|
-
declare type FunctionReturnValue = string | number | boolean;
|
|
2533
2554
|
interface HeaderDimensions {
|
|
2534
2555
|
start: Pixel;
|
|
2535
2556
|
size: Pixel;
|
|
@@ -2825,7 +2846,7 @@ declare type ComputeFunction<T, R> = (this: EvalContext, ...args: ComputeFunctio
|
|
|
2825
2846
|
interface AddFunctionDescription {
|
|
2826
2847
|
description: string;
|
|
2827
2848
|
compute: ComputeFunction<ArgValue, FunctionReturnValue>;
|
|
2828
|
-
computeFormat?: ComputeFunction<Arg,
|
|
2849
|
+
computeFormat?: ComputeFunction<Arg, FunctionReturnFormat>;
|
|
2829
2850
|
category?: string;
|
|
2830
2851
|
args: ArgDefinition[];
|
|
2831
2852
|
returns: [ArgType];
|
|
@@ -2922,7 +2943,6 @@ interface CorePluginConstructor {
|
|
|
2922
2943
|
*/
|
|
2923
2944
|
declare class CorePlugin<State = any, C = CoreCommand> extends BasePlugin<State, C> implements RangeProvider {
|
|
2924
2945
|
protected getters: CoreGetters;
|
|
2925
|
-
protected range: RangeAdapter;
|
|
2926
2946
|
protected uuidGenerator: UuidGenerator;
|
|
2927
2947
|
constructor({ getters, stateObserver, range, dispatch, uuidGenerator }: CorePluginConfig);
|
|
2928
2948
|
import(data: WorkbookData): void;
|
|
@@ -3693,31 +3713,14 @@ declare class SheetPlugin extends CorePlugin<SheetState$1> implements SheetState
|
|
|
3693
3713
|
private checkZonesAreInSheet;
|
|
3694
3714
|
}
|
|
3695
3715
|
|
|
3696
|
-
/**
|
|
3697
|
-
* CustomColors plugin
|
|
3698
|
-
* This plugins aims to compute and keep to custom colors used in the
|
|
3699
|
-
* current spreadsheet
|
|
3700
|
-
*/
|
|
3701
|
-
declare class CustomColorsPlugin extends UIPlugin {
|
|
3702
|
-
private customColors;
|
|
3703
|
-
private shouldUpdateColors;
|
|
3704
|
-
static getters: readonly ["getCustomColors"];
|
|
3705
|
-
handle(cmd: Command): void;
|
|
3706
|
-
finalize(): void;
|
|
3707
|
-
getCustomColors(): Color[];
|
|
3708
|
-
private getColorsFromCells;
|
|
3709
|
-
private getFormattingColors;
|
|
3710
|
-
private getChartColors;
|
|
3711
|
-
private tryToAddColor;
|
|
3712
|
-
}
|
|
3713
|
-
|
|
3714
3716
|
declare class EvaluationPlugin extends UIPlugin {
|
|
3715
|
-
static getters: readonly ["evaluateFormula", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "
|
|
3716
|
-
private
|
|
3717
|
-
private
|
|
3718
|
-
private
|
|
3719
|
-
private
|
|
3717
|
+
static getters: readonly ["evaluateFormula", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone"];
|
|
3718
|
+
private shouldRebuildDependenciesGraph;
|
|
3719
|
+
private evaluator;
|
|
3720
|
+
private compilationParams;
|
|
3721
|
+
private positionsToUpdate;
|
|
3720
3722
|
constructor(config: UIPluginConfig);
|
|
3723
|
+
beforeHandle(cmd: Command): void;
|
|
3721
3724
|
handle(cmd: Command): void;
|
|
3722
3725
|
finalize(): void;
|
|
3723
3726
|
evaluateFormula(formulaString: string, sheetId?: UID): any;
|
|
@@ -3733,25 +3736,34 @@ declare class EvaluationPlugin extends UIPlugin {
|
|
|
3733
3736
|
* Return the format of each cell in the range.
|
|
3734
3737
|
*/
|
|
3735
3738
|
getRangeFormats(range: Range): (Format | undefined)[];
|
|
3736
|
-
getEvaluatedCell(
|
|
3739
|
+
getEvaluatedCell(position: CellPosition): EvaluatedCell;
|
|
3737
3740
|
getEvaluatedCells(sheetId: UID): Record<UID, EvaluatedCell>;
|
|
3738
|
-
/**
|
|
3739
|
-
* Returns all the evaluated cells of a col
|
|
3740
|
-
*/
|
|
3741
|
-
getColEvaluatedCells(sheetId: UID, col: HeaderIndex): EvaluatedCell[];
|
|
3742
3741
|
getEvaluatedCellsInZone(sheetId: UID, zone: Zone): EvaluatedCell[];
|
|
3743
|
-
|
|
3744
|
-
private getAllCells;
|
|
3745
|
-
private evaluate;
|
|
3742
|
+
exportForExcel(data: ExcelWorkbookData): void;
|
|
3746
3743
|
/**
|
|
3747
|
-
*
|
|
3748
|
-
*
|
|
3749
|
-
*
|
|
3750
|
-
* - an evaluation context
|
|
3744
|
+
* Returns the corresponding formula cell of a given cell
|
|
3745
|
+
* It could be the formula present in the cell itself or the
|
|
3746
|
+
* formula of the array formula that spreads to the cell
|
|
3751
3747
|
*/
|
|
3752
|
-
private
|
|
3753
|
-
|
|
3754
|
-
|
|
3748
|
+
private getCorrespondingFormulaCell;
|
|
3749
|
+
}
|
|
3750
|
+
|
|
3751
|
+
/**
|
|
3752
|
+
* CustomColors plugin
|
|
3753
|
+
* This plugins aims to compute and keep to custom colors used in the
|
|
3754
|
+
* current spreadsheet
|
|
3755
|
+
*/
|
|
3756
|
+
declare class CustomColorsPlugin extends UIPlugin {
|
|
3757
|
+
private customColors;
|
|
3758
|
+
private shouldUpdateColors;
|
|
3759
|
+
static getters: readonly ["getCustomColors"];
|
|
3760
|
+
handle(cmd: Command): void;
|
|
3761
|
+
finalize(): void;
|
|
3762
|
+
getCustomColors(): Color[];
|
|
3763
|
+
private getColorsFromCells;
|
|
3764
|
+
private getFormattingColors;
|
|
3765
|
+
private getChartColors;
|
|
3766
|
+
private tryToAddColor;
|
|
3755
3767
|
}
|
|
3756
3768
|
|
|
3757
3769
|
declare class EvaluationChartPlugin extends UIPlugin {
|
|
@@ -4976,7 +4988,7 @@ interface ChartBuilder {
|
|
|
4976
4988
|
}
|
|
4977
4989
|
|
|
4978
4990
|
interface Props$D {
|
|
4979
|
-
ranges: string[];
|
|
4991
|
+
ranges: () => string[];
|
|
4980
4992
|
hasSingleRange?: boolean;
|
|
4981
4993
|
required?: boolean;
|
|
4982
4994
|
isInvalid?: boolean;
|
|
@@ -5008,6 +5020,8 @@ declare class SelectionInput extends Component<Props$D, SpreadsheetChildEnv> {
|
|
|
5008
5020
|
get hasFocus(): boolean;
|
|
5009
5021
|
get canAddRange(): boolean;
|
|
5010
5022
|
get isInvalid(): boolean;
|
|
5023
|
+
get isConfirmable(): boolean;
|
|
5024
|
+
get isResettable(): boolean;
|
|
5011
5025
|
setup(): void;
|
|
5012
5026
|
enableNewSelectionInput(): void;
|
|
5013
5027
|
disableNewSelectionInput(): void;
|
|
@@ -5020,6 +5034,7 @@ declare class SelectionInput extends Component<Props$D, SpreadsheetChildEnv> {
|
|
|
5020
5034
|
addEmptyInput(): void;
|
|
5021
5035
|
removeInput(rangeId: number): void;
|
|
5022
5036
|
onInputChanged(rangeId: number, ev: InputEvent): void;
|
|
5037
|
+
reset(): void;
|
|
5023
5038
|
confirm(): void;
|
|
5024
5039
|
}
|
|
5025
5040
|
|
|
@@ -5047,12 +5062,14 @@ declare class LineBarPieConfigPanel extends Component<Props$C, SpreadsheetChildE
|
|
|
5047
5062
|
*/
|
|
5048
5063
|
onDataSeriesRangesChanged(ranges: string[]): void;
|
|
5049
5064
|
onDataSeriesConfirmed(): void;
|
|
5065
|
+
getDataSeriesRanges(): string[];
|
|
5050
5066
|
/**
|
|
5051
5067
|
* Change the local labelRange. The model should be updated when the
|
|
5052
5068
|
* button "confirm" is clicked
|
|
5053
5069
|
*/
|
|
5054
5070
|
onLabelRangeChanged(ranges: string[]): void;
|
|
5055
5071
|
onLabelRangeConfirmed(): void;
|
|
5072
|
+
getLabelRange(): string;
|
|
5056
5073
|
onUpdateAggregated(ev: any): void;
|
|
5057
5074
|
calculateHeaderPosition(): number | undefined;
|
|
5058
5075
|
}
|
|
@@ -5205,6 +5222,7 @@ declare class GaugeChartConfigPanel extends Component<Props$z, SpreadsheetChildE
|
|
|
5205
5222
|
get isDataRangeInvalid(): boolean;
|
|
5206
5223
|
onDataRangeChanged(ranges: string[]): void;
|
|
5207
5224
|
updateDataRange(): void;
|
|
5225
|
+
getDataRange(): string;
|
|
5208
5226
|
}
|
|
5209
5227
|
|
|
5210
5228
|
declare type GaugeMenu = "backgroundColor" | "sectionColor-lowerColor" | "sectionColor-middleColor" | "sectionColor-upperColor";
|
|
@@ -5263,8 +5281,10 @@ declare class ScorecardChartConfigPanel extends Component<Props$x, SpreadsheetCh
|
|
|
5263
5281
|
get isBaselineInvalid(): boolean;
|
|
5264
5282
|
onKeyValueRangeChanged(ranges: string[]): void;
|
|
5265
5283
|
updateKeyValueRange(): void;
|
|
5284
|
+
getKeyValueRange(): string;
|
|
5266
5285
|
onBaselineRangeChanged(ranges: string[]): void;
|
|
5267
5286
|
updateBaselineRange(): void;
|
|
5287
|
+
getBaselineRange(): string;
|
|
5268
5288
|
updateBaselineMode(ev: any): void;
|
|
5269
5289
|
}
|
|
5270
5290
|
|
|
@@ -7197,4 +7217,4 @@ declare const components: {
|
|
|
7197
7217
|
};
|
|
7198
7218
|
declare function addFunction(functionName: string, functionDescription: FunctionDescription): void;
|
|
7199
7219
|
|
|
7200
|
-
export { AbstractChart, CancelledReason, Client, ClientJoinedMessage, ClientLeftMessage, ClientMovedMessage, CollaborationMessage, CommandResult, CorePlugin, DispatchResult, EvaluationError, Model, Registry, RemoteRevisionMessage, Revision, RevisionRedoneMessage, RevisionUndoneMessage, SPREADSHEET_DIMENSIONS, Spreadsheet, TransportService, UIPlugin, __info__, addFunction, astToFormula, compile, components, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, invalidateEvaluationCommands, links, load, parse, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, tokenize };
|
|
7220
|
+
export { AbstractChart, CancelledReason, Client, ClientJoinedMessage, ClientLeftMessage, ClientMovedMessage, CollaborationMessage, CommandResult, CorePlugin, DispatchResult, EvaluationError, Model, Registry, RemoteRevisionMessage, Revision, RevisionRedoneMessage, RevisionUndoneMessage, SPREADSHEET_DIMENSIONS, Spreadsheet, TransportService, UIPlugin, __info__, addFunction, astToFormula, compile, components, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, invalidateCFEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, links, load, parse, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, tokenize };
|