@odoo/o-spreadsheet 16.4.0-alpha.7 → 16.4.1
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 +712 -491
- package/dist/o-spreadsheet.d.ts +142 -113
- package/dist/o-spreadsheet.esm.js +712 -491
- package/dist/o-spreadsheet.iife.js +712 -491
- package/dist/o-spreadsheet.iife.min.js +324 -315
- package/package.json +12 -12
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -917,8 +917,8 @@ declare function toXC(col: HeaderIndex, row: HeaderIndex, rangePart?: RangePart)
|
|
|
917
917
|
* Formats a cell value with its format.
|
|
918
918
|
*/
|
|
919
919
|
declare function formatValue(value: CellValue, { format, locale }: LocaleFormat): FormattedValue;
|
|
920
|
+
declare function createCurrencyFormat(currency: Partial<Currency>): Format;
|
|
920
921
|
|
|
921
|
-
declare function computeTextWidth(context: CanvasRenderingContext2D, text: string, style: Style): number;
|
|
922
922
|
declare function isMarkdownLink(str: string): boolean;
|
|
923
923
|
/**
|
|
924
924
|
* Build a markdown link from a label and an url
|
|
@@ -978,6 +978,8 @@ declare class RangeImpl implements Range {
|
|
|
978
978
|
clone(rangeParams?: Partial<ConstructorArgs>): RangeImpl;
|
|
979
979
|
}
|
|
980
980
|
|
|
981
|
+
declare function computeTextWidth(context: CanvasRenderingContext2D, text: string, style: Style): number;
|
|
982
|
+
|
|
981
983
|
declare class UuidGenerator {
|
|
982
984
|
private isFastIdStrategy;
|
|
983
985
|
private fastIdStart;
|
|
@@ -1121,6 +1123,7 @@ interface ModelConfig {
|
|
|
1121
1123
|
readonly custom: Readonly<{
|
|
1122
1124
|
[key: string]: any;
|
|
1123
1125
|
}>;
|
|
1126
|
+
readonly defaultCurrencyFormat: Format;
|
|
1124
1127
|
/**
|
|
1125
1128
|
* External dependencies required to enable some features
|
|
1126
1129
|
* such as uploading images.
|
|
@@ -1416,7 +1419,9 @@ declare class FindAndReplacePlugin extends UIPlugin {
|
|
|
1416
1419
|
private currentSearchRegex;
|
|
1417
1420
|
private searchOptions;
|
|
1418
1421
|
private toSearch;
|
|
1422
|
+
private isSearchDirty;
|
|
1419
1423
|
handle(cmd: Command): void;
|
|
1424
|
+
finalize(): void;
|
|
1420
1425
|
getSearchMatches(): SearchMatch[];
|
|
1421
1426
|
getCurrentSelectedMatchIndex(): number | null;
|
|
1422
1427
|
/**
|
|
@@ -1675,9 +1680,9 @@ interface PositionDependentCommand {
|
|
|
1675
1680
|
row: number;
|
|
1676
1681
|
}
|
|
1677
1682
|
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">;
|
|
1678
|
-
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" | "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" | "
|
|
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" | "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" | "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">;
|
|
1679
1684
|
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">;
|
|
1680
|
-
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" | "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" | "
|
|
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" | "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" | "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">;
|
|
1681
1686
|
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">;
|
|
1682
1687
|
interface UpdateCellCommand extends PositionDependentCommand {
|
|
1683
1688
|
type: "UPDATE_CELL";
|
|
@@ -1918,6 +1923,10 @@ interface AutoFillCellCommand {
|
|
|
1918
1923
|
}
|
|
1919
1924
|
interface ActivatePaintFormatCommand {
|
|
1920
1925
|
type: "ACTIVATE_PAINT_FORMAT";
|
|
1926
|
+
persistent?: boolean;
|
|
1927
|
+
}
|
|
1928
|
+
interface CancelPaintFormatCommand {
|
|
1929
|
+
type: "CANCEL_PAINT_FORMAT";
|
|
1921
1930
|
}
|
|
1922
1931
|
interface PasteFromOSClipboardCommand {
|
|
1923
1932
|
type: "PASTE_FROM_OS_CLIPBOARD";
|
|
@@ -2143,9 +2152,6 @@ interface UpdateSearchCommand {
|
|
|
2143
2152
|
interface ClearSearchCommand {
|
|
2144
2153
|
type: "CLEAR_SEARCH";
|
|
2145
2154
|
}
|
|
2146
|
-
interface RefreshSearchCommand {
|
|
2147
|
-
type: "REFRESH_SEARCH";
|
|
2148
|
-
}
|
|
2149
2155
|
interface SelectSearchPreviousCommand {
|
|
2150
2156
|
type: "SELECT_SEARCH_PREVIOUS_MATCH";
|
|
2151
2157
|
}
|
|
@@ -2255,7 +2261,7 @@ UpdateCellCommand | UpdateCellPositionCommand | ClearCellCommand | DeleteContent
|
|
|
2255
2261
|
| CreateImageOverCommand
|
|
2256
2262
|
/** FILTERS */
|
|
2257
2263
|
| CreateFilterTableCommand | RemoveFilterTableCommand | UpdateLocaleCommand;
|
|
2258
|
-
type LocalCommand = RequestUndoCommand | RequestRedoCommand | UndoCommand | RedoCommand | NewInputCommand | RemoveInputCommand | UnfocusInputCommand | FocusInputCommand | AddEmptyRangeCommand | AddRangeCommand | RemoveRangeCommand | ChangeRangeCommand | CopyCommand | CutCommand | PasteCommand | RepeatPasteCommand | CleanClipBoardHighlightCommand | AutoFillCellCommand | PasteFromOSClipboardCommand | ActivatePaintFormatCommand | AutoresizeColumnsCommand | AutoresizeRowsCommand | MoveColumnsRowsCommand | ActivateSheetCommand | PrepareExpansionCommand | StopSelectionCommand | EvaluateCellsCommand | ChangeHighlightCommand | StartChangeHighlightCommand | SetColorCommand | StopComposerSelectionCommand | StartEditionCommand | StopEditionCommand | SetCurrentContentCommand | ChangeComposerSelectionCommand | ReplaceComposerSelectionCommand | CycleEditionReferencesCommand | StartCommand | AutofillCommand | AutofillSelectCommand | ShowFormulaCommand | AutofillAutoCommand | SelectFigureCommand | UpdateSearchCommand |
|
|
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 | PrepareExpansionCommand | StopSelectionCommand | EvaluateCellsCommand | ChangeHighlightCommand | 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;
|
|
2259
2265
|
type Command = CoreCommand | LocalCommand;
|
|
2260
2266
|
/**
|
|
2261
2267
|
* Holds the result of a command dispatch.
|
|
@@ -2372,7 +2378,8 @@ declare const enum CommandResult {
|
|
|
2372
2378
|
SplitWillOverwriteContent = 91,
|
|
2373
2379
|
NoSplitSeparatorInSelection = 92,
|
|
2374
2380
|
NoActiveSheet = 93,
|
|
2375
|
-
InvalidLocale = 94
|
|
2381
|
+
InvalidLocale = 94,
|
|
2382
|
+
AlreadyInPaintingFormatMode = 95
|
|
2376
2383
|
}
|
|
2377
2384
|
interface CommandHandler<T> {
|
|
2378
2385
|
allowDispatch(command: T): CommandResult | CommandResult[];
|
|
@@ -3084,7 +3091,7 @@ declare class BordersPlugin extends CorePlugin<BordersPluginState> implements Bo
|
|
|
3084
3091
|
private moveBordersOfColumn;
|
|
3085
3092
|
/**
|
|
3086
3093
|
* Set the borders of a cell.
|
|
3087
|
-
* It overrides the current border if override
|
|
3094
|
+
* It overrides the current border if override === true.
|
|
3088
3095
|
*/
|
|
3089
3096
|
private setBorder;
|
|
3090
3097
|
/**
|
|
@@ -3433,34 +3440,15 @@ declare class FiltersPlugin extends CorePlugin<FiltersState> implements FiltersS
|
|
|
3433
3440
|
exportForExcel(data: ExcelWorkbookData): void;
|
|
3434
3441
|
}
|
|
3435
3442
|
|
|
3436
|
-
interface
|
|
3437
|
-
|
|
3438
|
-
computedSize: Lazy<Pixel>;
|
|
3439
|
-
}
|
|
3440
|
-
interface HeaderSizeState {
|
|
3441
|
-
sizes: Record<UID, Record<Dimension, Array<HeaderSize>>>;
|
|
3443
|
+
interface HeaderSizeState$1 {
|
|
3444
|
+
sizes: Record<UID, Record<Dimension, Array<Pixel | undefined>>>;
|
|
3442
3445
|
}
|
|
3443
|
-
declare class HeaderSizePlugin extends CorePlugin<HeaderSizeState> implements HeaderSizeState {
|
|
3444
|
-
static getters: readonly ["
|
|
3445
|
-
readonly sizes: Record<UID, Record<Dimension, Array<
|
|
3446
|
+
declare class HeaderSizePlugin extends CorePlugin<HeaderSizeState$1> implements HeaderSizeState$1 {
|
|
3447
|
+
static getters: readonly ["getUserRowSize", "getColSize"];
|
|
3448
|
+
readonly sizes: Record<UID, Record<Dimension, Array<Pixel | undefined>>>;
|
|
3446
3449
|
handle(cmd: Command): void;
|
|
3447
3450
|
getColSize(sheetId: UID, index: HeaderIndex): Pixel;
|
|
3448
|
-
|
|
3449
|
-
private getHeaderSize;
|
|
3450
|
-
private computeSheetSizes;
|
|
3451
|
-
private getDefaultHeaderSize;
|
|
3452
|
-
/**
|
|
3453
|
-
* Return the height the cell should have in the sheet, which is either DEFAULT_CELL_HEIGHT if the cell is in a multi-row
|
|
3454
|
-
* merge, or the height of the cell computed based on its font size.
|
|
3455
|
-
*/
|
|
3456
|
-
private getCellHeight;
|
|
3457
|
-
/**
|
|
3458
|
-
* Get the tallest cell of a row and its size.
|
|
3459
|
-
*
|
|
3460
|
-
* The tallest cell of the row correspond to the cell with the biggest font size,
|
|
3461
|
-
* and that is not part of a multi-line merge.
|
|
3462
|
-
*/
|
|
3463
|
-
private getRowTallestCellSize;
|
|
3451
|
+
getUserRowSize(sheetId: UID, index: HeaderIndex): Pixel | undefined;
|
|
3464
3452
|
import(data: WorkbookData): void;
|
|
3465
3453
|
exportForExcel(data: ExcelWorkbookData): void;
|
|
3466
3454
|
export(data: WorkbookData): void;
|
|
@@ -3878,6 +3866,33 @@ declare class EvaluationConditionalFormatPlugin extends UIPlugin {
|
|
|
3878
3866
|
private rulePredicate;
|
|
3879
3867
|
}
|
|
3880
3868
|
|
|
3869
|
+
interface HeaderSizeState {
|
|
3870
|
+
tallestCellInRow: Immutable<Record<UID, Array<CellWithSize | undefined>>>;
|
|
3871
|
+
}
|
|
3872
|
+
interface CellWithSize {
|
|
3873
|
+
cell: CellPosition;
|
|
3874
|
+
size: Pixel;
|
|
3875
|
+
}
|
|
3876
|
+
declare class UIRowSizePlugin extends UIPlugin<HeaderSizeState> implements HeaderSizeState {
|
|
3877
|
+
static getters: readonly ["getRowSize"];
|
|
3878
|
+
readonly tallestCellInRow: Immutable<Record<UID, Array<CellWithSize | undefined>>>;
|
|
3879
|
+
private ctx;
|
|
3880
|
+
handle(cmd: Command): void;
|
|
3881
|
+
getRowSize(sheetId: UID, row: HeaderIndex): Pixel;
|
|
3882
|
+
private updateRowSizeForCellChange;
|
|
3883
|
+
private initializeSheet;
|
|
3884
|
+
/**
|
|
3885
|
+
* Return the height the cell should have in the sheet, which is either DEFAULT_CELL_HEIGHT if the cell is in a multi-row
|
|
3886
|
+
* merge, or the height of the cell computed based on its style/content.
|
|
3887
|
+
*/
|
|
3888
|
+
private getCellHeight;
|
|
3889
|
+
private isInMultiRowMerge;
|
|
3890
|
+
/**
|
|
3891
|
+
* Get the tallest cell of a row and its size.
|
|
3892
|
+
*/
|
|
3893
|
+
private getRowTallestCell;
|
|
3894
|
+
}
|
|
3895
|
+
|
|
3881
3896
|
/**
|
|
3882
3897
|
* Autofill Plugin
|
|
3883
3898
|
*
|
|
@@ -4405,7 +4420,6 @@ declare class SheetUIPlugin extends UIPlugin {
|
|
|
4405
4420
|
*/
|
|
4406
4421
|
getColRowOffset(dimension: Dimension, referenceIndex: HeaderIndex, index: HeaderIndex, sheetId?: UID): Pixel;
|
|
4407
4422
|
private getColMaxWidth;
|
|
4408
|
-
private splitWordToSpecificWidth;
|
|
4409
4423
|
/**
|
|
4410
4424
|
* Check that any "sheetId" in the command matches an existing
|
|
4411
4425
|
* sheet.
|
|
@@ -4430,7 +4444,7 @@ declare class ClipboardPlugin extends UIPlugin {
|
|
|
4430
4444
|
private status;
|
|
4431
4445
|
private state?;
|
|
4432
4446
|
private lastPasteState?;
|
|
4433
|
-
private
|
|
4447
|
+
private paintFormatStatus;
|
|
4434
4448
|
private originSheetId?;
|
|
4435
4449
|
allowDispatch(cmd: LocalCommand): CommandResult;
|
|
4436
4450
|
handle(cmd: Command): void;
|
|
@@ -4860,10 +4874,11 @@ type ViewportGetters = Pick<SheetViewPlugin, GetterNames<typeof SheetViewPlugin>
|
|
|
4860
4874
|
type CellPopoverPluginGetters = Pick<CellPopoverPlugin, GetterNames<typeof CellPopoverPlugin>>;
|
|
4861
4875
|
type FilterEvaluationGetters = Pick<FilterEvaluationPlugin, GetterNames<typeof FilterEvaluationPlugin>>;
|
|
4862
4876
|
type SplitToColumnsGetters = Pick<SplitToColumnsPlugin, GetterNames<typeof SplitToColumnsPlugin>>;
|
|
4877
|
+
type UIRowSizeGetters = Pick<UIRowSizePlugin, GetterNames<typeof UIRowSizePlugin>>;
|
|
4863
4878
|
type Getters = {
|
|
4864
4879
|
isReadonly: () => boolean;
|
|
4865
4880
|
isDashboard: () => boolean;
|
|
4866
|
-
} & LocalHistoryGetters & CoreGetters & AutofillGetters & AutomaticSumGetters & ClipboardGetters & EditionGetters & EvaluationGetters & EvaluationChartGetters & EvaluationConditionalFormatGetters & FindAndReplaceGetters & HighlightGetters & CustomColorsGetters & RendererGetters & SelectionGetters & SelectionInputGetters & CollaborativeGetters & SortGetters & UIOptionsGetters & SheetUIGetters & ViewportGetters & CellPopoverPluginGetters & FilterEvaluationGetters & HeaderVisibilityIUIGetters & SplitToColumnsGetters;
|
|
4881
|
+
} & LocalHistoryGetters & CoreGetters & AutofillGetters & AutomaticSumGetters & ClipboardGetters & EditionGetters & EvaluationGetters & EvaluationChartGetters & EvaluationConditionalFormatGetters & FindAndReplaceGetters & HighlightGetters & CustomColorsGetters & RendererGetters & SelectionGetters & SelectionInputGetters & CollaborativeGetters & SortGetters & UIOptionsGetters & SheetUIGetters & ViewportGetters & CellPopoverPluginGetters & FilterEvaluationGetters & HeaderVisibilityIUIGetters & SplitToColumnsGetters & UIRowSizeGetters;
|
|
4867
4882
|
|
|
4868
4883
|
interface HistoryChange {
|
|
4869
4884
|
root: any;
|
|
@@ -5045,7 +5060,7 @@ interface ChartBuilder {
|
|
|
5045
5060
|
sequence: number;
|
|
5046
5061
|
}
|
|
5047
5062
|
|
|
5048
|
-
interface Props$
|
|
5063
|
+
interface Props$F {
|
|
5049
5064
|
ranges: () => string[];
|
|
5050
5065
|
hasSingleRange?: boolean;
|
|
5051
5066
|
required?: boolean;
|
|
@@ -5067,7 +5082,7 @@ interface SelectionRange extends Omit<RangeInputValue, "color"> {
|
|
|
5067
5082
|
* onSelectionChanged is called every time the input value
|
|
5068
5083
|
* changes.
|
|
5069
5084
|
*/
|
|
5070
|
-
declare class SelectionInput extends Component<Props$
|
|
5085
|
+
declare class SelectionInput extends Component<Props$F, SpreadsheetChildEnv> {
|
|
5071
5086
|
static template: string;
|
|
5072
5087
|
private id;
|
|
5073
5088
|
private previousRanges;
|
|
@@ -5096,22 +5111,22 @@ declare class SelectionInput extends Component<Props$E, SpreadsheetChildEnv> {
|
|
|
5096
5111
|
confirm(): void;
|
|
5097
5112
|
}
|
|
5098
5113
|
|
|
5099
|
-
interface Props$
|
|
5114
|
+
interface Props$E {
|
|
5100
5115
|
messages: string[];
|
|
5101
5116
|
msgType: "warning" | "error";
|
|
5102
5117
|
}
|
|
5103
|
-
declare class SidePanelErrors extends Component<Props$
|
|
5118
|
+
declare class SidePanelErrors extends Component<Props$E, SpreadsheetChildEnv> {
|
|
5104
5119
|
static template: string;
|
|
5105
5120
|
get divClasses(): "o-sidepanel-warning text-warning" | "o-sidepanel-error text-danger";
|
|
5106
5121
|
}
|
|
5107
5122
|
|
|
5108
|
-
interface Props$
|
|
5123
|
+
interface Props$D {
|
|
5109
5124
|
figureId: UID;
|
|
5110
5125
|
definition: LineChartDefinition | BarChartDefinition | PieChartDefinition;
|
|
5111
5126
|
canUpdateChart: (figureId: UID, definition: Partial<LineChartDefinition | BarChartDefinition | PieChartDefinition>) => DispatchResult;
|
|
5112
5127
|
updateChart: (figureId: UID, definition: Partial<LineChartDefinition | BarChartDefinition | PieChartDefinition>) => DispatchResult;
|
|
5113
5128
|
}
|
|
5114
|
-
declare class LineBarPieConfigPanel extends Component<Props$
|
|
5129
|
+
declare class LineBarPieConfigPanel extends Component<Props$D, SpreadsheetChildEnv> {
|
|
5115
5130
|
static template: string;
|
|
5116
5131
|
static components: {
|
|
5117
5132
|
SelectionInput: typeof SelectionInput;
|
|
@@ -5239,7 +5254,7 @@ declare class ColorPicker extends Component<ColorPickerProps, SpreadsheetChildEn
|
|
|
5239
5254
|
isSameColor(color1: Color, color2: Color): boolean;
|
|
5240
5255
|
}
|
|
5241
5256
|
|
|
5242
|
-
interface Props$
|
|
5257
|
+
interface Props$C {
|
|
5243
5258
|
currentColor: string | undefined;
|
|
5244
5259
|
toggleColorPicker: () => void;
|
|
5245
5260
|
showColorPicker: boolean;
|
|
@@ -5250,7 +5265,7 @@ interface Props$B {
|
|
|
5250
5265
|
dropdownMaxHeight?: Pixel;
|
|
5251
5266
|
class?: string;
|
|
5252
5267
|
}
|
|
5253
|
-
declare class ColorPickerWidget extends Component<Props$
|
|
5268
|
+
declare class ColorPickerWidget extends Component<Props$C, SpreadsheetChildEnv> {
|
|
5254
5269
|
static template: string;
|
|
5255
5270
|
static components: {
|
|
5256
5271
|
ColorPicker: typeof ColorPicker;
|
|
@@ -5262,13 +5277,13 @@ declare class ColorPickerWidget extends Component<Props$B, SpreadsheetChildEnv>
|
|
|
5262
5277
|
get colorPickerAnchorRect(): Rect;
|
|
5263
5278
|
}
|
|
5264
5279
|
|
|
5265
|
-
interface Props$
|
|
5280
|
+
interface Props$B {
|
|
5266
5281
|
figureId: UID;
|
|
5267
5282
|
definition: LineChartDefinition | BarChartDefinition | PieChartDefinition;
|
|
5268
5283
|
canUpdateChart: (definition: Partial<LineChartDefinition | BarChartDefinition | PieChartDefinition>) => DispatchResult;
|
|
5269
5284
|
updateChart: (figureId: UID, definition: Partial<LineChartDefinition | BarChartDefinition | PieChartDefinition>) => DispatchResult;
|
|
5270
5285
|
}
|
|
5271
|
-
declare class LineBarPieDesignPanel extends Component<Props$
|
|
5286
|
+
declare class LineBarPieDesignPanel extends Component<Props$B, SpreadsheetChildEnv> {
|
|
5272
5287
|
static template: string;
|
|
5273
5288
|
static components: {
|
|
5274
5289
|
ColorPickerWidget: typeof ColorPickerWidget;
|
|
@@ -5282,13 +5297,13 @@ declare class LineBarPieDesignPanel extends Component<Props$A, SpreadsheetChildE
|
|
|
5282
5297
|
updateSelect(attr: string, ev: any): void;
|
|
5283
5298
|
}
|
|
5284
5299
|
|
|
5285
|
-
interface Props$
|
|
5300
|
+
interface Props$A {
|
|
5286
5301
|
figureId: UID;
|
|
5287
5302
|
definition: GaugeChartDefinition;
|
|
5288
5303
|
canUpdateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
|
|
5289
5304
|
updateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
|
|
5290
5305
|
}
|
|
5291
|
-
declare class GaugeChartConfigPanel extends Component<Props$
|
|
5306
|
+
declare class GaugeChartConfigPanel extends Component<Props$A, SpreadsheetChildEnv> {
|
|
5292
5307
|
static template: string;
|
|
5293
5308
|
static components: {
|
|
5294
5309
|
SelectionInput: typeof SelectionInput;
|
|
@@ -5304,13 +5319,13 @@ declare class GaugeChartConfigPanel extends Component<Props$z, SpreadsheetChildE
|
|
|
5304
5319
|
}
|
|
5305
5320
|
|
|
5306
5321
|
type GaugeMenu = "backgroundColor" | "sectionColor-lowerColor" | "sectionColor-middleColor" | "sectionColor-upperColor";
|
|
5307
|
-
interface Props$
|
|
5322
|
+
interface Props$z {
|
|
5308
5323
|
figureId: UID;
|
|
5309
5324
|
definition: GaugeChartDefinition;
|
|
5310
5325
|
canUpdateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
|
|
5311
5326
|
updateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
|
|
5312
5327
|
}
|
|
5313
|
-
declare class GaugeChartDesignPanel extends Component<Props$
|
|
5328
|
+
declare class GaugeChartDesignPanel extends Component<Props$z, SpreadsheetChildEnv> {
|
|
5314
5329
|
static template: string;
|
|
5315
5330
|
static components: {
|
|
5316
5331
|
ColorPickerWidget: typeof ColorPickerWidget;
|
|
@@ -5340,13 +5355,13 @@ declare class LineConfigPanel extends LineBarPieConfigPanel {
|
|
|
5340
5355
|
onUpdateAggregated(ev: any): void;
|
|
5341
5356
|
}
|
|
5342
5357
|
|
|
5343
|
-
interface Props$
|
|
5358
|
+
interface Props$y {
|
|
5344
5359
|
figureId: UID;
|
|
5345
5360
|
definition: ScorecardChartDefinition;
|
|
5346
5361
|
canUpdateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
5347
5362
|
updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
5348
5363
|
}
|
|
5349
|
-
declare class ScorecardChartConfigPanel extends Component<Props$
|
|
5364
|
+
declare class ScorecardChartConfigPanel extends Component<Props$y, SpreadsheetChildEnv> {
|
|
5350
5365
|
static template: string;
|
|
5351
5366
|
static components: {
|
|
5352
5367
|
SelectionInput: typeof SelectionInput;
|
|
@@ -5368,13 +5383,13 @@ declare class ScorecardChartConfigPanel extends Component<Props$x, SpreadsheetCh
|
|
|
5368
5383
|
}
|
|
5369
5384
|
|
|
5370
5385
|
type ColorPickerId = undefined | "backgroundColor" | "baselineColorUp" | "baselineColorDown";
|
|
5371
|
-
interface Props$
|
|
5386
|
+
interface Props$x {
|
|
5372
5387
|
figureId: UID;
|
|
5373
5388
|
definition: ScorecardChartDefinition;
|
|
5374
5389
|
canUpdateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
5375
5390
|
updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
5376
5391
|
}
|
|
5377
|
-
declare class ScorecardChartDesignPanel extends Component<Props$
|
|
5392
|
+
declare class ScorecardChartDesignPanel extends Component<Props$x, SpreadsheetChildEnv> {
|
|
5378
5393
|
static template: string;
|
|
5379
5394
|
static components: {
|
|
5380
5395
|
ColorPickerWidget: typeof ColorPickerWidget;
|
|
@@ -5398,7 +5413,7 @@ interface ActionSpec {
|
|
|
5398
5413
|
* String or a function to compute the name
|
|
5399
5414
|
*/
|
|
5400
5415
|
name: string | ((env: SpreadsheetChildEnv) => string);
|
|
5401
|
-
description?: string;
|
|
5416
|
+
description?: string | ((env: SpreadsheetChildEnv) => string);
|
|
5402
5417
|
/**
|
|
5403
5418
|
* which represents its position inside the
|
|
5404
5419
|
* menus (the lower sequence it has, the upper it is in the menu)
|
|
@@ -5423,7 +5438,7 @@ interface ActionSpec {
|
|
|
5423
5438
|
/**
|
|
5424
5439
|
* Can be defined to display an icon
|
|
5425
5440
|
*/
|
|
5426
|
-
icon?: string;
|
|
5441
|
+
icon?: string | ((env: SpreadsheetChildEnv) => string);
|
|
5427
5442
|
/**
|
|
5428
5443
|
* is the action allowed when running spreadsheet in readonly mode
|
|
5429
5444
|
*/
|
|
@@ -5447,13 +5462,13 @@ interface ActionSpec {
|
|
|
5447
5462
|
}
|
|
5448
5463
|
interface Action {
|
|
5449
5464
|
name: (env: SpreadsheetChildEnv) => string;
|
|
5450
|
-
description: string;
|
|
5465
|
+
description: (env: SpreadsheetChildEnv) => string;
|
|
5451
5466
|
sequence: number;
|
|
5452
5467
|
id: string;
|
|
5453
5468
|
isVisible: (env: SpreadsheetChildEnv) => boolean;
|
|
5454
5469
|
isEnabled: (env: SpreadsheetChildEnv) => boolean;
|
|
5455
5470
|
isActive?: (env: SpreadsheetChildEnv) => boolean;
|
|
5456
|
-
icon: string;
|
|
5471
|
+
icon: (env: SpreadsheetChildEnv) => string;
|
|
5457
5472
|
isReadonlyAllowed: boolean;
|
|
5458
5473
|
execute?: (env: SpreadsheetChildEnv) => unknown;
|
|
5459
5474
|
children: (env: SpreadsheetChildEnv) => Action[];
|
|
@@ -5515,10 +5530,10 @@ interface AutofillRule {
|
|
|
5515
5530
|
sequence: number;
|
|
5516
5531
|
}
|
|
5517
5532
|
|
|
5518
|
-
interface Props$
|
|
5533
|
+
interface Props$w {
|
|
5519
5534
|
figure: Figure;
|
|
5520
5535
|
}
|
|
5521
|
-
declare class ChartJsComponent extends Component<Props$
|
|
5536
|
+
declare class ChartJsComponent extends Component<Props$w, SpreadsheetChildEnv> {
|
|
5522
5537
|
static template: string;
|
|
5523
5538
|
private canvas;
|
|
5524
5539
|
private chart?;
|
|
@@ -5530,10 +5545,10 @@ declare class ChartJsComponent extends Component<Props$v, SpreadsheetChildEnv> {
|
|
|
5530
5545
|
private updateChartJs;
|
|
5531
5546
|
}
|
|
5532
5547
|
|
|
5533
|
-
interface Props$
|
|
5548
|
+
interface Props$v {
|
|
5534
5549
|
figure: Figure;
|
|
5535
5550
|
}
|
|
5536
|
-
declare class ScorecardChart extends Component<Props$
|
|
5551
|
+
declare class ScorecardChart extends Component<Props$v, SpreadsheetChildEnv> {
|
|
5537
5552
|
static template: string;
|
|
5538
5553
|
private ctx;
|
|
5539
5554
|
get runtime(): ScorecardChartRuntime;
|
|
@@ -5565,7 +5580,7 @@ declare class ScorecardChart extends Component<Props$u, SpreadsheetChildEnv> {
|
|
|
5565
5580
|
}
|
|
5566
5581
|
|
|
5567
5582
|
type MenuItemOrSeparator = Action | "separator";
|
|
5568
|
-
interface Props$
|
|
5583
|
+
interface Props$u {
|
|
5569
5584
|
position: DOMCoordinates;
|
|
5570
5585
|
menuItems: Action[];
|
|
5571
5586
|
depth: number;
|
|
@@ -5581,7 +5596,7 @@ interface MenuState {
|
|
|
5581
5596
|
scrollOffset?: Pixel;
|
|
5582
5597
|
menuItems: Action[];
|
|
5583
5598
|
}
|
|
5584
|
-
declare class Menu extends Component<Props$
|
|
5599
|
+
declare class Menu extends Component<Props$u, SpreadsheetChildEnv> {
|
|
5585
5600
|
static template: string;
|
|
5586
5601
|
static components: {
|
|
5587
5602
|
Menu: typeof Menu;
|
|
@@ -5619,14 +5634,14 @@ declare class Menu extends Component<Props$t, SpreadsheetChildEnv> {
|
|
|
5619
5634
|
}
|
|
5620
5635
|
|
|
5621
5636
|
type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right" | "bottom" | "bottom left" | "left";
|
|
5622
|
-
interface Props$
|
|
5637
|
+
interface Props$t {
|
|
5623
5638
|
figure: Figure;
|
|
5624
5639
|
style: string;
|
|
5625
5640
|
onFigureDeleted: () => void;
|
|
5626
5641
|
onMouseDown: (ev: MouseEvent) => void;
|
|
5627
5642
|
onClickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
|
|
5628
5643
|
}
|
|
5629
|
-
declare class FigureComponent extends Component<Props$
|
|
5644
|
+
declare class FigureComponent extends Component<Props$t, SpreadsheetChildEnv> {
|
|
5630
5645
|
static template: string;
|
|
5631
5646
|
static components: {
|
|
5632
5647
|
Menu: typeof Menu;
|
|
@@ -5656,11 +5671,11 @@ declare class FigureComponent extends Component<Props$s, SpreadsheetChildEnv> {
|
|
|
5656
5671
|
private openContextMenu;
|
|
5657
5672
|
}
|
|
5658
5673
|
|
|
5659
|
-
interface Props$
|
|
5674
|
+
interface Props$s {
|
|
5660
5675
|
figure: Figure;
|
|
5661
5676
|
onFigureDeleted: () => void;
|
|
5662
5677
|
}
|
|
5663
|
-
declare class ChartFigure extends Component<Props$
|
|
5678
|
+
declare class ChartFigure extends Component<Props$s, SpreadsheetChildEnv> {
|
|
5664
5679
|
static template: string;
|
|
5665
5680
|
static components: {};
|
|
5666
5681
|
onDoubleClick(): void;
|
|
@@ -5668,7 +5683,7 @@ declare class ChartFigure extends Component<Props$r, SpreadsheetChildEnv> {
|
|
|
5668
5683
|
get chartComponent(): new (...args: any) => Component;
|
|
5669
5684
|
}
|
|
5670
5685
|
|
|
5671
|
-
interface Props$
|
|
5686
|
+
interface Props$r {
|
|
5672
5687
|
isVisible: boolean;
|
|
5673
5688
|
position: Position;
|
|
5674
5689
|
}
|
|
@@ -5680,7 +5695,7 @@ interface State$5 {
|
|
|
5680
5695
|
position: Position;
|
|
5681
5696
|
handler: boolean;
|
|
5682
5697
|
}
|
|
5683
|
-
declare class Autofill extends Component<Props$
|
|
5698
|
+
declare class Autofill extends Component<Props$r, SpreadsheetChildEnv> {
|
|
5684
5699
|
static template: string;
|
|
5685
5700
|
state: State$5;
|
|
5686
5701
|
get style(): string;
|
|
@@ -5754,13 +5769,13 @@ declare class Ripple extends Component<RippleProps, SpreadsheetChildEnv> {
|
|
|
5754
5769
|
getRippleEffectProps(id: number): RippleEffectProps;
|
|
5755
5770
|
}
|
|
5756
5771
|
|
|
5757
|
-
interface Props$
|
|
5772
|
+
interface Props$q {
|
|
5758
5773
|
sheetId: string;
|
|
5759
5774
|
openContextMenu: (registry: MenuItemRegistry, ev: MouseEvent) => void;
|
|
5760
5775
|
style?: string;
|
|
5761
5776
|
onMouseDown: (ev: MouseEvent) => void;
|
|
5762
5777
|
}
|
|
5763
|
-
declare class BottomBarSheet extends Component<Props$
|
|
5778
|
+
declare class BottomBarSheet extends Component<Props$q, SpreadsheetChildEnv> {
|
|
5764
5779
|
static template: string;
|
|
5765
5780
|
static components: {
|
|
5766
5781
|
Ripple: typeof Ripple;
|
|
@@ -5794,11 +5809,11 @@ declare class BottomBarSheet extends Component<Props$p, SpreadsheetChildEnv> {
|
|
|
5794
5809
|
get sheetName(): string;
|
|
5795
5810
|
}
|
|
5796
5811
|
|
|
5797
|
-
interface Props$
|
|
5812
|
+
interface Props$p {
|
|
5798
5813
|
openContextMenu: (x: number, y: number, registry: MenuItemRegistry) => void;
|
|
5799
5814
|
closeContextMenu: () => void;
|
|
5800
5815
|
}
|
|
5801
|
-
declare class BottomBarStatistic extends Component<Props$
|
|
5816
|
+
declare class BottomBarStatistic extends Component<Props$p, SpreadsheetChildEnv> {
|
|
5802
5817
|
static template: string;
|
|
5803
5818
|
static components: {
|
|
5804
5819
|
Ripple: typeof Ripple;
|
|
@@ -5820,13 +5835,13 @@ interface SheetState {
|
|
|
5820
5835
|
isDnd: boolean;
|
|
5821
5836
|
sheetDndPositions: Record<UID, number> | undefined;
|
|
5822
5837
|
}
|
|
5823
|
-
interface Props$
|
|
5838
|
+
interface Props$o {
|
|
5824
5839
|
onClick: () => void;
|
|
5825
5840
|
}
|
|
5826
5841
|
interface BottomBarMenuState extends MenuState {
|
|
5827
5842
|
menuId: UID | undefined;
|
|
5828
5843
|
}
|
|
5829
|
-
declare class BottomBar extends Component<Props$
|
|
5844
|
+
declare class BottomBar extends Component<Props$o, SpreadsheetChildEnv> {
|
|
5830
5845
|
static template: string;
|
|
5831
5846
|
static components: {
|
|
5832
5847
|
Menu: typeof Menu;
|
|
@@ -5869,21 +5884,21 @@ declare class BottomBar extends Component<Props$n, SpreadsheetChildEnv> {
|
|
|
5869
5884
|
get sheetListMaxScroll(): number;
|
|
5870
5885
|
}
|
|
5871
5886
|
|
|
5872
|
-
interface Props$
|
|
5887
|
+
interface Props$n {
|
|
5873
5888
|
position: DOMCoordinates;
|
|
5874
5889
|
isActive: boolean;
|
|
5875
5890
|
onClick: () => void;
|
|
5876
5891
|
}
|
|
5877
|
-
declare class FilterIcon extends Component<Props$
|
|
5892
|
+
declare class FilterIcon extends Component<Props$n, SpreadsheetEnv> {
|
|
5878
5893
|
static style: string;
|
|
5879
5894
|
static template: string;
|
|
5880
5895
|
get style(): string;
|
|
5881
5896
|
}
|
|
5882
5897
|
|
|
5883
|
-
interface Props$
|
|
5898
|
+
interface Props$m {
|
|
5884
5899
|
gridPosition: DOMCoordinates;
|
|
5885
5900
|
}
|
|
5886
|
-
declare class FilterIconsOverlay extends Component<Props$
|
|
5901
|
+
declare class FilterIconsOverlay extends Component<Props$m, SpreadsheetChildEnv> {
|
|
5887
5902
|
static style: string;
|
|
5888
5903
|
static template: string;
|
|
5889
5904
|
static components: {
|
|
@@ -5913,7 +5928,7 @@ interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
|
|
|
5913
5928
|
}
|
|
5914
5929
|
|
|
5915
5930
|
type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
|
|
5916
|
-
interface Props$
|
|
5931
|
+
interface Props$l {
|
|
5917
5932
|
onFigureDeleted: () => void;
|
|
5918
5933
|
}
|
|
5919
5934
|
interface Container {
|
|
@@ -5992,7 +6007,7 @@ interface DndState {
|
|
|
5992
6007
|
* that occurred during the drag & drop, and to position the figure on the correct pane.
|
|
5993
6008
|
*
|
|
5994
6009
|
*/
|
|
5995
|
-
declare class FiguresContainer extends Component<Props$
|
|
6010
|
+
declare class FiguresContainer extends Component<Props$l, SpreadsheetChildEnv> {
|
|
5996
6011
|
static template: string;
|
|
5997
6012
|
static components: {
|
|
5998
6013
|
FigureComponent: typeof FigureComponent;
|
|
@@ -6024,7 +6039,7 @@ declare class FiguresContainer extends Component<Props$k, SpreadsheetChildEnv> {
|
|
|
6024
6039
|
private getSnapLineStyle;
|
|
6025
6040
|
}
|
|
6026
6041
|
|
|
6027
|
-
interface Props$
|
|
6042
|
+
interface Props$k {
|
|
6028
6043
|
onCellHovered: (position: Partial<Position$1>) => void;
|
|
6029
6044
|
onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
|
|
6030
6045
|
onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: {
|
|
@@ -6037,7 +6052,7 @@ interface Props$j {
|
|
|
6037
6052
|
gridOverlayDimensions: string;
|
|
6038
6053
|
onFigureDeleted: () => void;
|
|
6039
6054
|
}
|
|
6040
|
-
declare class GridOverlay extends Component<Props$
|
|
6055
|
+
declare class GridOverlay extends Component<Props$k, SpreadsheetChildEnv> {
|
|
6041
6056
|
static template: string;
|
|
6042
6057
|
static components: {
|
|
6043
6058
|
FiguresContainer: typeof FiguresContainer;
|
|
@@ -6053,19 +6068,21 @@ declare class GridOverlay extends Component<Props$j, SpreadsheetChildEnv> {
|
|
|
6053
6068
|
private gridOverlay;
|
|
6054
6069
|
setup(): void;
|
|
6055
6070
|
get gridOverlayEl(): HTMLElement;
|
|
6071
|
+
get style(): string;
|
|
6072
|
+
get isPaintingFormat(): boolean;
|
|
6056
6073
|
onMouseDown(ev: MouseEvent): void;
|
|
6057
6074
|
onDoubleClick(ev: MouseEvent): void;
|
|
6058
6075
|
onContextMenu(ev: MouseEvent): void;
|
|
6059
6076
|
private getCartesianCoordinates;
|
|
6060
6077
|
}
|
|
6061
6078
|
|
|
6062
|
-
interface Props$
|
|
6079
|
+
interface Props$j {
|
|
6063
6080
|
hoveredCell: Partial<Position$1>;
|
|
6064
6081
|
gridRect: Rect;
|
|
6065
6082
|
onClosePopover: () => void;
|
|
6066
6083
|
onMouseWheel: (ev: WheelEvent) => void;
|
|
6067
6084
|
}
|
|
6068
|
-
declare class GridPopover extends Component<Props$
|
|
6085
|
+
declare class GridPopover extends Component<Props$j, SpreadsheetChildEnv> {
|
|
6069
6086
|
static template: string;
|
|
6070
6087
|
static components: {
|
|
6071
6088
|
Popover: typeof Popover;
|
|
@@ -6076,7 +6093,7 @@ declare class GridPopover extends Component<Props$i, SpreadsheetChildEnv> {
|
|
|
6076
6093
|
|
|
6077
6094
|
type ScrollDirection = "horizontal" | "vertical";
|
|
6078
6095
|
|
|
6079
|
-
interface Props$
|
|
6096
|
+
interface Props$i {
|
|
6080
6097
|
width: Pixel;
|
|
6081
6098
|
height: Pixel;
|
|
6082
6099
|
direction: ScrollDirection;
|
|
@@ -6084,7 +6101,7 @@ interface Props$h {
|
|
|
6084
6101
|
offset: Pixel;
|
|
6085
6102
|
onScroll: (offset: Pixel) => void;
|
|
6086
6103
|
}
|
|
6087
|
-
declare class ScrollBar extends Component<Props$
|
|
6104
|
+
declare class ScrollBar extends Component<Props$i> {
|
|
6088
6105
|
static template: string;
|
|
6089
6106
|
static defaultProps: {
|
|
6090
6107
|
width: number;
|
|
@@ -6098,10 +6115,10 @@ declare class ScrollBar extends Component<Props$h> {
|
|
|
6098
6115
|
onScroll(ev: any): void;
|
|
6099
6116
|
}
|
|
6100
6117
|
|
|
6101
|
-
interface Props$
|
|
6118
|
+
interface Props$h {
|
|
6102
6119
|
leftOffset: number;
|
|
6103
6120
|
}
|
|
6104
|
-
declare class HorizontalScrollBar extends Component<Props$
|
|
6121
|
+
declare class HorizontalScrollBar extends Component<Props$h, SpreadsheetChildEnv> {
|
|
6105
6122
|
static components: {
|
|
6106
6123
|
ScrollBar: typeof ScrollBar;
|
|
6107
6124
|
};
|
|
@@ -6121,10 +6138,10 @@ declare class HorizontalScrollBar extends Component<Props$g, SpreadsheetChildEnv
|
|
|
6121
6138
|
onScroll(offset: any): void;
|
|
6122
6139
|
}
|
|
6123
6140
|
|
|
6124
|
-
interface Props$
|
|
6141
|
+
interface Props$g {
|
|
6125
6142
|
topOffset: number;
|
|
6126
6143
|
}
|
|
6127
|
-
declare class VerticalScrollBar extends Component<Props$
|
|
6144
|
+
declare class VerticalScrollBar extends Component<Props$g, SpreadsheetChildEnv> {
|
|
6128
6145
|
static components: {
|
|
6129
6146
|
ScrollBar: typeof ScrollBar;
|
|
6130
6147
|
};
|
|
@@ -6144,7 +6161,7 @@ declare class VerticalScrollBar extends Component<Props$f, SpreadsheetChildEnv>
|
|
|
6144
6161
|
onScroll(offset: any): void;
|
|
6145
6162
|
}
|
|
6146
6163
|
|
|
6147
|
-
interface Props$
|
|
6164
|
+
interface Props$f {
|
|
6148
6165
|
}
|
|
6149
6166
|
interface ClickableCell {
|
|
6150
6167
|
coordinates: Rect;
|
|
@@ -6152,7 +6169,7 @@ interface ClickableCell {
|
|
|
6152
6169
|
action: (position: CellPosition, env: SpreadsheetChildEnv) => void;
|
|
6153
6170
|
tKey: string;
|
|
6154
6171
|
}
|
|
6155
|
-
declare class SpreadsheetDashboard extends Component<Props$
|
|
6172
|
+
declare class SpreadsheetDashboard extends Component<Props$f, SpreadsheetChildEnv> {
|
|
6156
6173
|
static template: string;
|
|
6157
6174
|
static components: {
|
|
6158
6175
|
GridOverlay: typeof GridOverlay;
|
|
@@ -6188,7 +6205,7 @@ declare class SpreadsheetDashboard extends Component<Props$e, SpreadsheetChildEn
|
|
|
6188
6205
|
private getGridRect;
|
|
6189
6206
|
}
|
|
6190
6207
|
|
|
6191
|
-
interface Props$
|
|
6208
|
+
interface Props$e {
|
|
6192
6209
|
component: string;
|
|
6193
6210
|
panelProps: any;
|
|
6194
6211
|
onCloseSidePanel: () => void;
|
|
@@ -6196,7 +6213,7 @@ interface Props$d {
|
|
|
6196
6213
|
interface State$4 {
|
|
6197
6214
|
panel: SidePanelContent;
|
|
6198
6215
|
}
|
|
6199
|
-
declare class SidePanel extends Component<Props$
|
|
6216
|
+
declare class SidePanel extends Component<Props$e, SpreadsheetChildEnv> {
|
|
6200
6217
|
static template: string;
|
|
6201
6218
|
state: State$4;
|
|
6202
6219
|
setup(): void;
|
|
@@ -6296,6 +6313,7 @@ declare const formatAlignmentVertical: ActionSpec;
|
|
|
6296
6313
|
declare const formatAlignmentTop: ActionSpec;
|
|
6297
6314
|
declare const formatAlignmentMiddle: ActionSpec;
|
|
6298
6315
|
declare const formatAlignmentBottom: ActionSpec;
|
|
6316
|
+
declare const formatWrappingIcon: ActionSpec;
|
|
6299
6317
|
declare const formatWrapping: ActionSpec;
|
|
6300
6318
|
declare const formatWrappingOverflow: ActionSpec;
|
|
6301
6319
|
declare const formatWrappingWrap: ActionSpec;
|
|
@@ -6303,7 +6321,6 @@ declare const formatWrappingClip: ActionSpec;
|
|
|
6303
6321
|
declare const textColor: ActionSpec;
|
|
6304
6322
|
declare const fillColor: ActionSpec;
|
|
6305
6323
|
declare const formatCF: ActionSpec;
|
|
6306
|
-
declare const paintFormat: ActionSpec;
|
|
6307
6324
|
declare const clearFormat: ActionSpec;
|
|
6308
6325
|
|
|
6309
6326
|
declare const ACTION_FORMAT_formatNumberAutomatic: typeof formatNumberAutomatic;
|
|
@@ -6333,6 +6350,7 @@ declare const ACTION_FORMAT_formatAlignmentVertical: typeof formatAlignmentVerti
|
|
|
6333
6350
|
declare const ACTION_FORMAT_formatAlignmentTop: typeof formatAlignmentTop;
|
|
6334
6351
|
declare const ACTION_FORMAT_formatAlignmentMiddle: typeof formatAlignmentMiddle;
|
|
6335
6352
|
declare const ACTION_FORMAT_formatAlignmentBottom: typeof formatAlignmentBottom;
|
|
6353
|
+
declare const ACTION_FORMAT_formatWrappingIcon: typeof formatWrappingIcon;
|
|
6336
6354
|
declare const ACTION_FORMAT_formatWrapping: typeof formatWrapping;
|
|
6337
6355
|
declare const ACTION_FORMAT_formatWrappingOverflow: typeof formatWrappingOverflow;
|
|
6338
6356
|
declare const ACTION_FORMAT_formatWrappingWrap: typeof formatWrappingWrap;
|
|
@@ -6340,7 +6358,6 @@ declare const ACTION_FORMAT_formatWrappingClip: typeof formatWrappingClip;
|
|
|
6340
6358
|
declare const ACTION_FORMAT_textColor: typeof textColor;
|
|
6341
6359
|
declare const ACTION_FORMAT_fillColor: typeof fillColor;
|
|
6342
6360
|
declare const ACTION_FORMAT_formatCF: typeof formatCF;
|
|
6343
|
-
declare const ACTION_FORMAT_paintFormat: typeof paintFormat;
|
|
6344
6361
|
declare const ACTION_FORMAT_clearFormat: typeof clearFormat;
|
|
6345
6362
|
declare namespace ACTION_FORMAT {
|
|
6346
6363
|
export {
|
|
@@ -6371,6 +6388,7 @@ declare namespace ACTION_FORMAT {
|
|
|
6371
6388
|
ACTION_FORMAT_formatAlignmentTop as formatAlignmentTop,
|
|
6372
6389
|
ACTION_FORMAT_formatAlignmentMiddle as formatAlignmentMiddle,
|
|
6373
6390
|
ACTION_FORMAT_formatAlignmentBottom as formatAlignmentBottom,
|
|
6391
|
+
ACTION_FORMAT_formatWrappingIcon as formatWrappingIcon,
|
|
6374
6392
|
ACTION_FORMAT_formatWrapping as formatWrapping,
|
|
6375
6393
|
ACTION_FORMAT_formatWrappingOverflow as formatWrappingOverflow,
|
|
6376
6394
|
ACTION_FORMAT_formatWrappingWrap as formatWrappingWrap,
|
|
@@ -6378,7 +6396,6 @@ declare namespace ACTION_FORMAT {
|
|
|
6378
6396
|
ACTION_FORMAT_textColor as textColor,
|
|
6379
6397
|
ACTION_FORMAT_fillColor as fillColor,
|
|
6380
6398
|
ACTION_FORMAT_formatCF as formatCF,
|
|
6381
|
-
ACTION_FORMAT_paintFormat as paintFormat,
|
|
6382
6399
|
ACTION_FORMAT_clearFormat as clearFormat,
|
|
6383
6400
|
};
|
|
6384
6401
|
}
|
|
@@ -6446,14 +6463,14 @@ declare namespace ACTION_VIEW {
|
|
|
6446
6463
|
};
|
|
6447
6464
|
}
|
|
6448
6465
|
|
|
6449
|
-
interface Props$
|
|
6466
|
+
interface Props$d {
|
|
6450
6467
|
action: ActionSpec;
|
|
6451
6468
|
hasTriangleDownIcon?: boolean;
|
|
6452
6469
|
selectedColor?: string;
|
|
6453
6470
|
class?: string;
|
|
6454
6471
|
onClick?: (ev: MouseEvent) => void;
|
|
6455
6472
|
}
|
|
6456
|
-
declare class ActionButton extends Component<Props$
|
|
6473
|
+
declare class ActionButton extends Component<Props$d, SpreadsheetChildEnv> {
|
|
6457
6474
|
static template: string;
|
|
6458
6475
|
private actionButton;
|
|
6459
6476
|
setup(): void;
|
|
@@ -6503,7 +6520,7 @@ declare class BorderEditor extends Component<BorderEditorProps, SpreadsheetChild
|
|
|
6503
6520
|
get lineStylePickerAnchorRect(): Rect;
|
|
6504
6521
|
}
|
|
6505
6522
|
|
|
6506
|
-
interface Props$
|
|
6523
|
+
interface Props$c {
|
|
6507
6524
|
toggleBorderEditor: () => void;
|
|
6508
6525
|
showBorderEditor: boolean;
|
|
6509
6526
|
disabled?: boolean;
|
|
@@ -6515,7 +6532,7 @@ interface State$2 {
|
|
|
6515
6532
|
currentStyle: BorderStyle;
|
|
6516
6533
|
currentPosition: BorderPosition | undefined;
|
|
6517
6534
|
}
|
|
6518
|
-
declare class BorderEditorWidget extends Component<Props$
|
|
6535
|
+
declare class BorderEditorWidget extends Component<Props$c, SpreadsheetChildEnv> {
|
|
6519
6536
|
static template: string;
|
|
6520
6537
|
static components: {
|
|
6521
6538
|
BorderEditor: typeof BorderEditor;
|
|
@@ -6531,12 +6548,12 @@ declare class BorderEditorWidget extends Component<Props$b, SpreadsheetChildEnv>
|
|
|
6531
6548
|
private updateBorder;
|
|
6532
6549
|
}
|
|
6533
6550
|
|
|
6534
|
-
interface Props$
|
|
6551
|
+
interface Props$b {
|
|
6535
6552
|
values: AutocompleteValue[];
|
|
6536
6553
|
selectedIndex: number;
|
|
6537
6554
|
onValueSelected: (value: string) => void;
|
|
6538
6555
|
}
|
|
6539
|
-
declare class TextValueProvider extends Component<Props$
|
|
6556
|
+
declare class TextValueProvider extends Component<Props$b> {
|
|
6540
6557
|
static template: string;
|
|
6541
6558
|
}
|
|
6542
6559
|
|
|
@@ -6600,7 +6617,7 @@ declare class ContentEditableHelper {
|
|
|
6600
6617
|
getText(): string;
|
|
6601
6618
|
}
|
|
6602
6619
|
|
|
6603
|
-
interface Props$
|
|
6620
|
+
interface Props$a {
|
|
6604
6621
|
functionName: string;
|
|
6605
6622
|
functionDescription: FunctionDescription;
|
|
6606
6623
|
argToFocus: number;
|
|
@@ -6608,12 +6625,12 @@ interface Props$9 {
|
|
|
6608
6625
|
interface AssistantState {
|
|
6609
6626
|
allowCellSelectionBehind: boolean;
|
|
6610
6627
|
}
|
|
6611
|
-
declare class FunctionDescriptionProvider extends Component<Props$
|
|
6628
|
+
declare class FunctionDescriptionProvider extends Component<Props$a> {
|
|
6612
6629
|
static template: string;
|
|
6613
6630
|
assistantState: AssistantState;
|
|
6614
6631
|
private timeOutId;
|
|
6615
6632
|
setup(): void;
|
|
6616
|
-
getContext(): Props$
|
|
6633
|
+
getContext(): Props$a;
|
|
6617
6634
|
onMouseMove(): void;
|
|
6618
6635
|
}
|
|
6619
6636
|
|
|
@@ -6723,11 +6740,11 @@ declare class Composer extends Component<ComposerProps, SpreadsheetChildEnv> {
|
|
|
6723
6740
|
private autoComplete;
|
|
6724
6741
|
}
|
|
6725
6742
|
|
|
6726
|
-
interface Props$
|
|
6743
|
+
interface Props$9 {
|
|
6727
6744
|
focus: ComposerFocusType;
|
|
6728
6745
|
onComposerContentFocused: (selection: ComposerSelection) => void;
|
|
6729
6746
|
}
|
|
6730
|
-
declare class TopBarComposer extends Component<Props$
|
|
6747
|
+
declare class TopBarComposer extends Component<Props$9, SpreadsheetChildEnv> {
|
|
6731
6748
|
static template: string;
|
|
6732
6749
|
static components: {
|
|
6733
6750
|
Composer: typeof Composer;
|
|
@@ -6739,12 +6756,12 @@ declare class TopBarComposer extends Component<Props$8, SpreadsheetChildEnv> {
|
|
|
6739
6756
|
interface State$1 {
|
|
6740
6757
|
isOpen: boolean;
|
|
6741
6758
|
}
|
|
6742
|
-
interface Props$
|
|
6759
|
+
interface Props$8 {
|
|
6743
6760
|
onToggle: () => void;
|
|
6744
6761
|
dropdownStyle: string;
|
|
6745
6762
|
class: string;
|
|
6746
6763
|
}
|
|
6747
|
-
declare class FontSizeEditor extends Component<Props$
|
|
6764
|
+
declare class FontSizeEditor extends Component<Props$8, SpreadsheetChildEnv> {
|
|
6748
6765
|
static template: string;
|
|
6749
6766
|
static components: {};
|
|
6750
6767
|
fontSizes: number[];
|
|
@@ -6763,6 +6780,16 @@ declare class FontSizeEditor extends Component<Props$7, SpreadsheetChildEnv> {
|
|
|
6763
6780
|
onInputKeydown(ev: KeyboardEvent): void;
|
|
6764
6781
|
}
|
|
6765
6782
|
|
|
6783
|
+
interface Props$7 {
|
|
6784
|
+
class?: string;
|
|
6785
|
+
}
|
|
6786
|
+
declare class PaintFormatButton extends Component<Props$7, SpreadsheetChildEnv> {
|
|
6787
|
+
static template: string;
|
|
6788
|
+
get isActive(): boolean;
|
|
6789
|
+
onDblClick(): void;
|
|
6790
|
+
togglePaintFormat(): void;
|
|
6791
|
+
}
|
|
6792
|
+
|
|
6766
6793
|
interface State {
|
|
6767
6794
|
menuState: MenuState;
|
|
6768
6795
|
activeTool: string;
|
|
@@ -6785,6 +6812,7 @@ declare class TopBar extends Component<Props$6, SpreadsheetChildEnv> {
|
|
|
6785
6812
|
TopBarComposer: typeof TopBarComposer;
|
|
6786
6813
|
FontSizeEditor: typeof FontSizeEditor;
|
|
6787
6814
|
ActionButton: typeof ActionButton;
|
|
6815
|
+
PaintFormatButton: typeof PaintFormatButton;
|
|
6788
6816
|
BorderEditorWidget: typeof BorderEditorWidget;
|
|
6789
6817
|
};
|
|
6790
6818
|
state: State;
|
|
@@ -7272,6 +7300,7 @@ declare const helpers: {
|
|
|
7272
7300
|
numberToLetters: typeof numberToLetters;
|
|
7273
7301
|
UuidGenerator: typeof UuidGenerator;
|
|
7274
7302
|
formatValue: typeof formatValue;
|
|
7303
|
+
createCurrencyFormat: typeof createCurrencyFormat;
|
|
7275
7304
|
computeTextWidth: typeof computeTextWidth;
|
|
7276
7305
|
createEmptyWorkbookData: typeof createEmptyWorkbookData;
|
|
7277
7306
|
createEmptySheet: typeof createEmptySheet;
|