@odoo/o-spreadsheet 17.3.0-alpha.1 → 17.3.0-alpha.3
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 +1577 -752
- package/dist/o-spreadsheet.d.ts +182 -162
- package/dist/o-spreadsheet.esm.js +1577 -752
- package/dist/o-spreadsheet.iife.js +1577 -752
- package/dist/o-spreadsheet.iife.min.js +392 -304
- package/dist/o_spreadsheet.xml +240 -127
- package/package.json +5 -5
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -182,8 +182,7 @@ type XlsxHexColor = string & Alias;
|
|
|
182
182
|
type VerticalAxisPosition = "left" | "right";
|
|
183
183
|
type LegendPosition = "top" | "bottom" | "left" | "right" | "none";
|
|
184
184
|
|
|
185
|
-
interface
|
|
186
|
-
readonly type: "bar";
|
|
185
|
+
interface ComboBarChartDefinition {
|
|
187
186
|
readonly dataSets: string[];
|
|
188
187
|
readonly dataSetsHaveTitle: boolean;
|
|
189
188
|
readonly labelRange?: string;
|
|
@@ -191,14 +190,27 @@ interface BarChartDefinition {
|
|
|
191
190
|
readonly background?: Color;
|
|
192
191
|
readonly verticalAxisPosition: VerticalAxisPosition;
|
|
193
192
|
readonly legendPosition: LegendPosition;
|
|
194
|
-
readonly stacked: boolean;
|
|
195
193
|
readonly aggregated?: boolean;
|
|
196
194
|
}
|
|
195
|
+
|
|
196
|
+
interface BarChartDefinition extends ComboBarChartDefinition {
|
|
197
|
+
readonly type: "bar";
|
|
198
|
+
readonly stacked: boolean;
|
|
199
|
+
}
|
|
197
200
|
type BarChartRuntime = {
|
|
198
201
|
chartJsConfig: ChartConfiguration;
|
|
199
202
|
background: Color;
|
|
200
203
|
};
|
|
201
204
|
|
|
205
|
+
interface ComboChartDefinition extends ComboBarChartDefinition {
|
|
206
|
+
readonly type: "combo";
|
|
207
|
+
readonly useBothYAxis?: boolean;
|
|
208
|
+
}
|
|
209
|
+
type ComboChartRuntime = {
|
|
210
|
+
chartJsConfig: ChartConfiguration;
|
|
211
|
+
background: Color;
|
|
212
|
+
};
|
|
213
|
+
|
|
202
214
|
interface GaugeChartDefinition {
|
|
203
215
|
readonly type: "gauge";
|
|
204
216
|
readonly title: string;
|
|
@@ -285,9 +297,14 @@ interface ScorecardChartDefinition {
|
|
|
285
297
|
readonly background?: Color;
|
|
286
298
|
readonly baselineColorUp: Color;
|
|
287
299
|
readonly baselineColorDown: Color;
|
|
300
|
+
readonly humanize?: boolean;
|
|
288
301
|
}
|
|
289
|
-
type BaselineMode = "text" | "difference" | "percentage";
|
|
302
|
+
type BaselineMode = "text" | "difference" | "percentage" | "progress";
|
|
290
303
|
type BaselineArrowDirection = "neutral" | "up" | "down";
|
|
304
|
+
interface ProgressBar {
|
|
305
|
+
readonly value: number;
|
|
306
|
+
readonly color: Color;
|
|
307
|
+
}
|
|
291
308
|
interface ScorecardChartRuntime {
|
|
292
309
|
readonly title: string;
|
|
293
310
|
readonly keyValue: string;
|
|
@@ -299,12 +316,13 @@ interface ScorecardChartRuntime {
|
|
|
299
316
|
readonly fontColor: Color;
|
|
300
317
|
readonly keyValueStyle?: Style;
|
|
301
318
|
readonly baselineStyle?: Style;
|
|
319
|
+
readonly progressBar?: ProgressBar;
|
|
302
320
|
}
|
|
303
321
|
|
|
304
|
-
declare const CHART_TYPES: readonly ["line", "bar", "pie", "scorecard", "gauge", "scatter"];
|
|
322
|
+
declare const CHART_TYPES: readonly ["line", "bar", "pie", "scorecard", "gauge", "scatter", "combo"];
|
|
305
323
|
type ChartType = (typeof CHART_TYPES)[number];
|
|
306
|
-
type ChartDefinition = LineChartDefinition | PieChartDefinition | BarChartDefinition | ScorecardChartDefinition | GaugeChartDefinition | ScatterChartDefinition;
|
|
307
|
-
type ChartJSRuntime = LineChartRuntime | PieChartRuntime | BarChartRuntime | ScatterChartRuntime;
|
|
324
|
+
type ChartDefinition = LineChartDefinition | PieChartDefinition | BarChartDefinition | ScorecardChartDefinition | GaugeChartDefinition | ScatterChartDefinition | ComboChartDefinition;
|
|
325
|
+
type ChartJSRuntime = LineChartRuntime | PieChartRuntime | BarChartRuntime | ComboChartRuntime | ScatterChartRuntime;
|
|
308
326
|
type ChartRuntime = ChartJSRuntime | ScorecardChartRuntime | GaugeChartRuntime;
|
|
309
327
|
interface LabelValues {
|
|
310
328
|
readonly values: string[];
|
|
@@ -318,12 +336,13 @@ type AxisType = "category" | "linear" | "time";
|
|
|
318
336
|
interface DataSet {
|
|
319
337
|
readonly labelCell?: Range;
|
|
320
338
|
readonly dataRange: Range;
|
|
339
|
+
readonly rightYAxis?: boolean;
|
|
321
340
|
}
|
|
322
341
|
interface ExcelChartDataset {
|
|
323
342
|
readonly label?: string;
|
|
324
343
|
readonly range: string;
|
|
325
344
|
}
|
|
326
|
-
type ExcelChartType = "line" | "bar" | "pie";
|
|
345
|
+
type ExcelChartType = "line" | "bar" | "pie" | "combo" | "scatter";
|
|
327
346
|
interface ExcelChartDefinition {
|
|
328
347
|
readonly title?: string;
|
|
329
348
|
readonly type: ExcelChartType;
|
|
@@ -342,6 +361,7 @@ interface ChartCreationContext {
|
|
|
342
361
|
readonly background?: string;
|
|
343
362
|
readonly auxiliaryRange?: string;
|
|
344
363
|
readonly aggregated?: boolean;
|
|
364
|
+
readonly type?: string;
|
|
345
365
|
}
|
|
346
366
|
|
|
347
367
|
declare enum ClipboardMIMEType {
|
|
@@ -514,10 +534,11 @@ interface ZoneDependentCommand {
|
|
|
514
534
|
}
|
|
515
535
|
declare function isZoneDependent(cmd: CoreCommand): boolean;
|
|
516
536
|
declare function isPositionDependent(cmd: CoreCommand): boolean;
|
|
517
|
-
declare const invalidateEvaluationCommands: Set<"CUT" | "COPY" | "UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "ACTIVATE_PAINT_FORMAT" | "CANCEL_PAINT_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "START_CHANGE_HIGHLIGHT" | "
|
|
518
|
-
declare const invalidateDependenciesCommands: Set<"CUT" | "COPY" | "UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "ACTIVATE_PAINT_FORMAT" | "CANCEL_PAINT_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "START_CHANGE_HIGHLIGHT" | "
|
|
519
|
-
declare const invalidateCFEvaluationCommands: Set<"CUT" | "COPY" | "UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "ACTIVATE_PAINT_FORMAT" | "CANCEL_PAINT_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "START_CHANGE_HIGHLIGHT" | "
|
|
520
|
-
declare const
|
|
537
|
+
declare const invalidateEvaluationCommands: Set<"CUT" | "COPY" | "UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "ACTIVATE_PAINT_FORMAT" | "CANCEL_PAINT_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SORT_CELLS" | "SET_DECIMAL" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RENDER_CANVAS">;
|
|
538
|
+
declare const invalidateDependenciesCommands: Set<"CUT" | "COPY" | "UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "ACTIVATE_PAINT_FORMAT" | "CANCEL_PAINT_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SORT_CELLS" | "SET_DECIMAL" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RENDER_CANVAS">;
|
|
539
|
+
declare const invalidateCFEvaluationCommands: Set<"CUT" | "COPY" | "UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "ACTIVATE_PAINT_FORMAT" | "CANCEL_PAINT_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SORT_CELLS" | "SET_DECIMAL" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RENDER_CANVAS">;
|
|
540
|
+
declare const invalidateBordersCommands: Set<"CUT" | "COPY" | "UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "ACTIVATE_PAINT_FORMAT" | "CANCEL_PAINT_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SORT_CELLS" | "SET_DECIMAL" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RENDER_CANVAS">;
|
|
541
|
+
declare const readonlyAllowedCommands: Set<"CUT" | "COPY" | "UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "ACTIVATE_PAINT_FORMAT" | "CANCEL_PAINT_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SORT_CELLS" | "SET_DECIMAL" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RENDER_CANVAS">;
|
|
521
542
|
declare const coreTypes: Set<"UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE">;
|
|
522
543
|
declare function isCoreCommand(cmd: Command): cmd is CoreCommand;
|
|
523
544
|
declare function canExecuteInReadonly(cmd: Command): boolean;
|
|
@@ -856,14 +877,6 @@ interface ActivateSheetCommand {
|
|
|
856
877
|
sheetIdFrom: UID;
|
|
857
878
|
sheetIdTo: UID;
|
|
858
879
|
}
|
|
859
|
-
/**
|
|
860
|
-
* Set a color to be used for the next selection to highlight.
|
|
861
|
-
* The color is only used when selection highlight is enabled.
|
|
862
|
-
*/
|
|
863
|
-
interface SetColorCommand {
|
|
864
|
-
type: "SET_HIGHLIGHT_COLOR";
|
|
865
|
-
color: Color;
|
|
866
|
-
}
|
|
867
880
|
interface EvaluateCellsCommand {
|
|
868
881
|
type: "EVALUATE_CELLS";
|
|
869
882
|
}
|
|
@@ -1022,7 +1035,7 @@ UpdateCellCommand | UpdateCellPositionCommand | ClearCellCommand | DeleteContent
|
|
|
1022
1035
|
| AddDataValidationCommand | RemoveDataValidationCommand
|
|
1023
1036
|
/** MISC */
|
|
1024
1037
|
| UpdateLocaleCommand;
|
|
1025
|
-
type LocalCommand = RequestUndoCommand | RequestRedoCommand | UndoCommand | RedoCommand | CopyCommand | CutCommand | PasteCommand | CopyPasteCellsAboveCommand | CopyPasteCellsOnLeftCommand | RepeatPasteCommand | CleanClipBoardHighlightCommand | AutoFillCellCommand | PasteFromOSClipboardCommand | ActivatePaintFormatCommand | CancelPaintFormatCommand | AutoresizeColumnsCommand | AutoresizeRowsCommand | MoveColumnsRowsCommand | ActivateSheetCommand | EvaluateCellsCommand | StartChangeHighlightCommand |
|
|
1038
|
+
type LocalCommand = RequestUndoCommand | RequestRedoCommand | UndoCommand | RedoCommand | CopyCommand | CutCommand | PasteCommand | CopyPasteCellsAboveCommand | CopyPasteCellsOnLeftCommand | RepeatPasteCommand | CleanClipBoardHighlightCommand | AutoFillCellCommand | PasteFromOSClipboardCommand | ActivatePaintFormatCommand | CancelPaintFormatCommand | AutoresizeColumnsCommand | AutoresizeRowsCommand | MoveColumnsRowsCommand | ActivateSheetCommand | EvaluateCellsCommand | StartChangeHighlightCommand | StartCommand | AutofillCommand | AutofillSelectCommand | AutofillTableCommand | ShowFormulaCommand | AutofillAutoCommand | SelectFigureCommand | ReplaceSearchCommand | SortCommand | SetDecimalCommand | ResizeViewportCommand | SumSelectionCommand | DeleteCellCommand | InsertCellCommand | SetViewportOffsetCommand | MoveViewportDownCommand | MoveViewportUpCommand | MoveViewportToCellCommand | ActivateNextSheetCommand | ActivatePreviousSheetCommand | UpdateFilterCommand | SplitTextIntoColumnsCommand | RemoveDuplicatesCommand | TrimWhitespaceCommand | RenderCanvasCommand;
|
|
1026
1039
|
type Command = CoreCommand | LocalCommand;
|
|
1027
1040
|
/**
|
|
1028
1041
|
* Holds the result of a command dispatch.
|
|
@@ -1156,7 +1169,8 @@ declare const enum CommandResult {
|
|
|
1156
1169
|
InvalidNumberOfCriterionValues = "InvalidNumberOfCriterionValues",
|
|
1157
1170
|
InvalidCopyPasteSelection = "InvalidCopyPasteSelection",
|
|
1158
1171
|
NoChanges = "NoChanges",
|
|
1159
|
-
InvalidInputId = "InvalidInputId"
|
|
1172
|
+
InvalidInputId = "InvalidInputId",
|
|
1173
|
+
SheetIsHidden = "SheetIsHidden"
|
|
1160
1174
|
}
|
|
1161
1175
|
interface CommandHandler<T> {
|
|
1162
1176
|
allowDispatch(command: T): CommandResult | CommandResult[];
|
|
@@ -1171,9 +1185,6 @@ interface CommandDispatcher {
|
|
|
1171
1185
|
dispatch<T extends CommandTypes, C extends Extract<Command, {
|
|
1172
1186
|
type: T;
|
|
1173
1187
|
}>>(type: T, r: Omit<C, "type">): DispatchResult;
|
|
1174
|
-
canDispatch<T extends CommandTypes, C extends Extract<Command, {
|
|
1175
|
-
type: T;
|
|
1176
|
-
}>>(type: T, r: Omit<C, "type">): DispatchResult;
|
|
1177
1188
|
}
|
|
1178
1189
|
interface CoreCommandDispatcher {
|
|
1179
1190
|
dispatch<T extends CoreCommandTypes, C extends Extract<CoreCommand, {
|
|
@@ -1182,9 +1193,6 @@ interface CoreCommandDispatcher {
|
|
|
1182
1193
|
dispatch<T extends CoreCommandTypes, C extends Extract<CoreCommand, {
|
|
1183
1194
|
type: T;
|
|
1184
1195
|
}>>(type: T, r: Omit<C, "type">): DispatchResult;
|
|
1185
|
-
canDispatch<T extends CoreCommandTypes, C extends Extract<CoreCommand, {
|
|
1186
|
-
type: T;
|
|
1187
|
-
}>>(type: T, r: Omit<C, "type">): DispatchResult;
|
|
1188
1196
|
}
|
|
1189
1197
|
type CommandTypes = Command["type"];
|
|
1190
1198
|
type CoreCommandTypes = CoreCommand["type"];
|
|
@@ -1330,6 +1338,13 @@ interface UnboundedZone {
|
|
|
1330
1338
|
bottom: HeaderIndex | undefined;
|
|
1331
1339
|
left: HeaderIndex;
|
|
1332
1340
|
right: HeaderIndex | undefined;
|
|
1341
|
+
/**
|
|
1342
|
+
* The hasHeader flag is used to determine if the zone has a header (eg. A2:A or C3:3).
|
|
1343
|
+
*
|
|
1344
|
+
* The main issue is that the zone A1:A and A:A have different behavior. The "correct" way to handle this would be to
|
|
1345
|
+
* allow the top/left to be undefined, but this make typing and using unbounded zones VERY annoying. So we use this
|
|
1346
|
+
* boolean instead.
|
|
1347
|
+
*/
|
|
1333
1348
|
hasHeader?: boolean;
|
|
1334
1349
|
}
|
|
1335
1350
|
interface ZoneDimension {
|
|
@@ -1549,6 +1564,11 @@ type DebouncedFunction<T> = T & {
|
|
|
1549
1564
|
stopDebounce: () => void;
|
|
1550
1565
|
isDebouncePending: () => boolean;
|
|
1551
1566
|
};
|
|
1567
|
+
interface GridClickModifiers {
|
|
1568
|
+
addZone: boolean;
|
|
1569
|
+
expandZone: boolean;
|
|
1570
|
+
closePopover: boolean;
|
|
1571
|
+
}
|
|
1552
1572
|
|
|
1553
1573
|
type LocaleCode = string & Alias;
|
|
1554
1574
|
interface Locale {
|
|
@@ -2088,7 +2108,8 @@ declare class BasePlugin<State = any, C = any> implements CommandHandler<C>, Val
|
|
|
2088
2108
|
static getters: readonly string[];
|
|
2089
2109
|
protected history: WorkbookHistory<State>;
|
|
2090
2110
|
protected dispatch: CommandDispatcher["dispatch"];
|
|
2091
|
-
|
|
2111
|
+
protected canDispatch: CommandDispatcher["dispatch"];
|
|
2112
|
+
constructor(stateObserver: StateObserver, dispatch: CommandDispatcher["dispatch"], canDispatch: CommandDispatcher["dispatch"]);
|
|
2092
2113
|
/**
|
|
2093
2114
|
* Export for excel should be available for all plugins, even for the UI.
|
|
2094
2115
|
* In some case, we need to export evaluated value, which is available from
|
|
@@ -2200,6 +2221,7 @@ interface CorePluginConfig {
|
|
|
2200
2221
|
readonly stateObserver: StateObserver;
|
|
2201
2222
|
readonly range: RangeAdapter;
|
|
2202
2223
|
readonly dispatch: CoreCommandDispatcher["dispatch"];
|
|
2224
|
+
readonly canDispatch: CoreCommandDispatcher["dispatch"];
|
|
2203
2225
|
readonly uuidGenerator: UuidGenerator;
|
|
2204
2226
|
readonly custom: ModelConfig["custom"];
|
|
2205
2227
|
readonly external: ModelConfig["external"];
|
|
@@ -2217,7 +2239,7 @@ interface CorePluginConstructor {
|
|
|
2217
2239
|
declare class CorePlugin<State = any> extends BasePlugin<State, CoreCommand> implements RangeProvider {
|
|
2218
2240
|
protected getters: CoreGetters;
|
|
2219
2241
|
protected uuidGenerator: UuidGenerator;
|
|
2220
|
-
constructor({ getters, stateObserver, range, dispatch, uuidGenerator }: CorePluginConfig);
|
|
2242
|
+
constructor({ getters, stateObserver, range, dispatch, canDispatch, uuidGenerator, }: CorePluginConfig);
|
|
2221
2243
|
import(data: WorkbookData): void;
|
|
2222
2244
|
export(data: WorkbookData): void;
|
|
2223
2245
|
/**
|
|
@@ -2805,7 +2827,7 @@ interface MergeState {
|
|
|
2805
2827
|
readonly mergeCellMap: Record<UID, SheetMergeCellMap | undefined>;
|
|
2806
2828
|
}
|
|
2807
2829
|
declare class MergePlugin extends CorePlugin<MergeState> implements MergeState {
|
|
2808
|
-
static getters: readonly ["isInMerge", "isInSameMerge", "isMergeHidden", "getMainCellPosition", "
|
|
2830
|
+
static getters: readonly ["isInMerge", "isInSameMerge", "isMergeHidden", "getMainCellPosition", "expandZone", "doesIntersectMerge", "doesColumnsHaveCommonMerges", "doesRowsHaveCommonMerges", "getMerges", "getMerge", "getMergesInZone", "isSingleCellOrMerge", "getSelectionRangeString", "isMainCellPosition"];
|
|
2809
2831
|
private nextId;
|
|
2810
2832
|
readonly merges: Record<UID, Record<number, Range | undefined> | undefined>;
|
|
2811
2833
|
readonly mergeCellMap: Record<UID, SheetMergeCellMap | undefined>;
|
|
@@ -2839,7 +2861,6 @@ declare class MergePlugin extends CorePlugin<MergeState> implements MergeState {
|
|
|
2839
2861
|
isInSameMerge(sheetId: UID, colA: HeaderIndex, rowA: HeaderIndex, colB: HeaderIndex, rowB: HeaderIndex): boolean;
|
|
2840
2862
|
isInMerge({ sheetId, col, row }: CellPosition): boolean;
|
|
2841
2863
|
getMainCellPosition(position: CellPosition): CellPosition;
|
|
2842
|
-
getBottomLeftCell(position: CellPosition): CellPosition;
|
|
2843
2864
|
isMergeHidden(sheetId: UID, merge: Merge): boolean;
|
|
2844
2865
|
/**
|
|
2845
2866
|
* Check if the zone represents a single cell or a single merge.
|
|
@@ -2898,7 +2919,7 @@ interface SheetState {
|
|
|
2898
2919
|
readonly cellPosition: Record<UID, CellPosition | undefined>;
|
|
2899
2920
|
}
|
|
2900
2921
|
declare class SheetPlugin extends CorePlugin<SheetState> implements SheetState {
|
|
2901
|
-
static getters: readonly ["getSheetName", "tryGetSheetName", "getSheet", "tryGetSheet", "getSheetIdByName", "getSheetIds", "getVisibleSheetIds", "isSheetVisible", "
|
|
2922
|
+
static getters: readonly ["getSheetName", "tryGetSheetName", "getSheet", "tryGetSheet", "getSheetIdByName", "getSheetIds", "getVisibleSheetIds", "isSheetVisible", "doesHeaderExist", "doesHeadersExist", "getCell", "getCellPosition", "getColsZone", "getRowCells", "getRowsZone", "getNumberCols", "getNumberRows", "getNumberHeaders", "getGridLinesVisibility", "getNextSheetName", "getSheetSize", "getSheetZone", "getPaneDivisions", "checkZonesExistInSheet", "getCommandZones", "getUnboundedZone", "checkElementsIncludeAllNonFrozenHeaders"];
|
|
2902
2923
|
readonly sheetIdsMapName: Record<string, UID | undefined>;
|
|
2903
2924
|
readonly orderedSheetIds: UID[];
|
|
2904
2925
|
readonly sheets: Record<UID, Sheet | undefined>;
|
|
@@ -2924,10 +2945,8 @@ declare class SheetPlugin extends CorePlugin<SheetState> implements SheetState {
|
|
|
2924
2945
|
getSheetIdByName(name: string | undefined): UID | undefined;
|
|
2925
2946
|
getSheetIds(): UID[];
|
|
2926
2947
|
getVisibleSheetIds(): UID[];
|
|
2927
|
-
getEvaluationSheets(): Record<UID, Sheet | undefined>;
|
|
2928
2948
|
doesHeaderExist(sheetId: UID, dimension: Dimension, index: number): boolean;
|
|
2929
2949
|
doesHeadersExist(sheetId: UID, dimension: Dimension, headerIndexes: HeaderIndex[]): boolean;
|
|
2930
|
-
getRow(sheetId: UID, index: HeaderIndex): Row;
|
|
2931
2950
|
getCell({ sheetId, col, row }: CellPosition): Cell | undefined;
|
|
2932
2951
|
getColsZone(sheetId: UID, start: HeaderIndex, end: HeaderIndex): Zone;
|
|
2933
2952
|
getRowCells(sheetId: UID, row: HeaderIndex): UID[];
|
|
@@ -3153,7 +3172,6 @@ declare class SelectiveHistory<T = unknown> {
|
|
|
3153
3172
|
*/
|
|
3154
3173
|
redo(operationId: UID, redoId: UID, insertAfter: UID): void;
|
|
3155
3174
|
drop(operationId: UID): void;
|
|
3156
|
-
getRevertedExecution(): T[];
|
|
3157
3175
|
/**
|
|
3158
3176
|
* Revert the state as it was *before* the given operation was executed.
|
|
3159
3177
|
*/
|
|
@@ -3535,6 +3553,7 @@ interface UIPluginConfig {
|
|
|
3535
3553
|
readonly getters: Getters;
|
|
3536
3554
|
readonly stateObserver: StateObserver;
|
|
3537
3555
|
readonly dispatch: CommandDispatcher["dispatch"];
|
|
3556
|
+
readonly canDispatch: CommandDispatcher["dispatch"];
|
|
3538
3557
|
readonly selection: SelectionStreamProcessor;
|
|
3539
3558
|
readonly moveClient: (position: ClientPosition) => void;
|
|
3540
3559
|
readonly uiActions: UIActions;
|
|
@@ -3557,12 +3576,12 @@ declare class UIPlugin<State = any> extends BasePlugin<State, Command> {
|
|
|
3557
3576
|
protected getters: Getters;
|
|
3558
3577
|
protected ui: UIActions;
|
|
3559
3578
|
protected selection: SelectionStreamProcessor;
|
|
3560
|
-
constructor({ getters, stateObserver, dispatch, uiActions, selection }: UIPluginConfig);
|
|
3579
|
+
constructor({ getters, stateObserver, dispatch, canDispatch, uiActions, selection, }: UIPluginConfig);
|
|
3561
3580
|
drawLayer(ctx: GridRenderingContext, layer: LayerName): void;
|
|
3562
3581
|
}
|
|
3563
3582
|
|
|
3564
3583
|
declare class EvaluationPlugin extends UIPlugin {
|
|
3565
|
-
static getters: readonly ["evaluateFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "
|
|
3584
|
+
static getters: readonly ["evaluateFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getSpreadZone", "getArrayFormulaSpreadingOn", "isEmpty"];
|
|
3566
3585
|
private shouldRebuildDependenciesGraph;
|
|
3567
3586
|
private evaluator;
|
|
3568
3587
|
private positionsToUpdate;
|
|
@@ -3586,7 +3605,10 @@ declare class EvaluationPlugin extends UIPlugin {
|
|
|
3586
3605
|
getEvaluatedCell(position: CellPosition): EvaluatedCell;
|
|
3587
3606
|
getEvaluatedCells(sheetId: UID): Record<UID, EvaluatedCell>;
|
|
3588
3607
|
getEvaluatedCellsInZone(sheetId: UID, zone: Zone): EvaluatedCell[];
|
|
3589
|
-
|
|
3608
|
+
/**
|
|
3609
|
+
* Return the spread zone the position is part of, if any
|
|
3610
|
+
*/
|
|
3611
|
+
getSpreadZone(position: CellPosition): Zone | undefined;
|
|
3590
3612
|
getArrayFormulaSpreadingOn(position: CellPosition): CellPosition | undefined;
|
|
3591
3613
|
/**
|
|
3592
3614
|
* Check if a zone only contains empty cells
|
|
@@ -3929,6 +3951,17 @@ declare class AutomaticSumPlugin extends UIPlugin {
|
|
|
3929
3951
|
private transpose;
|
|
3930
3952
|
}
|
|
3931
3953
|
|
|
3954
|
+
declare class CellComputedStylePlugin extends UIPlugin {
|
|
3955
|
+
static getters: readonly ["getCellComputedBorder", "getCellComputedStyle"];
|
|
3956
|
+
private styles;
|
|
3957
|
+
private borders;
|
|
3958
|
+
handle(cmd: Command): void;
|
|
3959
|
+
getCellComputedBorder(position: CellPosition): Border$1 | null;
|
|
3960
|
+
getCellComputedStyle(position: CellPosition): Style;
|
|
3961
|
+
private computeCellBorder;
|
|
3962
|
+
private computeCellStyle;
|
|
3963
|
+
}
|
|
3964
|
+
|
|
3932
3965
|
interface ClientToDisplay extends Required<Client> {
|
|
3933
3966
|
color: Color;
|
|
3934
3967
|
}
|
|
@@ -4099,7 +4132,7 @@ declare class UIOptionsPlugin extends UIPlugin {
|
|
|
4099
4132
|
}
|
|
4100
4133
|
|
|
4101
4134
|
declare class SheetUIPlugin extends UIPlugin {
|
|
4102
|
-
static getters: readonly ["doesCellHaveGridIcon", "getCellWidth", "
|
|
4135
|
+
static getters: readonly ["doesCellHaveGridIcon", "getCellWidth", "getTextWidth", "getCellText", "getCellMultiLineText", "getContiguousZone"];
|
|
4103
4136
|
private ctx;
|
|
4104
4137
|
allowDispatch(cmd: LocalCommand): CommandResult | CommandResult[];
|
|
4105
4138
|
handle(cmd: Command): void;
|
|
@@ -4121,8 +4154,6 @@ declare class SheetUIPlugin extends UIPlugin {
|
|
|
4121
4154
|
* If the cell is part of a merge, the check applies to the main cell of the merge.
|
|
4122
4155
|
*/
|
|
4123
4156
|
private isCellEmpty;
|
|
4124
|
-
getCellComputedBorder(position: CellPosition): Border$1 | null;
|
|
4125
|
-
getCellComputedStyle(position: CellPosition): Style;
|
|
4126
4157
|
private getColMaxWidth;
|
|
4127
4158
|
/**
|
|
4128
4159
|
* Check that any "sheetId" in the command matches an existing
|
|
@@ -4241,7 +4272,7 @@ declare class HeaderPositionsUIPlugin extends UIPlugin {
|
|
|
4241
4272
|
*/
|
|
4242
4273
|
declare class GridSelectionPlugin extends UIPlugin {
|
|
4243
4274
|
static layers: readonly ["Selection"];
|
|
4244
|
-
static getters: readonly ["getActiveSheet", "getActiveSheetId", "getActiveCell", "getActiveCols", "getActiveRows", "getCurrentStyle", "getSelectedZones", "getSelectedZone", "getSelectedCells", "
|
|
4275
|
+
static getters: readonly ["getActiveSheet", "getActiveSheetId", "getActiveCell", "getActiveCols", "getActiveRows", "getCurrentStyle", "getSelectedZones", "getSelectedZone", "getSelectedCells", "getSelectedFigureId", "getSelection", "getActivePosition", "getSheetPosition", "isSelected", "isSingleColSelected", "getElementsFromSelection", "tryGetActiveSheetId", "isGridSelectionActive"];
|
|
4245
4276
|
private gridSelection;
|
|
4246
4277
|
private selectedFigureId;
|
|
4247
4278
|
private sheetsData;
|
|
@@ -4266,10 +4297,6 @@ declare class GridSelectionPlugin extends UIPlugin {
|
|
|
4266
4297
|
getSelectedFigureId(): UID | null;
|
|
4267
4298
|
getActivePosition(): CellPosition;
|
|
4268
4299
|
getSheetPosition(sheetId: UID): CellPosition;
|
|
4269
|
-
getStatisticFnResults(): {
|
|
4270
|
-
[name: string]: number | undefined;
|
|
4271
|
-
};
|
|
4272
|
-
getAggregate(): string | null;
|
|
4273
4300
|
isSelected(zone: Zone): boolean;
|
|
4274
4301
|
isSingleColSelected(): boolean;
|
|
4275
4302
|
/**
|
|
@@ -4616,7 +4643,7 @@ type CoreGetters = PluginGetters<typeof SheetPlugin> & PluginGetters<typeof Head
|
|
|
4616
4643
|
type Getters = {
|
|
4617
4644
|
isReadonly: () => boolean;
|
|
4618
4645
|
isDashboard: () => boolean;
|
|
4619
|
-
} & CoreGetters & PluginGetters<typeof AutofillPlugin> & PluginGetters<typeof AutomaticSumPlugin> & PluginGetters<typeof HistoryPlugin> & PluginGetters<typeof ClipboardPlugin> & PluginGetters<typeof EvaluationPlugin> & PluginGetters<typeof EvaluationChartPlugin> & PluginGetters<typeof EvaluationConditionalFormatPlugin> & PluginGetters<typeof FindAndReplacePlugin> & PluginGetters<typeof HeaderVisibilityUIPlugin> & PluginGetters<typeof CustomColorsPlugin> & PluginGetters<typeof AutomaticSumPlugin> & PluginGetters<typeof GridSelectionPlugin> & PluginGetters<typeof CollaborativePlugin> & PluginGetters<typeof SortPlugin> & PluginGetters<typeof UIOptionsPlugin> & PluginGetters<typeof SheetUIPlugin> & PluginGetters<typeof SheetViewPlugin> & PluginGetters<typeof FilterEvaluationPlugin> & PluginGetters<typeof SplitToColumnsPlugin> & PluginGetters<typeof HeaderSizeUIPlugin> & PluginGetters<typeof EvaluationDataValidationPlugin> & PluginGetters<typeof HeaderPositionsUIPlugin> & PluginGetters<typeof TableStylePlugin> & PluginGetters<typeof DynamicTablesPlugin>;
|
|
4646
|
+
} & CoreGetters & PluginGetters<typeof AutofillPlugin> & PluginGetters<typeof AutomaticSumPlugin> & PluginGetters<typeof HistoryPlugin> & PluginGetters<typeof ClipboardPlugin> & PluginGetters<typeof EvaluationPlugin> & PluginGetters<typeof EvaluationChartPlugin> & PluginGetters<typeof EvaluationConditionalFormatPlugin> & PluginGetters<typeof FindAndReplacePlugin> & PluginGetters<typeof HeaderVisibilityUIPlugin> & PluginGetters<typeof CustomColorsPlugin> & PluginGetters<typeof AutomaticSumPlugin> & PluginGetters<typeof GridSelectionPlugin> & PluginGetters<typeof CollaborativePlugin> & PluginGetters<typeof SortPlugin> & PluginGetters<typeof UIOptionsPlugin> & PluginGetters<typeof SheetUIPlugin> & PluginGetters<typeof SheetViewPlugin> & PluginGetters<typeof FilterEvaluationPlugin> & PluginGetters<typeof SplitToColumnsPlugin> & PluginGetters<typeof HeaderSizeUIPlugin> & PluginGetters<typeof EvaluationDataValidationPlugin> & PluginGetters<typeof HeaderPositionsUIPlugin> & PluginGetters<typeof TableStylePlugin> & PluginGetters<typeof CellComputedStylePlugin> & PluginGetters<typeof DynamicTablesPlugin>;
|
|
4620
4647
|
|
|
4621
4648
|
type ArgType = "ANY" | "BOOLEAN" | "NUMBER" | "STRING" | "DATE" | "RANGE" | "RANGE<BOOLEAN>" | "RANGE<NUMBER>" | "RANGE<DATE>" | "RANGE<STRING>" | "RANGE<ANY>" | "META";
|
|
4622
4649
|
interface ArgDefinition {
|
|
@@ -5222,7 +5249,7 @@ declare class Model extends EventBus<any> implements CommandDispatcher {
|
|
|
5222
5249
|
* Check if a command can be dispatched, and returns a DispatchResult object with the possible
|
|
5223
5250
|
* reasons the dispatch failed.
|
|
5224
5251
|
*/
|
|
5225
|
-
canDispatch: CommandDispatcher["
|
|
5252
|
+
canDispatch: CommandDispatcher["dispatch"];
|
|
5226
5253
|
/**
|
|
5227
5254
|
* The dispatch method is the only entry point to manipulate data in the model.
|
|
5228
5255
|
* This is through this method that commands are dispatched most of the time
|
|
@@ -5800,7 +5827,7 @@ interface Props$J {
|
|
|
5800
5827
|
figureId: UID;
|
|
5801
5828
|
definition: LineChartDefinition | BarChartDefinition | PieChartDefinition;
|
|
5802
5829
|
canUpdateChart: (figureId: UID, definition: Partial<LineChartDefinition | BarChartDefinition | PieChartDefinition>) => DispatchResult;
|
|
5803
|
-
updateChart: (figureId: UID, definition: Partial<LineChartDefinition | BarChartDefinition | PieChartDefinition>) => DispatchResult;
|
|
5830
|
+
updateChart: (figureId: UID, definition: Partial<LineChartDefinition | BarChartDefinition | PieChartDefinition | ComboChartDefinition>) => DispatchResult;
|
|
5804
5831
|
}
|
|
5805
5832
|
declare class LineBarPieConfigPanel extends Component<Props$J, SpreadsheetChildEnv> {
|
|
5806
5833
|
static template: string;
|
|
@@ -6054,24 +6081,36 @@ declare class ColorPickerWidget extends Component<Props$I, SpreadsheetChildEnv>
|
|
|
6054
6081
|
interface Props$H {
|
|
6055
6082
|
currentColor?: string;
|
|
6056
6083
|
onColorPicked: (color: string) => void;
|
|
6084
|
+
title?: string;
|
|
6057
6085
|
}
|
|
6058
|
-
declare class
|
|
6086
|
+
declare class RoundColorPicker extends Component<Props$H, SpreadsheetChildEnv> {
|
|
6059
6087
|
static template: string;
|
|
6060
6088
|
static components: {
|
|
6061
6089
|
ColorPickerWidget: typeof ColorPickerWidget;
|
|
6062
6090
|
Section: typeof Section;
|
|
6091
|
+
ColorPicker: typeof ColorPicker;
|
|
6063
6092
|
};
|
|
6064
6093
|
static props: {
|
|
6065
6094
|
currentColor: {
|
|
6066
6095
|
type: StringConstructor;
|
|
6067
6096
|
optional: boolean;
|
|
6068
6097
|
};
|
|
6098
|
+
title: {
|
|
6099
|
+
type: StringConstructor;
|
|
6100
|
+
optional: boolean;
|
|
6101
|
+
};
|
|
6069
6102
|
onColorPicked: FunctionConstructor;
|
|
6070
6103
|
};
|
|
6104
|
+
colorPickerButtonRef: {
|
|
6105
|
+
el: HTMLElement | null;
|
|
6106
|
+
};
|
|
6071
6107
|
private state;
|
|
6072
6108
|
setup(): void;
|
|
6073
6109
|
closePicker(): void;
|
|
6074
6110
|
togglePicker(): void;
|
|
6111
|
+
onColorPicked(color: string): void;
|
|
6112
|
+
get colorPickerAnchorRect(): Rect;
|
|
6113
|
+
get buttonStyle(): string;
|
|
6075
6114
|
}
|
|
6076
6115
|
|
|
6077
6116
|
interface Props$G {
|
|
@@ -6099,7 +6138,7 @@ interface Props$F {
|
|
|
6099
6138
|
declare class LineBarPieDesignPanel extends Component<Props$F, SpreadsheetChildEnv> {
|
|
6100
6139
|
static template: string;
|
|
6101
6140
|
static components: {
|
|
6102
|
-
|
|
6141
|
+
RoundColorPicker: typeof RoundColorPicker;
|
|
6103
6142
|
ChartTitle: typeof ChartTitle;
|
|
6104
6143
|
Section: typeof Section;
|
|
6105
6144
|
};
|
|
@@ -6113,6 +6152,7 @@ declare class LineBarPieDesignPanel extends Component<Props$F, SpreadsheetChildE
|
|
|
6113
6152
|
updateBackgroundColor(color: Color): void;
|
|
6114
6153
|
updateTitle(title: string): void;
|
|
6115
6154
|
updateSelect(attr: string, ev: any): void;
|
|
6155
|
+
get backgroundColorTitle(): string;
|
|
6116
6156
|
}
|
|
6117
6157
|
|
|
6118
6158
|
interface Props$E {
|
|
@@ -6142,7 +6182,6 @@ declare class GaugeChartConfigPanel extends Component<Props$E, SpreadsheetChildE
|
|
|
6142
6182
|
getDataRange(): string;
|
|
6143
6183
|
}
|
|
6144
6184
|
|
|
6145
|
-
type GaugeMenu = "sectionColor-lowerColor" | "sectionColor-middleColor" | "sectionColor-upperColor";
|
|
6146
6185
|
interface Props$D {
|
|
6147
6186
|
figureId: UID;
|
|
6148
6187
|
definition: GaugeChartDefinition;
|
|
@@ -6152,9 +6191,8 @@ interface Props$D {
|
|
|
6152
6191
|
declare class GaugeChartDesignPanel extends Component<Props$D, SpreadsheetChildEnv> {
|
|
6153
6192
|
static template: string;
|
|
6154
6193
|
static components: {
|
|
6155
|
-
ColorPickerWidget: typeof ColorPickerWidget;
|
|
6156
6194
|
ChartErrorSection: typeof ChartErrorSection;
|
|
6157
|
-
|
|
6195
|
+
RoundColorPicker: typeof RoundColorPicker;
|
|
6158
6196
|
ChartTitle: typeof ChartTitle;
|
|
6159
6197
|
Section: typeof Section;
|
|
6160
6198
|
};
|
|
@@ -6165,7 +6203,6 @@ declare class GaugeChartDesignPanel extends Component<Props$D, SpreadsheetChildE
|
|
|
6165
6203
|
canUpdateChart: FunctionConstructor;
|
|
6166
6204
|
};
|
|
6167
6205
|
private state;
|
|
6168
|
-
setup(): void;
|
|
6169
6206
|
get title(): string;
|
|
6170
6207
|
get designErrorMessages(): string[];
|
|
6171
6208
|
updateBackgroundColor(color: Color): void;
|
|
@@ -6175,10 +6212,9 @@ declare class GaugeChartDesignPanel extends Component<Props$D, SpreadsheetChildE
|
|
|
6175
6212
|
get isLowerInflectionPointInvalid(): boolean;
|
|
6176
6213
|
get isUpperInflectionPointInvalid(): boolean;
|
|
6177
6214
|
updateSectionColor(target: string, color: Color): void;
|
|
6178
|
-
toggleMenu(menu: GaugeMenu): void;
|
|
6179
6215
|
updateSectionRule(sectionRule: SectionRule): void;
|
|
6180
6216
|
canUpdateSectionRule(sectionRule: SectionRule): void;
|
|
6181
|
-
|
|
6217
|
+
get backgroundColorTitle(): string;
|
|
6182
6218
|
}
|
|
6183
6219
|
|
|
6184
6220
|
declare class LineConfigPanel extends LineBarPieConfigPanel {
|
|
@@ -6242,10 +6278,10 @@ interface Props$B {
|
|
|
6242
6278
|
declare class ScorecardChartDesignPanel extends Component<Props$B, SpreadsheetChildEnv> {
|
|
6243
6279
|
static template: string;
|
|
6244
6280
|
static components: {
|
|
6245
|
-
|
|
6246
|
-
ChartColor: typeof ChartColor;
|
|
6281
|
+
RoundColorPicker: typeof RoundColorPicker;
|
|
6247
6282
|
ChartTitle: typeof ChartTitle;
|
|
6248
6283
|
Section: typeof Section;
|
|
6284
|
+
Checkbox: typeof Checkbox;
|
|
6249
6285
|
};
|
|
6250
6286
|
static props: {
|
|
6251
6287
|
figureId: StringConstructor;
|
|
@@ -6253,15 +6289,15 @@ declare class ScorecardChartDesignPanel extends Component<Props$B, SpreadsheetCh
|
|
|
6253
6289
|
updateChart: FunctionConstructor;
|
|
6254
6290
|
canUpdateChart: FunctionConstructor;
|
|
6255
6291
|
};
|
|
6256
|
-
private state;
|
|
6257
|
-
setup(): void;
|
|
6258
6292
|
get title(): string;
|
|
6293
|
+
get colorsSectionTitle(): string;
|
|
6294
|
+
get humanizeNumbersLabel(): string;
|
|
6259
6295
|
updateTitle(title: string): void;
|
|
6296
|
+
updateHumanizeNumbers(humanize: boolean): void;
|
|
6260
6297
|
translate(term: any): string;
|
|
6261
6298
|
updateBaselineDescr(ev: any): void;
|
|
6262
|
-
toggleColorPicker(colorPickerId: ColorPickerId): void;
|
|
6263
6299
|
setColor(color: Color, colorPickerId: ColorPickerId): void;
|
|
6264
|
-
|
|
6300
|
+
get backgroundColorTitle(): string;
|
|
6265
6301
|
}
|
|
6266
6302
|
|
|
6267
6303
|
interface ChartSidePanel {
|
|
@@ -6686,7 +6722,7 @@ interface Props$z {
|
|
|
6686
6722
|
interface AssistantState {
|
|
6687
6723
|
allowCellSelectionBehind: boolean;
|
|
6688
6724
|
}
|
|
6689
|
-
declare class FunctionDescriptionProvider extends Component<Props$z> {
|
|
6725
|
+
declare class FunctionDescriptionProvider extends Component<Props$z, SpreadsheetChildEnv> {
|
|
6690
6726
|
static template: string;
|
|
6691
6727
|
static props: {
|
|
6692
6728
|
functionName: StringConstructor;
|
|
@@ -6698,6 +6734,7 @@ declare class FunctionDescriptionProvider extends Component<Props$z> {
|
|
|
6698
6734
|
setup(): void;
|
|
6699
6735
|
getContext(): Props$z;
|
|
6700
6736
|
onMouseMove(): void;
|
|
6737
|
+
get formulaArgSeparator(): string;
|
|
6701
6738
|
}
|
|
6702
6739
|
|
|
6703
6740
|
type HtmlContent = {
|
|
@@ -6723,6 +6760,7 @@ interface ComposerProps {
|
|
|
6723
6760
|
delimitation?: DOMDimension;
|
|
6724
6761
|
onComposerContentFocused: () => void;
|
|
6725
6762
|
onComposerCellFocused?: (content: String) => void;
|
|
6763
|
+
onInputContextMenu?: (event: MouseEvent) => void;
|
|
6726
6764
|
isDefaultFocus?: boolean;
|
|
6727
6765
|
}
|
|
6728
6766
|
interface ComposerState {
|
|
@@ -6766,6 +6804,10 @@ declare class Composer extends Component<ComposerProps, SpreadsheetChildEnv> {
|
|
|
6766
6804
|
type: BooleanConstructor;
|
|
6767
6805
|
optional: boolean;
|
|
6768
6806
|
};
|
|
6807
|
+
onInputContextMenu: {
|
|
6808
|
+
type: FunctionConstructor;
|
|
6809
|
+
optional: boolean;
|
|
6810
|
+
};
|
|
6769
6811
|
};
|
|
6770
6812
|
static components: {
|
|
6771
6813
|
TextValueProvider: typeof TextValueProvider;
|
|
@@ -6822,6 +6864,7 @@ declare class Composer extends Component<ComposerProps, SpreadsheetChildEnv> {
|
|
|
6822
6864
|
onMousedown(ev: MouseEvent): void;
|
|
6823
6865
|
onClick(): void;
|
|
6824
6866
|
onDblClick(): void;
|
|
6867
|
+
onContextMenu(ev: MouseEvent): void;
|
|
6825
6868
|
private processContent;
|
|
6826
6869
|
/**
|
|
6827
6870
|
* Get the HTML content corresponding to the current composer token, divided by lines.
|
|
@@ -7126,6 +7169,7 @@ declare class ClientTag extends Component<ClientTagProps, SpreadsheetChildEnv> {
|
|
|
7126
7169
|
|
|
7127
7170
|
interface Props$s {
|
|
7128
7171
|
gridDims: DOMDimension;
|
|
7172
|
+
onInputContextMenu: (event: MouseEvent) => void;
|
|
7129
7173
|
}
|
|
7130
7174
|
/**
|
|
7131
7175
|
* This component is a composer which positions itself on the grid at the anchor cell.
|
|
@@ -7135,6 +7179,7 @@ declare class GridComposer extends Component<Props$s, SpreadsheetChildEnv> {
|
|
|
7135
7179
|
static template: string;
|
|
7136
7180
|
static props: {
|
|
7137
7181
|
gridDims: ObjectConstructor;
|
|
7182
|
+
onInputContextMenu: FunctionConstructor;
|
|
7138
7183
|
};
|
|
7139
7184
|
static components: {
|
|
7140
7185
|
Composer: typeof Composer;
|
|
@@ -7166,7 +7211,6 @@ interface GridCellIconProps {
|
|
|
7166
7211
|
cellPosition: CellPosition;
|
|
7167
7212
|
horizontalAlign?: Align;
|
|
7168
7213
|
verticalAlign?: VerticalAlign;
|
|
7169
|
-
offset?: DOMCoordinates;
|
|
7170
7214
|
}
|
|
7171
7215
|
declare class GridCellIcon extends Component<GridCellIconProps, SpreadsheetChildEnv> {
|
|
7172
7216
|
static template: string;
|
|
@@ -7180,10 +7224,6 @@ declare class GridCellIcon extends Component<GridCellIconProps, SpreadsheetChild
|
|
|
7180
7224
|
type: StringConstructor;
|
|
7181
7225
|
optional: boolean;
|
|
7182
7226
|
};
|
|
7183
|
-
offset: {
|
|
7184
|
-
type: ObjectConstructor;
|
|
7185
|
-
optional: boolean;
|
|
7186
|
-
};
|
|
7187
7227
|
slots: ObjectConstructor;
|
|
7188
7228
|
};
|
|
7189
7229
|
get iconStyle(): string;
|
|
@@ -7192,70 +7232,10 @@ declare class GridCellIcon extends Component<GridCellIconProps, SpreadsheetChild
|
|
|
7192
7232
|
isPositionVisible(position: CellPosition): boolean;
|
|
7193
7233
|
}
|
|
7194
7234
|
|
|
7195
|
-
declare class CellPopoverStore extends SpreadsheetStore {
|
|
7196
|
-
private persistentPopover?;
|
|
7197
|
-
protected hoveredCell: {
|
|
7198
|
-
readonly col: number | undefined;
|
|
7199
|
-
readonly row: number | undefined;
|
|
7200
|
-
readonly handle: (cmd: Command) => void;
|
|
7201
|
-
readonly hover: (position: Position$1) => void;
|
|
7202
|
-
readonly clear: () => void;
|
|
7203
|
-
readonly renderingLayers: readonly ("Chart" | "Background" | "Highlights" | "Clipboard" | "Autofill" | "Selection" | "Headers")[];
|
|
7204
|
-
readonly drawLayer: (ctx: GridRenderingContext, layer: "Chart" | "Background" | "Highlights" | "Clipboard" | "Autofill" | "Selection" | "Headers") => void;
|
|
7205
|
-
readonly dispose: () => void;
|
|
7206
|
-
};
|
|
7207
|
-
handle(cmd: Command): void;
|
|
7208
|
-
open({ col, row }: Position$1, type: CellPopoverType): void;
|
|
7209
|
-
close(): void;
|
|
7210
|
-
get persistentCellPopover(): OpenCellPopover | ClosedCellPopover;
|
|
7211
|
-
get isOpen(): boolean;
|
|
7212
|
-
get cellPopover(): ClosedCellPopover | PositionedCellPopoverComponent;
|
|
7213
|
-
private computePopoverAnchorRect;
|
|
7214
|
-
}
|
|
7215
|
-
|
|
7216
7235
|
interface Props$r {
|
|
7217
7236
|
cellPosition: CellPosition;
|
|
7218
7237
|
}
|
|
7219
|
-
declare class
|
|
7220
|
-
static template: string;
|
|
7221
|
-
static props: {
|
|
7222
|
-
cellPosition: ObjectConstructor;
|
|
7223
|
-
};
|
|
7224
|
-
protected cellPopovers: Store<CellPopoverStore>;
|
|
7225
|
-
setup(): void;
|
|
7226
|
-
onClick(): void;
|
|
7227
|
-
get isFilterActive(): boolean;
|
|
7228
|
-
get iconClass(): string;
|
|
7229
|
-
}
|
|
7230
|
-
|
|
7231
|
-
interface Props$q {
|
|
7232
|
-
gridPosition: DOMCoordinates;
|
|
7233
|
-
}
|
|
7234
|
-
declare class FilterIconsOverlay extends Component<Props$q, SpreadsheetChildEnv> {
|
|
7235
|
-
static template: string;
|
|
7236
|
-
static props: {
|
|
7237
|
-
gridPosition: {
|
|
7238
|
-
type: ObjectConstructor;
|
|
7239
|
-
optional: boolean;
|
|
7240
|
-
};
|
|
7241
|
-
};
|
|
7242
|
-
static components: {
|
|
7243
|
-
GridCellIcon: typeof GridCellIcon;
|
|
7244
|
-
FilterIcon: typeof FilterIcon;
|
|
7245
|
-
};
|
|
7246
|
-
static defaultProps: {
|
|
7247
|
-
gridPosition: {
|
|
7248
|
-
x: number;
|
|
7249
|
-
y: number;
|
|
7250
|
-
};
|
|
7251
|
-
};
|
|
7252
|
-
getFilterHeadersPositions(): CellPosition[];
|
|
7253
|
-
}
|
|
7254
|
-
|
|
7255
|
-
interface Props$p {
|
|
7256
|
-
cellPosition: CellPosition;
|
|
7257
|
-
}
|
|
7258
|
-
declare class DataValidationCheckbox extends Component<Props$p, SpreadsheetChildEnv> {
|
|
7238
|
+
declare class DataValidationCheckbox extends Component<Props$r, SpreadsheetChildEnv> {
|
|
7259
7239
|
static template: string;
|
|
7260
7240
|
static props: {
|
|
7261
7241
|
cellPosition: ObjectConstructor;
|
|
@@ -7265,10 +7245,10 @@ declare class DataValidationCheckbox extends Component<Props$p, SpreadsheetChild
|
|
|
7265
7245
|
get isDisabled(): boolean;
|
|
7266
7246
|
}
|
|
7267
7247
|
|
|
7268
|
-
interface Props$
|
|
7248
|
+
interface Props$q {
|
|
7269
7249
|
cellPosition: CellPosition;
|
|
7270
7250
|
}
|
|
7271
|
-
declare class DataValidationListIcon extends Component<Props$
|
|
7251
|
+
declare class DataValidationListIcon extends Component<Props$q, SpreadsheetChildEnv> {
|
|
7272
7252
|
static template: string;
|
|
7273
7253
|
static props: {
|
|
7274
7254
|
cellPosition: ObjectConstructor;
|
|
@@ -7298,7 +7278,7 @@ interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
|
|
|
7298
7278
|
}
|
|
7299
7279
|
|
|
7300
7280
|
type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
|
|
7301
|
-
interface Props$
|
|
7281
|
+
interface Props$p {
|
|
7302
7282
|
onFigureDeleted: () => void;
|
|
7303
7283
|
}
|
|
7304
7284
|
interface Container {
|
|
@@ -7377,7 +7357,7 @@ interface DndState {
|
|
|
7377
7357
|
* that occurred during the drag & drop, and to position the figure on the correct pane.
|
|
7378
7358
|
*
|
|
7379
7359
|
*/
|
|
7380
|
-
declare class FiguresContainer extends Component<Props$
|
|
7360
|
+
declare class FiguresContainer extends Component<Props$p, SpreadsheetChildEnv> {
|
|
7381
7361
|
static template: string;
|
|
7382
7362
|
static props: {
|
|
7383
7363
|
onFigureDeleted: FunctionConstructor;
|
|
@@ -7412,6 +7392,57 @@ declare class FiguresContainer extends Component<Props$n, SpreadsheetChildEnv> {
|
|
|
7412
7392
|
private getSnapLineStyle;
|
|
7413
7393
|
}
|
|
7414
7394
|
|
|
7395
|
+
declare class CellPopoverStore extends SpreadsheetStore {
|
|
7396
|
+
private persistentPopover?;
|
|
7397
|
+
protected hoveredCell: {
|
|
7398
|
+
readonly col: number | undefined;
|
|
7399
|
+
readonly row: number | undefined;
|
|
7400
|
+
readonly handle: (cmd: Command) => void;
|
|
7401
|
+
readonly hover: (position: Position$1) => void;
|
|
7402
|
+
readonly clear: () => void;
|
|
7403
|
+
readonly renderingLayers: readonly ("Chart" | "Background" | "Highlights" | "Clipboard" | "Autofill" | "Selection" | "Headers")[];
|
|
7404
|
+
readonly drawLayer: (ctx: GridRenderingContext, layer: "Chart" | "Background" | "Highlights" | "Clipboard" | "Autofill" | "Selection" | "Headers") => void;
|
|
7405
|
+
readonly dispose: () => void;
|
|
7406
|
+
};
|
|
7407
|
+
handle(cmd: Command): void;
|
|
7408
|
+
open({ col, row }: Position$1, type: CellPopoverType): void;
|
|
7409
|
+
close(): void;
|
|
7410
|
+
get persistentCellPopover(): OpenCellPopover | ClosedCellPopover;
|
|
7411
|
+
get isOpen(): boolean;
|
|
7412
|
+
get cellPopover(): ClosedCellPopover | PositionedCellPopoverComponent;
|
|
7413
|
+
private computePopoverAnchorRect;
|
|
7414
|
+
}
|
|
7415
|
+
|
|
7416
|
+
interface Props$o {
|
|
7417
|
+
cellPosition: CellPosition;
|
|
7418
|
+
}
|
|
7419
|
+
declare class FilterIcon extends Component<Props$o, SpreadsheetChildEnv> {
|
|
7420
|
+
static template: string;
|
|
7421
|
+
static props: {
|
|
7422
|
+
cellPosition: ObjectConstructor;
|
|
7423
|
+
};
|
|
7424
|
+
protected cellPopovers: Store<CellPopoverStore>;
|
|
7425
|
+
setup(): void;
|
|
7426
|
+
onClick(): void;
|
|
7427
|
+
get isFilterActive(): boolean;
|
|
7428
|
+
get iconClass(): string;
|
|
7429
|
+
}
|
|
7430
|
+
|
|
7431
|
+
interface Props$n {
|
|
7432
|
+
onMouseDown: (ev: MouseEvent) => void;
|
|
7433
|
+
}
|
|
7434
|
+
declare class FilterIconsOverlay extends Component<Props$n, SpreadsheetChildEnv> {
|
|
7435
|
+
static template: string;
|
|
7436
|
+
static props: {
|
|
7437
|
+
onMouseDown: FunctionConstructor;
|
|
7438
|
+
};
|
|
7439
|
+
static components: {
|
|
7440
|
+
GridCellIcon: typeof GridCellIcon;
|
|
7441
|
+
FilterIcon: typeof FilterIcon;
|
|
7442
|
+
};
|
|
7443
|
+
getFilterHeadersPositions(): CellPosition[];
|
|
7444
|
+
}
|
|
7445
|
+
|
|
7415
7446
|
interface Props$m {
|
|
7416
7447
|
focusGrid: () => void;
|
|
7417
7448
|
}
|
|
@@ -7442,10 +7473,7 @@ declare class GridAddRowsFooter extends Component<Props$m, SpreadsheetChildEnv>
|
|
|
7442
7473
|
interface Props$l {
|
|
7443
7474
|
onCellHovered: (position: Partial<Position$1>) => void;
|
|
7444
7475
|
onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
|
|
7445
|
-
onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers:
|
|
7446
|
-
addZone: boolean;
|
|
7447
|
-
expandZone: boolean;
|
|
7448
|
-
}) => void;
|
|
7476
|
+
onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers) => void;
|
|
7449
7477
|
onCellRightClicked: (col: HeaderIndex, row: HeaderIndex, coordinates: DOMCoordinates) => void;
|
|
7450
7478
|
onGridResized: (dimension: Rect) => void;
|
|
7451
7479
|
onGridMoved: (deltaX: Pixel, deltaY: Pixel) => void;
|
|
@@ -7486,6 +7514,7 @@ declare class GridOverlay extends Component<Props$l, SpreadsheetChildEnv> {
|
|
|
7486
7514
|
FiguresContainer: typeof FiguresContainer;
|
|
7487
7515
|
DataValidationOverlay: typeof DataValidationOverlay;
|
|
7488
7516
|
GridAddRowsFooter: typeof GridAddRowsFooter;
|
|
7517
|
+
FilterIconsOverlay: typeof FilterIconsOverlay;
|
|
7489
7518
|
};
|
|
7490
7519
|
static defaultProps: {
|
|
7491
7520
|
onCellHovered: () => void;
|
|
@@ -7501,7 +7530,9 @@ declare class GridOverlay extends Component<Props$l, SpreadsheetChildEnv> {
|
|
|
7501
7530
|
get gridOverlayEl(): HTMLElement;
|
|
7502
7531
|
get style(): string;
|
|
7503
7532
|
get isPaintingFormat(): boolean;
|
|
7504
|
-
onMouseDown(ev: MouseEvent
|
|
7533
|
+
onMouseDown(ev: MouseEvent, modifiers?: {
|
|
7534
|
+
closePopover: boolean;
|
|
7535
|
+
}): void;
|
|
7505
7536
|
onDoubleClick(ev: MouseEvent): void;
|
|
7506
7537
|
onContextMenu(ev: MouseEvent): void;
|
|
7507
7538
|
private getCartesianCoordinates;
|
|
@@ -7853,7 +7884,6 @@ declare class Grid extends Component<Props$d, SpreadsheetChildEnv> {
|
|
|
7853
7884
|
Popover: typeof Popover;
|
|
7854
7885
|
VerticalScrollBar: typeof VerticalScrollBar;
|
|
7855
7886
|
HorizontalScrollBar: typeof HorizontalScrollBar;
|
|
7856
|
-
FilterIconsOverlay: typeof FilterIconsOverlay;
|
|
7857
7887
|
};
|
|
7858
7888
|
readonly HEADER_HEIGHT = 26;
|
|
7859
7889
|
readonly HEADER_WIDTH = 48;
|
|
@@ -7889,10 +7919,7 @@ declare class Grid extends Component<Props$d, SpreadsheetChildEnv> {
|
|
|
7889
7919
|
getClientPositionKey(client: Client): string;
|
|
7890
7920
|
isCellHovered(col: HeaderIndex, row: HeaderIndex): boolean;
|
|
7891
7921
|
private getGridRect;
|
|
7892
|
-
onCellClicked(col: HeaderIndex, row: HeaderIndex,
|
|
7893
|
-
addZone: boolean;
|
|
7894
|
-
expandZone: boolean;
|
|
7895
|
-
}): void;
|
|
7922
|
+
onCellClicked(col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers): void;
|
|
7896
7923
|
onCellDoubleClicked(col: HeaderIndex, row: HeaderIndex): void;
|
|
7897
7924
|
processArrows(ev: KeyboardEvent): void;
|
|
7898
7925
|
onKeydown(ev: KeyboardEvent): void;
|
|
@@ -8281,7 +8308,7 @@ declare class BottomBarStatistic extends Component<Props$a, SpreadsheetChildEnv>
|
|
|
8281
8308
|
Ripple: typeof Ripple;
|
|
8282
8309
|
};
|
|
8283
8310
|
selectedStatisticFn: string;
|
|
8284
|
-
private
|
|
8311
|
+
private store;
|
|
8285
8312
|
setup(): void;
|
|
8286
8313
|
getSelectedStatistic(): string | undefined;
|
|
8287
8314
|
listSelectionStatistics(ev: MouseEvent): void;
|
|
@@ -8357,7 +8384,6 @@ declare class SpreadsheetDashboard extends Component<Props$8, SpreadsheetChildEn
|
|
|
8357
8384
|
Popover: typeof Popover;
|
|
8358
8385
|
VerticalScrollBar: typeof VerticalScrollBar;
|
|
8359
8386
|
HorizontalScrollBar: typeof HorizontalScrollBar;
|
|
8360
|
-
FilterIconsOverlay: typeof FilterIconsOverlay;
|
|
8361
8387
|
};
|
|
8362
8388
|
protected cellPopovers: Store<CellPopoverStore>;
|
|
8363
8389
|
onMouseWheel: (ev: WheelEvent) => void;
|
|
@@ -8868,6 +8894,7 @@ declare class TopBarComposer extends Component<any, SpreadsheetChildEnv> {
|
|
|
8868
8894
|
get focus(): Omit<ComposerFocusType, "cellFocus">;
|
|
8869
8895
|
get composerStyle(): string;
|
|
8870
8896
|
get containerStyle(): string;
|
|
8897
|
+
get delimitation(): DOMDimension;
|
|
8871
8898
|
onFocus(selection: ComposerSelection): void;
|
|
8872
8899
|
}
|
|
8873
8900
|
|
|
@@ -9073,7 +9100,7 @@ declare class Spreadsheet extends Component<SpreadsheetProps, SpreadsheetChildEn
|
|
|
9073
9100
|
private notificationStore;
|
|
9074
9101
|
private composerFocusStore;
|
|
9075
9102
|
get model(): Model;
|
|
9076
|
-
getStyle():
|
|
9103
|
+
getStyle(): "grid-template-rows: auto;" | "grid-template-rows: 63px auto 37px";
|
|
9077
9104
|
setup(): void;
|
|
9078
9105
|
private bindModelEvents;
|
|
9079
9106
|
private unbindModelEvents;
|
|
@@ -9103,6 +9130,7 @@ declare const CellErrorType: {
|
|
|
9103
9130
|
readonly BadExpression: "#BAD_EXPR";
|
|
9104
9131
|
readonly CircularDependency: "#CYCLE";
|
|
9105
9132
|
readonly UnknownFunction: "#NAME?";
|
|
9133
|
+
readonly DivisionByZero: "#DIV/0!";
|
|
9106
9134
|
readonly GenericError: "#ERROR";
|
|
9107
9135
|
};
|
|
9108
9136
|
declare class EvaluationError extends Error {
|
|
@@ -9175,7 +9203,7 @@ declare const registries: {
|
|
|
9175
9203
|
clipboardHandlersRegistries: {
|
|
9176
9204
|
figureHandlers: Registry<{
|
|
9177
9205
|
new (getters: Getters, dispatch: {
|
|
9178
|
-
<T extends "CUT" | "COPY" | "UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "ACTIVATE_PAINT_FORMAT" | "CANCEL_PAINT_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "START_CHANGE_HIGHLIGHT" | "
|
|
9206
|
+
<T extends "CUT" | "COPY" | "UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "ACTIVATE_PAINT_FORMAT" | "CANCEL_PAINT_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SORT_CELLS" | "SET_DECIMAL" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RENDER_CANVAS", C extends Extract<UpdateCellCommand, {
|
|
9179
9207
|
type: T;
|
|
9180
9208
|
}> | Extract<UpdateCellPositionCommand, {
|
|
9181
9209
|
type: T;
|
|
@@ -9321,8 +9349,6 @@ declare const registries: {
|
|
|
9321
9349
|
type: T;
|
|
9322
9350
|
}> | Extract<StartChangeHighlightCommand, {
|
|
9323
9351
|
type: T;
|
|
9324
|
-
}> | Extract<SetColorCommand, {
|
|
9325
|
-
type: T;
|
|
9326
9352
|
}> | Extract<StartCommand, {
|
|
9327
9353
|
type: T;
|
|
9328
9354
|
}> | Extract<AutofillCommand, {
|
|
@@ -9374,7 +9400,7 @@ declare const registries: {
|
|
|
9374
9400
|
}> | Extract<RenderCanvasCommand, {
|
|
9375
9401
|
type: T;
|
|
9376
9402
|
}>>(type: {} extends Omit<C, "type"> ? T : never): DispatchResult;
|
|
9377
|
-
<T_1 extends "CUT" | "COPY" | "UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "ACTIVATE_PAINT_FORMAT" | "CANCEL_PAINT_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "START_CHANGE_HIGHLIGHT" | "
|
|
9403
|
+
<T_1 extends "CUT" | "COPY" | "UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "ACTIVATE_PAINT_FORMAT" | "CANCEL_PAINT_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SORT_CELLS" | "SET_DECIMAL" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RENDER_CANVAS", C_1 extends Extract<UpdateCellCommand, {
|
|
9378
9404
|
type: T_1;
|
|
9379
9405
|
}> | Extract<UpdateCellPositionCommand, {
|
|
9380
9406
|
type: T_1;
|
|
@@ -9520,8 +9546,6 @@ declare const registries: {
|
|
|
9520
9546
|
type: T_1;
|
|
9521
9547
|
}> | Extract<StartChangeHighlightCommand, {
|
|
9522
9548
|
type: T_1;
|
|
9523
|
-
}> | Extract<SetColorCommand, {
|
|
9524
|
-
type: T_1;
|
|
9525
9549
|
}> | Extract<StartCommand, {
|
|
9526
9550
|
type: T_1;
|
|
9527
9551
|
}> | Extract<AutofillCommand, {
|
|
@@ -9577,7 +9601,7 @@ declare const registries: {
|
|
|
9577
9601
|
}>;
|
|
9578
9602
|
cellHandlers: Registry<{
|
|
9579
9603
|
new (getters: Getters, dispatch: {
|
|
9580
|
-
<T extends "CUT" | "COPY" | "UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "ACTIVATE_PAINT_FORMAT" | "CANCEL_PAINT_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "START_CHANGE_HIGHLIGHT" | "
|
|
9604
|
+
<T extends "CUT" | "COPY" | "UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "ACTIVATE_PAINT_FORMAT" | "CANCEL_PAINT_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SORT_CELLS" | "SET_DECIMAL" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RENDER_CANVAS", C extends Extract<UpdateCellCommand, {
|
|
9581
9605
|
type: T;
|
|
9582
9606
|
}> | Extract<UpdateCellPositionCommand, {
|
|
9583
9607
|
type: T;
|
|
@@ -9723,8 +9747,6 @@ declare const registries: {
|
|
|
9723
9747
|
type: T;
|
|
9724
9748
|
}> | Extract<StartChangeHighlightCommand, {
|
|
9725
9749
|
type: T;
|
|
9726
|
-
}> | Extract<SetColorCommand, {
|
|
9727
|
-
type: T;
|
|
9728
9750
|
}> | Extract<StartCommand, {
|
|
9729
9751
|
type: T;
|
|
9730
9752
|
}> | Extract<AutofillCommand, {
|
|
@@ -9776,7 +9798,7 @@ declare const registries: {
|
|
|
9776
9798
|
}> | Extract<RenderCanvasCommand, {
|
|
9777
9799
|
type: T;
|
|
9778
9800
|
}>>(type: {} extends Omit<C, "type"> ? T : never): DispatchResult;
|
|
9779
|
-
<T_1 extends "CUT" | "COPY" | "UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "ACTIVATE_PAINT_FORMAT" | "CANCEL_PAINT_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "START_CHANGE_HIGHLIGHT" | "
|
|
9801
|
+
<T_1 extends "CUT" | "COPY" | "UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "ACTIVATE_PAINT_FORMAT" | "CANCEL_PAINT_FORMAT" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SORT_CELLS" | "SET_DECIMAL" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RENDER_CANVAS", C_1 extends Extract<UpdateCellCommand, {
|
|
9780
9802
|
type: T_1;
|
|
9781
9803
|
}> | Extract<UpdateCellPositionCommand, {
|
|
9782
9804
|
type: T_1;
|
|
@@ -9922,8 +9944,6 @@ declare const registries: {
|
|
|
9922
9944
|
type: T_1;
|
|
9923
9945
|
}> | Extract<StartChangeHighlightCommand, {
|
|
9924
9946
|
type: T_1;
|
|
9925
|
-
}> | Extract<SetColorCommand, {
|
|
9926
|
-
type: T_1;
|
|
9927
9947
|
}> | Extract<StartCommand, {
|
|
9928
9948
|
type: T_1;
|
|
9929
9949
|
}> | Extract<AutofillCommand, {
|
|
@@ -10032,7 +10052,7 @@ declare const links: {
|
|
|
10032
10052
|
declare const components: {
|
|
10033
10053
|
Checkbox: typeof Checkbox;
|
|
10034
10054
|
Section: typeof Section;
|
|
10035
|
-
|
|
10055
|
+
RoundColorPicker: typeof RoundColorPicker;
|
|
10036
10056
|
ChartDataSeries: typeof ChartDataSeries;
|
|
10037
10057
|
ChartErrorSection: typeof ChartErrorSection;
|
|
10038
10058
|
ChartLabelRange: typeof ChartLabelRange;
|
|
@@ -10089,4 +10109,4 @@ declare const constants: {
|
|
|
10089
10109
|
HIGHLIGHT_COLOR: string;
|
|
10090
10110
|
};
|
|
10091
10111
|
|
|
10092
|
-
export { AST, ASTFuncall, AboveAverageRule, AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, ActivateNextSheetCommand, ActivatePaintFormatCommand, ActivatePreviousSheetCommand, ActivateSheetCommand, AddColumnsRowsCommand, AddConditionalFormatCommand, AddDataValidationCommand, AddFunctionDescription, AddMergeCommand, Alias, Align, AlphanumericIncrementModifier, AnchorZone, ApplyRangeChange, ApplyRangeChangeResult, Arg, ArgDefinition, ArgType, AutoFillCellCommand, AutofillAutoCommand, AutofillCellData, AutofillCommand, AutofillData, AutofillModifier, AutofillModifierImplementation, AutofillResult, AutofillSelectCommand, AutofillTableCommand, AutoresizeColumnsCommand, AutoresizeRowsCommand, AxisType, BeginsWithRule, BooleanCell, Border$1 as Border, BorderData, BorderDescr, BorderDescription, BorderPosition, BorderStyle, Box, BoxTextContent, CHART_TYPES, CSSProperties, CancelPaintFormatCommand, CancelledReason, Cell, CellData, CellErrorType, CellIsRule, CellPosition, CellValue, CellValueType, ChangeType, ChartCreationContext, ChartDefinition, ChartJSRuntime, ChartRuntime, ChartType, CleanClipBoardHighlightCommand, ClearCellCommand, ClearFormattingCommand, Client, ClientId, ClientJoinedMessage, ClientLeftMessage, ClientMovedMessage, ClientPosition, ClipboardCell, ClipboardCellData, ClipboardContent, ClipboardData, ClipboardFigureData, ClipboardMIMEType, ClipboardOperation, ClipboardOptions, ClipboardPasteOptions, ClipboardPasteTarget, Cloneable, CollaborationMessage, CollaborativeEvent, CollaborativeEventReceived, CollaborativeEventTypes, Color, ColorScaleMidPointThreshold, ColorScaleRule, ColorScaleThreshold, Command, CommandDispatcher, CommandHandler, CommandResult, CommandTypes, CompiledFormula, ComputeFunction, ComputedTableStyle, ConditionalFormat, ConditionalFormatInternal, ConditionalFormatRule, ConditionalFormattingOperatorValues, ConsecutiveIndexes, ContainsTextRule, CopyCommand, CopyModifier, CopyPasteCellsAboveCommand, CopyPasteCellsOnLeftCommand, CoreCommand, CoreCommandDispatcher, CoreCommandTypes, CoreGetters, CorePlugin, CoreTable, CoreTableType, CoreViewCommand, CoreViewCommandTypes, CreateChartCommand, CreateFigureCommand, CreateImageOverCommand, CreateRevisionOptions, CreateSheetCommand, CreateTableCommand, Currency, CustomFormulaCriterion, CutCommand, DEFAULT_LOCALE, DEFAULT_LOCALES, DIRECTION, DOMCoordinates, DOMDimension, DataSet, DataValidationCriterion, DataValidationCriterionType, DataValidationDateCriterion, DataValidationRule, DataValidationRuleData, DatasetValues, DateCriterionValue, DateIsAfterCriterion, DateIsBeforeCriterion, DateIsBetweenCriterion, DateIsCriterion, DateIsNotBetweenCriterion, DateIsOnOrAfterCriterion, DateIsOnOrBeforeCriterion, DateIsValidCriterion, DebouncedFunction, DeleteCellCommand, DeleteContentCommand, DeleteFigureCommand, DeleteSheetCommand, Dependencies, Dimension, Direction$1 as Direction, DispatchResult, DuplicateSheetCommand, DynamicTable, EdgeScrollInfo, EditTextOptions, EmptyCell, EndsWithRule, EnrichedToken, EnsureRange, ErrorCell, EvalContext, EvaluateCellsCommand, EvaluatedCell, EvaluationError, ExcelCellData, ExcelChartDataset, ExcelChartDefinition, ExcelChartType, ExcelFigureSize, ExcelFilterData, ExcelHeaderData, ExcelSheetData, ExcelTableData, ExcelWorkbookData, ExpressionRule, FPayload, FPayloadNumber, Figure, FigureData, FigureSize, Filter, FilterId, FoldAllHeaderGroupsCommand, FoldHeaderGroupCommand, FoldHeaderGroupsInZoneCommand, Format, FormattedValue, FormulaCell, FormulaModifier, FormulaToExecute, FreezeColumnsCommand, FreezeRowsCommand, FunctionDescription, FunctionRegistry, GeneratorCell, Getters, GridRenderingContext, GroupHeadersCommand, HSLA, HeaderData, HeaderDimensions, HeaderGroup, HeaderIndex, HeadersDependentCommand, HideColumnsRowsCommand, HideSheetCommand, Highlight$1 as Highlight, HistoryChange, IconSet, IconSetRule, IconThreshold, Image, Immutable, Increment, IncrementModifier, InformationNotification, InsertCellCommand, IsBetweenCriterion, IsCheckboxCriterion, IsEqualCriterion, IsGreaterOrEqualToCriterion, IsGreaterThanCriterion, IsLessOrEqualToCriterion, IsLessThanCriterion, IsNotBetweenCriterion, IsNotEqualCriterion, IsValueInListCriterion, IsValueInRangeCriterion, LabelValues, LayerName, Lazy, Link, LiteralCell, LocalCommand, Locale, LocaleCode, LocaleFormat, Matrix, Maybe, MenuMouseEvent, Merge, Model, MoveColumnsRowsCommand, MoveConditionalFormatCommand, MoveRangeCommand, MoveSheetCommand, MoveViewportDownCommand, MoveViewportToCellCommand, MoveViewportUpCommand, NewLocalStateUpdateEvent, NotContainsTextRule, NotificationType, NumberCell, Offset, OperationSequenceNode, OrderedLayers, PLAIN_TEXT_FORMAT, PaneDivision, PasteCommand, PasteFromOSClipboardCommand, Pixel, PixelPosition, Position$1 as Position, PositionDependentCommand, PropsOf, RGBA, Range, RangeCompiledFormula, RangeData, RangePart, RangeProvider, RangesDependentCommand, Rect, RedoCommand, Ref, ReferenceDenormalizer, Registry, RemoteRevisionMessage, RemoteRevisionReceivedEvent, RemoveColumnsRowsCommand, RemoveConditionalFormatCommand, RemoveDataValidationCommand, RemoveDuplicatesCommand, RemoveMergeCommand, RemoveTableCommand, RenameSheetCommand, RenderCanvasCommand, RepeatPasteCommand, ReplaceSearchCommand, RequestRedoCommand, RequestUndoCommand, ResizeColumnsRowsCommand, ResizeDirection, ResizeViewportCommand, Revision, RevisionAcknowledgedEvent, RevisionData, RevisionRedone, RevisionRedoneMessage, RevisionUndone, RevisionUndoneMessage, RevisionsDroppedEvent, Row, SPREADSHEET_DIMENSIONS, ScrollDirection$1 as ScrollDirection, SelectFigureCommand, Selection, SelectionStep, SetBorderCommand,
|
|
10112
|
+
export { AST, ASTFuncall, AboveAverageRule, AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, ActivateNextSheetCommand, ActivatePaintFormatCommand, ActivatePreviousSheetCommand, ActivateSheetCommand, AddColumnsRowsCommand, AddConditionalFormatCommand, AddDataValidationCommand, AddFunctionDescription, AddMergeCommand, Alias, Align, AlphanumericIncrementModifier, AnchorZone, ApplyRangeChange, ApplyRangeChangeResult, Arg, ArgDefinition, ArgType, AutoFillCellCommand, AutofillAutoCommand, AutofillCellData, AutofillCommand, AutofillData, AutofillModifier, AutofillModifierImplementation, AutofillResult, AutofillSelectCommand, AutofillTableCommand, AutoresizeColumnsCommand, AutoresizeRowsCommand, AxisType, BeginsWithRule, BooleanCell, Border$1 as Border, BorderData, BorderDescr, BorderDescription, BorderPosition, BorderStyle, Box, BoxTextContent, CHART_TYPES, CSSProperties, CancelPaintFormatCommand, CancelledReason, Cell, CellData, CellErrorType, CellIsRule, CellPosition, CellValue, CellValueType, ChangeType, ChartCreationContext, ChartDefinition, ChartJSRuntime, ChartRuntime, ChartType, CleanClipBoardHighlightCommand, ClearCellCommand, ClearFormattingCommand, Client, ClientId, ClientJoinedMessage, ClientLeftMessage, ClientMovedMessage, ClientPosition, ClipboardCell, ClipboardCellData, ClipboardContent, ClipboardData, ClipboardFigureData, ClipboardMIMEType, ClipboardOperation, ClipboardOptions, ClipboardPasteOptions, ClipboardPasteTarget, Cloneable, CollaborationMessage, CollaborativeEvent, CollaborativeEventReceived, CollaborativeEventTypes, Color, ColorScaleMidPointThreshold, ColorScaleRule, ColorScaleThreshold, Command, CommandDispatcher, CommandHandler, CommandResult, CommandTypes, CompiledFormula, ComputeFunction, ComputedTableStyle, ConditionalFormat, ConditionalFormatInternal, ConditionalFormatRule, ConditionalFormattingOperatorValues, ConsecutiveIndexes, ContainsTextRule, CopyCommand, CopyModifier, CopyPasteCellsAboveCommand, CopyPasteCellsOnLeftCommand, CoreCommand, CoreCommandDispatcher, CoreCommandTypes, CoreGetters, CorePlugin, CoreTable, CoreTableType, CoreViewCommand, CoreViewCommandTypes, CreateChartCommand, CreateFigureCommand, CreateImageOverCommand, CreateRevisionOptions, CreateSheetCommand, CreateTableCommand, Currency, CustomFormulaCriterion, CutCommand, DEFAULT_LOCALE, DEFAULT_LOCALES, DIRECTION, DOMCoordinates, DOMDimension, DataSet, DataValidationCriterion, DataValidationCriterionType, DataValidationDateCriterion, DataValidationRule, DataValidationRuleData, DatasetValues, DateCriterionValue, DateIsAfterCriterion, DateIsBeforeCriterion, DateIsBetweenCriterion, DateIsCriterion, DateIsNotBetweenCriterion, DateIsOnOrAfterCriterion, DateIsOnOrBeforeCriterion, DateIsValidCriterion, DebouncedFunction, DeleteCellCommand, DeleteContentCommand, DeleteFigureCommand, DeleteSheetCommand, Dependencies, Dimension, Direction$1 as Direction, DispatchResult, DuplicateSheetCommand, DynamicTable, EdgeScrollInfo, EditTextOptions, EmptyCell, EndsWithRule, EnrichedToken, EnsureRange, ErrorCell, EvalContext, EvaluateCellsCommand, EvaluatedCell, EvaluationError, ExcelCellData, ExcelChartDataset, ExcelChartDefinition, ExcelChartType, ExcelFigureSize, ExcelFilterData, ExcelHeaderData, ExcelSheetData, ExcelTableData, ExcelWorkbookData, ExpressionRule, FPayload, FPayloadNumber, Figure, FigureData, FigureSize, Filter, FilterId, FoldAllHeaderGroupsCommand, FoldHeaderGroupCommand, FoldHeaderGroupsInZoneCommand, Format, FormattedValue, FormulaCell, FormulaModifier, FormulaToExecute, FreezeColumnsCommand, FreezeRowsCommand, FunctionDescription, FunctionRegistry, GeneratorCell, Getters, GridClickModifiers, GridRenderingContext, GroupHeadersCommand, HSLA, HeaderData, HeaderDimensions, HeaderGroup, HeaderIndex, HeadersDependentCommand, HideColumnsRowsCommand, HideSheetCommand, Highlight$1 as Highlight, HistoryChange, IconSet, IconSetRule, IconThreshold, Image, Immutable, Increment, IncrementModifier, InformationNotification, InsertCellCommand, IsBetweenCriterion, IsCheckboxCriterion, IsEqualCriterion, IsGreaterOrEqualToCriterion, IsGreaterThanCriterion, IsLessOrEqualToCriterion, IsLessThanCriterion, IsNotBetweenCriterion, IsNotEqualCriterion, IsValueInListCriterion, IsValueInRangeCriterion, LabelValues, LayerName, Lazy, Link, LiteralCell, LocalCommand, Locale, LocaleCode, LocaleFormat, Matrix, Maybe, MenuMouseEvent, Merge, Model, MoveColumnsRowsCommand, MoveConditionalFormatCommand, MoveRangeCommand, MoveSheetCommand, MoveViewportDownCommand, MoveViewportToCellCommand, MoveViewportUpCommand, NewLocalStateUpdateEvent, NotContainsTextRule, NotificationType, NumberCell, Offset, OperationSequenceNode, OrderedLayers, PLAIN_TEXT_FORMAT, PaneDivision, PasteCommand, PasteFromOSClipboardCommand, Pixel, PixelPosition, Position$1 as Position, PositionDependentCommand, PropsOf, RGBA, Range, RangeCompiledFormula, RangeData, RangePart, RangeProvider, RangesDependentCommand, Rect, RedoCommand, Ref, ReferenceDenormalizer, Registry, RemoteRevisionMessage, RemoteRevisionReceivedEvent, RemoveColumnsRowsCommand, RemoveConditionalFormatCommand, RemoveDataValidationCommand, RemoveDuplicatesCommand, RemoveMergeCommand, RemoveTableCommand, RenameSheetCommand, RenderCanvasCommand, RepeatPasteCommand, ReplaceSearchCommand, RequestRedoCommand, RequestUndoCommand, ResizeColumnsRowsCommand, ResizeDirection, ResizeViewportCommand, Revision, RevisionAcknowledgedEvent, RevisionData, RevisionRedone, RevisionRedoneMessage, RevisionUndone, RevisionUndoneMessage, RevisionsDroppedEvent, Row, SPREADSHEET_DIMENSIONS, ScrollDirection$1 as ScrollDirection, SelectFigureCommand, Selection, SelectionStep, SetBorderCommand, SetDecimalCommand, SetDecimalStep, SetFormattingCommand, SetGridLinesVisibilityCommand, SetViewportOffsetCommand, SetZoneBordersCommand, Sheet, SheetDOMScrollInfo, SheetData, SheetDependentCommand, SheetScrollInfo, ShowFormulaCommand, ShowSheetCommand, SingleColorRule, SingleColorRules, SnapshotEvent, SortCommand, SortDirection, SortOptions, SplitTextIntoColumnsCommand, Spreadsheet, SpreadsheetChildEnv, SpreadsheetEnv, StartChangeHighlightCommand, StartCommand, StaticTable, StoreConstructor, StoreParams, Style, SumSelectionCommand, Table, TableConfig, TableData, TableElementStyle, TableId, TableStyle, TargetDependentCommand, TextCell, TextContainsCriterion, TextIsCriterion, TextIsEmailCriterion, TextIsLinkCriterion, TextNotContainsCriterion, TextRule, ThresholdType, TimePeriodRule, Token, Tooltip, Top10Rule, Transformation, TransformationFactory, TransportService, TrimWhitespaceCommand, UID, UIPlugin, UnGroupHeadersCommand, UnboundedZone, UndoCommand, UnexpectedRevisionIdEvent, UnfoldAllHeaderGroupsCommand, UnfoldHeaderGroupCommand, UnfoldHeaderGroupsInZoneCommand, UnfreezeColumnsCommand, UnfreezeColumnsRowsCommand, UnfreezeRowsCommand, UnhideColumnsRowsCommand, UpdateCellCommand, UpdateCellData, UpdateCellPositionCommand, UpdateChartCommand, UpdateFigureCommand, UpdateFilterCommand, UpdateLocaleCommand, UpdateTableCommand, Validation, VerticalAlign, Viewport, WorkbookData, WorkbookHistory, Wrapping, Zone, ZoneDependentCommand, ZoneDimension, __info__, addFunction, addRenderingLayer, astToFormula, borderStyles, canExecuteInReadonly, compile, compileTokens, components, constants, containsBlanksRule, containsErrorsRule, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, hooks, invalidateBordersCommands, invalidateCFEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, isCoreCommand, isHeadersDependant, isMatrix, isPositionDependent, isRangeDependant, isSheetDependent, isTargetDependent, isZoneDependent, iterateAstNodes, links, load, notContainsBlanksRule, notContainsErrorsRule, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };
|