@odoo/o-spreadsheet 16.5.0-alpha.9 → 17.0.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 +14030 -13272
- package/dist/o-spreadsheet.d.ts +145 -106
- package/dist/o-spreadsheet.esm.js +14031 -13273
- package/dist/o-spreadsheet.iife.js +14034 -13276
- package/dist/o-spreadsheet.iife.min.js +331 -358
- package/dist/o_spreadsheet.xml +4492 -0
- package/package.json +4 -3
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -907,6 +907,15 @@ declare function colorToRGBA(color: Color): RGBA;
|
|
|
907
907
|
* 27 => 'AB'
|
|
908
908
|
*/
|
|
909
909
|
declare function numberToLetters(n: number): string;
|
|
910
|
+
/**
|
|
911
|
+
* Convert a string (describing a column) to its number value.
|
|
912
|
+
*
|
|
913
|
+
* Examples:
|
|
914
|
+
* 'A' => 0
|
|
915
|
+
* 'Z' => 25
|
|
916
|
+
* 'AA' => 26
|
|
917
|
+
*/
|
|
918
|
+
declare function lettersToNumber(letters: string): number;
|
|
910
919
|
/**
|
|
911
920
|
* Convert a "XC" coordinate to cartesian coordinates.
|
|
912
921
|
*
|
|
@@ -975,7 +984,7 @@ declare class RangeImpl implements Range {
|
|
|
975
984
|
constructor(args: ConstructorArgs, getSheetSize: (sheetId: UID) => ZoneDimension);
|
|
976
985
|
static fromRange(range: Range, getters: CoreGetters): RangeImpl;
|
|
977
986
|
get unboundedZone(): UnboundedZone;
|
|
978
|
-
get zone(): Zone
|
|
987
|
+
get zone(): Readonly<Zone>;
|
|
979
988
|
static getRangeParts(xc: string, zone: UnboundedZone): RangePart[];
|
|
980
989
|
get isFullCol(): boolean;
|
|
981
990
|
get isFullRow(): boolean;
|
|
@@ -1002,6 +1011,21 @@ declare class UuidGenerator {
|
|
|
1002
1011
|
uuidv4(): string;
|
|
1003
1012
|
}
|
|
1004
1013
|
|
|
1014
|
+
/**
|
|
1015
|
+
* Convert from a cartesian reference to a (possibly unbounded) Zone
|
|
1016
|
+
*
|
|
1017
|
+
* Examples:
|
|
1018
|
+
* "A1" ==> Top 0, Bottom 0, Left: 0, Right: 0
|
|
1019
|
+
* "B1:B3" ==> Top 0, Bottom 3, Left: 1, Right: 1
|
|
1020
|
+
* "B:B" ==> Top 0, Bottom undefined, Left: 1, Right: 1
|
|
1021
|
+
* "B2:B" ==> Top 1, Bottom undefined, Left: 1, Right: 1, hasHeader: 1
|
|
1022
|
+
* "Sheet1!A1" ==> Top 0, Bottom 0, Left: 0, Right: 0
|
|
1023
|
+
* "Sheet1!B1:B3" ==> Top 0, Bottom 3, Left: 1, Right: 1
|
|
1024
|
+
*
|
|
1025
|
+
* @param xc the string reference to convert
|
|
1026
|
+
*
|
|
1027
|
+
*/
|
|
1028
|
+
declare function toUnboundedZone(xc: string): UnboundedZone;
|
|
1005
1029
|
/**
|
|
1006
1030
|
* Convert from a cartesian reference to a Zone.
|
|
1007
1031
|
* Will return throw an error if given a unbounded zone (eg : A:A).
|
|
@@ -1070,6 +1094,7 @@ interface SelectionProcessor {
|
|
|
1070
1094
|
selectAll(): DispatchResult;
|
|
1071
1095
|
loopSelection(): DispatchResult;
|
|
1072
1096
|
selectTableAroundSelection(): DispatchResult;
|
|
1097
|
+
isListening(owner: unknown): boolean;
|
|
1073
1098
|
}
|
|
1074
1099
|
type SelectionStreamProcessor = SelectionProcessor & StatefulStream<SelectionEvent, AnchorZone>;
|
|
1075
1100
|
|
|
@@ -1295,7 +1320,7 @@ declare class StateObserver {
|
|
|
1295
1320
|
commands: CoreCommand[];
|
|
1296
1321
|
};
|
|
1297
1322
|
addCommand(command: CoreCommand): void;
|
|
1298
|
-
addChange(...args:
|
|
1323
|
+
addChange(...args: [...HistoryChange["path"], any]): void;
|
|
1299
1324
|
}
|
|
1300
1325
|
|
|
1301
1326
|
interface Validator {
|
|
@@ -1709,10 +1734,10 @@ interface ZoneDependentCommand {
|
|
|
1709
1734
|
sheetId: UID;
|
|
1710
1735
|
zone: Zone;
|
|
1711
1736
|
}
|
|
1712
|
-
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" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_FILTER_TABLE" | "REMOVE_FILTER_TABLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "UNDO" | "REDO" | "EVALUATE_CELLS">;
|
|
1713
|
-
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" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_FILTER_TABLE" | "REMOVE_FILTER_TABLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "
|
|
1714
|
-
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" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_FILTER_TABLE" | "REMOVE_FILTER_TABLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "UNDO" | "REDO" | "EVALUATE_CELLS">;
|
|
1715
|
-
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" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_FILTER_TABLE" | "REMOVE_FILTER_TABLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "
|
|
1737
|
+
declare const invalidateEvaluationCommands: Set<"SORT_CELLS" | "UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_FILTER_TABLE" | "REMOVE_FILTER_TABLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "ENABLE_NEW_SELECTION_INPUT" | "DISABLE_SELECTION_INPUT" | "UNFOCUS_SELECTION_INPUT" | "FOCUS_RANGE" | "ADD_EMPTY_RANGE" | "ADD_RANGE" | "REMOVE_RANGE" | "CHANGE_RANGE" | "COPY" | "CUT" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "ACTIVATE_PAINT_FORMAT" | "CANCEL_PAINT_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "START_CHANGE_HIGHLIGHT" | "SET_HIGHLIGHT_COLOR" | "STOP_COMPOSER_RANGE_SELECTION" | "START_EDITION" | "STOP_EDITION" | "CANCEL_EDITION" | "SET_CURRENT_CONTENT" | "CHANGE_COMPOSER_CURSOR_SELECTION" | "REPLACE_COMPOSER_CURSOR_SELECTION" | "CYCLE_EDITION_REFERENCES" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "UPDATE_SEARCH" | "CLEAR_SEARCH" | "SELECT_SEARCH_PREVIOUS_MATCH" | "SELECT_SEARCH_NEXT_MATCH" | "REPLACE_SEARCH" | "REPLACE_ALL_SEARCH" | "SET_DECIMAL" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "OPEN_CELL_POPOVER" | "CLOSE_CELL_POPOVER" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE">;
|
|
1738
|
+
declare const invalidateDependenciesCommands: Set<"SORT_CELLS" | "UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_FILTER_TABLE" | "REMOVE_FILTER_TABLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "ENABLE_NEW_SELECTION_INPUT" | "DISABLE_SELECTION_INPUT" | "UNFOCUS_SELECTION_INPUT" | "FOCUS_RANGE" | "ADD_EMPTY_RANGE" | "ADD_RANGE" | "REMOVE_RANGE" | "CHANGE_RANGE" | "COPY" | "CUT" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "ACTIVATE_PAINT_FORMAT" | "CANCEL_PAINT_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "START_CHANGE_HIGHLIGHT" | "SET_HIGHLIGHT_COLOR" | "STOP_COMPOSER_RANGE_SELECTION" | "START_EDITION" | "STOP_EDITION" | "CANCEL_EDITION" | "SET_CURRENT_CONTENT" | "CHANGE_COMPOSER_CURSOR_SELECTION" | "REPLACE_COMPOSER_CURSOR_SELECTION" | "CYCLE_EDITION_REFERENCES" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "UPDATE_SEARCH" | "CLEAR_SEARCH" | "SELECT_SEARCH_PREVIOUS_MATCH" | "SELECT_SEARCH_NEXT_MATCH" | "REPLACE_SEARCH" | "REPLACE_ALL_SEARCH" | "SET_DECIMAL" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "OPEN_CELL_POPOVER" | "CLOSE_CELL_POPOVER" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE">;
|
|
1739
|
+
declare const invalidateCFEvaluationCommands: Set<"SORT_CELLS" | "UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_FILTER_TABLE" | "REMOVE_FILTER_TABLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "ENABLE_NEW_SELECTION_INPUT" | "DISABLE_SELECTION_INPUT" | "UNFOCUS_SELECTION_INPUT" | "FOCUS_RANGE" | "ADD_EMPTY_RANGE" | "ADD_RANGE" | "REMOVE_RANGE" | "CHANGE_RANGE" | "COPY" | "CUT" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "ACTIVATE_PAINT_FORMAT" | "CANCEL_PAINT_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "START_CHANGE_HIGHLIGHT" | "SET_HIGHLIGHT_COLOR" | "STOP_COMPOSER_RANGE_SELECTION" | "START_EDITION" | "STOP_EDITION" | "CANCEL_EDITION" | "SET_CURRENT_CONTENT" | "CHANGE_COMPOSER_CURSOR_SELECTION" | "REPLACE_COMPOSER_CURSOR_SELECTION" | "CYCLE_EDITION_REFERENCES" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "UPDATE_SEARCH" | "CLEAR_SEARCH" | "SELECT_SEARCH_PREVIOUS_MATCH" | "SELECT_SEARCH_NEXT_MATCH" | "REPLACE_SEARCH" | "REPLACE_ALL_SEARCH" | "SET_DECIMAL" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "OPEN_CELL_POPOVER" | "CLOSE_CELL_POPOVER" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE">;
|
|
1740
|
+
declare const readonlyAllowedCommands: Set<"SORT_CELLS" | "UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_FILTER_TABLE" | "REMOVE_FILTER_TABLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "ENABLE_NEW_SELECTION_INPUT" | "DISABLE_SELECTION_INPUT" | "UNFOCUS_SELECTION_INPUT" | "FOCUS_RANGE" | "ADD_EMPTY_RANGE" | "ADD_RANGE" | "REMOVE_RANGE" | "CHANGE_RANGE" | "COPY" | "CUT" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "ACTIVATE_PAINT_FORMAT" | "CANCEL_PAINT_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "START_CHANGE_HIGHLIGHT" | "SET_HIGHLIGHT_COLOR" | "STOP_COMPOSER_RANGE_SELECTION" | "START_EDITION" | "STOP_EDITION" | "CANCEL_EDITION" | "SET_CURRENT_CONTENT" | "CHANGE_COMPOSER_CURSOR_SELECTION" | "REPLACE_COMPOSER_CURSOR_SELECTION" | "CYCLE_EDITION_REFERENCES" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "UPDATE_SEARCH" | "CLEAR_SEARCH" | "SELECT_SEARCH_PREVIOUS_MATCH" | "SELECT_SEARCH_NEXT_MATCH" | "REPLACE_SEARCH" | "REPLACE_ALL_SEARCH" | "SET_DECIMAL" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "OPEN_CELL_POPOVER" | "CLOSE_CELL_POPOVER" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE">;
|
|
1716
1741
|
declare const coreTypes: Set<"UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_FILTER_TABLE" | "REMOVE_FILTER_TABLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE">;
|
|
1717
1742
|
interface UpdateCellCommand extends PositionDependentCommand {
|
|
1718
1743
|
type: "UPDATE_CELL";
|
|
@@ -1987,6 +2012,12 @@ interface PasteCommand {
|
|
|
1987
2012
|
target: Zone[];
|
|
1988
2013
|
pasteOption?: ClipboardPasteOptions;
|
|
1989
2014
|
}
|
|
2015
|
+
interface CopyPasteCellsAboveCommand {
|
|
2016
|
+
type: "COPY_PASTE_CELLS_ABOVE";
|
|
2017
|
+
}
|
|
2018
|
+
interface CopyPasteCellsOnLeftCommand {
|
|
2019
|
+
type: "COPY_PASTE_CELLS_ON_LEFT";
|
|
2020
|
+
}
|
|
1990
2021
|
interface RepeatPasteCommand {
|
|
1991
2022
|
type: "REPEAT_PASTE";
|
|
1992
2023
|
target: Zone[];
|
|
@@ -2334,7 +2365,7 @@ UpdateCellCommand | UpdateCellPositionCommand | ClearCellCommand | DeleteContent
|
|
|
2334
2365
|
| AddDataValidationCommand | RemoveDataValidationCommand
|
|
2335
2366
|
/** MISC */
|
|
2336
2367
|
| UpdateLocaleCommand;
|
|
2337
|
-
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 | CancelEditionCommand | 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 | RemoveDuplicatesCommand | TrimWhitespaceCommand;
|
|
2368
|
+
type LocalCommand = RequestUndoCommand | RequestRedoCommand | UndoCommand | RedoCommand | NewInputCommand | RemoveInputCommand | UnfocusInputCommand | FocusInputCommand | AddEmptyRangeCommand | AddRangeCommand | RemoveRangeCommand | ChangeRangeCommand | CopyCommand | CutCommand | PasteCommand | CopyPasteCellsAboveCommand | CopyPasteCellsOnLeftCommand | RepeatPasteCommand | CleanClipBoardHighlightCommand | AutoFillCellCommand | PasteFromOSClipboardCommand | ActivatePaintFormatCommand | CancelPaintFormatCommand | AutoresizeColumnsCommand | AutoresizeRowsCommand | MoveColumnsRowsCommand | ActivateSheetCommand | EvaluateCellsCommand | StartChangeHighlightCommand | SetColorCommand | StopComposerSelectionCommand | StartEditionCommand | StopEditionCommand | CancelEditionCommand | 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 | RemoveDuplicatesCommand | TrimWhitespaceCommand;
|
|
2338
2369
|
type Command = CoreCommand | LocalCommand;
|
|
2339
2370
|
/**
|
|
2340
2371
|
* Holds the result of a command dispatch.
|
|
@@ -2389,6 +2420,7 @@ declare const enum CommandResult {
|
|
|
2389
2420
|
InvalidFigureId = "InvalidFigureId",
|
|
2390
2421
|
InputAlreadyFocused = "InputAlreadyFocused",
|
|
2391
2422
|
MaximumRangesReached = "MaximumRangesReached",
|
|
2423
|
+
MinimumRangesReached = "MinimumRangesReached",
|
|
2392
2424
|
InvalidChartDefinition = "InvalidChartDefinition",
|
|
2393
2425
|
InvalidDataSet = "InvalidDataSet",
|
|
2394
2426
|
InvalidLabelRange = "InvalidLabelRange",
|
|
@@ -2464,7 +2496,8 @@ declare const enum CommandResult {
|
|
|
2464
2496
|
UnknownDataValidationCriterionType = "UnknownDataValidationCriterionType",
|
|
2465
2497
|
InvalidDataValidationCriterionValue = "InvalidDataValidationCriterionValue",
|
|
2466
2498
|
InvalidNumberOfCriterionValues = "InvalidNumberOfCriterionValues",
|
|
2467
|
-
BlockingValidationRule = "BlockingValidationRule"
|
|
2499
|
+
BlockingValidationRule = "BlockingValidationRule",
|
|
2500
|
+
InvalidCopyPasteSelection = "InvalidCopyPasteSelection"
|
|
2468
2501
|
}
|
|
2469
2502
|
interface CommandHandler<T> {
|
|
2470
2503
|
allowDispatch(command: T): CommandResult | CommandResult[];
|
|
@@ -3470,7 +3503,6 @@ declare class ChartPlugin extends CorePlugin<ChartState> implements ChartState {
|
|
|
3470
3503
|
getChartDefinition(figureId: UID): ChartDefinition;
|
|
3471
3504
|
import(data: WorkbookData): void;
|
|
3472
3505
|
export(data: WorkbookData): void;
|
|
3473
|
-
exportForExcel(data: ExcelWorkbookData): void;
|
|
3474
3506
|
/**
|
|
3475
3507
|
* Add a figure with tag chart with the given id at the given position
|
|
3476
3508
|
*/
|
|
@@ -3883,6 +3915,7 @@ declare class SettingsPlugin extends CorePlugin {
|
|
|
3883
3915
|
allowDispatch(cmd: CoreCommand): CommandResult.Success | CommandResult.InvalidLocale;
|
|
3884
3916
|
handle(cmd: CoreCommand): void;
|
|
3885
3917
|
getLocale(): Locale;
|
|
3918
|
+
private changeCellsDateFormatWithLocale;
|
|
3886
3919
|
import(data: WorkbookData): void;
|
|
3887
3920
|
export(data: WorkbookData): void;
|
|
3888
3921
|
}
|
|
@@ -4051,7 +4084,7 @@ declare class SheetPlugin extends CorePlugin<SheetState> implements SheetState {
|
|
|
4051
4084
|
|
|
4052
4085
|
declare class EvaluationPlugin extends UIPlugin {
|
|
4053
4086
|
private config;
|
|
4054
|
-
static getters: readonly ["evaluateFormula", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone"];
|
|
4087
|
+
static getters: readonly ["evaluateFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone"];
|
|
4055
4088
|
private shouldRebuildDependenciesGraph;
|
|
4056
4089
|
private evaluator;
|
|
4057
4090
|
private compilationParams;
|
|
@@ -4060,7 +4093,7 @@ declare class EvaluationPlugin extends UIPlugin {
|
|
|
4060
4093
|
beforeHandle(cmd: Command): void;
|
|
4061
4094
|
handle(cmd: CoreViewCommand): void;
|
|
4062
4095
|
finalize(): void;
|
|
4063
|
-
evaluateFormula(sheetId: UID, formulaString: string):
|
|
4096
|
+
evaluateFormula(sheetId: UID, formulaString: string): CellValue | Matrix<CellValue>;
|
|
4064
4097
|
/**
|
|
4065
4098
|
* Return the value of each cell in the range as they are displayed in the grid.
|
|
4066
4099
|
*/
|
|
@@ -4082,7 +4115,7 @@ declare class EvaluationPlugin extends UIPlugin {
|
|
|
4082
4115
|
* It could be the formula present in the cell itself or the
|
|
4083
4116
|
* formula of the array formula that spreads to the cell
|
|
4084
4117
|
*/
|
|
4085
|
-
|
|
4118
|
+
getCorrespondingFormulaCell(position: CellPosition): FormulaCell | undefined;
|
|
4086
4119
|
private getCompilationParameters;
|
|
4087
4120
|
}
|
|
4088
4121
|
|
|
@@ -4127,6 +4160,7 @@ declare class EvaluationChartPlugin extends UIPlugin<EvaluationChartState> {
|
|
|
4127
4160
|
* - the default chart color if no other color is defined
|
|
4128
4161
|
*/
|
|
4129
4162
|
getBackgroundOfSingleCellChart(chartBackground: Color | undefined, mainRange: Range | undefined): Color;
|
|
4163
|
+
exportForExcel(data: ExcelWorkbookData): void;
|
|
4130
4164
|
}
|
|
4131
4165
|
|
|
4132
4166
|
declare class EvaluationConditionalFormatPlugin extends UIPlugin {
|
|
@@ -4208,12 +4242,13 @@ interface CellWithSize {
|
|
|
4208
4242
|
cell: CellPosition;
|
|
4209
4243
|
size: Pixel;
|
|
4210
4244
|
}
|
|
4211
|
-
declare class
|
|
4212
|
-
static getters: readonly ["getRowSize"];
|
|
4245
|
+
declare class HeaderSizeUIPlugin extends UIPlugin<HeaderSizeState> implements HeaderSizeState {
|
|
4246
|
+
static getters: readonly ["getRowSize", "getHeaderSize"];
|
|
4213
4247
|
readonly tallestCellInRow: Immutable<Record<UID, Array<CellWithSize | undefined>>>;
|
|
4214
4248
|
private ctx;
|
|
4215
4249
|
handle(cmd: Command): void;
|
|
4216
4250
|
getRowSize(sheetId: UID, row: HeaderIndex): Pixel;
|
|
4251
|
+
getHeaderSize(sheetId: UID, dimension: Dimension, index: HeaderIndex): Pixel;
|
|
4217
4252
|
private updateRowSizeForCellChange;
|
|
4218
4253
|
private initializeSheet;
|
|
4219
4254
|
/**
|
|
@@ -4725,7 +4760,7 @@ declare class UIOptionsPlugin extends UIPlugin {
|
|
|
4725
4760
|
}
|
|
4726
4761
|
|
|
4727
4762
|
declare class SheetUIPlugin extends UIPlugin {
|
|
4728
|
-
static getters: readonly ["doesCellHaveGridIcon", "getCellWidth", "getTextWidth", "getCellText", "getCellMultiLineText"
|
|
4763
|
+
static getters: readonly ["doesCellHaveGridIcon", "getCellWidth", "getTextWidth", "getCellText", "getCellMultiLineText"];
|
|
4729
4764
|
private ctx;
|
|
4730
4765
|
allowDispatch(cmd: LocalCommand): CommandResult | CommandResult[];
|
|
4731
4766
|
handle(cmd: Command): void;
|
|
@@ -4737,22 +4772,6 @@ declare class SheetUIPlugin extends UIPlugin {
|
|
|
4737
4772
|
* line if it contains NEWLINE characters, or if it's longer than the given width.
|
|
4738
4773
|
*/
|
|
4739
4774
|
getCellMultiLineText(position: CellPosition, width: number | undefined): string[];
|
|
4740
|
-
/**
|
|
4741
|
-
* Returns the size, start and end coordinates of a column on an unfolded sheet
|
|
4742
|
-
*/
|
|
4743
|
-
getColDimensions(sheetId: UID, col: HeaderIndex): HeaderDimensions;
|
|
4744
|
-
/**
|
|
4745
|
-
* Returns the size, start and end coordinates of a row an unfolded sheet
|
|
4746
|
-
*/
|
|
4747
|
-
getRowDimensions(sheetId: UID, row: HeaderIndex): HeaderDimensions;
|
|
4748
|
-
/**
|
|
4749
|
-
* Returns the offset of a header (determined by the dimension) at the given index
|
|
4750
|
-
* based on the referenceIndex given. If start === 0, this method will return
|
|
4751
|
-
* the start attribute of the header.
|
|
4752
|
-
*
|
|
4753
|
-
* i.e. The size from A to B is the distance between A.start and B.end
|
|
4754
|
-
*/
|
|
4755
|
-
getColRowOffset(dimension: Dimension, referenceIndex: HeaderIndex, index: HeaderIndex, sheetId?: UID): Pixel;
|
|
4756
4775
|
doesCellHaveGridIcon(position: CellPosition): boolean;
|
|
4757
4776
|
private getColMaxWidth;
|
|
4758
4777
|
/**
|
|
@@ -4832,12 +4851,38 @@ declare class FilterEvaluationPlugin extends UIPlugin {
|
|
|
4832
4851
|
private getUniqueColNameForExcel;
|
|
4833
4852
|
}
|
|
4834
4853
|
|
|
4854
|
+
declare class HeaderPositionsUIPlugin extends UIPlugin {
|
|
4855
|
+
static getters: readonly ["getColDimensions", "getRowDimensions", "getColRowOffset"];
|
|
4856
|
+
private headerPositions;
|
|
4857
|
+
private isDirty;
|
|
4858
|
+
handle(cmd: Command): void;
|
|
4859
|
+
finalize(): void;
|
|
4860
|
+
/**
|
|
4861
|
+
* Returns the size, start and end coordinates of a column on an unfolded sheet
|
|
4862
|
+
*/
|
|
4863
|
+
getColDimensions(sheetId: UID, col: HeaderIndex): HeaderDimensions;
|
|
4864
|
+
/**
|
|
4865
|
+
* Returns the size, start and end coordinates of a row an unfolded sheet
|
|
4866
|
+
*/
|
|
4867
|
+
getRowDimensions(sheetId: UID, row: HeaderIndex): HeaderDimensions;
|
|
4868
|
+
/**
|
|
4869
|
+
* Returns the offset of a header (determined by the dimension) at the given index
|
|
4870
|
+
* based on the referenceIndex given. If start === 0, this method will return
|
|
4871
|
+
* the start attribute of the header.
|
|
4872
|
+
*
|
|
4873
|
+
* i.e. The size from A to B is the distance between A.start and B.end
|
|
4874
|
+
*/
|
|
4875
|
+
getColRowOffset(dimension: Dimension, referenceIndex: HeaderIndex, index: HeaderIndex, sheetId?: UID): Pixel;
|
|
4876
|
+
private computeHeaderPositionsOfSheet;
|
|
4877
|
+
private computePositions;
|
|
4878
|
+
}
|
|
4879
|
+
|
|
4835
4880
|
/**
|
|
4836
4881
|
* SelectionPlugin
|
|
4837
4882
|
*/
|
|
4838
4883
|
declare class GridSelectionPlugin extends UIPlugin {
|
|
4839
4884
|
static layers: LAYERS[];
|
|
4840
|
-
static getters: readonly ["getActiveSheet", "getActiveSheetId", "getActiveCell", "getActiveCols", "getActiveRows", "getCurrentStyle", "getSelectedZones", "getSelectedZone", "getSelectedCells", "getStatisticFnResults", "getAggregate", "getSelectedFigureId", "getSelection", "getActivePosition", "getSheetPosition", "isSelected", "isSingleColSelected", "getElementsFromSelection", "tryGetActiveSheetId"];
|
|
4885
|
+
static getters: readonly ["getActiveSheet", "getActiveSheetId", "getActiveCell", "getActiveCols", "getActiveRows", "getCurrentStyle", "getSelectedZones", "getSelectedZone", "getSelectedCells", "getStatisticFnResults", "getAggregate", "getSelectedFigureId", "getSelection", "getActivePosition", "getSheetPosition", "isSelected", "isSingleColSelected", "getElementsFromSelection", "tryGetActiveSheetId", "isGridSelectionActive"];
|
|
4841
4886
|
private gridSelection;
|
|
4842
4887
|
private selectedFigureId;
|
|
4843
4888
|
private sheetsData;
|
|
@@ -4847,6 +4892,7 @@ declare class GridSelectionPlugin extends UIPlugin {
|
|
|
4847
4892
|
allowDispatch(cmd: LocalCommand): CommandResult;
|
|
4848
4893
|
private handleEvent;
|
|
4849
4894
|
handle(cmd: Command): void;
|
|
4895
|
+
isGridSelectionActive(): boolean;
|
|
4850
4896
|
getActiveSheet(): Readonly<Sheet>;
|
|
4851
4897
|
getActiveSheetId(): UID;
|
|
4852
4898
|
tryGetActiveSheetId(): UID | undefined;
|
|
@@ -4878,6 +4924,7 @@ declare class GridSelectionPlugin extends UIPlugin {
|
|
|
4878
4924
|
* if dimension === "ROW" => [2,3,4,5]
|
|
4879
4925
|
*/
|
|
4880
4926
|
getElementsFromSelection(dimension: Dimension): number[];
|
|
4927
|
+
private activateSheet;
|
|
4881
4928
|
/**
|
|
4882
4929
|
* Ensure selections are not outside sheet boundaries.
|
|
4883
4930
|
* They are clipped to fit inside the sheet if needed.
|
|
@@ -4943,13 +4990,13 @@ declare class InternalViewport {
|
|
|
4943
4990
|
* visible cell.
|
|
4944
4991
|
* It returns -1 if no column is found.
|
|
4945
4992
|
*/
|
|
4946
|
-
getColIndex(x: Pixel
|
|
4993
|
+
getColIndex(x: Pixel): HeaderIndex;
|
|
4947
4994
|
/**
|
|
4948
4995
|
* Return the index of a row given an offset y, based on the pane top
|
|
4949
4996
|
* visible cell.
|
|
4950
4997
|
* It returns -1 if no row is found.
|
|
4951
4998
|
*/
|
|
4952
|
-
getRowIndex(y: Pixel
|
|
4999
|
+
getRowIndex(y: Pixel): HeaderIndex;
|
|
4953
5000
|
/**
|
|
4954
5001
|
* This function will make sure that the provided cell position (or current selected position) is part of
|
|
4955
5002
|
* the pane that is actually displayed on the client. We therefore adjust the offset of the pane
|
|
@@ -5048,6 +5095,7 @@ declare class SheetViewPlugin extends UIPlugin {
|
|
|
5048
5095
|
private gridOffsetX;
|
|
5049
5096
|
private gridOffsetY;
|
|
5050
5097
|
private sheetsWithDirtyViewports;
|
|
5098
|
+
private shouldAdjustViewports;
|
|
5051
5099
|
allowDispatch(cmd: LocalCommand): CommandResult | CommandResult[];
|
|
5052
5100
|
private handleEvent;
|
|
5053
5101
|
handle(cmd: Command): void;
|
|
@@ -5112,7 +5160,6 @@ declare class SheetViewPlugin extends UIPlugin {
|
|
|
5112
5160
|
private getMainInternalViewport;
|
|
5113
5161
|
/** gets rid of deprecated sheetIds */
|
|
5114
5162
|
private cleanViewports;
|
|
5115
|
-
private resetSheetViews;
|
|
5116
5163
|
private resizeSheetView;
|
|
5117
5164
|
private recomputeViewports;
|
|
5118
5165
|
private setSheetViewOffset;
|
|
@@ -5172,55 +5219,37 @@ declare class SheetViewPlugin extends UIPlugin {
|
|
|
5172
5219
|
type GetterNames<Plugin extends {
|
|
5173
5220
|
getters: readonly string[];
|
|
5174
5221
|
}> = Plugin["getters"][number];
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5222
|
+
/**
|
|
5223
|
+
* Extract getter methods from a plugin, based on its `getters` static array.
|
|
5224
|
+
* @example
|
|
5225
|
+
* class MyPlugin {
|
|
5226
|
+
* static getters = [
|
|
5227
|
+
* "getCell",
|
|
5228
|
+
* "getCellValue",
|
|
5229
|
+
* ] as const;
|
|
5230
|
+
* getCell() { ... }
|
|
5231
|
+
* getCellValue() { ... }
|
|
5232
|
+
* }
|
|
5233
|
+
* type MyPluginGetters = PluginGetters<typeof MyPlugin>;
|
|
5234
|
+
* // MyPluginGetters is equivalent to:
|
|
5235
|
+
* // {
|
|
5236
|
+
* // getCell: () => ...,
|
|
5237
|
+
* // getCellValue: () => ...,
|
|
5238
|
+
* // }
|
|
5239
|
+
*/
|
|
5240
|
+
type PluginGetters<Plugin extends {
|
|
5241
|
+
new (...args: unknown[]): any;
|
|
5242
|
+
getters: readonly string[];
|
|
5243
|
+
}> = Pick<InstanceType<Plugin>, GetterNames<Plugin>>;
|
|
5184
5244
|
type RangeAdapterGetters = Pick<RangeAdapter, GetterNames<typeof RangeAdapter>>;
|
|
5185
|
-
type
|
|
5186
|
-
type LocalHistoryGetters = Pick<HistoryPlugin, GetterNames<typeof HistoryPlugin>>;
|
|
5187
|
-
type FiltersGetters = Pick<FiltersPlugin, GetterNames<typeof FiltersPlugin>>;
|
|
5188
|
-
type SettingsGetters = Pick<SettingsPlugin, GetterNames<typeof SettingsPlugin>>;
|
|
5189
|
-
type HeaderGroupingGetters = Pick<HeaderGroupingPlugin, GetterNames<typeof HeaderGroupingPlugin>>;
|
|
5190
|
-
type DataValidationGetters = Pick<DataValidationPlugin, GetterNames<typeof DataValidationPlugin>>;
|
|
5191
|
-
type CoreGetters = SheetGetters & HeaderSizeGetters & HeaderVisibilityGetters & CellGetters & MergeGetters & BordersGetters & ChartGetters & ImageGetters & ConditionalFormatGetters & FigureGetters & RangeAdapterGetters & FiltersGetters & SettingsGetters & HeaderGroupingGetters & DataValidationGetters;
|
|
5192
|
-
type AutofillGetters = Pick<AutofillPlugin, GetterNames<typeof AutofillPlugin>>;
|
|
5193
|
-
type AutomaticSumGetters = Pick<AutomaticSumPlugin, GetterNames<typeof AutomaticSumPlugin>>;
|
|
5194
|
-
type ClipboardGetters = Pick<ClipboardPlugin, GetterNames<typeof ClipboardPlugin>>;
|
|
5195
|
-
type EditionGetters = Pick<EditionPlugin, GetterNames<typeof EditionPlugin>>;
|
|
5196
|
-
type EvaluationGetters = Pick<EvaluationPlugin, GetterNames<typeof EvaluationPlugin>>;
|
|
5197
|
-
type EvaluationChartGetters = Pick<EvaluationChartPlugin, GetterNames<typeof EvaluationChartPlugin>>;
|
|
5198
|
-
type EvaluationConditionalFormatGetters = Pick<EvaluationConditionalFormatPlugin, GetterNames<typeof EvaluationConditionalFormatPlugin>>;
|
|
5199
|
-
type FindAndReplaceGetters = Pick<FindAndReplacePlugin, GetterNames<typeof FindAndReplacePlugin>>;
|
|
5200
|
-
type HeaderVisibilityIUIGetters = Pick<HeaderVisibilityUIPlugin, GetterNames<typeof HeaderVisibilityUIPlugin>>;
|
|
5201
|
-
type HighlightGetters = Pick<HighlightPlugin, GetterNames<typeof HighlightPlugin>>;
|
|
5202
|
-
type CustomColorsGetters = Pick<CustomColorsPlugin, GetterNames<typeof CustomColorsPlugin>>;
|
|
5203
|
-
type RendererGetters = Pick<RendererPlugin, GetterNames<typeof RendererPlugin>>;
|
|
5204
|
-
type SelectionGetters = Pick<GridSelectionPlugin, GetterNames<typeof GridSelectionPlugin>>;
|
|
5205
|
-
type SelectionInputGetters = Pick<SelectionInputsManagerPlugin, GetterNames<typeof SelectionInputsManagerPlugin>>;
|
|
5206
|
-
type CollaborativeGetters = Pick<CollaborativePlugin, GetterNames<typeof CollaborativePlugin>>;
|
|
5207
|
-
type SortGetters = Pick<SortPlugin, GetterNames<typeof SortPlugin>>;
|
|
5208
|
-
type UIOptionsGetters = Pick<UIOptionsPlugin, GetterNames<typeof UIOptionsPlugin>>;
|
|
5209
|
-
type SheetUIGetters = Pick<SheetUIPlugin, GetterNames<typeof SheetUIPlugin>>;
|
|
5210
|
-
type ViewportGetters = Pick<SheetViewPlugin, GetterNames<typeof SheetViewPlugin>>;
|
|
5211
|
-
type CellPopoverPluginGetters = Pick<CellPopoverPlugin, GetterNames<typeof CellPopoverPlugin>>;
|
|
5212
|
-
type FilterEvaluationGetters = Pick<FilterEvaluationPlugin, GetterNames<typeof FilterEvaluationPlugin>>;
|
|
5213
|
-
type SplitToColumnsGetters = Pick<SplitToColumnsPlugin, GetterNames<typeof SplitToColumnsPlugin>>;
|
|
5214
|
-
type UIRowSizeGetters = Pick<UIRowSizePlugin, GetterNames<typeof UIRowSizePlugin>>;
|
|
5215
|
-
type EvaluationDataValidationPluginGetters = Pick<EvaluationDataValidationPlugin, GetterNames<typeof EvaluationDataValidationPlugin>>;
|
|
5245
|
+
type CoreGetters = PluginGetters<typeof SheetPlugin> & PluginGetters<typeof HeaderSizePlugin> & PluginGetters<typeof HeaderVisibilityPlugin> & PluginGetters<typeof CellPlugin> & PluginGetters<typeof MergePlugin> & PluginGetters<typeof BordersPlugin> & PluginGetters<typeof ChartPlugin> & PluginGetters<typeof ImagePlugin> & PluginGetters<typeof FigurePlugin> & RangeAdapterGetters & PluginGetters<typeof ConditionalFormatPlugin> & PluginGetters<typeof FiltersPlugin> & PluginGetters<typeof SettingsPlugin> & PluginGetters<typeof HeaderGroupingPlugin> & PluginGetters<typeof DataValidationPlugin>;
|
|
5216
5246
|
type Getters = {
|
|
5217
5247
|
isReadonly: () => boolean;
|
|
5218
5248
|
isDashboard: () => boolean;
|
|
5219
|
-
} &
|
|
5249
|
+
} & CoreGetters & PluginGetters<typeof AutofillPlugin> & PluginGetters<typeof AutomaticSumPlugin> & PluginGetters<typeof HistoryPlugin> & PluginGetters<typeof ClipboardPlugin> & PluginGetters<typeof EditionPlugin> & PluginGetters<typeof EvaluationPlugin> & PluginGetters<typeof EvaluationChartPlugin> & PluginGetters<typeof EvaluationConditionalFormatPlugin> & PluginGetters<typeof FindAndReplacePlugin> & PluginGetters<typeof HeaderVisibilityUIPlugin> & PluginGetters<typeof HighlightPlugin> & PluginGetters<typeof CustomColorsPlugin> & PluginGetters<typeof AutomaticSumPlugin> & PluginGetters<typeof RendererPlugin> & PluginGetters<typeof GridSelectionPlugin> & PluginGetters<typeof SelectionInputsManagerPlugin> & PluginGetters<typeof CollaborativePlugin> & PluginGetters<typeof SortPlugin> & PluginGetters<typeof UIOptionsPlugin> & PluginGetters<typeof SheetUIPlugin> & PluginGetters<typeof SheetViewPlugin> & PluginGetters<typeof CellPopoverPlugin> & PluginGetters<typeof FilterEvaluationPlugin> & PluginGetters<typeof SplitToColumnsPlugin> & PluginGetters<typeof HeaderSizeUIPlugin> & PluginGetters<typeof EvaluationDataValidationPlugin> & PluginGetters<typeof HeaderPositionsUIPlugin>;
|
|
5220
5250
|
|
|
5221
5251
|
interface HistoryChange {
|
|
5222
|
-
|
|
5223
|
-
path: (string | number)[];
|
|
5252
|
+
path: [any, ...(number | string)[]];
|
|
5224
5253
|
before: any;
|
|
5225
5254
|
after: any;
|
|
5226
5255
|
}
|
|
@@ -5870,6 +5899,8 @@ interface AutofillRule {
|
|
|
5870
5899
|
sequence: number;
|
|
5871
5900
|
}
|
|
5872
5901
|
|
|
5902
|
+
declare function transformRangeData(range: RangeData, executed: CoreCommand): RangeData | undefined;
|
|
5903
|
+
|
|
5873
5904
|
interface Props$B {
|
|
5874
5905
|
figure: Figure;
|
|
5875
5906
|
}
|
|
@@ -5890,34 +5921,10 @@ interface Props$A {
|
|
|
5890
5921
|
}
|
|
5891
5922
|
declare class ScorecardChart extends Component<Props$A, SpreadsheetChildEnv> {
|
|
5892
5923
|
static template: string;
|
|
5893
|
-
private
|
|
5924
|
+
private canvas;
|
|
5894
5925
|
get runtime(): ScorecardChartRuntime;
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
get baseline(): string;
|
|
5898
|
-
get baselineDescr(): string;
|
|
5899
|
-
get baselineArrowDirection(): BaselineArrowDirection;
|
|
5900
|
-
get backgroundColor(): Color;
|
|
5901
|
-
get primaryFontColor(): Color;
|
|
5902
|
-
get secondaryFontColor(): "#525252" | "#C8C8C8";
|
|
5903
|
-
get figure(): Figure;
|
|
5904
|
-
get chartStyle(): string;
|
|
5905
|
-
get chartContentStyle(): string;
|
|
5906
|
-
get chartPadding(): number;
|
|
5907
|
-
translate(term: any): string;
|
|
5908
|
-
getTextStyles(): {
|
|
5909
|
-
titleStyle: string;
|
|
5910
|
-
keyStyle: string;
|
|
5911
|
-
baselineStyle: string;
|
|
5912
|
-
baselineValueStyle: string;
|
|
5913
|
-
baselineDescrStyle: string;
|
|
5914
|
-
};
|
|
5915
|
-
/** Return an CSS style string corresponding to the given arguments */
|
|
5916
|
-
private getTextStyle;
|
|
5917
|
-
/** Get the height of the chart minus all the vertical paddings */
|
|
5918
|
-
private getDrawableHeight;
|
|
5919
|
-
/** Return the element with he widest text in the chart */
|
|
5920
|
-
private getWidestElement;
|
|
5926
|
+
setup(): void;
|
|
5927
|
+
private createChart;
|
|
5921
5928
|
}
|
|
5922
5929
|
|
|
5923
5930
|
type MenuItemOrSeparator = Action | "separator";
|
|
@@ -6754,6 +6761,14 @@ declare const formatNumberDate: ActionSpec;
|
|
|
6754
6761
|
declare const formatNumberTime: ActionSpec;
|
|
6755
6762
|
declare const formatNumberDateTime: ActionSpec;
|
|
6756
6763
|
declare const formatNumberDuration: ActionSpec;
|
|
6764
|
+
declare const moreFormats: ActionSpec;
|
|
6765
|
+
declare const formatNumberFullDateTime: ActionSpec;
|
|
6766
|
+
declare const formatNumberFullWeekDayAndMonth: ActionSpec;
|
|
6767
|
+
declare const formatNumberDayAndFullMonth: ActionSpec;
|
|
6768
|
+
declare const formatNumberShortWeekDay: ActionSpec;
|
|
6769
|
+
declare const formatNumberDayAndShortMonth: ActionSpec;
|
|
6770
|
+
declare const formatNumberFullMonth: ActionSpec;
|
|
6771
|
+
declare const formatNumberShortMonth: ActionSpec;
|
|
6757
6772
|
declare const incraseDecimalPlaces: ActionSpec;
|
|
6758
6773
|
declare const decraseDecimalPlaces: ActionSpec;
|
|
6759
6774
|
declare const formatBold: ActionSpec;
|
|
@@ -6802,9 +6817,16 @@ declare const ACTION_FORMAT_formatNumberCurrency: typeof formatNumberCurrency;
|
|
|
6802
6817
|
declare const ACTION_FORMAT_formatNumberCurrencyRounded: typeof formatNumberCurrencyRounded;
|
|
6803
6818
|
declare const ACTION_FORMAT_formatNumberDate: typeof formatNumberDate;
|
|
6804
6819
|
declare const ACTION_FORMAT_formatNumberDateTime: typeof formatNumberDateTime;
|
|
6820
|
+
declare const ACTION_FORMAT_formatNumberDayAndFullMonth: typeof formatNumberDayAndFullMonth;
|
|
6821
|
+
declare const ACTION_FORMAT_formatNumberDayAndShortMonth: typeof formatNumberDayAndShortMonth;
|
|
6805
6822
|
declare const ACTION_FORMAT_formatNumberDuration: typeof formatNumberDuration;
|
|
6823
|
+
declare const ACTION_FORMAT_formatNumberFullDateTime: typeof formatNumberFullDateTime;
|
|
6824
|
+
declare const ACTION_FORMAT_formatNumberFullMonth: typeof formatNumberFullMonth;
|
|
6825
|
+
declare const ACTION_FORMAT_formatNumberFullWeekDayAndMonth: typeof formatNumberFullWeekDayAndMonth;
|
|
6806
6826
|
declare const ACTION_FORMAT_formatNumberNumber: typeof formatNumberNumber;
|
|
6807
6827
|
declare const ACTION_FORMAT_formatNumberPercent: typeof formatNumberPercent;
|
|
6828
|
+
declare const ACTION_FORMAT_formatNumberShortMonth: typeof formatNumberShortMonth;
|
|
6829
|
+
declare const ACTION_FORMAT_formatNumberShortWeekDay: typeof formatNumberShortWeekDay;
|
|
6808
6830
|
declare const ACTION_FORMAT_formatNumberTime: typeof formatNumberTime;
|
|
6809
6831
|
declare const ACTION_FORMAT_formatPercent: typeof formatPercent;
|
|
6810
6832
|
declare const ACTION_FORMAT_formatStrikethrough: typeof formatStrikethrough;
|
|
@@ -6815,6 +6837,7 @@ declare const ACTION_FORMAT_formatWrappingIcon: typeof formatWrappingIcon;
|
|
|
6815
6837
|
declare const ACTION_FORMAT_formatWrappingOverflow: typeof formatWrappingOverflow;
|
|
6816
6838
|
declare const ACTION_FORMAT_formatWrappingWrap: typeof formatWrappingWrap;
|
|
6817
6839
|
declare const ACTION_FORMAT_incraseDecimalPlaces: typeof incraseDecimalPlaces;
|
|
6840
|
+
declare const ACTION_FORMAT_moreFormats: typeof moreFormats;
|
|
6818
6841
|
declare const ACTION_FORMAT_textColor: typeof textColor;
|
|
6819
6842
|
declare namespace ACTION_FORMAT {
|
|
6820
6843
|
export {
|
|
@@ -6840,9 +6863,16 @@ declare namespace ACTION_FORMAT {
|
|
|
6840
6863
|
ACTION_FORMAT_formatNumberCurrencyRounded as formatNumberCurrencyRounded,
|
|
6841
6864
|
ACTION_FORMAT_formatNumberDate as formatNumberDate,
|
|
6842
6865
|
ACTION_FORMAT_formatNumberDateTime as formatNumberDateTime,
|
|
6866
|
+
ACTION_FORMAT_formatNumberDayAndFullMonth as formatNumberDayAndFullMonth,
|
|
6867
|
+
ACTION_FORMAT_formatNumberDayAndShortMonth as formatNumberDayAndShortMonth,
|
|
6843
6868
|
ACTION_FORMAT_formatNumberDuration as formatNumberDuration,
|
|
6869
|
+
ACTION_FORMAT_formatNumberFullDateTime as formatNumberFullDateTime,
|
|
6870
|
+
ACTION_FORMAT_formatNumberFullMonth as formatNumberFullMonth,
|
|
6871
|
+
ACTION_FORMAT_formatNumberFullWeekDayAndMonth as formatNumberFullWeekDayAndMonth,
|
|
6844
6872
|
ACTION_FORMAT_formatNumberNumber as formatNumberNumber,
|
|
6845
6873
|
ACTION_FORMAT_formatNumberPercent as formatNumberPercent,
|
|
6874
|
+
ACTION_FORMAT_formatNumberShortMonth as formatNumberShortMonth,
|
|
6875
|
+
ACTION_FORMAT_formatNumberShortWeekDay as formatNumberShortWeekDay,
|
|
6846
6876
|
ACTION_FORMAT_formatNumberTime as formatNumberTime,
|
|
6847
6877
|
ACTION_FORMAT_formatPercent as formatPercent,
|
|
6848
6878
|
ACTION_FORMAT_formatStrikethrough as formatStrikethrough,
|
|
@@ -6853,6 +6883,7 @@ declare namespace ACTION_FORMAT {
|
|
|
6853
6883
|
ACTION_FORMAT_formatWrappingOverflow as formatWrappingOverflow,
|
|
6854
6884
|
ACTION_FORMAT_formatWrappingWrap as formatWrappingWrap,
|
|
6855
6885
|
ACTION_FORMAT_incraseDecimalPlaces as incraseDecimalPlaces,
|
|
6886
|
+
ACTION_FORMAT_moreFormats as moreFormats,
|
|
6856
6887
|
ACTION_FORMAT_textColor as textColor,
|
|
6857
6888
|
};
|
|
6858
6889
|
}
|
|
@@ -7023,7 +7054,9 @@ declare class BorderEditorWidget extends Component<Props$c, SpreadsheetChildEnv>
|
|
|
7023
7054
|
interface Props$b {
|
|
7024
7055
|
values: AutocompleteValue[];
|
|
7025
7056
|
selectedIndex: number | undefined;
|
|
7057
|
+
getHtmlContent: (value: string) => string;
|
|
7026
7058
|
onValueSelected: (value: string) => void;
|
|
7059
|
+
onValueHovered: (index: string) => void;
|
|
7027
7060
|
}
|
|
7028
7061
|
declare class TextValueProvider extends Component<Props$b> {
|
|
7029
7062
|
static template: string;
|
|
@@ -7132,6 +7165,7 @@ interface AutoCompleteState {
|
|
|
7132
7165
|
selectedIndex: number | undefined;
|
|
7133
7166
|
values: AutocompleteValue[];
|
|
7134
7167
|
type: "function" | "dataValidation";
|
|
7168
|
+
getHtmlContent: (text: string) => HtmlContent[];
|
|
7135
7169
|
}
|
|
7136
7170
|
interface FunctionDescriptionState {
|
|
7137
7171
|
showDescription: boolean;
|
|
@@ -7180,13 +7214,14 @@ declare class Composer extends Component<ComposerProps, SpreadsheetChildEnv> {
|
|
|
7180
7214
|
onInput(ev: InputEvent): void;
|
|
7181
7215
|
onKeyup(ev: KeyboardEvent): void;
|
|
7182
7216
|
showFunctionAutocomplete(searchTerm: string): void;
|
|
7217
|
+
updateAutoCompleteIndex(index: number): void;
|
|
7183
7218
|
/**
|
|
7184
7219
|
* This is required to ensure the content helper selection is
|
|
7185
7220
|
* properly updated on "onclick" events. Depending on the browser,
|
|
7186
7221
|
* the callback onClick from the composer will be executed before
|
|
7187
7222
|
* the selection was updated in the dom, which means we capture an
|
|
7188
7223
|
* wrong selection which is then forced upon the content helper on
|
|
7189
|
-
*
|
|
7224
|
+
* processContent.
|
|
7190
7225
|
*/
|
|
7191
7226
|
onMousedown(ev: MouseEvent): void;
|
|
7192
7227
|
onClick(): void;
|
|
@@ -7810,8 +7845,10 @@ declare const helpers: {
|
|
|
7810
7845
|
toString: typeof toString;
|
|
7811
7846
|
toXC: typeof toXC;
|
|
7812
7847
|
toZone: typeof toZone;
|
|
7848
|
+
toUnboundedZone: typeof toUnboundedZone;
|
|
7813
7849
|
toCartesian: typeof toCartesian;
|
|
7814
7850
|
numberToLetters: typeof numberToLetters;
|
|
7851
|
+
lettersToNumber: typeof lettersToNumber;
|
|
7815
7852
|
UuidGenerator: typeof UuidGenerator;
|
|
7816
7853
|
formatValue: typeof formatValue;
|
|
7817
7854
|
createCurrencyFormat: typeof createCurrencyFormat;
|
|
@@ -7833,6 +7870,7 @@ declare const helpers: {
|
|
|
7833
7870
|
genericRepeat: typeof genericRepeat;
|
|
7834
7871
|
createAction: typeof createAction;
|
|
7835
7872
|
createActions: typeof createActions;
|
|
7873
|
+
transformRangeData: typeof transformRangeData;
|
|
7836
7874
|
};
|
|
7837
7875
|
declare const links: {
|
|
7838
7876
|
isMarkdownLink: typeof isMarkdownLink;
|
|
@@ -7858,6 +7896,7 @@ declare const components: {
|
|
|
7858
7896
|
ScorecardChartDesignPanel: typeof ScorecardChartDesignPanel;
|
|
7859
7897
|
FigureComponent: typeof FigureComponent;
|
|
7860
7898
|
Menu: typeof Menu;
|
|
7899
|
+
SelectionInput: typeof SelectionInput;
|
|
7861
7900
|
};
|
|
7862
7901
|
declare const hooks: {
|
|
7863
7902
|
useDragAndDropListItems: typeof useDragAndDropListItems;
|